@glissandoo/lib 1.0.7 → 1.0.9

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 });
@@ -1,8 +1,11 @@
1
1
  export declare enum FbFunctionName {
2
- UserRegister = "user-register",
2
+ AuthLogin = "auth-login",
3
+ AuthStatus = "auth-status",
4
+ AuthLogout = "auth-logout",
5
+ AuthRegister = "auth-register",
6
+ AuthGetToken = "auth-getToken",
3
7
  UserOnCreate = "user-onCreate",
4
8
  UserOnUpdate = "user-onUpdate",
5
- UserGetToken = "user-getToken",
6
9
  GroupPublish = "group-publish",
7
10
  GroupEdit = "group-edit",
8
11
  GroupRemove = "group-remove",
@@ -3,10 +3,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FbFunctionName = void 0;
4
4
  var FbFunctionName;
5
5
  (function (FbFunctionName) {
6
- FbFunctionName["UserRegister"] = "user-register";
6
+ FbFunctionName["AuthLogin"] = "auth-login";
7
+ FbFunctionName["AuthStatus"] = "auth-status";
8
+ FbFunctionName["AuthLogout"] = "auth-logout";
9
+ FbFunctionName["AuthRegister"] = "auth-register";
10
+ FbFunctionName["AuthGetToken"] = "auth-getToken";
7
11
  FbFunctionName["UserOnCreate"] = "user-onCreate";
8
12
  FbFunctionName["UserOnUpdate"] = "user-onUpdate";
9
- FbFunctionName["UserGetToken"] = "user-getToken";
10
13
  FbFunctionName["GroupPublish"] = "group-publish";
11
14
  FbFunctionName["GroupEdit"] = "group-edit";
12
15
  FbFunctionName["GroupRemove"] = "group-remove";
@@ -9,10 +9,13 @@ var GCloudRegions;
9
9
  })(GCloudRegions = exports.GCloudRegions || (exports.GCloudRegions = {}));
10
10
  const defaultRegion = GCloudRegions.UsCentral1;
11
11
  const regionByFunctions = {
12
- [index_1.FbFunctionName.UserRegister]: GCloudRegions.UsCentral1,
12
+ [index_1.FbFunctionName.AuthLogin]: GCloudRegions.EuropeWest6,
13
+ [index_1.FbFunctionName.AuthStatus]: GCloudRegions.EuropeWest6,
14
+ [index_1.FbFunctionName.AuthLogout]: GCloudRegions.EuropeWest6,
15
+ [index_1.FbFunctionName.AuthRegister]: GCloudRegions.UsCentral1,
16
+ [index_1.FbFunctionName.AuthGetToken]: GCloudRegions.EuropeWest6,
13
17
  [index_1.FbFunctionName.UserOnCreate]: GCloudRegions.UsCentral1,
14
18
  [index_1.FbFunctionName.UserOnUpdate]: GCloudRegions.UsCentral1,
15
- [index_1.FbFunctionName.UserGetToken]: GCloudRegions.EuropeWest6,
16
19
  [index_1.FbFunctionName.GroupPublish]: GCloudRegions.EuropeWest6,
17
20
  [index_1.FbFunctionName.GroupEdit]: GCloudRegions.EuropeWest6,
18
21
  [index_1.FbFunctionName.GroupRemove]: GCloudRegions.UsCentral1,
@@ -0,0 +1,18 @@
1
+ export declare const colors: {
2
+ white: string;
3
+ black: string;
4
+ primary: string;
5
+ secondary: string;
6
+ dark: string;
7
+ light: string;
8
+ green: string;
9
+ yellow: string;
10
+ grayLight: string;
11
+ grayLightLight: string;
12
+ gray: string;
13
+ blue: string;
14
+ red: string;
15
+ orangeLightTint: string;
16
+ noWhite: string;
17
+ lessNoWhite: string;
18
+ };
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.colors = void 0;
4
+ exports.colors = {
5
+ white: '#FFFFFF',
6
+ black: '#000000',
7
+ primary: '#66c94a',
8
+ secondary: '#ff5f2e',
9
+ dark: '#004e66',
10
+ light: '#e1eef6',
11
+ green: '#56A902',
12
+ yellow: '#f9c00c',
13
+ grayLight: '#E0E0E0',
14
+ grayLightLight: '#F2F2F2',
15
+ gray: '#797979',
16
+ blue: '#01AADA',
17
+ red: '#E53A40',
18
+ orangeLightTint: '#ff8f6c',
19
+ noWhite: '#fffdfc',
20
+ lessNoWhite: '#f9f1ee',
21
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glissandoo/lib",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "Glissandoo library js",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",