@shipengine/connect-fulfillment-provider-api
Version:
OpenAPI specification and TypeScript definitions for the Connect Fulfillment Provider API
16 lines • 988 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.createEndpointMapping = void 0;
const connect_runtime_1 = require("@shipengine/connect-runtime");
const createEndpointMapping = (definition) => [
[connect_runtime_1.Method.POST, '/connect', definition.connect],
[connect_runtime_1.Method.POST, '/delegate_fulfillment', definition.delegateFulfillment],
[connect_runtime_1.Method.POST, '/get_fulfillments', definition.getFulfillments],
[connect_runtime_1.Method.POST, '/cancel_fulfillment', definition.cancelFulfillment],
[connect_runtime_1.Method.POST, '/get_rates', definition.getRates],
[connect_runtime_1.Method.POST, '/get_recent_changes', definition.getRecentChanges],
[connect_runtime_1.Method.POST, '/get_inventory', definition.getInventory],
...(0, connect_runtime_1.mapExtensions)(definition.Extensions),
];
exports.createEndpointMapping = createEndpointMapping;
//# sourceMappingURL=create-endpoint-mapping.js.map