@glissandoo/lib 1.0.8 → 1.0.10

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.
@@ -0,0 +1,36 @@
1
+ import { LanguagesTypes } from '../lang';
2
+ import { UserRegisterVia } from '../models/User/types';
3
+ export declare namespace AuthFbFunctionsTypes {
4
+ interface LoginParams {
5
+ userId: string;
6
+ idToken: string;
7
+ }
8
+ interface LoginResult {
9
+ sessionCookie: string;
10
+ }
11
+ interface StatusParams {
12
+ sessionCookie: string;
13
+ }
14
+ interface StatusResult {
15
+ idToken: string | null;
16
+ }
17
+ interface LogoutParams {
18
+ sessionCookie: string;
19
+ }
20
+ 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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -2,7 +2,6 @@ export declare enum FbFunctionName {
2
2
  UserRegister = "user-register",
3
3
  UserOnCreate = "user-onCreate",
4
4
  UserOnUpdate = "user-onUpdate",
5
- UserGetToken = "user-getToken",
6
5
  GroupPublish = "group-publish",
7
6
  GroupEdit = "group-edit",
8
7
  GroupRemove = "group-remove",
@@ -6,7 +6,6 @@ var FbFunctionName;
6
6
  FbFunctionName["UserRegister"] = "user-register";
7
7
  FbFunctionName["UserOnCreate"] = "user-onCreate";
8
8
  FbFunctionName["UserOnUpdate"] = "user-onUpdate";
9
- FbFunctionName["UserGetToken"] = "user-getToken";
10
9
  FbFunctionName["GroupPublish"] = "group-publish";
11
10
  FbFunctionName["GroupEdit"] = "group-edit";
12
11
  FbFunctionName["GroupRemove"] = "group-remove";
@@ -12,7 +12,6 @@ const regionByFunctions = {
12
12
  [index_1.FbFunctionName.UserRegister]: GCloudRegions.UsCentral1,
13
13
  [index_1.FbFunctionName.UserOnCreate]: GCloudRegions.UsCentral1,
14
14
  [index_1.FbFunctionName.UserOnUpdate]: GCloudRegions.UsCentral1,
15
- [index_1.FbFunctionName.UserGetToken]: GCloudRegions.EuropeWest6,
16
15
  [index_1.FbFunctionName.GroupPublish]: GCloudRegions.EuropeWest6,
17
16
  [index_1.FbFunctionName.GroupEdit]: GCloudRegions.EuropeWest6,
18
17
  [index_1.FbFunctionName.GroupRemove]: GCloudRegions.UsCentral1,
@@ -10,10 +10,4 @@ export declare namespace UserFbFunctionsTypes {
10
10
  lang: LanguagesTypes;
11
11
  }
12
12
  type RegisterResult = void;
13
- interface GetTokenParams {
14
- userId: string;
15
- }
16
- interface GetTokenResult {
17
- token: string;
18
- }
19
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissandoo/lib",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "Glissandoo library js",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",