Compare commits

...

9 Commits

Author SHA1 Message Date
Rainer Killinger
d3048a12d8 0.63.0 2022-01-24 14:47:02 +01:00
Rainer Killinger
e14993114f fix: add auth object to index route 2022-01-24 14:45:17 +01:00
Rainer Killinger
4237f6ad60 docs: update changelog 2022-01-21 17:15:16 +01:00
Rainer Killinger
e7c1000bc4 0.62.0 2022-01-21 17:15:14 +01:00
Rainer Killinger
e0adb2332e fix: add missing lastPublished to SCCreativeWork 2022-01-21 17:14:16 +01:00
Rainer Killinger
e5696b23e7 docs: update changelog 2022-01-21 15:07:16 +01:00
Rainer Killinger
659d0974f7 0.61.0 2022-01-21 15:07:14 +01:00
Rainer Killinger
e8304eeeb4 refactor: remove unused auth provider properties 2022-01-21 15:06:11 +01:00
Rainer Killinger
dca9d26c66 docs: update changelog 2022-01-21 12:29:55 +01:00
8 changed files with 37 additions and 18 deletions

View File

@@ -1,3 +1,20 @@
# [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.59.0](https://gitlab.com/openstapps/core/compare/v0.58.0...v0.59.0) (2022-01-20)

2
package-lock.json generated
View File

@@ -1,6 +1,6 @@
{ {
"name": "@openstapps/core", "name": "@openstapps/core",
"version": "0.60.0", "version": "0.63.0",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {

View File

@@ -1,6 +1,6 @@
{ {
"name": "@openstapps/core", "name": "@openstapps/core",
"version": "0.60.0", "version": "0.63.0",
"description": "StAppsCore - Generalized model of data", "description": "StAppsCore - Generalized model of data",
"keywords": [ "keywords": [
"Model", "Model",

View File

@@ -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
*/ */

View File

@@ -13,8 +13,6 @@
* 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 * User configuration keys mapped to string type while including their requiredness
*/ */
@@ -37,10 +35,6 @@ interface SCUserConfigurationRequired {
* 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: keyof SCAcademicPriceGroup;
} }
/** /**
@@ -59,6 +53,10 @@ interface SCUserConfigurationRequired {
* User's given name * User's given name
*/ */
givenName?: string; givenName?: string;
/**
* Role assigned to the user
*/
role?: string;
/** /**
* Student ID given to the user * Student ID given to the user
*/ */

View File

@@ -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
*/ */

View File

@@ -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
*/ */

View File

@@ -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",