UNPKG

@shipengine/connect-inventory-api

Version:

OpenAPI specification and TypeScript definitions for the Connect Inventory API

14 lines 818 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createEndpointMapping = void 0; const connect_runtime_1 = require("@shipengine/connect-runtime"); const types_1 = require("./types"); const createEndpointMapping = (definition) => [ [connect_runtime_1.Method.POST, types_1.Operation.START_FETCH, definition.startFetch], [connect_runtime_1.Method.POST, types_1.Operation.FETCH_RESULTS, definition.getFetchResults], [connect_runtime_1.Method.POST, types_1.Operation.START_PUSH, definition.startPush], [connect_runtime_1.Method.POST, types_1.Operation.PUSH_RESULTS, definition.getPushResults], ...(0, connect_runtime_1.mapExtensions)(definition.Extensions), ]; exports.createEndpointMapping = createEndpointMapping; //# sourceMappingURL=create-endpoint-mapping.js.map