gambling-bot-shared 1.0.1 → 1.0.3

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.
@@ -1,3 +1,2 @@
1
1
  export * from './types/atmRequest';
2
- export { AtmRequestSchema } from './atmRequest.mongoose';
3
2
  export * from './schemas/atm.forms';
package/dist/atm/index.js CHANGED
@@ -14,8 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.AtmRequestSchema = void 0;
18
17
  __exportStar(require("./types/atmRequest"), exports);
19
- var atmRequest_mongoose_1 = require("./atmRequest.mongoose");
20
- Object.defineProperty(exports, "AtmRequestSchema", { enumerable: true, get: function () { return atmRequest_mongoose_1.AtmRequestSchema; } });
21
18
  __exportStar(require("./schemas/atm.forms"), exports);
@@ -1,3 +1,2 @@
1
1
  export * from '../casino/constants/blackjack';
2
2
  export * from '../casino/types/blackjackGame';
3
- export { BlackjackGameSchema } from '../casino/blackjackGame.mongoose';
@@ -14,8 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.BlackjackGameSchema = void 0;
18
17
  __exportStar(require("../casino/constants/blackjack"), exports);
19
18
  __exportStar(require("../casino/types/blackjackGame"), exports);
20
- var blackjackGame_mongoose_1 = require("../casino/blackjackGame.mongoose");
21
- Object.defineProperty(exports, "BlackjackGameSchema", { enumerable: true, get: function () { return blackjackGame_mongoose_1.BlackjackGameSchema; } });
@@ -7,6 +7,5 @@ export * from './utils/normalizeCasinoSettings';
7
7
  export * from './utils/winAnnouncements';
8
8
  export * from './services/casinoBet.service';
9
9
  export * from './schemas/casino.forms';
10
- export { BlackjackGameSchema } from './blackjackGame.mongoose';
11
10
  export * from './constants/plinkoConfig';
12
11
  export * from '../transactions/constants/gameRecordFields';
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.BlackjackGameSchema = void 0;
18
17
  __exportStar(require("./constants"), exports);
19
18
  __exportStar(require("./types/casinoSettings"), exports);
20
19
  __exportStar(require("./types/blackjackGame"), exports);
@@ -24,7 +23,5 @@ __exportStar(require("./utils/normalizeCasinoSettings"), exports);
24
23
  __exportStar(require("./utils/winAnnouncements"), exports);
25
24
  __exportStar(require("./services/casinoBet.service"), exports);
26
25
  __exportStar(require("./schemas/casino.forms"), exports);
27
- var blackjackGame_mongoose_1 = require("./blackjackGame.mongoose");
28
- Object.defineProperty(exports, "BlackjackGameSchema", { enumerable: true, get: function () { return blackjackGame_mongoose_1.BlackjackGameSchema; } });
29
26
  __exportStar(require("./constants/plinkoConfig"), exports);
30
27
  __exportStar(require("../transactions/constants/gameRecordFields"), exports);
@@ -5,4 +5,3 @@ export * from './utils/globalSettings';
5
5
  export * from './utils/normalizeGlobalSettings';
6
6
  export * from './utils/guildTimezone';
7
7
  export * from './schemas/guild.forms';
8
- export { GuildConfigurationSchema } from './guildConfiguration.mongoose';
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.GuildConfigurationSchema = void 0;
18
17
  __exportStar(require("./constants/defaultGlobalSettings"), exports);
19
18
  __exportStar(require("./constants/commonTimezones"), exports);
20
19
  __exportStar(require("./types/guildConfiguration"), exports);
@@ -22,5 +21,3 @@ __exportStar(require("./utils/globalSettings"), exports);
22
21
  __exportStar(require("./utils/normalizeGlobalSettings"), exports);
23
22
  __exportStar(require("./utils/guildTimezone"), exports);
24
23
  __exportStar(require("./schemas/guild.forms"), exports);
25
- var guildConfiguration_mongoose_1 = require("./guildConfiguration.mongoose");
26
- Object.defineProperty(exports, "GuildConfigurationSchema", { enumerable: true, get: function () { return guildConfiguration_mongoose_1.GuildConfigurationSchema; } });
@@ -8,4 +8,3 @@ export * from './services/predictionSummary';
8
8
  export * from './services/prediction.db';
9
9
  export * from './services/predictionLifecycle.service';
10
10
  export * from './schemas/prediction.forms';
11
- export { PredictionSchema } from './prediction.mongoose';
@@ -14,7 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.PredictionSchema = void 0;
18
17
  __exportStar(require("./types/prediction"), exports);
19
18
  __exportStar(require("./utils/validatePredictionBet"), exports);
20
19
  __exportStar(require("./services/types"), exports);
@@ -25,5 +24,3 @@ __exportStar(require("./services/predictionSummary"), exports);
25
24
  __exportStar(require("./services/prediction.db"), exports);
26
25
  __exportStar(require("./services/predictionLifecycle.service"), exports);
27
26
  __exportStar(require("./schemas/prediction.forms"), exports);
28
- var prediction_mongoose_1 = require("./prediction.mongoose");
29
- Object.defineProperty(exports, "PredictionSchema", { enumerable: true, get: function () { return prediction_mongoose_1.PredictionSchema; } });
@@ -3,4 +3,3 @@ export * from './services/types';
3
3
  export * from './services/raffle.db';
4
4
  export * from './services/raffleLifecycle.service';
5
5
  export * from './schemas/raffle.forms';
6
- export { RaffleSchema } from './raffle.mongoose';
@@ -14,11 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.RaffleSchema = void 0;
18
17
  __exportStar(require("./types/raffle"), exports);
19
18
  __exportStar(require("./services/types"), exports);
20
19
  __exportStar(require("./services/raffle.db"), exports);
21
20
  __exportStar(require("./services/raffleLifecycle.service"), exports);
22
21
  __exportStar(require("./schemas/raffle.forms"), exports);
23
- var raffle_mongoose_1 = require("./raffle.mongoose");
24
- Object.defineProperty(exports, "RaffleSchema", { enumerable: true, get: function () { return raffle_mongoose_1.RaffleSchema; } });
@@ -1,2 +1,3 @@
1
1
  export * from './transaction';
2
2
  export * from './gameRecordFields';
3
+ export * from './staffAudit';
@@ -16,3 +16,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./transaction"), exports);
18
18
  __exportStar(require("./gameRecordFields"), exports);
19
+ __exportStar(require("./staffAudit"), exports);
@@ -0,0 +1,14 @@
1
+ export declare const STAFF_ADMIN_ACTIONS: {
2
+ readonly VIP_BUY: "admin-buy";
3
+ readonly VIP_EXTEND: "admin-extend";
4
+ readonly VIP_ADD_MEMBER: "admin-add-member";
5
+ readonly VIP_REMOVE: "admin-remove";
6
+ readonly RAFFLE_CANCEL: "raffle-cancel";
7
+ readonly PREDICTION_END: "prediction-end";
8
+ readonly PREDICTION_PAYOUT: "prediction-payout";
9
+ readonly PREDICTION_CANCEL: "prediction-cancel";
10
+ readonly ATM_REJECT: "atm-reject";
11
+ };
12
+ export type StaffAdminAction = (typeof STAFF_ADMIN_ACTIONS)[keyof typeof STAFF_ADMIN_ACTIONS];
13
+ export declare const STAFF_ACTION_CATEGORIES: readonly ["balance", "atm", "vip", "raffle", "prediction"];
14
+ export type StaffActionCategory = (typeof STAFF_ACTION_CATEGORIES)[number];
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.STAFF_ACTION_CATEGORIES = exports.STAFF_ADMIN_ACTIONS = void 0;
4
+ exports.STAFF_ADMIN_ACTIONS = {
5
+ VIP_BUY: 'admin-buy',
6
+ VIP_EXTEND: 'admin-extend',
7
+ VIP_ADD_MEMBER: 'admin-add-member',
8
+ VIP_REMOVE: 'admin-remove',
9
+ RAFFLE_CANCEL: 'raffle-cancel',
10
+ PREDICTION_END: 'prediction-end',
11
+ PREDICTION_PAYOUT: 'prediction-payout',
12
+ PREDICTION_CANCEL: 'prediction-cancel',
13
+ ATM_REJECT: 'atm-reject'
14
+ };
15
+ exports.STAFF_ACTION_CATEGORIES = [
16
+ 'balance',
17
+ 'atm',
18
+ 'vip',
19
+ 'raffle',
20
+ 'prediction'
21
+ ];
@@ -1,2 +1 @@
1
1
  export * from './types/user';
2
- export { UserSchema } from './user.mongoose';
@@ -14,7 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.UserSchema = void 0;
18
17
  __exportStar(require("./types/user"), exports);
19
- var user_mongoose_1 = require("./user.mongoose");
20
- Object.defineProperty(exports, "UserSchema", { enumerable: true, get: function () { return user_mongoose_1.UserSchema; } });
@@ -1,3 +1,2 @@
1
1
  export * from './types/vipRoom';
2
- export { VipRoomSchema } from './vipRoom.mongoose';
3
2
  export * from './schemas/vip.forms';
package/dist/vip/index.js CHANGED
@@ -14,8 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.VipRoomSchema = void 0;
18
17
  __exportStar(require("./types/vipRoom"), exports);
19
- var vipRoom_mongoose_1 = require("./vipRoom.mongoose");
20
- Object.defineProperty(exports, "VipRoomSchema", { enumerable: true, get: function () { return vipRoom_mongoose_1.VipRoomSchema; } });
21
18
  __exportStar(require("./schemas/vip.forms"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gambling-bot-shared",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "license": "MIT",
5
5
  "type": "commonjs",
6
6
  "repository": {