@candlerip/shared 0.0.94 → 0.0.96
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/cache/common/cache/domains.d.ts +1 -1
- package/common/page-data/common/header/lang-menu/items/index.d.ts +0 -1
- package/common/page-data/common/header/lang-menu/items/index.js +0 -1
- package/common/page-data/common/utils/compose-common-page-data/index.js +4 -6
- package/common/page-data/common/utils/compose-common-page-data/type.d.ts +1 -2
- package/common/page-data/common/utils/index.d.ts +0 -1
- package/common/page-data/common/utils/index.js +0 -1
- package/database/dictionary/utils/compose-dictionary-from-db/index.d.ts +2 -0
- package/database/dictionary/utils/{compose-dictionary → compose-dictionary-from-db}/index.js +1 -1
- package/database/dictionary/utils/{compose-dictionary → compose-dictionary-from-db}/type.d.ts +1 -1
- package/database/dictionary/utils/index.d.ts +1 -1
- package/database/dictionary/utils/index.js +1 -1
- package/database/model/person/configs/index.d.ts +161 -161
- package/database/page-data/common-page-data/header/index.d.ts +1 -0
- package/database/page-data/common-page-data/header/index.js +1 -0
- package/database/page-data/common-page-data/header/lang-menu/index.d.ts +1 -0
- package/database/page-data/common-page-data/header/lang-menu/index.js +1 -0
- package/database/page-data/common-page-data/header/lang-menu/items/index.d.ts +1 -0
- package/database/page-data/common-page-data/header/lang-menu/items/index.js +1 -0
- package/database/page-data/common-page-data/header/lang-menu/items/utils/fetch-common-page-header-langmenu-items-data-from-db/index.d.ts +2 -0
- package/{common/page-data/common → database/page-data/common-page-data}/header/lang-menu/items/utils/fetch-common-page-header-langmenu-items-data-from-db/index.js +2 -2
- package/database/page-data/common-page-data/header/lang-menu/items/utils/fetch-common-page-header-langmenu-items-data-from-db/type.d.ts +2 -0
- package/database/page-data/common-page-data/index.d.ts +2 -0
- package/database/page-data/common-page-data/index.js +2 -0
- package/database/page-data/common-page-data/utils/fetch-common-page-data-from-db/index.d.ts +2 -0
- package/{common/page-data/common → database/page-data/common-page-data}/utils/fetch-common-page-data-from-db/index.js +3 -3
- package/database/page-data/common-page-data/utils/fetch-common-page-data-from-db/type.d.ts +4 -0
- package/database/page-data/common-page-data/utils/index.d.ts +1 -0
- package/database/page-data/common-page-data/utils/index.js +1 -0
- package/database/page-data/index.d.ts +1 -0
- package/database/page-data/index.js +1 -0
- package/database/server-data/candle-details/utils/compose-candle-details-page-server-data/index.js +2 -2
- package/database/server-data/candles/compose-candles-page-server-data/index.js +2 -2
- package/database/server-data/edit-candle/utils/compose-edit-candle-page-server-data/index.js +2 -2
- package/database/server-data/home/compose-home-page-server-data/index.js +2 -2
- package/database/server-data/light-candle/utils/compose-light-candle-page-server-data/index.js +2 -2
- package/database/server-data/person-candles/utils/compose-person-candles-page-server-data/index.js +2 -2
- package/database/server-data/persons/compose-persons-page-server-data/index.js +2 -2
- package/database/server-data/persons-map/compose-persons-map-page-server-data/index.js +2 -2
- package/package.json +1 -1
- package/common/page-data/common/header/lang-menu/items/utils/fetch-common-page-header-langmenu-items-data-from-db/index.d.ts +0 -2
- package/common/page-data/common/header/lang-menu/items/utils/fetch-common-page-header-langmenu-items-data-from-db/type.d.ts +0 -4
- package/common/page-data/common/utils/fetch-common-page-data-from-db/index.d.ts +0 -2
- package/common/page-data/common/utils/fetch-common-page-data-from-db/type.d.ts +0 -4
- package/database/dictionary/utils/compose-dictionary/index.d.ts +0 -2
- /package/{common/page-data/common/header/lang-menu/items/utils/fetch-common-page-header-langmenu-items-data-from-db → database/dictionary/utils/compose-dictionary-from-db}/type.js +0 -0
- /package/{common/page-data/common/utils/fetch-common-page-data-from-db → database/page-data/common-page-data/header/lang-menu/items/utils/fetch-common-page-header-langmenu-items-data-from-db}/type.js +0 -0
- /package/{common/page-data/common → database/page-data/common-page-data}/header/lang-menu/items/utils/index.d.ts +0 -0
- /package/{common/page-data/common → database/page-data/common-page-data}/header/lang-menu/items/utils/index.js +0 -0
- /package/database/{dictionary/utils/compose-dictionary → page-data/common-page-data/utils/fetch-common-page-data-from-db}/type.js +0 -0
|
@@ -13,6 +13,6 @@ export type Cache = {
|
|
|
13
13
|
} & {
|
|
14
14
|
[key in keyof PageServerDataMap as `${key}-server-data-${Language}`]: PageServerDataMap[key];
|
|
15
15
|
} & {
|
|
16
|
-
[key in CommonPageHeaderLangmenuItemsCacheKey]: CommonPageHeaderLangmenuItemsData;
|
|
16
|
+
[key in CommonPageHeaderLangmenuItemsCacheKey]: CommonPageHeaderLangmenuItemsData[];
|
|
17
17
|
};
|
|
18
18
|
export {};
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
export const composeCommonPageData =
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
items: commonPageDataHeaderLangMenuItems,
|
|
6
|
-
},
|
|
1
|
+
export const composeCommonPageData = ({ commonPageDataHeaderLangMenuItems }) => ({
|
|
2
|
+
header: {
|
|
3
|
+
langMenu: {
|
|
4
|
+
items: commonPageDataHeaderLangMenuItems,
|
|
7
5
|
},
|
|
8
6
|
},
|
|
9
7
|
});
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { TCustomError } from '../../../../custom-error/index.js';
|
|
2
1
|
import { CommonPageData } from '../../domains.js';
|
|
3
2
|
import { CommonPageHeaderLangmenuItemsData } from '../../header/index.js';
|
|
4
3
|
export type ComposeCommonPageData = (props: {
|
|
5
4
|
commonPageDataHeaderLangMenuItems: CommonPageHeaderLangmenuItemsData[];
|
|
6
|
-
}) =>
|
|
5
|
+
}) => CommonPageData;
|
package/database/dictionary/utils/{compose-dictionary → compose-dictionary-from-db}/index.js
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { composeExcludedTranslationCodes, DICTIONARY_CONFIG } from '../../../../common/index.js';
|
|
2
2
|
import { getTranslationsAsDictionaryDb } from '../../../mutation/index.js';
|
|
3
|
-
export const
|
|
3
|
+
export const composeDictionaryFromDb = async (page, language, options) => {
|
|
4
4
|
let translationCodes = [...DICTIONARY_CONFIG[page].translationCodes];
|
|
5
5
|
const excludedCodes = composeExcludedTranslationCodes(page, options?.excludedTranslationCodeOptions);
|
|
6
6
|
translationCodes = translationCodes.filter((it) => !excludedCodes.includes(it));
|
package/database/dictionary/utils/{compose-dictionary → compose-dictionary-from-db}/type.d.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CustomError, Dictionary, ExcludedTranslationCodeOptions, Language, Page } from '../../../../common/index.js';
|
|
2
|
-
export type
|
|
2
|
+
export type ComposeDictionaryFromDb = (page: Page, language: Language, options?: {
|
|
3
3
|
excludedTranslationCodeOptions?: ExcludedTranslationCodeOptions;
|
|
4
4
|
}) => Promise<{
|
|
5
5
|
data: Dictionary;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './compose-dictionary/index.js';
|
|
1
|
+
export * from './compose-dictionary-from-db/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './compose-dictionary/index.js';
|
|
1
|
+
export * from './compose-dictionary-from-db/index.js';
|
|
@@ -4,33 +4,22 @@ export declare const PersonDbSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
4
4
|
}, {
|
|
5
5
|
name?: string | null | undefined;
|
|
6
6
|
createdAt?: NativeDate | null | undefined;
|
|
7
|
-
description?: string | null | undefined;
|
|
8
|
-
userId?: string | null | undefined;
|
|
9
|
-
birth?: {
|
|
10
|
-
date?: string | null | undefined;
|
|
11
|
-
place?: {
|
|
12
|
-
countryCode?: string | null | undefined;
|
|
13
|
-
} | null | undefined;
|
|
14
|
-
} | null | undefined;
|
|
15
|
-
death?: {
|
|
16
|
-
date?: string | null | undefined;
|
|
17
|
-
} | null | undefined;
|
|
18
7
|
images?: mongoose.Types.DocumentArray<{
|
|
19
8
|
name?: string | null | undefined;
|
|
20
9
|
dimensions?: {
|
|
21
10
|
original?: {
|
|
22
|
-
height?: number | null | undefined;
|
|
23
11
|
width?: number | null | undefined;
|
|
12
|
+
height?: number | null | undefined;
|
|
24
13
|
} | null | undefined;
|
|
25
14
|
resized?: mongoose.Types.DocumentArray<{
|
|
26
|
-
height?: number | null | undefined;
|
|
27
15
|
width?: number | null | undefined;
|
|
28
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
29
16
|
height?: number | null | undefined;
|
|
17
|
+
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
30
18
|
width?: number | null | undefined;
|
|
31
|
-
}> & {
|
|
32
19
|
height?: number | null | undefined;
|
|
20
|
+
}> & {
|
|
33
21
|
width?: number | null | undefined;
|
|
22
|
+
height?: number | null | undefined;
|
|
34
23
|
}> | null | undefined;
|
|
35
24
|
} | null | undefined;
|
|
36
25
|
extension?: string | null | undefined;
|
|
@@ -38,18 +27,18 @@ export declare const PersonDbSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
38
27
|
name?: string | null | undefined;
|
|
39
28
|
dimensions?: {
|
|
40
29
|
original?: {
|
|
41
|
-
height?: number | null | undefined;
|
|
42
30
|
width?: number | null | undefined;
|
|
31
|
+
height?: number | null | undefined;
|
|
43
32
|
} | null | undefined;
|
|
44
33
|
resized?: mongoose.Types.DocumentArray<{
|
|
45
|
-
height?: number | null | undefined;
|
|
46
34
|
width?: number | null | undefined;
|
|
47
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
48
35
|
height?: number | null | undefined;
|
|
36
|
+
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
49
37
|
width?: number | null | undefined;
|
|
50
|
-
}> & {
|
|
51
38
|
height?: number | null | undefined;
|
|
39
|
+
}> & {
|
|
52
40
|
width?: number | null | undefined;
|
|
41
|
+
height?: number | null | undefined;
|
|
53
42
|
}> | null | undefined;
|
|
54
43
|
} | null | undefined;
|
|
55
44
|
extension?: string | null | undefined;
|
|
@@ -57,26 +46,22 @@ export declare const PersonDbSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
57
46
|
name?: string | null | undefined;
|
|
58
47
|
dimensions?: {
|
|
59
48
|
original?: {
|
|
60
|
-
height?: number | null | undefined;
|
|
61
49
|
width?: number | null | undefined;
|
|
50
|
+
height?: number | null | undefined;
|
|
62
51
|
} | null | undefined;
|
|
63
52
|
resized?: mongoose.Types.DocumentArray<{
|
|
64
|
-
height?: number | null | undefined;
|
|
65
53
|
width?: number | null | undefined;
|
|
66
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
67
54
|
height?: number | null | undefined;
|
|
55
|
+
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
68
56
|
width?: number | null | undefined;
|
|
69
|
-
}> & {
|
|
70
57
|
height?: number | null | undefined;
|
|
58
|
+
}> & {
|
|
71
59
|
width?: number | null | undefined;
|
|
60
|
+
height?: number | null | undefined;
|
|
72
61
|
}> | null | undefined;
|
|
73
62
|
} | null | undefined;
|
|
74
63
|
extension?: string | null | undefined;
|
|
75
64
|
}> | null | undefined;
|
|
76
|
-
isProposable?: boolean | null | undefined;
|
|
77
|
-
}, mongoose.Document<unknown, {}, {
|
|
78
|
-
name?: string | null | undefined;
|
|
79
|
-
createdAt?: NativeDate | null | undefined;
|
|
80
65
|
description?: string | null | undefined;
|
|
81
66
|
userId?: string | null | undefined;
|
|
82
67
|
birth?: {
|
|
@@ -88,22 +73,26 @@ export declare const PersonDbSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
88
73
|
death?: {
|
|
89
74
|
date?: string | null | undefined;
|
|
90
75
|
} | null | undefined;
|
|
76
|
+
isProposable?: boolean | null | undefined;
|
|
77
|
+
}, mongoose.Document<unknown, {}, {
|
|
78
|
+
name?: string | null | undefined;
|
|
79
|
+
createdAt?: NativeDate | null | undefined;
|
|
91
80
|
images?: mongoose.Types.DocumentArray<{
|
|
92
81
|
name?: string | null | undefined;
|
|
93
82
|
dimensions?: {
|
|
94
83
|
original?: {
|
|
95
|
-
height?: number | null | undefined;
|
|
96
84
|
width?: number | null | undefined;
|
|
85
|
+
height?: number | null | undefined;
|
|
97
86
|
} | null | undefined;
|
|
98
87
|
resized?: mongoose.Types.DocumentArray<{
|
|
99
|
-
height?: number | null | undefined;
|
|
100
88
|
width?: number | null | undefined;
|
|
101
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
102
89
|
height?: number | null | undefined;
|
|
90
|
+
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
103
91
|
width?: number | null | undefined;
|
|
104
|
-
}> & {
|
|
105
92
|
height?: number | null | undefined;
|
|
93
|
+
}> & {
|
|
106
94
|
width?: number | null | undefined;
|
|
95
|
+
height?: number | null | undefined;
|
|
107
96
|
}> | null | undefined;
|
|
108
97
|
} | null | undefined;
|
|
109
98
|
extension?: string | null | undefined;
|
|
@@ -111,18 +100,18 @@ export declare const PersonDbSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
111
100
|
name?: string | null | undefined;
|
|
112
101
|
dimensions?: {
|
|
113
102
|
original?: {
|
|
114
|
-
height?: number | null | undefined;
|
|
115
103
|
width?: number | null | undefined;
|
|
104
|
+
height?: number | null | undefined;
|
|
116
105
|
} | null | undefined;
|
|
117
106
|
resized?: mongoose.Types.DocumentArray<{
|
|
118
|
-
height?: number | null | undefined;
|
|
119
107
|
width?: number | null | undefined;
|
|
120
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
121
108
|
height?: number | null | undefined;
|
|
109
|
+
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
122
110
|
width?: number | null | undefined;
|
|
123
|
-
}> & {
|
|
124
111
|
height?: number | null | undefined;
|
|
112
|
+
}> & {
|
|
125
113
|
width?: number | null | undefined;
|
|
114
|
+
height?: number | null | undefined;
|
|
126
115
|
}> | null | undefined;
|
|
127
116
|
} | null | undefined;
|
|
128
117
|
extension?: string | null | undefined;
|
|
@@ -130,30 +119,22 @@ export declare const PersonDbSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
130
119
|
name?: string | null | undefined;
|
|
131
120
|
dimensions?: {
|
|
132
121
|
original?: {
|
|
133
|
-
height?: number | null | undefined;
|
|
134
122
|
width?: number | null | undefined;
|
|
123
|
+
height?: number | null | undefined;
|
|
135
124
|
} | null | undefined;
|
|
136
125
|
resized?: mongoose.Types.DocumentArray<{
|
|
137
|
-
height?: number | null | undefined;
|
|
138
126
|
width?: number | null | undefined;
|
|
139
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
140
127
|
height?: number | null | undefined;
|
|
128
|
+
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
141
129
|
width?: number | null | undefined;
|
|
142
|
-
}> & {
|
|
143
130
|
height?: number | null | undefined;
|
|
131
|
+
}> & {
|
|
144
132
|
width?: number | null | undefined;
|
|
133
|
+
height?: number | null | undefined;
|
|
145
134
|
}> | null | undefined;
|
|
146
135
|
} | null | undefined;
|
|
147
136
|
extension?: string | null | undefined;
|
|
148
137
|
}> | null | undefined;
|
|
149
|
-
isProposable?: boolean | null | undefined;
|
|
150
|
-
}, {
|
|
151
|
-
id: string;
|
|
152
|
-
}, mongoose.ResolveSchemaOptions<{
|
|
153
|
-
versionKey: false;
|
|
154
|
-
}>> & Omit<{
|
|
155
|
-
name?: string | null | undefined;
|
|
156
|
-
createdAt?: NativeDate | null | undefined;
|
|
157
138
|
description?: string | null | undefined;
|
|
158
139
|
userId?: string | null | undefined;
|
|
159
140
|
birth?: {
|
|
@@ -165,22 +146,30 @@ export declare const PersonDbSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
165
146
|
death?: {
|
|
166
147
|
date?: string | null | undefined;
|
|
167
148
|
} | null | undefined;
|
|
149
|
+
isProposable?: boolean | null | undefined;
|
|
150
|
+
}, {
|
|
151
|
+
id: string;
|
|
152
|
+
}, mongoose.ResolveSchemaOptions<{
|
|
153
|
+
versionKey: false;
|
|
154
|
+
}>> & Omit<{
|
|
155
|
+
name?: string | null | undefined;
|
|
156
|
+
createdAt?: NativeDate | null | undefined;
|
|
168
157
|
images?: mongoose.Types.DocumentArray<{
|
|
169
158
|
name?: string | null | undefined;
|
|
170
159
|
dimensions?: {
|
|
171
160
|
original?: {
|
|
172
|
-
height?: number | null | undefined;
|
|
173
161
|
width?: number | null | undefined;
|
|
162
|
+
height?: number | null | undefined;
|
|
174
163
|
} | null | undefined;
|
|
175
164
|
resized?: mongoose.Types.DocumentArray<{
|
|
176
|
-
height?: number | null | undefined;
|
|
177
165
|
width?: number | null | undefined;
|
|
178
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
179
166
|
height?: number | null | undefined;
|
|
167
|
+
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
180
168
|
width?: number | null | undefined;
|
|
181
|
-
}> & {
|
|
182
169
|
height?: number | null | undefined;
|
|
170
|
+
}> & {
|
|
183
171
|
width?: number | null | undefined;
|
|
172
|
+
height?: number | null | undefined;
|
|
184
173
|
}> | null | undefined;
|
|
185
174
|
} | null | undefined;
|
|
186
175
|
extension?: string | null | undefined;
|
|
@@ -188,18 +177,18 @@ export declare const PersonDbSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
188
177
|
name?: string | null | undefined;
|
|
189
178
|
dimensions?: {
|
|
190
179
|
original?: {
|
|
191
|
-
height?: number | null | undefined;
|
|
192
180
|
width?: number | null | undefined;
|
|
181
|
+
height?: number | null | undefined;
|
|
193
182
|
} | null | undefined;
|
|
194
183
|
resized?: mongoose.Types.DocumentArray<{
|
|
195
|
-
height?: number | null | undefined;
|
|
196
184
|
width?: number | null | undefined;
|
|
197
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
198
185
|
height?: number | null | undefined;
|
|
186
|
+
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
199
187
|
width?: number | null | undefined;
|
|
200
|
-
}> & {
|
|
201
188
|
height?: number | null | undefined;
|
|
189
|
+
}> & {
|
|
202
190
|
width?: number | null | undefined;
|
|
191
|
+
height?: number | null | undefined;
|
|
203
192
|
}> | null | undefined;
|
|
204
193
|
} | null | undefined;
|
|
205
194
|
extension?: string | null | undefined;
|
|
@@ -207,22 +196,33 @@ export declare const PersonDbSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
207
196
|
name?: string | null | undefined;
|
|
208
197
|
dimensions?: {
|
|
209
198
|
original?: {
|
|
210
|
-
height?: number | null | undefined;
|
|
211
199
|
width?: number | null | undefined;
|
|
200
|
+
height?: number | null | undefined;
|
|
212
201
|
} | null | undefined;
|
|
213
202
|
resized?: mongoose.Types.DocumentArray<{
|
|
214
|
-
height?: number | null | undefined;
|
|
215
203
|
width?: number | null | undefined;
|
|
216
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
217
204
|
height?: number | null | undefined;
|
|
205
|
+
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
218
206
|
width?: number | null | undefined;
|
|
219
|
-
}> & {
|
|
220
207
|
height?: number | null | undefined;
|
|
208
|
+
}> & {
|
|
221
209
|
width?: number | null | undefined;
|
|
210
|
+
height?: number | null | undefined;
|
|
222
211
|
}> | null | undefined;
|
|
223
212
|
} | null | undefined;
|
|
224
213
|
extension?: string | null | undefined;
|
|
225
214
|
}> | null | undefined;
|
|
215
|
+
description?: string | null | undefined;
|
|
216
|
+
userId?: string | null | undefined;
|
|
217
|
+
birth?: {
|
|
218
|
+
date?: string | null | undefined;
|
|
219
|
+
place?: {
|
|
220
|
+
countryCode?: string | null | undefined;
|
|
221
|
+
} | null | undefined;
|
|
222
|
+
} | null | undefined;
|
|
223
|
+
death?: {
|
|
224
|
+
date?: string | null | undefined;
|
|
225
|
+
} | null | undefined;
|
|
226
226
|
isProposable?: boolean | null | undefined;
|
|
227
227
|
} & {
|
|
228
228
|
_id: mongoose.Types.ObjectId;
|
|
@@ -234,33 +234,22 @@ export declare const PersonDbSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
234
234
|
[x: string]: mongoose.SchemaDefinitionProperty<any, any, mongoose.Document<unknown, {}, {
|
|
235
235
|
name?: string | null | undefined;
|
|
236
236
|
createdAt?: NativeDate | null | undefined;
|
|
237
|
-
description?: string | null | undefined;
|
|
238
|
-
userId?: string | null | undefined;
|
|
239
|
-
birth?: {
|
|
240
|
-
date?: string | null | undefined;
|
|
241
|
-
place?: {
|
|
242
|
-
countryCode?: string | null | undefined;
|
|
243
|
-
} | null | undefined;
|
|
244
|
-
} | null | undefined;
|
|
245
|
-
death?: {
|
|
246
|
-
date?: string | null | undefined;
|
|
247
|
-
} | null | undefined;
|
|
248
237
|
images?: mongoose.Types.DocumentArray<{
|
|
249
238
|
name?: string | null | undefined;
|
|
250
239
|
dimensions?: {
|
|
251
240
|
original?: {
|
|
252
|
-
height?: number | null | undefined;
|
|
253
241
|
width?: number | null | undefined;
|
|
242
|
+
height?: number | null | undefined;
|
|
254
243
|
} | null | undefined;
|
|
255
244
|
resized?: mongoose.Types.DocumentArray<{
|
|
256
|
-
height?: number | null | undefined;
|
|
257
245
|
width?: number | null | undefined;
|
|
258
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
259
246
|
height?: number | null | undefined;
|
|
247
|
+
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
260
248
|
width?: number | null | undefined;
|
|
261
|
-
}> & {
|
|
262
249
|
height?: number | null | undefined;
|
|
250
|
+
}> & {
|
|
263
251
|
width?: number | null | undefined;
|
|
252
|
+
height?: number | null | undefined;
|
|
264
253
|
}> | null | undefined;
|
|
265
254
|
} | null | undefined;
|
|
266
255
|
extension?: string | null | undefined;
|
|
@@ -268,18 +257,18 @@ export declare const PersonDbSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
268
257
|
name?: string | null | undefined;
|
|
269
258
|
dimensions?: {
|
|
270
259
|
original?: {
|
|
271
|
-
height?: number | null | undefined;
|
|
272
260
|
width?: number | null | undefined;
|
|
261
|
+
height?: number | null | undefined;
|
|
273
262
|
} | null | undefined;
|
|
274
263
|
resized?: mongoose.Types.DocumentArray<{
|
|
275
|
-
height?: number | null | undefined;
|
|
276
264
|
width?: number | null | undefined;
|
|
277
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
278
265
|
height?: number | null | undefined;
|
|
266
|
+
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
279
267
|
width?: number | null | undefined;
|
|
280
|
-
}> & {
|
|
281
268
|
height?: number | null | undefined;
|
|
269
|
+
}> & {
|
|
282
270
|
width?: number | null | undefined;
|
|
271
|
+
height?: number | null | undefined;
|
|
283
272
|
}> | null | undefined;
|
|
284
273
|
} | null | undefined;
|
|
285
274
|
extension?: string | null | undefined;
|
|
@@ -287,30 +276,22 @@ export declare const PersonDbSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
287
276
|
name?: string | null | undefined;
|
|
288
277
|
dimensions?: {
|
|
289
278
|
original?: {
|
|
290
|
-
height?: number | null | undefined;
|
|
291
279
|
width?: number | null | undefined;
|
|
280
|
+
height?: number | null | undefined;
|
|
292
281
|
} | null | undefined;
|
|
293
282
|
resized?: mongoose.Types.DocumentArray<{
|
|
294
|
-
height?: number | null | undefined;
|
|
295
283
|
width?: number | null | undefined;
|
|
296
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
297
284
|
height?: number | null | undefined;
|
|
285
|
+
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
298
286
|
width?: number | null | undefined;
|
|
299
|
-
}> & {
|
|
300
287
|
height?: number | null | undefined;
|
|
288
|
+
}> & {
|
|
301
289
|
width?: number | null | undefined;
|
|
290
|
+
height?: number | null | undefined;
|
|
302
291
|
}> | null | undefined;
|
|
303
292
|
} | null | undefined;
|
|
304
293
|
extension?: string | null | undefined;
|
|
305
294
|
}> | null | undefined;
|
|
306
|
-
isProposable?: boolean | null | undefined;
|
|
307
|
-
}, {
|
|
308
|
-
id: string;
|
|
309
|
-
}, mongoose.ResolveSchemaOptions<{
|
|
310
|
-
versionKey: false;
|
|
311
|
-
}>> & Omit<{
|
|
312
|
-
name?: string | null | undefined;
|
|
313
|
-
createdAt?: NativeDate | null | undefined;
|
|
314
295
|
description?: string | null | undefined;
|
|
315
296
|
userId?: string | null | undefined;
|
|
316
297
|
birth?: {
|
|
@@ -322,22 +303,30 @@ export declare const PersonDbSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
322
303
|
death?: {
|
|
323
304
|
date?: string | null | undefined;
|
|
324
305
|
} | null | undefined;
|
|
306
|
+
isProposable?: boolean | null | undefined;
|
|
307
|
+
}, {
|
|
308
|
+
id: string;
|
|
309
|
+
}, mongoose.ResolveSchemaOptions<{
|
|
310
|
+
versionKey: false;
|
|
311
|
+
}>> & Omit<{
|
|
312
|
+
name?: string | null | undefined;
|
|
313
|
+
createdAt?: NativeDate | null | undefined;
|
|
325
314
|
images?: mongoose.Types.DocumentArray<{
|
|
326
315
|
name?: string | null | undefined;
|
|
327
316
|
dimensions?: {
|
|
328
317
|
original?: {
|
|
329
|
-
height?: number | null | undefined;
|
|
330
318
|
width?: number | null | undefined;
|
|
319
|
+
height?: number | null | undefined;
|
|
331
320
|
} | null | undefined;
|
|
332
321
|
resized?: mongoose.Types.DocumentArray<{
|
|
333
|
-
height?: number | null | undefined;
|
|
334
322
|
width?: number | null | undefined;
|
|
335
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
336
323
|
height?: number | null | undefined;
|
|
324
|
+
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
337
325
|
width?: number | null | undefined;
|
|
338
|
-
}> & {
|
|
339
326
|
height?: number | null | undefined;
|
|
327
|
+
}> & {
|
|
340
328
|
width?: number | null | undefined;
|
|
329
|
+
height?: number | null | undefined;
|
|
341
330
|
}> | null | undefined;
|
|
342
331
|
} | null | undefined;
|
|
343
332
|
extension?: string | null | undefined;
|
|
@@ -345,18 +334,18 @@ export declare const PersonDbSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
345
334
|
name?: string | null | undefined;
|
|
346
335
|
dimensions?: {
|
|
347
336
|
original?: {
|
|
348
|
-
height?: number | null | undefined;
|
|
349
337
|
width?: number | null | undefined;
|
|
338
|
+
height?: number | null | undefined;
|
|
350
339
|
} | null | undefined;
|
|
351
340
|
resized?: mongoose.Types.DocumentArray<{
|
|
352
|
-
height?: number | null | undefined;
|
|
353
341
|
width?: number | null | undefined;
|
|
354
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
355
342
|
height?: number | null | undefined;
|
|
343
|
+
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
356
344
|
width?: number | null | undefined;
|
|
357
|
-
}> & {
|
|
358
345
|
height?: number | null | undefined;
|
|
346
|
+
}> & {
|
|
359
347
|
width?: number | null | undefined;
|
|
348
|
+
height?: number | null | undefined;
|
|
360
349
|
}> | null | undefined;
|
|
361
350
|
} | null | undefined;
|
|
362
351
|
extension?: string | null | undefined;
|
|
@@ -364,22 +353,33 @@ export declare const PersonDbSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
364
353
|
name?: string | null | undefined;
|
|
365
354
|
dimensions?: {
|
|
366
355
|
original?: {
|
|
367
|
-
height?: number | null | undefined;
|
|
368
356
|
width?: number | null | undefined;
|
|
357
|
+
height?: number | null | undefined;
|
|
369
358
|
} | null | undefined;
|
|
370
359
|
resized?: mongoose.Types.DocumentArray<{
|
|
371
|
-
height?: number | null | undefined;
|
|
372
360
|
width?: number | null | undefined;
|
|
373
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
374
361
|
height?: number | null | undefined;
|
|
362
|
+
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
375
363
|
width?: number | null | undefined;
|
|
376
|
-
}> & {
|
|
377
364
|
height?: number | null | undefined;
|
|
365
|
+
}> & {
|
|
378
366
|
width?: number | null | undefined;
|
|
367
|
+
height?: number | null | undefined;
|
|
379
368
|
}> | null | undefined;
|
|
380
369
|
} | null | undefined;
|
|
381
370
|
extension?: string | null | undefined;
|
|
382
371
|
}> | null | undefined;
|
|
372
|
+
description?: string | null | undefined;
|
|
373
|
+
userId?: string | null | undefined;
|
|
374
|
+
birth?: {
|
|
375
|
+
date?: string | null | undefined;
|
|
376
|
+
place?: {
|
|
377
|
+
countryCode?: string | null | undefined;
|
|
378
|
+
} | null | undefined;
|
|
379
|
+
} | null | undefined;
|
|
380
|
+
death?: {
|
|
381
|
+
date?: string | null | undefined;
|
|
382
|
+
} | null | undefined;
|
|
383
383
|
isProposable?: boolean | null | undefined;
|
|
384
384
|
} & {
|
|
385
385
|
_id: mongoose.Types.ObjectId;
|
|
@@ -389,33 +389,22 @@ export declare const PersonDbSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
389
389
|
}, {
|
|
390
390
|
name?: string | null | undefined;
|
|
391
391
|
createdAt?: NativeDate | null | undefined;
|
|
392
|
-
description?: string | null | undefined;
|
|
393
|
-
userId?: string | null | undefined;
|
|
394
|
-
birth?: {
|
|
395
|
-
date?: string | null | undefined;
|
|
396
|
-
place?: {
|
|
397
|
-
countryCode?: string | null | undefined;
|
|
398
|
-
} | null | undefined;
|
|
399
|
-
} | null | undefined;
|
|
400
|
-
death?: {
|
|
401
|
-
date?: string | null | undefined;
|
|
402
|
-
} | null | undefined;
|
|
403
392
|
images?: mongoose.Types.DocumentArray<{
|
|
404
393
|
name?: string | null | undefined;
|
|
405
394
|
dimensions?: {
|
|
406
395
|
original?: {
|
|
407
|
-
height?: number | null | undefined;
|
|
408
396
|
width?: number | null | undefined;
|
|
397
|
+
height?: number | null | undefined;
|
|
409
398
|
} | null | undefined;
|
|
410
399
|
resized?: mongoose.Types.DocumentArray<{
|
|
411
|
-
height?: number | null | undefined;
|
|
412
400
|
width?: number | null | undefined;
|
|
413
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
414
401
|
height?: number | null | undefined;
|
|
402
|
+
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
415
403
|
width?: number | null | undefined;
|
|
416
|
-
}> & {
|
|
417
404
|
height?: number | null | undefined;
|
|
405
|
+
}> & {
|
|
418
406
|
width?: number | null | undefined;
|
|
407
|
+
height?: number | null | undefined;
|
|
419
408
|
}> | null | undefined;
|
|
420
409
|
} | null | undefined;
|
|
421
410
|
extension?: string | null | undefined;
|
|
@@ -423,26 +412,26 @@ export declare const PersonDbSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
423
412
|
name?: string | null | undefined;
|
|
424
413
|
dimensions?: {
|
|
425
414
|
original?: {
|
|
426
|
-
height?: number | null | undefined;
|
|
427
415
|
width?: number | null | undefined;
|
|
416
|
+
height?: number | null | undefined;
|
|
428
417
|
} | null | undefined;
|
|
429
418
|
resized?: mongoose.Types.DocumentArray<string | {
|
|
430
|
-
height?: number | null | undefined;
|
|
431
419
|
width?: number | null | undefined;
|
|
420
|
+
height?: number | null | undefined;
|
|
432
421
|
} | {
|
|
433
422
|
_id: mongoose.Types.ObjectId;
|
|
434
423
|
} | {
|
|
435
424
|
_id: string;
|
|
436
425
|
}, mongoose.Types.Subdocument<string | mongoose.Types.ObjectId | mongoose.mongo.BSON.ObjectId, unknown, string | {
|
|
437
|
-
height?: number | null | undefined;
|
|
438
426
|
width?: number | null | undefined;
|
|
427
|
+
height?: number | null | undefined;
|
|
439
428
|
} | {
|
|
440
429
|
_id: mongoose.Types.ObjectId;
|
|
441
430
|
} | {
|
|
442
431
|
_id: string;
|
|
443
432
|
}> & (string | {
|
|
444
|
-
height?: number | null | undefined;
|
|
445
433
|
width?: number | null | undefined;
|
|
434
|
+
height?: number | null | undefined;
|
|
446
435
|
} | {
|
|
447
436
|
_id: mongoose.Types.ObjectId;
|
|
448
437
|
} | {
|
|
@@ -455,22 +444,22 @@ export declare const PersonDbSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
455
444
|
name?: string | null | undefined;
|
|
456
445
|
dimensions?: {
|
|
457
446
|
original?: {
|
|
458
|
-
height?: number | null | undefined;
|
|
459
447
|
width?: number | null | undefined;
|
|
448
|
+
height?: number | null | undefined;
|
|
460
449
|
} | null | undefined;
|
|
461
450
|
resized?: mongoose.Types.DocumentArray<string | {
|
|
462
|
-
height?: number | null | undefined;
|
|
463
451
|
width?: number | null | undefined;
|
|
452
|
+
height?: number | null | undefined;
|
|
464
453
|
} | {
|
|
465
454
|
_id: mongoose.Types.ObjectId;
|
|
466
455
|
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId | mongoose.mongo.BSON.ObjectId, unknown, string | {
|
|
467
|
-
height?: number | null | undefined;
|
|
468
456
|
width?: number | null | undefined;
|
|
457
|
+
height?: number | null | undefined;
|
|
469
458
|
} | {
|
|
470
459
|
_id: mongoose.Types.ObjectId;
|
|
471
460
|
}> & (string | {
|
|
472
|
-
height?: number | null | undefined;
|
|
473
461
|
width?: number | null | undefined;
|
|
462
|
+
height?: number | null | undefined;
|
|
474
463
|
} | {
|
|
475
464
|
_id: mongoose.Types.ObjectId;
|
|
476
465
|
})> | null | undefined;
|
|
@@ -481,26 +470,26 @@ export declare const PersonDbSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
481
470
|
name?: string | null | undefined;
|
|
482
471
|
dimensions?: {
|
|
483
472
|
original?: {
|
|
484
|
-
height?: number | null | undefined;
|
|
485
473
|
width?: number | null | undefined;
|
|
474
|
+
height?: number | null | undefined;
|
|
486
475
|
} | null | undefined;
|
|
487
476
|
resized?: mongoose.Types.DocumentArray<string | {
|
|
488
|
-
height?: number | null | undefined;
|
|
489
477
|
width?: number | null | undefined;
|
|
478
|
+
height?: number | null | undefined;
|
|
490
479
|
} | {
|
|
491
480
|
_id: mongoose.Types.ObjectId;
|
|
492
481
|
} | {
|
|
493
482
|
_id: string;
|
|
494
483
|
}, mongoose.Types.Subdocument<string | mongoose.Types.ObjectId | mongoose.mongo.BSON.ObjectId, unknown, string | {
|
|
495
|
-
height?: number | null | undefined;
|
|
496
484
|
width?: number | null | undefined;
|
|
485
|
+
height?: number | null | undefined;
|
|
497
486
|
} | {
|
|
498
487
|
_id: mongoose.Types.ObjectId;
|
|
499
488
|
} | {
|
|
500
489
|
_id: string;
|
|
501
490
|
}> & (string | {
|
|
502
|
-
height?: number | null | undefined;
|
|
503
491
|
width?: number | null | undefined;
|
|
492
|
+
height?: number | null | undefined;
|
|
504
493
|
} | {
|
|
505
494
|
_id: mongoose.Types.ObjectId;
|
|
506
495
|
} | {
|
|
@@ -513,18 +502,18 @@ export declare const PersonDbSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
513
502
|
name?: string | null | undefined;
|
|
514
503
|
dimensions?: {
|
|
515
504
|
original?: {
|
|
516
|
-
height?: number | null | undefined;
|
|
517
505
|
width?: number | null | undefined;
|
|
506
|
+
height?: number | null | undefined;
|
|
518
507
|
} | null | undefined;
|
|
519
508
|
resized?: mongoose.Types.DocumentArray<{
|
|
520
|
-
height?: number | null | undefined;
|
|
521
509
|
width?: number | null | undefined;
|
|
522
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
523
510
|
height?: number | null | undefined;
|
|
511
|
+
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
524
512
|
width?: number | null | undefined;
|
|
525
|
-
}> & {
|
|
526
513
|
height?: number | null | undefined;
|
|
514
|
+
}> & {
|
|
527
515
|
width?: number | null | undefined;
|
|
516
|
+
height?: number | null | undefined;
|
|
528
517
|
}> | null | undefined;
|
|
529
518
|
} | null | undefined;
|
|
530
519
|
extension?: string | null | undefined;
|
|
@@ -532,26 +521,26 @@ export declare const PersonDbSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
532
521
|
name?: string | null | undefined;
|
|
533
522
|
dimensions?: {
|
|
534
523
|
original?: {
|
|
535
|
-
height?: number | null | undefined;
|
|
536
524
|
width?: number | null | undefined;
|
|
525
|
+
height?: number | null | undefined;
|
|
537
526
|
} | null | undefined;
|
|
538
527
|
resized?: mongoose.Types.DocumentArray<string | {
|
|
539
|
-
height?: number | null | undefined;
|
|
540
528
|
width?: number | null | undefined;
|
|
529
|
+
height?: number | null | undefined;
|
|
541
530
|
} | {
|
|
542
531
|
_id: mongoose.Types.ObjectId;
|
|
543
532
|
} | {
|
|
544
533
|
_id: string;
|
|
545
534
|
}, mongoose.Types.Subdocument<string | mongoose.Types.ObjectId | mongoose.mongo.BSON.ObjectId, unknown, string | {
|
|
546
|
-
height?: number | null | undefined;
|
|
547
535
|
width?: number | null | undefined;
|
|
536
|
+
height?: number | null | undefined;
|
|
548
537
|
} | {
|
|
549
538
|
_id: mongoose.Types.ObjectId;
|
|
550
539
|
} | {
|
|
551
540
|
_id: string;
|
|
552
541
|
}> & (string | {
|
|
553
|
-
height?: number | null | undefined;
|
|
554
542
|
width?: number | null | undefined;
|
|
543
|
+
height?: number | null | undefined;
|
|
555
544
|
} | {
|
|
556
545
|
_id: mongoose.Types.ObjectId;
|
|
557
546
|
} | {
|
|
@@ -564,22 +553,22 @@ export declare const PersonDbSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
564
553
|
name?: string | null | undefined;
|
|
565
554
|
dimensions?: {
|
|
566
555
|
original?: {
|
|
567
|
-
height?: number | null | undefined;
|
|
568
556
|
width?: number | null | undefined;
|
|
557
|
+
height?: number | null | undefined;
|
|
569
558
|
} | null | undefined;
|
|
570
559
|
resized?: mongoose.Types.DocumentArray<string | {
|
|
571
|
-
height?: number | null | undefined;
|
|
572
560
|
width?: number | null | undefined;
|
|
561
|
+
height?: number | null | undefined;
|
|
573
562
|
} | {
|
|
574
563
|
_id: mongoose.Types.ObjectId;
|
|
575
564
|
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId | mongoose.mongo.BSON.ObjectId, unknown, string | {
|
|
576
|
-
height?: number | null | undefined;
|
|
577
565
|
width?: number | null | undefined;
|
|
566
|
+
height?: number | null | undefined;
|
|
578
567
|
} | {
|
|
579
568
|
_id: mongoose.Types.ObjectId;
|
|
580
569
|
}> & (string | {
|
|
581
|
-
height?: number | null | undefined;
|
|
582
570
|
width?: number | null | undefined;
|
|
571
|
+
height?: number | null | undefined;
|
|
583
572
|
} | {
|
|
584
573
|
_id: mongoose.Types.ObjectId;
|
|
585
574
|
})> | null | undefined;
|
|
@@ -590,26 +579,26 @@ export declare const PersonDbSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
590
579
|
name?: string | null | undefined;
|
|
591
580
|
dimensions?: {
|
|
592
581
|
original?: {
|
|
593
|
-
height?: number | null | undefined;
|
|
594
582
|
width?: number | null | undefined;
|
|
583
|
+
height?: number | null | undefined;
|
|
595
584
|
} | null | undefined;
|
|
596
585
|
resized?: mongoose.Types.DocumentArray<string | {
|
|
597
|
-
height?: number | null | undefined;
|
|
598
586
|
width?: number | null | undefined;
|
|
587
|
+
height?: number | null | undefined;
|
|
599
588
|
} | {
|
|
600
589
|
_id: mongoose.Types.ObjectId;
|
|
601
590
|
} | {
|
|
602
591
|
_id: string;
|
|
603
592
|
}, mongoose.Types.Subdocument<string | mongoose.Types.ObjectId | mongoose.mongo.BSON.ObjectId, unknown, string | {
|
|
604
|
-
height?: number | null | undefined;
|
|
605
593
|
width?: number | null | undefined;
|
|
594
|
+
height?: number | null | undefined;
|
|
606
595
|
} | {
|
|
607
596
|
_id: mongoose.Types.ObjectId;
|
|
608
597
|
} | {
|
|
609
598
|
_id: string;
|
|
610
599
|
}> & (string | {
|
|
611
|
-
height?: number | null | undefined;
|
|
612
600
|
width?: number | null | undefined;
|
|
601
|
+
height?: number | null | undefined;
|
|
613
602
|
} | {
|
|
614
603
|
_id: mongoose.Types.ObjectId;
|
|
615
604
|
} | {
|
|
@@ -622,18 +611,18 @@ export declare const PersonDbSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
622
611
|
name?: string | null | undefined;
|
|
623
612
|
dimensions?: {
|
|
624
613
|
original?: {
|
|
625
|
-
height?: number | null | undefined;
|
|
626
614
|
width?: number | null | undefined;
|
|
615
|
+
height?: number | null | undefined;
|
|
627
616
|
} | null | undefined;
|
|
628
617
|
resized?: mongoose.Types.DocumentArray<{
|
|
629
|
-
height?: number | null | undefined;
|
|
630
618
|
width?: number | null | undefined;
|
|
631
|
-
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
632
619
|
height?: number | null | undefined;
|
|
620
|
+
}, mongoose.Types.Subdocument<mongoose.mongo.BSON.ObjectId, unknown, {
|
|
633
621
|
width?: number | null | undefined;
|
|
634
|
-
}> & {
|
|
635
622
|
height?: number | null | undefined;
|
|
623
|
+
}> & {
|
|
636
624
|
width?: number | null | undefined;
|
|
625
|
+
height?: number | null | undefined;
|
|
637
626
|
}> | null | undefined;
|
|
638
627
|
} | null | undefined;
|
|
639
628
|
extension?: string | null | undefined;
|
|
@@ -641,26 +630,26 @@ export declare const PersonDbSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
641
630
|
name?: string | null | undefined;
|
|
642
631
|
dimensions?: {
|
|
643
632
|
original?: {
|
|
644
|
-
height?: number | null | undefined;
|
|
645
633
|
width?: number | null | undefined;
|
|
634
|
+
height?: number | null | undefined;
|
|
646
635
|
} | null | undefined;
|
|
647
636
|
resized?: mongoose.Types.DocumentArray<string | {
|
|
648
|
-
height?: number | null | undefined;
|
|
649
637
|
width?: number | null | undefined;
|
|
638
|
+
height?: number | null | undefined;
|
|
650
639
|
} | {
|
|
651
640
|
_id: mongoose.Types.ObjectId;
|
|
652
641
|
} | {
|
|
653
642
|
_id: string;
|
|
654
643
|
}, mongoose.Types.Subdocument<string | mongoose.Types.ObjectId | mongoose.mongo.BSON.ObjectId, unknown, string | {
|
|
655
|
-
height?: number | null | undefined;
|
|
656
644
|
width?: number | null | undefined;
|
|
645
|
+
height?: number | null | undefined;
|
|
657
646
|
} | {
|
|
658
647
|
_id: mongoose.Types.ObjectId;
|
|
659
648
|
} | {
|
|
660
649
|
_id: string;
|
|
661
650
|
}> & (string | {
|
|
662
|
-
height?: number | null | undefined;
|
|
663
651
|
width?: number | null | undefined;
|
|
652
|
+
height?: number | null | undefined;
|
|
664
653
|
} | {
|
|
665
654
|
_id: mongoose.Types.ObjectId;
|
|
666
655
|
} | {
|
|
@@ -673,22 +662,22 @@ export declare const PersonDbSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
673
662
|
name?: string | null | undefined;
|
|
674
663
|
dimensions?: {
|
|
675
664
|
original?: {
|
|
676
|
-
height?: number | null | undefined;
|
|
677
665
|
width?: number | null | undefined;
|
|
666
|
+
height?: number | null | undefined;
|
|
678
667
|
} | null | undefined;
|
|
679
668
|
resized?: mongoose.Types.DocumentArray<string | {
|
|
680
|
-
height?: number | null | undefined;
|
|
681
669
|
width?: number | null | undefined;
|
|
670
|
+
height?: number | null | undefined;
|
|
682
671
|
} | {
|
|
683
672
|
_id: mongoose.Types.ObjectId;
|
|
684
673
|
}, mongoose.Types.Subdocument<mongoose.Types.ObjectId | mongoose.mongo.BSON.ObjectId, unknown, string | {
|
|
685
|
-
height?: number | null | undefined;
|
|
686
674
|
width?: number | null | undefined;
|
|
675
|
+
height?: number | null | undefined;
|
|
687
676
|
} | {
|
|
688
677
|
_id: mongoose.Types.ObjectId;
|
|
689
678
|
}> & (string | {
|
|
690
|
-
height?: number | null | undefined;
|
|
691
679
|
width?: number | null | undefined;
|
|
680
|
+
height?: number | null | undefined;
|
|
692
681
|
} | {
|
|
693
682
|
_id: mongoose.Types.ObjectId;
|
|
694
683
|
})> | null | undefined;
|
|
@@ -699,26 +688,26 @@ export declare const PersonDbSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
699
688
|
name?: string | null | undefined;
|
|
700
689
|
dimensions?: {
|
|
701
690
|
original?: {
|
|
702
|
-
height?: number | null | undefined;
|
|
703
691
|
width?: number | null | undefined;
|
|
692
|
+
height?: number | null | undefined;
|
|
704
693
|
} | null | undefined;
|
|
705
694
|
resized?: mongoose.Types.DocumentArray<string | {
|
|
706
|
-
height?: number | null | undefined;
|
|
707
695
|
width?: number | null | undefined;
|
|
696
|
+
height?: number | null | undefined;
|
|
708
697
|
} | {
|
|
709
698
|
_id: mongoose.Types.ObjectId;
|
|
710
699
|
} | {
|
|
711
700
|
_id: string;
|
|
712
701
|
}, mongoose.Types.Subdocument<string | mongoose.Types.ObjectId | mongoose.mongo.BSON.ObjectId, unknown, string | {
|
|
713
|
-
height?: number | null | undefined;
|
|
714
702
|
width?: number | null | undefined;
|
|
703
|
+
height?: number | null | undefined;
|
|
715
704
|
} | {
|
|
716
705
|
_id: mongoose.Types.ObjectId;
|
|
717
706
|
} | {
|
|
718
707
|
_id: string;
|
|
719
708
|
}> & (string | {
|
|
720
|
-
height?: number | null | undefined;
|
|
721
709
|
width?: number | null | undefined;
|
|
710
|
+
height?: number | null | undefined;
|
|
722
711
|
} | {
|
|
723
712
|
_id: mongoose.Types.ObjectId;
|
|
724
713
|
} | {
|
|
@@ -728,6 +717,17 @@ export declare const PersonDbSchema: mongoose.Schema<any, mongoose.Model<any, an
|
|
|
728
717
|
extension?: string | null | undefined;
|
|
729
718
|
_id: string;
|
|
730
719
|
})> | null | undefined;
|
|
720
|
+
description?: string | null | undefined;
|
|
721
|
+
userId?: string | null | undefined;
|
|
722
|
+
birth?: {
|
|
723
|
+
date?: string | null | undefined;
|
|
724
|
+
place?: {
|
|
725
|
+
countryCode?: string | null | undefined;
|
|
726
|
+
} | null | undefined;
|
|
727
|
+
} | null | undefined;
|
|
728
|
+
death?: {
|
|
729
|
+
date?: string | null | undefined;
|
|
730
|
+
} | null | undefined;
|
|
731
731
|
isProposable?: boolean | null | undefined;
|
|
732
732
|
} & {
|
|
733
733
|
_id: mongoose.Types.ObjectId;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lang-menu/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lang-menu/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './items/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './items/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './utils/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './utils/index.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { LANG_MENU_LANGUAGES } from '../../../../../../../../common/index.js';
|
|
1
2
|
import { getTranslationsAsDictionaryDb } from '../../../../../../../../database/index.js';
|
|
2
|
-
|
|
3
|
-
export const fetchCommonPageHeaderLangmenuItems = async (language) => {
|
|
3
|
+
export const fetchCommonPageHeaderLangmenuItemsFromDb = async (language) => {
|
|
4
4
|
const resp = await getTranslationsAsDictionaryDb(language, [
|
|
5
5
|
`lang.${language}`,
|
|
6
6
|
...LANG_MENU_LANGUAGES.map((it) => `lang.${it}`),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export const
|
|
3
|
-
const resp = await
|
|
1
|
+
import { fetchCommonPageHeaderLangmenuItemsFromDb } from '../../header/index.js';
|
|
2
|
+
export const fetchCommonPageDataFromDb = async (language) => {
|
|
3
|
+
const resp = await fetchCommonPageHeaderLangmenuItemsFromDb(language);
|
|
4
4
|
if (resp.customError) {
|
|
5
5
|
return resp;
|
|
6
6
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { TCustomError } from '../../../../../common/custom-error/index.js';
|
|
2
|
+
import { Language } from '../../../../../common/translation/index.js';
|
|
3
|
+
import { CommonPageData } from '../../../../../common/page-data/common/domains.js';
|
|
4
|
+
export type FetchCommonPageDataFromDb = (language: Language) => Promise<TCustomError<CommonPageData>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './fetch-common-page-data-from-db/index.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './fetch-common-page-data-from-db/index.js';
|
package/database/server-data/candle-details/utils/compose-candle-details-page-server-data/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { composeDictionaryFromDb } from '../../../../dictionary/index.js';
|
|
2
2
|
import { composeCandleDetailsPageData } from '../../../../page-data/index.js';
|
|
3
3
|
export const composeCandleDetailsPageServerData = async (language, candleId, options) => {
|
|
4
4
|
const excludedTranslationCodeOptions = options?.excludedTranslationCodeOptions;
|
|
@@ -8,7 +8,7 @@ export const composeCandleDetailsPageServerData = async (language, candleId, opt
|
|
|
8
8
|
return resp;
|
|
9
9
|
}
|
|
10
10
|
const pageData = resp.data;
|
|
11
|
-
resp = await
|
|
11
|
+
resp = await composeDictionaryFromDb('candle-details-page', language, { excludedTranslationCodeOptions });
|
|
12
12
|
if ('customError' in resp) {
|
|
13
13
|
return resp;
|
|
14
14
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DEFAULT_CANDLE_FILTER_SORT } from '../../../../common/index.js';
|
|
2
2
|
import { composeCandlesPageData } from '../../../page-data/index.js';
|
|
3
|
-
import {
|
|
3
|
+
import { composeDictionaryFromDb } from '../../../dictionary/index.js';
|
|
4
4
|
export const composeCandlesPageServerData = async (language, options) => {
|
|
5
5
|
const excludedTranslationCodeOptions = options?.excludedTranslationCodeOptions;
|
|
6
6
|
const initFilterSort = options?.filterSort;
|
|
@@ -14,7 +14,7 @@ export const composeCandlesPageServerData = async (language, options) => {
|
|
|
14
14
|
return resp;
|
|
15
15
|
}
|
|
16
16
|
const pageData = resp.data;
|
|
17
|
-
resp = await
|
|
17
|
+
resp = await composeDictionaryFromDb('candles-page', language, { excludedTranslationCodeOptions });
|
|
18
18
|
if ('customError' in resp) {
|
|
19
19
|
return resp;
|
|
20
20
|
}
|
package/database/server-data/edit-candle/utils/compose-edit-candle-page-server-data/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { composeDictionaryFromDb } from '../../../../dictionary/index.js';
|
|
2
2
|
import { composeEditCandlePageData } from '../../../../page-data/index.js';
|
|
3
3
|
export const composeEditCandlePageServerData = async (language, candleId, options) => {
|
|
4
4
|
const excludedTranslationCodeOptions = options?.excludedTranslationCodeOptions;
|
|
@@ -8,7 +8,7 @@ export const composeEditCandlePageServerData = async (language, candleId, option
|
|
|
8
8
|
return resp;
|
|
9
9
|
}
|
|
10
10
|
const pageData = resp.data;
|
|
11
|
-
resp = await
|
|
11
|
+
resp = await composeDictionaryFromDb('edit-candle-page', language, { excludedTranslationCodeOptions });
|
|
12
12
|
if ('customError' in resp) {
|
|
13
13
|
return resp;
|
|
14
14
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { composeDictionaryFromDb } from '../../../dictionary/index.js';
|
|
2
2
|
import { composeHomePageData } from '../../../page-data/index.js';
|
|
3
3
|
export const composeHomePageServerData = async (language, options) => {
|
|
4
4
|
const excludedTranslationCodeOptions = options?.excludedTranslationCodeOptions;
|
|
@@ -8,7 +8,7 @@ export const composeHomePageServerData = async (language, options) => {
|
|
|
8
8
|
return resp;
|
|
9
9
|
}
|
|
10
10
|
const pageData = resp.data;
|
|
11
|
-
resp = await
|
|
11
|
+
resp = await composeDictionaryFromDb('home-page', language, { excludedTranslationCodeOptions });
|
|
12
12
|
if ('customError' in resp) {
|
|
13
13
|
return resp;
|
|
14
14
|
}
|
package/database/server-data/light-candle/utils/compose-light-candle-page-server-data/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { composeDictionaryFromDb } from '../../../../dictionary/index.js';
|
|
2
2
|
import { composeLightCandlePageData } from '../../../../page-data/index.js';
|
|
3
3
|
export const composeLightCandlePageServerData = async (language, personId, options) => {
|
|
4
4
|
const excludedTranslationCodeOptions = options?.excludedTranslationCodeOptions;
|
|
@@ -8,7 +8,7 @@ export const composeLightCandlePageServerData = async (language, personId, optio
|
|
|
8
8
|
return resp;
|
|
9
9
|
}
|
|
10
10
|
const pageData = resp.data;
|
|
11
|
-
resp = await
|
|
11
|
+
resp = await composeDictionaryFromDb('light-candle-page', language, { excludedTranslationCodeOptions });
|
|
12
12
|
if ('customError' in resp) {
|
|
13
13
|
return resp;
|
|
14
14
|
}
|
package/database/server-data/person-candles/utils/compose-person-candles-page-server-data/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DEFAULT_CANDLE_FILTER_SORT } from '../../../../../common/index.js';
|
|
2
|
-
import {
|
|
2
|
+
import { composeDictionaryFromDb } from '../../../../dictionary/index.js';
|
|
3
3
|
import { composePersonCandlesPageData } from '../../../../page-data/index.js';
|
|
4
4
|
export const composePersonCandlesPageServerData = async (language, personId, options) => {
|
|
5
5
|
const excludedTranslationCodeOptions = options?.excludedTranslationCodeOptions;
|
|
@@ -14,7 +14,7 @@ export const composePersonCandlesPageServerData = async (language, personId, opt
|
|
|
14
14
|
return resp;
|
|
15
15
|
}
|
|
16
16
|
const pageData = resp.data;
|
|
17
|
-
resp = await
|
|
17
|
+
resp = await composeDictionaryFromDb('person-candles-page', language, { excludedTranslationCodeOptions });
|
|
18
18
|
if ('customError' in resp) {
|
|
19
19
|
return resp;
|
|
20
20
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DEFAULT_PERSON_FILTER_SORT } from '../../../../common/index.js';
|
|
2
2
|
import { composePersonsPageData } from '../../../page-data/index.js';
|
|
3
|
-
import {
|
|
3
|
+
import { composeDictionaryFromDb } from '../../../dictionary/index.js';
|
|
4
4
|
export const composePersonsPageServerData = async (language, options) => {
|
|
5
5
|
const excludedTranslationCodeOptions = options?.excludedTranslationCodeOptions;
|
|
6
6
|
const initFilterSort = options?.filterSort;
|
|
@@ -14,7 +14,7 @@ export const composePersonsPageServerData = async (language, options) => {
|
|
|
14
14
|
return resp;
|
|
15
15
|
}
|
|
16
16
|
const pageData = resp.data;
|
|
17
|
-
resp = await
|
|
17
|
+
resp = await composeDictionaryFromDb('persons-page', language, { excludedTranslationCodeOptions });
|
|
18
18
|
if ('customError' in resp) {
|
|
19
19
|
return resp;
|
|
20
20
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { composeDictionaryFromDb } from '../../../dictionary/index.js';
|
|
2
2
|
import { composePersonsMapPageData } from '../../../page-data/index.js';
|
|
3
3
|
export const composePersonsMapPageServerData = async (language, options) => {
|
|
4
4
|
const excludedTranslationCodeOptions = options?.excludedTranslationCodeOptions;
|
|
@@ -8,7 +8,7 @@ export const composePersonsMapPageServerData = async (language, options) => {
|
|
|
8
8
|
return resp;
|
|
9
9
|
}
|
|
10
10
|
const pageData = resp.data;
|
|
11
|
-
resp = await
|
|
11
|
+
resp = await composeDictionaryFromDb('persons-map-page', language, {
|
|
12
12
|
excludedTranslationCodeOptions: {
|
|
13
13
|
...excludedTranslationCodeOptions,
|
|
14
14
|
remainingCountryCodes: pageData.map.countries.map((country) => country.code),
|
package/package.json
CHANGED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { TCustomError } from '../../../../../../../custom-error/index.js';
|
|
2
|
-
import { Language } from '../../../../../../../translation/index.js';
|
|
3
|
-
import { CommonPageHeaderLangmenuItemsData } from '../../domains.js';
|
|
4
|
-
export type FetchCommonPageHeaderLangmenuItems = (language: Language) => Promise<TCustomError<CommonPageHeaderLangmenuItemsData[]>>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { TCustomError } from '../../../../custom-error/index.js';
|
|
2
|
-
import { Language } from '../../../../translation/index.js';
|
|
3
|
-
import { CommonPageData } from '../../domains.js';
|
|
4
|
-
export type FetchCommonPageDataFromDB = (language: Language) => Promise<TCustomError<CommonPageData>>;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|