@xoxno/types 1.0.368 → 1.0.369

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.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export * from './cache/keys';
1
+ export * from './cache/cache-keys';
2
2
  export * from './cache/ttl';
3
3
  export * from './common/kusto/lending-market-analytics';
4
4
  export * from './common/kusto/lending-market-average';
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ 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
- __exportStar(require("./cache/keys"), exports);
17
+ __exportStar(require("./cache/cache-keys"), exports);
18
18
  __exportStar(require("./cache/ttl"), exports);
19
19
  __exportStar(require("./common/kusto/lending-market-analytics"), exports);
20
20
  __exportStar(require("./common/kusto/lending-market-average"), exports);
@@ -1,7 +1,7 @@
1
1
  import { CollectionProfileDoc } from '../../cosmos-db/documents/collection/profile';
2
- declare type PinnedCollectionDto_base = Pick<CollectionProfileDoc, "description" | "profile" | "creator" | "collection" | "chain" | "name" | "isVerified" | "banner" | "isMintable">;
2
+ declare type PinnedCollectionDto_base = Pick<CollectionProfileDoc, "collection" | "description" | "profile" | "creator" | "chain" | "name" | "isVerified" | "banner" | "isMintable">;
3
3
  export declare type PinnedCollectionDto = PinnedCollectionDto_base ;
4
- declare const PinnedCollectionDtoNest_base: import("@nestjs/common").Type<Pick<CollectionProfileDoc, "description" | "profile" | "creator" | "collection" | "chain" | "name" | "isVerified" | "banner" | "isMintable">>;
4
+ declare const PinnedCollectionDtoNest_base: import("@nestjs/common").Type<Pick<CollectionProfileDoc, "collection" | "description" | "profile" | "creator" | "chain" | "name" | "isVerified" | "banner" | "isMintable">>;
5
5
  export declare class PinnedCollectionDtoNest extends PinnedCollectionDtoNest_base {
6
6
  }
