@numen-crypto/contract 0.2.2 → 0.2.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.
- package/dist/index.cjs +13 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +89 -12
- package/dist/index.d.ts +89 -12
- package/dist/index.js +13 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -31,6 +31,8 @@ declare const MONEY_REGEX: RegExp;
|
|
|
31
31
|
declare const MoneyStringSchema: z.ZodString;
|
|
32
32
|
declare const PositiveMoneyStringSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
33
33
|
declare const UuidSchema: z.ZodString;
|
|
34
|
+
declare const PeriodSchema: z.ZodEnum<["week", "month", "year", "all"]>;
|
|
35
|
+
type Period = z.infer<typeof PeriodSchema>;
|
|
34
36
|
declare const ErrorResponseSchema: z.ZodObject<{
|
|
35
37
|
error: z.ZodObject<{
|
|
36
38
|
code: z.ZodString;
|
|
@@ -246,6 +248,8 @@ declare const TransactionSchema: z.ZodObject<{
|
|
|
246
248
|
type: z.ZodEnum<["DEPOSIT", "WITHDRAWAL", "BUY", "SELL", "COMMISSION", "BONUS", "ADJUSTMENT"]>;
|
|
247
249
|
asset: z.ZodEnum<["NMN", "USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
|
|
248
250
|
amount: z.ZodString;
|
|
251
|
+
price: z.ZodNullable<z.ZodString>;
|
|
252
|
+
quoteAmount: z.ZodNullable<z.ZodString>;
|
|
249
253
|
status: z.ZodEnum<["PENDING", "PROCESSING", "COMPLETED", "FAILED", "CANCELLED"]>;
|
|
250
254
|
reference: z.ZodNullable<z.ZodString>;
|
|
251
255
|
createdAt: z.ZodString;
|
|
@@ -256,6 +260,8 @@ declare const TransactionSchema: z.ZodObject<{
|
|
|
256
260
|
createdAt: string;
|
|
257
261
|
asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
|
|
258
262
|
amount: string;
|
|
263
|
+
price: string | null;
|
|
264
|
+
quoteAmount: string | null;
|
|
259
265
|
reference: string | null;
|
|
260
266
|
}, {
|
|
261
267
|
type: "DEPOSIT" | "WITHDRAWAL" | "BUY" | "SELL" | "COMMISSION" | "BONUS" | "ADJUSTMENT";
|
|
@@ -264,6 +270,8 @@ declare const TransactionSchema: z.ZodObject<{
|
|
|
264
270
|
createdAt: string;
|
|
265
271
|
asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
|
|
266
272
|
amount: string;
|
|
273
|
+
price: string | null;
|
|
274
|
+
quoteAmount: string | null;
|
|
267
275
|
reference: string | null;
|
|
268
276
|
}>;
|
|
269
277
|
type Transaction = z.infer<typeof TransactionSchema>;
|
|
@@ -292,49 +300,79 @@ type DepositAddress = z.infer<typeof DepositAddressSchema>;
|
|
|
292
300
|
declare const PartnerLevelSchema: z.ZodObject<{
|
|
293
301
|
level: z.ZodNumber;
|
|
294
302
|
partners: z.ZodNumber;
|
|
303
|
+
active: z.ZodNumber;
|
|
304
|
+
turnover: z.ZodString;
|
|
305
|
+
reward: z.ZodString;
|
|
295
306
|
}, "strip", z.ZodTypeAny, {
|
|
307
|
+
active: number;
|
|
296
308
|
level: number;
|
|
297
309
|
partners: number;
|
|
310
|
+
turnover: string;
|
|
311
|
+
reward: string;
|
|
298
312
|
}, {
|
|
313
|
+
active: number;
|
|
299
314
|
level: number;
|
|
300
315
|
partners: number;
|
|
316
|
+
turnover: string;
|
|
317
|
+
reward: string;
|
|
301
318
|
}>;
|
|
302
319
|
type PartnerLevel = z.infer<typeof PartnerLevelSchema>;
|
|
303
320
|
declare const PartnersOverviewSchema: z.ZodObject<{
|
|
321
|
+
period: z.ZodEnum<["week", "month", "year", "all"]>;
|
|
304
322
|
referralCode: z.ZodString;
|
|
305
323
|
totalPartners: z.ZodNumber;
|
|
306
324
|
directPartners: z.ZodNumber;
|
|
307
325
|
networkTurnover: z.ZodString;
|
|
326
|
+
networkTurnoverChangePct: z.ZodNumber;
|
|
308
327
|
affiliateIncome: z.ZodString;
|
|
309
328
|
levels: z.ZodArray<z.ZodObject<{
|
|
310
329
|
level: z.ZodNumber;
|
|
311
330
|
partners: z.ZodNumber;
|
|
331
|
+
active: z.ZodNumber;
|
|
332
|
+
turnover: z.ZodString;
|
|
333
|
+
reward: z.ZodString;
|
|
312
334
|
}, "strip", z.ZodTypeAny, {
|
|
335
|
+
active: number;
|
|
313
336
|
level: number;
|
|
314
337
|
partners: number;
|
|
338
|
+
turnover: string;
|
|
339
|
+
reward: string;
|
|
315
340
|
}, {
|
|
341
|
+
active: number;
|
|
316
342
|
level: number;
|
|
317
343
|
partners: number;
|
|
344
|
+
turnover: string;
|
|
345
|
+
reward: string;
|
|
318
346
|
}>, "many">;
|
|
319
347
|
}, "strip", z.ZodTypeAny, {
|
|
348
|
+
period: "week" | "month" | "year" | "all";
|
|
320
349
|
referralCode: string;
|
|
321
350
|
totalPartners: number;
|
|
322
351
|
directPartners: number;
|
|
323
352
|
networkTurnover: string;
|
|
353
|
+
networkTurnoverChangePct: number;
|
|
324
354
|
affiliateIncome: string;
|
|
325
355
|
levels: {
|
|
356
|
+
active: number;
|
|
326
357
|
level: number;
|
|
327
358
|
partners: number;
|
|
359
|
+
turnover: string;
|
|
360
|
+
reward: string;
|
|
328
361
|
}[];
|
|
329
362
|
}, {
|
|
363
|
+
period: "week" | "month" | "year" | "all";
|
|
330
364
|
referralCode: string;
|
|
331
365
|
totalPartners: number;
|
|
332
366
|
directPartners: number;
|
|
333
367
|
networkTurnover: string;
|
|
368
|
+
networkTurnoverChangePct: number;
|
|
334
369
|
affiliateIncome: string;
|
|
335
370
|
levels: {
|
|
371
|
+
active: number;
|
|
336
372
|
level: number;
|
|
337
373
|
partners: number;
|
|
374
|
+
turnover: string;
|
|
375
|
+
reward: string;
|
|
338
376
|
}[];
|
|
339
377
|
}>;
|
|
340
378
|
type PartnersOverview = z.infer<typeof PartnersOverviewSchema>;
|
|
@@ -1225,6 +1263,8 @@ declare namespace GetTransactionsCommand {
|
|
|
1225
1263
|
type: z.ZodEnum<["DEPOSIT", "WITHDRAWAL", "BUY", "SELL", "COMMISSION", "BONUS", "ADJUSTMENT"]>;
|
|
1226
1264
|
asset: z.ZodEnum<["NMN", "USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
|
|
1227
1265
|
amount: z.ZodString;
|
|
1266
|
+
price: z.ZodNullable<z.ZodString>;
|
|
1267
|
+
quoteAmount: z.ZodNullable<z.ZodString>;
|
|
1228
1268
|
status: z.ZodEnum<["PENDING", "PROCESSING", "COMPLETED", "FAILED", "CANCELLED"]>;
|
|
1229
1269
|
reference: z.ZodNullable<z.ZodString>;
|
|
1230
1270
|
createdAt: z.ZodString;
|
|
@@ -1235,6 +1275,8 @@ declare namespace GetTransactionsCommand {
|
|
|
1235
1275
|
createdAt: string;
|
|
1236
1276
|
asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
|
|
1237
1277
|
amount: string;
|
|
1278
|
+
price: string | null;
|
|
1279
|
+
quoteAmount: string | null;
|
|
1238
1280
|
reference: string | null;
|
|
1239
1281
|
}, {
|
|
1240
1282
|
type: "DEPOSIT" | "WITHDRAWAL" | "BUY" | "SELL" | "COMMISSION" | "BONUS" | "ADJUSTMENT";
|
|
@@ -1243,6 +1285,8 @@ declare namespace GetTransactionsCommand {
|
|
|
1243
1285
|
createdAt: string;
|
|
1244
1286
|
asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
|
|
1245
1287
|
amount: string;
|
|
1288
|
+
price: string | null;
|
|
1289
|
+
quoteAmount: string | null;
|
|
1246
1290
|
reference: string | null;
|
|
1247
1291
|
}>, "many">;
|
|
1248
1292
|
total: z.ZodNumber;
|
|
@@ -1258,6 +1302,8 @@ declare namespace GetTransactionsCommand {
|
|
|
1258
1302
|
createdAt: string;
|
|
1259
1303
|
asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
|
|
1260
1304
|
amount: string;
|
|
1305
|
+
price: string | null;
|
|
1306
|
+
quoteAmount: string | null;
|
|
1261
1307
|
reference: string | null;
|
|
1262
1308
|
}[];
|
|
1263
1309
|
total: number;
|
|
@@ -1271,6 +1317,8 @@ declare namespace GetTransactionsCommand {
|
|
|
1271
1317
|
createdAt: string;
|
|
1272
1318
|
asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
|
|
1273
1319
|
amount: string;
|
|
1320
|
+
price: string | null;
|
|
1321
|
+
quoteAmount: string | null;
|
|
1274
1322
|
reference: string | null;
|
|
1275
1323
|
}[];
|
|
1276
1324
|
total: number;
|
|
@@ -1849,41 +1897,70 @@ declare namespace ListTradesCommand {
|
|
|
1849
1897
|
|
|
1850
1898
|
declare namespace GetPartnersCommand {
|
|
1851
1899
|
const endpointDetails: EndpointDetails;
|
|
1852
|
-
const
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1900
|
+
const QuerySchema: z.ZodObject<{
|
|
1901
|
+
period: z.ZodDefault<z.ZodEnum<["week", "month", "year", "all"]>>;
|
|
1902
|
+
}, "strip", z.ZodTypeAny, {
|
|
1903
|
+
period: "week" | "month" | "year" | "all";
|
|
1904
|
+
}, {
|
|
1905
|
+
period?: "week" | "month" | "year" | "all" | undefined;
|
|
1906
|
+
}>;
|
|
1907
|
+
type Query = z.infer<typeof QuerySchema>;
|
|
1908
|
+
const ResponseSchema: z.ZodObject<{
|
|
1909
|
+
period: z.ZodEnum<["week", "month", "year", "all"]>;
|
|
1910
|
+
referralCode: z.ZodString;
|
|
1911
|
+
totalPartners: z.ZodNumber;
|
|
1912
|
+
directPartners: z.ZodNumber;
|
|
1913
|
+
networkTurnover: z.ZodString;
|
|
1914
|
+
networkTurnoverChangePct: z.ZodNumber;
|
|
1915
|
+
affiliateIncome: z.ZodString;
|
|
1916
|
+
levels: z.ZodArray<z.ZodObject<{
|
|
1917
|
+
level: z.ZodNumber;
|
|
1918
|
+
partners: z.ZodNumber;
|
|
1919
|
+
active: z.ZodNumber;
|
|
1920
|
+
turnover: z.ZodString;
|
|
1921
|
+
reward: z.ZodString;
|
|
1922
|
+
}, "strip", z.ZodTypeAny, {
|
|
1923
|
+
active: number;
|
|
1862
1924
|
level: number;
|
|
1863
1925
|
partners: number;
|
|
1926
|
+
turnover: string;
|
|
1927
|
+
reward: string;
|
|
1864
1928
|
}, {
|
|
1929
|
+
active: number;
|
|
1865
1930
|
level: number;
|
|
1866
1931
|
partners: number;
|
|
1932
|
+
turnover: string;
|
|
1933
|
+
reward: string;
|
|
1867
1934
|
}>, "many">;
|
|
1868
|
-
}, "strip",
|
|
1935
|
+
}, "strip", z.ZodTypeAny, {
|
|
1936
|
+
period: "week" | "month" | "year" | "all";
|
|
1869
1937
|
referralCode: string;
|
|
1870
1938
|
totalPartners: number;
|
|
1871
1939
|
directPartners: number;
|
|
1872
1940
|
networkTurnover: string;
|
|
1941
|
+
networkTurnoverChangePct: number;
|
|
1873
1942
|
affiliateIncome: string;
|
|
1874
1943
|
levels: {
|
|
1944
|
+
active: number;
|
|
1875
1945
|
level: number;
|
|
1876
1946
|
partners: number;
|
|
1947
|
+
turnover: string;
|
|
1948
|
+
reward: string;
|
|
1877
1949
|
}[];
|
|
1878
1950
|
}, {
|
|
1951
|
+
period: "week" | "month" | "year" | "all";
|
|
1879
1952
|
referralCode: string;
|
|
1880
1953
|
totalPartners: number;
|
|
1881
1954
|
directPartners: number;
|
|
1882
1955
|
networkTurnover: string;
|
|
1956
|
+
networkTurnoverChangePct: number;
|
|
1883
1957
|
affiliateIncome: string;
|
|
1884
1958
|
levels: {
|
|
1959
|
+
active: number;
|
|
1885
1960
|
level: number;
|
|
1886
1961
|
partners: number;
|
|
1962
|
+
turnover: string;
|
|
1963
|
+
reward: string;
|
|
1887
1964
|
}[];
|
|
1888
1965
|
}>;
|
|
1889
1966
|
type Response = PartnersOverview;
|
|
@@ -3556,4 +3633,4 @@ declare const REST_API: {
|
|
|
3556
3633
|
declare const API_PREFIX = "/api";
|
|
3557
3634
|
declare const API_VERSION = "v1";
|
|
3558
3635
|
|
|
3559
|
-
export { API_PREFIX, API_VERSION, ASSET_SYMBOLS, AVATAR_CONTENT_TYPES, type AssetBalance, AssetBalanceSchema, type AssetSymbol, AssetSymbolSchema, AvatarContentTypeSchema, AvatarUploadUrlCommand, CancelOrderCommand, CancelWithdrawalCommand, type ChartPeriod, ChartPeriodSchema, type ChartPoint, ChartPointSchema, ClaimDailyBonusCommand, ConfirmEmailChangeCommand, ConfirmTotpCommand, ConfirmWithdrawalCommand, CreateTicketCommand, DEPOSITABLE_ASSETS, type DailyBonusClaimResult, DailyBonusClaimResultSchema, type DailyBonusDay, DailyBonusDaySchema, type DailyBonusStatus, DailyBonusStatusSchema, type DepositAddress, DepositAddressCommand, DepositAddressSchema, type DepositableAsset, DepositableAssetSchema, DisableTotpCommand, ERROR_CODE, type EarningsOverview, EarningsOverviewSchema, type EndpointDetails, type ErrorCode, type ErrorResponse, ErrorResponseSchema, FUNDING_ASSET, GetDailyBonusCommand, GetEarningsCommand, GetIncomeCommand, GetLeaderboardCommand, GetOrderBookCommand, GetPartnersCommand, GetRanksCommand, GetSettingsCommand, GetTicketCommand, GetTokenChartCommand, GetTokenPriceCommand, GetTransactionsCommand, GetWalletCommand, 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, ListLinkedAccountsCommand, ListMyOrdersCommand, ListNotificationsCommand, ListTicketsCommand, ListTradesCommand, ListWithdrawalsCommand, LoginCommand, LogoutCommand, MONEY_REGEX, MarkNotificationsReadCommand, MeCommand, MoneyStringSchema, type MonthlyPricePoint, MonthlyPricePointSchema, type Notification, NotificationSchema, type NotificationType, NotificationTypeSchema, type Order, type OrderBook, type OrderBookLevel, OrderBookLevelSchema, OrderBookSchema, OrderSchema, type OrderSide, OrderSideSchema, type OrderStatus, OrderStatusSchema, type OrderType, OrderTypeSchema, PaginatedSchema, type PaginationQuery, PaginationQuerySchema, type PartnerAccrual, PartnerAccrualSchema, type PartnerLevel, PartnerLevelSchema, type PartnersOverview, PartnersOverviewSchema, PlaceOrderCommand, PositiveMoneyStringSchema, type PublicTrade, PublicTradeSchema, REST_API, type RankDef, RankDefSchema, RegisterCommand, ReplyTicketCommand, RequestEmailChangeCommand, RequestWithdrawalCommand, type SessionInfo, SessionInfoSchema, SetupTotpCommand, SwapCommand, type SwapSide, SwapSideSchema, TICKET_CATEGORIES, TOKEN_ASSET, 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 TradeResult, TradeResultSchema, type Transaction, TransactionSchema, type TransactionStatus, TransactionStatusSchema, type TransactionType, TransactionTypeSchema, UnlinkAccountCommand, UpdateProfileCommand, UpdateSettingsCommand, type UserProfile, UserProfileSchema, type UserRank, UserRankSchema, type UserSettings, UserSettingsSchema, type UserStatus, UserStatusSchema, UuidSchema, type WalletOverview, WalletOverviewSchema, type Withdrawal, WithdrawalSchema, type WithdrawalStatus, WithdrawalStatusSchema, endpoint };
|
|
3636
|
+
export { API_PREFIX, API_VERSION, ASSET_SYMBOLS, AVATAR_CONTENT_TYPES, type AssetBalance, AssetBalanceSchema, type AssetSymbol, AssetSymbolSchema, AvatarContentTypeSchema, AvatarUploadUrlCommand, CancelOrderCommand, CancelWithdrawalCommand, type ChartPeriod, ChartPeriodSchema, type ChartPoint, ChartPointSchema, ClaimDailyBonusCommand, ConfirmEmailChangeCommand, ConfirmTotpCommand, ConfirmWithdrawalCommand, CreateTicketCommand, DEPOSITABLE_ASSETS, type DailyBonusClaimResult, DailyBonusClaimResultSchema, type DailyBonusDay, DailyBonusDaySchema, type DailyBonusStatus, DailyBonusStatusSchema, type DepositAddress, DepositAddressCommand, DepositAddressSchema, type DepositableAsset, DepositableAssetSchema, DisableTotpCommand, ERROR_CODE, type EarningsOverview, EarningsOverviewSchema, type EndpointDetails, type ErrorCode, type ErrorResponse, ErrorResponseSchema, FUNDING_ASSET, GetDailyBonusCommand, GetEarningsCommand, GetIncomeCommand, GetLeaderboardCommand, GetOrderBookCommand, GetPartnersCommand, GetRanksCommand, GetSettingsCommand, GetTicketCommand, GetTokenChartCommand, GetTokenPriceCommand, GetTransactionsCommand, GetWalletCommand, 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, ListLinkedAccountsCommand, ListMyOrdersCommand, ListNotificationsCommand, ListTicketsCommand, ListTradesCommand, ListWithdrawalsCommand, LoginCommand, LogoutCommand, MONEY_REGEX, MarkNotificationsReadCommand, MeCommand, MoneyStringSchema, type MonthlyPricePoint, MonthlyPricePointSchema, type Notification, NotificationSchema, type NotificationType, NotificationTypeSchema, type Order, type OrderBook, type OrderBookLevel, OrderBookLevelSchema, OrderBookSchema, OrderSchema, type OrderSide, OrderSideSchema, type OrderStatus, OrderStatusSchema, type OrderType, OrderTypeSchema, 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, RequestWithdrawalCommand, type SessionInfo, SessionInfoSchema, SetupTotpCommand, SwapCommand, type SwapSide, SwapSideSchema, TICKET_CATEGORIES, TOKEN_ASSET, 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 TradeResult, TradeResultSchema, type Transaction, TransactionSchema, type TransactionStatus, TransactionStatusSchema, type TransactionType, TransactionTypeSchema, UnlinkAccountCommand, UpdateProfileCommand, UpdateSettingsCommand, type UserProfile, UserProfileSchema, type UserRank, UserRankSchema, type UserSettings, UserSettingsSchema, type UserStatus, UserStatusSchema, UuidSchema, type WalletOverview, WalletOverviewSchema, type Withdrawal, WithdrawalSchema, type WithdrawalStatus, WithdrawalStatusSchema, endpoint };
|
package/dist/index.d.ts
CHANGED
|
@@ -31,6 +31,8 @@ declare const MONEY_REGEX: RegExp;
|
|
|
31
31
|
declare const MoneyStringSchema: z.ZodString;
|
|
32
32
|
declare const PositiveMoneyStringSchema: z.ZodEffects<z.ZodString, string, string>;
|
|
33
33
|
declare const UuidSchema: z.ZodString;
|
|
34
|
+
declare const PeriodSchema: z.ZodEnum<["week", "month", "year", "all"]>;
|
|
35
|
+
type Period = z.infer<typeof PeriodSchema>;
|
|
34
36
|
declare const ErrorResponseSchema: z.ZodObject<{
|
|
35
37
|
error: z.ZodObject<{
|
|
36
38
|
code: z.ZodString;
|
|
@@ -246,6 +248,8 @@ declare const TransactionSchema: z.ZodObject<{
|
|
|
246
248
|
type: z.ZodEnum<["DEPOSIT", "WITHDRAWAL", "BUY", "SELL", "COMMISSION", "BONUS", "ADJUSTMENT"]>;
|
|
247
249
|
asset: z.ZodEnum<["NMN", "USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
|
|
248
250
|
amount: z.ZodString;
|
|
251
|
+
price: z.ZodNullable<z.ZodString>;
|
|
252
|
+
quoteAmount: z.ZodNullable<z.ZodString>;
|
|
249
253
|
status: z.ZodEnum<["PENDING", "PROCESSING", "COMPLETED", "FAILED", "CANCELLED"]>;
|
|
250
254
|
reference: z.ZodNullable<z.ZodString>;
|
|
251
255
|
createdAt: z.ZodString;
|
|
@@ -256,6 +260,8 @@ declare const TransactionSchema: z.ZodObject<{
|
|
|
256
260
|
createdAt: string;
|
|
257
261
|
asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
|
|
258
262
|
amount: string;
|
|
263
|
+
price: string | null;
|
|
264
|
+
quoteAmount: string | null;
|
|
259
265
|
reference: string | null;
|
|
260
266
|
}, {
|
|
261
267
|
type: "DEPOSIT" | "WITHDRAWAL" | "BUY" | "SELL" | "COMMISSION" | "BONUS" | "ADJUSTMENT";
|
|
@@ -264,6 +270,8 @@ declare const TransactionSchema: z.ZodObject<{
|
|
|
264
270
|
createdAt: string;
|
|
265
271
|
asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
|
|
266
272
|
amount: string;
|
|
273
|
+
price: string | null;
|
|
274
|
+
quoteAmount: string | null;
|
|
267
275
|
reference: string | null;
|
|
268
276
|
}>;
|
|
269
277
|
type Transaction = z.infer<typeof TransactionSchema>;
|
|
@@ -292,49 +300,79 @@ type DepositAddress = z.infer<typeof DepositAddressSchema>;
|
|
|
292
300
|
declare const PartnerLevelSchema: z.ZodObject<{
|
|
293
301
|
level: z.ZodNumber;
|
|
294
302
|
partners: z.ZodNumber;
|
|
303
|
+
active: z.ZodNumber;
|
|
304
|
+
turnover: z.ZodString;
|
|
305
|
+
reward: z.ZodString;
|
|
295
306
|
}, "strip", z.ZodTypeAny, {
|
|
307
|
+
active: number;
|
|
296
308
|
level: number;
|
|
297
309
|
partners: number;
|
|
310
|
+
turnover: string;
|
|
311
|
+
reward: string;
|
|
298
312
|
}, {
|
|
313
|
+
active: number;
|
|
299
314
|
level: number;
|
|
300
315
|
partners: number;
|
|
316
|
+
turnover: string;
|
|
317
|
+
reward: string;
|
|
301
318
|
}>;
|
|
302
319
|
type PartnerLevel = z.infer<typeof PartnerLevelSchema>;
|
|
303
320
|
declare const PartnersOverviewSchema: z.ZodObject<{
|
|
321
|
+
period: z.ZodEnum<["week", "month", "year", "all"]>;
|
|
304
322
|
referralCode: z.ZodString;
|
|
305
323
|
totalPartners: z.ZodNumber;
|
|
306
324
|
directPartners: z.ZodNumber;
|
|
307
325
|
networkTurnover: z.ZodString;
|
|
326
|
+
networkTurnoverChangePct: z.ZodNumber;
|
|
308
327
|
affiliateIncome: z.ZodString;
|
|
309
328
|
levels: z.ZodArray<z.ZodObject<{
|
|
310
329
|
level: z.ZodNumber;
|
|
311
330
|
partners: z.ZodNumber;
|
|
331
|
+
active: z.ZodNumber;
|
|
332
|
+
turnover: z.ZodString;
|
|
333
|
+
reward: z.ZodString;
|
|
312
334
|
}, "strip", z.ZodTypeAny, {
|
|
335
|
+
active: number;
|
|
313
336
|
level: number;
|
|
314
337
|
partners: number;
|
|
338
|
+
turnover: string;
|
|
339
|
+
reward: string;
|
|
315
340
|
}, {
|
|
341
|
+
active: number;
|
|
316
342
|
level: number;
|
|
317
343
|
partners: number;
|
|
344
|
+
turnover: string;
|
|
345
|
+
reward: string;
|
|
318
346
|
}>, "many">;
|
|
319
347
|
}, "strip", z.ZodTypeAny, {
|
|
348
|
+
period: "week" | "month" | "year" | "all";
|
|
320
349
|
referralCode: string;
|
|
321
350
|
totalPartners: number;
|
|
322
351
|
directPartners: number;
|
|
323
352
|
networkTurnover: string;
|
|
353
|
+
networkTurnoverChangePct: number;
|
|
324
354
|
affiliateIncome: string;
|
|
325
355
|
levels: {
|
|
356
|
+
active: number;
|
|
326
357
|
level: number;
|
|
327
358
|
partners: number;
|
|
359
|
+
turnover: string;
|
|
360
|
+
reward: string;
|
|
328
361
|
}[];
|
|
329
362
|
}, {
|
|
363
|
+
period: "week" | "month" | "year" | "all";
|
|
330
364
|
referralCode: string;
|
|
331
365
|
totalPartners: number;
|
|
332
366
|
directPartners: number;
|
|
333
367
|
networkTurnover: string;
|
|
368
|
+
networkTurnoverChangePct: number;
|
|
334
369
|
affiliateIncome: string;
|
|
335
370
|
levels: {
|
|
371
|
+
active: number;
|
|
336
372
|
level: number;
|
|
337
373
|
partners: number;
|
|
374
|
+
turnover: string;
|
|
375
|
+
reward: string;
|
|
338
376
|
}[];
|
|
339
377
|
}>;
|
|
340
378
|
type PartnersOverview = z.infer<typeof PartnersOverviewSchema>;
|
|
@@ -1225,6 +1263,8 @@ declare namespace GetTransactionsCommand {
|
|
|
1225
1263
|
type: z.ZodEnum<["DEPOSIT", "WITHDRAWAL", "BUY", "SELL", "COMMISSION", "BONUS", "ADJUSTMENT"]>;
|
|
1226
1264
|
asset: z.ZodEnum<["NMN", "USDT", "BTC", "ETH", "BNB", "TRX", "SOL"]>;
|
|
1227
1265
|
amount: z.ZodString;
|
|
1266
|
+
price: z.ZodNullable<z.ZodString>;
|
|
1267
|
+
quoteAmount: z.ZodNullable<z.ZodString>;
|
|
1228
1268
|
status: z.ZodEnum<["PENDING", "PROCESSING", "COMPLETED", "FAILED", "CANCELLED"]>;
|
|
1229
1269
|
reference: z.ZodNullable<z.ZodString>;
|
|
1230
1270
|
createdAt: z.ZodString;
|
|
@@ -1235,6 +1275,8 @@ declare namespace GetTransactionsCommand {
|
|
|
1235
1275
|
createdAt: string;
|
|
1236
1276
|
asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
|
|
1237
1277
|
amount: string;
|
|
1278
|
+
price: string | null;
|
|
1279
|
+
quoteAmount: string | null;
|
|
1238
1280
|
reference: string | null;
|
|
1239
1281
|
}, {
|
|
1240
1282
|
type: "DEPOSIT" | "WITHDRAWAL" | "BUY" | "SELL" | "COMMISSION" | "BONUS" | "ADJUSTMENT";
|
|
@@ -1243,6 +1285,8 @@ declare namespace GetTransactionsCommand {
|
|
|
1243
1285
|
createdAt: string;
|
|
1244
1286
|
asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
|
|
1245
1287
|
amount: string;
|
|
1288
|
+
price: string | null;
|
|
1289
|
+
quoteAmount: string | null;
|
|
1246
1290
|
reference: string | null;
|
|
1247
1291
|
}>, "many">;
|
|
1248
1292
|
total: z.ZodNumber;
|
|
@@ -1258,6 +1302,8 @@ declare namespace GetTransactionsCommand {
|
|
|
1258
1302
|
createdAt: string;
|
|
1259
1303
|
asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
|
|
1260
1304
|
amount: string;
|
|
1305
|
+
price: string | null;
|
|
1306
|
+
quoteAmount: string | null;
|
|
1261
1307
|
reference: string | null;
|
|
1262
1308
|
}[];
|
|
1263
1309
|
total: number;
|
|
@@ -1271,6 +1317,8 @@ declare namespace GetTransactionsCommand {
|
|
|
1271
1317
|
createdAt: string;
|
|
1272
1318
|
asset: "NMN" | "USDT" | "BTC" | "ETH" | "BNB" | "TRX" | "SOL";
|
|
1273
1319
|
amount: string;
|
|
1320
|
+
price: string | null;
|
|
1321
|
+
quoteAmount: string | null;
|
|
1274
1322
|
reference: string | null;
|
|
1275
1323
|
}[];
|
|
1276
1324
|
total: number;
|
|
@@ -1849,41 +1897,70 @@ declare namespace ListTradesCommand {
|
|
|
1849
1897
|
|
|
1850
1898
|
declare namespace GetPartnersCommand {
|
|
1851
1899
|
const endpointDetails: EndpointDetails;
|
|
1852
|
-
const
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1900
|
+
const QuerySchema: z.ZodObject<{
|
|
1901
|
+
period: z.ZodDefault<z.ZodEnum<["week", "month", "year", "all"]>>;
|
|
1902
|
+
}, "strip", z.ZodTypeAny, {
|
|
1903
|
+
period: "week" | "month" | "year" | "all";
|
|
1904
|
+
}, {
|
|
1905
|
+
period?: "week" | "month" | "year" | "all" | undefined;
|
|
1906
|
+
}>;
|
|
1907
|
+
type Query = z.infer<typeof QuerySchema>;
|
|
1908
|
+
const ResponseSchema: z.ZodObject<{
|
|
1909
|
+
period: z.ZodEnum<["week", "month", "year", "all"]>;
|
|
1910
|
+
referralCode: z.ZodString;
|
|
1911
|
+
totalPartners: z.ZodNumber;
|
|
1912
|
+
directPartners: z.ZodNumber;
|
|
1913
|
+
networkTurnover: z.ZodString;
|
|
1914
|
+
networkTurnoverChangePct: z.ZodNumber;
|
|
1915
|
+
affiliateIncome: z.ZodString;
|
|
1916
|
+
levels: z.ZodArray<z.ZodObject<{
|
|
1917
|
+
level: z.ZodNumber;
|
|
1918
|
+
partners: z.ZodNumber;
|
|
1919
|
+
active: z.ZodNumber;
|
|
1920
|
+
turnover: z.ZodString;
|
|
1921
|
+
reward: z.ZodString;
|
|
1922
|
+
}, "strip", z.ZodTypeAny, {
|
|
1923
|
+
active: number;
|
|
1862
1924
|
level: number;
|
|
1863
1925
|
partners: number;
|
|
1926
|
+
turnover: string;
|
|
1927
|
+
reward: string;
|
|
1864
1928
|
}, {
|
|
1929
|
+
active: number;
|
|
1865
1930
|
level: number;
|
|
1866
1931
|
partners: number;
|
|
1932
|
+
turnover: string;
|
|
1933
|
+
reward: string;
|
|
1867
1934
|
}>, "many">;
|
|
1868
|
-
}, "strip",
|
|
1935
|
+
}, "strip", z.ZodTypeAny, {
|
|
1936
|
+
period: "week" | "month" | "year" | "all";
|
|
1869
1937
|
referralCode: string;
|
|
1870
1938
|
totalPartners: number;
|
|
1871
1939
|
directPartners: number;
|
|
1872
1940
|
networkTurnover: string;
|
|
1941
|
+
networkTurnoverChangePct: number;
|
|
1873
1942
|
affiliateIncome: string;
|
|
1874
1943
|
levels: {
|
|
1944
|
+
active: number;
|
|
1875
1945
|
level: number;
|
|
1876
1946
|
partners: number;
|
|
1947
|
+
turnover: string;
|
|
1948
|
+
reward: string;
|
|
1877
1949
|
}[];
|
|
1878
1950
|
}, {
|
|
1951
|
+
period: "week" | "month" | "year" | "all";
|
|
1879
1952
|
referralCode: string;
|
|
1880
1953
|
totalPartners: number;
|
|
1881
1954
|
directPartners: number;
|
|
1882
1955
|
networkTurnover: string;
|
|
1956
|
+
networkTurnoverChangePct: number;
|
|
1883
1957
|
affiliateIncome: string;
|
|
1884
1958
|
levels: {
|
|
1959
|
+
active: number;
|
|
1885
1960
|
level: number;
|
|
1886
1961
|
partners: number;
|
|
1962
|
+
turnover: string;
|
|
1963
|
+
reward: string;
|
|
1887
1964
|
}[];
|
|
1888
1965
|
}>;
|
|
1889
1966
|
type Response = PartnersOverview;
|
|
@@ -3556,4 +3633,4 @@ declare const REST_API: {
|
|
|
3556
3633
|
declare const API_PREFIX = "/api";
|
|
3557
3634
|
declare const API_VERSION = "v1";
|
|
3558
3635
|
|
|
3559
|
-
export { API_PREFIX, API_VERSION, ASSET_SYMBOLS, AVATAR_CONTENT_TYPES, type AssetBalance, AssetBalanceSchema, type AssetSymbol, AssetSymbolSchema, AvatarContentTypeSchema, AvatarUploadUrlCommand, CancelOrderCommand, CancelWithdrawalCommand, type ChartPeriod, ChartPeriodSchema, type ChartPoint, ChartPointSchema, ClaimDailyBonusCommand, ConfirmEmailChangeCommand, ConfirmTotpCommand, ConfirmWithdrawalCommand, CreateTicketCommand, DEPOSITABLE_ASSETS, type DailyBonusClaimResult, DailyBonusClaimResultSchema, type DailyBonusDay, DailyBonusDaySchema, type DailyBonusStatus, DailyBonusStatusSchema, type DepositAddress, DepositAddressCommand, DepositAddressSchema, type DepositableAsset, DepositableAssetSchema, DisableTotpCommand, ERROR_CODE, type EarningsOverview, EarningsOverviewSchema, type EndpointDetails, type ErrorCode, type ErrorResponse, ErrorResponseSchema, FUNDING_ASSET, GetDailyBonusCommand, GetEarningsCommand, GetIncomeCommand, GetLeaderboardCommand, GetOrderBookCommand, GetPartnersCommand, GetRanksCommand, GetSettingsCommand, GetTicketCommand, GetTokenChartCommand, GetTokenPriceCommand, GetTransactionsCommand, GetWalletCommand, 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, ListLinkedAccountsCommand, ListMyOrdersCommand, ListNotificationsCommand, ListTicketsCommand, ListTradesCommand, ListWithdrawalsCommand, LoginCommand, LogoutCommand, MONEY_REGEX, MarkNotificationsReadCommand, MeCommand, MoneyStringSchema, type MonthlyPricePoint, MonthlyPricePointSchema, type Notification, NotificationSchema, type NotificationType, NotificationTypeSchema, type Order, type OrderBook, type OrderBookLevel, OrderBookLevelSchema, OrderBookSchema, OrderSchema, type OrderSide, OrderSideSchema, type OrderStatus, OrderStatusSchema, type OrderType, OrderTypeSchema, PaginatedSchema, type PaginationQuery, PaginationQuerySchema, type PartnerAccrual, PartnerAccrualSchema, type PartnerLevel, PartnerLevelSchema, type PartnersOverview, PartnersOverviewSchema, PlaceOrderCommand, PositiveMoneyStringSchema, type PublicTrade, PublicTradeSchema, REST_API, type RankDef, RankDefSchema, RegisterCommand, ReplyTicketCommand, RequestEmailChangeCommand, RequestWithdrawalCommand, type SessionInfo, SessionInfoSchema, SetupTotpCommand, SwapCommand, type SwapSide, SwapSideSchema, TICKET_CATEGORIES, TOKEN_ASSET, 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 TradeResult, TradeResultSchema, type Transaction, TransactionSchema, type TransactionStatus, TransactionStatusSchema, type TransactionType, TransactionTypeSchema, UnlinkAccountCommand, UpdateProfileCommand, UpdateSettingsCommand, type UserProfile, UserProfileSchema, type UserRank, UserRankSchema, type UserSettings, UserSettingsSchema, type UserStatus, UserStatusSchema, UuidSchema, type WalletOverview, WalletOverviewSchema, type Withdrawal, WithdrawalSchema, type WithdrawalStatus, WithdrawalStatusSchema, endpoint };
|
|
3636
|
+
export { API_PREFIX, API_VERSION, ASSET_SYMBOLS, AVATAR_CONTENT_TYPES, type AssetBalance, AssetBalanceSchema, type AssetSymbol, AssetSymbolSchema, AvatarContentTypeSchema, AvatarUploadUrlCommand, CancelOrderCommand, CancelWithdrawalCommand, type ChartPeriod, ChartPeriodSchema, type ChartPoint, ChartPointSchema, ClaimDailyBonusCommand, ConfirmEmailChangeCommand, ConfirmTotpCommand, ConfirmWithdrawalCommand, CreateTicketCommand, DEPOSITABLE_ASSETS, type DailyBonusClaimResult, DailyBonusClaimResultSchema, type DailyBonusDay, DailyBonusDaySchema, type DailyBonusStatus, DailyBonusStatusSchema, type DepositAddress, DepositAddressCommand, DepositAddressSchema, type DepositableAsset, DepositableAssetSchema, DisableTotpCommand, ERROR_CODE, type EarningsOverview, EarningsOverviewSchema, type EndpointDetails, type ErrorCode, type ErrorResponse, ErrorResponseSchema, FUNDING_ASSET, GetDailyBonusCommand, GetEarningsCommand, GetIncomeCommand, GetLeaderboardCommand, GetOrderBookCommand, GetPartnersCommand, GetRanksCommand, GetSettingsCommand, GetTicketCommand, GetTokenChartCommand, GetTokenPriceCommand, GetTransactionsCommand, GetWalletCommand, 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, ListLinkedAccountsCommand, ListMyOrdersCommand, ListNotificationsCommand, ListTicketsCommand, ListTradesCommand, ListWithdrawalsCommand, LoginCommand, LogoutCommand, MONEY_REGEX, MarkNotificationsReadCommand, MeCommand, MoneyStringSchema, type MonthlyPricePoint, MonthlyPricePointSchema, type Notification, NotificationSchema, type NotificationType, NotificationTypeSchema, type Order, type OrderBook, type OrderBookLevel, OrderBookLevelSchema, OrderBookSchema, OrderSchema, type OrderSide, OrderSideSchema, type OrderStatus, OrderStatusSchema, type OrderType, OrderTypeSchema, 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, RequestWithdrawalCommand, type SessionInfo, SessionInfoSchema, SetupTotpCommand, SwapCommand, type SwapSide, SwapSideSchema, TICKET_CATEGORIES, TOKEN_ASSET, 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 TradeResult, TradeResultSchema, type Transaction, TransactionSchema, type TransactionStatus, TransactionStatusSchema, type TransactionType, TransactionTypeSchema, UnlinkAccountCommand, UpdateProfileCommand, UpdateSettingsCommand, type UserProfile, UserProfileSchema, type UserRank, UserRankSchema, type UserSettings, UserSettingsSchema, type UserStatus, UserStatusSchema, UuidSchema, type WalletOverview, WalletOverviewSchema, type Withdrawal, WithdrawalSchema, type WithdrawalStatus, WithdrawalStatusSchema, endpoint };
|
package/dist/index.js
CHANGED
|
@@ -32,6 +32,7 @@ var PositiveMoneyStringSchema = MoneyStringSchema.refine(
|
|
|
32
32
|
"must be positive"
|
|
33
33
|
);
|
|
34
34
|
var UuidSchema = z.string().uuid();
|
|
35
|
+
var PeriodSchema = z.enum(["week", "month", "year", "all"]);
|
|
35
36
|
var ErrorResponseSchema = z.object({
|
|
36
37
|
error: z.object({
|
|
37
38
|
code: z.string(),
|
|
@@ -106,6 +107,8 @@ var TransactionSchema = z.object({
|
|
|
106
107
|
type: TransactionTypeSchema,
|
|
107
108
|
asset: AssetSymbolSchema,
|
|
108
109
|
amount: MoneyStringSchema,
|
|
110
|
+
price: MoneyStringSchema.nullable(),
|
|
111
|
+
quoteAmount: MoneyStringSchema.nullable(),
|
|
109
112
|
status: TransactionStatusSchema,
|
|
110
113
|
reference: z.string().nullable(),
|
|
111
114
|
createdAt: z.string().datetime()
|
|
@@ -119,13 +122,18 @@ var DepositAddressSchema = z.object({
|
|
|
119
122
|
});
|
|
120
123
|
var PartnerLevelSchema = z.object({
|
|
121
124
|
level: z.number().int().min(1).max(10),
|
|
122
|
-
partners: z.number().int().nonnegative()
|
|
125
|
+
partners: z.number().int().nonnegative(),
|
|
126
|
+
active: z.number().int().nonnegative(),
|
|
127
|
+
turnover: MoneyStringSchema,
|
|
128
|
+
reward: MoneyStringSchema
|
|
123
129
|
});
|
|
124
130
|
var PartnersOverviewSchema = z.object({
|
|
131
|
+
period: PeriodSchema,
|
|
125
132
|
referralCode: z.string(),
|
|
126
133
|
totalPartners: z.number().int().nonnegative(),
|
|
127
134
|
directPartners: z.number().int().nonnegative(),
|
|
128
135
|
networkTurnover: MoneyStringSchema,
|
|
136
|
+
networkTurnoverChangePct: z.number(),
|
|
129
137
|
affiliateIncome: MoneyStringSchema,
|
|
130
138
|
levels: z.array(PartnerLevelSchema)
|
|
131
139
|
});
|
|
@@ -469,11 +477,12 @@ var ListTradesCommand;
|
|
|
469
477
|
ListTradesCommand2.endpointDetails = endpoint("GET", "/exchange/trades", "Recent public trade tape");
|
|
470
478
|
ListTradesCommand2.ResponseSchema = z.array(PublicTradeSchema);
|
|
471
479
|
})(ListTradesCommand || (ListTradesCommand = {}));
|
|
472
|
-
|
|
473
|
-
// src/commands/partners/get-partners.command.ts
|
|
474
480
|
var GetPartnersCommand;
|
|
475
481
|
((GetPartnersCommand2) => {
|
|
476
482
|
GetPartnersCommand2.endpointDetails = endpoint("GET", "/partners", "Affiliate network overview with 10 levels");
|
|
483
|
+
GetPartnersCommand2.QuerySchema = z.object({
|
|
484
|
+
period: PeriodSchema.default("all")
|
|
485
|
+
});
|
|
477
486
|
GetPartnersCommand2.ResponseSchema = PartnersOverviewSchema;
|
|
478
487
|
})(GetPartnersCommand || (GetPartnersCommand = {}));
|
|
479
488
|
var GetRanksCommand;
|
|
@@ -845,6 +854,6 @@ var REST_API = {
|
|
|
845
854
|
var API_PREFIX = "/api";
|
|
846
855
|
var API_VERSION = "v1";
|
|
847
856
|
|
|
848
|
-
export { API_PREFIX, API_VERSION, ASSET_SYMBOLS, AVATAR_CONTENT_TYPES, AssetBalanceSchema, AssetSymbolSchema, AvatarContentTypeSchema, AvatarUploadUrlCommand, CancelOrderCommand, CancelWithdrawalCommand, ChartPeriodSchema, ChartPointSchema, ClaimDailyBonusCommand, ConfirmEmailChangeCommand, ConfirmTotpCommand, ConfirmWithdrawalCommand, CreateTicketCommand, DEPOSITABLE_ASSETS, DailyBonusClaimResultSchema, DailyBonusDaySchema, DailyBonusStatusSchema, DepositAddressCommand, DepositAddressSchema, DepositableAssetSchema, DisableTotpCommand, ERROR_CODE, EarningsOverviewSchema, ErrorResponseSchema, FUNDING_ASSET, GetDailyBonusCommand, GetEarningsCommand, GetIncomeCommand, GetLeaderboardCommand, GetOrderBookCommand, GetPartnersCommand, GetRanksCommand, GetSettingsCommand, GetTicketCommand, GetTokenChartCommand, GetTokenPriceCommand, GetTransactionsCommand, GetWalletCommand, IncomeOverviewSchema, IncomePeriodSchema, LeaderboardEntrySchema, LeaderboardPeriodSchema, LeaderboardSchema, LinkGoogleCommand, LinkProviderSchema, LinkTelegramCommand, LinkedAccountSchema, ListLinkedAccountsCommand, ListMyOrdersCommand, ListNotificationsCommand, ListTicketsCommand, ListTradesCommand, ListWithdrawalsCommand, LoginCommand, LogoutCommand, MONEY_REGEX, MarkNotificationsReadCommand, MeCommand, MoneyStringSchema, MonthlyPricePointSchema, NotificationSchema, NotificationTypeSchema, OrderBookLevelSchema, OrderBookSchema, OrderSchema, OrderSideSchema, OrderStatusSchema, OrderTypeSchema, PaginatedSchema, PaginationQuerySchema, PartnerAccrualSchema, PartnerLevelSchema, PartnersOverviewSchema, PlaceOrderCommand, PositiveMoneyStringSchema, PublicTradeSchema, REST_API, RankDefSchema, RegisterCommand, ReplyTicketCommand, RequestEmailChangeCommand, RequestWithdrawalCommand, SessionInfoSchema, SetupTotpCommand, SwapCommand, SwapSideSchema, TICKET_CATEGORIES, TOKEN_ASSET, TicketAttachmentInputSchema, TicketAttachmentSchema, TicketAttachmentUploadCommand, TicketAuthorTypeSchema, TicketBodySchema, TicketCategorySchema, TicketDetailSchema, TicketMessageSchema, TicketStatusSchema, TicketSummarySchema, TokenPriceSchema, TradeResultSchema, TransactionSchema, TransactionStatusSchema, TransactionTypeSchema, UnlinkAccountCommand, UpdateProfileCommand, UpdateSettingsCommand, UserProfileSchema, UserRankSchema, UserSettingsSchema, UserStatusSchema, UuidSchema, WalletOverviewSchema, WithdrawalSchema, WithdrawalStatusSchema, endpoint };
|
|
857
|
+
export { API_PREFIX, API_VERSION, ASSET_SYMBOLS, AVATAR_CONTENT_TYPES, AssetBalanceSchema, AssetSymbolSchema, AvatarContentTypeSchema, AvatarUploadUrlCommand, CancelOrderCommand, CancelWithdrawalCommand, ChartPeriodSchema, ChartPointSchema, ClaimDailyBonusCommand, ConfirmEmailChangeCommand, ConfirmTotpCommand, ConfirmWithdrawalCommand, CreateTicketCommand, DEPOSITABLE_ASSETS, DailyBonusClaimResultSchema, DailyBonusDaySchema, DailyBonusStatusSchema, DepositAddressCommand, DepositAddressSchema, DepositableAssetSchema, DisableTotpCommand, ERROR_CODE, EarningsOverviewSchema, ErrorResponseSchema, FUNDING_ASSET, GetDailyBonusCommand, GetEarningsCommand, GetIncomeCommand, GetLeaderboardCommand, GetOrderBookCommand, GetPartnersCommand, GetRanksCommand, GetSettingsCommand, GetTicketCommand, GetTokenChartCommand, GetTokenPriceCommand, GetTransactionsCommand, GetWalletCommand, IncomeOverviewSchema, IncomePeriodSchema, LeaderboardEntrySchema, LeaderboardPeriodSchema, LeaderboardSchema, LinkGoogleCommand, LinkProviderSchema, LinkTelegramCommand, LinkedAccountSchema, ListLinkedAccountsCommand, ListMyOrdersCommand, ListNotificationsCommand, ListTicketsCommand, ListTradesCommand, ListWithdrawalsCommand, LoginCommand, LogoutCommand, MONEY_REGEX, MarkNotificationsReadCommand, MeCommand, MoneyStringSchema, MonthlyPricePointSchema, NotificationSchema, NotificationTypeSchema, OrderBookLevelSchema, OrderBookSchema, OrderSchema, OrderSideSchema, OrderStatusSchema, OrderTypeSchema, PaginatedSchema, PaginationQuerySchema, PartnerAccrualSchema, PartnerLevelSchema, PartnersOverviewSchema, PeriodSchema, PlaceOrderCommand, PositiveMoneyStringSchema, PublicTradeSchema, REST_API, RankDefSchema, RegisterCommand, ReplyTicketCommand, RequestEmailChangeCommand, RequestWithdrawalCommand, SessionInfoSchema, SetupTotpCommand, SwapCommand, SwapSideSchema, TICKET_CATEGORIES, TOKEN_ASSET, TicketAttachmentInputSchema, TicketAttachmentSchema, TicketAttachmentUploadCommand, TicketAuthorTypeSchema, TicketBodySchema, TicketCategorySchema, TicketDetailSchema, TicketMessageSchema, TicketStatusSchema, TicketSummarySchema, TokenPriceSchema, TradeResultSchema, TransactionSchema, TransactionStatusSchema, TransactionTypeSchema, UnlinkAccountCommand, UpdateProfileCommand, UpdateSettingsCommand, UserProfileSchema, UserRankSchema, UserSettingsSchema, UserStatusSchema, UuidSchema, WalletOverviewSchema, WithdrawalSchema, WithdrawalStatusSchema, endpoint };
|
|
849
858
|
//# sourceMappingURL=index.js.map
|
|
850
859
|
//# sourceMappingURL=index.js.map
|