@rpg-engine/shared 0.0.4 → 0.0.7
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.
- package/README.md +24 -6
- package/dist/constants/world.constants.d.ts +11 -0
- package/dist/constants/world.constants.d.ts.map +1 -0
- package/dist/constants/world.constants.js +14 -0
- package/dist/constants/world.constants.js.map +1 -0
- package/dist/index.d.ts +19 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +19 -8
- package/dist/index.js.map +1 -1
- package/dist/libs/TextHelper.d.ts +8 -0
- package/dist/libs/TextHelper.d.ts.map +1 -0
- package/dist/libs/TextHelper.js +22 -0
- package/dist/libs/TextHelper.js.map +1 -0
- package/dist/translations/onboarding.lang.d.ts +11 -0
- package/dist/translations/onboarding.lang.d.ts.map +1 -0
- package/dist/translations/onboarding.lang.js +22 -0
- package/dist/translations/onboarding.lang.js.map +1 -0
- package/dist/types/AnimationTypes.d.ts +1 -1
- package/dist/types/AssetTypes.d.ts +1 -1
- package/dist/types/PreloadSceneTypes.js +1 -1
- package/dist/types/animation.types.d.ts +8 -0
- package/dist/types/animation.types.d.ts.map +1 -0
- package/dist/types/animation.types.js +3 -0
- package/dist/types/animation.types.js.map +1 -0
- package/dist/types/api.types.d.ts +21 -0
- package/dist/types/api.types.d.ts.map +1 -0
- package/dist/types/api.types.js +20 -0
- package/dist/types/api.types.js.map +1 -0
- package/dist/types/asset.types.d.ts +7 -0
- package/dist/types/asset.types.d.ts.map +1 -0
- package/dist/types/asset.types.js +3 -0
- package/dist/types/asset.types.js.map +1 -0
- package/dist/types/auth.types.d.ts +8 -0
- package/dist/types/auth.types.d.ts.map +1 -0
- package/dist/types/auth.types.js +3 -0
- package/dist/types/auth.types.js.map +1 -0
- package/dist/types/character.types.d.ts +30 -0
- package/dist/types/character.types.d.ts.map +1 -0
- package/dist/types/character.types.js +20 -0
- package/dist/types/character.types.js.map +1 -0
- package/dist/types/device.types.d.ts +25 -0
- package/dist/types/device.types.d.ts.map +1 -0
- package/dist/types/device.types.js +8 -0
- package/dist/types/device.types.js.map +1 -0
- package/dist/types/env.types.d.ts +6 -0
- package/dist/types/env.types.d.ts.map +1 -0
- package/dist/types/env.types.js +10 -0
- package/dist/types/env.types.js.map +1 -0
- package/dist/types/googleOAuth.types.d.ts +48 -0
- package/dist/types/googleOAuth.types.d.ts.map +1 -0
- package/dist/types/googleOAuth.types.js +3 -0
- package/dist/types/googleOAuth.types.js.map +1 -0
- package/dist/types/maps.types.d.ts +17 -0
- package/dist/types/maps.types.d.ts.map +1 -0
- package/dist/types/maps.types.js +11 -0
- package/dist/types/maps.types.js.map +1 -0
- package/dist/types/pagination.types.d.ts +14 -0
- package/dist/types/pagination.types.d.ts.map +1 -0
- package/dist/types/pagination.types.js +3 -0
- package/dist/types/pagination.types.js.map +1 -0
- package/dist/types/places.types.d.ts +17 -0
- package/dist/types/places.types.d.ts.map +1 -0
- package/dist/types/places.types.js +10 -0
- package/dist/types/places.types.js.map +1 -0
- package/dist/types/player.types.d.ts +53 -0
- package/dist/types/player.types.d.ts.map +1 -0
- package/dist/types/player.types.js +14 -0
- package/dist/types/player.types.js.map +1 -0
- package/dist/types/preloadScene.types.d.ts +5 -0
- package/dist/types/preloadScene.types.d.ts.map +1 -0
- package/dist/types/preloadScene.types.js +8 -0
- package/dist/types/preloadScene.types.js.map +1 -0
- package/dist/types/resource.types.d.ts +5 -0
- package/dist/types/resource.types.d.ts.map +1 -0
- package/dist/types/resource.types.js +3 -0
- package/dist/types/resource.types.js.map +1 -0
- package/dist/types/scene.types.d.ts +4 -0
- package/dist/types/scene.types.d.ts.map +1 -0
- package/dist/types/scene.types.js +3 -0
- package/dist/types/scene.types.js.map +1 -0
- package/dist/types/translation.types.d.ts +6 -0
- package/dist/types/translation.types.d.ts.map +1 -0
- package/dist/types/translation.types.js +9 -0
- package/dist/types/translation.types.js.map +1 -0
- package/dist/types/user.types.d.ts +99 -0
- package/dist/types/user.types.d.ts.map +1 -0
- package/dist/types/user.types.js +39 -0
- package/dist/types/user.types.js.map +1 -0
- package/dist/types/validation.types.d.ts +10 -0
- package/dist/types/validation.types.d.ts.map +1 -0
- package/dist/types/validation.types.js +3 -0
- package/dist/types/validation.types.js.map +1 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,11 +1,29 @@
|
|
|
1
|
-
# `@rpg-engine/
|
|
1
|
+
# `@rpg-engine/shared`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
# How to update our shared packages?
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
# Important
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
- You can push this project directly to master. Just make sure you're in sync with master before starting to work (git pull origin master)
|
|
8
|
+
|
|
9
|
+
# Pre-requisites:
|
|
10
|
+
|
|
11
|
+
- You must have the .npmrc file set on the root of this project. If you don't, [please check our notion documentation](https://www.notion.so/projectstockalert/Configuration-files-a1725ae8e64a497fb617d92a17ab29fd#7fe40aa161404c06b145c1b60c849495)
|
|
12
|
+
|
|
13
|
+
# Step-by-step:
|
|
14
|
+
|
|
15
|
+
1. Implement your desired changes. Remember to export any types in index.ts
|
|
16
|
+
|
|
17
|
+
2. `yarn publish`
|
|
9
18
|
|
|
10
|
-
|
|
19
|
+
3. Update back-end and front-end packages
|
|
20
|
+
|
|
21
|
+
References: https://cameronnokes.com/blog/the-30-second-guide-to-publishing-a-typescript-package-to-npm/
|
|
22
|
+
|
|
23
|
+
# Notes
|
|
24
|
+
|
|
25
|
+
- First time publishing will require you to explicitly set it to public:
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
yarn publish --access public
|
|
11
29
|
```
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const WORLD_WIDTH = 1600;
|
|
2
|
+
export declare const WORLD_HEIGHT = 1600;
|
|
3
|
+
export declare const CAMERA_VIEWPORT_WIDTH = 812;
|
|
4
|
+
export declare const CAMERA_VIEWPORT_HEIGHT = 375;
|
|
5
|
+
export declare const GRID_WIDTH = 16;
|
|
6
|
+
export declare const GRID_HEIGHT = 16;
|
|
7
|
+
export declare const TILE_WIDTH = 16;
|
|
8
|
+
export declare const TILE_HEIGHT = 16;
|
|
9
|
+
export declare const CAMERA_VIEWPORT_OFFSET_X: number;
|
|
10
|
+
export declare const CAMERA_VIEWPORT_OFFSET_Y: number;
|
|
11
|
+
//# sourceMappingURL=world.constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"world.constants.d.ts","sourceRoot":"","sources":["../../src/constants/world.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,OAAO,CAAC;AAChC,eAAO,MAAM,YAAY,OAAO,CAAC;AAEjC,eAAO,MAAM,qBAAqB,MAAM,CAAC;AACzC,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAE1C,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,WAAW,KAAK,CAAC;AAE9B,eAAO,MAAM,UAAU,KAAK,CAAC;AAC7B,eAAO,MAAM,WAAW,KAAK,CAAC;AAI9B,eAAO,MAAM,wBAAwB,QAAiB,CAAC;AACvD,eAAO,MAAM,wBAAwB,QAAkB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CAMERA_VIEWPORT_OFFSET_Y = exports.CAMERA_VIEWPORT_OFFSET_X = exports.TILE_HEIGHT = exports.TILE_WIDTH = exports.GRID_HEIGHT = exports.GRID_WIDTH = exports.CAMERA_VIEWPORT_HEIGHT = exports.CAMERA_VIEWPORT_WIDTH = exports.WORLD_HEIGHT = exports.WORLD_WIDTH = void 0;
|
|
4
|
+
exports.WORLD_WIDTH = 1600;
|
|
5
|
+
exports.WORLD_HEIGHT = 1600;
|
|
6
|
+
exports.CAMERA_VIEWPORT_WIDTH = 812;
|
|
7
|
+
exports.CAMERA_VIEWPORT_HEIGHT = 375;
|
|
8
|
+
exports.GRID_WIDTH = 16;
|
|
9
|
+
exports.GRID_HEIGHT = 16;
|
|
10
|
+
exports.TILE_WIDTH = 16;
|
|
11
|
+
exports.TILE_HEIGHT = 16;
|
|
12
|
+
exports.CAMERA_VIEWPORT_OFFSET_X = exports.GRID_WIDTH * 4;
|
|
13
|
+
exports.CAMERA_VIEWPORT_OFFSET_Y = exports.GRID_HEIGHT * 4;
|
|
14
|
+
//# sourceMappingURL=world.constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"world.constants.js","sourceRoot":"","sources":["../../src/constants/world.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG,IAAI,CAAC;AACnB,QAAA,YAAY,GAAG,IAAI,CAAC;AAEpB,QAAA,qBAAqB,GAAG,GAAG,CAAC;AAC5B,QAAA,sBAAsB,GAAG,GAAG,CAAC;AAE7B,QAAA,UAAU,GAAG,EAAE,CAAC;AAChB,QAAA,WAAW,GAAG,EAAE,CAAC;AAEjB,QAAA,UAAU,GAAG,EAAE,CAAC;AAChB,QAAA,WAAW,GAAG,EAAE,CAAC;AAIjB,QAAA,wBAAwB,GAAG,kBAAU,GAAG,CAAC,CAAC;AAC1C,QAAA,wBAAwB,GAAG,mBAAW,GAAG,CAAC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,20 @@
|
|
|
1
|
-
export * from "./constants/
|
|
2
|
-
export * from "./
|
|
3
|
-
export * from "./types/
|
|
4
|
-
export * from "./types/
|
|
5
|
-
export * from "./types/
|
|
6
|
-
export * from "./types/
|
|
7
|
-
export * from "./types/
|
|
8
|
-
export * from "./types/
|
|
1
|
+
export * from "./constants/world.constants";
|
|
2
|
+
export * from "./libs/TextHelper";
|
|
3
|
+
export * from "./types/animation.types";
|
|
4
|
+
export * from "./types/api.types";
|
|
5
|
+
export * from "./types/auth.types";
|
|
6
|
+
export * from "./types/character.types";
|
|
7
|
+
export * from "./types/device.types";
|
|
8
|
+
export * from "./types/env.types";
|
|
9
|
+
export * from "./types/googleOAuth.types";
|
|
10
|
+
export * from "./types/maps.types";
|
|
11
|
+
export * from "./types/pagination.types";
|
|
12
|
+
export * from "./types/places.types";
|
|
13
|
+
export * from "./types/player.types";
|
|
14
|
+
export * from "./types/preloadScene.types";
|
|
15
|
+
export * from "./types/resource.types";
|
|
16
|
+
export * from "./types/scene.types";
|
|
17
|
+
export * from "./types/translation.types";
|
|
18
|
+
export * from "./types/user.types";
|
|
19
|
+
export * from "./types/validation.types";
|
|
9
20
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -10,12 +10,23 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
10
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./constants/
|
|
14
|
-
__exportStar(require("./
|
|
15
|
-
__exportStar(require("./types/
|
|
16
|
-
__exportStar(require("./types/
|
|
17
|
-
__exportStar(require("./types/
|
|
18
|
-
__exportStar(require("./types/
|
|
19
|
-
__exportStar(require("./types/
|
|
20
|
-
__exportStar(require("./types/
|
|
13
|
+
__exportStar(require("./constants/world.constants"), exports);
|
|
14
|
+
__exportStar(require("./libs/TextHelper"), exports);
|
|
15
|
+
__exportStar(require("./types/animation.types"), exports);
|
|
16
|
+
__exportStar(require("./types/api.types"), exports);
|
|
17
|
+
__exportStar(require("./types/auth.types"), exports);
|
|
18
|
+
__exportStar(require("./types/character.types"), exports);
|
|
19
|
+
__exportStar(require("./types/device.types"), exports);
|
|
20
|
+
__exportStar(require("./types/env.types"), exports);
|
|
21
|
+
__exportStar(require("./types/googleOAuth.types"), exports);
|
|
22
|
+
__exportStar(require("./types/maps.types"), exports);
|
|
23
|
+
__exportStar(require("./types/pagination.types"), exports);
|
|
24
|
+
__exportStar(require("./types/places.types"), exports);
|
|
25
|
+
__exportStar(require("./types/player.types"), exports);
|
|
26
|
+
__exportStar(require("./types/preloadScene.types"), exports);
|
|
27
|
+
__exportStar(require("./types/resource.types"), exports);
|
|
28
|
+
__exportStar(require("./types/scene.types"), exports);
|
|
29
|
+
__exportStar(require("./types/translation.types"), exports);
|
|
30
|
+
__exportStar(require("./types/user.types"), exports);
|
|
31
|
+
__exportStar(require("./types/validation.types"), exports);
|
|
21
32
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,8DAA4C;AAC5C,oDAAkC;AAClC,0DAAwC;AACxC,oDAAkC;AAClC,qDAAmC;AACnC,0DAAwC;AACxC,uDAAqC;AACrC,oDAAkC;AAClC,4DAA0C;AAC1C,qDAAmC;AACnC,2DAAyC;AACzC,uDAAqC;AACrC,uDAAqC;AACrC,6DAA2C;AAC3C,yDAAuC;AACvC,sDAAoC;AACpC,4DAA0C;AAC1C,qDAAmC;AACnC,2DAAyC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare class TextHelper {
|
|
2
|
+
static capitalizeFirstLetter(str: string): string;
|
|
3
|
+
private static _escapeRegExp;
|
|
4
|
+
static replaceAll(str: string, find: string, replace: string): string;
|
|
5
|
+
static stringPrepare(str: string): string;
|
|
6
|
+
static getFileExtension(path: string): string;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=TextHelper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextHelper.d.ts","sourceRoot":"","sources":["../../src/libs/TextHelper.ts"],"names":[],"mappings":"AAAA,qBAAa,UAAU;IACrB,MAAM,CAAC,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAIjD,OAAO,CAAC,MAAM,CAAC,aAAa;IAG5B,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,MAAM;IAIrE,MAAM,CAAC,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAIzC,MAAM,CAAC,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;CAG9C"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TextHelper = void 0;
|
|
4
|
+
class TextHelper {
|
|
5
|
+
static capitalizeFirstLetter(str) {
|
|
6
|
+
return str.charAt(0).toUpperCase() + str.slice(1);
|
|
7
|
+
}
|
|
8
|
+
static _escapeRegExp(str) {
|
|
9
|
+
return str.replace(/([.*+?^=!:${}()|\[\]\/\\])/g, "\\$1");
|
|
10
|
+
}
|
|
11
|
+
static replaceAll(str, find, replace) {
|
|
12
|
+
return str.replace(new RegExp(TextHelper._escapeRegExp(find), "g"), replace);
|
|
13
|
+
}
|
|
14
|
+
static stringPrepare(str) {
|
|
15
|
+
return str.toLowerCase().trim();
|
|
16
|
+
}
|
|
17
|
+
static getFileExtension(path) {
|
|
18
|
+
return path.slice((Math.max(0, path.lastIndexOf(".")) || Infinity) + 1);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
exports.TextHelper = TextHelper;
|
|
22
|
+
//# sourceMappingURL=TextHelper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextHelper.js","sourceRoot":"","sources":["../../src/libs/TextHelper.ts"],"names":[],"mappings":";;;AAAA,MAAa,UAAU;IACrB,MAAM,CAAC,qBAAqB,CAAC,GAAW;QACtC,OAAO,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACpD,CAAC;IAEO,MAAM,CAAC,aAAa,CAAC,GAAW;QACtC,OAAO,GAAG,CAAC,OAAO,CAAC,6BAA6B,EAAE,MAAM,CAAC,CAAC;IAC5D,CAAC;IACD,MAAM,CAAC,UAAU,CAAC,GAAW,EAAE,IAAY,EAAE,OAAe;QAC1D,OAAO,GAAG,CAAC,OAAO,CAAC,IAAI,MAAM,CAAC,UAAU,CAAC,aAAa,CAAC,IAAI,CAAC,EAAE,GAAG,CAAC,EAAE,OAAO,CAAC,CAAC;IAC/E,CAAC;IAED,MAAM,CAAC,aAAa,CAAC,GAAW;QAC9B,OAAO,GAAG,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE,CAAC;IAClC,CAAC;IAED,MAAM,CAAC,gBAAgB,CAAC,IAAY;QAClC,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,IAAI,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1E,CAAC;CACF;AAnBD,gCAmBC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onboarding.lang.d.ts","sourceRoot":"","sources":["../../src/translations/onboarding.lang.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO;;;;;;;;;CAiBnB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.strings = void 0;
|
|
4
|
+
exports.strings = {
|
|
5
|
+
firstStockBuyModalBody: {
|
|
6
|
+
eng: `<p>Congratulations, you bought your first stock on the simulator!</p>
|
|
7
|
+
<p>
|
|
8
|
+
Now you can check the performance of your portfolio daily, under the
|
|
9
|
+
<strong>performance tab</strong> (after 24 hours).
|
|
10
|
+
</p>`,
|
|
11
|
+
ptBr: `<p> Parabéns, você comprou sua primeira ação no simulador! </p>
|
|
12
|
+
<p>
|
|
13
|
+
Agora você pode verificar o desempenho do seu portfólio diariamente, no
|
|
14
|
+
<strong> guia desempenho </strong> (após 24 horas).
|
|
15
|
+
</p>`,
|
|
16
|
+
},
|
|
17
|
+
firstStockSellModalBody: {
|
|
18
|
+
eng: `<p>Congratulations, you sold your first stock on the simulator!</p>`,
|
|
19
|
+
ptBr: `<p> Parabéns, você vendeu sua primeira ação no simulador! </p>`,
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=onboarding.lang.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onboarding.lang.js","sourceRoot":"","sources":["../../src/translations/onboarding.lang.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG;IACrB,sBAAsB,EAAE;QACtB,GAAG,EAAE;;;;SAIA;QACL,IAAI,EAAE;;;;SAID;KACN;IACD,uBAAuB,EAAE;QACvB,GAAG,EAAE,qEAAqE;QAC1E,IAAI,EAAE,gEAAgE;KACvE;CACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animation.types.d.ts","sourceRoot":"","sources":["../../src/types/animation.types.ts"],"names":[],"mappings":"AAAA,oBAAY,kBAAkB,GAAG,MAAM,GAAG,IAAI,GAAG,MAAM,GAAG,OAAO,CAAC;AAElE,MAAM,WAAW,cAAc;IAC7B,CAAC,SAAS,EAAE,MAAM,GAAG;QACnB,OAAO,EAAE,MAAM,EAAE,CAAC;QAClB,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;KAC7B,CAAC;CACH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"animation.types.js","sourceRoot":"","sources":["../../src/types/animation.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export interface IAPIError {
|
|
2
|
+
statusCode: number;
|
|
3
|
+
message: string[] | string;
|
|
4
|
+
error: string;
|
|
5
|
+
}
|
|
6
|
+
export declare enum HttpStatus {
|
|
7
|
+
OK = 200,
|
|
8
|
+
Created = 201,
|
|
9
|
+
PermanentRedirect = 301,
|
|
10
|
+
TemporaryRedirect = 302,
|
|
11
|
+
BadRequest = 400,
|
|
12
|
+
Unauthorized = 401,
|
|
13
|
+
Forbidden = 403,
|
|
14
|
+
NotFound = 404,
|
|
15
|
+
MethodNotAllowed = 405,
|
|
16
|
+
Conflict = 409,
|
|
17
|
+
UnprocessableEntity = 422,
|
|
18
|
+
InternalServerError = 500,
|
|
19
|
+
ServiceUnavailable = 503
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=api.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.types.d.ts","sourceRoot":"","sources":["../../src/types/api.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;CACf;AAED,oBAAY,UAAU;IACpB,EAAE,MAAM;IACR,OAAO,MAAM;IACb,iBAAiB,MAAM;IACvB,iBAAiB,MAAM;IACvB,UAAU,MAAM;IAChB,YAAY,MAAM;IAClB,SAAS,MAAM;IACf,QAAQ,MAAM;IACd,gBAAgB,MAAM;IACtB,QAAQ,MAAM;IACd,mBAAmB,MAAM;IACzB,mBAAmB,MAAM;IACzB,kBAAkB,MAAM;CACzB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HttpStatus = void 0;
|
|
4
|
+
var HttpStatus;
|
|
5
|
+
(function (HttpStatus) {
|
|
6
|
+
HttpStatus[HttpStatus["OK"] = 200] = "OK";
|
|
7
|
+
HttpStatus[HttpStatus["Created"] = 201] = "Created";
|
|
8
|
+
HttpStatus[HttpStatus["PermanentRedirect"] = 301] = "PermanentRedirect";
|
|
9
|
+
HttpStatus[HttpStatus["TemporaryRedirect"] = 302] = "TemporaryRedirect";
|
|
10
|
+
HttpStatus[HttpStatus["BadRequest"] = 400] = "BadRequest";
|
|
11
|
+
HttpStatus[HttpStatus["Unauthorized"] = 401] = "Unauthorized";
|
|
12
|
+
HttpStatus[HttpStatus["Forbidden"] = 403] = "Forbidden";
|
|
13
|
+
HttpStatus[HttpStatus["NotFound"] = 404] = "NotFound";
|
|
14
|
+
HttpStatus[HttpStatus["MethodNotAllowed"] = 405] = "MethodNotAllowed";
|
|
15
|
+
HttpStatus[HttpStatus["Conflict"] = 409] = "Conflict";
|
|
16
|
+
HttpStatus[HttpStatus["UnprocessableEntity"] = 422] = "UnprocessableEntity";
|
|
17
|
+
HttpStatus[HttpStatus["InternalServerError"] = 500] = "InternalServerError";
|
|
18
|
+
HttpStatus[HttpStatus["ServiceUnavailable"] = 503] = "ServiceUnavailable";
|
|
19
|
+
})(HttpStatus = exports.HttpStatus || (exports.HttpStatus = {}));
|
|
20
|
+
//# sourceMappingURL=api.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.types.js","sourceRoot":"","sources":["../../src/types/api.types.ts"],"names":[],"mappings":";;;AAMA,IAAY,UAcX;AAdD,WAAY,UAAU;IACpB,yCAAQ,CAAA;IACR,mDAAa,CAAA;IACb,uEAAuB,CAAA;IACvB,uEAAuB,CAAA;IACvB,yDAAgB,CAAA;IAChB,6DAAkB,CAAA;IAClB,uDAAe,CAAA;IACf,qDAAc,CAAA;IACd,qEAAsB,CAAA;IACtB,qDAAc,CAAA;IACd,2EAAyB,CAAA;IACzB,2EAAyB,CAAA;IACzB,yEAAwB,CAAA;AAC1B,CAAC,EAdW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAcrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asset.types.d.ts","sourceRoot":"","sources":["../../src/types/asset.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,MAAM,WAAW,UAAU;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,cAAc,CAAC;CAC5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"asset.types.js","sourceRoot":"","sources":["../../src/types/asset.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.types.d.ts","sourceRoot":"","sources":["../../src/types/auth.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,yBAAyB;IACxC,WAAW,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.types.js","sourceRoot":"","sources":["../../src/types/auth.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { AnimationDirection } from "./animation.types";
|
|
2
|
+
import { IUser } from "./user.types";
|
|
3
|
+
export interface ICharacter {
|
|
4
|
+
name: string;
|
|
5
|
+
owner: IUser;
|
|
6
|
+
health: number;
|
|
7
|
+
mana: number;
|
|
8
|
+
x: number;
|
|
9
|
+
y: number;
|
|
10
|
+
direction: AnimationDirection;
|
|
11
|
+
class: CharacterClass;
|
|
12
|
+
gender: CharacterGender;
|
|
13
|
+
totalWeightCapacity: number;
|
|
14
|
+
isOnline: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare enum CharacterClass {
|
|
17
|
+
None = "None",
|
|
18
|
+
Warrior = "Warrior",
|
|
19
|
+
Berserker = "Berserker",
|
|
20
|
+
Cleric = "Cleric",
|
|
21
|
+
Sorcerer = "Sorcerer",
|
|
22
|
+
Rogue = "Rogue",
|
|
23
|
+
Hunter = "Hunter",
|
|
24
|
+
Assassin = "Assassin"
|
|
25
|
+
}
|
|
26
|
+
export declare enum CharacterGender {
|
|
27
|
+
Male = "Male",
|
|
28
|
+
Female = "Female"
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=character.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"character.types.d.ts","sourceRoot":"","sources":["../../src/types/character.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAErC,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,KAAK,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,kBAAkB,CAAC;IAC9B,KAAK,EAAE,cAAc,CAAC;IACtB,MAAM,EAAE,eAAe,CAAC;IACxB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,oBAAY,cAAc;IACxB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,MAAM,WAAW;IACjB,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,QAAQ,aAAa;CACtB;AAED,oBAAY,eAAe;IACzB,IAAI,SAAS;IACb,MAAM,WAAW;CAClB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CharacterGender = exports.CharacterClass = void 0;
|
|
4
|
+
var CharacterClass;
|
|
5
|
+
(function (CharacterClass) {
|
|
6
|
+
CharacterClass["None"] = "None";
|
|
7
|
+
CharacterClass["Warrior"] = "Warrior";
|
|
8
|
+
CharacterClass["Berserker"] = "Berserker";
|
|
9
|
+
CharacterClass["Cleric"] = "Cleric";
|
|
10
|
+
CharacterClass["Sorcerer"] = "Sorcerer";
|
|
11
|
+
CharacterClass["Rogue"] = "Rogue";
|
|
12
|
+
CharacterClass["Hunter"] = "Hunter";
|
|
13
|
+
CharacterClass["Assassin"] = "Assassin";
|
|
14
|
+
})(CharacterClass = exports.CharacterClass || (exports.CharacterClass = {}));
|
|
15
|
+
var CharacterGender;
|
|
16
|
+
(function (CharacterGender) {
|
|
17
|
+
CharacterGender["Male"] = "Male";
|
|
18
|
+
CharacterGender["Female"] = "Female";
|
|
19
|
+
})(CharacterGender = exports.CharacterGender || (exports.CharacterGender = {}));
|
|
20
|
+
//# sourceMappingURL=character.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"character.types.js","sourceRoot":"","sources":["../../src/types/character.types.ts"],"names":[],"mappings":";;;AAiBA,IAAY,cASX;AATD,WAAY,cAAc;IACxB,+BAAa,CAAA;IACb,qCAAmB,CAAA;IACnB,yCAAuB,CAAA;IACvB,mCAAiB,CAAA;IACjB,uCAAqB,CAAA;IACrB,iCAAe,CAAA;IACf,mCAAiB,CAAA;IACjB,uCAAqB,CAAA;AACvB,CAAC,EATW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QASzB;AAED,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,gCAAa,CAAA;IACb,oCAAiB,CAAA;AACnB,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Languages } from "./translation.types";
|
|
2
|
+
interface IDeviceDetailedInfo {
|
|
3
|
+
isVirtual: boolean;
|
|
4
|
+
manufacturer: string;
|
|
5
|
+
model: string;
|
|
6
|
+
operatingSystem: string;
|
|
7
|
+
osVersion: string;
|
|
8
|
+
platform: string;
|
|
9
|
+
}
|
|
10
|
+
export interface IDeviceInfo {
|
|
11
|
+
info: IDeviceDetailedInfo | null;
|
|
12
|
+
screenOrientation: "landscape" | "portrait" | null;
|
|
13
|
+
isAssetScreen: boolean | null;
|
|
14
|
+
language: Languages | null;
|
|
15
|
+
}
|
|
16
|
+
export declare enum DeviceInfoActionTypes {
|
|
17
|
+
updateDeviceInfo = "updateDeviceInfo"
|
|
18
|
+
}
|
|
19
|
+
export interface IDispatchUpdateDeviceInfo {
|
|
20
|
+
type: DeviceInfoActionTypes.updateDeviceInfo;
|
|
21
|
+
payload: IDeviceInfo;
|
|
22
|
+
}
|
|
23
|
+
export declare type DeviceAction = IDispatchUpdateDeviceInfo;
|
|
24
|
+
export {};
|
|
25
|
+
//# sourceMappingURL=device.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device.types.d.ts","sourceRoot":"","sources":["../../src/types/device.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,UAAU,mBAAmB;IAC3B,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,mBAAmB,GAAG,IAAI,CAAC;IACjC,iBAAiB,EAAE,WAAW,GAAG,UAAU,GAAG,IAAI,CAAC;IACnD,aAAa,EAAE,OAAO,GAAG,IAAI,CAAC;IAC9B,QAAQ,EAAE,SAAS,GAAG,IAAI,CAAC;CAC5B;AAED,oBAAY,qBAAqB;IAC/B,gBAAgB,qBAAqB;CACtC;AAED,MAAM,WAAW,yBAAyB;IACxC,IAAI,EAAE,qBAAqB,CAAC,gBAAgB,CAAC;IAC7C,OAAO,EAAE,WAAW,CAAC;CACtB;AAED,oBAAY,YAAY,GAAG,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DeviceInfoActionTypes = void 0;
|
|
4
|
+
var DeviceInfoActionTypes;
|
|
5
|
+
(function (DeviceInfoActionTypes) {
|
|
6
|
+
DeviceInfoActionTypes["updateDeviceInfo"] = "updateDeviceInfo";
|
|
7
|
+
})(DeviceInfoActionTypes = exports.DeviceInfoActionTypes || (exports.DeviceInfoActionTypes = {}));
|
|
8
|
+
//# sourceMappingURL=device.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"device.types.js","sourceRoot":"","sources":["../../src/types/device.types.ts"],"names":[],"mappings":";;;AAkBA,IAAY,qBAEX;AAFD,WAAY,qBAAqB;IAC/B,8DAAqC,CAAA;AACvC,CAAC,EAFW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAEhC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env.types.d.ts","sourceRoot":"","sources":["../../src/types/env.types.ts"],"names":[],"mappings":"AAAA,oBAAY,OAAO;IACjB,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,UAAU,eAAe;CAC1B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EnvType = void 0;
|
|
4
|
+
var EnvType;
|
|
5
|
+
(function (EnvType) {
|
|
6
|
+
EnvType["Development"] = "Development";
|
|
7
|
+
EnvType["Staging"] = "Staging";
|
|
8
|
+
EnvType["Production"] = "Production";
|
|
9
|
+
})(EnvType = exports.EnvType || (exports.EnvType = {}));
|
|
10
|
+
//# sourceMappingURL=env.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env.types.js","sourceRoot":"","sources":["../../src/types/env.types.ts"],"names":[],"mappings":";;;AAAA,IAAY,OAIX;AAJD,WAAY,OAAO;IACjB,sCAA2B,CAAA;IAC3B,8BAAmB,CAAA;IACnB,oCAAyB,CAAA;AAC3B,CAAC,EAJW,OAAO,GAAP,eAAO,KAAP,eAAO,QAIlB"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export interface IGoogleConfig {
|
|
2
|
+
clientID: string;
|
|
3
|
+
clientSecret: string;
|
|
4
|
+
redirectURI: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IGoogleOAuthUrlResponse {
|
|
7
|
+
googleOAuthUrl: string;
|
|
8
|
+
}
|
|
9
|
+
export interface IGoogleOAuthTokenPayload {
|
|
10
|
+
access_token: string;
|
|
11
|
+
id_token: string;
|
|
12
|
+
expires_in: string;
|
|
13
|
+
token_type: string;
|
|
14
|
+
refresh_token: string;
|
|
15
|
+
}
|
|
16
|
+
export interface IGoogleOAuthUserInfoResponse {
|
|
17
|
+
id: string;
|
|
18
|
+
email: string;
|
|
19
|
+
verified_email: boolean;
|
|
20
|
+
name: string;
|
|
21
|
+
given_name: string;
|
|
22
|
+
family_name: string;
|
|
23
|
+
picture: string;
|
|
24
|
+
locale: string;
|
|
25
|
+
}
|
|
26
|
+
export interface IGoogleCapacitorOAuthResponse {
|
|
27
|
+
email: string;
|
|
28
|
+
familyName: string;
|
|
29
|
+
givenName: string;
|
|
30
|
+
id: string;
|
|
31
|
+
imageUrl: string;
|
|
32
|
+
name: string;
|
|
33
|
+
authentication: IAuthentication;
|
|
34
|
+
serverAuthCode: string;
|
|
35
|
+
}
|
|
36
|
+
export interface IAuthentication {
|
|
37
|
+
accessToken: string;
|
|
38
|
+
idToken: string;
|
|
39
|
+
}
|
|
40
|
+
export interface IGoogleOAuthIdTokenResponse extends IGoogleOAuthUserInfoResponse {
|
|
41
|
+
iss: string;
|
|
42
|
+
sub: string;
|
|
43
|
+
azp: string;
|
|
44
|
+
aud: string;
|
|
45
|
+
iat: string;
|
|
46
|
+
exp: string;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=googleOAuth.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"googleOAuth.types.d.ts","sourceRoot":"","sources":["../../src/types/googleOAuth.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,uBAAuB;IACtC,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,wBAAwB;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,4BAA4B;IAC3C,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,OAAO,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,6BAA6B;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,eAAe,CAAC;IAChC,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,2BAA4B,SAAQ,4BAA4B;IAC/E,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"googleOAuth.types.js","sourceRoot":"","sources":["../../src/types/googleOAuth.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface IMap {
|
|
2
|
+
JSONKey: string;
|
|
3
|
+
imageKey: string;
|
|
4
|
+
layers: string[];
|
|
5
|
+
tileWidth: number;
|
|
6
|
+
tileHeight: number;
|
|
7
|
+
imagePath: string;
|
|
8
|
+
jsonPath: string;
|
|
9
|
+
tilesetName: string;
|
|
10
|
+
}
|
|
11
|
+
export declare enum MapLayers {
|
|
12
|
+
Ground = 0,
|
|
13
|
+
OverGround = 1,
|
|
14
|
+
Player = 2,
|
|
15
|
+
OverPlayer = 3
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=maps.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"maps.types.d.ts","sourceRoot":"","sources":["../../src/types/maps.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,IAAI;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,oBAAY,SAAS;IACnB,MAAM,IAAI;IACV,UAAU,IAAI;IACd,MAAM,IAAI;IACV,UAAU,IAAI;CACf"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MapLayers = void 0;
|
|
4
|
+
var MapLayers;
|
|
5
|
+
(function (MapLayers) {
|
|
6
|
+
MapLayers[MapLayers["Ground"] = 0] = "Ground";
|
|
7
|
+
MapLayers[MapLayers["OverGround"] = 1] = "OverGround";
|
|
8
|
+
MapLayers[MapLayers["Player"] = 2] = "Player";
|
|
9
|
+
MapLayers[MapLayers["OverPlayer"] = 3] = "OverPlayer";
|
|
10
|
+
})(MapLayers = exports.MapLayers || (exports.MapLayers = {}));
|
|
11
|
+
//# sourceMappingURL=maps.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"maps.types.js","sourceRoot":"","sources":["../../src/types/maps.types.ts"],"names":[],"mappings":";;;AAWA,IAAY,SAKX;AALD,WAAY,SAAS;IACnB,6CAAU,CAAA;IACV,qDAAc,CAAA;IACd,6CAAU,CAAA;IACV,qDAAc,CAAA;AAChB,CAAC,EALW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAKpB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface IPaginationResponse<T> {
|
|
2
|
+
docs: T[];
|
|
3
|
+
totalDocs: number;
|
|
4
|
+
offset: number;
|
|
5
|
+
limit: number;
|
|
6
|
+
totalPages: number;
|
|
7
|
+
page: number;
|
|
8
|
+
pagingCounter: number;
|
|
9
|
+
hasPrevPage: boolean;
|
|
10
|
+
hasNextPage: boolean;
|
|
11
|
+
prevPage: number | null;
|
|
12
|
+
nextPage: number | null;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=pagination.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.types.d.ts","sourceRoot":"","sources":["../../src/types/pagination.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB,CAAC,CAAC;IACpC,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,OAAO,CAAC;IACrB,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagination.types.js","sourceRoot":"","sources":["../../src/types/pagination.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare enum Countries {
|
|
2
|
+
US = "US",
|
|
3
|
+
Brazil = "Brazil",
|
|
4
|
+
Global = "Global"
|
|
5
|
+
}
|
|
6
|
+
export interface ICountry {
|
|
7
|
+
name: string;
|
|
8
|
+
code: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ICountryCity {
|
|
11
|
+
country: {
|
|
12
|
+
name: string;
|
|
13
|
+
code: string;
|
|
14
|
+
};
|
|
15
|
+
cities: string[];
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=places.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"places.types.d.ts","sourceRoot":"","sources":["../../src/types/places.types.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACnB,EAAE,OAAO;IACT,MAAM,WAAW;IACjB,MAAM,WAAW;CAClB;AAED,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE;QACP,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,EAAE,MAAM,CAAC;KACd,CAAC;IACF,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Countries = void 0;
|
|
4
|
+
var Countries;
|
|
5
|
+
(function (Countries) {
|
|
6
|
+
Countries["US"] = "US";
|
|
7
|
+
Countries["Brazil"] = "Brazil";
|
|
8
|
+
Countries["Global"] = "Global";
|
|
9
|
+
})(Countries = exports.Countries || (exports.Countries = {}));
|
|
10
|
+
//# sourceMappingURL=places.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"places.types.js","sourceRoot":"","sources":["../../src/types/places.types.ts"],"names":[],"mappings":";;;AAAA,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,sBAAS,CAAA;IACT,8BAAiB,CAAA;IACjB,8BAAiB,CAAA;AACnB,CAAC,EAJW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAIpB"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
export declare enum PlayerGeckosEvents {
|
|
2
|
+
PlayerCreate = "PlayerCreate",
|
|
3
|
+
PlayerPositionUpdate = "PlayerPositionUpdate",
|
|
4
|
+
PlayerPositionUpdateConfirm = "PlayerPositionUpdateConfirm",
|
|
5
|
+
PlayerLogout = "PlayerLogout",
|
|
6
|
+
PlayerPrivateMessage = "PlayerPrivateMessage",
|
|
7
|
+
PlayerPing = "PlayerPing",
|
|
8
|
+
PlayerForceDisconnect = "PlayerForceDisconnect"
|
|
9
|
+
}
|
|
10
|
+
export interface IPlayerPing {
|
|
11
|
+
id: string;
|
|
12
|
+
}
|
|
13
|
+
export interface IPlayerPositionUpdateConfirm {
|
|
14
|
+
id: string;
|
|
15
|
+
direction: string;
|
|
16
|
+
isValid: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare type Events = PlayerGeckosEvents;
|
|
19
|
+
export interface IConnectedPlayer {
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
x: number;
|
|
23
|
+
y: number;
|
|
24
|
+
channelId: string;
|
|
25
|
+
direction?: string;
|
|
26
|
+
isMoving?: boolean;
|
|
27
|
+
cameraCoordinates: ICameraCoordinates;
|
|
28
|
+
otherPlayersInView: IOtherPlayerInView;
|
|
29
|
+
lastActivity?: number;
|
|
30
|
+
}
|
|
31
|
+
export interface IConnectedPlayers {
|
|
32
|
+
[id: string]: IConnectedPlayer;
|
|
33
|
+
}
|
|
34
|
+
export interface PlayerLogoutPayload {
|
|
35
|
+
id: string;
|
|
36
|
+
}
|
|
37
|
+
export interface ICameraCoordinates {
|
|
38
|
+
x: number;
|
|
39
|
+
y: number;
|
|
40
|
+
width: number;
|
|
41
|
+
height: number;
|
|
42
|
+
}
|
|
43
|
+
export interface IOtherPlayerInView {
|
|
44
|
+
[id: string]: IOtherPlayer;
|
|
45
|
+
}
|
|
46
|
+
export interface IOtherPlayer {
|
|
47
|
+
id: string;
|
|
48
|
+
name: string;
|
|
49
|
+
x: number;
|
|
50
|
+
y: number;
|
|
51
|
+
direction: string;
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=player.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"player.types.d.ts","sourceRoot":"","sources":["../../src/types/player.types.ts"],"names":[],"mappings":"AACA,oBAAY,kBAAkB;IAC5B,YAAY,iBAAiB;IAC7B,oBAAoB,yBAAyB;IAC7C,2BAA2B,gCAAgC;IAC3D,YAAY,iBAAiB;IAC7B,oBAAoB,yBAAyB;IAC7C,UAAU,eAAe;IACzB,qBAAqB,0BAA0B;CAChD;AAED,MAAM,WAAW,WAAW;IAE1B,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,4BAA4B;IAC3C,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,oBAAY,MAAM,GAAG,kBAAkB,CAAC;AAExC,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iBAAiB,EAAE,kBAAkB,CAAC;IACtC,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,iBAAiB;IAChC,CAAC,EAAE,EAAE,MAAM,GAAG,gBAAgB,CAAC;CAChC;AAED,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,kBAAkB;IACjC,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,kBAAkB;IACjC,CAAC,EAAE,EAAE,MAAM,GAAG,YAAY,CAAC;CAC5B;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PlayerGeckosEvents = void 0;
|
|
4
|
+
var PlayerGeckosEvents;
|
|
5
|
+
(function (PlayerGeckosEvents) {
|
|
6
|
+
PlayerGeckosEvents["PlayerCreate"] = "PlayerCreate";
|
|
7
|
+
PlayerGeckosEvents["PlayerPositionUpdate"] = "PlayerPositionUpdate";
|
|
8
|
+
PlayerGeckosEvents["PlayerPositionUpdateConfirm"] = "PlayerPositionUpdateConfirm";
|
|
9
|
+
PlayerGeckosEvents["PlayerLogout"] = "PlayerLogout";
|
|
10
|
+
PlayerGeckosEvents["PlayerPrivateMessage"] = "PlayerPrivateMessage";
|
|
11
|
+
PlayerGeckosEvents["PlayerPing"] = "PlayerPing";
|
|
12
|
+
PlayerGeckosEvents["PlayerForceDisconnect"] = "PlayerForceDisconnect";
|
|
13
|
+
})(PlayerGeckosEvents = exports.PlayerGeckosEvents || (exports.PlayerGeckosEvents = {}));
|
|
14
|
+
//# sourceMappingURL=player.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"player.types.js","sourceRoot":"","sources":["../../src/types/player.types.ts"],"names":[],"mappings":";;;AACA,IAAY,kBAQX;AARD,WAAY,kBAAkB;IAC5B,mDAA6B,CAAA;IAC7B,mEAA6C,CAAA;IAC7C,iFAA2D,CAAA;IAC3D,mDAA6B,CAAA;IAC7B,mEAA6C,CAAA;IAC7C,+CAAyB,CAAA;IACzB,qEAA+C,CAAA;AACjD,CAAC,EARW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAQ7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preloadScene.types.d.ts","sourceRoot":"","sources":["../../src/types/preloadScene.types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;CAG5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"preloadScene.types.js","sourceRoot":"","sources":["../../src/types/preloadScene.types.ts"],"names":[],"mappings":";;;AAAa,QAAA,gBAAgB,GAAG;IAC9B,GAAG,EAAE,cAAc;IACnB,MAAM,EAAE,EAAE;CACX,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource.types.d.ts","sourceRoot":"","sources":["../../src/types/resource.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,SAAS;IACxB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource.types.js","sourceRoot":"","sources":["../../src/types/resource.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scene.types.d.ts","sourceRoot":"","sources":["../../src/types/scene.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,UAAU;IACzB,GAAG,EAAE,MAAM,CAAC;CACb"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scene.types.js","sourceRoot":"","sources":["../../src/types/scene.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare type TranslationTypes = "auth" | "form" | "global" | "logs" | "users" | "validation" | "error" | "email" | "collections" | "settings" | "trackers" | "assets" | "help" | "portfolios" | "search" | "news" | "rankings" | "tabs" | "order" | "company" | "onboarding" | "portfolio-picker" | "marketing" | "app-rate";
|
|
2
|
+
export declare enum Languages {
|
|
3
|
+
eng = "eng",
|
|
4
|
+
ptBr = "ptBr"
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=translation.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translation.types.d.ts","sourceRoot":"","sources":["../../src/types/translation.types.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB,GACxB,MAAM,GACN,MAAM,GACN,QAAQ,GACR,MAAM,GACN,OAAO,GACP,YAAY,GACZ,OAAO,GACP,OAAO,GACP,aAAa,GACb,UAAU,GACV,UAAU,GACV,QAAQ,GACR,MAAM,GACN,YAAY,GACZ,QAAQ,GACR,MAAM,GACN,UAAU,GACV,MAAM,GACN,OAAO,GACP,SAAS,GACT,YAAY,GACZ,kBAAkB,GAClB,WAAW,GACX,UAAU,CAAC;AAEf,oBAAY,SAAS;IACnB,GAAG,QAAQ;IACX,IAAI,SAAS;CACd"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Languages = void 0;
|
|
4
|
+
var Languages;
|
|
5
|
+
(function (Languages) {
|
|
6
|
+
Languages["eng"] = "eng";
|
|
7
|
+
Languages["ptBr"] = "ptBr";
|
|
8
|
+
})(Languages = exports.Languages || (exports.Languages = {}));
|
|
9
|
+
//# sourceMappingURL=translation.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translation.types.js","sourceRoot":"","sources":["../../src/types/translation.types.ts"],"names":[],"mappings":";;;AA0BA,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAGpB"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { IResource } from "./resource.types";
|
|
2
|
+
export interface IUserPreferences {
|
|
3
|
+
experience: UserExperience;
|
|
4
|
+
goal: UserGoal;
|
|
5
|
+
}
|
|
6
|
+
export interface IUserEntity extends IResource {
|
|
7
|
+
_id: string | null;
|
|
8
|
+
name: string | null;
|
|
9
|
+
type: UserTypes | null;
|
|
10
|
+
email: string | null;
|
|
11
|
+
address: string | null;
|
|
12
|
+
phone: string | null;
|
|
13
|
+
created: Date | null;
|
|
14
|
+
updated: Date | null;
|
|
15
|
+
unsubscribed: boolean | null;
|
|
16
|
+
pushNotificationToken: string | null;
|
|
17
|
+
preferences?: IUserPreferences;
|
|
18
|
+
}
|
|
19
|
+
export interface IUserToken {
|
|
20
|
+
token: string;
|
|
21
|
+
}
|
|
22
|
+
export declare enum UserExperience {
|
|
23
|
+
Beginner = "Beginner",
|
|
24
|
+
Intermediate = "Intermediate",
|
|
25
|
+
Advanced = "Advanced"
|
|
26
|
+
}
|
|
27
|
+
export declare enum UserGoal {
|
|
28
|
+
LearnMore = "LearnMore",
|
|
29
|
+
TrackPortfolio = "TrackPortfolio",
|
|
30
|
+
CompanyInsights = "CompanyInsights"
|
|
31
|
+
}
|
|
32
|
+
export declare enum UserTypes {
|
|
33
|
+
Admin = "Admin",
|
|
34
|
+
Regular = "Regular",
|
|
35
|
+
Staff = "Staff"
|
|
36
|
+
}
|
|
37
|
+
export declare enum UserAuthFlow {
|
|
38
|
+
Basic = "Basic",
|
|
39
|
+
GoogleOAuth = "GoogleOAuth",
|
|
40
|
+
FacebookOAuth = "FacebookOAuth",
|
|
41
|
+
LinkedInOAuth = "LinkedInOAuth",
|
|
42
|
+
AppleOAuth = "AppleOAuth"
|
|
43
|
+
}
|
|
44
|
+
export interface IUser extends IUserEntity {
|
|
45
|
+
name: string | null;
|
|
46
|
+
isLoggedIn: boolean;
|
|
47
|
+
token: string | null;
|
|
48
|
+
}
|
|
49
|
+
export interface INewUser {
|
|
50
|
+
name: string;
|
|
51
|
+
email: string;
|
|
52
|
+
password: string;
|
|
53
|
+
passwordConfirmation: string;
|
|
54
|
+
address?: string;
|
|
55
|
+
phone?: string;
|
|
56
|
+
}
|
|
57
|
+
export interface IUserCredentials {
|
|
58
|
+
email: string;
|
|
59
|
+
password: string;
|
|
60
|
+
}
|
|
61
|
+
export interface IChangePasswords {
|
|
62
|
+
currentPassword: string;
|
|
63
|
+
newPassword: string;
|
|
64
|
+
}
|
|
65
|
+
export interface IUserAccessToken {
|
|
66
|
+
accessToken: string;
|
|
67
|
+
}
|
|
68
|
+
export declare enum UserActionTypes {
|
|
69
|
+
fetch = "fetch",
|
|
70
|
+
login = "login",
|
|
71
|
+
refreshInfo = "refreshInfo",
|
|
72
|
+
clear = "clear",
|
|
73
|
+
register = "register",
|
|
74
|
+
updatePushNotificationToken = "updatePushNotificationToken"
|
|
75
|
+
}
|
|
76
|
+
export interface IDispatchUpdatePushNotificationToken {
|
|
77
|
+
type: UserActionTypes.updatePushNotificationToken;
|
|
78
|
+
payload: string;
|
|
79
|
+
}
|
|
80
|
+
export interface IDispatchUserFetch {
|
|
81
|
+
type: UserActionTypes.fetch;
|
|
82
|
+
payload: IUser;
|
|
83
|
+
}
|
|
84
|
+
export interface IDispatchUserInfo {
|
|
85
|
+
type: UserActionTypes.refreshInfo;
|
|
86
|
+
payload: IUserEntity;
|
|
87
|
+
}
|
|
88
|
+
export interface IDispatchUserLogin {
|
|
89
|
+
type: UserActionTypes.login;
|
|
90
|
+
payload: IUserAccessToken;
|
|
91
|
+
}
|
|
92
|
+
export interface IDispatchUserClear {
|
|
93
|
+
type: UserActionTypes.clear;
|
|
94
|
+
}
|
|
95
|
+
export interface IDispatchUserRegister {
|
|
96
|
+
type: UserActionTypes.register;
|
|
97
|
+
}
|
|
98
|
+
export declare type UserAction = IDispatchUserFetch | IDispatchUserLogin | IDispatchUserInfo | IDispatchUserClear | IDispatchUpdatePushNotificationToken;
|
|
99
|
+
//# sourceMappingURL=user.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.types.d.ts","sourceRoot":"","sources":["../../src/types/user.types.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserActionTypes = exports.UserAuthFlow = exports.UserTypes = exports.UserGoal = exports.UserExperience = void 0;
|
|
4
|
+
var UserExperience;
|
|
5
|
+
(function (UserExperience) {
|
|
6
|
+
UserExperience["Beginner"] = "Beginner";
|
|
7
|
+
UserExperience["Intermediate"] = "Intermediate";
|
|
8
|
+
UserExperience["Advanced"] = "Advanced";
|
|
9
|
+
})(UserExperience = exports.UserExperience || (exports.UserExperience = {}));
|
|
10
|
+
var UserGoal;
|
|
11
|
+
(function (UserGoal) {
|
|
12
|
+
UserGoal["LearnMore"] = "LearnMore";
|
|
13
|
+
UserGoal["TrackPortfolio"] = "TrackPortfolio";
|
|
14
|
+
UserGoal["CompanyInsights"] = "CompanyInsights";
|
|
15
|
+
})(UserGoal = exports.UserGoal || (exports.UserGoal = {}));
|
|
16
|
+
var UserTypes;
|
|
17
|
+
(function (UserTypes) {
|
|
18
|
+
UserTypes["Admin"] = "Admin";
|
|
19
|
+
UserTypes["Regular"] = "Regular";
|
|
20
|
+
UserTypes["Staff"] = "Staff";
|
|
21
|
+
})(UserTypes = exports.UserTypes || (exports.UserTypes = {}));
|
|
22
|
+
var UserAuthFlow;
|
|
23
|
+
(function (UserAuthFlow) {
|
|
24
|
+
UserAuthFlow["Basic"] = "Basic";
|
|
25
|
+
UserAuthFlow["GoogleOAuth"] = "GoogleOAuth";
|
|
26
|
+
UserAuthFlow["FacebookOAuth"] = "FacebookOAuth";
|
|
27
|
+
UserAuthFlow["LinkedInOAuth"] = "LinkedInOAuth";
|
|
28
|
+
UserAuthFlow["AppleOAuth"] = "AppleOAuth";
|
|
29
|
+
})(UserAuthFlow = exports.UserAuthFlow || (exports.UserAuthFlow = {}));
|
|
30
|
+
var UserActionTypes;
|
|
31
|
+
(function (UserActionTypes) {
|
|
32
|
+
UserActionTypes["fetch"] = "fetch";
|
|
33
|
+
UserActionTypes["login"] = "login";
|
|
34
|
+
UserActionTypes["refreshInfo"] = "refreshInfo";
|
|
35
|
+
UserActionTypes["clear"] = "clear";
|
|
36
|
+
UserActionTypes["register"] = "register";
|
|
37
|
+
UserActionTypes["updatePushNotificationToken"] = "updatePushNotificationToken";
|
|
38
|
+
})(UserActionTypes = exports.UserActionTypes || (exports.UserActionTypes = {}));
|
|
39
|
+
//# sourceMappingURL=user.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.types.js","sourceRoot":"","sources":["../../src/types/user.types.ts"],"names":[],"mappings":";;;AAyBA,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,uCAAqB,CAAA;IACrB,+CAA6B,CAAA;IAC7B,uCAAqB,CAAA;AACvB,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB;AAED,IAAY,QAIX;AAJD,WAAY,QAAQ;IAClB,mCAAuB,CAAA;IACvB,6CAAiC,CAAA;IACjC,+CAAmC,CAAA;AACrC,CAAC,EAJW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAInB;AAED,IAAY,SAIX;AAJD,WAAY,SAAS;IACnB,4BAAe,CAAA;IACf,gCAAmB,CAAA;IACnB,4BAAe,CAAA;AACjB,CAAC,EAJW,SAAS,GAAT,iBAAS,KAAT,iBAAS,QAIpB;AAED,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,+BAAe,CAAA;IACf,2CAA2B,CAAA;IAC3B,+CAA+B,CAAA;IAC/B,+CAA+B,CAAA;IAC/B,yCAAyB,CAAA;AAC3B,CAAC,EANW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAMvB;AA+BD,IAAY,eAOX;AAPD,WAAY,eAAe;IACzB,kCAAe,CAAA;IACf,kCAAe,CAAA;IACf,8CAA2B,CAAA;IAC3B,kCAAe,CAAA;IACf,wCAAqB,CAAA;IACrB,8EAA2D,CAAA;AAC7D,CAAC,EAPW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAO1B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation.types.d.ts","sourceRoot":"","sources":["../../src/types/validation.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,WAAW,CAAC,EAAE;QAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,GAAG,SAAS,CAAC;CACtD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation.types.js","sourceRoot":"","sources":["../../src/types/validation.types.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rpg-engine/shared",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "Joao Paulo Furtado <joaopaulofurtado@live.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
21
21
|
"tsc": "tsc -p .",
|
|
22
22
|
"prepublish": "tsc",
|
|
23
|
-
"format": "prettier --write 'src/**/*.ts'
|
|
23
|
+
"format": "prettier --write 'src/**/*.ts' --loglevel silent",
|
|
24
24
|
"format:check": "prettier --check '**/*.ts' '**/*.json'",
|
|
25
25
|
"configure": "./environment/download-credentials.sh"
|
|
26
26
|
},
|