@boozybats/shared
Advanced tools
Comparing version 1.1.37 to 1.1.38
@@ -42,3 +42,3 @@ "use strict"; | ||
var index_1 = require("../../index"); | ||
exports.excludeBotSelect = "".concat(Object.keys(index_1.availableGames) | ||
exports.excludeBotSelect = "".concat(index_1.gamesKeys | ||
.map(function (key) { | ||
@@ -143,3 +143,3 @@ return "-votes.".concat(key, ".userIds"); | ||
select: false, | ||
default: __assign({}, Object.keys(index_1.availableGames).reduce(function (acc, serviceName) { | ||
default: __assign({}, index_1.gamesKeys.reduce(function (acc, serviceName) { | ||
acc[serviceName] = { | ||
@@ -151,3 +151,3 @@ userIds: [], | ||
}, {})), | ||
type: Object.keys(index_1.availableGames).reduce(function (acc, serviceName) { | ||
type: index_1.gamesKeys.reduce(function (acc, serviceName) { | ||
acc[serviceName] = { | ||
@@ -433,3 +433,3 @@ required: false, | ||
type: String, | ||
enum: index_1.subscriptionTypes, | ||
enum: __spreadArray(__spreadArray([], __read(index_1.subscriptionTypes), false), [null], false), | ||
}, | ||
@@ -436,0 +436,0 @@ duration: { |
@@ -414,2 +414,12 @@ "use strict"; | ||
}, | ||
achievements: { | ||
required: false, | ||
default: [], | ||
type: [ | ||
{ | ||
type: String, | ||
enum: index_1.achievements, | ||
}, | ||
], | ||
}, | ||
createdAt: { | ||
@@ -416,0 +426,0 @@ type: Number, |
@@ -5,3 +5,3 @@ import { Document } from 'mongoose'; | ||
import { Recipe } from '../recipe'; | ||
import { MenuContext, Rarity, Stack } from '../../types'; | ||
import { Achievement, MenuContext, Rarity, Stack } from '../../types'; | ||
import { PromoCode, PromoCodeTemplate } from '../promoCode'; | ||
@@ -60,3 +60,4 @@ export interface ForgeStack { | ||
}; | ||
achievements: Achievement[]; | ||
createdAt: number; | ||
} |
@@ -13,3 +13,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.rarities = exports.miniGamesInfo = exports.premiumGameKeys = exports.miniGamesKeys = exports.gamesInfo = exports.gamesCountPerWeek = exports.gamesCount = exports.availableGames = exports.gamesKeys = exports.horses = exports.subscriptionDurationsValues = exports.gameStatesValues = exports.banTypes = exports.defaultLangCode = exports.maxAddTime = exports.defaultChatChangeCount = exports.defaultRespectCountProd = exports.defaultRespectCount = exports.defaultTokensCountProd = exports.defaultTokensCount = exports.subscriptionTypes = exports.paymentProviders = exports.paymentStatuses = exports.defaultNodeEnv = void 0; | ||
exports.rarities = exports.miniGamesInfo = exports.premiumGameKeys = exports.miniGamesKeys = exports.gamesInfo = exports.gamesCountPerWeek = exports.gamesCount = exports.gamesKeys = exports.horses = exports.subscriptionDurationsValues = exports.gameStatesValues = exports.banTypes = exports.defaultLangCode = exports.maxAddTime = exports.defaultChatChangeCount = exports.defaultRespectCountProd = exports.defaultRespectCount = exports.defaultTokensCountProd = exports.defaultTokensCount = exports.achievements = exports.subscriptionTypes = exports.paymentProviders = exports.paymentStatuses = exports.defaultNodeEnv = void 0; | ||
exports.defaultNodeEnv = 'production'; | ||
@@ -19,2 +19,3 @@ exports.paymentStatuses = ['success', 'pending', 'failed', 'cancelled']; | ||
exports.subscriptionTypes = ['newbie', 'advanced', 'pro']; | ||
exports.achievements = ['whereDidYouTakeIt', 'firstFruitCollector', 'fruitCollector']; | ||
exports.defaultTokensCount = 99999999; | ||
@@ -31,15 +32,15 @@ exports.defaultTokensCountProd = 0; | ||
exports.horses = ['🦄', '🦊', '🐝', '🐁', '🐌']; | ||
exports.gamesKeys = ['kong', 'updown', 'bingo', 'killer', 'roulette', 'basket', 'charge']; | ||
exports.availableGames = { | ||
basket: 'БАСКЕТБОЛ 🏀', | ||
killer: 'КИЛЛЕР 🔪', | ||
bingo: 'БИНГО 🎱', | ||
roulette: 'РУЛЕТКА 🎰', | ||
charge: 'ЗАРЯД ⚡️', | ||
updown: 'БОЛЬШЕ-МЕНЬШЕ 🎯', | ||
kong: 'КИНГ-КОНГ 🦍', | ||
}; | ||
exports.gamesKeys = ['pandora', 'kong', 'updown', 'bingo', 'killer', 'roulette', 'basket', 'charge']; | ||
exports.gamesCount = exports.gamesKeys.length; | ||
exports.gamesCountPerWeek = Math.ceil(exports.gamesCount / 4); | ||
exports.gamesInfo = { | ||
pandora: { | ||
settings: { | ||
timeoutBeforeReply: { | ||
default: 15, | ||
min: 3, | ||
max: 120, | ||
}, | ||
}, | ||
}, | ||
kong: { | ||
@@ -46,0 +47,0 @@ settings: { |
@@ -25,2 +25,3 @@ "use strict"; | ||
__exportStar(require("./horses.type"), exports); | ||
__exportStar(require("./achievement.type"), exports); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@boozybats/shared", | ||
"version": "1.1.37", | ||
"version": "1.1.38", | ||
"description": "private shared package", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
141092
120
3110