@candlerip/shared3 0.0.147 → 0.0.149
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +1 -1
- package/src/backend/page/page-data/candles/compose-candles-page-data/index.js +8 -5
- package/src/backend/page/page-data/candles/compose-candles-page-data/type.d.ts +5 -2
- package/src/backend/page/page-data/candles/type.d.ts +1 -2
- package/src/filter-sort/index.d.ts +2 -0
- package/src/filter-sort/index.js +2 -0
package/package.json
CHANGED
@@ -19,12 +19,15 @@ export const composeCandlesPageData = async ({ filterSort: initFilterSort, langu
|
|
19
19
|
const { candles, candlesCount } = resp.data;
|
20
20
|
return {
|
21
21
|
data: {
|
22
|
-
candlesList: {
|
23
|
-
candles,
|
24
|
-
candlesCount,
|
25
|
-
},
|
26
22
|
dictionary,
|
27
|
-
|
23
|
+
pageData: {
|
24
|
+
candlesList: {
|
25
|
+
candles,
|
26
|
+
candlesCount,
|
27
|
+
},
|
28
|
+
filterSort,
|
29
|
+
renderDate: new Date(),
|
30
|
+
},
|
28
31
|
},
|
29
32
|
};
|
30
33
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Language } from '../../../../../dictionary/index.js';
|
1
|
+
import { Dictionary, Language } from '../../../../../dictionary/index.js';
|
2
2
|
import { CustomError } from '../../../../../error/index.js';
|
3
3
|
import { CandleFilterSort } from '../../../../../filter-sort/index.js';
|
4
4
|
import { CandlesPageData } from '../type.js';
|
@@ -6,7 +6,10 @@ export type ComposeCandlesPageData = (props: {
|
|
6
6
|
filterSort?: Partial<CandleFilterSort>;
|
7
7
|
language: Language;
|
8
8
|
}) => Promise<{
|
9
|
-
data:
|
9
|
+
data: {
|
10
|
+
dictionary: Dictionary;
|
11
|
+
pageData: CandlesPageData;
|
12
|
+
};
|
10
13
|
} | {
|
11
14
|
customError: CustomError;
|
12
15
|
}>;
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { Candle } from '../../../../candle/index.js';
|
2
|
-
import { Dictionary } from '../../../../dictionary/index.js';
|
3
2
|
import { CandleFilterSort } from '../../../../filter-sort/index.js';
|
4
3
|
import { Person } from '../../../../person/index.js';
|
5
4
|
export interface CandlesPageData {
|
@@ -9,6 +8,6 @@ export interface CandlesPageData {
|
|
9
8
|
}>;
|
10
9
|
candlesCount: number;
|
11
10
|
};
|
12
|
-
dictionary: Dictionary;
|
13
11
|
filterSort: CandleFilterSort;
|
12
|
+
renderDate: Date;
|
14
13
|
}
|
package/src/filter-sort/index.js
CHANGED