@pretto/places 0.25.0 → 0.28.0
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/countrySearch.d.ts +2 -1
- package/dist/countrySearch.d.ts.map +1 -1
- package/dist/geolocSearch.d.ts.map +1 -1
- package/dist/index.js +37 -21
- package/dist/module.js +37 -21
- package/dist/municipalitySearch.d.ts.map +1 -1
- package/dist/reverseGeolocSearch.d.ts +0 -2
- package/dist/reverseGeolocSearch.d.ts.map +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/countrySearch.d.ts
CHANGED
|
@@ -10,7 +10,8 @@ export interface CountriesApiResult {
|
|
|
10
10
|
libenr: string;
|
|
11
11
|
}
|
|
12
12
|
interface Options {
|
|
13
|
-
limit
|
|
13
|
+
limit?: number;
|
|
14
|
+
language?: 'fr' | 'en';
|
|
14
15
|
}
|
|
15
16
|
export declare const init: (appId: string, apiKey: string, options?: AlgoliaSearchOptions | undefined) => "An error occurred." | {
|
|
16
17
|
get(search: string, options?: Options | undefined): Promise<CountriesSearchResult[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"countrySearch.d.ts","sourceRoot":"","sources":["../src/countrySearch.ts"],"names":[],"mappings":"AAAA,OAAsB,EAAE,oBAAoB,EAAgB,MAAM,eAAe,CAAA;AAIjF,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,MAAM,CAAA;IAChB,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;CACf;AAED,UAAU,OAAO;IACf,KAAK,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"countrySearch.d.ts","sourceRoot":"","sources":["../src/countrySearch.ts"],"names":[],"mappings":"AAAA,OAAsB,EAAE,oBAAoB,EAAgB,MAAM,eAAe,CAAA;AAIjF,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,MAAM,CAAA;IAChB,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;CACf;AAED,UAAU,OAAO;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAI,CAAA;CACvB;AAyBD,eAAO,MAAM,IAAI,UAAW,MAAM,UAAU,MAAM;gBAK1B,MAAM;CAS7B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"geolocSearch.d.ts","sourceRoot":"","sources":["../src/geolocSearch.ts"],"names":[],"mappings":"AAAA,oBAAY,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAC9B,CAAA;
|
|
1
|
+
{"version":3,"file":"geolocSearch.d.ts","sourceRoot":"","sources":["../src/geolocSearch.ts"],"names":[],"mappings":"AAAA,oBAAY,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAC9B,CAAA;AAoDD,eAAO,MAAM,GAAG,WAAY,MAAM,kBAAiB,MAAM,KAAS,QAAQ,kBAAkB,EAAE,CAQ7F,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -46,14 +46,15 @@ const convertFirstLetterToUpperCase = (str) => {
|
|
|
46
46
|
return acc + curr;
|
|
47
47
|
}, '');
|
|
48
48
|
};
|
|
49
|
-
const getUri = (search, departmentOnly) => {
|
|
49
|
+
const getUri = (search, departmentOnly, withType = true) => {
|
|
50
50
|
const PLACES_API = 'https://geo.api.gouv.fr';
|
|
51
51
|
const QUERY_FIELDS = `boost=population&fields=departement${departmentOnly ? ',centre,contour' : ',codesPostaux,centre,contour'}`;
|
|
52
52
|
const formatedSearch = encodeURIComponent(search);
|
|
53
|
+
const type = withType ? 'type=arrondissement-municipal&' : '';
|
|
53
54
|
const uri = {
|
|
54
55
|
departments: `${PLACES_API}/departements/${formatedSearch}/communes?${QUERY_FIELDS}`,
|
|
55
|
-
municipality: `${PLACES_API}/communes
|
|
56
|
-
zipcode: `${PLACES_API}/communes
|
|
56
|
+
municipality: `${PLACES_API}/communes?${type}&nom=${formatedSearch}&${QUERY_FIELDS}`,
|
|
57
|
+
zipcode: `${PLACES_API}/communes?${type}codePostal=${formatedSearch}&${QUERY_FIELDS}`,
|
|
57
58
|
};
|
|
58
59
|
if (isNaN(parseInt(search, 10)))
|
|
59
60
|
return uri.municipality;
|
|
@@ -133,10 +134,17 @@ const getData$3 = (search, options) => __awaiter(void 0, void 0, void 0, functio
|
|
|
133
134
|
return SEARCH_CACHE.filter(i => i.value.zipcode.includes(search)).slice(0, limit);
|
|
134
135
|
}
|
|
135
136
|
try {
|
|
137
|
+
let result = [];
|
|
136
138
|
const response = yield fetch(getUri(search, departmentOnly));
|
|
137
139
|
if (!response.ok)
|
|
138
140
|
return Promise.reject(response);
|
|
139
|
-
|
|
141
|
+
result = yield response.json();
|
|
142
|
+
if (result.length === 0) {
|
|
143
|
+
const response = yield fetch(getUri(search, departmentOnly, false));
|
|
144
|
+
if (!response.ok)
|
|
145
|
+
return Promise.reject(response);
|
|
146
|
+
result = yield response.json();
|
|
147
|
+
}
|
|
140
148
|
const formatedResponse = responseFormat(result, country, search, departmentOnly);
|
|
141
149
|
if (isEqual__default["default"](PREVIOUS_SEARCH, formatedResponse)) {
|
|
142
150
|
const cleanValue = search.replace(' ', '').replace(PREVIOUS_VALUE, '');
|
|
@@ -222,10 +230,12 @@ var addressSearch = /*#__PURE__*/Object.freeze({
|
|
|
222
230
|
});
|
|
223
231
|
|
|
224
232
|
const get$2 = (instance, search, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
233
|
+
const selectedLanguage = (options === null || options === void 0 ? void 0 : options.language) || 'fr';
|
|
234
|
+
const indexName = selectedLanguage === 'fr' ? 'Countries' : 'CountriesEN';
|
|
225
235
|
if (!search)
|
|
226
236
|
return [];
|
|
227
237
|
const { limit = 5 } = options || {};
|
|
228
|
-
const data = yield instance.initIndex(
|
|
238
|
+
const data = yield instance.initIndex(indexName).search(search, {
|
|
229
239
|
hitsPerPage: limit,
|
|
230
240
|
});
|
|
231
241
|
return data.hits.reduce((acc, { codeiso2, cog, libcog, libenr }) => {
|
|
@@ -274,11 +284,18 @@ const getData$1 = (search) => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
274
284
|
if (!search || !/(\d){5}/.test(search))
|
|
275
285
|
return [];
|
|
276
286
|
try {
|
|
287
|
+
let results = [];
|
|
277
288
|
const formattedSearch = encodeURIComponent(search);
|
|
278
|
-
const response = yield fetch(`https://geo.api.gouv.fr/communes?codePostal=${formattedSearch}&fields=centre`);
|
|
289
|
+
const response = yield fetch(`https://geo.api.gouv.fr/communes?codePostal=${formattedSearch}&type=arrondissement-municipal&fields=centre`);
|
|
279
290
|
if (!response.ok)
|
|
280
291
|
return Promise.reject(response);
|
|
281
|
-
|
|
292
|
+
results = yield response.json();
|
|
293
|
+
if (results.length === 0) {
|
|
294
|
+
const response = yield fetch(`https://geo.api.gouv.fr/communes?codePostal=${formattedSearch}&fields=centre`);
|
|
295
|
+
if (!response.ok)
|
|
296
|
+
return Promise.reject(response);
|
|
297
|
+
results = yield response.json();
|
|
298
|
+
}
|
|
282
299
|
return formatData$1(results);
|
|
283
300
|
}
|
|
284
301
|
catch (error) {
|
|
@@ -1109,11 +1126,9 @@ const parisOutline = [
|
|
|
1109
1126
|
},
|
|
1110
1127
|
];
|
|
1111
1128
|
|
|
1112
|
-
const formatData = (geoResults
|
|
1113
|
-
const district = addressResults.features.length > 0 ? addressResults.features[0].properties.district : null;
|
|
1114
|
-
const postcode = addressResults.features.length > 0 ? addressResults.features[0].properties.postcode : null;
|
|
1129
|
+
const formatData = (geoResults) => {
|
|
1115
1130
|
const getOutline = (city, zipcode) => {
|
|
1116
|
-
if (
|
|
1131
|
+
if (!geoResults || geoResults.length === 0)
|
|
1117
1132
|
return [];
|
|
1118
1133
|
if (city === 'Paris') {
|
|
1119
1134
|
const outline = parisOutline.find(outline => outline.name === zipcode);
|
|
@@ -1124,7 +1139,7 @@ const formatData = (geoResults, addressResults) => {
|
|
|
1124
1139
|
return [];
|
|
1125
1140
|
};
|
|
1126
1141
|
return geoResults.map(result => {
|
|
1127
|
-
const customOutline = getOutline(result.nom,
|
|
1142
|
+
const customOutline = getOutline(result.nom, result.codesPostaux[0]);
|
|
1128
1143
|
let outline = [];
|
|
1129
1144
|
if (customOutline.length > 0) {
|
|
1130
1145
|
outline = [customOutline];
|
|
@@ -1142,22 +1157,23 @@ const formatData = (geoResults, addressResults) => {
|
|
|
1142
1157
|
coordinates: result.centre.coordinates,
|
|
1143
1158
|
zipcode: result.codesPostaux[0],
|
|
1144
1159
|
outline,
|
|
1145
|
-
district,
|
|
1146
|
-
postcode,
|
|
1147
1160
|
};
|
|
1148
1161
|
});
|
|
1149
1162
|
};
|
|
1150
1163
|
const getData = (search, signal) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1151
1164
|
try {
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
fetch(`https://api-adresse.data.gouv.fr/reverse/?lat=${search.latitude}&lon=${search.longitude}&limit=1&&autocomplete=0`, { signal }),
|
|
1155
|
-
]);
|
|
1165
|
+
let geoResults = [];
|
|
1166
|
+
const geoResponse = yield fetch(`https://geo.api.gouv.fr/communes?lat=${search.latitude}&lon=${search.longitude}&type=arrondissement-municipal&fields=departement,codesPostaux,centre,contour`, { signal });
|
|
1156
1167
|
if (!geoResponse.ok)
|
|
1157
1168
|
return Promise.reject(geoResponse);
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1169
|
+
geoResults = yield geoResponse.json();
|
|
1170
|
+
if (geoResults.length === 0) {
|
|
1171
|
+
const geoResponse = yield fetch(`https://geo.api.gouv.fr/communes?lat=${search.latitude}&lon=${search.longitude}&fields=departement,codesPostaux,centre,contour`, { signal });
|
|
1172
|
+
if (!geoResponse.ok)
|
|
1173
|
+
return Promise.reject(geoResponse);
|
|
1174
|
+
geoResults = yield geoResponse.json();
|
|
1175
|
+
}
|
|
1176
|
+
return formatData(geoResults);
|
|
1161
1177
|
}
|
|
1162
1178
|
catch (error) {
|
|
1163
1179
|
if (typeof error === 'string')
|
package/dist/module.js
CHANGED
|
@@ -36,14 +36,15 @@ const convertFirstLetterToUpperCase = (str) => {
|
|
|
36
36
|
return acc + curr;
|
|
37
37
|
}, '');
|
|
38
38
|
};
|
|
39
|
-
const getUri = (search, departmentOnly) => {
|
|
39
|
+
const getUri = (search, departmentOnly, withType = true) => {
|
|
40
40
|
const PLACES_API = 'https://geo.api.gouv.fr';
|
|
41
41
|
const QUERY_FIELDS = `boost=population&fields=departement${departmentOnly ? ',centre,contour' : ',codesPostaux,centre,contour'}`;
|
|
42
42
|
const formatedSearch = encodeURIComponent(search);
|
|
43
|
+
const type = withType ? 'type=arrondissement-municipal&' : '';
|
|
43
44
|
const uri = {
|
|
44
45
|
departments: `${PLACES_API}/departements/${formatedSearch}/communes?${QUERY_FIELDS}`,
|
|
45
|
-
municipality: `${PLACES_API}/communes
|
|
46
|
-
zipcode: `${PLACES_API}/communes
|
|
46
|
+
municipality: `${PLACES_API}/communes?${type}&nom=${formatedSearch}&${QUERY_FIELDS}`,
|
|
47
|
+
zipcode: `${PLACES_API}/communes?${type}codePostal=${formatedSearch}&${QUERY_FIELDS}`,
|
|
47
48
|
};
|
|
48
49
|
if (isNaN(parseInt(search, 10)))
|
|
49
50
|
return uri.municipality;
|
|
@@ -123,10 +124,17 @@ const getData$3 = (search, options) => __awaiter(void 0, void 0, void 0, functio
|
|
|
123
124
|
return SEARCH_CACHE.filter(i => i.value.zipcode.includes(search)).slice(0, limit);
|
|
124
125
|
}
|
|
125
126
|
try {
|
|
127
|
+
let result = [];
|
|
126
128
|
const response = yield fetch(getUri(search, departmentOnly));
|
|
127
129
|
if (!response.ok)
|
|
128
130
|
return Promise.reject(response);
|
|
129
|
-
|
|
131
|
+
result = yield response.json();
|
|
132
|
+
if (result.length === 0) {
|
|
133
|
+
const response = yield fetch(getUri(search, departmentOnly, false));
|
|
134
|
+
if (!response.ok)
|
|
135
|
+
return Promise.reject(response);
|
|
136
|
+
result = yield response.json();
|
|
137
|
+
}
|
|
130
138
|
const formatedResponse = responseFormat(result, country, search, departmentOnly);
|
|
131
139
|
if (isEqual(PREVIOUS_SEARCH, formatedResponse)) {
|
|
132
140
|
const cleanValue = search.replace(' ', '').replace(PREVIOUS_VALUE, '');
|
|
@@ -212,10 +220,12 @@ var addressSearch = /*#__PURE__*/Object.freeze({
|
|
|
212
220
|
});
|
|
213
221
|
|
|
214
222
|
const get$2 = (instance, search, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
223
|
+
const selectedLanguage = (options === null || options === void 0 ? void 0 : options.language) || 'fr';
|
|
224
|
+
const indexName = selectedLanguage === 'fr' ? 'Countries' : 'CountriesEN';
|
|
215
225
|
if (!search)
|
|
216
226
|
return [];
|
|
217
227
|
const { limit = 5 } = options || {};
|
|
218
|
-
const data = yield instance.initIndex(
|
|
228
|
+
const data = yield instance.initIndex(indexName).search(search, {
|
|
219
229
|
hitsPerPage: limit,
|
|
220
230
|
});
|
|
221
231
|
return data.hits.reduce((acc, { codeiso2, cog, libcog, libenr }) => {
|
|
@@ -264,11 +274,18 @@ const getData$1 = (search) => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
264
274
|
if (!search || !/(\d){5}/.test(search))
|
|
265
275
|
return [];
|
|
266
276
|
try {
|
|
277
|
+
let results = [];
|
|
267
278
|
const formattedSearch = encodeURIComponent(search);
|
|
268
|
-
const response = yield fetch(`https://geo.api.gouv.fr/communes?codePostal=${formattedSearch}&fields=centre`);
|
|
279
|
+
const response = yield fetch(`https://geo.api.gouv.fr/communes?codePostal=${formattedSearch}&type=arrondissement-municipal&fields=centre`);
|
|
269
280
|
if (!response.ok)
|
|
270
281
|
return Promise.reject(response);
|
|
271
|
-
|
|
282
|
+
results = yield response.json();
|
|
283
|
+
if (results.length === 0) {
|
|
284
|
+
const response = yield fetch(`https://geo.api.gouv.fr/communes?codePostal=${formattedSearch}&fields=centre`);
|
|
285
|
+
if (!response.ok)
|
|
286
|
+
return Promise.reject(response);
|
|
287
|
+
results = yield response.json();
|
|
288
|
+
}
|
|
272
289
|
return formatData$1(results);
|
|
273
290
|
}
|
|
274
291
|
catch (error) {
|
|
@@ -1099,11 +1116,9 @@ const parisOutline = [
|
|
|
1099
1116
|
},
|
|
1100
1117
|
];
|
|
1101
1118
|
|
|
1102
|
-
const formatData = (geoResults
|
|
1103
|
-
const district = addressResults.features.length > 0 ? addressResults.features[0].properties.district : null;
|
|
1104
|
-
const postcode = addressResults.features.length > 0 ? addressResults.features[0].properties.postcode : null;
|
|
1119
|
+
const formatData = (geoResults) => {
|
|
1105
1120
|
const getOutline = (city, zipcode) => {
|
|
1106
|
-
if (
|
|
1121
|
+
if (!geoResults || geoResults.length === 0)
|
|
1107
1122
|
return [];
|
|
1108
1123
|
if (city === 'Paris') {
|
|
1109
1124
|
const outline = parisOutline.find(outline => outline.name === zipcode);
|
|
@@ -1114,7 +1129,7 @@ const formatData = (geoResults, addressResults) => {
|
|
|
1114
1129
|
return [];
|
|
1115
1130
|
};
|
|
1116
1131
|
return geoResults.map(result => {
|
|
1117
|
-
const customOutline = getOutline(result.nom,
|
|
1132
|
+
const customOutline = getOutline(result.nom, result.codesPostaux[0]);
|
|
1118
1133
|
let outline = [];
|
|
1119
1134
|
if (customOutline.length > 0) {
|
|
1120
1135
|
outline = [customOutline];
|
|
@@ -1132,22 +1147,23 @@ const formatData = (geoResults, addressResults) => {
|
|
|
1132
1147
|
coordinates: result.centre.coordinates,
|
|
1133
1148
|
zipcode: result.codesPostaux[0],
|
|
1134
1149
|
outline,
|
|
1135
|
-
district,
|
|
1136
|
-
postcode,
|
|
1137
1150
|
};
|
|
1138
1151
|
});
|
|
1139
1152
|
};
|
|
1140
1153
|
const getData = (search, signal) => __awaiter(void 0, void 0, void 0, function* () {
|
|
1141
1154
|
try {
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
fetch(`https://api-adresse.data.gouv.fr/reverse/?lat=${search.latitude}&lon=${search.longitude}&limit=1&&autocomplete=0`, { signal }),
|
|
1145
|
-
]);
|
|
1155
|
+
let geoResults = [];
|
|
1156
|
+
const geoResponse = yield fetch(`https://geo.api.gouv.fr/communes?lat=${search.latitude}&lon=${search.longitude}&type=arrondissement-municipal&fields=departement,codesPostaux,centre,contour`, { signal });
|
|
1146
1157
|
if (!geoResponse.ok)
|
|
1147
1158
|
return Promise.reject(geoResponse);
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1159
|
+
geoResults = yield geoResponse.json();
|
|
1160
|
+
if (geoResults.length === 0) {
|
|
1161
|
+
const geoResponse = yield fetch(`https://geo.api.gouv.fr/communes?lat=${search.latitude}&lon=${search.longitude}&fields=departement,codesPostaux,centre,contour`, { signal });
|
|
1162
|
+
if (!geoResponse.ok)
|
|
1163
|
+
return Promise.reject(geoResponse);
|
|
1164
|
+
geoResults = yield geoResponse.json();
|
|
1165
|
+
}
|
|
1166
|
+
return formatData(geoResults);
|
|
1151
1167
|
}
|
|
1152
1168
|
catch (error) {
|
|
1153
1169
|
if (typeof error === 'string')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"municipalitySearch.d.ts","sourceRoot":"","sources":["../src/municipalitySearch.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,wBAAwB;IACvC,KAAK,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AAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC,wBAAwB,EAAE,GAAG,MAAM,CAAC,CAAA;AA6E7G,eAAO,MAAM,OAAO,EAAE,kBA+CrB,CAAA;AAID,eAAO,MAAM,GAAG,EAAE,2BAQjB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reverseGeolocSearch.d.ts","sourceRoot":"","sources":["../src/reverseGeolocSearch.ts"],"names":[],"mappings":"AAEA,oBAAY,yBAAyB,GAAG;IACtC,MAAM,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAA;IAC/C,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC7B,OAAO,EAAE,KAAK,CAAC;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC,EAAE,CAAA;IACzD,OAAO,EAAE,MAAM,CAAA;
|
|
1
|
+
{"version":3,"file":"reverseGeolocSearch.d.ts","sourceRoot":"","sources":["../src/reverseGeolocSearch.ts"],"names":[],"mappings":"AAEA,oBAAY,yBAAyB,GAAG;IACtC,MAAM,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAA;IAC/C,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC7B,OAAO,EAAE,KAAK,CAAC;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC,EAAE,CAAA;IACzD,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAgGD,eAAO,MAAM,GAAG,WACN;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,kBAChC,MAAM,uCAEpB,QAAQ,yBAAyB,EAAE,CAQrC,CAAA"}
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const convertFirstLetterToUpperCase: (str: string) => string;
|
|
2
|
-
export declare const getUri: (search: string, departmentOnly: boolean) => string;
|
|
2
|
+
export declare const getUri: (search: string, departmentOnly: boolean, withType?: boolean) => string;
|
|
3
3
|
//# sourceMappingURL=utils.d.ts.map
|
package/dist/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,6BAA6B,QAAS,MAAM,WAMxD,CAAA;AAED,eAAO,MAAM,MAAM,WAAY,MAAM,kBAAkB,OAAO,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,6BAA6B,QAAS,MAAM,WAMxD,CAAA;AAED,eAAO,MAAM,MAAM,WAAY,MAAM,kBAAkB,OAAO,aAAY,OAAO,WAgBhF,CAAA"}
|