Skip to content

Commit 6439f63

Browse files
committed
Done requests changes
1 parent 2d29ee4 commit 6439f63

File tree

5 files changed

+103
-40
lines changed

5 files changed

+103
-40
lines changed

components/bigdatacorp/actions/get-address-data/get-address-data.mjs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ export default {
1212
doc: {
1313
propDefinition: [
1414
app,
15-
"doc"
15+
"doc",
1616
],
17-
description: "Zipcode of the address you want to search for, i.e.: `88048-656`"
17+
description: "Zipcode of the address you want to search for, i.e.: `88048-656`",
1818
},
1919
dataset: {
2020
propDefinition: [
2121
app,
22-
"dataset"
22+
"dataset",
2323
],
2424
options: constants.ADDRESS_DATASETS,
25-
}
25+
},
2626
},
2727

2828
async run({ $ }) {
@@ -31,7 +31,7 @@ export default {
3131
data: {
3232
Datasets: this.dataset,
3333
q: `zipcode{${this.doc}}`,
34-
}
34+
},
3535
});
3636

3737
$.export("$summary", `Successfully sent the request for the '${this.dataset}' dataset. Status: ${response.Status[this.dataset][0].Message}`);

components/bigdatacorp/actions/get-company-data/get-company-data.mjs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ export default {
1212
doc: {
1313
propDefinition: [
1414
app,
15-
"doc"
15+
"doc",
1616
],
17-
description: "Document Number of the entity you want to search for, i.e.: `27.823.957/0001-94`"
17+
description: "Document Number of the entity you want to search for, i.e.: `27.823.957/0001-94`",
1818
},
1919
dataset: {
2020
propDefinition: [
2121
app,
22-
"dataset"
22+
"dataset",
2323
],
2424
options: constants.COMPANY_DATASETS,
25-
}
25+
},
2626
},
2727

2828
async run({ $ }) {
@@ -31,7 +31,7 @@ export default {
3131
data: {
3232
Datasets: this.dataset,
3333
q: `doc{${this.doc}}`,
34-
}
34+
},
3535
});
3636

3737
$.export("$summary", `Successfully sent the request for the '${this.dataset}' dataset. Status: ${response.Status[this.dataset][0].Message}`);

components/bigdatacorp/actions/get-person-data/get-person-data.mjs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@ export default {
1212
doc: {
1313
propDefinition: [
1414
app,
15-
"doc"
15+
"doc",
1616
],
17-
description: "Document Number of the entity you want to search for, i.e.: `128.982.560-21`"
17+
description: "Document Number of the entity you want to search for, i.e.: `128.982.560-21`",
1818
},
1919
dataset: {
2020
propDefinition: [
2121
app,
22-
"dataset"
22+
"dataset",
2323
],
2424
options: constants.PERSON_DATASETS,
25-
}
25+
},
2626
},
2727

2828
async run({ $ }) {
@@ -31,7 +31,7 @@ export default {
3131
data: {
3232
Datasets: this.dataset,
3333
q: `doc{${this.doc}}`,
34-
}
34+
},
3535
});
3636

3737
$.export("$summary", `Successfully sent the request for the '${this.dataset}' dataset. Status: ${response.Status[this.dataset][0].Message}`);

