@golemio/playgrounds 1.12.1-dev.2570110126 → 1.12.1-dev.2591059844
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.
|
@@ -6,7 +6,7 @@ const golemio_errors_1 = require("@golemio/core/dist/shared/golemio-errors");
|
|
|
6
6
|
class AddressHelper {
|
|
7
7
|
static async updateAddress(dbData) {
|
|
8
8
|
try {
|
|
9
|
-
const address = await integration_engine_1.GeocodeApi.
|
|
9
|
+
const address = await integration_engine_1.GeocodeApi.getEnrichedAddressByLatLngFromPhoton(dbData.location.coordinates[1], dbData.location.coordinates[0]);
|
|
10
10
|
if (address) {
|
|
11
11
|
dbData.address_country = address.address_country ?? "";
|
|
12
12
|
dbData.address_formatted = address.address_formatted ?? "";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddressHelper.js","sourceRoot":"","sources":["../../../src/integration-engine/helpers/AddressHelper.ts"],"names":[],"mappings":";;;AAGA,8EAAmE;AACnE,6EAA4E;AAG5E,MAAa,aAAa;IAgBf,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC,MAAkB;QAChD,IAAI;YACA,MAAM,OAAO,GAAG,MAAM,+BAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"AddressHelper.js","sourceRoot":"","sources":["../../../src/integration-engine/helpers/AddressHelper.ts"],"names":[],"mappings":";;;AAGA,8EAAmE;AACnE,6EAA4E;AAG5E,MAAa,aAAa;IAgBf,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC,MAAkB;QAChD,IAAI;YACA,MAAM,OAAO,GAAG,MAAM,+BAAU,CAAC,oCAAoC,CACjE,MAAM,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,EAC9B,MAAM,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC,CAAC,CACjC,CAAC;YAEF,IAAI,OAAO,EAAE;gBACT,MAAM,CAAC,eAAe,GAAG,OAAO,CAAC,eAAe,IAAI,EAAE,C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AAC,CAAC,CAAC;AAC9G,CAAC,CAAC;AAEY,uBAAS,GAAG,CAAC,UAAsB,EAAW,EAAE;IAC1D,OAAO,CAAC,UAAU,CAAC,iBAAiB,IAAI,CAAC,UAAU,CAAC,eAAe,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC;AAChG,CAAC,CAAC;AAEY,yBAAW,GAAG,CAAC,aAA0B,EAAE,mBAA+B,EAAW,EAAE;IACjG,OAAO,CACH,aAAa,CAAC,iBAAiB,CAAC,aAAa,CAAC,QAAQ,EAAE,mBAAmB,CAAC,QAAQ,CAAC;QACrF,aAAa,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAC/C,CAAC;AACN,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golemio/playgrounds",
|
|
3
|
-
"version": "1.12.1-dev.
|
|
3
|
+
"version": "1.12.1-dev.2591059844",
|
|
4
4
|
"description": "Golemio Playgrounds Module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@commitlint/config-conventional": "^11.0.0",
|
|
36
36
|
"@golemio/city-districts": "1.4.5",
|
|
37
37
|
"@golemio/cli": "1.11.2",
|
|
38
|
-
"@golemio/core": "3.
|
|
38
|
+
"@golemio/core": "3.2.0-dev.2591038226",
|
|
39
39
|
"@golemio/db-common": "1.2.2",
|
|
40
40
|
"@golemio/eslint-config": "1.1.4",
|
|
41
41
|
"@types/chai": "^5.2.3",
|