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

🚀 Product features

Product features are SDK composers, not Express middleware; productService mounts the Product features with the required stores and drivers.

Inventory​

FeatureComposed schema(s)Composed route(s)Purpose
createProductFeaturecreateProductSchemacreateProductRouteCreate a product.
createProductBatchFeaturecreateProductBatchSchemacreateProductBatchRouteCreate products in batch.
getProductFeaturesgetProductSchemagetProductRouteRead one product.
findProductsFeaturesfindProductsSchemafindProductsRouteList products with filtering and pagination.
editProductFeaturesupdateProductSchemaupdateProductRouteUpdate a product.
editProductBatchFeaturesupdateProductBatchSchemaupdateProductBatchRouteUpdate products in batch.
deleteProductFeaturesdeleteProductSchemadeleteProductRouteDelete a product.
deleteProductBatchFeaturesdeleteProductBatchSchemadeleteProductBatchRouteDelete products in batch.
copyProductFeaturescopyProductSchemacopyProductRouteCopy a product.
copyProductBatchFeaturescopyProductBatchSchemacopyProductBatchRouteCopy products in batch.
getProductImageUploadUrlFeaturegetSignedImageUploadUrlSchemagetProductImageUploadUrlRouteCreate a signed product-image upload URL.
createProductImageFeaturecreateProductImageSchemacreateProductImageRouteCreate a product image.
deleteProductImageFeaturedeleteProductImageSchemadeleteProductImageRouteDelete a product image.
createProductVariantFeaturecreateProductVariantSchemacreateProductVariantRouteCreate a product variant.
getProductVariantFeaturegetProductVariantSchemagetProductVariantRouteRead one product variant.
updateProductVariantFeatureupdateProductVariantSchemaupdateProductVariantRouteUpdate a product variant.
deleteProductVariantFeaturedeleteProductVariantSchemadeleteProductVariantRouteDelete a product variant.
findProductVariantsFeaturefindProductVariantsSchemafindProductVariantsRouteList product variants.
createProductVariantBulkFeaturecreateProductVariantBulkSchemacreateProductVariantBulkRouteCreate product variants in bulk.
updateProductVariantBulkFeatureupdateProductVariantBulkSchemaupdateProductVariantBulkRouteUpdate product variants in bulk.
deleteProductVariantBulkFeaturedeleteProductVariantBulkSchemadeleteProductVariantBulkRouteDelete product variants in bulk.
findProductsByOrganizationIdFeaturefindByOrganizationIdSchemafindProductsByOrganizationIdRouteList products for one organization.
getProductLikersFeaturegetProductLikersSchemagetProductLikersRouteList product likers.

Details​

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

createProductFeature​

Implementation

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

View complete source
export const createProductFeature = compose(
createProductSchema,
createProductRoute
);

createProductBatchFeature​

Implementation

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

View complete source
export const createProductBatchFeature = compose(
createProductBatchSchema,
createProductBatchRoute
);

getProductFeatures​

Implementation

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

View complete source
export const getProductFeatures = compose(getProductSchema, getProductRoute);

findProductsFeatures​

Implementation

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

View complete source
export const findProductsFeatures = compose(
findProductsSchema,
findProductsRoute
);

editProductFeatures​

Implementation

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

View complete source
export const editProductFeatures = compose(
updateProductSchema,
updateProductRoute
);

editProductBatchFeatures​

Implementation

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

View complete source
export const editProductBatchFeatures = compose(
updateProductBatchSchema,
updateProductBatchRoute
);

deleteProductFeatures​

Implementation

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

View complete source
export const deleteProductFeatures = compose(
deleteProductSchema,
deleteProductRoute
);

deleteProductBatchFeatures​

Implementation

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

View complete source
export const deleteProductBatchFeatures = compose(
deleteProductBatchSchema,
deleteProductBatchRoute
);

copyProductFeatures​

Implementation

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

View complete source
export const copyProductFeatures = compose(copyProductSchema, copyProductRoute);

copyProductBatchFeatures​

Implementation

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

View complete source
export const copyProductBatchFeatures = compose(
copyProductBatchSchema,
copyProductBatchRoute
);

getProductImageUploadUrlFeature​

Implementation

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

View complete source
export const getProductImageUploadUrlFeature = compose(
getSignedImageUploadUrlSchema,
getProductImageUploadUrlRoute
);

createProductImageFeature​

Implementation

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

View complete source
export const createProductImageFeature = compose(
createProductImageSchema,
createProductImageRoute
);

deleteProductImageFeature​

Implementation

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

View complete source
export const deleteProductImageFeature = compose(
deleteProductImageSchema,
deleteProductImageRoute
);

createProductVariantFeature​

Implementation

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

View complete source
export const createProductVariantFeature = compose(
createProductVariantSchema,
createProductVariantRoute
);

getProductVariantFeature​

Implementation

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

View complete source
export const getProductVariantFeature = compose(
getProductVariantSchema,
getProductVariantRoute
);

updateProductVariantFeature​

Implementation

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

View complete source
export const updateProductVariantFeature = compose(
updateProductVariantSchema,
updateProductVariantRoute
);

deleteProductVariantFeature​

Implementation

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

View complete source
export const deleteProductVariantFeature = compose(
deleteProductVariantSchema,
deleteProductVariantRoute
);

findProductVariantsFeature​

Implementation

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

View complete source
export const findProductVariantsFeature = compose(
findProductVariantsSchema,
findProductVariantsRoute
);

createProductVariantBulkFeature​

Implementation

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

View complete source
export const createProductVariantBulkFeature = compose(
createProductVariantBulkSchema,
createProductVariantBulkRoute
);

updateProductVariantBulkFeature​

Implementation

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

View complete source
export const updateProductVariantBulkFeature = compose(
updateProductVariantBulkSchema,
updateProductVariantBulkRoute
);

deleteProductVariantBulkFeature​

Implementation

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

View complete source
export const deleteProductVariantBulkFeature = compose(
deleteProductVariantBulkSchema,
deleteProductVariantBulkRoute
);

findProductsByOrganizationIdFeature​

Implementation

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

View complete source
export const findProductsByOrganizationIdFeature = compose(
findByOrganizationIdSchema,
findProductsByOrganizationIdRoute
);

getProductLikersFeature​

Implementation

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

View complete source
export const getProductLikersFeature = compose(
getProductLikersSchema,
getProductLikersRoute
);