@candlerip/shared3 0.0.143 → 0.0.145
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/cache/cache/config.d.ts +34 -0
- package/src/backend/cache/cache/config.js +34 -0
- package/src/backend/cache/cache/index.d.ts +1 -0
- package/src/backend/cache/cache/index.js +1 -0
- package/src/backend/cache/cache/singleton.js +1 -1
- package/src/backend/cache/cache/type.d.ts +8 -2
- package/src/backend/cache/cache-key/config.d.ts +2 -1
- package/src/backend/cache/cache-key/config.js +2 -34
- package/src/backend/database/model/candle/candle-db-schema.d.ts +3 -3
- package/src/backend/page/page-data/candles/compose-candles-page-data/type.d.ts +1 -1
package/package.json
CHANGED
@@ -0,0 +1,34 @@
|
|
1
|
+
export declare const CACHE: {
|
2
|
+
readonly 'add-person-page-dictionary-en': "Dictionary";
|
3
|
+
readonly 'add-person-page-dictionary-hu': "Dictionary";
|
4
|
+
readonly 'candle-details-page-dictionary-en': "Dictionary";
|
5
|
+
readonly 'candle-details-page-dictionary-hu': "Dictionary";
|
6
|
+
readonly 'candles-page-data-en': "CandlesPageData";
|
7
|
+
readonly 'candles-page-data-hu': "CandlesPageData";
|
8
|
+
readonly 'candles-page-dictionary-en': "Dictionary";
|
9
|
+
readonly 'candles-page-dictionary-hu': "Dictionary";
|
10
|
+
readonly 'contact-page-dictionary-en': "Dictionary";
|
11
|
+
readonly 'contact-page-dictionary-hu': "Dictionary";
|
12
|
+
readonly 'cookie-policy-page-dictionary-en': "Dictionary";
|
13
|
+
readonly 'cookie-policy-page-dictionary-hu': "Dictionary";
|
14
|
+
readonly 'edit-candle-page-dictionary-en': "Dictionary";
|
15
|
+
readonly 'edit-candle-page-dictionary-hu': "Dictionary";
|
16
|
+
readonly 'edit-person-page-dictionary-en': "Dictionary";
|
17
|
+
readonly 'edit-person-page-dictionary-hu': "Dictionary";
|
18
|
+
readonly 'light-candle-page-dictionary-en': "Dictionary";
|
19
|
+
readonly 'light-candle-page-dictionary-hu': "Dictionary";
|
20
|
+
readonly 'help-page-dictionary-en': "Dictionary";
|
21
|
+
readonly 'help-page-dictionary-hu': "Dictionary";
|
22
|
+
readonly 'home-page-dictionary-en': "Dictionary";
|
23
|
+
readonly 'home-page-dictionary-hu': "Dictionary";
|
24
|
+
readonly 'person-candles-page-dictionary-en': "Dictionary";
|
25
|
+
readonly 'person-candles-page-dictionary-hu': "Dictionary";
|
26
|
+
readonly 'person-details-page-dictionary-en': "Dictionary";
|
27
|
+
readonly 'person-details-page-dictionary-hu': "Dictionary";
|
28
|
+
readonly 'persons-page-dictionary-en': "Dictionary";
|
29
|
+
readonly 'persons-page-dictionary-hu': "Dictionary";
|
30
|
+
readonly 'persons-map-page-dictionary-en': "Dictionary";
|
31
|
+
readonly 'persons-map-page-dictionary-hu': "Dictionary";
|
32
|
+
readonly 'terms-and-conditions-page-dictionary-en': "Dictionary";
|
33
|
+
readonly 'terms-and-conditions-page-dictionary-hu': "Dictionary";
|
34
|
+
};
|
@@ -0,0 +1,34 @@
|
|
1
|
+
export const CACHE = {
|
2
|
+
'add-person-page-dictionary-en': 'Dictionary',
|
3
|
+
'add-person-page-dictionary-hu': 'Dictionary',
|
4
|
+
'candle-details-page-dictionary-en': 'Dictionary',
|
5
|
+
'candle-details-page-dictionary-hu': 'Dictionary',
|
6
|
+
'candles-page-data-en': 'CandlesPageData',
|
7
|
+
'candles-page-data-hu': 'CandlesPageData',
|
8
|
+
'candles-page-dictionary-en': 'Dictionary',
|
9
|
+
'candles-page-dictionary-hu': 'Dictionary',
|
10
|
+
'contact-page-dictionary-en': 'Dictionary',
|
11
|
+
'contact-page-dictionary-hu': 'Dictionary',
|
12
|
+
'cookie-policy-page-dictionary-en': 'Dictionary',
|
13
|
+
'cookie-policy-page-dictionary-hu': 'Dictionary',
|
14
|
+
'edit-candle-page-dictionary-en': 'Dictionary',
|
15
|
+
'edit-candle-page-dictionary-hu': 'Dictionary',
|
16
|
+
'edit-person-page-dictionary-en': 'Dictionary',
|
17
|
+
'edit-person-page-dictionary-hu': 'Dictionary',
|
18
|
+
'light-candle-page-dictionary-en': 'Dictionary',
|
19
|
+
'light-candle-page-dictionary-hu': 'Dictionary',
|
20
|
+
'help-page-dictionary-en': 'Dictionary',
|
21
|
+
'help-page-dictionary-hu': 'Dictionary',
|
22
|
+
'home-page-dictionary-en': 'Dictionary',
|
23
|
+
'home-page-dictionary-hu': 'Dictionary',
|
24
|
+
'person-candles-page-dictionary-en': 'Dictionary',
|
25
|
+
'person-candles-page-dictionary-hu': 'Dictionary',
|
26
|
+
'person-details-page-dictionary-en': 'Dictionary',
|
27
|
+
'person-details-page-dictionary-hu': 'Dictionary',
|
28
|
+
'persons-page-dictionary-en': 'Dictionary',
|
29
|
+
'persons-page-dictionary-hu': 'Dictionary',
|
30
|
+
'persons-map-page-dictionary-en': 'Dictionary',
|
31
|
+
'persons-map-page-dictionary-hu': 'Dictionary',
|
32
|
+
'terms-and-conditions-page-dictionary-en': 'Dictionary',
|
33
|
+
'terms-and-conditions-page-dictionary-hu': 'Dictionary',
|
34
|
+
};
|
@@ -1,5 +1,11 @@
|
|
1
1
|
import { Dictionary } from '../../../dictionary/index.js';
|
2
|
-
import {
|
2
|
+
import { CandlesPageData } from '../../page/index.js';
|
3
|
+
import { CACHE } from './config.js';
|
3
4
|
export type Cache = {
|
4
|
-
[key in
|
5
|
+
[key in keyof typeof CACHE]: TypeMap[(typeof CACHE)[key]];
|
5
6
|
};
|
7
|
+
interface TypeMap {
|
8
|
+
CandlesPageData: CandlesPageData;
|
9
|
+
Dictionary: Dictionary;
|
10
|
+
}
|
11
|
+
export {};
|
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
import { CACHE } from '../cache/config.js';
|
2
|
+
export declare const CACHE_KEYS: Array<keyof typeof CACHE>;
|
@@ -1,34 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
'add-person-page-dictionary-hu',
|
4
|
-
'candle-details-page-dictionary-en',
|
5
|
-
'candle-details-page-dictionary-hu',
|
6
|
-
'candles-page-data-en',
|
7
|
-
'candles-page-data-hu',
|
8
|
-
'candles-page-dictionary-en',
|
9
|
-
'candles-page-dictionary-hu',
|
10
|
-
'contact-page-dictionary-en',
|
11
|
-
'contact-page-dictionary-hu',
|
12
|
-
'cookie-policy-page-dictionary-en',
|
13
|
-
'cookie-policy-page-dictionary-hu',
|
14
|
-
'edit-candle-page-dictionary-en',
|
15
|
-
'edit-candle-page-dictionary-hu',
|
16
|
-
'edit-person-page-dictionary-en',
|
17
|
-
'edit-person-page-dictionary-hu',
|
18
|
-
'light-candle-page-dictionary-en',
|
19
|
-
'light-candle-page-dictionary-hu',
|
20
|
-
'help-page-dictionary-en',
|
21
|
-
'help-page-dictionary-hu',
|
22
|
-
'home-page-dictionary-en',
|
23
|
-
'home-page-dictionary-hu',
|
24
|
-
'person-candles-page-dictionary-en',
|
25
|
-
'person-candles-page-dictionary-hu',
|
26
|
-
'person-details-page-dictionary-en',
|
27
|
-
'person-details-page-dictionary-hu',
|
28
|
-
'persons-page-dictionary-en',
|
29
|
-
'persons-page-dictionary-hu',
|
30
|
-
'persons-map-page-dictionary-en',
|
31
|
-
'persons-map-page-dictionary-hu',
|
32
|
-
'terms-and-conditions-page-dictionary-en',
|
33
|
-
'terms-and-conditions-page-dictionary-hu',
|
34
|
-
];
|
1
|
+
import { CACHE } from '../cache/config.js';
|
2
|
+
export const CACHE_KEYS = Object.keys(CACHE);
|
@@ -9,8 +9,8 @@ export declare const CandleDbSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
9
9
|
litName?: string | null | undefined;
|
10
10
|
burningEndsAt?: NativeDate | null | undefined;
|
11
11
|
personId?: mongoose.Types.ObjectId | null | undefined;
|
12
|
-
description?: string | null | undefined;
|
13
12
|
burningMinutes?: number | null | undefined;
|
13
|
+
description?: string | null | undefined;
|
14
14
|
userId?: string | null | undefined;
|
15
15
|
}, mongoose.Document<unknown, {}, mongoose.FlatRecord<{
|
16
16
|
createdAt: NativeDate;
|
@@ -19,8 +19,8 @@ export declare const CandleDbSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
19
19
|
litName?: string | null | undefined;
|
20
20
|
burningEndsAt?: NativeDate | null | undefined;
|
21
21
|
personId?: mongoose.Types.ObjectId | null | undefined;
|
22
|
-
description?: string | null | undefined;
|
23
22
|
burningMinutes?: number | null | undefined;
|
23
|
+
description?: string | null | undefined;
|
24
24
|
userId?: string | null | undefined;
|
25
25
|
}>> & mongoose.FlatRecord<{
|
26
26
|
createdAt: NativeDate;
|
@@ -29,8 +29,8 @@ export declare const CandleDbSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
29
29
|
litName?: string | null | undefined;
|
30
30
|
burningEndsAt?: NativeDate | null | undefined;
|
31
31
|
personId?: mongoose.Types.ObjectId | null | undefined;
|
32
|
-
description?: string | null | undefined;
|
33
32
|
burningMinutes?: number | null | undefined;
|
33
|
+
description?: string | null | undefined;
|
34
34
|
userId?: string | null | undefined;
|
35
35
|
}> & {
|
36
36
|
_id: mongoose.Types.ObjectId;
|
@@ -3,7 +3,7 @@ import { CustomError } from '../../../../../error/index.js';
|
|
3
3
|
import { CandleFilterSort } from '../../../../../filter-sort/index.js';
|
4
4
|
import { CandlesPageData } from '../type.js';
|
5
5
|
export type ComposeCandlesPageData = (props: {
|
6
|
-
filterSort?: CandleFilterSort
|
6
|
+
filterSort?: Partial<CandleFilterSort>;
|
7
7
|
language: Language;
|
8
8
|
}) => Promise<{
|
9
9
|
data: CandlesPageData;
|