1.27.6 • Published 3 months ago

@shipengine/connect-order-source-runtime v1.27.6

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
3 months ago

Developer Experience Order App Runtime

This is an HTTP runtime host for the ShipEngine Integration Platform's Order App.

In default mode this runtime exposes the eCommerce API 1.0 HTTP specification and serves as a mapping layer between that specification, and the function calls that an Order App implements. ShipStation ultimately makes calls to this API with the ModuleClient, but are first routed through a Gateway using the HTTP header api-code as the discriminator.

The ShipEngine Integration Platform Loader loads the Order App from a directory specified by the environment variable DX_APP_PATH.

The runtime can run Order Apps of two types:

  1. ShipEngine Order App (default)
  2. A proxy for HTTP requests
    1. Set config.runtime_proxy: true in the App package.json
    2. Implement and default export the ProxyApp interface. See ecom-proxy for an example
    3. Mapping is not performed with the proxy app type

Developing

This runtime is invisible to a user of the ShipEngine Integration Platform ecosystem, as it is deployed by an app:publish triggering a build and deployment within the Function Manager.

To run this project locally you must set the DX_APP_PATH env variable to the root directory of your App. You can use .env.local, a .gitignore file.

An example order export of the eCommerce 1.0 specification

curl -X POST 'http://localhost:3006/export_sales_orders' \
    -H 'Content-Type: application/json' \
    -d '{
        "transaction_id": "754e4fc9-a7cd-4718-b029-9876c89267c2",
        "auth": {
            "base_url": "http://mock-custom-store-stage.kubedev.sslocal.com/"
        },
        "from_date_time": "2020-01-27T17:00:00.000Z",
        "to_date_time": "2020-01-27T18:00:00.000Z"
    }'

See Also

This project is based on the Shipping App Runtime found here.

1.27.6

3 months ago

1.27.4

9 months ago

1.27.5

8 months ago

1.27.3

1 year ago

1.27.2

1 year ago

1.27.0

1 year ago

1.27.1

1 year ago

1.26.0

2 years ago

1.25.6

2 years ago

1.25.0

2 years ago

1.25.1

2 years ago

1.25.4

2 years ago

1.25.5

2 years ago

1.25.2

2 years ago

1.25.3

2 years ago

1.24.7

2 years ago

1.24.8

2 years ago

1.24.5

2 years ago

1.24.6

2 years ago

1.23.0

2 years ago

1.24.1

2 years ago

1.24.2

2 years ago

1.24.0

2 years ago

1.24.3

2 years ago

1.24.4

2 years ago

1.21.0

2 years ago

1.22.0

2 years ago

1.22.3

2 years ago

1.22.4

2 years ago

1.22.1

2 years ago

1.22.2

2 years ago

1.20.5

2 years ago

1.20.3

2 years ago

1.20.4

2 years ago

1.20.2

2 years ago

1.20.1

3 years ago

1.20.0

3 years ago

1.19.1

3 years ago

1.19.0

3 years ago

1.18.0

3 years ago

1.17.3

3 years ago

1.17.2

3 years ago

1.17.1

3 years ago

1.17.0

3 years ago

1.16.2

3 years ago

1.16.1

3 years ago

1.15.0

3 years ago

1.14.1

3 years ago

1.14.0

3 years ago

1.13.0

3 years ago

1.12.2

3 years ago

1.12.1

3 years ago

1.12.0

3 years ago

1.11.5

3 years ago

1.11.4

3 years ago

1.11.3

3 years ago

1.11.2

3 years ago

1.11.1

3 years ago

1.11.0

3 years ago

1.10.0

3 years ago

1.9.0

3 years ago

1.8.0

3 years ago

1.7.5

3 years ago

1.7.4

3 years ago

1.7.3

3 years ago

1.7.2

3 years ago

1.7.1

3 years ago

1.7.0

3 years ago

1.6.1

3 years ago

1.6.0

3 years ago

1.3.0

3 years ago

1.1.0

3 years ago