Built-In Services
::: Learn about the layered approach of Unchained :::
bookmarkServices
Enables you to manage bookmarks
- migrateBookmarksService(params: MigrateBookmarksService): Used to migrate bookmarked products from one user account to another. Useful for example when we want to keep a product a user has bookmarked before registering after they register.
fileServices
- linkFile(params: LinkFileService): Used to link files uploaded to an S3-compatible storage server after a successful upload using
createSignedURL
. - createSignedURL(params: CreateSignedURLService): Returns pre-signed URLs, a client can upload files directly to an S3-compatible cloud storage server (S3) without exposing the S3 credentials to the user.
- uploadFileFromURL(params: UploadFileFromURLService): Used to upload files from URL.
- uploadFileFromStream(params: UploadFileFromStreamService): Used to upload base64 file stream.
- removeFiles(params: RemoveFilesService): Used to remove a single file.
orderServices
- migrateOrderCartsService(params: MigrateOrderCartsService): Used to migrate order cart from one user to another. useful for example when we want to keep products a user has added to cart before logging in after they log in.
- createUserCartService(params: CreateUserCartService): Used to create cart for current user or a user with the specified ID through its arguments.
productServices
- removeProduct(params: RemoveProductService): Used to delete product. Note once a product is deleted there is no way reverting the action.
userServices
- getUserCountry(params: GetUserRoleActionsService): Returns the specified user country
- getUserLanguage(params: GetUserLanguageService): Returns the specified user Language
- getUserRoleActions(params: GetUserRoleActionsService): Returns the specified user roles
- updateUserAvatarAfterUpload(params: UpdateUserAvatarAfterUploadService): Used to update user avatar.