@amedia/user 0.14.27 → 0.14.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/user.d.ts +13 -2
  2. package/package.json +5 -5
package/dist/user.d.ts CHANGED
@@ -4,6 +4,7 @@ declare module '@amedia/user/actions/authentication' {
4
4
  export const login: (requestedUrl: URL | string) => void;
5
5
  export const logout: () => Promise<void>;
6
6
  export const getSession: () => Promise<UserAttributes>;
7
+ export const getUser: () => Promise<UserAttributes>;
7
8
 
8
9
  }
9
10
  declare module '@amedia/user/actions/authentication.spec' {
@@ -283,6 +284,17 @@ declare module '@amedia/user/clients/pluto' {
283
284
  declare module '@amedia/user/clients/pluto.spec' {
284
285
  export {};
285
286
 
287
+ }
288
+ declare module '@amedia/user/clients/user' {
289
+ import { UserAttributes } from '@amedia/user/types';
290
+ export const resolveBadUserResponse: (response: Response) => Promise<{}>;
291
+ export const getCurrentUser: () => Promise<UserAttributes>;
292
+ export const compareWithCurrentUserAndLogDiff: (currentSession: UserAttributes) => Promise<UserAttributes>;
293
+
294
+ }
295
+ declare module '@amedia/user/clients/user.spec' {
296
+ export {};
297
+
286
298
  }
287
299
  declare module '@amedia/user/eventHandlers/activation' {
288
300
  export enum ActivationEvents {
@@ -614,9 +626,8 @@ declare module '@amedia/user/types' {
614
626
  export type UserAttributes = {
615
627
  uuid?: string | null;
616
628
  name?: string | null;
617
- email?: string | null;
618
- phone?: string | null;
619
629
  trackingKey?: string | null;
630
+ avatar?: string | null;
620
631
  extraData?: {
621
632
  [index: string]: unknown;
622
633
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amedia/user",
3
- "version": "0.14.27",
3
+ "version": "0.14.29",
4
4
  "description": "Client lib for working with aID user and associated data",
5
5
  "repository": "https://github.com/amedia/amedia-user-js",
6
6
  "author": "Amedia Utvikling (ID og data)",
@@ -37,17 +37,17 @@
37
37
  "devDependencies": {
38
38
  "@amedia/eslint-config-base": "^5.2.1",
39
39
  "@amedia/eslint-config-typescript": "^5.1.5",
40
- "@babel/eslint-parser": "^7.16.5",
40
+ "@babel/eslint-parser": "^7.17.0",
41
41
  "@eik/cli": "^2.0.22",
42
42
  "@eik/esbuild-plugin": "^1.1.7",
43
43
  "@types/jest": "^27.4.1",
44
- "@typescript-eslint/eslint-plugin": "^5.8.1",
45
- "@typescript-eslint/parser": "^5.15.0",
44
+ "@typescript-eslint/eslint-plugin": "^5.16.0",
45
+ "@typescript-eslint/parser": "^5.16.0",
46
46
  "cors": "^2.8.5",
47
47
  "esbuild": "^0.14.27",
48
48
  "eslint": "^8.11.0",
49
49
  "eslint-config-airbnb-typescript": "^16.1.4",
50
- "eslint-config-prettier": "^8.3.0",
50
+ "eslint-config-prettier": "^8.5.0",
51
51
  "eslint-plugin-import": "^2.25.4",
52
52
  "eslint-plugin-prettier": "^4.0.0",
53
53
  "express": "^4.17.3",