
Company News
Socket Joins the OpenJS Foundation
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.
@shipengine/connect-runtime
Advanced tools
Install dependencies either at the repo root or in each package directory, eg /packages/connect-carrier-api
Install dependencies
yarn
Build from the package directory
yarn build
import { logger, NotImplementedError, start } from '@shipengine/connect-runtime';
import { OrderSourceApp, AuthenticationType, AcknowledgeOrdersRequest, AcknowledgeOrdersResponse, SalesOrdersExportRequest, SalesOrdersExportResponse, ShipmentNotificationRequest, ShipmentNotificationResponse } from '@shipengine/connect-order-source-api';
import { join } from 'path';
const SalesOrdersExport = (request: SalesOrdersExportRequest): Promise<SalesOrdersExportResponse> => {
logger.info('This is a useless log');
throw new NotImplementedError();
}
const ShipmentNotification = (request: ShipmentNotificationRequest): Promise<ShipmentNotificationResponse> => {
throw new NotImplementedError();
}
const AcknowledgeOrders = (request: AcknowledgeOrdersRequest): Promise<AcknowledgeOrdersResponse> => {
throw new NotImplementedError();
}
start(new OrderSourceApp({
SalesOrdersExport,
ShipmentNotification,
AcknowledgeOrders,
Metadata: {
Id: '3bdd999b-ecf5-4915-b505-c8e665ce1f56',
Name: 'Order Source API App',
AuthProcess: {
Identifier: {
AuthenticationType: AuthenticationType.Basic,
IsSandbox: false
}
},
OrderSources: [{
Id: '3440a3bf-cd22-494f-ad02-500b6cdcedb8',
Name: 'Order Source API App',
SendEmail: true,
ScoreFactorForAutoRefresh: 0.1,
CanRefresh: false,
CanConfigureTimeZone: false,
CanConfirmMultipleShipments: false,
CanConfirmShipments: false,
CanLeaveFeedback: true,
HasCustomMappings: false,
HasCustomStatuses: false,
HasInventoryLevels: true,
AccountConnection: {
Name: 'OrderSource API App Connection Form',
ConnectionFormSchema: {
JsonSchema: {
"type": "object",
"required": [
"username",
"password"
],
"properties": {
"username": {
"type": "string",
"title": "User Name:"
},
"password": {
"type": "string",
"title": "Password:"
}
}
},
UiSchema: {
"password": {
"ui:widget": "password",
"ui:help": "Hint: Make it strong!"
}
}
}
}
}]
},
Logo: join(__dirname, '../assets/logo.svg'),
Icon: join(__dirname, '../assets/icon.svg'),
}));
package.jsonnpm run-script buildnpm publishThis will publish the app to Nexus (our private repository)
FAQs
This is a generic runtime for all ShipEngine Connect apps.
We found that @shipengine/connect-runtime demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 43 open source maintainers collaborating on the project.
Did you know?

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.

Company News
Socket is proud to join the OpenJS Foundation as a Silver Member, deepening our commitment to the long-term health and security of the JavaScript ecosystem.

Security News
npm now links to Socket's security analysis on every package page. Here's what you'll find when you click through.

Security News
A compromised npm publish token was used to push a malicious postinstall script in cline@2.3.0, affecting the popular AI coding agent CLI with 90k weekly downloads.