@xoxno/types 1.0.380 → 1.0.381

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.
@@ -99,6 +99,10 @@ export declare const CacheKeys: {
99
99
  LendingEModeCategoryProfileDoc: (id: string) => CacheKeyConfig;
100
100
  LendingMarketStatsGraphData: (startTime: string, endTime: string, bin: string, token?: string) => CacheKeyConfig;
101
101
  LendingMarketAverageGraphData: (token: string) => CacheKeyConfig;
102
+ LendingMarketQuery: (filterHash: string) => CacheKeyConfig;
103
+ UserLendingPositions: (address: string, token?: string) => CacheKeyConfig;
104
+ HatomUserInfo: (address: string) => CacheKeyConfig;
105
+ UserUnreadNotificationCount: (address: string) => CacheKeyConfig;
102
106
  EventProfileDoc: (eventId: string) => CacheKeyConfig;
103
107
  EventStageDoc: (eventId: string, stageId: string) => CacheKeyConfig;
104
108
  EventTicketProfileDoc: (eventId: string, ticketId: string) => CacheKeyConfig;
@@ -366,6 +366,22 @@ exports.CacheKeys = {
366
366
  key: `lending:market:${token}:stats`,
367
367
  ttl: ttl_1.TTLS.ONE_HOUR * 4,
368
368
  }),
369
+ LendingMarketQuery: (filterHash) => ({
370
+ key: `lending:market:query:${filterHash}`,
371
+ ttl: ttl_1.TTLS.ONE_MINUTE,
372
+ }),
373
+ UserLendingPositions: (address, token) => ({
374
+ key: `user:${address}:lending:positions${token ? `:${token}` : ''}`,
375
+ ttl: ttl_1.TTLS.ONE_MINUTE / 2, // 30 seconds
376
+ }),
377
+ HatomUserInfo: (address) => ({
378
+ key: `hatom:user:${address}:info`,
379
+ ttl: ttl_1.TTLS.ONE_MINUTE / 2, // 30 seconds
380
+ }),
381
+ UserUnreadNotificationCount: (address) => ({
382
+ key: `user:${address}:notifications:unread-count`,
383
+ ttl: ttl_1.TTLS.ONE_MINUTE / 4, // 15 seconds
384
+ }),
369
385
  // ==========================================
370
386
  // Event/Ticketing-related cache keys
371
387
  // ==========================================
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xoxno/types",
3
- "version": "1.0.380",
3
+ "version": "1.0.381",
4
4
  "description": "Shared types and utilities for XOXNO API.",
5
5
  "exports": {
6
6
  ".": {