components/bigdatacorp/bigdatacorp.app.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export default {
1717
},
1818
methods: {
1919
_baseUrl() {
20-
return `https://plataforma.bigdatacorp.com.br`;
20+
return "https://plataforma.bigdatacorp.com.br";
2121
},
2222
async _makeRequest(opts = {}) {
2323
const {
@@ -31,7 +31,7 @@ export default {
3131
url: this._baseUrl() + path,
3232
headers: {
3333
...headers,
34-
"Accept": `application/json`,
34+
"Accept": "application/json",
3535
"AccessToken": `${this.$auth.access_token}`,
3636
"TokenId": `${this.$auth.token_id}`,
3737
},
Lines changed: 86 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,92 @@
11
export default {
22
PERSON_DATASETS: [
3-
{ "value": "emails_extended", "label": "Emails" },
4-
{ "value": "phones_extended", "label": "Phones" },
5-
{ "value": "registration_data", "label": "Registration Data" },
6-
{ "value": "related_people_emails", "label": "Related People Emails" },
7-
{ "value": "related_people_phones", "label": "Related People Phones" },
8-
{ "value": "related_people_addresses", "label": "Related People Addresses" },
9-
{ "value": "vehicles", "label": "Vehicles" },
3+
{
4+
"value": "emails_extended",
5+
"label": "Emails",
6+
},
7+
{
8+
"value": "phones_extended",
9+
"label": "Phones",
10+
},
11+
{
12+
"value": "registration_data",
13+
"label": "Registration Data",
14+
},
15+
{
16+
"value": "related_people_emails",
17+
"label": "Related People Emails",
18+
},
19+
{
20+
"value": "related_people_phones",
21+
"label": "Related People Phones",
22+
},
23+
{
24+
"value": "related_people_addresses",
25+
"label": "Related People Addresses",
26+
},
27+
{
28+
"value": "vehicles",
29+
"label": "Vehicles",
30+
},
1031
],
1132
COMPANY_DATASETS: [
12-
{ "value": "emails_extended", "label": "Emails" },
13-
{ "value": "phones_extended", "label": "Phones" },
14-
{ "value": "registration_data", "label": "Registration Data" },
15-
{ "value": "related_people_emails", "label": "Related People Emails" },
16-
{ "value": "related_people_phones", "label": "Related People Phones" },
17-
{ "value": "related_people_addresses", "label": "Related People Addresses" },
18-
{ "value": "political_involvement", "label": "Political Involvement" },
19-
{ "value": "online_ads", "label": "Online Ads" },
33+
{
34+
"value": "emails_extended",
35+
"label": "Emails",
36+
},
37+
{
38+
"value": "phones_extended",
39+
"label": "Phones",
40+
},
41+
{
42+
"value": "registration_data",
43+
"label": "Registration Data",
44+
},
45+
{
46+
"value": "related_people_emails",
47+
"label": "Related People Emails",
48+
},
49+
{
50+
"value": "related_people_phones",
51+
"label": "Related People Phones",
52+
},
53+
{
54+
"value": "related_people_addresses",
55+
"label": "Related People Addresses",
56+
},
57+
{
58+
"value": "political_involvement",
59+
"label": "Political Involvement",
60+
},
61+
{
62+
"value": "online_ads",
63+
"label": "Online Ads",
64+
},
2065
],
2166
ADDRESS_DATASETS: [
22-
{ "value": "legal_amazon", "label": "Legal Amazon" },
23-
{ "value": "environmental_preservation_areas", "label": "Enviromental Preservation Areas" },
24-
{ "value": "biomes_data", "label": "Biomes Data" },
25-
{ "value": "embargoed_areas", "label": "Embargoed Areas" },
26-
{ "value": "legal_reserve", "label": "Legal Reserve" },
27-
{ "value": "basic_data", "label": "Basic Data" },
28-
]
29-
}
67+
{
68+
"value": "legal_amazon",
69+
"label": "Legal Amazon",
70+
},
71+
{
72+
"value": "environmental_preservation_areas",
73+
"label": "Enviromental Preservation Areas",
74+
},
75+
{
76+
"value": "biomes_data",
77+
"label": "Biomes Data",
78+
},
79+
{
80+
"value": "embargoed_areas",
81+
"label": "Embargoed Areas",
82+
},
83+
{
84+
"value": "legal_reserve",
85+
"label": "Legal Reserve",
86+
},
87+
{
88+
"value": "basic_data",
89+
"label": "Basic Data",
90+
},
91+
],
92+
};

0 commit comments

Comments
 (0)