@openinc/parse-server-opendash 2.4.22 → 2.4.23
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/LICENSE +20 -20
- package/README.md +31 -31
- package/dist/featuremap.json +2 -0
- package/dist/functions/_init.js +1 -2
- package/dist/functions/getAdminConfig.js +1 -2
- package/dist/functions/getSchemaForAdmin.js +1 -2
- package/dist/functions/opendash-geo-features.js +1 -2
- package/dist/functions/opendash-geo-google-autocomplete.d.ts +1 -0
- package/dist/functions/opendash-geo-google-autocomplete.js +66 -0
- package/dist/functions/opendash-geo-graphhopper-geocode-reverse.d.ts +1 -0
- package/dist/functions/opendash-geo-graphhopper-geocode-reverse.js +37 -0
- package/dist/functions/opendash-geo-graphhopper-geocode.d.ts +2 -0
- package/dist/functions/opendash-geo-graphhopper-geocode.js +65 -0
- package/dist/functions/openinc-auth-change-password.js +1 -2
- package/dist/functions/openinc-auth-confirm-email.js +1 -2
- package/dist/functions/openinc-auth-email-confirmation-request.js +1 -2
- package/dist/functions/openinc-auth-email-confirmation.js +1 -2
- package/dist/functions/openinc-auth-login-admin.js +1 -2
- package/dist/functions/openinc-auth-login-passwordless.js +1 -2
- package/dist/functions/openinc-auth-login.js +1 -2
- package/dist/functions/openinc-auth-password-reset-request.js +1 -2
- package/dist/functions/openinc-auth-password-reset.js +1 -2
- package/dist/functions/openinc-auth-signup.js +1 -2
- package/dist/functions/openinc-auth-validate-token.js +1 -2
- package/dist/functions/openinc-auth.common.d.ts +0 -1
- package/dist/functions/openinc-auth.common.js +5 -6
- package/dist/functions/openinc-config.js +1 -2
- package/dist/functions/openinc-geo-google-autocomplete.js +1 -2
- package/dist/functions/openinc-geo-google.common.js +2 -3
- package/dist/functions/openinc-geo-graphhopper-geocode-reverse-raw.js +1 -2
- package/dist/functions/openinc-geo-graphhopper-geocode-reverse.js +1 -2
- package/dist/functions/openinc-geo-graphhopper-geocode.js +1 -2
- package/dist/functions/openinc-geo-graphhopper-route-simple.js +1 -2
- package/dist/functions/openinc-geo-graphhopper.common.js +2 -3
- package/dist/functions/openinc-user-roles.d.ts +1 -0
- package/dist/functions/openinc-user-roles.js +19 -0
- package/dist/functions/openservice-tickets-sorter.d.ts +1 -0
- package/dist/functions/openservice-tickets-sorter.js +7 -0
- package/dist/helper/pdf2img.js +1 -2
- package/dist/helper/transformLogin.js +1 -2
- package/dist/hooks/Alarm.js +1 -2
- package/dist/hooks/AlarmAction.js +1 -2
- package/dist/hooks/AlarmWebhook.js +1 -2
- package/dist/hooks/Attachment.js +1 -2
- package/dist/hooks/BDE_Form.js +1 -2
- package/dist/hooks/BDE_List.js +1 -2
- package/dist/hooks/BDE_ListEntry.js +1 -2
- package/dist/hooks/BDE_Page.js +1 -2
- package/dist/hooks/BDE_Result.js +1 -2
- package/dist/hooks/BDE_Unit.js +1 -2
- package/dist/hooks/Company.d.ts +1 -0
- package/dist/hooks/Company.js +15 -0
- package/dist/hooks/Config.js +1 -2
- package/dist/hooks/Contact.d.ts +1 -0
- package/dist/hooks/Contact.js +15 -0
- package/dist/hooks/Core_Email.js +4 -5
- package/dist/hooks/Core_Token.js +1 -2
- package/dist/hooks/Dashboard.js +1 -2
- package/dist/hooks/GTFS_Agency.js +1 -2
- package/dist/hooks/GTFS_Bikes_Allowed.js +1 -2
- package/dist/hooks/GTFS_Calendar.js +1 -2
- package/dist/hooks/GTFS_Direction.js +1 -2
- package/dist/hooks/GTFS_Level.js +1 -2
- package/dist/hooks/GTFS_Location_Type.js +1 -2
- package/dist/hooks/GTFS_Route.js +1 -2
- package/dist/hooks/GTFS_Route_Type.js +1 -2
- package/dist/hooks/GTFS_Stop.js +1 -2
- package/dist/hooks/GTFS_Stop_Times.js +1 -2
- package/dist/hooks/GTFS_Trip.js +1 -2
- package/dist/hooks/GTFS_Wheelchair_Accessible.js +1 -2
- package/dist/hooks/GTFS_Wheelchair_Boarding.js +1 -2
- package/dist/hooks/Group.js +1 -2
- package/dist/hooks/Knowledge_Article.js +1 -2
- package/dist/hooks/Knowledge_Category.js +1 -2
- package/dist/hooks/Knowledge_Document.js +1 -2
- package/dist/hooks/Knowledge_DocumentPage.js +1 -2
- package/dist/hooks/Knowledge_Video.js +1 -2
- package/dist/hooks/Language.js +1 -2
- package/dist/hooks/Log.js +1 -2
- package/dist/hooks/MIAAS_MDSEndpoint.js +1 -2
- package/dist/hooks/MailTemplate.js +1 -2
- package/dist/hooks/Maintenance_Article.js +1 -2
- package/dist/hooks/Maintenance_DailySchedule.js +1 -2
- package/dist/hooks/Maintenance_Downtime.js +1 -2
- package/dist/hooks/Maintenance_Duedate.js +1 -2
- package/dist/hooks/Maintenance_Frequency.js +1 -2
- package/dist/hooks/Maintenance_Issuecategory.js +1 -2
- package/dist/hooks/Maintenance_Item.js +1 -2
- package/dist/hooks/Maintenance_Kanban_State.js +1 -2
- package/dist/hooks/Maintenance_Media.js +1 -2
- package/dist/hooks/Maintenance_Message.js +1 -2
- package/dist/hooks/Maintenance_Message_Body.js +1 -2
- package/dist/hooks/Maintenance_Order.js +1 -2
- package/dist/hooks/Maintenance_Priority.js +1 -2
- package/dist/hooks/Maintenance_Restriction.js +1 -2
- package/dist/hooks/Maintenance_Schedule.js +1 -2
- package/dist/hooks/Maintenance_Schedule_Execution.js +1 -2
- package/dist/hooks/Maintenance_Schedule_Execution_Step.js +1 -2
- package/dist/hooks/Maintenance_Schedule_Step.js +1 -2
- package/dist/hooks/Maintenance_SourceMeta.js +1 -2
- package/dist/hooks/Maintenance_Ticket.js +1 -2
- package/dist/hooks/Maintenance_Ticket_Issuecategory.js +1 -2
- package/dist/hooks/Maintenance_Ticket_Kanban_State.js +1 -2
- package/dist/hooks/Maintenance_Ticket_Source.js +1 -2
- package/dist/hooks/Monitoring_DataHierachies.js +1 -2
- package/dist/hooks/Monitoring_Jobs.js +1 -2
- package/dist/hooks/Monitoring_ReportImage.js +1 -2
- package/dist/hooks/Monitoring_Slideshow.js +1 -2
- package/dist/hooks/NavigationGroup.js +1 -2
- package/dist/hooks/NavigationItem.js +1 -2
- package/dist/hooks/Notification.js +1 -2
- package/dist/hooks/Permission.js +1 -2
- package/dist/hooks/Push.js +1 -2
- package/dist/hooks/Report.js +1 -2
- package/dist/hooks/Share.js +1 -2
- package/dist/hooks/Source.js +1 -2
- package/dist/hooks/SourceMeta.js +1 -2
- package/dist/hooks/Tenant.js +1 -2
- package/dist/hooks/TenantMeta.js +1 -2
- package/dist/hooks/TenantTrustedDomain.js +1 -2
- package/dist/hooks/UserData.js +1 -2
- package/dist/hooks/VirtualKPI.js +1 -2
- package/dist/hooks/WebPush.js +1 -2
- package/dist/hooks/Widget.js +1 -2
- package/dist/hooks/WidgetPreset.js +1 -2
- package/dist/hooks/_User.js +1 -2
- package/dist/hooks/_beforeLogin.js +1 -2
- package/dist/hooks/_init.js +1 -2
- package/dist/index.js +17 -17
- package/dist/ow.js +2 -3
- package/dist/types/Alarm.d.ts +0 -1
- package/dist/types/AlarmAction.d.ts +0 -1
- package/dist/types/AlarmWebhook.d.ts +0 -1
- package/dist/types/Attachment.d.ts +0 -1
- package/dist/types/BDE_Form.d.ts +0 -1
- package/dist/types/BDE_List.d.ts +0 -1
- package/dist/types/BDE_ListEntry.d.ts +0 -1
- package/dist/types/BDE_Page.d.ts +0 -1
- package/dist/types/BDE_Result.d.ts +0 -1
- package/dist/types/BDE_Unit.d.ts +0 -1
- package/dist/types/Company.d.ts +23 -0
- package/dist/types/Company.js +29 -0
- package/dist/types/Config.d.ts +0 -1
- package/dist/types/Contact.d.ts +0 -1
- package/dist/types/Core_Email.d.ts +0 -1
- package/dist/types/Core_Token.d.ts +0 -1
- package/dist/types/Dashboard.d.ts +0 -1
- package/dist/types/GTFS_Agency.d.ts +0 -1
- package/dist/types/GTFS_Bikes_Allowed.d.ts +0 -1
- package/dist/types/GTFS_Calendar.d.ts +0 -1
- package/dist/types/GTFS_Direction.d.ts +0 -1
- package/dist/types/GTFS_Level.d.ts +0 -1
- package/dist/types/GTFS_Location_Type.d.ts +0 -1
- package/dist/types/GTFS_Route.d.ts +0 -1
- package/dist/types/GTFS_Route_Type.d.ts +0 -1
- package/dist/types/GTFS_Stop.d.ts +0 -1
- package/dist/types/GTFS_Stop_Times.d.ts +0 -1
- package/dist/types/GTFS_Trip.d.ts +0 -1
- package/dist/types/GTFS_Wheelchair_Accessible.d.ts +0 -1
- package/dist/types/GTFS_Wheelchair_Boarding.d.ts +0 -1
- package/dist/types/Group.d.ts +0 -1
- package/dist/types/Knowledge_Article.d.ts +0 -1
- package/dist/types/Knowledge_Category.d.ts +0 -1
- package/dist/types/Knowledge_Document.d.ts +0 -1
- package/dist/types/Knowledge_DocumentPage.d.ts +0 -1
- package/dist/types/Knowledge_Video.d.ts +0 -1
- package/dist/types/Language.d.ts +0 -1
- package/dist/types/Log.d.ts +0 -1
- package/dist/types/MIAAS_MDSEndpoint.d.ts +0 -1
- package/dist/types/MailTemplate.d.ts +0 -1
- package/dist/types/Maintenance_Article.d.ts +0 -1
- package/dist/types/Maintenance_DailySchedule.d.ts +3 -1
- package/dist/types/Maintenance_DailySchedule.js +6 -0
- package/dist/types/Maintenance_Downtime.d.ts +0 -1
- package/dist/types/Maintenance_Duedate.d.ts +0 -1
- package/dist/types/Maintenance_File.d.ts +0 -1
- package/dist/types/Maintenance_Frequency.d.ts +0 -1
- package/dist/types/Maintenance_Issuecategory.d.ts +0 -1
- package/dist/types/Maintenance_Item.d.ts +0 -1
- package/dist/types/Maintenance_Kanban_State.d.ts +0 -1
- package/dist/types/Maintenance_Media.d.ts +0 -1
- package/dist/types/Maintenance_Message.d.ts +0 -1
- package/dist/types/Maintenance_Message_Body.d.ts +0 -1
- package/dist/types/Maintenance_Order.d.ts +0 -1
- package/dist/types/Maintenance_Priority.d.ts +0 -1
- package/dist/types/Maintenance_Restriction.d.ts +0 -1
- package/dist/types/Maintenance_Schedule.d.ts +0 -1
- package/dist/types/Maintenance_Schedule_Execution.d.ts +0 -1
- package/dist/types/Maintenance_Schedule_Execution_Step.d.ts +4 -5
- package/dist/types/Maintenance_Schedule_Execution_Step.js +6 -6
- package/dist/types/Maintenance_Schedule_Step.d.ts +4 -5
- package/dist/types/Maintenance_Schedule_Step.js +6 -6
- package/dist/types/Maintenance_SourceMeta.d.ts +0 -1
- package/dist/types/Maintenance_Source_File.d.ts +0 -1
- package/dist/types/Maintenance_Ticket.d.ts +0 -1
- package/dist/types/Maintenance_Ticket_Issuecategory.d.ts +0 -1
- package/dist/types/Maintenance_Ticket_Kanban_State.d.ts +0 -1
- package/dist/types/Maintenance_Ticket_Source.d.ts +0 -1
- package/dist/types/Monitoring_DataHierachies.d.ts +0 -1
- package/dist/types/Monitoring_Jobs.d.ts +0 -1
- package/dist/types/Monitoring_ReportImage.d.ts +0 -1
- package/dist/types/Monitoring_Slideshow.d.ts +0 -1
- package/dist/types/NavigationGroup.d.ts +0 -1
- package/dist/types/NavigationItem.d.ts +0 -1
- package/dist/types/Notification.d.ts +0 -1
- package/dist/types/Permission.d.ts +0 -1
- package/dist/types/Push.d.ts +0 -1
- package/dist/types/Report.d.ts +0 -1
- package/dist/types/Share.d.ts +0 -1
- package/dist/types/Source.d.ts +0 -1
- package/dist/types/SourceMeta.d.ts +3 -1
- package/dist/types/SourceMeta.js +6 -0
- package/dist/types/Tenant.d.ts +0 -1
- package/dist/types/TenantMeta.d.ts +0 -1
- package/dist/types/TenantTrustedDomain.d.ts +0 -1
- package/dist/types/UserData.d.ts +0 -1
- package/dist/types/VirtualKPI.d.ts +0 -1
- package/dist/types/WebPush.d.ts +0 -1
- package/dist/types/Widget.d.ts +0 -1
- package/dist/types/WidgetPreset.d.ts +0 -1
- package/dist/types/_Role.d.ts +0 -1
- package/dist/types/_Session.d.ts +0 -1
- package/dist/types/_User.d.ts +0 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.js +4 -2
- package/package.json +8 -8
- package/schema/BDE_Form.json +52 -52
- package/schema/GTFS_Route.json +78 -78
- package/schema/GTFS_Trip.json +70 -70
- package/schema/MailTemplate.json +52 -52
- package/schema/Maintenance_DailySchedule.json +49 -49
- package/schema/Maintenance_Message.json +54 -54
- package/schema/Maintenance_Message_Body.json +51 -51
- package/schema/Maintenance_Ticket.json +62 -62
- package/schema/Monitoring_DataHierachies.json +49 -49
- package/schema/Monitoring_Jobs.json +54 -54
- package/schema/Monitoring_ReportImage.json +52 -52
- package/schema/Report.json +73 -73
- package/schema/Source.json +52 -52
- package/schema/SourceMeta.json +34 -34
- package/schema/Tenant.json +81 -81
- package/schema/TenantMeta.json +30 -30
- package/schema/VirtualKPI.json +50 -50
- package/schema/WebPush.json +42 -42
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) Sebastian Zilles
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Sebastian Zilles
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
# @openinc/parse-server-opendash
|
|
2
|
-
|
|
3
|
-
Parse Server Cloud Code for open.DASH/open.WARE
|
|
4
|
-
|
|
5
|
-
## Usage
|
|
6
|
-
|
|
7
|
-
```
|
|
8
|
-
npm i @openinc/parse-server-opendash
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
```ts
|
|
12
|
-
// cloud/main.js
|
|
13
|
-
|
|
14
|
-
const { init } = require("@openinc/parse-server-opendash");
|
|
15
|
-
|
|
16
|
-
init();
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
For a full list of exports see the file at [EXPORTS.md](./EXPORTS.md)
|
|
20
|
-
|
|
21
|
-
## Configuration
|
|
22
|
-
|
|
23
|
-
The configuration of this cloud code is done using environment variables.
|
|
24
|
-
|
|
25
|
-
By default no classes will be created. To create classes from the schema definition, you need to enable the feature flags according your needs.
|
|
26
|
-
|
|
27
|
-
For a full list of options see the file at [CONFIG.md](./CONFIG.md)
|
|
28
|
-
|
|
29
|
-
## Development
|
|
30
|
-
|
|
31
|
-
See the file at [DEVELOPMENT.md](./DEVELOPMENT.md)
|
|
1
|
+
# @openinc/parse-server-opendash
|
|
2
|
+
|
|
3
|
+
Parse Server Cloud Code for open.DASH/open.WARE
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
npm i @openinc/parse-server-opendash
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
```ts
|
|
12
|
+
// cloud/main.js
|
|
13
|
+
|
|
14
|
+
const { init } = require("@openinc/parse-server-opendash");
|
|
15
|
+
|
|
16
|
+
init();
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
For a full list of exports see the file at [EXPORTS.md](./EXPORTS.md)
|
|
20
|
+
|
|
21
|
+
## Configuration
|
|
22
|
+
|
|
23
|
+
The configuration of this cloud code is done using environment variables.
|
|
24
|
+
|
|
25
|
+
By default no classes will be created. To create classes from the schema definition, you need to enable the feature flags according your needs.
|
|
26
|
+
|
|
27
|
+
For a full list of options see the file at [CONFIG.md](./CONFIG.md)
|
|
28
|
+
|
|
29
|
+
## Development
|
|
30
|
+
|
|
31
|
+
See the file at [DEVELOPMENT.md](./DEVELOPMENT.md)
|
package/dist/featuremap.json
CHANGED
package/dist/functions/_init.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.init =
|
|
6
|
+
exports.init = init;
|
|
7
7
|
const fs_1 = __importDefault(require("fs"));
|
|
8
8
|
const regex = /^[a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)*$/;
|
|
9
9
|
async function init() {
|
|
@@ -17,4 +17,3 @@ async function init() {
|
|
|
17
17
|
await init(name).catch((e) => console.error(e));
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
exports.init = init;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.init =
|
|
3
|
+
exports.init = init;
|
|
4
4
|
async function init(name) {
|
|
5
5
|
Parse.Cloud.define(name, async (request) => {
|
|
6
6
|
const userId = request.user?.id;
|
|
@@ -40,7 +40,6 @@ async function init(name) {
|
|
|
40
40
|
};
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
|
-
exports.init = init;
|
|
44
43
|
function evaluateClassLevelPermission(userId, roles, permissions) {
|
|
45
44
|
if (!permissions) {
|
|
46
45
|
return false;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.init =
|
|
3
|
+
exports.init = init;
|
|
4
4
|
const __1 = require("..");
|
|
5
5
|
async function init(name) {
|
|
6
6
|
Parse.Cloud.define(name, async (request) => {
|
|
@@ -11,4 +11,3 @@ async function init(name) {
|
|
|
11
11
|
return await Parse.Schema.all();
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
|
-
exports.init = init;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.init =
|
|
3
|
+
exports.init = init;
|
|
4
4
|
const config_1 = require("../config");
|
|
5
5
|
async function init(name) {
|
|
6
6
|
Parse.Cloud.define(name, async (request) => {
|
|
@@ -16,4 +16,3 @@ async function init(name) {
|
|
|
16
16
|
};
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
|
-
exports.init = init;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function init(name: string): Promise<void>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.init = void 0;
|
|
4
|
+
const __1 = require("..");
|
|
5
|
+
async function init(name) {
|
|
6
|
+
Parse.Cloud.define(name, async (request) => {
|
|
7
|
+
const API_KEY = (0, __1.getEnv)("PARSE_SERVER_GEO_GOOGLE_API_KEY");
|
|
8
|
+
if (!API_KEY) {
|
|
9
|
+
throw new Parse.Error(Parse.Error.INTERNAL_SERVER_ERROR, `Feature not enabled [${name}-1]`);
|
|
10
|
+
}
|
|
11
|
+
const limit = request.params.limit;
|
|
12
|
+
const input = request.params.query;
|
|
13
|
+
try {
|
|
14
|
+
// https://developers.google.com/maps/documentation/places/web-service/autocomplete
|
|
15
|
+
const response = await Parse.Cloud.httpRequest({
|
|
16
|
+
url: "https://maps.googleapis.com/maps/api/place/autocomplete/json",
|
|
17
|
+
params: {
|
|
18
|
+
key: API_KEY,
|
|
19
|
+
input,
|
|
20
|
+
},
|
|
21
|
+
});
|
|
22
|
+
const result = [];
|
|
23
|
+
for (const prediction of response.data.predictions) {
|
|
24
|
+
if (result.length >= limit) {
|
|
25
|
+
break;
|
|
26
|
+
}
|
|
27
|
+
// https://developers.google.com/maps/documentation/places/web-service/details
|
|
28
|
+
const placeResponse = await Parse.Cloud.httpRequest({
|
|
29
|
+
url: "https://maps.googleapis.com/maps/api/place/details/json",
|
|
30
|
+
params: {
|
|
31
|
+
key: API_KEY,
|
|
32
|
+
fields: "name,formatted_address,geometry",
|
|
33
|
+
sensor: true,
|
|
34
|
+
reference: prediction.reference,
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
const place = placeResponse.data.result;
|
|
38
|
+
result.push({
|
|
39
|
+
ref: prediction.reference,
|
|
40
|
+
title: place.name,
|
|
41
|
+
titleFull: prediction.description,
|
|
42
|
+
description: removeTitle(place.name, prediction.description),
|
|
43
|
+
address: place.formatted_address,
|
|
44
|
+
latitude: place.geometry.location.lat,
|
|
45
|
+
longitude: place.geometry.location.lng,
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
return result;
|
|
49
|
+
}
|
|
50
|
+
catch (error) {
|
|
51
|
+
console.error(error);
|
|
52
|
+
return [];
|
|
53
|
+
}
|
|
54
|
+
}, {
|
|
55
|
+
requireUser: true,
|
|
56
|
+
fields: ["query", "limit", "latitude", "longitude"],
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
exports.init = init;
|
|
60
|
+
function removeTitle(title, description) {
|
|
61
|
+
const prefix = `${title}, `;
|
|
62
|
+
if (description.startsWith(prefix)) {
|
|
63
|
+
return description.replace(prefix, "");
|
|
64
|
+
}
|
|
65
|
+
return description;
|
|
66
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function init(name: string): Promise<void>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.init = void 0;
|
|
4
|
+
const __1 = require("..");
|
|
5
|
+
const opendash_geo_graphhopper_geocode_1 = require("./opendash-geo-graphhopper-geocode");
|
|
6
|
+
async function init(name) {
|
|
7
|
+
Parse.Cloud.define(name, async function (request) {
|
|
8
|
+
const GRAPHHOPPER_HOST = (0, __1.getEnv)("PARSE_SERVER_GEO_GRAPHHOPPER_HOST");
|
|
9
|
+
if (!GRAPHHOPPER_HOST) {
|
|
10
|
+
throw new Parse.Error(Parse.Error.INTERNAL_SERVER_ERROR, `Feature not enabled [${name}-1]`);
|
|
11
|
+
}
|
|
12
|
+
const GRAPHHOPPER_API_KEY = (0, __1.getEnv)("PARSE_SERVER_GEO_GRAPHHOPPER_API_KEY");
|
|
13
|
+
if (!GRAPHHOPPER_API_KEY) {
|
|
14
|
+
throw new Parse.Error(Parse.Error.INTERNAL_SERVER_ERROR, `Feature not enabled [${name}-2]`);
|
|
15
|
+
}
|
|
16
|
+
try {
|
|
17
|
+
const response = await Parse.Cloud.httpRequest({
|
|
18
|
+
url: GRAPHHOPPER_HOST + "/geocode",
|
|
19
|
+
params: {
|
|
20
|
+
key: GRAPHHOPPER_API_KEY,
|
|
21
|
+
locale: "de",
|
|
22
|
+
reverse: "true",
|
|
23
|
+
point: request.params.latitude + "," + request.params.longitude,
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
return (0, opendash_geo_graphhopper_geocode_1.getGeoCodingResult)(response.data.hits);
|
|
27
|
+
}
|
|
28
|
+
catch (error) {
|
|
29
|
+
console.error(error);
|
|
30
|
+
return [];
|
|
31
|
+
}
|
|
32
|
+
}, {
|
|
33
|
+
requireUser: true,
|
|
34
|
+
fields: ["latitude", "longitude"],
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
exports.init = init;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getGeoCodingResult = exports.init = void 0;
|
|
4
|
+
const __1 = require("..");
|
|
5
|
+
async function init(name) {
|
|
6
|
+
Parse.Cloud.define(name, async function (request) {
|
|
7
|
+
const GRAPHHOPPER_HOST = (0, __1.getEnv)("PARSE_SERVER_GEO_GRAPHHOPPER_HOST");
|
|
8
|
+
if (!GRAPHHOPPER_HOST) {
|
|
9
|
+
throw new Parse.Error(Parse.Error.INTERNAL_SERVER_ERROR, `Feature not enabled [${name}-1]`);
|
|
10
|
+
}
|
|
11
|
+
const GRAPHHOPPER_API_KEY = (0, __1.getEnv)("PARSE_SERVER_GEO_GRAPHHOPPER_API_KEY");
|
|
12
|
+
if (!GRAPHHOPPER_API_KEY) {
|
|
13
|
+
throw new Parse.Error(Parse.Error.INTERNAL_SERVER_ERROR, `Feature not enabled [${name}-2]`);
|
|
14
|
+
}
|
|
15
|
+
try {
|
|
16
|
+
const response = await Parse.Cloud.httpRequest({
|
|
17
|
+
url: GRAPHHOPPER_HOST + "/geocode",
|
|
18
|
+
params: {
|
|
19
|
+
key: GRAPHHOPPER_API_KEY,
|
|
20
|
+
locale: "de",
|
|
21
|
+
limit: "3",
|
|
22
|
+
q: request.params.query,
|
|
23
|
+
point: request.params.latitude + "," + request.params.longitude,
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
return getGeoCodingResult(response.data.hits);
|
|
27
|
+
}
|
|
28
|
+
catch (error) {
|
|
29
|
+
console.error(error);
|
|
30
|
+
return [];
|
|
31
|
+
}
|
|
32
|
+
}, {
|
|
33
|
+
requireUser: true,
|
|
34
|
+
fields: ["query", "latitude", "longitude"],
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
exports.init = init;
|
|
38
|
+
function getGeoCodingResult(hits) {
|
|
39
|
+
return hits.map((hit) => ({
|
|
40
|
+
title: getGeoCodingTitle(hit),
|
|
41
|
+
description: getGeoCodingDescription(hit),
|
|
42
|
+
latitude: hit.point.lat,
|
|
43
|
+
longitude: hit.point.lng,
|
|
44
|
+
}));
|
|
45
|
+
}
|
|
46
|
+
exports.getGeoCodingResult = getGeoCodingResult;
|
|
47
|
+
function getGeoCodingTitle(hit) {
|
|
48
|
+
if (hit.name && hit.housenumber) {
|
|
49
|
+
return hit.name + " " + hit.housenumber;
|
|
50
|
+
}
|
|
51
|
+
return hit.name;
|
|
52
|
+
}
|
|
53
|
+
function getGeoCodingDescription(hit) {
|
|
54
|
+
const country = hit.country ? `, ${hit.country}` : "";
|
|
55
|
+
if (hit.city && hit.postcode) {
|
|
56
|
+
return hit.postcode + " " + hit.city + country;
|
|
57
|
+
}
|
|
58
|
+
if (hit.city) {
|
|
59
|
+
return hit.city + country;
|
|
60
|
+
}
|
|
61
|
+
if (hit.postcode) {
|
|
62
|
+
return hit.postcode + country;
|
|
63
|
+
}
|
|
64
|
+
return "";
|
|
65
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.init =
|
|
3
|
+
exports.init = init;
|
|
4
4
|
async function init(name) {
|
|
5
5
|
Parse.Cloud.define(name, async function (request) {
|
|
6
6
|
const params = request.params;
|
|
@@ -27,4 +27,3 @@ async function init(name) {
|
|
|
27
27
|
},
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
-
exports.init = init;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.init =
|
|
3
|
+
exports.init = init;
|
|
4
4
|
async function init(name) {
|
|
5
5
|
Parse.Cloud.define(name, async function (request) {
|
|
6
6
|
try {
|
|
@@ -15,4 +15,3 @@ async function init(name) {
|
|
|
15
15
|
fields: ["query", "latitude", "longitude"],
|
|
16
16
|
});
|
|
17
17
|
}
|
|
18
|
-
exports.init = init;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.init =
|
|
3
|
+
exports.init = init;
|
|
4
4
|
const __1 = require("..");
|
|
5
5
|
const transformLogin_1 = require("../helper/transformLogin");
|
|
6
6
|
const openinc_auth_common_1 = require("./openinc-auth.common");
|
|
@@ -40,4 +40,3 @@ async function init(name) {
|
|
|
40
40
|
},
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
|
-
exports.init = init;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.init =
|
|
3
|
+
exports.init = init;
|
|
4
4
|
const openinc_auth_common_1 = require("./openinc-auth.common");
|
|
5
5
|
async function init(name) {
|
|
6
6
|
Parse.Cloud.define(name, async function (request) {
|
|
@@ -20,4 +20,3 @@ async function init(name) {
|
|
|
20
20
|
},
|
|
21
21
|
});
|
|
22
22
|
}
|
|
23
|
-
exports.init = init;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.init =
|
|
3
|
+
exports.init = init;
|
|
4
4
|
const transformLogin_1 = require("../helper/transformLogin");
|
|
5
5
|
const openinc_auth_common_1 = require("./openinc-auth.common");
|
|
6
6
|
async function init(name) {
|
|
@@ -69,4 +69,3 @@ async function init(name) {
|
|
|
69
69
|
},
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
|
-
exports.init = init;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.init =
|
|
3
|
+
exports.init = init;
|
|
4
4
|
const __1 = require("..");
|
|
5
5
|
const transformLogin_1 = require("../helper/transformLogin");
|
|
6
6
|
const openinc_auth_common_1 = require("./openinc-auth.common");
|
|
@@ -48,4 +48,3 @@ async function init(name) {
|
|
|
48
48
|
},
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
|
-
exports.init = init;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.init =
|
|
3
|
+
exports.init = init;
|
|
4
4
|
const transformLogin_1 = require("../helper/transformLogin");
|
|
5
5
|
async function init(name) {
|
|
6
6
|
Parse.Cloud.define(name, async function (request) {
|
|
@@ -48,4 +48,3 @@ async function init(name) {
|
|
|
48
48
|
},
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
|
-
exports.init = init;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.init =
|
|
3
|
+
exports.init = init;
|
|
4
4
|
const __1 = require("..");
|
|
5
5
|
const transformLogin_1 = require("../helper/transformLogin");
|
|
6
6
|
const openinc_auth_common_1 = require("./openinc-auth.common");
|
|
@@ -40,4 +40,3 @@ async function init(name) {
|
|
|
40
40
|
},
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
|
-
exports.init = init;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.init =
|
|
3
|
+
exports.init = init;
|
|
4
4
|
const openinc_auth_common_1 = require("./openinc-auth.common");
|
|
5
5
|
async function init(name) {
|
|
6
6
|
Parse.Cloud.define(name, async function (request) {
|
|
@@ -25,4 +25,3 @@ async function init(name) {
|
|
|
25
25
|
},
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
-
exports.init = init;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.init =
|
|
3
|
+
exports.init = init;
|
|
4
4
|
const config_1 = require("../config");
|
|
5
5
|
const transformLogin_1 = require("../helper/transformLogin");
|
|
6
6
|
const types_1 = require("../types");
|
|
@@ -86,4 +86,3 @@ async function init(name) {
|
|
|
86
86
|
},
|
|
87
87
|
});
|
|
88
88
|
}
|
|
89
|
-
exports.init = init;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.init =
|
|
3
|
+
exports.init = init;
|
|
4
4
|
const openinc_auth_common_1 = require("./openinc-auth.common");
|
|
5
5
|
async function init(name) {
|
|
6
6
|
Parse.Cloud.define(name, async function (request) {
|
|
@@ -34,4 +34,3 @@ async function init(name) {
|
|
|
34
34
|
},
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
|
-
exports.init = init;
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.createToken = createToken;
|
|
4
|
+
exports.createUrl = createUrl;
|
|
5
|
+
exports.consumeToken = consumeToken;
|
|
6
|
+
exports.isExpired = isExpired;
|
|
7
|
+
exports.createSessionToken = createSessionToken;
|
|
4
8
|
const crypto_1 = require("crypto");
|
|
5
9
|
const config_1 = require("../config");
|
|
6
10
|
const types_1 = require("../types");
|
|
@@ -17,7 +21,6 @@ async function createToken(type, userId, url) {
|
|
|
17
21
|
await token.save(null, { useMasterKey: true });
|
|
18
22
|
return { token: token.key, url: token.url };
|
|
19
23
|
}
|
|
20
|
-
exports.createToken = createToken;
|
|
21
24
|
function createUrl(url, token) {
|
|
22
25
|
if (!config_1.config.getBoolean("ENFORCE_APP_URL")) {
|
|
23
26
|
return url.replace("{{token}}", token);
|
|
@@ -28,7 +31,6 @@ function createUrl(url, token) {
|
|
|
28
31
|
providedUrl.host = appUrl.host;
|
|
29
32
|
return providedUrl.toString();
|
|
30
33
|
}
|
|
31
|
-
exports.createUrl = createUrl;
|
|
32
34
|
async function consumeToken(type, key, doNotConsume = false) {
|
|
33
35
|
const token = await new Parse.Query(types_1.Core_Token)
|
|
34
36
|
.equalTo("key", key)
|
|
@@ -46,11 +48,9 @@ async function consumeToken(type, key, doNotConsume = false) {
|
|
|
46
48
|
}
|
|
47
49
|
return token.payload;
|
|
48
50
|
}
|
|
49
|
-
exports.consumeToken = consumeToken;
|
|
50
51
|
function isExpired(token) {
|
|
51
52
|
return token.createdAt.valueOf() + 1000 * 60 * 60 * 24 < Date.now();
|
|
52
53
|
}
|
|
53
|
-
exports.isExpired = isExpired;
|
|
54
54
|
async function createSessionToken(user, installationId, createdWith) {
|
|
55
55
|
const sessionToken = "r:" + (0, crypto_1.randomBytes)(64).toString("hex").slice(0, 32);
|
|
56
56
|
const session = new Parse.Object("_Session", {
|
|
@@ -64,4 +64,3 @@ async function createSessionToken(user, installationId, createdWith) {
|
|
|
64
64
|
await session.save(null, { useMasterKey: true });
|
|
65
65
|
return sessionToken;
|
|
66
66
|
}
|
|
67
|
-
exports.createSessionToken = createSessionToken;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.init =
|
|
3
|
+
exports.init = init;
|
|
4
4
|
const config_1 = require("../config");
|
|
5
5
|
const types_1 = require("../types");
|
|
6
6
|
async function init(name) {
|
|
@@ -44,7 +44,6 @@ async function init(name) {
|
|
|
44
44
|
};
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
|
-
exports.init = init;
|
|
48
47
|
async function getTenants() {
|
|
49
48
|
try {
|
|
50
49
|
const tenants = await new Parse.Query(types_1.Tenant)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.init =
|
|
3
|
+
exports.init = init;
|
|
4
4
|
const openinc_geo_google_common_1 = require("./openinc-geo-google.common");
|
|
5
5
|
async function init(name) {
|
|
6
6
|
Parse.Cloud.define(name, async (request) => {
|
|
@@ -48,7 +48,6 @@ async function init(name) {
|
|
|
48
48
|
fields: ["query", "limit", "latitude", "longitude"],
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
|
-
exports.init = init;
|
|
52
51
|
function removeTitle(title, description) {
|
|
53
52
|
const prefix = `${title}, `;
|
|
54
53
|
if (description.startsWith(prefix)) {
|
|
@@ -3,7 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.getGoogleApiKey = getGoogleApiKey;
|
|
7
|
+
exports.get = get;
|
|
7
8
|
const node_fetch_1 = __importDefault(require("node-fetch"));
|
|
8
9
|
const config_1 = require("../config");
|
|
9
10
|
const url_1 = require("url");
|
|
@@ -14,7 +15,6 @@ function getGoogleApiKey() {
|
|
|
14
15
|
}
|
|
15
16
|
return API_KEY;
|
|
16
17
|
}
|
|
17
|
-
exports.getGoogleApiKey = getGoogleApiKey;
|
|
18
18
|
async function get(path, params) {
|
|
19
19
|
const key = getGoogleApiKey();
|
|
20
20
|
const qs = new url_1.URLSearchParams();
|
|
@@ -31,4 +31,3 @@ async function get(path, params) {
|
|
|
31
31
|
}
|
|
32
32
|
return await response.json();
|
|
33
33
|
}
|
|
34
|
-
exports.get = get;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.init =
|
|
3
|
+
exports.init = init;
|
|
4
4
|
const openinc_geo_graphhopper_common_1 = require("./openinc-geo-graphhopper.common");
|
|
5
5
|
async function init(name) {
|
|
6
6
|
Parse.Cloud.define(name, async function (request) {
|
|
@@ -21,4 +21,3 @@ async function init(name) {
|
|
|
21
21
|
fields: ["latitude", "longitude", "limit"],
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
-
exports.init = init;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.init =
|
|
3
|
+
exports.init = init;
|
|
4
4
|
const openinc_geo_graphhopper_common_1 = require("./openinc-geo-graphhopper.common");
|
|
5
5
|
async function init(name) {
|
|
6
6
|
Parse.Cloud.define(name, async function (request) {
|
|
@@ -21,4 +21,3 @@ async function init(name) {
|
|
|
21
21
|
fields: ["latitude", "longitude", "limit"],
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
-
exports.init = init;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.init =
|
|
3
|
+
exports.init = init;
|
|
4
4
|
const openinc_geo_graphhopper_common_1 = require("./openinc-geo-graphhopper.common");
|
|
5
5
|
async function init(name) {
|
|
6
6
|
Parse.Cloud.define(name, async function (request) {
|
|
@@ -21,4 +21,3 @@ async function init(name) {
|
|
|
21
21
|
fields: ["query", "latitude", "longitude"],
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
-
exports.init = init;
|