@abcagency/hc-ui-components 1.3.18 → 1.3.19
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/_virtual/_rollupPluginBabelHelpers.js +1 -1
- package/dist/apis/hcApi.js +85 -183
- package/dist/apis/hcApi.js.map +1 -1
- package/dist/components/HireControlMap.js +10 -5
- package/dist/components/HireControlMap.js.map +1 -1
- package/dist/components/modules/accordions/MapAccordionItem.js +10 -67
- package/dist/components/modules/accordions/MapAccordionItem.js.map +1 -1
- package/dist/components/modules/filter/index.js.map +1 -1
- package/dist/components/modules/filter/radio-item.js +1 -2
- package/dist/components/modules/filter/radio-item.js.map +1 -1
- package/dist/components/modules/jobListing/listing-details-container.js +45 -0
- package/dist/components/modules/jobListing/listing-details-container.js.map +1 -0
- package/dist/components/modules/jobListing/listing-details.js +24 -24
- package/dist/components/modules/jobListing/listing-details.js.map +1 -1
- package/dist/components/modules/{maps/list → list}/field-mapper.js +8 -7
- package/dist/components/modules/list/field-mapper.js.map +1 -0
- package/dist/components/modules/{maps/list → list}/header-item.js +2 -2
- package/dist/components/modules/list/header-item.js.map +1 -0
- package/dist/components/modules/{maps/list → list}/header.js +6 -4
- package/dist/components/modules/list/header.js.map +1 -0
- package/dist/components/modules/list/index.js +36 -0
- package/dist/components/modules/list/index.js.map +1 -0
- package/dist/components/modules/{maps/list → list}/item-expand-card/index.js +3 -1
- package/dist/components/modules/list/item-expand-card/index.js.map +1 -0
- package/dist/components/modules/{maps/list → list}/item-expand-card/recruiter-contact-nav.js +2 -2
- package/dist/components/modules/list/item-expand-card/recruiter-contact-nav.js.map +1 -0
- package/dist/components/modules/{maps/list → list}/item-expand-card/recruiter-details.js +1 -1
- package/dist/components/modules/list/item-expand-card/recruiter-details.js.map +1 -0
- package/dist/components/modules/list/item-expand-card/recruiter-headshot.js.map +1 -0
- package/dist/components/modules/list/item-list.js +28 -0
- package/dist/components/modules/list/item-list.js.map +1 -0
- package/dist/components/modules/list/list-item/index.js +75 -0
- package/dist/components/modules/list/list-item/index.js.map +1 -0
- package/dist/components/modules/list/list-item/list-item-container.js +47 -0
- package/dist/components/modules/list/list-item/list-item-container.js.map +1 -0
- package/dist/components/modules/{maps/list/list-item/index.js → list/list-item/list-item.js} +29 -33
- package/dist/components/modules/list/list-item/list-item.js.map +1 -0
- package/dist/components/modules/maps/map-list.js +3 -3
- package/dist/components/modules/maps/map-list.js.map +1 -1
- package/dist/contexts/mapContext.js +84 -113
- package/dist/contexts/mapContext.js.map +1 -1
- package/dist/contexts/mapListContext.js +181 -293
- package/dist/contexts/mapListContext.js.map +1 -1
- package/dist/contexts/trackEventContext.js +1 -1
- package/dist/services/configService.js +10 -28
- package/dist/services/configService.js.map +1 -1
- package/dist/services/googlePlacesNearbyService.js +33 -58
- package/dist/services/googlePlacesNearbyService.js.map +1 -1
- package/dist/services/listingAggregatorService.js +35 -75
- package/dist/services/listingAggregatorService.js.map +1 -1
- package/dist/services/listingEntityService.js +10 -31
- package/dist/services/listingEntityService.js.map +1 -1
- package/dist/services/listingService.js +26 -60
- package/dist/services/listingService.js.map +1 -1
- package/dist/services/recruiterService.js +11 -31
- package/dist/services/recruiterService.js.map +1 -1
- package/dist/types/apis/hcApi.d.ts +5 -0
- package/dist/types/clientToken.d.ts +2 -0
- package/dist/types/components/modules/accordions/MapAccordionItem.d.ts +9 -0
- package/dist/types/components/modules/accordions/default.d.ts +19 -0
- package/dist/types/components/modules/buttons/button-group-apply.d.ts +24 -0
- package/dist/types/components/modules/buttons/commute-pill.d.ts +5 -0
- package/dist/types/components/modules/buttons/default.d.ts +48 -0
- package/dist/types/components/modules/buttons/pill-wrapper.d.ts +3 -0
- package/dist/types/components/modules/dialogs/apply-dialog.d.ts +8 -0
- package/dist/types/components/modules/filter/sort.d.ts +8 -0
- package/dist/types/components/modules/grid.d.ts +8 -0
- package/dist/types/components/modules/icon.d.ts +10 -0
- package/dist/types/components/modules/jobListing/listing-details-container.d.ts +6 -0
- package/dist/types/components/modules/jobListing/listing-details.d.ts +18 -0
- package/dist/types/components/modules/list/field-mapper.d.ts +10 -0
- package/dist/types/components/modules/list/header-item.d.ts +11 -0
- package/dist/types/components/modules/list/header.d.ts +11 -0
- package/dist/types/components/modules/list/index.d.ts +9 -0
- package/dist/types/components/modules/list/item-expand-card/index.d.ts +7 -0
- package/dist/types/components/modules/list/item-expand-card/recruiter-contact-nav.d.ts +17 -0
- package/dist/types/components/modules/list/item-expand-card/recruiter-details.d.ts +21 -0
- package/dist/types/components/modules/list/item-expand-card/recruiter-headshot.d.ts +8 -0
- package/dist/types/components/modules/list/item-list.d.ts +21 -0
- package/dist/types/components/modules/list/list-item/index.d.ts +12 -0
- package/dist/types/components/modules/list/list-item/list-item-container.d.ts +14 -0
- package/dist/types/components/modules/list/list-item/list-item.d.ts +3 -0
- package/dist/types/constants/eventTypes.d.ts +13 -0
- package/dist/types/contexts/mapContext.d.ts +29 -0
- package/dist/types/contexts/mapListContext.d.ts +58 -0
- package/dist/types/contexts/trackEventContext.d.ts +6 -0
- package/dist/types/enums/SectionType.d.ts +9 -0
- package/dist/types/hooks/useList.d.ts +13 -0
- package/dist/types/services/configService.d.ts +6 -0
- package/dist/types/services/googlePlacesNearbyService.d.ts +5 -0
- package/dist/types/services/listingAggregatorService.d.ts +12 -0
- package/dist/types/services/listingEntityService.d.ts +6 -0
- package/dist/types/services/listingService.d.ts +9 -0
- package/dist/types/services/recruiterService.d.ts +6 -0
- package/dist/types/types/Address.d.ts +7 -0
- package/dist/types/types/ContentSection.d.ts +8 -0
- package/dist/types/types/GetListingParams.d.ts +8 -0
- package/dist/types/types/LatLng.d.ts +4 -0
- package/dist/types/types/ListingEntity.d.ts +10 -0
- package/dist/types/types/ListingFields.d.ts +20 -0
- package/dist/types/types/Listings.d.ts +31 -0
- package/dist/types/types/Recruiter.d.ts +9 -0
- package/dist/types/types/SimilarListing.d.ts +24 -0
- package/dist/types/types/config/Colors.d.ts +8 -0
- package/dist/types/types/config/MapConfig.d.ts +29 -0
- package/dist/types/types/config/PointsOfInterestConfig.d.ts +13 -0
- package/dist/types/types/config/SearchConfig.d.ts +4 -0
- package/dist/types/util/filterUtil.d.ts +28 -0
- package/dist/types/util/loading.d.ts +3 -0
- package/dist/types/util/localStorageUtil.d.ts +3 -0
- package/dist/types/util/mapUtil.d.ts +15 -0
- package/dist/types/util/sortUtil.d.ts +1 -0
- package/dist/types/util/stringUtils.d.ts +1 -0
- package/dist/util/filterUtil.js +1 -3
- package/dist/util/filterUtil.js.map +1 -1
- package/dist/util/localStorageUtil.js +37 -28
- package/dist/util/localStorageUtil.js.map +1 -1
- package/dist/util/mapUtil.js.map +1 -1
- package/package.json +23 -17
- package/rollup.config.mjs +23 -19
- package/src/apis/{hcApi.js → hcApi.ts} +27 -11
- package/src/components/HireControlMap.js +132 -129
- package/src/components/modules/accordions/MapAccordionItem.js +32 -74
- package/src/components/modules/filter/index.js +89 -89
- package/src/components/modules/filter/radio-item.js +0 -1
- package/src/components/modules/jobListing/listing-details-container.js +40 -0
- package/src/components/modules/jobListing/listing-details.js +209 -99
- package/src/components/modules/{maps/list → list}/field-mapper.js +114 -112
- package/src/components/modules/{maps/list → list}/header.js +49 -47
- package/src/components/modules/list/index.tsx +83 -0
- package/src/components/modules/{maps/list → list}/item-expand-card/index.js +24 -22
- package/src/components/modules/list/item-list.tsx +198 -0
- package/src/components/modules/list/list-item/index.js +70 -0
- package/src/components/modules/list/list-item/list-item-container.js +43 -0
- package/src/components/modules/{maps/list/list-item/index.js → list/list-item/list-item.js} +32 -38
- package/src/components/modules/maps/map-list.js +74 -74
- package/src/contexts/mapContext.tsx +129 -0
- package/src/contexts/mapListContext.tsx +297 -0
- package/src/enums/SectionType.ts +9 -0
- package/src/services/{configService.js → configService.ts} +16 -16
- package/src/services/{googlePlacesNearbyService.js → googlePlacesNearbyService.ts} +11 -2
- package/src/services/listingAggregatorService.ts +76 -0
- package/src/services/listingEntityService.ts +16 -0
- package/src/services/listingService.ts +40 -0
- package/src/services/{recruiterService.js → recruiterService.ts} +18 -17
- package/src/types/Address.ts +7 -0
- package/src/types/ContentSection.ts +9 -0
- package/src/types/GetListingParams.ts +8 -0
- package/src/types/LatLng.ts +4 -0
- package/src/types/ListingEntity.ts +11 -0
- package/src/types/ListingFields.ts +20 -0
- package/src/types/Listings.ts +32 -0
- package/src/types/Recruiter.ts +9 -0
- package/src/types/SimilarListing.ts +24 -0
- package/src/types/config/Colors.ts +8 -0
- package/src/types/config/MapConfig.ts +30 -0
- package/src/types/config/PointsOfInterestConfig.ts +13 -0
- package/src/types/config/SearchConfig.ts +4 -0
- package/src/util/filterUtil.js +239 -239
- package/src/util/localStorageUtil.ts +34 -0
- package/src/util/mapUtil.js +91 -91
- package/tsconfig.json +23 -0
- package/dist/components/modules/maps/list/field-mapper.js.map +0 -1
- package/dist/components/modules/maps/list/header-item.js.map +0 -1
- package/dist/components/modules/maps/list/header.js.map +0 -1
- package/dist/components/modules/maps/list/index.js +0 -102
- package/dist/components/modules/maps/list/index.js.map +0 -1
- package/dist/components/modules/maps/list/item-expand-card/index.js.map +0 -1
- package/dist/components/modules/maps/list/item-expand-card/recruiter-contact-nav.js.map +0 -1
- package/dist/components/modules/maps/list/item-expand-card/recruiter-details.js.map +0 -1
- package/dist/components/modules/maps/list/item-expand-card/recruiter-headshot.js.map +0 -1
- package/dist/components/modules/maps/list/list-item/index.js.map +0 -1
- package/dist/services/_virtual/_rollupPluginBabelHelpers.js +0 -372
- package/dist/services/_virtual/_rollupPluginBabelHelpers.js.map +0 -1
- package/dist/services/apis/hcApi.js +0 -189
- package/dist/services/apis/hcApi.js.map +0 -1
- package/dist/services/clientToken.js +0 -7
- package/dist/services/clientToken.js.map +0 -1
- package/dist/services/styles/index.css +0 -3
- package/src/components/modules/maps/list/index.js +0 -112
- package/src/contexts/mapContext.js +0 -101
- package/src/contexts/mapListContext.js +0 -242
- package/src/services/listingAggregatorService.js +0 -50
- package/src/services/listingEntityService.js +0 -15
- package/src/services/listingService.js +0 -26
- package/src/util/localStorageUtil.js +0 -27
- /package/dist/components/modules/{maps/list → list}/item-expand-card/recruiter-headshot.js +0 -0
- /package/src/components/modules/{maps/list → list}/header-item.js +0 -0
- /package/src/components/modules/{maps/list → list}/item-expand-card/recruiter-contact-nav.js +0 -0
- /package/src/components/modules/{maps/list → list}/item-expand-card/recruiter-details.js +0 -0
- /package/src/components/modules/{maps/list → list}/item-expand-card/recruiter-headshot.js +0 -0
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { getListings } from '~/services/listingService';
|
|
2
|
+
import { getRecruiters } from '~/services/recruiterService';
|
|
3
|
+
import { getListingEntities } from '~/services/listingEntityService';
|
|
4
|
+
|
|
5
|
+
import { getDistinctItemsByProximity } from '~/util/mapUtil';
|
|
6
|
+
import { Listing } from '~/types/Listings';
|
|
7
|
+
import { Recruiter } from '~/types/Recruiter';
|
|
8
|
+
import { ListingEntity } from '~/types/ListingEntity';
|
|
9
|
+
import { MapConfig } from '~/types/config/MapConfig';
|
|
10
|
+
//import { ICommuteLocation } from '~/interfaces/ICommute';
|
|
11
|
+
|
|
12
|
+
interface SiteConfig {
|
|
13
|
+
companyId: number;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
interface FetchListingsResult {
|
|
17
|
+
listingsResult: Listing[];
|
|
18
|
+
fetchedRecruiters: Recruiter[];
|
|
19
|
+
fetchedEntities: Record<number, ListingEntity>;
|
|
20
|
+
distinctItems: any; // Update this type based on the return type of getDistinctItemsByProximity
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
const fetchListings = async (
|
|
24
|
+
query: string,
|
|
25
|
+
siteConfig: MapConfig,
|
|
26
|
+
commuteLocation: any | null = null
|
|
27
|
+
): Promise<FetchListingsResult> => {
|
|
28
|
+
try {
|
|
29
|
+
const listingsResult = await getListings(
|
|
30
|
+
|
|
31
|
+
);
|
|
32
|
+
|
|
33
|
+
const recruiterIds: number[] = [
|
|
34
|
+
...new Set(listingsResult.map(listing => listing.recruiterId))
|
|
35
|
+
] as number[];
|
|
36
|
+
|
|
37
|
+
const fetchedRecruiters = await getRecruiters(recruiterIds);
|
|
38
|
+
|
|
39
|
+
const distinctEntityIds: number[] = [
|
|
40
|
+
...new Set(listingsResult.map(listing => listing.entityId))
|
|
41
|
+
] as number[];
|
|
42
|
+
|
|
43
|
+
const fetchedEntities = !commuteLocation
|
|
44
|
+
? await getListingEntities(distinctEntityIds)
|
|
45
|
+
: await getListingEntities(
|
|
46
|
+
distinctEntityIds,
|
|
47
|
+
`${commuteLocation.lat}, ${commuteLocation.lng}`
|
|
48
|
+
);
|
|
49
|
+
for (let i = 0; i < listingsResult.length; i++) {
|
|
50
|
+
const listing = listingsResult[i];
|
|
51
|
+
if (listing.entityId && listing.entityId !== -1 && listing.fields) {
|
|
52
|
+
const entity = fetchedEntities[listing.entityId];
|
|
53
|
+
if (entity) {
|
|
54
|
+
listing.fields.travelTime = entity.travelTime;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
const distinctItems = getDistinctItemsByProximity(
|
|
60
|
+
listingsResult,
|
|
61
|
+
fetchedEntities
|
|
62
|
+
);
|
|
63
|
+
|
|
64
|
+
return {
|
|
65
|
+
listingsResult,
|
|
66
|
+
fetchedRecruiters,
|
|
67
|
+
fetchedEntities,
|
|
68
|
+
distinctItems
|
|
69
|
+
};
|
|
70
|
+
} catch (error) {
|
|
71
|
+
console.error("Error fetching listings:", error);
|
|
72
|
+
throw error;
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
export default fetchListings;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import api from '~/apis/hcApi';
|
|
2
|
+
import { ListingEntity } from '~/types/ListingEntity';
|
|
3
|
+
|
|
4
|
+
export const getListingEntities = async (entityIds: number[], origin = ''): Promise<ListingEntity[]> => {
|
|
5
|
+
try {
|
|
6
|
+
const response = await api.post<ListingEntity[]>(`/ListingEntities?origin=${origin}`, entityIds);
|
|
7
|
+
return response;
|
|
8
|
+
} catch (error) {
|
|
9
|
+
console.error("Error fetching listing entities:", error);
|
|
10
|
+
throw error;
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export default {
|
|
15
|
+
getListingEntities
|
|
16
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// listingService.ts
|
|
2
|
+
import { GetListingsParams } from '~/types/GetListingParams';
|
|
3
|
+
import api from '../apis/hcApi';
|
|
4
|
+
import { Listing } from '../types/Listings';
|
|
5
|
+
|
|
6
|
+
export const getListings = async (params?: GetListingsParams): Promise<Listing[]> => {
|
|
7
|
+
try {
|
|
8
|
+
const query = new URLSearchParams();
|
|
9
|
+
|
|
10
|
+
if (params) {
|
|
11
|
+
if (params.location) params.location.forEach(loc => query.append('location', loc));
|
|
12
|
+
if (params.category) params.category.forEach(cat => query.append('category', cat));
|
|
13
|
+
if (params.categoryClass) params.categoryClass.forEach(catClass => query.append('categoryClass', catClass));
|
|
14
|
+
if (params.education) params.education.forEach(edu => query.append('education', edu));
|
|
15
|
+
if (params.city) params.city.forEach(cty => query.append('city', cty));
|
|
16
|
+
if (params.state) params.state.forEach(st => query.append('state', st));
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
const response = await api.get(`/Listings?${query.toString()}`);
|
|
20
|
+
return response as Listing[];
|
|
21
|
+
} catch (error) {
|
|
22
|
+
console.error(error);
|
|
23
|
+
throw error;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export const getListingDetails = async (listingId: string) => {
|
|
28
|
+
try {
|
|
29
|
+
const response = await api.get(`/ListingDetails/${listingId}`);
|
|
30
|
+
return response;
|
|
31
|
+
} catch (error) {
|
|
32
|
+
console.error(error);
|
|
33
|
+
throw error;
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export default {
|
|
38
|
+
getListings,
|
|
39
|
+
getListingDetails
|
|
40
|
+
};
|
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import api from '~/apis/hcApi';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import api from '~/apis/hcApi';
|
|
2
|
+
import { Recruiter } from '~/types/Recruiter';
|
|
3
|
+
|
|
4
|
+
export const getRecruiters = async (recruiterIds: number[]): Promise<Recruiter[]> => {
|
|
5
|
+
try {
|
|
6
|
+
const params = recruiterIds.map(id => `recruiterIds=${id}`).join("&");
|
|
7
|
+
|
|
8
|
+
const response = await api.get<Recruiter[]>(`/Recruiters?${params}`);
|
|
9
|
+
return response;
|
|
10
|
+
} catch (error) {
|
|
11
|
+
console.error("Error fetching recruiters:", error);
|
|
12
|
+
throw error;
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export default {
|
|
17
|
+
getRecruiters
|
|
18
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type ListingFields = {
|
|
2
|
+
posted?: string;
|
|
3
|
+
subTitle?: string;
|
|
4
|
+
education?: string;
|
|
5
|
+
position?: string;
|
|
6
|
+
category?: string;
|
|
7
|
+
categoryClass?: string;
|
|
8
|
+
shift?: string;
|
|
9
|
+
cityState?: string;
|
|
10
|
+
city?: string;
|
|
11
|
+
state?: string;
|
|
12
|
+
schedule?: string;
|
|
13
|
+
customFlag1?: number;
|
|
14
|
+
bonus?: number;
|
|
15
|
+
remote?: number;
|
|
16
|
+
useClientJobUrl?: boolean;
|
|
17
|
+
dateCreated: Date;
|
|
18
|
+
dateLastEdited?: Date;
|
|
19
|
+
travelTime?: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ListingFields } from './ListingFields';
|
|
2
|
+
import { Recruiter } from './Recruiter';
|
|
3
|
+
import { ListingEntity } from './ListingEntity';
|
|
4
|
+
import { ContentSection } from './ContentSection';
|
|
5
|
+
import { SimilarListing } from './SimilarListing';
|
|
6
|
+
|
|
7
|
+
export type Listing = {
|
|
8
|
+
id: number;
|
|
9
|
+
fields?: ListingFields;
|
|
10
|
+
entityId?: number;
|
|
11
|
+
applyUrl?: string;
|
|
12
|
+
applyOnline?: number;
|
|
13
|
+
detailsUrl?: string;
|
|
14
|
+
displayOnSite: number;
|
|
15
|
+
displayRecruiter: number;
|
|
16
|
+
recruiterId?: number;
|
|
17
|
+
description1?: string;
|
|
18
|
+
description2?: string;
|
|
19
|
+
description3?: string;
|
|
20
|
+
description4?: string;
|
|
21
|
+
custom1: string;
|
|
22
|
+
custom2: string;
|
|
23
|
+
custom3: string;
|
|
24
|
+
custom4: string;
|
|
25
|
+
custom5: string;
|
|
26
|
+
customFlag1: number;
|
|
27
|
+
slug?: string;
|
|
28
|
+
recruiter?: Recruiter;
|
|
29
|
+
entity?: ListingEntity;
|
|
30
|
+
contentSections?: ContentSection[];
|
|
31
|
+
similarListings?: SimilarListing[];
|
|
32
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export type SimilarListing = {
|
|
2
|
+
id: number;
|
|
3
|
+
city: string;
|
|
4
|
+
companyName: string;
|
|
5
|
+
companyId: number;
|
|
6
|
+
domain: string;
|
|
7
|
+
refreshedPubDate?: Date;
|
|
8
|
+
clientJobUrl: string;
|
|
9
|
+
refreshNum: number;
|
|
10
|
+
requestURI: string;
|
|
11
|
+
schedule: string;
|
|
12
|
+
scheduleId?: number;
|
|
13
|
+
shift: string;
|
|
14
|
+
sponsored: boolean;
|
|
15
|
+
stateAbbrev: string;
|
|
16
|
+
subTitle: string;
|
|
17
|
+
title: string;
|
|
18
|
+
uniqueId: string;
|
|
19
|
+
zip: string;
|
|
20
|
+
slug?: string;
|
|
21
|
+
dateCreated: Date;
|
|
22
|
+
categoryId: number;
|
|
23
|
+
categoryClassId: number;
|
|
24
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Colors } from "./Colors";
|
|
2
|
+
import { PointsOfInterestConfig } from "./PointsOfInterestConfig";
|
|
3
|
+
import { SearchConfig } from "./SearchConfig";
|
|
4
|
+
|
|
5
|
+
export type MapConfig = {
|
|
6
|
+
title: string;
|
|
7
|
+
titleShort: string;
|
|
8
|
+
description: string;
|
|
9
|
+
jobsDomain: string;
|
|
10
|
+
useDetailsPostMessage: boolean;
|
|
11
|
+
author: string;
|
|
12
|
+
url: string;
|
|
13
|
+
logo: string;
|
|
14
|
+
companyName: string;
|
|
15
|
+
shareImage: string;
|
|
16
|
+
clientAuthKey: string;
|
|
17
|
+
colors: Colors;
|
|
18
|
+
hideLocations: boolean;
|
|
19
|
+
fieldsShown: string[];
|
|
20
|
+
fieldFiltersShown: string[];
|
|
21
|
+
locationFiltersShown: string[];
|
|
22
|
+
fieldNames: Record<string, string>;
|
|
23
|
+
specialFeatures: Record<string, string>;
|
|
24
|
+
searchConfig: SearchConfig;
|
|
25
|
+
internalApplyLink: string;
|
|
26
|
+
useApplyDialog: boolean;
|
|
27
|
+
pointsOfInterestConfig: PointsOfInterestConfig;
|
|
28
|
+
showMap: boolean;
|
|
29
|
+
companyId: string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export type PointsOfInterestConfig = {
|
|
2
|
+
title: string;
|
|
3
|
+
pointsOfInterestNames: Record<string, string>;
|
|
4
|
+
pointsOfInterestIcons: Record<string, string>;
|
|
5
|
+
placeMarkerColors: {
|
|
6
|
+
innerFillColor: string;
|
|
7
|
+
innerStrokeColor: string;
|
|
8
|
+
outerFillColor: string;
|
|
9
|
+
outerStrokeColor: string;
|
|
10
|
+
};
|
|
11
|
+
placeMarkerSize: number;
|
|
12
|
+
placeMappings: Record<string, string[]>;
|
|
13
|
+
}
|