@plyaz/config 1.5.0 → 1.5.2
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/api/errors/constants.d.ts +69 -0
- package/dist/api/errors/index.d.ts +5 -0
- package/dist/api/events/constants.d.ts +285 -0
- package/dist/api/events/index.d.ts +5 -0
- package/dist/api/index.d.ts +8 -0
- package/dist/api/network/constants.d.ts +18 -0
- package/dist/api/network/index.d.ts +5 -0
- package/dist/api/regional/constants.d.ts +75 -0
- package/dist/api/regional/index.d.ts +5 -0
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -1
- package/dist/api.d.ts +0 -76
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plyaz/config",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"author": "Redeemer Pace",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"description": "Provides shared configs and constants for @playz ecosystem.",
|
|
@@ -81,6 +81,12 @@
|
|
|
81
81
|
"require": "./dist/a11y/index.cjs",
|
|
82
82
|
"default": "./dist/a11y/index.mjs"
|
|
83
83
|
},
|
|
84
|
+
"./api": {
|
|
85
|
+
"types": "./dist/api/index.d.ts",
|
|
86
|
+
"import": "./dist/api/index.mjs",
|
|
87
|
+
"require": "./dist/api/index.cjs",
|
|
88
|
+
"default": "./dist/api/index.mjs"
|
|
89
|
+
},
|
|
84
90
|
"./translations": {
|
|
85
91
|
"types": "./dist/translations/index.d.ts"
|
|
86
92
|
},
|
package/dist/api.d.ts
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* API configuration settings
|
|
3
|
-
*/
|
|
4
|
-
export declare const API_CONFIG: {};
|
|
5
|
-
/**
|
|
6
|
-
* Cache configuration for Redis and TTL settings
|
|
7
|
-
*/
|
|
8
|
-
export declare const CACHE_CONFIG: {
|
|
9
|
-
/**
|
|
10
|
-
* Cache Time-To-Live in seconds
|
|
11
|
-
*/
|
|
12
|
-
readonly ttl: {
|
|
13
|
-
/**
|
|
14
|
-
* Short TTL: 5 minutes
|
|
15
|
-
*/
|
|
16
|
-
readonly short: 300;
|
|
17
|
-
/**
|
|
18
|
-
* Medium TTL: 30 minutes
|
|
19
|
-
*/
|
|
20
|
-
readonly medium: 1800;
|
|
21
|
-
/**
|
|
22
|
-
* Long TTL: 1 hour
|
|
23
|
-
*/
|
|
24
|
-
readonly long: 3600;
|
|
25
|
-
/**
|
|
26
|
-
* Extended TTL: 24 hours
|
|
27
|
-
*/
|
|
28
|
-
readonly extended: 86400;
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* Cache key prefixes for different entities
|
|
32
|
-
*/
|
|
33
|
-
readonly keys: {
|
|
34
|
-
/**
|
|
35
|
-
* User cache key prefix
|
|
36
|
-
*/
|
|
37
|
-
readonly user: "user:";
|
|
38
|
-
/**
|
|
39
|
-
* NFT cache key prefix
|
|
40
|
-
*/
|
|
41
|
-
readonly nft: "nft:";
|
|
42
|
-
/**
|
|
43
|
-
* Blockchain cache key prefix
|
|
44
|
-
*/
|
|
45
|
-
readonly blockchain: "blockchain:";
|
|
46
|
-
/**
|
|
47
|
-
* Authentication cache key prefix
|
|
48
|
-
*/
|
|
49
|
-
readonly auth: "auth:";
|
|
50
|
-
};
|
|
51
|
-
/**
|
|
52
|
-
* Redis connection configuration
|
|
53
|
-
*/
|
|
54
|
-
readonly redis: {
|
|
55
|
-
/**
|
|
56
|
-
* Redis connection URL from environment
|
|
57
|
-
*/
|
|
58
|
-
readonly url: string;
|
|
59
|
-
/**
|
|
60
|
-
* Global key prefix for all Redis keys
|
|
61
|
-
*/
|
|
62
|
-
readonly keyPrefix: "plyaz:";
|
|
63
|
-
/**
|
|
64
|
-
* Maximum number of retries per request
|
|
65
|
-
*/
|
|
66
|
-
readonly maxRetriesPerRequest: 3;
|
|
67
|
-
/**
|
|
68
|
-
* Enable lazy connection to Redis
|
|
69
|
-
*/
|
|
70
|
-
readonly lazyConnect: true;
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
/**
|
|
74
|
-
* Webhook configuration settings
|
|
75
|
-
*/
|
|
76
|
-
export declare const WEBHOOK_CONFIG: {};
|