@rpg-engine/shared 0.6.85 → 0.6.86

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 (213) hide show
  1. package/README.md +29 -29
  2. package/dist/constants/date.constants.d.ts +2 -2
  3. package/dist/constants/date.constants.d.ts.map +0 -0
  4. package/dist/constants/date.constants.js +5 -5
  5. package/dist/constants/date.constants.js.map +0 -0
  6. package/dist/constants/npc.constants.d.ts +1 -1
  7. package/dist/constants/npc.constants.d.ts.map +0 -0
  8. package/dist/constants/npc.constants.js +4 -4
  9. package/dist/constants/npc.constants.js.map +0 -0
  10. package/dist/constants/socket.constants.d.ts +2 -2
  11. package/dist/constants/socket.constants.d.ts.map +0 -0
  12. package/dist/constants/socket.constants.js +6 -6
  13. package/dist/constants/socket.constants.js.map +0 -0
  14. package/dist/constants/world.constants.d.ts +10 -10
  15. package/dist/constants/world.constants.d.ts.map +0 -0
  16. package/dist/constants/world.constants.js +13 -13
  17. package/dist/constants/world.constants.js.map +0 -0
  18. package/dist/helpers/deviceHelpers.d.ts +2 -2
  19. package/dist/helpers/deviceHelpers.js +26 -26
  20. package/dist/helpers/itemSlotHelper.d.ts +6 -6
  21. package/dist/helpers/itemSlotHelper.d.ts.map +0 -0
  22. package/dist/helpers/itemSlotHelper.js +21 -21
  23. package/dist/helpers/itemSlotHelper.js.map +0 -0
  24. package/dist/helpers/skillHelpers.d.ts +4 -4
  25. package/dist/helpers/skillHelpers.d.ts.map +0 -0
  26. package/dist/helpers/skillHelpers.js +25 -25
  27. package/dist/helpers/skillHelpers.js.map +0 -0
  28. package/dist/index.d.ts +49 -49
  29. package/dist/index.d.ts.map +0 -0
  30. package/dist/index.js +65 -65
  31. package/dist/index.js.map +0 -0
  32. package/dist/libs/GridHelper.d.ts +11 -11
  33. package/dist/libs/GridHelper.d.ts.map +0 -0
  34. package/dist/libs/GridHelper.js +37 -37
  35. package/dist/libs/GridHelper.js.map +0 -0
  36. package/dist/libs/MathHelper.d.ts +16 -16
  37. package/dist/libs/MathHelper.d.ts.map +0 -0
  38. package/dist/libs/MathHelper.js +14 -14
  39. package/dist/libs/MathHelper.js.map +0 -0
  40. package/dist/libs/SocketHelper.d.ts +2 -2
  41. package/dist/libs/SocketHelper.d.ts.map +0 -0
  42. package/dist/libs/SocketHelper.js +14 -14
  43. package/dist/libs/SocketHelper.js.map +0 -0
  44. package/dist/libs/TextHelper.d.ts +7 -7
  45. package/dist/libs/TextHelper.d.ts.map +0 -0
  46. package/dist/libs/TextHelper.js +21 -21
  47. package/dist/libs/TextHelper.js.map +0 -0
  48. package/dist/libs/TypeHelper.d.ts +3 -3
  49. package/dist/libs/TypeHelper.d.ts.map +0 -0
  50. package/dist/libs/TypeHelper.js +16 -16
  51. package/dist/libs/TypeHelper.js.map +0 -0
  52. package/dist/translations/app-rate.lang.json +38 -38
  53. package/dist/translations/assets.lang.json +82 -82
  54. package/dist/translations/auth.lang.json +182 -182
  55. package/dist/translations/email.lang.json +70 -70
  56. package/dist/translations/error.lang.json +18 -18
  57. package/dist/translations/form.lang.json +94 -94
  58. package/dist/translations/global.lang.json +90 -90
  59. package/dist/translations/logs.lang.json +6 -6
  60. package/dist/translations/onboarding.lang.d.ts +10 -10
  61. package/dist/translations/onboarding.lang.d.ts.map +0 -0
  62. package/dist/translations/onboarding.lang.js +21 -21
  63. package/dist/translations/onboarding.lang.js.map +0 -0
  64. package/dist/translations/onboarding.lang.json +50 -50
  65. package/dist/translations/order.lang.json +90 -90
  66. package/dist/translations/search.lang.json +50 -50
  67. package/dist/translations/settings.lang.json +14 -14
  68. package/dist/translations/tabs.lang.json +22 -22
  69. package/dist/translations/users.lang.json +22 -22
  70. package/dist/translations/validation.lang.json +86 -86
  71. package/dist/types/animation.types.d.ts +64 -61
  72. package/dist/types/animation.types.d.ts.map +1 -1
  73. package/dist/types/animation.types.js +41 -38
  74. package/dist/types/animation.types.js.map +1 -1
  75. package/dist/types/api.types.d.ts +21 -21
  76. package/dist/types/api.types.d.ts.map +0 -0
  77. package/dist/types/api.types.js +20 -20
  78. package/dist/types/api.types.js.map +0 -0
  79. package/dist/types/asset.types.d.ts +6 -6
  80. package/dist/types/asset.types.d.ts.map +0 -0
  81. package/dist/types/asset.types.js +2 -2
  82. package/dist/types/asset.types.js.map +0 -0
  83. package/dist/types/auth.types.d.ts +7 -7
  84. package/dist/types/auth.types.d.ts.map +0 -0
  85. package/dist/types/auth.types.js +2 -2
  86. package/dist/types/auth.types.js.map +0 -0
  87. package/dist/types/battle.types.d.ts +40 -40
  88. package/dist/types/battle.types.d.ts.map +0 -0
  89. package/dist/types/battle.types.js +18 -18
  90. package/dist/types/battle.types.js.map +0 -0
  91. package/dist/types/character.types.d.ts +203 -203
  92. package/dist/types/character.types.d.ts.map +0 -0
  93. package/dist/types/character.types.js +52 -52
  94. package/dist/types/character.types.js.map +0 -0
  95. package/dist/types/chat.types.d.ts +30 -30
  96. package/dist/types/chat.types.d.ts.map +0 -0
  97. package/dist/types/chat.types.js +14 -14
  98. package/dist/types/chat.types.js.map +0 -0
  99. package/dist/types/depot.types.d.ts +18 -18
  100. package/dist/types/depot.types.js +9 -9
  101. package/dist/types/device.types.d.ts +24 -24
  102. package/dist/types/device.types.d.ts.map +0 -0
  103. package/dist/types/device.types.js +7 -7
  104. package/dist/types/device.types.js.map +0 -0
  105. package/dist/types/entity.types.d.ts +30 -30
  106. package/dist/types/entity.types.d.ts.map +0 -0
  107. package/dist/types/entity.types.js +20 -20
  108. package/dist/types/entity.types.js.map +0 -0
  109. package/dist/types/env.types.d.ts +5 -5
  110. package/dist/types/env.types.d.ts.map +0 -0
  111. package/dist/types/env.types.js +9 -9
  112. package/dist/types/env.types.js.map +0 -0
  113. package/dist/types/equipment.types.d.ts +35 -35
  114. package/dist/types/equipment.types.d.ts.map +0 -0
  115. package/dist/types/equipment.types.js +18 -18
  116. package/dist/types/equipment.types.js.map +0 -0
  117. package/dist/types/googleOAuth.types.d.ts +47 -47
  118. package/dist/types/googleOAuth.types.d.ts.map +0 -0
  119. package/dist/types/googleOAuth.types.js +2 -2
  120. package/dist/types/googleOAuth.types.js.map +0 -0
  121. package/dist/types/inventory.types.d.ts +7 -7
  122. package/dist/types/inventory.types.d.ts.map +0 -0
  123. package/dist/types/inventory.types.js +2 -2
  124. package/dist/types/inventory.types.js.map +0 -0
  125. package/dist/types/item.types.d.ts +242 -242
  126. package/dist/types/item.types.d.ts.map +0 -0
  127. package/dist/types/item.types.js +138 -138
  128. package/dist/types/item.types.js.map +0 -0
  129. package/dist/types/itemContainer.types.d.ts +82 -82
  130. package/dist/types/itemContainer.types.d.ts.map +0 -0
  131. package/dist/types/itemContainer.types.js +10 -10
  132. package/dist/types/itemContainer.types.js.map +0 -0
  133. package/dist/types/maps.types.d.ts +82 -82
  134. package/dist/types/maps.types.d.ts.map +0 -0
  135. package/dist/types/maps.types.js +81 -81
  136. package/dist/types/maps.types.js.map +0 -0
  137. package/dist/types/notification.types.d.ts +14 -14
  138. package/dist/types/notification.types.d.ts.map +0 -0
  139. package/dist/types/notification.types.js +2 -2
  140. package/dist/types/notification.types.js.map +0 -0
  141. package/dist/types/npc.types.d.ts +151 -151
  142. package/dist/types/npc.types.d.ts.map +0 -0
  143. package/dist/types/npc.types.js +48 -48
  144. package/dist/types/npc.types.js.map +0 -0
  145. package/dist/types/pagination.types.d.ts +13 -13
  146. package/dist/types/pagination.types.d.ts.map +0 -0
  147. package/dist/types/pagination.types.js +2 -2
  148. package/dist/types/pagination.types.js.map +0 -0
  149. package/dist/types/places.types.d.ts +16 -16
  150. package/dist/types/places.types.d.ts.map +0 -0
  151. package/dist/types/places.types.js +9 -9
  152. package/dist/types/places.types.js.map +0 -0
  153. package/dist/types/preloadScene.types.d.ts +4 -4
  154. package/dist/types/preloadScene.types.d.ts.map +0 -0
  155. package/dist/types/preloadScene.types.js +7 -7
  156. package/dist/types/preloadScene.types.js.map +0 -0
  157. package/dist/types/quest.types.d.ts +74 -74
  158. package/dist/types/quest.types.d.ts.map +0 -0
  159. package/dist/types/quest.types.js +21 -21
  160. package/dist/types/quest.types.js.map +0 -0
  161. package/dist/types/resource.types.d.ts +5 -5
  162. package/dist/types/resource.types.d.ts.map +0 -0
  163. package/dist/types/resource.types.js +2 -2
  164. package/dist/types/resource.types.js.map +0 -0
  165. package/dist/types/scene.types.d.ts +8 -8
  166. package/dist/types/scene.types.d.ts.map +0 -0
  167. package/dist/types/scene.types.js +8 -8
  168. package/dist/types/scene.types.js.map +0 -0
  169. package/dist/types/shortcut.types.d.ts +11 -11
  170. package/dist/types/shortcut.types.js +9 -9
  171. package/dist/types/skills.types.d.ts +126 -126
  172. package/dist/types/skills.types.d.ts.map +0 -0
  173. package/dist/types/skills.types.js +85 -85
  174. package/dist/types/skills.types.js.map +0 -0
  175. package/dist/types/socket.types.d.ts +17 -17
  176. package/dist/types/socket.types.d.ts.map +0 -0
  177. package/dist/types/socket.types.js +8 -8
  178. package/dist/types/socket.types.js.map +0 -0
  179. package/dist/types/spell.types.d.ts +20 -20
  180. package/dist/types/spell.types.js +8 -8
  181. package/dist/types/tiled.types.d.ts +119 -119
  182. package/dist/types/tiled.types.d.ts.map +0 -0
  183. package/dist/types/tiled.types.js +7 -7
  184. package/dist/types/tiled.types.js.map +0 -0
  185. package/dist/types/trade.types.d.ts +41 -41
  186. package/dist/types/trade.types.d.ts.map +0 -0
  187. package/dist/types/trade.types.js +8 -8
  188. package/dist/types/trade.types.js.map +0 -0
  189. package/dist/types/translation.types.d.ts +5 -5
  190. package/dist/types/translation.types.d.ts.map +0 -0
  191. package/dist/types/translation.types.js +8 -8
  192. package/dist/types/translation.types.js.map +0 -0
  193. package/dist/types/ui.types.d.ts +8 -8
  194. package/dist/types/ui.types.d.ts.map +0 -0
  195. package/dist/types/ui.types.js +7 -7
  196. package/dist/types/ui.types.js.map +0 -0
  197. package/dist/types/useWith.types.d.ts +25 -25
  198. package/dist/types/useWith.types.d.ts.map +0 -0
  199. package/dist/types/useWith.types.js +9 -9
  200. package/dist/types/useWith.types.js.map +0 -0
  201. package/dist/types/user.types.d.ts +101 -101
  202. package/dist/types/user.types.d.ts.map +0 -0
  203. package/dist/types/user.types.js +38 -38
  204. package/dist/types/user.types.js.map +0 -0
  205. package/dist/types/validation.types.d.ts +9 -9
  206. package/dist/types/validation.types.d.ts.map +0 -0
  207. package/dist/types/validation.types.js +2 -2
  208. package/dist/types/validation.types.js.map +0 -0
  209. package/dist/types/view.types.d.ts +14 -14
  210. package/dist/types/view.types.d.ts.map +0 -0
  211. package/dist/types/view.types.js +7 -7
  212. package/dist/types/view.types.js.map +0 -0
  213. package/package.json +42 -42
