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

🚀 Profile features

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

Inventory

FeatureComposed schema(s)Composed route(s)Purpose
createProfileFeaturecreateProfileSchemacreateProfileRouteCreate a profile.
getProfileFeaturegetProfileSchemagetProfileRouteRead one profile.
findProfilesFeaturefindProfilesSchemafindProfilesRouteList profiles.
editProfileFeatureupdateProfileSchemaupdateProfileRouteUpdate a profile.
deleteProfileFeaturedeleteProfileSchemadeleteProfileRouteDelete a profile.
getAvatarUploadUrlFeaturegetSignedImageUploadUrlSchemagetAvatarUploadUrlRouteCreate a signed avatar-upload URL.
findProfilesByIdentityIdFeaturefindByIdentityIdSchemafindProfilesByIdentityIdRouteList the caller’s identity profiles.
createProfileFollowFeaturecreateProfileFollowSchemacreateProfileFollowRouteFollow a profile.
deleteProfileFollowFeaturedeleteProfileFollowSchemadeleteProfileFollowRouteUnfollow a profile.
getProfileFollowersFeaturegetProfileFollowersSchemagetProfileFollowersRouteList followers.
createOrganizationFollowFeaturecreateOrganizationFollowSchemacreateOrganizationFollowRouteFollow an organization.
deleteOrganizationFollowFeaturedeleteOrganizationFollowSchemadeleteOrganizationFollowRouteUnfollow an organization.
createProductLikeFeaturecreateProductLikeSchemacreateProductLikeRouteLike a product.
deleteProductLikeFeaturedeleteProductLikeSchemadeleteProductLikeRouteRemove a product like.

Details

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

createProfileFeature

Implementation

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

View complete source
export const createProfileFeature = compose(createProfileSchema, createProfileRoute);

getProfileFeature

Implementation

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

View complete source
export const getProfileFeature = compose(getProfileSchema, getProfileRoute);

findProfilesFeature

Implementation

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

View complete source
export const findProfilesFeature = compose(findProfilesSchema, findProfilesRoute);

editProfileFeature

Implementation

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

The public feature name remains editProfileFeature although the route export is updateProfileRoute.

View complete source
export const editProfileFeature = compose(updateProfileSchema, updateProfileRoute);

deleteProfileFeature

Implementation

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

View complete source
export const deleteProfileFeature = compose(deleteProfileSchema, deleteProfileRoute);

getAvatarUploadUrlFeature

Implementation

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

The route requires the optional fileStorageDriver supplied to profileService.

View complete source
export const getAvatarUploadUrlFeature = compose(getSignedImageUploadUrlSchema, getAvatarUploadUrlRoute);

findProfilesByIdentityIdFeature

Implementation

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

View complete source
export const findProfilesByIdentityIdFeature = compose(findByIdentityIdSchema, findProfilesByIdentityIdRoute);

createProfileFollowFeature

Implementation

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

View complete source
export const createProfileFollowFeature = compose(createProfileFollowSchema, createProfileFollowRoute);

deleteProfileFollowFeature

Implementation

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

View complete source
export const deleteProfileFollowFeature = compose(deleteProfileFollowSchema, deleteProfileFollowRoute);

getProfileFollowersFeature

Implementation

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

View complete source
export const getProfileFollowersFeature = compose(getProfileFollowersSchema, getProfileFollowersRoute);

createOrganizationFollowFeature

Implementation

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

View complete source
export const createOrganizationFollowFeature = compose(createOrganizationFollowSchema, createOrganizationFollowRoute);

deleteOrganizationFollowFeature

Implementation

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

View complete source
export const deleteOrganizationFollowFeature = compose(deleteOrganizationFollowSchema, deleteOrganizationFollowRoute);

createProductLikeFeature

Implementation

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

View complete source
export const createProductLikeFeature = compose(createProductLikeSchema, createProductLikeRoute);

deleteProductLikeFeature

Implementation

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

View complete source
export const deleteProductLikeFeature = compose(deleteProductLikeSchema, deleteProductLikeRoute);