From 95f706cdb5a8db4623bd0034721b604bd85d3594 Mon Sep 17 00:00:00 2001 From: Kyriakos Barbounakis Date: Fri, 9 Jun 2023 09:54:55 +0300 Subject: [PATCH] define context user (#153) * define context user * 2.10.3 --- data.d.ts | 16 ++++++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 19 insertions(+), 3 deletions(-) diff --git a/data.d.ts b/data.d.ts index 37bbd8f..97f6b73 100644 --- a/data.d.ts +++ b/data.d.ts @@ -32,6 +32,21 @@ export type Types = | 'AbsoluteURI' | 'RelativeURI'; +export declare interface ContextUserBase { + + name?: string; + + authenticationType?: string; + + authenticationToken?: string; + + authenticationProviderKey?: any; + + authenticationScope?: any; + + [k: string]: unknown; +} + export interface DataAssociationMappingBase { associationType?: 'association' | 'junction'; associationAdapter?: string; @@ -361,6 +376,7 @@ export interface DataAdapterBase { export interface DataContextBase { db?: DataAdapterBase; application?: ApplicationBase; + user?: ContextUserBase; model(name:any): DataModelBase; getConfiguration(): ConfigurationBase; diff --git a/package-lock.json b/package-lock.json index 6d4884b..623dbce 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@themost/common", - "version": "2.10.2", + "version": "2.10.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@themost/common", - "version": "2.10.2", + "version": "2.10.3", "license": "BSD-3-Clause", "dependencies": { "async": "^2.6.4", diff --git a/package.json b/package.json index 187ab0e..aa08d62 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@themost/common", - "version": "2.10.2", + "version": "2.10.3", "description": "MOST Web Framework Codename Blueshift - Common Module", "main": "index.js", "types": "index.d.ts",