# Lisio-profils

This package aims to centralize all features of Lisio Web4All product. This includes all profiles, parameters, categories, storage interactions and user logic. It's written in TypeScript.  
It tends to be as light and efficient as possible to be in harmony with Lisio's values.
To modify this package don't forget to clone it from [Lisio-profils-package](https://gitlab.com/l3909/packages/lisio-profils).  
  
![Workflow](media://package_workflow.webp)  
  
Never forget to update version in package.json before push if you want your package to be published.  
This package is on CI/CD pipeline so you have nothing to do, don't forget to update version of used package in your projects to match with current package version.

## How it works ?

![Engine diagram](media://profil_diagram.webp)
LisioStringOptions represents all options files for a better legibility.  

How it works is very simple, we have 3 differents factory to create parameters, profiles and categories. The most complex part of this package is user controller but normally nobody will have to work on this part. So, we will be focused on parameters, profiles and categories.

### How to create ?

#### How to create a new parameter ?

See [LisioParameter](./classes/Src_Parameters.LisioParameter.html)

#### How to create a new profile ?

See [LisioProfile](./classes/Src_Profiles.LisioProfile.html)

#### How to create a new category ?

See [LisioCategory](./classes/Src_Categories.LisioCategory.html)

### How to modify ?

If you modify something never forget to change storage version !

#### How to modify a parameter ?

See [LisioParameter](./classes/Src_Parameters.LisioParameter.html)

#### How to modify a profile ?

See [LisioProfile](./classes/Src_Profiles.LisioProfile.html)

#### How to modify a category ?

See [LisioCategory](./classes/Src_Categories.LisioCategory.html)

### How to delete ?

#### How to delete a parameter ?

See [LisioParameter](./classes/Src_Parameters.LisioParameter.html)

#### How to delete a profile ?

See [LisioProfile](./classes/Src_Profiles.LisioProfile.html)

#### How to delete a category ?

See [LisioCategory](./classes/Src_Categories.LisioCategory.html)