mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-05 13:02:54 +00:00
Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
659d0974f7 | ||
|
|
e8304eeeb4 | ||
|
|
dca9d26c66 | ||
|
|
852e0f5373 | ||
|
|
26dd531d24 | ||
|
|
52bdf93356 |
@@ -1,3 +1,11 @@
|
|||||||
|
# [0.60.0](https://gitlab.com/openstapps/core/compare/v0.59.0...v0.60.0) (2022-01-21)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# [0.59.0](https://gitlab.com/openstapps/core/compare/v0.58.0...v0.59.0) (2022-01-20)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# [0.58.0](https://gitlab.com/openstapps/core/compare/v0.57.0...v0.58.0) (2022-01-18)
|
# [0.58.0](https://gitlab.com/openstapps/core/compare/v0.57.0...v0.58.0) (2022-01-18)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@openstapps/core",
|
"name": "@openstapps/core",
|
||||||
"version": "0.59.0",
|
"version": "0.61.0",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@openstapps/core",
|
"name": "@openstapps/core",
|
||||||
"version": "0.59.0",
|
"version": "0.61.0",
|
||||||
"description": "StAppsCore - Generalized model of data",
|
"description": "StAppsCore - Generalized model of data",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"Model",
|
"Model",
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {SCUserConfiguration} from './user';
|
import {SCUserConfigurationMap} from './user';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Supported authorization provider types
|
* Supported authorization provider types
|
||||||
@@ -47,16 +47,6 @@ export interface SCAuthorizationProviderClient {
|
|||||||
*/
|
*/
|
||||||
clientId: string;
|
clientId: string;
|
||||||
|
|
||||||
/**
|
|
||||||
* Authorization provider requires PKCE
|
|
||||||
*/
|
|
||||||
pkce: boolean;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Redirct URL for after finishing authentication
|
|
||||||
*/
|
|
||||||
redirect: string;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Scopes to request
|
* Scopes to request
|
||||||
*/
|
*/
|
||||||
@@ -87,7 +77,7 @@ export interface SCAuthorizationProviderEndpoints {
|
|||||||
*
|
*
|
||||||
* @see https://www.npmjs.com/package/jsonpath
|
* @see https://www.npmjs.com/package/jsonpath
|
||||||
*/
|
*/
|
||||||
mapping: { [key in keyof SCUserConfiguration]: string; };
|
mapping: SCUserConfigurationMap;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* URL to revoke a token
|
* URL to revoke a token
|
||||||
|
|||||||
@@ -15,40 +15,50 @@
|
|||||||
|
|
||||||
import {SCAcademicPriceGroup} from '../things/abstract/thing-that-can-be-offered';
|
import {SCAcademicPriceGroup} from '../things/abstract/thing-that-can-be-offered';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* User configuration keys mapped to string type while including their requiredness
|
||||||
|
*/
|
||||||
|
export type SCUserConfigurationMap = { [K in keyof SCUserConfigurationOptional]?: string } & { [K in keyof SCUserConfigurationRequired]: string };
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A user configuration
|
* A user configuration
|
||||||
*/
|
*/
|
||||||
export interface SCUserConfiguration {
|
export type SCUserConfiguration = SCUserConfigurationRequired & SCUserConfigurationOptional;
|
||||||
/**
|
|
||||||
* User's e-mail
|
|
||||||
*/
|
|
||||||
email?: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* User's family name
|
|
||||||
*/
|
|
||||||
familyName?: string;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* User's given name
|
|
||||||
*/
|
|
||||||
givenName?: string;
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A user configurations required properties
|
||||||
|
*/
|
||||||
|
interface SCUserConfigurationRequired {
|
||||||
/**
|
/**
|
||||||
* ID given to the user
|
* ID given to the user
|
||||||
*/
|
*/
|
||||||
id: string;
|
id: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The complete name of the user combining all the parts of the name into one
|
* The complete name of the user combining all the parts of the name into one
|
||||||
*/
|
*/
|
||||||
name: string;
|
name: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Role assigned to the user
|
* Role assigned to the user
|
||||||
*/
|
*/
|
||||||
role: keyof SCAcademicPriceGroup;
|
role: keyof SCAcademicPriceGroup;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* A user configurations optional properties
|
||||||
|
*/
|
||||||
|
interface SCUserConfigurationOptional {
|
||||||
|
/**
|
||||||
|
* User's e-mail
|
||||||
|
*/
|
||||||
|
email?: string;
|
||||||
|
/**
|
||||||
|
* User's family name
|
||||||
|
*/
|
||||||
|
familyName?: string;
|
||||||
|
/**
|
||||||
|
* User's given name
|
||||||
|
*/
|
||||||
|
givenName?: string;
|
||||||
/**
|
/**
|
||||||
* Student ID given to the user
|
* Student ID given to the user
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user