@glissandoo/lib 1.0.12 → 1.0.14

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.
@@ -1,36 +1,13 @@
1
- import { LanguagesTypes } from '../lang';
2
- import { UserRegisterVia } from '../models/User/types';
3
1
  export declare namespace AuthFbFunctionsTypes {
4
2
  interface LoginParams {
5
3
  userId: string;
6
4
  idToken: string;
7
5
  }
8
- interface LoginResult {
9
- sessionCookie: string;
10
- }
11
- interface StatusParams {
12
- sessionCookie: string;
13
- }
6
+ type LoginResult = void;
7
+ type StatusParams = void;
14
8
  interface StatusResult {
15
9
  idToken: string | null;
16
10
  }
17
- interface LogoutParams {
18
- sessionCookie: string;
19
- }
11
+ type LogoutParams = void;
20
12
  type LogoutResult = void;
21
- interface RegisterParams {
22
- uid: string;
23
- name: string;
24
- lastname: string;
25
- email: string;
26
- via: UserRegisterVia;
27
- lang: LanguagesTypes;
28
- }
29
- type RegisterResult = void;
30
- interface GetTokenParams {
31
- userId: string;
32
- }
33
- interface GetTokenResult {
34
- token: string;
35
- }
36
13
  }
@@ -0,0 +1,7 @@
1
+ import { GroupPlayerRole } from '../models/Group/Player/types';
2
+ export interface AuthUserClaims {
3
+ groups?: Record<string, GroupPlayerRole>;
4
+ federation?: string;
5
+ partnership?: string;
6
+ superAdmin?: boolean;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissandoo/lib",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "description": "Glissandoo library js",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",