@numen-crypto/contract 0.15.0 → 0.15.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.cjs +47 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +294 -5
- package/dist/index.d.ts +294 -5
- package/dist/index.js +45 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -421,6 +421,168 @@ declare const PartnerLevelSchema: z.ZodObject<{
|
|
|
421
421
|
reward: string;
|
|
422
422
|
}>;
|
|
423
423
|
type PartnerLevel = z.infer<typeof PartnerLevelSchema>;
|
|
424
|
+
declare const PartnerNodeSchema: z.ZodObject<{
|
|
425
|
+
id: z.ZodString;
|
|
426
|
+
email: z.ZodString;
|
|
427
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
428
|
+
level: z.ZodNumber;
|
|
429
|
+
balanceUsd: z.ZodString;
|
|
430
|
+
directPartners: z.ZodNumber;
|
|
431
|
+
networkSize: z.ZodNumber;
|
|
432
|
+
personalTurnover: z.ZodString;
|
|
433
|
+
joinedAt: z.ZodString;
|
|
434
|
+
}, "strip", z.ZodTypeAny, {
|
|
435
|
+
id: string;
|
|
436
|
+
email: string;
|
|
437
|
+
displayName: string | null;
|
|
438
|
+
level: number;
|
|
439
|
+
balanceUsd: string;
|
|
440
|
+
directPartners: number;
|
|
441
|
+
networkSize: number;
|
|
442
|
+
personalTurnover: string;
|
|
443
|
+
joinedAt: string;
|
|
444
|
+
}, {
|
|
445
|
+
id: string;
|
|
446
|
+
email: string;
|
|
447
|
+
displayName: string | null;
|
|
448
|
+
level: number;
|
|
449
|
+
balanceUsd: string;
|
|
450
|
+
directPartners: number;
|
|
451
|
+
networkSize: number;
|
|
452
|
+
personalTurnover: string;
|
|
453
|
+
joinedAt: string;
|
|
454
|
+
}>;
|
|
455
|
+
type PartnerNode = z.infer<typeof PartnerNodeSchema>;
|
|
456
|
+
declare const PartnerBranchRootSchema: z.ZodObject<{
|
|
457
|
+
id: z.ZodString;
|
|
458
|
+
email: z.ZodString;
|
|
459
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
460
|
+
/** 0 — сам пользователь, 1-10 — глубина узла в его сети. */
|
|
461
|
+
level: z.ZodNumber;
|
|
462
|
+
directPartners: z.ZodNumber;
|
|
463
|
+
networkSize: z.ZodNumber;
|
|
464
|
+
}, "strip", z.ZodTypeAny, {
|
|
465
|
+
id: string;
|
|
466
|
+
email: string;
|
|
467
|
+
displayName: string | null;
|
|
468
|
+
level: number;
|
|
469
|
+
directPartners: number;
|
|
470
|
+
networkSize: number;
|
|
471
|
+
}, {
|
|
472
|
+
id: string;
|
|
473
|
+
email: string;
|
|
474
|
+
displayName: string | null;
|
|
475
|
+
level: number;
|
|
476
|
+
directPartners: number;
|
|
477
|
+
networkSize: number;
|
|
478
|
+
}>;
|
|
479
|
+
type PartnerBranchRoot = z.infer<typeof PartnerBranchRootSchema>;
|
|
480
|
+
declare const PartnerBranchSchema: z.ZodObject<{
|
|
481
|
+
root: z.ZodObject<{
|
|
482
|
+
id: z.ZodString;
|
|
483
|
+
email: z.ZodString;
|
|
484
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
485
|
+
/** 0 — сам пользователь, 1-10 — глубина узла в его сети. */
|
|
486
|
+
level: z.ZodNumber;
|
|
487
|
+
directPartners: z.ZodNumber;
|
|
488
|
+
networkSize: z.ZodNumber;
|
|
489
|
+
}, "strip", z.ZodTypeAny, {
|
|
490
|
+
id: string;
|
|
491
|
+
email: string;
|
|
492
|
+
displayName: string | null;
|
|
493
|
+
level: number;
|
|
494
|
+
directPartners: number;
|
|
495
|
+
networkSize: number;
|
|
496
|
+
}, {
|
|
497
|
+
id: string;
|
|
498
|
+
email: string;
|
|
499
|
+
displayName: string | null;
|
|
500
|
+
level: number;
|
|
501
|
+
directPartners: number;
|
|
502
|
+
networkSize: number;
|
|
503
|
+
}>;
|
|
504
|
+
partners: z.ZodArray<z.ZodObject<{
|
|
505
|
+
id: z.ZodString;
|
|
506
|
+
email: z.ZodString;
|
|
507
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
508
|
+
level: z.ZodNumber;
|
|
509
|
+
balanceUsd: z.ZodString;
|
|
510
|
+
directPartners: z.ZodNumber;
|
|
511
|
+
networkSize: z.ZodNumber;
|
|
512
|
+
personalTurnover: z.ZodString;
|
|
513
|
+
joinedAt: z.ZodString;
|
|
514
|
+
}, "strip", z.ZodTypeAny, {
|
|
515
|
+
id: string;
|
|
516
|
+
email: string;
|
|
517
|
+
displayName: string | null;
|
|
518
|
+
level: number;
|
|
519
|
+
balanceUsd: string;
|
|
520
|
+
directPartners: number;
|
|
521
|
+
networkSize: number;
|
|
522
|
+
personalTurnover: string;
|
|
523
|
+
joinedAt: string;
|
|
524
|
+
}, {
|
|
525
|
+
id: string;
|
|
526
|
+
email: string;
|
|
527
|
+
displayName: string | null;
|
|
528
|
+
level: number;
|
|
529
|
+
balanceUsd: string;
|
|
530
|
+
directPartners: number;
|
|
531
|
+
networkSize: number;
|
|
532
|
+
personalTurnover: string;
|
|
533
|
+
joinedAt: string;
|
|
534
|
+
}>, "many">;
|
|
535
|
+
total: z.ZodNumber;
|
|
536
|
+
page: z.ZodNumber;
|
|
537
|
+
pageSize: z.ZodNumber;
|
|
538
|
+
}, "strip", z.ZodTypeAny, {
|
|
539
|
+
page: number;
|
|
540
|
+
pageSize: number;
|
|
541
|
+
total: number;
|
|
542
|
+
partners: {
|
|
543
|
+
id: string;
|
|
544
|
+
email: string;
|
|
545
|
+
displayName: string | null;
|
|
546
|
+
level: number;
|
|
547
|
+
balanceUsd: string;
|
|
548
|
+
directPartners: number;
|
|
549
|
+
networkSize: number;
|
|
550
|
+
personalTurnover: string;
|
|
551
|
+
joinedAt: string;
|
|
552
|
+
}[];
|
|
553
|
+
root: {
|
|
554
|
+
id: string;
|
|
555
|
+
email: string;
|
|
556
|
+
displayName: string | null;
|
|
557
|
+
level: number;
|
|
558
|
+
directPartners: number;
|
|
559
|
+
networkSize: number;
|
|
560
|
+
};
|
|
561
|
+
}, {
|
|
562
|
+
page: number;
|
|
563
|
+
pageSize: number;
|
|
564
|
+
total: number;
|
|
565
|
+
partners: {
|
|
566
|
+
id: string;
|
|
567
|
+
email: string;
|
|
568
|
+
displayName: string | null;
|
|
569
|
+
level: number;
|
|
570
|
+
balanceUsd: string;
|
|
571
|
+
directPartners: number;
|
|
572
|
+
networkSize: number;
|
|
573
|
+
personalTurnover: string;
|
|
574
|
+
joinedAt: string;
|
|
575
|
+
}[];
|
|
576
|
+
root: {
|
|
577
|
+
id: string;
|
|
578
|
+
email: string;
|
|
579
|
+
displayName: string | null;
|
|
580
|
+
level: number;
|
|
581
|
+
directPartners: number;
|
|
582
|
+
networkSize: number;
|
|
583
|
+
};
|
|
584
|
+
}>;
|
|
585
|
+
type PartnerBranch = z.infer<typeof PartnerBranchSchema>;
|
|
424
586
|
declare const PartnersOverviewSchema: z.ZodObject<{
|
|
425
587
|
period: z.ZodEnum<["week", "month", "year", "all"]>;
|
|
426
588
|
referralCode: z.ZodString;
|
|
@@ -449,10 +611,10 @@ declare const PartnersOverviewSchema: z.ZodObject<{
|
|
|
449
611
|
reward: string;
|
|
450
612
|
}>, "many">;
|
|
451
613
|
}, "strip", z.ZodTypeAny, {
|
|
614
|
+
directPartners: number;
|
|
452
615
|
period: "week" | "month" | "year" | "all";
|
|
453
616
|
referralCode: string;
|
|
454
617
|
totalPartners: number;
|
|
455
|
-
directPartners: number;
|
|
456
618
|
networkTurnover: string;
|
|
457
619
|
networkTurnoverChangePct: number;
|
|
458
620
|
affiliateIncome: string;
|
|
@@ -464,10 +626,10 @@ declare const PartnersOverviewSchema: z.ZodObject<{
|
|
|
464
626
|
reward: string;
|
|
465
627
|
}[];
|
|
466
628
|
}, {
|
|
629
|
+
directPartners: number;
|
|
467
630
|
period: "week" | "month" | "year" | "all";
|
|
468
631
|
referralCode: string;
|
|
469
632
|
totalPartners: number;
|
|
470
|
-
directPartners: number;
|
|
471
633
|
networkTurnover: string;
|
|
472
634
|
networkTurnoverChangePct: number;
|
|
473
635
|
affiliateIncome: string;
|
|
@@ -2535,10 +2697,10 @@ declare namespace GetPartnersCommand {
|
|
|
2535
2697
|
reward: string;
|
|
2536
2698
|
}>, "many">;
|
|
2537
2699
|
}, "strip", z.ZodTypeAny, {
|
|
2700
|
+
directPartners: number;
|
|
2538
2701
|
period: "week" | "month" | "year" | "all";
|
|
2539
2702
|
referralCode: string;
|
|
2540
2703
|
totalPartners: number;
|
|
2541
|
-
directPartners: number;
|
|
2542
2704
|
networkTurnover: string;
|
|
2543
2705
|
networkTurnoverChangePct: number;
|
|
2544
2706
|
affiliateIncome: string;
|
|
@@ -2550,10 +2712,10 @@ declare namespace GetPartnersCommand {
|
|
|
2550
2712
|
reward: string;
|
|
2551
2713
|
}[];
|
|
2552
2714
|
}, {
|
|
2715
|
+
directPartners: number;
|
|
2553
2716
|
period: "week" | "month" | "year" | "all";
|
|
2554
2717
|
referralCode: string;
|
|
2555
2718
|
totalPartners: number;
|
|
2556
|
-
directPartners: number;
|
|
2557
2719
|
networkTurnover: string;
|
|
2558
2720
|
networkTurnoverChangePct: number;
|
|
2559
2721
|
affiliateIncome: string;
|
|
@@ -2568,6 +2730,132 @@ declare namespace GetPartnersCommand {
|
|
|
2568
2730
|
type Response = PartnersOverview;
|
|
2569
2731
|
}
|
|
2570
2732
|
|
|
2733
|
+
declare namespace BrowsePartnersCommand {
|
|
2734
|
+
const endpointDetails: EndpointDetails;
|
|
2735
|
+
const QuerySchema: z.ZodObject<{
|
|
2736
|
+
root: z.ZodOptional<z.ZodString>;
|
|
2737
|
+
page: z.ZodDefault<z.ZodNumber>;
|
|
2738
|
+
pageSize: z.ZodDefault<z.ZodNumber>;
|
|
2739
|
+
search: z.ZodOptional<z.ZodString>;
|
|
2740
|
+
}, "strip", z.ZodTypeAny, {
|
|
2741
|
+
page: number;
|
|
2742
|
+
pageSize: number;
|
|
2743
|
+
root?: string | undefined;
|
|
2744
|
+
search?: string | undefined;
|
|
2745
|
+
}, {
|
|
2746
|
+
page?: number | undefined;
|
|
2747
|
+
pageSize?: number | undefined;
|
|
2748
|
+
root?: string | undefined;
|
|
2749
|
+
search?: string | undefined;
|
|
2750
|
+
}>;
|
|
2751
|
+
type Query = z.infer<typeof QuerySchema>;
|
|
2752
|
+
const ResponseSchema: z.ZodObject<{
|
|
2753
|
+
root: z.ZodObject<{
|
|
2754
|
+
id: z.ZodString;
|
|
2755
|
+
email: z.ZodString;
|
|
2756
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
2757
|
+
level: z.ZodNumber;
|
|
2758
|
+
directPartners: z.ZodNumber;
|
|
2759
|
+
networkSize: z.ZodNumber;
|
|
2760
|
+
}, "strip", z.ZodTypeAny, {
|
|
2761
|
+
id: string;
|
|
2762
|
+
email: string;
|
|
2763
|
+
displayName: string | null;
|
|
2764
|
+
level: number;
|
|
2765
|
+
directPartners: number;
|
|
2766
|
+
networkSize: number;
|
|
2767
|
+
}, {
|
|
2768
|
+
id: string;
|
|
2769
|
+
email: string;
|
|
2770
|
+
displayName: string | null;
|
|
2771
|
+
level: number;
|
|
2772
|
+
directPartners: number;
|
|
2773
|
+
networkSize: number;
|
|
2774
|
+
}>;
|
|
2775
|
+
partners: z.ZodArray<z.ZodObject<{
|
|
2776
|
+
id: z.ZodString;
|
|
2777
|
+
email: z.ZodString;
|
|
2778
|
+
displayName: z.ZodNullable<z.ZodString>;
|
|
2779
|
+
level: z.ZodNumber;
|
|
2780
|
+
balanceUsd: z.ZodString;
|
|
2781
|
+
directPartners: z.ZodNumber;
|
|
2782
|
+
networkSize: z.ZodNumber;
|
|
2783
|
+
personalTurnover: z.ZodString;
|
|
2784
|
+
joinedAt: z.ZodString;
|
|
2785
|
+
}, "strip", z.ZodTypeAny, {
|
|
2786
|
+
id: string;
|
|
2787
|
+
email: string;
|
|
2788
|
+
displayName: string | null;
|
|
2789
|
+
level: number;
|
|
2790
|
+
balanceUsd: string;
|
|
2791
|
+
directPartners: number;
|
|
2792
|
+
networkSize: number;
|
|
2793
|
+
personalTurnover: string;
|
|
2794
|
+
joinedAt: string;
|
|
2795
|
+
}, {
|
|
2796
|
+
id: string;
|
|
2797
|
+
email: string;
|
|
2798
|
+
displayName: string | null;
|
|
2799
|
+
level: number;
|
|
2800
|
+
balanceUsd: string;
|
|
2801
|
+
directPartners: number;
|
|
2802
|
+
networkSize: number;
|
|
2803
|
+
personalTurnover: string;
|
|
2804
|
+
joinedAt: string;
|
|
2805
|
+
}>, "many">;
|
|
2806
|
+
total: z.ZodNumber;
|
|
2807
|
+
page: z.ZodNumber;
|
|
2808
|
+
pageSize: z.ZodNumber;
|
|
2809
|
+
}, "strip", z.ZodTypeAny, {
|
|
2810
|
+
page: number;
|
|
2811
|
+
pageSize: number;
|
|
2812
|
+
total: number;
|
|
2813
|
+
partners: {
|
|
2814
|
+
id: string;
|
|
2815
|
+
email: string;
|
|
2816
|
+
displayName: string | null;
|
|
2817
|
+
level: number;
|
|
2818
|
+
balanceUsd: string;
|
|
2819
|
+
directPartners: number;
|
|
2820
|
+
networkSize: number;
|
|
2821
|
+
personalTurnover: string;
|
|
2822
|
+
joinedAt: string;
|
|
2823
|
+
}[];
|
|
2824
|
+
root: {
|
|
2825
|
+
id: string;
|
|
2826
|
+
email: string;
|
|
2827
|
+
displayName: string | null;
|
|
2828
|
+
level: number;
|
|
2829
|
+
directPartners: number;
|
|
2830
|
+
networkSize: number;
|
|
2831
|
+
};
|
|
2832
|
+
}, {
|
|
2833
|
+
page: number;
|
|
2834
|
+
pageSize: number;
|
|
2835
|
+
total: number;
|
|
2836
|
+
partners: {
|
|
2837
|
+
id: string;
|
|
2838
|
+
email: string;
|
|
2839
|
+
displayName: string | null;
|
|
2840
|
+
level: number;
|
|
2841
|
+
balanceUsd: string;
|
|
2842
|
+
directPartners: number;
|
|
2843
|
+
networkSize: number;
|
|
2844
|
+
personalTurnover: string;
|
|
2845
|
+
joinedAt: string;
|
|
2846
|
+
}[];
|
|
2847
|
+
root: {
|
|
2848
|
+
id: string;
|
|
2849
|
+
email: string;
|
|
2850
|
+
displayName: string | null;
|
|
2851
|
+
level: number;
|
|
2852
|
+
directPartners: number;
|
|
2853
|
+
networkSize: number;
|
|
2854
|
+
};
|
|
2855
|
+
}>;
|
|
2856
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
2857
|
+
}
|
|
2858
|
+
|
|
2571
2859
|
declare namespace GetPackagesCommand {
|
|
2572
2860
|
const endpointDetails: EndpointDetails;
|
|
2573
2861
|
const ResponseSchema: zod.ZodObject<{
|
|
@@ -4993,6 +5281,7 @@ declare const REST_API: {
|
|
|
4993
5281
|
};
|
|
4994
5282
|
readonly PARTNERS: {
|
|
4995
5283
|
readonly OVERVIEW: "/partners";
|
|
5284
|
+
readonly BROWSE: "/partners/browse";
|
|
4996
5285
|
};
|
|
4997
5286
|
readonly PACKAGES: {
|
|
4998
5287
|
readonly OVERVIEW: "/packages";
|
|
@@ -5060,4 +5349,4 @@ declare const REST_API: {
|
|
|
5060
5349
|
declare const API_PREFIX = "/api";
|
|
5061
5350
|
declare const API_VERSION = "v1";
|
|
5062
5351
|
|
|
5063
|
-
export { API_PREFIX, API_VERSION, ASSET_DECIMALS, ASSET_SYMBOLS, AVATAR_CONTENT_TYPES, type AssetBalance, AssetBalanceSchema, type AssetSymbol, AssetSymbolSchema, AvatarContentTypeSchema, AvatarUploadUrlCommand, BuyPackageCommand, CONTENT_LOCALES, CancelOrderCommand, CancelWithdrawalCommand, CaptchaPolicyCommand, ChangePasswordCommand, type ChartPeriod, ChartPeriodSchema, type ChartPoint, ChartPointSchema, ClaimDailyBonusCommand, ClaimTutorialRewardCommand, ConfirmEmailChangeCommand, ConfirmTotpCommand, ConfirmWithdrawalCommand, type ContentLocale, ContentLocaleSchema, CreateTicketCommand, DEFAULT_CONTENT_LOCALE, DEPOSITABLE_ASSETS, type DailyBonusClaimResult, DailyBonusClaimResultSchema, type DailyBonusDay, DailyBonusDaySchema, type DailyBonusStatus, DailyBonusStatusSchema, type DepositAddress, DepositAddressCommand, DepositAddressSchema, type DepositEntry, DepositEntrySchema, type DepositStatus, DepositStatusSchema, type DepositableAsset, DepositableAssetSchema, DisableTotpCommand, ERROR_CODE, type EarningsOverview, EarningsOverviewSchema, type EndpointDetails, type ErrorCode, type ErrorResponse, ErrorResponseSchema, FUNDING_ASSET, ForgotPasswordCommand, GetDailyBonusCommand, GetEarningsCommand, GetIncomeCommand, GetLeaderboardCommand, GetOrderBookCommand, GetPackagesCommand, GetPartnersCommand, GetRanksCommand, GetSettingsCommand, GetSlidesCommand, GetTicketCommand, GetTokenChartCommand, GetTokenPriceCommand, GetTransactionsCommand, GetTutorialRewardCommand, GetWalletCommand, GetWheelCommand, type HttpMethod, type IncomeOverview, IncomeOverviewSchema, type IncomePeriod, IncomePeriodSchema, type Leaderboard, type LeaderboardEntry, LeaderboardEntrySchema, type LeaderboardPeriod, LeaderboardPeriodSchema, LeaderboardSchema, LinkGoogleCommand, type LinkProvider, LinkProviderSchema, LinkTelegramCommand, type LinkedAccount, LinkedAccountSchema, ListDepositsCommand, ListLinkedAccountsCommand, ListMyOrdersCommand, ListNotificationsCommand, ListTicketsCommand, ListTradesCommand, ListWithdrawalsCommand, LoginCommand, LogoutCommand, MONEY_REGEX, MarkNotificationsReadCommand, MeCommand, MoneyStringSchema, type MonthlyPricePoint, MonthlyPricePointSchema, NMN_PRICE_DECIMALS, type Notification, NotificationSchema, type NotificationType, NotificationTypeSchema, type Order, type OrderBook, type OrderBookLevel, OrderBookLevelSchema, OrderBookSchema, OrderSchema, type OrderSide, OrderSideSchema, type OrderStatus, OrderStatusSchema, type OrderType, OrderTypeSchema, type Package, PackageSchema, type PackageStatus, PackageStatusSchema, type PackagesOverview, PackagesOverviewSchema, PaginatedSchema, type PaginationQuery, PaginationQuerySchema, type PartnerAccrual, PartnerAccrualSchema, type PartnerLevel, PartnerLevelSchema, type PartnersOverview, PartnersOverviewSchema, type Period, PeriodSchema, PlaceOrderCommand, PositiveMoneyStringSchema, type PublicTrade, PublicTradeSchema, REST_API, type RankDef, RankDefSchema, RegisterCommand, ReplyTicketCommand, RequestEmailChangeCommand, RequestPasswordChangeCommand, RequestWithdrawalCommand, ResendVerificationCommand, ResetPasswordCommand, type SessionInfo, SessionInfoSchema, SetupTotpCommand, type Slide, type SlideButtonStyle, SlideButtonStyleSchema, type SlideKind, SlideKindSchema, type SlideLinkTarget, SlideLinkTargetSchema, SlideSchema, type SlidesResponse, SlidesResponseSchema, SpinWheelCommand, SwapCommand, type SwapSide, SwapSideSchema, TICKET_CATEGORIES, TOKEN_ASSET, type ThreatLevel, ThreatLevelSchema, type TicketAttachment, type TicketAttachmentInput, TicketAttachmentInputSchema, TicketAttachmentSchema, TicketAttachmentUploadCommand, type TicketAuthorType, TicketAuthorTypeSchema, TicketBodySchema, type TicketCategory, TicketCategorySchema, type TicketDetail, TicketDetailSchema, type TicketMessage, TicketMessageSchema, type TicketStatus, TicketStatusSchema, type TicketSummary, TicketSummarySchema, type TokenPrice, TokenPriceSchema, type TradeLimits, TradeLimitsSchema, type TradeResult, TradeResultSchema, type Transaction, TransactionSchema, type TransactionStatus, TransactionStatusSchema, type TransactionType, TransactionTypeSchema, UnlinkAccountCommand, UpdateProfileCommand, UpdateSettingsCommand, UpgradePackageCommand, type UserProfile, UserProfileSchema, type UserRank, UserRankSchema, type UserSettings, UserSettingsSchema, type UserStatus, UserStatusSchema, UuidSchema, VerifyEmailCommand, WHEEL_SLOT_COUNT, type WalletOverview, WalletOverviewSchema, type WheelAmountMode, WheelAmountModeSchema, type WheelPrize, WheelPrizeSchema, WheelSlotSchema, type WheelSpinKind, WheelSpinKindSchema, type WheelSpinResult, WheelSpinResultSchema, type WheelStatus, WheelStatusSchema, type WheelWin, WheelWinSchema, type Withdrawal, WithdrawalSchema, type WithdrawalStatus, WithdrawalStatusSchema, assetDecimals, endpoint, isContentLocale };
|
|
5352
|
+
export { API_PREFIX, API_VERSION, ASSET_DECIMALS, ASSET_SYMBOLS, AVATAR_CONTENT_TYPES, type AssetBalance, AssetBalanceSchema, type AssetSymbol, AssetSymbolSchema, AvatarContentTypeSchema, AvatarUploadUrlCommand, BrowsePartnersCommand, BuyPackageCommand, CONTENT_LOCALES, CancelOrderCommand, CancelWithdrawalCommand, CaptchaPolicyCommand, ChangePasswordCommand, type ChartPeriod, ChartPeriodSchema, type ChartPoint, ChartPointSchema, ClaimDailyBonusCommand, ClaimTutorialRewardCommand, ConfirmEmailChangeCommand, ConfirmTotpCommand, ConfirmWithdrawalCommand, type ContentLocale, ContentLocaleSchema, CreateTicketCommand, DEFAULT_CONTENT_LOCALE, DEPOSITABLE_ASSETS, type DailyBonusClaimResult, DailyBonusClaimResultSchema, type DailyBonusDay, DailyBonusDaySchema, type DailyBonusStatus, DailyBonusStatusSchema, type DepositAddress, DepositAddressCommand, DepositAddressSchema, type DepositEntry, DepositEntrySchema, type DepositStatus, DepositStatusSchema, type DepositableAsset, DepositableAssetSchema, DisableTotpCommand, ERROR_CODE, type EarningsOverview, EarningsOverviewSchema, type EndpointDetails, type ErrorCode, type ErrorResponse, ErrorResponseSchema, FUNDING_ASSET, ForgotPasswordCommand, GetDailyBonusCommand, GetEarningsCommand, GetIncomeCommand, GetLeaderboardCommand, GetOrderBookCommand, GetPackagesCommand, GetPartnersCommand, GetRanksCommand, GetSettingsCommand, GetSlidesCommand, GetTicketCommand, GetTokenChartCommand, GetTokenPriceCommand, GetTransactionsCommand, GetTutorialRewardCommand, GetWalletCommand, GetWheelCommand, type HttpMethod, type IncomeOverview, IncomeOverviewSchema, type IncomePeriod, IncomePeriodSchema, type Leaderboard, type LeaderboardEntry, LeaderboardEntrySchema, type LeaderboardPeriod, LeaderboardPeriodSchema, LeaderboardSchema, LinkGoogleCommand, type LinkProvider, LinkProviderSchema, LinkTelegramCommand, type LinkedAccount, LinkedAccountSchema, ListDepositsCommand, ListLinkedAccountsCommand, ListMyOrdersCommand, ListNotificationsCommand, ListTicketsCommand, ListTradesCommand, ListWithdrawalsCommand, LoginCommand, LogoutCommand, MONEY_REGEX, MarkNotificationsReadCommand, MeCommand, MoneyStringSchema, type MonthlyPricePoint, MonthlyPricePointSchema, NMN_PRICE_DECIMALS, type Notification, NotificationSchema, type NotificationType, NotificationTypeSchema, type Order, type OrderBook, type OrderBookLevel, OrderBookLevelSchema, OrderBookSchema, OrderSchema, type OrderSide, OrderSideSchema, type OrderStatus, OrderStatusSchema, type OrderType, OrderTypeSchema, type Package, PackageSchema, type PackageStatus, PackageStatusSchema, type PackagesOverview, PackagesOverviewSchema, PaginatedSchema, type PaginationQuery, PaginationQuerySchema, type PartnerAccrual, PartnerAccrualSchema, type PartnerBranch, type PartnerBranchRoot, PartnerBranchRootSchema, PartnerBranchSchema, type PartnerLevel, PartnerLevelSchema, type PartnerNode, PartnerNodeSchema, type PartnersOverview, PartnersOverviewSchema, type Period, PeriodSchema, PlaceOrderCommand, PositiveMoneyStringSchema, type PublicTrade, PublicTradeSchema, REST_API, type RankDef, RankDefSchema, RegisterCommand, ReplyTicketCommand, RequestEmailChangeCommand, RequestPasswordChangeCommand, RequestWithdrawalCommand, ResendVerificationCommand, ResetPasswordCommand, type SessionInfo, SessionInfoSchema, SetupTotpCommand, type Slide, type SlideButtonStyle, SlideButtonStyleSchema, type SlideKind, SlideKindSchema, type SlideLinkTarget, SlideLinkTargetSchema, SlideSchema, type SlidesResponse, SlidesResponseSchema, SpinWheelCommand, SwapCommand, type SwapSide, SwapSideSchema, TICKET_CATEGORIES, TOKEN_ASSET, type ThreatLevel, ThreatLevelSchema, type TicketAttachment, type TicketAttachmentInput, TicketAttachmentInputSchema, TicketAttachmentSchema, TicketAttachmentUploadCommand, type TicketAuthorType, TicketAuthorTypeSchema, TicketBodySchema, type TicketCategory, TicketCategorySchema, type TicketDetail, TicketDetailSchema, type TicketMessage, TicketMessageSchema, type TicketStatus, TicketStatusSchema, type TicketSummary, TicketSummarySchema, type TokenPrice, TokenPriceSchema, type TradeLimits, TradeLimitsSchema, type TradeResult, TradeResultSchema, type Transaction, TransactionSchema, type TransactionStatus, TransactionStatusSchema, type TransactionType, TransactionTypeSchema, UnlinkAccountCommand, UpdateProfileCommand, UpdateSettingsCommand, UpgradePackageCommand, type UserProfile, UserProfileSchema, type UserRank, UserRankSchema, type UserSettings, UserSettingsSchema, type UserStatus, UserStatusSchema, UuidSchema, VerifyEmailCommand, WHEEL_SLOT_COUNT, type WalletOverview, WalletOverviewSchema, type WheelAmountMode, WheelAmountModeSchema, type WheelPrize, WheelPrizeSchema, WheelSlotSchema, type WheelSpinKind, WheelSpinKindSchema, type WheelSpinResult, WheelSpinResultSchema, type WheelStatus, WheelStatusSchema, type WheelWin, WheelWinSchema, type Withdrawal, WithdrawalSchema, type WithdrawalStatus, WithdrawalStatusSchema, assetDecimals, endpoint, isContentLocale };
|
package/dist/index.js
CHANGED
|
@@ -205,6 +205,33 @@ var PartnerLevelSchema = z.object({
|
|
|
205
205
|
turnover: MoneyStringSchema,
|
|
206
206
|
reward: MoneyStringSchema
|
|
207
207
|
});
|
|
208
|
+
var PartnerNodeSchema = z.object({
|
|
209
|
+
id: z.string().uuid(),
|
|
210
|
+
email: z.string(),
|
|
211
|
+
displayName: z.string().nullable(),
|
|
212
|
+
level: z.number().int().min(1).max(10),
|
|
213
|
+
balanceUsd: MoneyStringSchema,
|
|
214
|
+
directPartners: z.number().int().nonnegative(),
|
|
215
|
+
networkSize: z.number().int().nonnegative(),
|
|
216
|
+
personalTurnover: MoneyStringSchema,
|
|
217
|
+
joinedAt: z.string()
|
|
218
|
+
});
|
|
219
|
+
var PartnerBranchRootSchema = z.object({
|
|
220
|
+
id: z.string().uuid(),
|
|
221
|
+
email: z.string(),
|
|
222
|
+
displayName: z.string().nullable(),
|
|
223
|
+
/** 0 — сам пользователь, 1-10 — глубина узла в его сети. */
|
|
224
|
+
level: z.number().int().min(0).max(10),
|
|
225
|
+
directPartners: z.number().int().nonnegative(),
|
|
226
|
+
networkSize: z.number().int().nonnegative()
|
|
227
|
+
});
|
|
228
|
+
var PartnerBranchSchema = z.object({
|
|
229
|
+
root: PartnerBranchRootSchema,
|
|
230
|
+
partners: z.array(PartnerNodeSchema),
|
|
231
|
+
total: z.number().int().nonnegative(),
|
|
232
|
+
page: z.number().int().min(1),
|
|
233
|
+
pageSize: z.number().int().min(1)
|
|
234
|
+
});
|
|
208
235
|
var PartnersOverviewSchema = z.object({
|
|
209
236
|
period: PeriodSchema,
|
|
210
237
|
referralCode: z.string(),
|
|
@@ -690,6 +717,21 @@ var GetPartnersCommand;
|
|
|
690
717
|
});
|
|
691
718
|
GetPartnersCommand2.ResponseSchema = PartnersOverviewSchema;
|
|
692
719
|
})(GetPartnersCommand || (GetPartnersCommand = {}));
|
|
720
|
+
var BrowsePartnersCommand;
|
|
721
|
+
((BrowsePartnersCommand2) => {
|
|
722
|
+
BrowsePartnersCommand2.endpointDetails = endpoint(
|
|
723
|
+
"GET",
|
|
724
|
+
"/partners/browse",
|
|
725
|
+
"Direct partners of a node inside the caller downline, with balances and counts"
|
|
726
|
+
);
|
|
727
|
+
BrowsePartnersCommand2.QuerySchema = z.object({
|
|
728
|
+
root: UuidSchema.optional(),
|
|
729
|
+
page: z.coerce.number().int().min(1).default(1),
|
|
730
|
+
pageSize: z.coerce.number().int().min(1).max(100).default(48),
|
|
731
|
+
search: z.string().max(254).optional()
|
|
732
|
+
});
|
|
733
|
+
BrowsePartnersCommand2.ResponseSchema = PartnerBranchSchema;
|
|
734
|
+
})(BrowsePartnersCommand || (BrowsePartnersCommand = {}));
|
|
693
735
|
|
|
694
736
|
// src/commands/packages/get-packages.command.ts
|
|
695
737
|
var GetPackagesCommand;
|
|
@@ -1172,7 +1214,8 @@ var REST_API = {
|
|
|
1172
1214
|
ORDER: "/exchange/orders/:id"
|
|
1173
1215
|
},
|
|
1174
1216
|
PARTNERS: {
|
|
1175
|
-
OVERVIEW: "/partners"
|
|
1217
|
+
OVERVIEW: "/partners",
|
|
1218
|
+
BROWSE: "/partners/browse"
|
|
1176
1219
|
},
|
|
1177
1220
|
PACKAGES: {
|
|
1178
1221
|
OVERVIEW: "/packages",
|
|
@@ -1240,6 +1283,6 @@ var REST_API = {
|
|
|
1240
1283
|
var API_PREFIX = "/api";
|
|
1241
1284
|
var API_VERSION = "v1";
|
|
1242
1285
|
|
|
1243
|
-
export { API_PREFIX, API_VERSION, ASSET_DECIMALS, ASSET_SYMBOLS, AVATAR_CONTENT_TYPES, AssetBalanceSchema, AssetSymbolSchema, AvatarContentTypeSchema, AvatarUploadUrlCommand, BuyPackageCommand, CONTENT_LOCALES, CancelOrderCommand, CancelWithdrawalCommand, CaptchaPolicyCommand, ChangePasswordCommand, ChartPeriodSchema, ChartPointSchema, ClaimDailyBonusCommand, 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, GetRanksCommand, GetSettingsCommand, GetSlidesCommand, GetTicketCommand, GetTokenChartCommand, GetTokenPriceCommand, GetTransactionsCommand, GetTutorialRewardCommand, GetWalletCommand, GetWheelCommand, IncomeOverviewSchema, IncomePeriodSchema, LeaderboardEntrySchema, LeaderboardPeriodSchema, LeaderboardSchema, LinkGoogleCommand, LinkProviderSchema, LinkTelegramCommand, LinkedAccountSchema, ListDepositsCommand, ListLinkedAccountsCommand, ListMyOrdersCommand, ListNotificationsCommand, 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, PartnerLevelSchema, PartnersOverviewSchema, PeriodSchema, PlaceOrderCommand, PositiveMoneyStringSchema, PublicTradeSchema, REST_API, RankDefSchema, RegisterCommand, ReplyTicketCommand, RequestEmailChangeCommand, RequestPasswordChangeCommand, RequestWithdrawalCommand, ResendVerificationCommand, ResetPasswordCommand, SessionInfoSchema, SetupTotpCommand, SlideButtonStyleSchema, SlideKindSchema, SlideLinkTargetSchema, SlideSchema, SlidesResponseSchema, SpinWheelCommand, SwapCommand, SwapSideSchema, TICKET_CATEGORIES, TOKEN_ASSET, ThreatLevelSchema, TicketAttachmentInputSchema, TicketAttachmentSchema, TicketAttachmentUploadCommand, TicketAuthorTypeSchema, TicketBodySchema, TicketCategorySchema, TicketDetailSchema, TicketMessageSchema, TicketStatusSchema, TicketSummarySchema, TokenPriceSchema, TradeLimitsSchema, TradeResultSchema, TransactionSchema, TransactionStatusSchema, TransactionTypeSchema, UnlinkAccountCommand, UpdateProfileCommand, UpdateSettingsCommand, UpgradePackageCommand, UserProfileSchema, UserRankSchema, UserSettingsSchema, UserStatusSchema, UuidSchema, VerifyEmailCommand, WHEEL_SLOT_COUNT, WalletOverviewSchema, WheelAmountModeSchema, WheelPrizeSchema, WheelSlotSchema, WheelSpinKindSchema, WheelSpinResultSchema, WheelStatusSchema, WheelWinSchema, WithdrawalSchema, WithdrawalStatusSchema, assetDecimals, endpoint, isContentLocale };
|
|
1286
|
+
export { API_PREFIX, API_VERSION, ASSET_DECIMALS, ASSET_SYMBOLS, AVATAR_CONTENT_TYPES, AssetBalanceSchema, AssetSymbolSchema, AvatarContentTypeSchema, AvatarUploadUrlCommand, BrowsePartnersCommand, BuyPackageCommand, CONTENT_LOCALES, CancelOrderCommand, CancelWithdrawalCommand, CaptchaPolicyCommand, ChangePasswordCommand, ChartPeriodSchema, ChartPointSchema, ClaimDailyBonusCommand, 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, GetRanksCommand, GetSettingsCommand, GetSlidesCommand, GetTicketCommand, GetTokenChartCommand, GetTokenPriceCommand, GetTransactionsCommand, GetTutorialRewardCommand, GetWalletCommand, GetWheelCommand, IncomeOverviewSchema, IncomePeriodSchema, LeaderboardEntrySchema, LeaderboardPeriodSchema, LeaderboardSchema, LinkGoogleCommand, LinkProviderSchema, LinkTelegramCommand, LinkedAccountSchema, ListDepositsCommand, ListLinkedAccountsCommand, ListMyOrdersCommand, ListNotificationsCommand, 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, PositiveMoneyStringSchema, PublicTradeSchema, REST_API, RankDefSchema, RegisterCommand, ReplyTicketCommand, RequestEmailChangeCommand, RequestPasswordChangeCommand, RequestWithdrawalCommand, ResendVerificationCommand, ResetPasswordCommand, SessionInfoSchema, SetupTotpCommand, SlideButtonStyleSchema, SlideKindSchema, SlideLinkTargetSchema, SlideSchema, SlidesResponseSchema, SpinWheelCommand, SwapCommand, SwapSideSchema, TICKET_CATEGORIES, TOKEN_ASSET, ThreatLevelSchema, TicketAttachmentInputSchema, TicketAttachmentSchema, TicketAttachmentUploadCommand, TicketAuthorTypeSchema, TicketBodySchema, TicketCategorySchema, TicketDetailSchema, TicketMessageSchema, TicketStatusSchema, TicketSummarySchema, TokenPriceSchema, TradeLimitsSchema, TradeResultSchema, TransactionSchema, TransactionStatusSchema, TransactionTypeSchema, UnlinkAccountCommand, UpdateProfileCommand, UpdateSettingsCommand, UpgradePackageCommand, UserProfileSchema, UserRankSchema, UserSettingsSchema, UserStatusSchema, UuidSchema, VerifyEmailCommand, WHEEL_SLOT_COUNT, WalletOverviewSchema, WheelAmountModeSchema, WheelPrizeSchema, WheelSlotSchema, WheelSpinKindSchema, WheelSpinResultSchema, WheelStatusSchema, WheelWinSchema, WithdrawalSchema, WithdrawalStatusSchema, assetDecimals, endpoint, isContentLocale };
|
|
1244
1287
|
//# sourceMappingURL=index.js.map
|
|
1245
1288
|
//# sourceMappingURL=index.js.map
|