Skip to content

Commit 59e98ba

Browse files
committed
Added requested changes
1 parent 75df85e commit 59e98ba

File tree

3 files changed

+20
-18
lines changed

3 files changed

+20
-18
lines changed

components/epsy/actions/email-lookup/email-lookup.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ export default {
1111
value: {
1212
propDefinition: [
1313
app,
14-
"value"
15-
]
14+
"value",
15+
],
1616
},
1717
},
1818

@@ -22,7 +22,7 @@ export default {
2222
data: {
2323
value: this.value,
2424
lookupId: 67,
25-
}
25+
},
2626
});
2727
$.export("$summary", `Successfully sent request. Use the ID to get the results: '${response.id}'`);
2828

components/epsy/actions/name-lookup/name-lookup.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ export default {
1111
value: {
1212
propDefinition: [
1313
app,
14-
"value"
15-
]
14+
"value",
15+
],
1616
},
1717
},
1818

@@ -22,7 +22,7 @@ export default {
2222
data: {
2323
value: this.value,
2424
lookupId: 149,
25-
}
25+
},
2626
});
2727
$.export("$summary", `Successfully sent request. Use the ID to get the results: '${response.id}'`);
2828
return response;

components/epsy/epsy.app.mjs

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ export default {
1818
const searchIds = response.list;
1919
return searchIds.map(({ id }) => ({
2020
value: id,
21-
}))
22-
}
23-
}
21+
}));
22+
},
23+
},
2424
},
2525
methods: {
2626
_baseUrl() {
@@ -38,8 +38,8 @@ export default {
3838
url: this._baseUrl() + path,
3939
headers: {
4040
...headers,
41-
accept: `application/json`,
42-
"content-type": `application/json`,
41+
"accept": "application/json",
42+
"content-type": "application/json",
4343
},
4444
data: {
4545
...data,
@@ -52,38 +52,40 @@ export default {
5252
url: this._baseUrl() + path,
5353
headers: {
5454
...headers,
55-
"accept": `application/json`,
56-
"content-type": `application/json`,
55+
"accept": "application/json",
56+
"content-type": "application/json",
5757
},
5858
data: {
5959
...data,
6060
key: `${this.$auth.api_key}`,
61-
}
61+
},
6262
});
6363
},
6464
async emailLookup(args = {}) {
6565
return this._makeRequest({
66-
path: `/developer/combined_email`,
66+
path: "/developer/combined_email",
6767
method: "post",
6868
...args,
6969
});
7070
},
7171
async nameLookup(args = {}) {
7272
return this._makeRequest({
73-
path: `/developer/combined_name`,
73+
path: "/developer/combined_name",
7474
method: "post",
7575
...args,
7676
});
7777
},
78-
async getLookupResults({ searchId, ...args }) {
78+
async getLookupResults({
79+
searchId, ...args
80+
}) {
7981
return this._makeRequest({
8082
path: `/request-monitor/api-usage/${searchId}`,
8183
...args,
8284
});
8385
},
8486
async getSearchIds(args = {}) {
8587
return this._makeRequest({
86-
path: `/request-monitor/api-usage`,
88+
path: "/request-monitor/api-usage",
8789
params: {
8890
key: `${this.$auth.api_key}`,
8991
},

0 commit comments

Comments
 (0)