@rpg-engine/shared 0.0.5 → 0.0.8

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 (122) hide show
  1. package/dist/constants/{worldConstants.d.ts → world.constants.d.ts} +1 -1
  2. package/dist/constants/world.constants.d.ts.map +1 -0
  3. package/dist/constants/{worldConstants.js → world.constants.js} +1 -1
  4. package/dist/constants/world.constants.js.map +1 -0
  5. package/dist/index.d.ts +19 -8
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +19 -8
  8. package/dist/index.js.map +1 -1
  9. package/dist/libs/TextHelper.d.ts +8 -0
  10. package/dist/libs/TextHelper.d.ts.map +1 -0
  11. package/dist/libs/TextHelper.js +22 -0
  12. package/dist/libs/TextHelper.js.map +1 -0
  13. package/dist/translations/app-rate.lang.json +38 -0
  14. package/dist/translations/assets.lang.json +82 -0
  15. package/dist/translations/auth.lang.json +182 -0
  16. package/dist/translations/email.lang.json +70 -0
  17. package/dist/translations/error.lang.json +18 -0
  18. package/dist/translations/form.lang.json +94 -0
  19. package/dist/translations/global.lang.json +90 -0
  20. package/dist/translations/logs.lang.json +6 -0
  21. package/dist/translations/onboarding.lang.d.ts +11 -0
  22. package/dist/translations/onboarding.lang.d.ts.map +1 -0
  23. package/dist/translations/onboarding.lang.js +22 -0
  24. package/dist/translations/onboarding.lang.js.map +1 -0
  25. package/dist/translations/onboarding.lang.json +50 -0
  26. package/dist/translations/order.lang.json +90 -0
  27. package/dist/translations/search.lang.json +50 -0
  28. package/dist/translations/settings.lang.json +14 -0
  29. package/dist/translations/tabs.lang.json +22 -0
  30. package/dist/translations/users.lang.json +22 -0
  31. package/dist/translations/validation.lang.json +86 -0
  32. package/dist/types/{AnimationTypes.d.ts → animation.types.d.ts} +1 -1
  33. package/dist/types/animation.types.d.ts.map +1 -0
  34. package/dist/types/animation.types.js +3 -0
  35. package/dist/types/animation.types.js.map +1 -0
  36. package/dist/types/api.types.d.ts +21 -0
  37. package/dist/types/api.types.d.ts.map +1 -0
  38. package/dist/types/api.types.js +20 -0
  39. package/dist/types/api.types.js.map +1 -0
  40. package/dist/types/{AssetTypes.d.ts → asset.types.d.ts} +2 -2
  41. package/dist/types/asset.types.d.ts.map +1 -0
  42. package/dist/types/{SceneTypes.js → asset.types.js} +1 -1
  43. package/dist/types/asset.types.js.map +1 -0
  44. package/dist/types/auth.types.d.ts +8 -0
  45. package/dist/types/auth.types.d.ts.map +1 -0
  46. package/dist/types/{AssetTypes.js → auth.types.js} +1 -1
  47. package/dist/types/auth.types.js.map +1 -0
  48. package/dist/types/character.types.d.ts +30 -0
  49. package/dist/types/character.types.d.ts.map +1 -0
  50. package/dist/types/character.types.js +20 -0
  51. package/dist/types/character.types.js.map +1 -0
  52. package/dist/types/device.types.d.ts +25 -0
  53. package/dist/types/device.types.d.ts.map +1 -0
  54. package/dist/types/device.types.js +8 -0
  55. package/dist/types/device.types.js.map +1 -0
  56. package/dist/types/env.types.d.ts +6 -0
  57. package/dist/types/env.types.d.ts.map +1 -0
  58. package/dist/types/env.types.js +10 -0
  59. package/dist/types/env.types.js.map +1 -0
  60. package/dist/types/googleOAuth.types.d.ts +48 -0
  61. package/dist/types/googleOAuth.types.d.ts.map +1 -0
  62. package/dist/types/googleOAuth.types.js +3 -0
  63. package/dist/types/googleOAuth.types.js.map +1 -0
  64. package/dist/types/{MapsTypes.d.ts → maps.types.d.ts} +1 -1
  65. package/dist/types/maps.types.d.ts.map +1 -0
  66. package/dist/types/{MapsTypes.js → maps.types.js} +1 -1
  67. package/dist/types/maps.types.js.map +1 -0
  68. package/dist/types/pagination.types.d.ts +14 -0
  69. package/dist/types/pagination.types.d.ts.map +1 -0
  70. package/dist/types/pagination.types.js +3 -0
  71. package/dist/types/pagination.types.js.map +1 -0
  72. package/dist/types/places.types.d.ts +17 -0
  73. package/dist/types/places.types.d.ts.map +1 -0
  74. package/dist/types/places.types.js +10 -0
  75. package/dist/types/places.types.js.map +1 -0
  76. package/dist/types/{PlayerTypes.d.ts → player.types.d.ts} +1 -1
  77. package/dist/types/player.types.d.ts.map +1 -0
  78. package/dist/types/{PlayerTypes.js → player.types.js} +1 -1
  79. package/dist/types/player.types.js.map +1 -0
  80. package/dist/types/{PreloadSceneTypes.d.ts → preloadScene.types.d.ts} +1 -1
  81. package/dist/types/preloadScene.types.d.ts.map +1 -0
  82. package/dist/types/{PreloadSceneTypes.js → preloadScene.types.js} +1 -1
  83. package/dist/types/preloadScene.types.js.map +1 -0
  84. package/dist/types/resource.types.d.ts +5 -0
  85. package/dist/types/resource.types.d.ts.map +1 -0
  86. package/dist/types/{AnimationTypes.js → resource.types.js} +1 -1
  87. package/dist/types/resource.types.js.map +1 -0
  88. package/dist/types/{SceneTypes.d.ts → scene.types.d.ts} +1 -1
  89. package/dist/types/scene.types.d.ts.map +1 -0
  90. package/dist/types/scene.types.js +3 -0
  91. package/dist/types/scene.types.js.map +1 -0
  92. package/dist/types/translation.types.d.ts +6 -0
  93. package/dist/types/translation.types.d.ts.map +1 -0
  94. package/dist/types/translation.types.js +9 -0
  95. package/dist/types/translation.types.js.map +1 -0
  96. package/dist/types/user.types.d.ts +99 -0
  97. package/dist/types/user.types.d.ts.map +1 -0
  98. package/dist/types/user.types.js +39 -0
  99. package/dist/types/user.types.js.map +1 -0
  100. package/dist/types/validation.types.d.ts +10 -0
  101. package/dist/types/validation.types.d.ts.map +1 -0
  102. package/dist/types/validation.types.js +3 -0
  103. package/dist/types/validation.types.js.map +1 -0
  104. package/package.json +1 -1
  105. package/dist/constants/worldConstants.d.ts.map +0 -1
  106. package/dist/constants/worldConstants.js.map +0 -1
  107. package/dist/lib/Math.d.ts +0 -2
  108. package/dist/lib/Math.d.ts.map +0 -1
  109. package/dist/lib/Math.js +0 -6
  110. package/dist/lib/Math.js.map +0 -1
  111. package/dist/types/AnimationTypes.d.ts.map +0 -1
  112. package/dist/types/AnimationTypes.js.map +0 -1
  113. package/dist/types/AssetTypes.d.ts.map +0 -1
  114. package/dist/types/AssetTypes.js.map +0 -1
  115. package/dist/types/MapsTypes.d.ts.map +0 -1
  116. package/dist/types/MapsTypes.js.map +0 -1
  117. package/dist/types/PlayerTypes.d.ts.map +0 -1
  118. package/dist/types/PlayerTypes.js.map +0 -1
  119. package/dist/types/PreloadSceneTypes.d.ts.map +0 -1
  120. package/dist/types/PreloadSceneTypes.js.map +0 -1
  121. package/dist/types/SceneTypes.d.ts.map +0 -1
  122. package/dist/types/SceneTypes.js.map +0 -1