@@ -1,6 +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
- }
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
6
  //# sourceMappingURL=translation.types.d.ts.map
File without changes
@@ -1,9 +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 = {}));
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
9
  //# sourceMappingURL=translation.types.js.map
File without changes
@@ -1,9 +1,9 @@
1
- export declare enum UISocketEvents {
2
- ShowMessage = "ShowMessage"
3
- }
4
- export declare type UIMessageType = "info" | "warning" | "error";
5
- export interface IUIShowMessage {
6
- message: string;
7
- type: UIMessageType;
8
- }
1
+ export declare enum UISocketEvents {
2
+ ShowMessage = "ShowMessage"
3
+ }
4
+ export declare type UIMessageType = "info" | "warning" | "error";
5
+ export interface IUIShowMessage {
6
+ message: string;
7
+ type: UIMessageType;
8
+ }
9
9
  //# sourceMappingURL=ui.types.d.ts.map
File without changes
@@ -1,8 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UISocketEvents = void 0;
4
- var UISocketEvents;
5
- (function (UISocketEvents) {
6
- UISocketEvents["ShowMessage"] = "ShowMessage";
7
- })(UISocketEvents = exports.UISocketEvents || (exports.UISocketEvents = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UISocketEvents = void 0;
4
+ var UISocketEvents;
5
+ (function (UISocketEvents) {
6
+ UISocketEvents["ShowMessage"] = "ShowMessage";
7
+ })(UISocketEvents = exports.UISocketEvents || (exports.UISocketEvents = {}));
8
8
  //# sourceMappingURL=ui.types.js.map
File without changes
@@ -1,26 +1,26 @@
1
- import { EntityType } from "./entity.types";
2
- import { MapLayers } from "./maps.types";
3
- export interface IUseWithItem {
4
- originItemId: string;
5
- targetItemId: string;
6
- }
7
- export interface IUseWithTile {
8
- originItemId: string;
9
- targetTile: {
10
- x: number;
11
- y: number;
12
- map: string;
13
- layer: MapLayers;
14
- };
15
- }
16
- export interface IUseWithEntity {
17
- itemId: string;
18
- entityId: string;
19
- entityType: EntityType;
20
- }
21
- export declare enum UseWithSocketEvents {
22
- UseWithItem = "UseWithItem",
23
- UseWithTile = "UseWithTile",
24
- UseWithEntity = "UseWithEntity"
25
- }
1
+ import { EntityType } from "./entity.types";
2
+ import { MapLayers } from "./maps.types";
3
+ export interface IUseWithItem {
4
+ originItemId: string;
5
+ targetItemId: string;
6
+ }
7
+ export interface IUseWithTile {
8
+ originItemId: string;
9
+ targetTile: {
10
+ x: number;
11
+ y: number;
12
+ map: string;
13
+ layer: MapLayers;
14
+ };
15
+ }
16
+ export interface IUseWithEntity {
17
+ itemId: string;
18
+ entityId: string;
19
+ entityType: EntityType;
20
+ }
21
+ export declare enum UseWithSocketEvents {
22
+ UseWithItem = "UseWithItem",
23
+ UseWithTile = "UseWithTile",
24
+ UseWithEntity = "UseWithEntity"
25
+ }
26
26
  //# sourceMappingURL=useWith.types.d.ts.map
File without changes
@@ -1,10 +1,10 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UseWithSocketEvents = void 0;
4
- var UseWithSocketEvents;
5
- (function (UseWithSocketEvents) {
6
- UseWithSocketEvents["UseWithItem"] = "UseWithItem";
7
- UseWithSocketEvents["UseWithTile"] = "UseWithTile";
8
- UseWithSocketEvents["UseWithEntity"] = "UseWithEntity";
9
- })(UseWithSocketEvents = exports.UseWithSocketEvents || (exports.UseWithSocketEvents = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UseWithSocketEvents = void 0;
4
+ var UseWithSocketEvents;
5
+ (function (UseWithSocketEvents) {
6
+ UseWithSocketEvents["UseWithItem"] = "UseWithItem";
7
+ UseWithSocketEvents["UseWithTile"] = "UseWithTile";
8
+ UseWithSocketEvents["UseWithEntity"] = "UseWithEntity";
9
+ })(UseWithSocketEvents = exports.UseWithSocketEvents || (exports.UseWithSocketEvents = {}));
10
10
  //# sourceMappingURL=useWith.types.js.map
File without changes
@@ -1,102 +1,102 @@
1
- import { ICharacter } from "./character.types";
2
- import { IResource } from "./resource.types";
3
- export interface IUserPreferences {
4
- experience: UserExperience;
5
- goal: UserGoal;
6
- }
7
- export interface IUserEntity extends IResource {
8
- name: string | null;
9
- role: UserTypes | null;
10
- authFlow: UserAuthFlow;
11
- email: string;
12
- address: string | null;
13
- phone: string | null;
14
- unsubscribed: boolean;
15
- characters: ICharacter[];
16
- wallet: IUserWallet;
17
- }
18
- export interface IUserWallet {
19
- publicAddress: string;
20
- networkId: number;
21
- }
22
- export interface IUserToken {
23
- token: string;
24
- }
25
- export declare enum UserExperience {
26
- Beginner = "Beginner",
27
- Intermediate = "Intermediate",
28
- Advanced = "Advanced"
29
- }
30
- export declare enum UserGoal {
31
- LearnMore = "LearnMore",
32
- TrackPortfolio = "TrackPortfolio",
33
- CompanyInsights = "CompanyInsights"
34
- }
35
- export declare enum UserTypes {
36
- Admin = "Admin",
37
- Regular = "Regular",
38
- Staff = "Staff"
39
- }
40
- export declare enum UserAuthFlow {
41
- Basic = "Basic",
42
- GoogleOAuth = "GoogleOAuth",
43
- FacebookOAuth = "FacebookOAuth",
44
- LinkedInOAuth = "LinkedInOAuth",
45
- AppleOAuth = "AppleOAuth"
46
- }
47
- export interface IUser extends IUserEntity {
48
- name: string | null;
49
- isLoggedIn: boolean;
50
- token: string | null;
51
- }
52
- export interface INewUser {
53
- name: string;
54
- email: string;
55
- password: string;
56
- passwordConfirmation: string;
57
- address?: string;
58
- phone?: string;
59
- }
60
- export interface IUserCredentials {
61
- email: string;
62
- password: string;
63
- }
64
- export interface IChangePasswords {
65
- currentPassword: string;
66
- newPassword: string;
67
- }
68
- export interface IUserAccessToken {
69
- accessToken: string;
70
- }
71
- export declare enum UserActionTypes {
72
- fetch = "fetch",
73
- login = "login",
74
- refreshInfo = "refreshInfo",
75
- clear = "clear",
76
- register = "register",
77
- updatePushNotificationToken = "updatePushNotificationToken"
78
- }
79
- export interface IDispatchUpdatePushNotificationToken {
80
- type: UserActionTypes.updatePushNotificationToken;
81
- payload: string;
82
- }
83
- export interface IDispatchUserFetch {
84
- type: UserActionTypes.fetch;
85
- payload: IUser;
86
- }
87
- export interface IDispatchUserInfo {
88
- type: UserActionTypes.refreshInfo;
89
- payload: IUserEntity;
90
- }
91
- export interface IDispatchUserLogin {
92
- type: UserActionTypes.login;
93
- payload: IUserAccessToken;
94
- }
95
- export interface IDispatchUserClear {
96
- type: UserActionTypes.clear;
97
- }
98
- export interface IDispatchUserRegister {
99
- type: UserActionTypes.register;
100
- }
101
- export declare type UserAction = IDispatchUserFetch | IDispatchUserLogin | IDispatchUserInfo | IDispatchUserClear | IDispatchUpdatePushNotificationToken;
1
+ import { ICharacter } from "./character.types";
2
+ import { IResource } from "./resource.types";
3
+ export interface IUserPreferences {
4
+ experience: UserExperience;
5
+ goal: UserGoal;
6
+ }
7
+ export interface IUserEntity extends IResource {
8
+ name: string | null;
9
+ role: UserTypes | null;
10
+ authFlow: UserAuthFlow;
11
+ email: string;
12
+ address: string | null;
13
+ phone: string | null;
14
+ unsubscribed: boolean;
15
+ characters: ICharacter[];
16
+ wallet: IUserWallet;
17
+ }
18
+ export interface IUserWallet {
19
+ publicAddress: string;
20
+ networkId: number;
21
+ }
22
+ export interface IUserToken {
23
+ token: string;
24
+ }
25
+ export declare enum UserExperience {
26
+ Beginner = "Beginner",
27
+ Intermediate = "Intermediate",
28
+ Advanced = "Advanced"
29
+ }
30
+ export declare enum UserGoal {
31
+ LearnMore = "LearnMore",
32
+ TrackPortfolio = "TrackPortfolio",
33
+ CompanyInsights = "CompanyInsights"
34
+ }
35
+ export declare enum UserTypes {
36
+ Admin = "Admin",
37
+ Regular = "Regular",
38
+ Staff = "Staff"
39
+ }
40
+ export declare enum UserAuthFlow {
41
+ Basic = "Basic",
42
+ GoogleOAuth = "GoogleOAuth",
43
+ FacebookOAuth = "FacebookOAuth",
44
+ LinkedInOAuth = "LinkedInOAuth",
45
+ AppleOAuth = "AppleOAuth"
46
+ }
47
+ export interface IUser extends IUserEntity {
48
+ name: string | null;
49
+ isLoggedIn: boolean;
50
+ token: string | null;
51
+ }
52
+ export interface INewUser {
53
+ name: string;
54
+ email: string;
55
+ password: string;
56
+ passwordConfirmation: string;
57
+ address?: string;
58
+ phone?: string;
59
+ }
60
+ export interface IUserCredentials {
61
+ email: string;
62
+ password: string;
63
+ }
64
+ export interface IChangePasswords {
65
+ currentPassword: string;
66
+ newPassword: string;
67
+ }
68
+ export interface IUserAccessToken {
69
+ accessToken: string;
70
+ }
71
+ export declare enum UserActionTypes {
72
+ fetch = "fetch",
73
+ login = "login",
74
+ refreshInfo = "refreshInfo",
75
+ clear = "clear",
76
+ register = "register",
77
+ updatePushNotificationToken = "updatePushNotificationToken"
78
+ }
79
+ export interface IDispatchUpdatePushNotificationToken {
80
+ type: UserActionTypes.updatePushNotificationToken;
81
+ payload: string;
82
+ }
83
+ export interface IDispatchUserFetch {
84
+ type: UserActionTypes.fetch;
85
+ payload: IUser;
86
+ }
87
+ export interface IDispatchUserInfo {
88
+ type: UserActionTypes.refreshInfo;
89
+ payload: IUserEntity;
90
+ }
91
+ export interface IDispatchUserLogin {
92
+ type: UserActionTypes.login;
93
+ payload: IUserAccessToken;
94
+ }
95
+ export interface IDispatchUserClear {
96
+ type: UserActionTypes.clear;
97
+ }
98
+ export interface IDispatchUserRegister {
99
+ type: UserActionTypes.register;
100
+ }
101
+ export declare type UserAction = IDispatchUserFetch | IDispatchUserLogin | IDispatchUserInfo | IDispatchUserClear | IDispatchUpdatePushNotificationToken;
102
102
  //# sourceMappingURL=user.types.d.ts.map
File without changes
@@ -1,39 +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 = {}));
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
39
  //# sourceMappingURL=user.types.js.map
File without changes
@@ -1,10 +1,10 @@
1
- export interface IValidationError {
2
- target?: Object | undefined;
3
- value?: string;
4
- property?: string;
5
- children?: object[];
6
- constraints?: {
7
- [type: string]: string;
8
- } | undefined;
9
- }
1
+ export interface IValidationError {
2
+ target?: Object | undefined;
3
+ value?: string;
4
+ property?: string;
5
+ children?: object[];
6
+ constraints?: {
7
+ [type: string]: string;
8
+ } | undefined;
9
+ }
10
10
  //# sourceMappingURL=validation.types.d.ts.map
File without changes
@@ -1,3 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  //# sourceMappingURL=validation.types.js.map
File without changes
@@ -1,15 +1,15 @@
1
- export interface IViewElement {
2
- id: string;
3
- x: number;
4
- y: number;
5
- scene: string;
6
- direction?: string;
7
- }
8
- export declare enum ViewSocketEvents {
9
- Destroy = "Destroy"
10
- }
11
- export interface IViewDestroyElementPayload {
12
- type: "npcs" | "items" | "characters";
13
- id: string;
14
- }
1
+ export interface IViewElement {
2
+ id: string;
3
+ x: number;
4
+ y: number;
5
+ scene: string;
6
+ direction?: string;
7
+ }
8
+ export declare enum ViewSocketEvents {
9
+ Destroy = "Destroy"
10
+ }
11
+ export interface IViewDestroyElementPayload {
12
+ type: "npcs" | "items" | "characters";
13
+ id: string;
14
+ }
15
15
  //# sourceMappingURL=view.types.d.ts.map
File without changes
@@ -1,8 +1,8 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ViewSocketEvents = void 0;
4
- var ViewSocketEvents;
5
- (function (ViewSocketEvents) {
6
- ViewSocketEvents["Destroy"] = "Destroy";
7
- })(ViewSocketEvents = exports.ViewSocketEvents || (exports.ViewSocketEvents = {}));
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ViewSocketEvents = void 0;
4
+ var ViewSocketEvents;
5
+ (function (ViewSocketEvents) {
6
+ ViewSocketEvents["Destroy"] = "Destroy";
7
+ })(ViewSocketEvents = exports.ViewSocketEvents || (exports.ViewSocketEvents = {}));
8
8
  //# sourceMappingURL=view.types.js.map
File without changes
package/package.json CHANGED
@@ -1,42 +1,42 @@
1
- {
2
- "name": "@rpg-engine/shared",
3
- "version": "0.6.85",
4
- "description": "Types shared across our API and client",
5
- "author": "Definya Team",
6
- "homepage": "",
7
- "license": "ISC",
8
- "main": "dist/index",
9
- "directories": {
10
- "dist": "dist",
11
- "src": "src"
12
- },
13
- "files": [
14
- "dist"
15
- ],
16
- "publishConfig": {
17
- "access": "public"
18
- },
19
- "scripts": {
20
- "test": "echo \"Error: no test specified\" && exit 1",
21
- "tsc": "tsc -p .",
22
- "prepublish": "tsc",
23
- "format": "prettier --write 'src/**/*.ts' --loglevel silent",
24
- "format:check": "prettier --check '**/*.ts' '**/*.json'",
25
- "configure": "./environment/download-credentials.sh"
26
- },
27
- "husky": {
28
- "hooks": {
29
- "pre-push": "yarn tsc && yarn format"
30
- }
31
- },
32
- "dependencies": {
33
- "husky": "^4.3.0",
34
- "prettier": "^2.2.1",
35
- "tsc": "^2.0.4",
36
- "typescript": "^4.6.4"
37
- },
38
- "devDependencies": {
39
- "@rpg-engine/shared": "^0.2.51",
40
- "@types/mongoose": "^5.11.97"
41
- }
42
- }
1
+ {
2
+ "name": "@rpg-engine/shared",
3
+ "version": "0.6.86",
4
+ "description": "Types shared across our API and client",
5
+ "author": "Definya Team",
6
+ "homepage": "",
7
+ "license": "ISC",
8
+ "main": "dist/index",
9
+ "directories": {
10
+ "dist": "dist",
11
+ "src": "src"
12
+ },
13
+ "files": [
14
+ "dist"
15
+ ],
16
+ "publishConfig": {
17
+ "access": "public"
18
+ },
19
+ "scripts": {
20
+ "test": "echo \"Error: no test specified\" && exit 1",
21
+ "tsc": "tsc -p .",
22
+ "prepublish": "tsc",
23
+ "format": "prettier --write 'src/**/*.ts' --loglevel silent",
24
+ "format:check": "prettier --check '**/*.ts' '**/*.json'",
25
+ "configure": "./environment/download-credentials.sh"
26
+ },
27
+ "husky": {
28
+ "hooks": {
29
+ "pre-push": "yarn tsc && yarn format"
30
+ }
31
+ },
32
+ "dependencies": {
33
+ "husky": "^4.3.0",
34
+ "prettier": "^2.2.1",
35
+ "tsc": "^2.0.4",
36
+ "typescript": "^4.6.4"
37
+ },
38
+ "devDependencies": {
39
+ "@rpg-engine/shared": "^0.2.51",
40
+ "@types/mongoose": "^5.11.97"
41
+ }
42
+ }