Skip to main content
Version: ๐Ÿšง 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);