@cranberry-money/shared-constants 8.3.0 → 8.5.0
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/endpoints.d.ts +4 -0
- package/dist/api/endpoints.d.ts.map +1 -1
- package/dist/api/endpoints.js +5 -0
- package/dist/ui/cache.d.ts +23 -0
- package/dist/ui/cache.d.ts.map +1 -0
- package/dist/ui/cache.js +21 -0
- package/dist/ui/index.d.ts +2 -0
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +2 -0
- package/dist/ui/timing.d.ts +26 -0
- package/dist/ui/timing.d.ts.map +1 -0
- package/dist/ui/timing.js +24 -0
- package/package.json +1 -1
package/dist/api/endpoints.d.ts
CHANGED
|
@@ -116,6 +116,10 @@ export declare const USER_PROFILE_ENDPOINTS: {
|
|
|
116
116
|
readonly BASE: "/api/user-profiles/";
|
|
117
117
|
readonly DETAIL: (uuid: string) => `/api/user-profiles/${string}/`;
|
|
118
118
|
};
|
|
119
|
+
export declare const INVESTMENT_PREFERENCES_ENDPOINTS: {
|
|
120
|
+
readonly BASE: "/api/investment-preferences/";
|
|
121
|
+
readonly DETAIL: (uuid: string) => `/api/investment-preferences/${string}/`;
|
|
122
|
+
};
|
|
119
123
|
export declare const WITHDRAWAL_ENDPOINTS: {
|
|
120
124
|
readonly BASE: "/api/withdrawals/";
|
|
121
125
|
readonly DETAIL: (uuid: string) => `/api/withdrawals/${string}/`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../src/api/endpoints.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,cAAc;;CAEjB,CAAC;AAGX,eAAO,MAAM,iBAAiB;;4BAEb,MAAM;CACb,CAAC;AAGX,eAAO,MAAM,cAAc;;;;;;;;;;;;CAYjB,CAAC;AAGX,eAAO,MAAM,cAAc;;4BAEV,MAAM;;oCAEE,MAAM;CACrB,CAA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CAAC;AAGX,eAAO,MAAM,uBAAuB;;4BAEnB,MAAM;CACb,CAAC;AAGX,eAAO,MAAM,eAAe;;4BAEX,MAAM;4BACN,MAAM;6BACL,MAAM;CACd,CAAC;AAGX,eAAO,MAAM,sBAAsB;;4BAElB,MAAM;6BACL,MAAM;4BACP,MAAM;CACb,CAAC;AAGX,eAAO,MAAM,qBAAqB;;4BAEjB,MAAM;CACb,CAAC;AAGX,eAAO,MAAM,4BAA4B;;4BAExB,MAAM;CACb,CAAC;AAGX,eAAO,MAAM,cAAc;;4BAEV,MAAM;;;;CAIb,CAAC;AAGX,eAAO,MAAM,sBAAsB;;4BAElB,MAAM;CACb,CAAC;AAGX,eAAO,MAAM,gCAAgC;;4BAE5B,MAAM;CACb,CAAC;AAGX,eAAO,MAAM,oBAAoB;;4BAEhB,MAAM;4BACN,MAAM;6BACL,MAAM;4BACP,MAAM;CACb,CAAC;AAGX,eAAO,MAAM,4BAA4B;;4BAExB,MAAM;4BACN,MAAM;6BACL,MAAM;4BACP,MAAM;CACb,CAAC;AAGX,eAAO,MAAM,gCAAgC;;4BAE5B,MAAM;CACb,CAAC;AAGX,eAAO,MAAM,qBAAqB;;4BAEjB,MAAM;CACb,CAAC;AAGX,eAAO,MAAM,0BAA0B;;4BAEtB,MAAM;CACb,CAAC;AAGX,eAAO,MAAM,uBAAuB;;4BAEnB,MAAM;CACb,CAAC;AAGX,eAAO,MAAM,gCAAgC;;0BAE9B,MAAM;CACX,CAAC"}
|
package/dist/api/endpoints.js
CHANGED
|
@@ -136,6 +136,11 @@ export const USER_PROFILE_ENDPOINTS = {
|
|
|
136
136
|
BASE: '/api/user-profiles/',
|
|
137
137
|
DETAIL: (uuid) => `/api/user-profiles/${uuid}/`,
|
|
138
138
|
};
|
|
139
|
+
// Investment preferences endpoints (top-level resource)
|
|
140
|
+
export const INVESTMENT_PREFERENCES_ENDPOINTS = {
|
|
141
|
+
BASE: '/api/investment-preferences/',
|
|
142
|
+
DETAIL: (uuid) => `/api/investment-preferences/${uuid}/`,
|
|
143
|
+
};
|
|
139
144
|
// Withdrawal endpoints
|
|
140
145
|
export const WITHDRAWAL_ENDPOINTS = {
|
|
141
146
|
BASE: '/api/withdrawals/',
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cache timing constants for React Query and other caching mechanisms
|
|
3
|
+
*/
|
|
4
|
+
export declare const CACHE_TIMING: {
|
|
5
|
+
/**
|
|
6
|
+
* Auth data stale time - 5 minutes
|
|
7
|
+
*/
|
|
8
|
+
readonly AUTH_STALE_TIME: number;
|
|
9
|
+
/**
|
|
10
|
+
* Trades data stale time - 2 minutes
|
|
11
|
+
*/
|
|
12
|
+
readonly TRADES_STALE_TIME: number;
|
|
13
|
+
/**
|
|
14
|
+
* Asset allocation data stale time - 10 minutes
|
|
15
|
+
*/
|
|
16
|
+
readonly ASSET_ALLOCATION_STALE_TIME: number;
|
|
17
|
+
/**
|
|
18
|
+
* Default stale time for general data - 5 minutes
|
|
19
|
+
*/
|
|
20
|
+
readonly DEFAULT_STALE_TIME: number;
|
|
21
|
+
};
|
|
22
|
+
export type CacheTiming = typeof CACHE_TIMING;
|
|
23
|
+
//# sourceMappingURL=cache.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../src/ui/cache.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,YAAY;IACvB;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;CAEK,CAAC;AAEX,MAAM,MAAM,WAAW,GAAG,OAAO,YAAY,CAAC"}
|
package/dist/ui/cache.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cache timing constants for React Query and other caching mechanisms
|
|
3
|
+
*/
|
|
4
|
+
export const CACHE_TIMING = {
|
|
5
|
+
/**
|
|
6
|
+
* Auth data stale time - 5 minutes
|
|
7
|
+
*/
|
|
8
|
+
AUTH_STALE_TIME: 5 * 60 * 1000,
|
|
9
|
+
/**
|
|
10
|
+
* Trades data stale time - 2 minutes
|
|
11
|
+
*/
|
|
12
|
+
TRADES_STALE_TIME: 2 * 60 * 1000,
|
|
13
|
+
/**
|
|
14
|
+
* Asset allocation data stale time - 10 minutes
|
|
15
|
+
*/
|
|
16
|
+
ASSET_ALLOCATION_STALE_TIME: 10 * 60 * 1000,
|
|
17
|
+
/**
|
|
18
|
+
* Default stale time for general data - 5 minutes
|
|
19
|
+
*/
|
|
20
|
+
DEFAULT_STALE_TIME: 5 * 60 * 1000,
|
|
21
|
+
};
|
package/dist/ui/index.d.ts
CHANGED
package/dist/ui/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ui/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ui/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,yBAAyB,CAAC;AACxC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
|
package/dist/ui/index.js
CHANGED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UI timing constants for animations, transitions, and delays
|
|
3
|
+
*/
|
|
4
|
+
export declare const UI_TIMING: {
|
|
5
|
+
/**
|
|
6
|
+
* Tooltip delay in milliseconds
|
|
7
|
+
*/
|
|
8
|
+
readonly TOOLTIP_DELAY: 300;
|
|
9
|
+
/**
|
|
10
|
+
* Animation durations
|
|
11
|
+
*/
|
|
12
|
+
readonly ANIMATION_FAST: 150;
|
|
13
|
+
readonly ANIMATION_NORMAL: 200;
|
|
14
|
+
readonly ANIMATION_SLOW: 300;
|
|
15
|
+
/**
|
|
16
|
+
* Transition durations
|
|
17
|
+
*/
|
|
18
|
+
readonly TRANSITION_FAST: 150;
|
|
19
|
+
readonly TRANSITION_NORMAL: 200;
|
|
20
|
+
/**
|
|
21
|
+
* Debounce delay for user input
|
|
22
|
+
*/
|
|
23
|
+
readonly DEBOUNCE_DELAY: 300;
|
|
24
|
+
};
|
|
25
|
+
export type UITiming = typeof UI_TIMING;
|
|
26
|
+
//# sourceMappingURL=timing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"timing.d.ts","sourceRoot":"","sources":["../../src/ui/timing.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,SAAS;IACpB;;OAEG;;IAGH;;OAEG;;;;IAKH;;OAEG;;;IAIH;;OAEG;;CAEK,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,OAAO,SAAS,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UI timing constants for animations, transitions, and delays
|
|
3
|
+
*/
|
|
4
|
+
export const UI_TIMING = {
|
|
5
|
+
/**
|
|
6
|
+
* Tooltip delay in milliseconds
|
|
7
|
+
*/
|
|
8
|
+
TOOLTIP_DELAY: 300,
|
|
9
|
+
/**
|
|
10
|
+
* Animation durations
|
|
11
|
+
*/
|
|
12
|
+
ANIMATION_FAST: 150,
|
|
13
|
+
ANIMATION_NORMAL: 200,
|
|
14
|
+
ANIMATION_SLOW: 300,
|
|
15
|
+
/**
|
|
16
|
+
* Transition durations
|
|
17
|
+
*/
|
|
18
|
+
TRANSITION_FAST: 150,
|
|
19
|
+
TRANSITION_NORMAL: 200,
|
|
20
|
+
/**
|
|
21
|
+
* Debounce delay for user input
|
|
22
|
+
*/
|
|
23
|
+
DEBOUNCE_DELAY: 300,
|
|
24
|
+
};
|