🚀 Launch Week Day 4:Introducing the Alert Details Page: A Better Way to Explore Alerts.Learn More →
Socket
Book a DemoInstallSign in
Socket

@shipengine/connect-rendering-client

Package Overview
Dependencies
Maintainers
26
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shipengine/connect-rendering-client

Internal Rendering Service client

npmnpm
Version
1.0.1
Version published
Weekly downloads
9
-40%
Maintainers
26
Weekly downloads
 
Created
Source

TypeScript Library

This package allows internal (Auctane) carrier implementers to use the internal Rendering Service for getting documents.

Example

This example shows you how to use the native rendering.

import { CreateLabelRequest, CreateLabelResponse } from "@shipengine/connect-carrier-api";
import { RenderingRequest, getDocuments } from "@shipengine/connect-rendering-client/lib"
import { DummyModule } from "../definitions/index"

export const CreateLabel = async (request: CreateLabelRequest): Promise<CreateLabelResponse> => {
    return await getDocuments(DummyModule.ApiCode, request);
}

âš  Restrictions:

  • Your app must contain a documents template file. Look at Documents Designer tool

  • Envirionment variable RENDERING_HOST has to be set.

Building

From the repository root, navigate to this package directory.

Install dependencies yarn

Build yarn build

Keywords

native-rendering

FAQs

Package last updated on 15 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts