@numen-crypto/contract 0.20.0 → 0.21.1

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/dist/index.js CHANGED
@@ -365,6 +365,7 @@ var NotificationTypeSchema = z.enum([
365
365
  "COMMISSION_ACCRUED",
366
366
  "WITHDRAWAL_SENT",
367
367
  "BONUS_CLAIMED",
368
+ "PREDICTION_SETTLED",
368
369
  "SYSTEM"
369
370
  ]);
370
371
  var NotificationSchema = z.object({
@@ -1271,7 +1272,7 @@ var TicketAttachmentUploadCommand;
1271
1272
  });
1272
1273
  })(TicketAttachmentUploadCommand || (TicketAttachmentUploadCommand = {}));
1273
1274
  var PredictionSideSchema = z.enum(["YES", "NO"]);
1274
- var PredictionStatusSchema = z.enum(["OPEN", "LOCKED", "RESOLVING", "RESOLVED", "VOID"]);
1275
+ var PredictionStatusSchema = z.enum(["QUEUED", "OPEN", "LOCKED", "RESOLVING", "RESOLVED", "VOID"]);
1275
1276
  var PredictionSchema = z.object({
1276
1277
  id: z.string().uuid(),
1277
1278
  slug: z.string(),
@@ -1282,8 +1283,10 @@ var PredictionSchema = z.object({
1282
1283
  status: PredictionStatusSchema,
1283
1284
  outcome: PredictionSideSchema.nullable(),
1284
1285
  asset: AssetSymbolSchema,
1285
- betsCloseAt: z.string(),
1286
- resolvesAt: z.string(),
1286
+ /** Null while the prediction still waits in the queue — dates are stamped on air. */
1287
+ betsCloseAt: z.string().nullable(),
1288
+ resolvesAt: z.string().nullable(),
1289
+ openedAt: z.string().nullable(),
1287
1290
  poolYes: MoneyStringSchema,
1288
1291
  poolNo: MoneyStringSchema,
1289
1292
  poolTotal: MoneyStringSchema,
@@ -1308,6 +1311,12 @@ var PredictionPositionSchema = z.object({
1308
1311
  var PredictionDetailSchema = PredictionSchema.extend({
1309
1312
  position: PredictionPositionSchema.nullable()
1310
1313
  });
1314
+ var PredictionSlotSchema = z.object({
1315
+ live: PredictionDetailSchema.nullable(),
1316
+ last: PredictionDetailSchema.nullable(),
1317
+ nextOpensAt: z.string().nullable(),
1318
+ queued: z.number().int().nonnegative()
1319
+ });
1311
1320
  var ListPredictionsCommand;
1312
1321
  ((ListPredictionsCommand2) => {
1313
1322
  ListPredictionsCommand2.endpointDetails = endpoint(
@@ -1320,6 +1329,15 @@ var ListPredictionsCommand;
1320
1329
  });
1321
1330
  ListPredictionsCommand2.ResponseSchema = z.object({ items: z.array(PredictionDetailSchema) });
1322
1331
  })(ListPredictionsCommand || (ListPredictionsCommand = {}));
1332
+ var GetPredictionSlotCommand;
1333
+ ((GetPredictionSlotCommand2) => {
1334
+ GetPredictionSlotCommand2.endpointDetails = endpoint(
1335
+ "GET",
1336
+ "/predictions/slot",
1337
+ "What the dashboard shows now: the live prediction, or the last result and the countdown"
1338
+ );
1339
+ GetPredictionSlotCommand2.ResponseSchema = PredictionSlotSchema;
1340
+ })(GetPredictionSlotCommand || (GetPredictionSlotCommand = {}));
1323
1341
  var GetPredictionCommand;
1324
1342
  ((GetPredictionCommand2) => {
1325
1343
  GetPredictionCommand2.endpointDetails = endpoint("GET", "/predictions/:slug", "One prediction with the caller position");
@@ -1439,6 +1457,7 @@ var REST_API = {
1439
1457
  },
1440
1458
  PREDICTIONS: {
1441
1459
  LIST: "/predictions",
1460
+ SLOT: "/predictions/slot",
1442
1461
  GET: "/predictions/:slug",
1443
1462
  BET: "/predictions/:slug/bet"
1444
1463
  },
@@ -1454,6 +1473,6 @@ var REST_API = {
1454
1473
  var API_PREFIX = "/api";
1455
1474
  var API_VERSION = "v1";
1456
1475
 
1457
- export { API_PREFIX, API_VERSION, ASSET_DECIMALS, ASSET_SYMBOLS, AVATAR_CONTENT_TYPES, AssetBalanceSchema, AssetSymbolSchema, AvatarContentTypeSchema, AvatarUploadUrlCommand, BONUS_ASSET, BrowsePartnersCommand, BuyPackageCommand, CONTENT_LOCALES, CancelOrderCommand, CancelWithdrawalCommand, CaptchaPolicyCommand, ChangePasswordCommand, ChartPeriodSchema, ChartPointSchema, ClaimDailyBonusCommand, ClaimTicketCommand, ClaimTutorialRewardCommand, ConfirmEmailChangeCommand, ConfirmTotpCommand, ConfirmWithdrawalCommand, ContentLocaleSchema, CreateTicketCommand, DEFAULT_CONTENT_LOCALE, DEPOSITABLE_ASSETS, DailyBonusClaimResultSchema, DailyBonusDaySchema, DailyBonusStatusSchema, DepositAddressCommand, DepositAddressSchema, DepositEntrySchema, DepositStatusSchema, DepositableAssetSchema, DisableTotpCommand, ERROR_CODE, EarningsOverviewSchema, ErrorResponseSchema, FUNDING_ASSET, ForgotPasswordCommand, GetDailyBonusCommand, GetEarningsCommand, GetIncomeCommand, GetLeaderboardCommand, GetOrderBookCommand, GetPackagesCommand, GetPartnersCommand, GetPredictionCommand, GetRanksCommand, GetSettingsCommand, GetSlidesCommand, GetSupportTicketCommand, GetTicketCommand, GetTokenChartCommand, GetTokenPriceCommand, GetTransactionsCommand, GetTutorialRewardCommand, GetWalletCommand, GetWheelCommand, IncomeOverviewSchema, IncomePeriodSchema, LeaderboardEntrySchema, LeaderboardPeriodSchema, LeaderboardSchema, LinkGoogleCommand, LinkProviderSchema, LinkTelegramCommand, LinkedAccountSchema, ListDepositsCommand, ListLinkedAccountsCommand, ListMyOrdersCommand, ListNotificationsCommand, ListPredictionsCommand, ListSupportTicketsCommand, ListTicketsCommand, ListTradesCommand, ListWithdrawalsCommand, LoginCommand, LogoutCommand, MONEY_REGEX, MarkNotificationsReadCommand, MeCommand, MoneyStringSchema, MonthlyPricePointSchema, NMN_PRICE_DECIMALS, NotificationSchema, NotificationTypeSchema, OrderBookLevelSchema, OrderBookSchema, OrderSchema, OrderSideSchema, OrderStatusSchema, OrderTypeSchema, PackageSchema, PackageStatusSchema, PackagesOverviewSchema, PaginatedSchema, PaginationQuerySchema, PartnerAccrualSchema, PartnerBranchRootSchema, PartnerBranchSchema, PartnerLevelSchema, PartnerNodeSchema, PartnersOverviewSchema, PeriodSchema, PlaceOrderCommand, PlacePredictionBetCommand, PositiveMoneyStringSchema, PredictionDetailSchema, PredictionPositionSchema, PredictionSchema, PredictionSideSchema, PredictionStatusSchema, PublicTradeSchema, REST_API, RankDefSchema, RegisterCommand, ReplyTicketCommand, RequestEmailChangeCommand, RequestPasswordChangeCommand, RequestWithdrawalCommand, ResendVerificationCommand, ResetPasswordCommand, ResolveTicketCommand, SessionInfoSchema, SetupTotpCommand, SlideButtonStyleSchema, SlideKindSchema, SlideLinkTargetSchema, SlideSchema, SlidesResponseSchema, SpinWheelCommand, SupportReplyTicketCommand, SupportTicketDetailSchema, SupportTicketScopeSchema, SupportTicketSummarySchema, SupportTicketUserSchema, SwapCommand, SwapSideSchema, TICKET_CATEGORIES, TOKEN_ASSET, TelegramLinkCodeCommand, ThreatLevelSchema, TicketAttachmentInputSchema, TicketAttachmentSchema, TicketAttachmentUploadCommand, TicketAuthorTypeSchema, TicketBodySchema, TicketCategorySchema, TicketDetailSchema, TicketMessageSchema, TicketStatusSchema, TicketSummarySchema, TokenPriceSchema, TradeLimitsSchema, TradeResultSchema, TransactionSchema, TransactionStatusSchema, TransactionTypeSchema, UnlinkAccountCommand, UpdateProfileCommand, UpdateSettingsCommand, UpgradePackageCommand, UserProfileSchema, UserRankSchema, UserRoleSchema, UserSettingsSchema, UserStatusSchema, UuidSchema, VerifyEmailCommand, WHEEL_SLOT_COUNT, WalletOverviewSchema, WheelAmountModeSchema, WheelPrizeSchema, WheelSlotSchema, WheelSpinKindSchema, WheelSpinResultSchema, WheelStatusSchema, WheelWinSchema, WithdrawalSchema, WithdrawalStatusSchema, assetDecimals, endpoint, isContentLocale };
1476
+ export { API_PREFIX, API_VERSION, ASSET_DECIMALS, ASSET_SYMBOLS, AVATAR_CONTENT_TYPES, AssetBalanceSchema, AssetSymbolSchema, AvatarContentTypeSchema, AvatarUploadUrlCommand, BONUS_ASSET, BrowsePartnersCommand, BuyPackageCommand, CONTENT_LOCALES, CancelOrderCommand, CancelWithdrawalCommand, CaptchaPolicyCommand, ChangePasswordCommand, ChartPeriodSchema, ChartPointSchema, ClaimDailyBonusCommand, ClaimTicketCommand, ClaimTutorialRewardCommand, ConfirmEmailChangeCommand, ConfirmTotpCommand, ConfirmWithdrawalCommand, ContentLocaleSchema, CreateTicketCommand, DEFAULT_CONTENT_LOCALE, DEPOSITABLE_ASSETS, DailyBonusClaimResultSchema, DailyBonusDaySchema, DailyBonusStatusSchema, DepositAddressCommand, DepositAddressSchema, DepositEntrySchema, DepositStatusSchema, DepositableAssetSchema, DisableTotpCommand, ERROR_CODE, EarningsOverviewSchema, ErrorResponseSchema, FUNDING_ASSET, ForgotPasswordCommand, GetDailyBonusCommand, GetEarningsCommand, GetIncomeCommand, GetLeaderboardCommand, GetOrderBookCommand, GetPackagesCommand, GetPartnersCommand, GetPredictionCommand, GetPredictionSlotCommand, GetRanksCommand, GetSettingsCommand, GetSlidesCommand, GetSupportTicketCommand, GetTicketCommand, GetTokenChartCommand, GetTokenPriceCommand, GetTransactionsCommand, GetTutorialRewardCommand, GetWalletCommand, GetWheelCommand, IncomeOverviewSchema, IncomePeriodSchema, LeaderboardEntrySchema, LeaderboardPeriodSchema, LeaderboardSchema, LinkGoogleCommand, LinkProviderSchema, LinkTelegramCommand, LinkedAccountSchema, ListDepositsCommand, ListLinkedAccountsCommand, ListMyOrdersCommand, ListNotificationsCommand, ListPredictionsCommand, ListSupportTicketsCommand, ListTicketsCommand, ListTradesCommand, ListWithdrawalsCommand, LoginCommand, LogoutCommand, MONEY_REGEX, MarkNotificationsReadCommand, MeCommand, MoneyStringSchema, MonthlyPricePointSchema, NMN_PRICE_DECIMALS, NotificationSchema, NotificationTypeSchema, OrderBookLevelSchema, OrderBookSchema, OrderSchema, OrderSideSchema, OrderStatusSchema, OrderTypeSchema, PackageSchema, PackageStatusSchema, PackagesOverviewSchema, PaginatedSchema, PaginationQuerySchema, PartnerAccrualSchema, PartnerBranchRootSchema, PartnerBranchSchema, PartnerLevelSchema, PartnerNodeSchema, PartnersOverviewSchema, PeriodSchema, PlaceOrderCommand, PlacePredictionBetCommand, PositiveMoneyStringSchema, PredictionDetailSchema, PredictionPositionSchema, PredictionSchema, PredictionSideSchema, PredictionSlotSchema, PredictionStatusSchema, PublicTradeSchema, REST_API, RankDefSchema, RegisterCommand, ReplyTicketCommand, RequestEmailChangeCommand, RequestPasswordChangeCommand, RequestWithdrawalCommand, ResendVerificationCommand, ResetPasswordCommand, ResolveTicketCommand, SessionInfoSchema, SetupTotpCommand, SlideButtonStyleSchema, SlideKindSchema, SlideLinkTargetSchema, SlideSchema, SlidesResponseSchema, SpinWheelCommand, SupportReplyTicketCommand, SupportTicketDetailSchema, SupportTicketScopeSchema, SupportTicketSummarySchema, SupportTicketUserSchema, SwapCommand, SwapSideSchema, TICKET_CATEGORIES, TOKEN_ASSET, TelegramLinkCodeCommand, ThreatLevelSchema, TicketAttachmentInputSchema, TicketAttachmentSchema, TicketAttachmentUploadCommand, TicketAuthorTypeSchema, TicketBodySchema, TicketCategorySchema, TicketDetailSchema, TicketMessageSchema, TicketStatusSchema, TicketSummarySchema, TokenPriceSchema, TradeLimitsSchema, TradeResultSchema, TransactionSchema, TransactionStatusSchema, TransactionTypeSchema, UnlinkAccountCommand, UpdateProfileCommand, UpdateSettingsCommand, UpgradePackageCommand, UserProfileSchema, UserRankSchema, UserRoleSchema, UserSettingsSchema, UserStatusSchema, UuidSchema, VerifyEmailCommand, WHEEL_SLOT_COUNT, WalletOverviewSchema, WheelAmountModeSchema, WheelPrizeSchema, WheelSlotSchema, WheelSpinKindSchema, WheelSpinResultSchema, WheelStatusSchema, WheelWinSchema, WithdrawalSchema, WithdrawalStatusSchema, assetDecimals, endpoint, isContentLocale };
1458
1477
  //# sourceMappingURL=index.js.map
1459
1478
  //# sourceMappingURL=index.js.map