メインコンテンツまでスキップ
バージョン: 🚧 Canary

🚀 Order features

Order features are SDK composers, not Express middleware; orderService mounts all six in service order.

Inventory​

FeatureComposed schema(s)Composed route(s)Purpose
createOrderFeaturecreateOrderSchemacreateOrderRouteCreate an order.
updateOrderFeatureupdateOrderSchemaupdateOrderRouteUpdate an order.
getOrderFeaturegetOrderSchemagetOrderRouteRead one order.
findOrdersFeaturefindOrdersSchemafindOrdersRouteList orders.
deleteOrderFeaturedeleteOrderSchemadeleteOrderRouteDelete one order.
findOrdersByOrganizationIdFeaturefindByOrganizationIdSchemafindOrdersByOrganizationIdRouteList one organization’s orders.

Details​

Each feature is mounted by orderService. The source definitions below show the exact schema-to-route composition.

createOrderFeature​

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by orderService or a compatible custom service context.

View complete source
export const createOrderFeature = compose(createOrderSchema, createOrderRoute);

updateOrderFeature​

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by orderService or a compatible custom service context.

View complete source
export const updateOrderFeature = compose(updateOrderSchema, updateOrderRoute);

getOrderFeature​

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by orderService or a compatible custom service context.

View complete source
export const getOrderFeature = compose(getOrderSchema, getOrderRoute);

findOrdersFeature​

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by orderService or a compatible custom service context.

View complete source
export const findOrdersFeature = compose(findOrdersSchema, findOrdersRoute);

deleteOrderFeature​

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by orderService or a compatible custom service context.

View complete source
export const deleteOrderFeature = compose(deleteOrderSchema, deleteOrderRoute);

findOrdersByOrganizationIdFeature​

Implementation

This feature composes the schema and route linked in its inventory row; it is mounted by orderService or a compatible custom service context.

Uses the cross-domain organization findByOrganizationIdSchema from the inventory row.

View complete source
export const findOrdersByOrganizationIdFeature = compose(findByOrganizationIdSchema, findOrdersByOrganizationIdRoute);