@@ -0,0 +1,90 @@
1
+ {
2
+ "forbiddenKeyUpdate": {
3
+ "eng": "Error while trying to update the following forbidden keys: {{forbiddenProperties}}",
4
+ "ptBr": "Erro ao tentar atualizar as seguintes chaves: {{forbiddenProperties}}"
5
+ },
6
+ "serverBootstrapError": {
7
+ "eng": "Error while trying to bootstrap server on port {{port}}",
8
+ "ptBr": "Erro ao tentar inicializar o servidor na porta {{port}}"
9
+ },
10
+ "serverRunning": {
11
+ "eng": "Server is running on {{env}} | Port: {{port}} | Language: {{language}} | Timezone: {{timezone}} | Admin: {{adminEmail}}",
12
+ "ptBr": "Servidor rodando em {{env}} | Porta: {{port}} | Idioma: {{language}} | Timezone: {{timezone}} | Admin: {{adminEmail}}"
13
+ },
14
+ "waitMessage": {
15
+ "eng": "Please wait...",
16
+ "ptBr": "Por favor, aguarde..."
17
+ },
18
+ "connectionError": {
19
+ "eng": "Couldn't connect to the server. Please, check your internet connection!",
20
+ "ptBr": "Não foi possível conectar ao servidor. Por favor, verifique sua conexão à internet!"
21
+ },
22
+ "oops": {
23
+ "eng": "Oops!",
24
+ "ptBr": "Oops!"
25
+ },
26
+ "success": {
27
+ "eng": "🎉",
28
+ "ptBr": "🎉"
29
+ },
30
+ "contact": {
31
+ "eng": "Contact",
32
+ "ptBr": "Contato"
33
+ },
34
+ "termsOfUse": {
35
+ "eng": "Terms of Use",
36
+ "ptBr": "Termos de Uso"
37
+ },
38
+ "privacyPolicy": {
39
+ "eng": "Privacy Policy",
40
+ "ptBr": "Política de Privacidade"
41
+ },
42
+ "clickHere": {
43
+ "eng": "Click here.",
44
+ "ptBr": "Clique aqui."
45
+ },
46
+ "create": {
47
+ "eng": "Create",
48
+ "ptBr": "Criar"
49
+ },
50
+ "read": {
51
+ "eng": "Read",
52
+ "ptBr": "Ler"
53
+ },
54
+ "update": {
55
+ "eng": "Update",
56
+ "ptBr": "Atualizar"
57
+ },
58
+ "delete": {
59
+ "eng": "Delete",
60
+ "ptBr": "Deletar"
61
+ },
62
+ "cancel": {
63
+ "eng": "Cancel",
64
+ "ptBr": "Cancelar"
65
+ },
66
+ "confirm": {
67
+ "eng": "Confirm",
68
+ "ptBr": "Confirmar"
69
+ },
70
+ "actionConfirmation": {
71
+ "eng": "Are you sure you want to perform this action?",
72
+ "ptBr": "Tem certeza de que deseja realizar esta ação?"
73
+ },
74
+ "close": {
75
+ "eng": "Close",
76
+ "ptBr": "Fechar"
77
+ },
78
+ "and": {
79
+ "eng": "and",
80
+ "ptBr": "e"
81
+ },
82
+ "errorTryAgain": {
83
+ "eng": "Error! Try again.",
84
+ "ptBr": "Erro! Tente novamente."
85
+ },
86
+ "back": {
87
+ "eng": "Back",
88
+ "ptBr": "Voltar"
89
+ }
90
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "logDeleteNotFound": {
3
+ "eng": "Only admins can access this route!",
4
+ "ptBr": "Apenas administradores podem acessar esta rota."
5
+ }
6
+ }
@@ -0,0 +1,11 @@
1
+ export declare const strings: {
2
+ firstStockBuyModalBody: {
3
+ eng: string;
4
+ ptBr: string;
5
+ };
6
+ firstStockSellModalBody: {
7
+ eng: string;
8
+ ptBr: string;
9
+ };
10
+ };
11
+ //# sourceMappingURL=onboarding.lang.d.ts.map
@@ -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,50 @@
1
+ {
2
+ "milestoneCompleted": {
3
+ "eng": "Milestone Completed",
4
+ "ptBr": "Meta Concluída"
5
+ },
6
+ "firstStockBuyModalSubtitle": {
7
+ "eng": "Ahoy! You bought your first stock",
8
+ "ptBr": "Boa! Você comprou seu primeiro ativo"
9
+ },
10
+ "firstStockSellModalSubtitle": {
11
+ "eng": "Ahoy! You sold your first stock",
12
+ "ptBr": "Boa! Você vendeu seu primeiro ativo"
13
+ },
14
+ "searchAsset": {
15
+ "eng": "Search for an Asset",
16
+ "ptBr": "Procure por um Ativo"
17
+ },
18
+ "setOrderQty": {
19
+ "eng": "Set your order quantity",
20
+ "ptBr": "Defina a quantidade da ordem"
21
+ },
22
+ "selectOperationType": {
23
+ "eng": "Select operation type",
24
+ "ptBr": "Selecione o tipo de operação"
25
+ },
26
+ "placeYourOrder": {
27
+ "eng": "Place your order",
28
+ "ptBr": "Faça sua ordem"
29
+ },
30
+ "searchAssetText": {
31
+ "eng": "Search for any stock that's interesting for you. You can try by name or ticker. For example: Type 'Netflix' or 'NFLX' to buy the Netflix stock.",
32
+ "ptBr": "Pesquise qualquer ação que seja do seu interesse. Você pode tentar por nome da empresa ou ticker. Por exemplo: digite 'Netflix' ou 'NFLX' para comprar ações da Netflix."
33
+ },
34
+ "setOrderQtyText": {
35
+ "eng": "Here you set how much from your funds you'd like to invest in this asset. Try typing 10,000, for example.",
36
+ "ptBr": "Aqui você define quanto de seus fundos gostaria de investir neste ativo. Tente digitar 10.000, por exemplo."
37
+ },
38
+ "selectOperationTypeText": {
39
+ "eng": "You can toggle here the order operation. For this example, let's leave the 'buy' toggle selected.",
40
+ "ptBr": "Você pode alternar aqui a operação da ordem. Para este exemplo, vamos deixar o botão de alternância 'comprar' selecionado."
41
+ },
42
+ "placeYourOrderText": {
43
+ "eng": "Now click here to place your order.",
44
+ "ptBr": "Agora clique aqui para fazer sua ordem."
45
+ },
46
+ "gotIt": {
47
+ "eng": "Got It!",
48
+ "ptBr": "Entendi!"
49
+ }
50
+ }
@@ -0,0 +1,90 @@
1
+ {
2
+ "placeAssetOrder": {
3
+ "eng": "Place an Asset Order",
4
+ "ptBr": "Nova Ordem de Ativo"
5
+ },
6
+ "amountIn": {
7
+ "eng": "Amount in",
8
+ "ptBr": "Quantia em"
9
+ },
10
+ "funds": {
11
+ "eng": "Remaining funds",
12
+ "ptBr": "Fundos restantes"
13
+ },
14
+ "placeBuyOrderCTA": {
15
+ "eng": "Place a buy order",
16
+ "ptBr": "Finalizar compra"
17
+ },
18
+ "placeSellOrderCTA": {
19
+ "eng": "Place a sell order",
20
+ "ptBr": "Finalizar venda"
21
+ },
22
+ "buy": {
23
+ "eng": "Buy",
24
+ "ptBr": "Compra"
25
+ },
26
+ "sell": {
27
+ "eng": "Sell",
28
+ "ptBr": "Venda"
29
+ },
30
+ "confirmBuyOrder": {
31
+ "eng": "Confirm the Buy Order.",
32
+ "ptBr": "Confirme o Pedido de Compra."
33
+ },
34
+ "confirmSellOrder": {
35
+ "eng": "Confirm the Sell Order.",
36
+ "ptBr": "Confirme o Pedido de Venda."
37
+ },
38
+ "noPortfolioDefined": {
39
+ "eng": "Error: No portfolio defined.",
40
+ "ptBr": "Erro: Nenhuma carteira definida."
41
+ },
42
+ "noAssetDefined": {
43
+ "eng": "Please, select an asset.",
44
+ "ptBr": "Por favor, selecione um ativo."
45
+ },
46
+ "selectPositiveQuantity": {
47
+ "eng": "Please, enter a positive quantity.",
48
+ "ptBr": "Por favor, adicione uma quantidade positiva"
49
+ },
50
+ "selectPositiveValue": {
51
+ "eng": "Please, enter a positive amount.",
52
+ "ptBr": "Por favor, adicione uma quantia positiva"
53
+ },
54
+ "noHasAssetToSell": {
55
+ "eng": "The portfolio does not have the selected asset to sell it.",
56
+ "ptBr": "A carteira não possui o ativo selecionado para venda."
57
+ },
58
+ "noPurchaseTypeDefined": {
59
+ "eng": "Error: No purchase type defined.",
60
+ "ptBr": "Erro: Nenhum tipo de compra definido."
61
+ },
62
+ "quantity": {
63
+ "eng": "Quantity",
64
+ "ptBr": "Quantidade"
65
+ },
66
+ "amount": {
67
+ "eng": "Amount",
68
+ "ptBr": "Quantia"
69
+ },
70
+ "shares": {
71
+ "eng": "Number of",
72
+ "ptBr": "Número de"
73
+ },
74
+ "shares2": {
75
+ "eng": "shares",
76
+ "ptBr": "ações"
77
+ },
78
+ "portfolioAsset": {
79
+ "eng": "Trade a portfolio asset",
80
+ "ptBr": "Faça uma nova transação"
81
+ },
82
+ "youHave": {
83
+ "eng": "You have",
84
+ "ptBt": "Você tem"
85
+ },
86
+ "insufficientFunds": {
87
+ "eng": "Your portfolio does not have sufficient funds to process the order.",
88
+ "ptBr": "Sua carteira não tem fundos suficientes para processar o pedido."
89
+ }
90
+ }
@@ -0,0 +1,50 @@
1
+ {
2
+ "search": {
3
+ "eng": "Search",
4
+ "ptBr": "Pesquisar"
5
+ },
6
+ "searchPlaceholder": {
7
+ "eng": "Search by company or ticker",
8
+ "ptBr": "Pesquise a companhia ou ticker"
9
+ },
10
+ "sortBy": {
11
+ "eng": "Sort by",
12
+ "ptBr": "Ordenar por"
13
+ },
14
+ "resultsFound": {
15
+ "eng": "results found",
16
+ "ptBr": "resultados encontrados"
17
+ },
18
+ "first15": {
19
+ "eng": "First 15 results found",
20
+ "ptBr": "15 primeiros resultados encontrados"
21
+ },
22
+ "noResult": {
23
+ "eng": "No result found",
24
+ "ptBr": "Nenhum resultado encontrado"
25
+ },
26
+ "oneResult": {
27
+ "eng": "One result found",
28
+ "ptBr": "Um resultado encontrado"
29
+ },
30
+ "countrySortBy": {
31
+ "eng": "Country",
32
+ "ptBr": "País"
33
+ },
34
+ "nameSortBy": {
35
+ "eng": "Company Name",
36
+ "ptBr": "Nome da Companhia"
37
+ },
38
+ "tickerSortBy": {
39
+ "eng": "Ticker",
40
+ "ptBr": "Ticker"
41
+ },
42
+ "typeSortBy": {
43
+ "eng": "Type",
44
+ "ptBr": "Tipo"
45
+ },
46
+ "stockExchangeSortBy": {
47
+ "eng": "Stock Exchange",
48
+ "ptBr": "Bolsa de Valores"
49
+ }
50
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "settings": {
3
+ "eng": "Settings",
4
+ "ptBr": "Configurações"
5
+ },
6
+ "colorDisplay": {
7
+ "eng": "Color Display",
8
+ "ptBr": "Modo de Cores"
9
+ },
10
+ "language": {
11
+ "eng": "Language",
12
+ "ptBr": "Idioma"
13
+ }
14
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "home": {
3
+ "eng": "Home",
4
+ "ptBr": "Início"
5
+ },
6
+ "track": {
7
+ "eng": "Track",
8
+ "ptBr": "Rastrear"
9
+ },
10
+ "search": {
11
+ "eng": "Search",
12
+ "ptBr": "Buscar"
13
+ },
14
+ "news": {
15
+ "eng": "News",
16
+ "ptBr": "Notícias"
17
+ },
18
+ "settings": {
19
+ "eng": "Settings",
20
+ "ptBr": "Configurações"
21
+ }
22
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "adminOnly": {
3
+ "eng": "Only admins can access this route!",
4
+ "ptBr": "Apenas administradores podem acessar esta rota."
5
+ },
6
+ "userAlreadyExists": {
7
+ "eng": "The user with e-mail {{email}} already exists! Please, try again.",
8
+ "ptBr": "O usuário com e-mail {{email}} já existe! Por favor, tente novamente."
9
+ },
10
+ "userNotFound": {
11
+ "eng": "User does not exist!",
12
+ "ptBr": "Usuário não existe!"
13
+ },
14
+ "userCreationError": {
15
+ "eng": "Error while trying to sign up. Please, check if all required fields were filled correctly.",
16
+ "ptBr": "Erro ao tentar criar novo usuário. Por favor, verifique se todos os campos obrigatórios foram preenchidos corretamente."
17
+ },
18
+ "userAlreadyUnsubscribed": {
19
+ "eng": "This user is already unsubscribed!",
20
+ "ptBr": "Este usuário já cancelou a inscrição!"
21
+ }
22
+ }
@@ -0,0 +1,86 @@
1
+ {
2
+ "isNotEmptyMultiple": {
3
+ "eng": "The following fields cannot be empty: {{fields}}.",
4
+ "ptBr": "Os seguintes campos não podem estar vazios: {{field}}."
5
+ },
6
+ "isNotEmpty": {
7
+ "eng": "{{field}} field cannot be empty.",
8
+ "ptBr": "O campo {{field}} não pode estar vazio."
9
+ },
10
+ "isEmpty": {
11
+ "eng": "{{field}} must be empty.",
12
+ "ptBr": "O campo {{field}} deve estar vazio."
13
+ },
14
+ "isString": {
15
+ "eng": "{{field}} field must be a string.",
16
+ "ptBr": "O campo {{field}} deve ser uma string."
17
+ },
18
+ "isType": {
19
+ "eng": "{{field}} field must be of type {{type}}.",
20
+ "ptBr": "O campo {{field}} deve ser do tipo {{type}}."
21
+ },
22
+ "allArrayFields": {
23
+ "eng": "All elements from array {{field}} must be a {{type}}.",
24
+ "ptBr": "Todos os elementos do campo {{field}} devem ser um {{type}}."
25
+ },
26
+ "minLength": {
27
+ "eng": "{{field}} field must have at least $constraint1 characters.",
28
+ "ptBr": "O campo {{field}} deve ter pelo menos $constraint1 caracteres."
29
+ },
30
+ "maxLength": {
31
+ "eng": "{{field}} field must have up to $constraint1 characters.",
32
+ "ptBr": "O campo {{field}} deve ter até $constraint1 caracteres."
33
+ },
34
+ "isPhoneNumber": {
35
+ "eng": "{{field}} field must be a phone number in the following format: {{format}}.",
36
+ "ptBr": "O campo {{field}} deve ser um número de telefone no seguinte formato: {{format}}."
37
+ },
38
+ "isNumber": {
39
+ "eng": "{{field}} field must be a number.",
40
+ "ptBr": "O campo {{field}} deve ser um número."
41
+ },
42
+ "isEmail": {
43
+ "eng": "{{field}} field must be a valid e-mail.",
44
+ "ptBr": "O campo {{field}} deve ser um e-mail válido."
45
+ },
46
+ "alreadyExists": {
47
+ "eng": "{{field}} already exists!",
48
+ "ptBr": "O campo {{field}} já existe!"
49
+ },
50
+ "alreadyExistsFor": {
51
+ "eng": "An entity {{target}} with this {{field}} already exists!",
52
+ "ptBr": "Um(a) {{target}} com o campo {{field}} já existe!"
53
+ },
54
+ "notFound": {
55
+ "eng": "{{field}} not found!",
56
+ "ptBr": "O campo {{field}} não foi encontrado!"
57
+ },
58
+ "creationError": {
59
+ "eng": "Error while trying to create a new {{field}}.",
60
+ "ptBr": "Erro ao tentar inserir dados para o campo {{field}}."
61
+ },
62
+ "isEnum": {
63
+ "eng": "Error: The {{field}} field accepts only one of the following values: {{types}}.",
64
+ "ptBr": "Erro: o campo {{field}} aceita apenas um dos seguintes valores: {{types}}."
65
+ },
66
+ "requiredResourceCreate": {
67
+ "eng": "A valid {{field}} is required for creating this resource.",
68
+ "ptBr": "Um {{field}} válido é necessário para criar este recurso."
69
+ },
70
+ "errorWhileAction": {
71
+ "eng": "Error while trying to {{action}} the field {{field}}.",
72
+ "ptBr": "Erro ao tentar {{action}} o campo {{field}}."
73
+ },
74
+ "successWhileCreation": {
75
+ "eng": "Your {{resource}} was successfully created.",
76
+ "ptBr": "Sucesso ao criar {{resource}}!"
77
+ },
78
+ "successWhileUpdating": {
79
+ "eng": "Your {{resource}} was successfully updated.",
80
+ "ptBr": "Sucesso ao atualizar {{resource}}!"
81
+ },
82
+ "isInvalid": {
83
+ "eng": "The field {{field}} is invalid. Please, try again.",
84
+ "ptBr": "O campo '{{field}}' é inválido. Por favor, tente novamente."
85
+ }
86
+ }
@@ -5,4 +5,4 @@ export interface IAnimationData {
5
5
  standing: number | number[];
6
6
  };
7
7
  }
8
- //# sourceMappingURL=AnimationTypes.d.ts.map
8
+ //# sourceMappingURL=animation.types.d.ts.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=animation.types.js.map
@@ -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"}
@@ -1,7 +1,7 @@
1
- import { IAnimationData } from "./AnimationTypes";
1
+ import { IAnimationData } from "./animation.types";
2
2
  export interface IAssetData {
3
3
  textureKey: string;
4
4
  path: string;
5
5
  animations: IAnimationData;
6
6
  }
7
- //# sourceMappingURL=AssetTypes.d.ts.map
7
+ //# sourceMappingURL=asset.types.d.ts.map
@@ -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"}
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=SceneTypes.js.map
3
+ //# sourceMappingURL=asset.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asset.types.js","sourceRoot":"","sources":["../../src/types/asset.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ export interface IAuthResponse {
2
+ accessToken: string;
3
+ refreshToken: string;
4
+ }
5
+ export interface IAuthRefreshTokenResponse {
6
+ accessToken: string;
7
+ }
8
+ //# sourceMappingURL=auth.types.d.ts.map
@@ -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"}
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=AssetTypes.js.map
3
+ //# sourceMappingURL=auth.types.js.map
@@ -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