mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-08 06:22:53 +00:00
Compare commits
18 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d3048a12d8 | ||
|
|
e14993114f | ||
|
|
4237f6ad60 | ||
|
|
e7c1000bc4 | ||
|
|
e0adb2332e | ||
|
|
e5696b23e7 | ||
|
|
659d0974f7 | ||
|
|
e8304eeeb4 | ||
|
|
dca9d26c66 | ||
|
|
852e0f5373 | ||
|
|
26dd531d24 | ||
|
|
52bdf93356 | ||
|
|
7509610145 | ||
|
|
972cdf392d | ||
|
|
4f758f7d0c | ||
|
|
980e899807 | ||
|
|
d1c5bb9595 | ||
|
|
dc9c0f528f |
34
CHANGELOG.md
34
CHANGELOG.md
@@ -1,3 +1,37 @@
|
|||||||
|
# [0.62.0](https://gitlab.com/openstapps/core/compare/v0.61.0...v0.62.0) (2022-01-21)
|
||||||
|
|
||||||
|
|
||||||
|
### Bug Fixes
|
||||||
|
|
||||||
|
* add missing lastPublished to SCCreativeWork ([e0adb23](https://gitlab.com/openstapps/core/commit/e0adb2332ec24ce388c4c008b51b7aa941948532))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# [0.61.0](https://gitlab.com/openstapps/core/compare/v0.60.0...v0.61.0) (2022-01-21)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# [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.57.0](https://gitlab.com/openstapps/core/compare/v0.56.0...v0.57.0) (2022-01-18)
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
* extend config to describe auth providers ([7553620](https://gitlab.com/openstapps/core/commit/7553620a5d330ebfb66461afeab700e36bd37165))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# [0.56.0](https://gitlab.com/openstapps/core/compare/v0.55.0...v0.56.0) (2021-12-17)
|
# [0.56.0](https://gitlab.com/openstapps/core/compare/v0.55.0...v0.56.0) (2021-12-17)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@openstapps/core",
|
"name": "@openstapps/core",
|
||||||
"version": "0.57.0",
|
"version": "0.63.0",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@openstapps/core",
|
"name": "@openstapps/core",
|
||||||
"version": "0.57.0",
|
"version": "0.63.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
|
||||||
*/
|
*/
|
||||||
@@ -78,7 +68,7 @@ export interface SCAuthorizationProviderEndpoints {
|
|||||||
authorization: string;
|
authorization: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* An authorization provider endpoints configuration
|
* URL to end current session
|
||||||
*/
|
*/
|
||||||
endSession?: string;
|
endSession?: string;
|
||||||
|
|
||||||
@@ -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
|
||||||
|
|||||||
@@ -13,18 +13,19 @@
|
|||||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import {SCMap} from '../general/map';
|
||||||
import {SCAuthorizationProviderType} from './authorization';
|
import {SCAuthorizationProviderType} from './authorization';
|
||||||
|
|
||||||
export interface SCFeatureConfiguration {
|
export interface SCFeatureConfiguration {
|
||||||
/**
|
/**
|
||||||
* Map of extern services mapped by their name (statically)
|
* Map of extern services mapped by their name (statically)
|
||||||
*/
|
*/
|
||||||
extern?: Map<string, SCFeatureConfigurationExtern>;
|
extern?: SCMap<SCFeatureConfigurationExtern>;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Map of plugins registered with the backend mapped by their name.
|
* Map of plugins registered with the backend mapped by their name.
|
||||||
*/
|
*/
|
||||||
plugins?: Map<string, SCFeatureConfigurationPlugin>;
|
plugins?: SCMap<SCFeatureConfigurationPlugin>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ export interface SCConfigFile {
|
|||||||
/**
|
/**
|
||||||
* Configuration for the supported authorization providers
|
* Configuration for the supported authorization providers
|
||||||
*/
|
*/
|
||||||
auth: { [key in SCAuthorizationProviderType]: SCAuthorizationProvider; };
|
auth: { [key in SCAuthorizationProviderType]?: SCAuthorizationProvider; };
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Configuration for the backend that is visible to clients
|
* Configuration for the backend that is visible to clients
|
||||||
|
|||||||
@@ -13,42 +13,50 @@
|
|||||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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;
|
||||||
/**
|
/**
|
||||||
* Role assigned to the user
|
* Role assigned to the user
|
||||||
*/
|
*/
|
||||||
role: keyof SCAcademicPriceGroup;
|
role?: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Student ID given to the user
|
* Student ID given to the user
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -14,6 +14,7 @@
|
|||||||
*/
|
*/
|
||||||
import {StatusCodes} from 'http-status-codes';
|
import {StatusCodes} from 'http-status-codes';
|
||||||
import {SCAppConfiguration} from '../../config/app';
|
import {SCAppConfiguration} from '../../config/app';
|
||||||
|
import {SCAuthorizationProvider, SCAuthorizationProviderType} from '../../config/authorization';
|
||||||
import {SCBackendConfiguration} from '../../config/backend';
|
import {SCBackendConfiguration} from '../../config/backend';
|
||||||
import {SCInternalServerErrorResponse} from '../errors/internal-server-error';
|
import {SCInternalServerErrorResponse} from '../errors/internal-server-error';
|
||||||
import {SCMethodNotAllowedErrorResponse} from '../errors/method-not-allowed';
|
import {SCMethodNotAllowedErrorResponse} from '../errors/method-not-allowed';
|
||||||
@@ -42,6 +43,11 @@ export interface SCIndexResponse {
|
|||||||
*/
|
*/
|
||||||
app: SCAppConfiguration;
|
app: SCAppConfiguration;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see SCAuthorizationProvider
|
||||||
|
*/
|
||||||
|
auth: { [key in SCAuthorizationProviderType]?: SCAuthorizationProvider; };
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see SCBackendConfiguration
|
* @see SCBackendConfiguration
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -71,6 +71,13 @@ export interface SCCreativeWorkWithoutReferences
|
|||||||
*/
|
*/
|
||||||
keywords?: string[];
|
keywords?: string[];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Date (in text form) the creative work was most recently
|
||||||
|
*
|
||||||
|
* @keyword
|
||||||
|
*/
|
||||||
|
lastPublished?: string;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Translated fields of the creative work
|
* Translated fields of the creative work
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -16,6 +16,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"firstPublished": "[ca. 1991]",
|
"firstPublished": "[ca. 1991]",
|
||||||
|
"lastPublished": "2000 Q1",
|
||||||
"publications": [
|
"publications": [
|
||||||
{
|
{
|
||||||
"uid": "603a6574-8910-588a-9e83-cd26e6988c74",
|
"uid": "603a6574-8910-588a-9e83-cd26e6988c74",
|
||||||
|
|||||||
Reference in New Issue
Block a user