7
7
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.368",
3
+ "version": "1.0.369",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {
@@ -1,642 +0,0 @@
1
- import { ActivityChain } from '../enums/common.enum';
2
- /**
3
- * An object that defines all Redis keys and their TTLs.
4
- * This ensures consistency and a single source of truth.
5
- *
6
- * Each entry should return an object: { key: string, ttl: number }
7
- */
8
- export declare const REDIS_KEYS: {
9
- LendingAllMarketsTokens: {
10
- key: string;
11
- ttl: number;
12
- };
13
- MinterLocalOwner: (address: string) => {
14
- key: string;
15
- ttl: number;
16
- };
17
- GetCreatorProfileByContractAddress: (contractAddress: string) => {
18
- key: string;
19
- ttl: number;
20
- };
21
- GetBoberBattleBiggestWinners: {
22
- key: string;
23
- ttl: number;
24
- };
25
- GetAllBoberBattleTokens: {
26
- key: string;
27
- ttl: number;
28
- };
29
- StakingProviderOwner: (provider: string) => {
30
- key: string;
31
- ttl: number;
32
- };
33
- StakingCreatedDelegationContract: (address: string) => {
34
- key: string;
35
- ttl: number;
36
- };
37
- StakingProviderUserRewards: (address: string, currentEpoch: number) => {
38
- key: string;
39
- ttl: number;
40
- };
41
- StakingProviderEpochRewards: (provider: string, epoch: number) => {
42
- key: string;
43
- ttl: number;
44
- };
45
- LendingFaucetClaimed: (address: string) => {
46
- key: string;
47
- ttl: number;
48
- };
49
- BoberWheelWinners: {
50
- key: string;
51
- ttl: number;
52
- };
53
- BoberWheelConfig: {
54
- key: string;
55
- ttl: number;
56
- };
57
- BoberWheelScheduledSpin: {
58
- key: string;
59
- ttl: number;
60
- };
61
- LendingBulkOraclePrice: (tokens: string[], returnAsUsd: boolean) => {
62
- key: string;
63
- ttl: number;
64
- };
65
- LpTokenInfo: (token: string) => {
66
- key: string;
67
- ttl: number;
68
- };
69
- LendingTokenPriceAsUsd: (token: string) => {
70
- key: string;
71
- ttl: number;
72
- };
73
- LendingOverallStats: {
74
- key: string;
75
- ttl: number;
76
- };
77
- LendingTopMarketParticipants: (token: string) => {
78
- key: string;
79
- ttl: number;
80
- };
81
- LendingMarketParticipantsCount: (token: string) => {
82
- key: string;
83
- ttl: number;
84
- };
85
- LendingPositionLeaderboard: (hash: string) => {
86
- key: string;
87
- ttl: number;
88
- };
89
- LendingTokenPriceAsEgld: (token: string) => {
90
- key: string;
91
- ttl: number;
92
- };
93
- LendingPoolContracts: (controllerAddress: string) => {
94
- key: string;
95
- ttl: number;
96
- };
97
- LendingTokenEModeProfileDoc: (token: string, eModeCategory: string) => {
98
- key: string;
99
- ttl: number;
100
- };
101
- LendingEModeCategoryProfileDoc: (id: string) => {
102
- key: string;
103
- ttl: number;
104
- };
105
- LendingMarketProfileDoc: (token: string) => {
106
- key: string;
107
- ttl: number;
108
- };
109
- LendingAccountProfileDoc: (identifier: string, token: string) => {
110
- key: string;
111
- ttl: number;
112
- };
113
- LocationPolygon: (query: string) => {
114
- key: string;
115
- ttl: number;
116
- };
117
- UserInventorySummary: (address: string, activeAuction: boolean) => {
118
- key: string;
119
- ttl: number;
120
- };
121
- EventStartsFromPrice: (eventId: string) => {
122
- key: string;
123
- ttl: number;
124
- };
125
- EventQuestions: (eventId: string) => {
126
- key: string;
127
- ttl: number;
128
- };
129
- EventVoucherDoc: (eventId: string, voucherId: string) => {
130
- key: string;
131
- ttl: number;
132
- };
133
- EventUserRoleDoc: (eventId: string, address: string) => {
134
- key: string;
135
- ttl: number;
136
- };
137
- EventGuestSummary: (eventId: string) => {
138
- key: string;
139
- ttl: number;
140
- };
141
- EventGuestDoc: (eventId: string, address: string) => {
142
- key: string;
143
- ttl: number;
144
- };
145
- EventVoucherDocByCode: (eventId: string, code: string) => {
146
- key: string;
147
- ttl: number;
148
- };
149
- EventStageDoc: (eventId: string, stageId: string) => {
150
- key: string;
151
- ttl: number;
152
- };
153
- EventIdBySlug: (slug: string) => {
154
- key: string;
155
- ttl: number;
156
- };
157
- EventTicketProfileDoc: (eventId: string, ticketId: string) => {
158
- key: string;
159
- ttl: number;
160
- };
161
- EventProfileDoc: (eventId: string) => {
162
- key: string;
163
- ttl: number;
164
- };
165
- NftSearch: (filter: string) => {
166
- key: string;
167
- ttl: number;
168
- };
169
- GetCountries: {
170
- key: string;
171
- ttl: number;
172
- };
173
- NftMetadataUrl: (url: string) => {
174
- key: string;
175
- ttl: number;
176
- };
177
- NftMetadata: (identifier: string) => {
178
- key: string;
179
- ttl: number;
180
- };
181
- XoxnoLiquidStats: {
182
- key: string;
183
- ttl: number;
184
- };
185
- XoxnoLiquidApy: {
186
- key: string;
187
- ttl: number;
188
- };
189
- CollectionListedCount: (collection: string) => {
190
- key: string;
191
- ttl: number;
192
- };
193
- EmailVerificationCode: (address: string) => {
194
- key: string;
195
- ttl: number;
196
- };
197
- UserSettings: (address: string) => {
198
- key: string;
199
- ttl: number;
200
- };
201
- UserFavorite: (address: string, favoriteId: string) => {
202
- key: string;
203
- ttl: number;
204
- };
205
- ClaimableRewards: (address: string, delegationContract: string) => {
206
- key: string;
207
- ttl: number;
208
- };
209
- AllUserDelegations: (address: string) => {
210
- key: string;
211
- ttl: number;
212
- };
213
- EgldStakingProviders: (providers: string[], withIdentityInfo?: boolean) => {
214
- key: string;
215
- ttl: number;
216
- };
217
- EgldStakingProvider: (provider: string) => {
218
- key: string;
219
- ttl: number;
220
- };
221
- GetLastUpdatedEpoch: (provider: string, epoch: number) => {
222
- key: string;
223
- ttl: number;
224
- };
225
- CollectionStats: (collection: string) => {
226
- key: string;
227
- ttl: number;
228
- };
229
- AllGroupChatIds: {
230
- key: string;
231
- ttl: number;
232
- };
233
- GroupChatProfile: (chatId: string) => {
234
- key: string;
235
- ttl: number;
236
- };
237
- PinnedNftsApiResponse: {
238
- key: string;
239
- ttl: number;
240
- };
241
- ConversationDeleteTimestamp: (chatId: string, address: string) => {
242
- key: string;
243
- ttl: number;
244
- };
245
- IsSenderBlockedByReceiver: (sender: string, receiver: string) => {
246
- key: string;
247
- ttl: number;
248
- };
249
- UserLastReadChatMessage: (chatId: string, address: string) => {
250
- key: string;
251
- ttl: number;
252
- };
253
- UserLastSentChatMessage: (chatId: string, address: string) => {
254
- key: string;
255
- ttl: number;
256
- };
257
- UserXoxnoDropScore: (skip: number, top: number, address?: string) => {
258
- key: string;
259
- ttl: number;
260
- };
261
- Web2NativeWalletAddress: (userId: string) => {
262
- key: string;
263
- ttl: number;
264
- };
265
- Web2UserDoc: (userId: string) => {
266
- key: string;
267
- ttl: number;
268
- };
269
- StakingPoolsSummaryByCollection: {
270
- key: string;
271
- ttl: number;
272
- };
273
- TwispayCallbackProcessed: (transactionId: string) => {
274
- key: string;
275
- ttl: number;
276
- };
277
- PendingExternalPayments: {
278
- key: string;
279
- ttl: number;
280
- };
281
- NextRelayWalletIndex: (shard: number) => {
282
- key: string;
283
- ttl: number;
284
- };
285
- DropsPinnedCollectionsApiResponse: {
286
- key: string;
287
- ttl: number;
288
- };
289
- HomePinnedCollectionsApiResponse: {
290
- key: string;
291
- ttl: number;
292
- };
293
- NftHasOffer: (identifier: string) => {
294
- key: string;
295
- ttl: number;
296
- };
297
- LaunchpadAllRegisteredContracts: {
298
- key: string;
299
- ttl: number;
300
- };
301
- UserStatistics: (hash: string) => {
302
- key: string;
303
- ttl: number;
304
- };
305
- UserOwnedAndListedSummary: (address: string) => {
306
- key: string;
307
- ttl: number;
308
- };
309
- UserSearch: (filter: string) => {
310
- key: string;
311
- ttl: number;
312
- };
313
- DropsSearch: (filter: string) => {
314
- key: string;
315
- ttl: number;
316
- };
317
- CollectionSearch: (filter: string) => {
318
- key: string;
319
- ttl: number;
320
- };
321
- GlobalSearch: (filter: string) => {
322
- key: string;
323
- ttl: number;
324
- };
325
- ListingCount: (chain?: ActivityChain[]) => {
326
- key: string;
327
- ttl: number;
328
- };
329
- UserCount: (chain?: ActivityChain[]) => {
330
- key: string;
331
- ttl: number;
332
- };
333
- TradingStatistics: (chain?: ActivityChain[]) => {
334
- key: string;
335
- ttl: number;
336
- };
337
- ShardCount: {
338
- key: string;
339
- ttl: number;
340
- };
341
- AddressEsdt: (address: string) => {
342
- key: string;
343
- ttl: number;
344
- };
345
- UserFavoriteUserAddresses: (address: string) => {
346
- key: string;
347
- ttl: number;
348
- };
349
- UserFavoriteCollectionTickers: (address: string) => {
350
- key: string;
351
- ttl: number;
352
- };
353
- UserFavoriteNftIdentifiers: (address: string) => {
354
- key: string;
355
- ttl: number;
356
- };
357
- UserTradingSummary: (address: string) => {
358
- key: string;
359
- ttl: number;
360
- };
361
- LendingMarketStatsGraphData: (startTime: string, endTime: string, bin: string, token?: string) => {
362
- key: string;
363
- ttl: number;
364
- };
365
- VolumeGraphData: (startTime: string, endTime: string, bin: string, collection?: string, chain?: ActivityChain[]) => {
366
- key: string;
367
- ttl: number;
368
- };
369
- DataApiTokens: {
370
- key: string;
371
- ttl: number;
372
- };
373
- DataApiTokenPrice: (identifier: string, timestamp?: number) => {
374
- key: string;
375
- ttl: number;
376
- };
377
- CollectionTickerByTags: (creatorTag: string, collectionTag: string) => {
378
- key: string;
379
- ttl: number;
380
- };
381
- TokenFiatPrice: (fiatCurrencies: string[], token: string) => {
382
- key: string;
383
- ttl: number;
384
- };
385
- AshTokenUsdValue: (token: string) => {
386
- key: string;
387
- ttl: number;
388
- };
389
- AshSupportedTokens: {
390
- key: string;
391
- ttl: number;
392
- };
393
- StakingUserRewardByPoolId: (address: string, poolId: number) => {
394
- key: string;
395
- ttl: number;
396
- };
397
- StakingWlNonces: (poolId: number) => {
398
- key: string;
399
- ttl: number;
400
- };
401
- StakingDataDocs: (query: string) => {
402
- key: string;
403
- ttl: number;
404
- };
405
- StakingPoolDoc: (poolId: number) => {
406
- key: string;
407
- ttl: number;
408
- };
409
- CollectionListingDistribution: (collection: string) => {
410
- key: string;
411
- ttl: number;
412
- };
413
- CollectionTraitMap: (collection: string) => {
414
- key: string;
415
- ttl: number;
416
- };
417
- CollectionFloorPriceByAttribute: (collection: string) => {
418
- key: string;
419
- ttl: number;
420
- };
421
- UserCreatorProfileByTag: (creatorTag: string) => {
422
- key: string;
423
- ttl: number;
424
- };
425
- UserCreatorProfile: (address: string) => {
426
- key: string;
427
- ttl: number;
428
- };
429
- UserCreatorTagRegistered: (tag: string) => {
430
- key: string;
431
- ttl: number;
432
- };
433
- CollectionFloorPrice: (collection: string, token: string) => {
434
- key: string;
435
- ttl: number;
436
- };
437
- NftDataDocs: (query: string) => {
438
- key: string;
439
- ttl: number;
440
- };
441
- TokenData: (token: string) => {
442
- key: string;
443
- ttl: number;
444
- };
445
- AllBannedCollections: {
446
- key: string;
447
- ttl: number;
448
- };
449
- AllVerifiedCollections: {
450
- key: string;
451
- ttl: number;
452
- };
453
- CollectionProfileDocs: (hash: string) => {
454
- key: string;
455
- ttl: number;
456
- };
457
- CollectionOfferDocs: (hash: string) => {
458
- key: string;
459
- ttl: number;
460
- };
461
- TokenUsdcValue: (token: string, timestamp: number) => {
462
- key: string;
463
- ttl: number;
464
- };
465
- UserProfile: (address: string) => {
466
- key: string;
467
- ttl: number;
468
- };
469
- EpochEndTimestamp: {
470
- key: string;
471
- ttl: number;
472
- };
473
- CurrentEpoch: {
474
- key: string;
475
- ttl: number;
476
- };
477
- CurrentTokenValue: {
478
- key: string;
479
- ttl: number;
480
- };
481
- SEgldExchangeRate: {
482
- key: string;
483
- ttl: number;
484
- };
485
- CollectionHoldersDetailed: (key: string, realOwners: boolean) => {
486
- key: string;
487
- ttl: number;
488
- };
489
- SftTotalSupplyCount: (key: string) => {
490
- key: string;
491
- ttl: number;
492
- };
493
- CollectionHoldersCount: (key: string) => {
494
- key: string;
495
- ttl: number;
496
- };
497
- CollectionStatsDocs: (query: string) => {
498
- key: string;
499
- ttl: number;
500
- };
501
- CollectionMintStages: (collection: string, enabledOnly: boolean) => {
502
- key: string;
503
- ttl: number;
504
- };
505
- CollectionMintProfile: (collection: string) => {
506
- key: string;
507
- ttl: number;
508
- };
509
- TokenDecimals: (token: string) => {
510
- key: string;
511
- ttl: number;
512
- };
513
- AllSwapTokens: {
514
- key: string;
515
- ttl: number;
516
- };
517
- AllTokensMap: {
518
- key: string;
519
- ttl: number;
520
- };
521
- TokenSupply: (token: string) => {
522
- key: string;
523
- ttl: number;
524
- };
525
- MvxTokenSummary: (token: string) => {
526
- key: string;
527
- ttl: number;
528
- };
529
- TokenSummary: (token: string) => {
530
- key: string;
531
- ttl: number;
532
- };
533
- MinterUserMintsGlobal: (collectionTag: string, contractAddress: string, userAddress: string) => {
534
- key: string;
535
- ttl: number;
536
- };
537
- MinterUserMintsPerStage: (collectionTag: string, contractAddress: string, userAddress: string, stageName: string) => {
538
- key: string;
539
- ttl: number;
540
- };
541
- MinterMintShareholders: (collectionTag: string, contractAddress: string) => {
542
- key: string;
543
- ttl: number;
544
- };
545
- MinterRoyaltiesShareholders: (contractAddress: string) => {
546
- key: string;
547
- ttl: number;
548
- };
549
- MinterIsUserWhitelisted: (collectionTag: string, contractAddress: string, userAddress: string, stageName: string) => {
550
- key: string;
551
- ttl: number;
552
- };
553
- CollectionProfile: (collection: string) => {
554
- key: string;
555
- ttl: number;
556
- };
557
- GetAbi: (abiName: string) => {
558
- key: string;
559
- ttl: number;
560
- };
561
- EsdtTokenProperties: (tokenIdentifier: string) => {
562
- key: string;
563
- ttl: number;
564
- };
565
- AccountHerotag: (address: string) => {
566
- key: string;
567
- ttl: number;
568
- };
569
- CollectionHoldersDocCount: (collection: string) => {
570
- key: string;
571
- ttl: number;
572
- };
573
- AccumulatorCreators: {
574
- key: string;
575
- ttl: number;
576
- };
577
- ExchangeRateLiquidXOXNO: {
578
- key: string;
579
- ttl: number;
580
- };
581
- ExchangeRateLiquidXOXNOEGLD: {
582
- key: string;
583
- ttl: number;
584
- };
585
- FeesXOXNOEGLD: {
586
- key: string;
587
- ttl: number;
588
- };
589
- PendingDelegateXOXNOEGLD: {
590
- key: string;
591
- ttl: number;
592
- };
593
- VirtualEGLDReserveXOXNOEGLD: {
594
- key: string;
595
- ttl: number;
596
- };
597
- EGLDLiquidStats: {
598
- key: string;
599
- ttl: number;
600
- };
601
- TotalWithdrawnXOXNOEGLD: {
602
- key: string;
603
- ttl: number;
604
- };
605
- ValidatorsLiquidXOXNOEGLD: {
606
- key: string;
607
- ttl: number;
608
- };
609
- AprLiquidXOXNOEGLD: {
610
- key: string;
611
- ttl: number;
612
- };
613
- PendingUnstakeXOXNOEGLD: {
614
- key: string;
615
- ttl: number;
616
- };
617
- HatomTokenValues: {
618
- key: string;
619
- ttl: number;
620
- };
621
- LowVolumeCollections: {
622
- key: string;
623
- ttl: number;
624
- };
625
- EventReferralConfigDoc: (eventId: string, configId: string) => {
626
- key: string;
627
- ttl: number;
628
- };
629
- EventReferralDoc: (eventId: string, referralCode: string) => {
630
- key: string;
631
- ttl: number;
632
- };
633
- SuiTransactionSender: (txDigest: string) => {
634
- key: string;
635
- ttl: number;
636
- };
637
- SuiObject: (objectId: string) => {
638
- key: string;
639
- ttl: number;
640
- };
641
- };
642
- export type RedisKeys = typeof REDIS_KEYS;