@candlerip/shared 0.0.108 → 0.0.110
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/common/dictionary/domains.d.ts +4 -0
- package/common/dictionary/domains.js +1 -0
- package/common/dictionary/index.d.ts +1 -0
- package/common/dictionary/index.js +1 -0
- package/common/geographical/country/domains.d.ts +0 -4
- package/common/page-data/persons-map/domains.d.ts +0 -1
- package/database/model/country/configs/index.d.ts +0 -8
- package/database/model/country/configs/index.js +0 -4
- package/database/page-data/persons-map/compose-persons-map-page-data-db/index.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { CountryDictionary } from './country-dictionary/index.js';
|
|
2
|
+
import { LanguageDictionary } from './language-dictionary/index.js';
|
|
3
|
+
import { PageDictionary } from './page-dictionary/index.js';
|
|
4
|
+
export type Divtionary = CountryDictionary | LanguageDictionary | PageDictionary;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import { Language } from '../../translation/index.js';
|
|
2
1
|
import { CountryCode } from '../county-code/index.js';
|
|
3
2
|
export type Country = {
|
|
4
3
|
_id: string;
|
|
5
4
|
code: CountryCode;
|
|
6
5
|
location: CountryLocation;
|
|
7
|
-
translation: {
|
|
8
|
-
[key in Language]: string;
|
|
9
|
-
};
|
|
10
6
|
};
|
|
11
7
|
export interface CountryPersonsCount {
|
|
12
8
|
personsCount: number;
|
|
@@ -7,14 +7,12 @@ export declare const CountryDbSchema: mongoose.Schema<any, mongoose.Model<any, a
|
|
|
7
7
|
coordinates: number[];
|
|
8
8
|
type?: "Point" | null | undefined;
|
|
9
9
|
} | null | undefined;
|
|
10
|
-
translation?: Map<string, string> | null | undefined;
|
|
11
10
|
}, mongoose.Document<unknown, {}, {
|
|
12
11
|
code?: string | null | undefined;
|
|
13
12
|
location?: {
|
|
14
13
|
coordinates: number[];
|
|
15
14
|
type?: "Point" | null | undefined;
|
|
16
15
|
} | null | undefined;
|
|
17
|
-
translation?: Map<string, string> | null | undefined;
|
|
18
16
|
}, {
|
|
19
17
|
id: string;
|
|
20
18
|
}, mongoose.ResolveSchemaOptions<{
|
|
@@ -25,7 +23,6 @@ export declare const CountryDbSchema: mongoose.Schema<any, mongoose.Model<any, a
|
|
|
25
23
|
coordinates: number[];
|
|
26
24
|
type?: "Point" | null | undefined;
|
|
27
25
|
} | null | undefined;
|
|
28
|
-
translation?: Map<string, string> | null | undefined;
|
|
29
26
|
} & {
|
|
30
27
|
_id: mongoose.Types.ObjectId;
|
|
31
28
|
}, "id"> & {
|
|
@@ -39,7 +36,6 @@ export declare const CountryDbSchema: mongoose.Schema<any, mongoose.Model<any, a
|
|
|
39
36
|
coordinates: number[];
|
|
40
37
|
type?: "Point" | null | undefined;
|
|
41
38
|
} | null | undefined;
|
|
42
|
-
translation?: Map<string, string> | null | undefined;
|
|
43
39
|
}, {
|
|
44
40
|
id: string;
|
|
45
41
|
}, mongoose.ResolveSchemaOptions<{
|
|
@@ -50,7 +46,6 @@ export declare const CountryDbSchema: mongoose.Schema<any, mongoose.Model<any, a
|
|
|
50
46
|
coordinates: number[];
|
|
51
47
|
type?: "Point" | null | undefined;
|
|
52
48
|
} | null | undefined;
|
|
53
|
-
translation?: Map<string, string> | null | undefined;
|
|
54
49
|
} & {
|
|
55
50
|
_id: mongoose.Types.ObjectId;
|
|
56
51
|
}, "id"> & {
|
|
@@ -62,9 +57,6 @@ export declare const CountryDbSchema: mongoose.Schema<any, mongoose.Model<any, a
|
|
|
62
57
|
coordinates: number[];
|
|
63
58
|
type?: "Point" | null | undefined;
|
|
64
59
|
} | null | undefined;
|
|
65
|
-
translation?: {
|
|
66
|
-
[x: string]: string;
|
|
67
|
-
} | null | undefined;
|
|
68
60
|
} & {
|
|
69
61
|
_id: mongoose.Types.ObjectId;
|
|
70
62
|
} & {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getCountriesDb } from '../../../mutation/index.js';
|
|
2
2
|
export const composePersonsMapPageDataDb = async (language) => {
|
|
3
3
|
const resp = await getCountriesDb(language, {
|
|
4
|
-
fields: ['code', 'location'
|
|
4
|
+
fields: ['code', 'location'],
|
|
5
5
|
withPersonsCount: {
|
|
6
6
|
includeZeroCounts: false,
|
|
7
7
|
},
|