Skip to content

Commit ee44b67

Browse files
committed
Fix typos in targeting fields and update description formatting in schedule-message component
1 parent 6e81037 commit ee44b67

File tree

2 files changed

+30
-66
lines changed

2 files changed

+30
-66
lines changed

components/hootsuite/actions/schedule-message/schedule-message.mjs

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default {
3131
scheduledSendTime: {
3232
type: "string",
3333
label: "Scheduled Send Time",
34-
description: "The time the message is scheduled to be sent in UTC time, (ISO-8601)[https://en.wikipedia.org/wiki/ISO_8601] format. Missing or different timezones will not be accepted, to ensure there is no ambiguity about scheduled time. Dates must end with 'Z' to be accepted.",
34+
description: "The time the message is scheduled to be sent in UTC time, [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format. Missing or different timezones will not be accepted, to ensure there is no ambiguity about scheduled time. Dates must end with 'Z' to be accepted.",
3535
optional: true,
3636
},
3737
webhookUrls: {
@@ -46,7 +46,7 @@ export default {
4646
description: "The Hootsuite message tags to apply to the message. To set tags the social profile must belong to an organization. Tags are case sensitive. Limited permission members can only use the existing tags for organization and cannot create new ones. See more about message tags at the Hootsuite Help Center. Not supported by Pinterest.",
4747
optional: true,
4848
},
49-
targetingFecabookPageAgeMin: {
49+
targetingFacebookPageAgeMin: {
5050
type: "integer",
5151
label: "Targeting Facebook Page - Age Min",
5252
description: "Minimum age to target the message at.",
@@ -59,7 +59,7 @@ export default {
5959
],
6060
optional: true,
6161
},
62-
targetingFecabookPageEducation: {
62+
targetingFacebookPageEducation: {
6363
type: "string",
6464
label: "Targeting Facebook Page - Education",
6565
description: "The education level of the Facebook page to target.",
@@ -70,7 +70,7 @@ export default {
7070
],
7171
optional: true,
7272
},
73-
targetingFecabookPageInterestIn: {
73+
targetingFacebookPageInterestIn: {
7474
type: "string[]",
7575
label: "Targeting Facebook Page - Interests",
7676
description: "Interested in preferences to target the message at.",
@@ -80,7 +80,7 @@ export default {
8080
],
8181
optional: true,
8282
},
83-
targetingFecabookPageRelationshipStatus: {
83+
targetingFacebookPageRelationshipStatus: {
8484
type: "string",
8585
label: "Targeting Facebook Page - Relationship Status",
8686
description: "Relationship status to target the message at.",
@@ -92,25 +92,25 @@ export default {
9292
],
9393
optional: true,
9494
},
95-
targetingFecabookPageCountry: {
95+
targetingFacebookPageCountry: {
9696
type: "string[]",
9797
label: "Targeting Facebook Page - Country",
9898
description: "Country to target the message at. 2-digit ISO 3166 format code as provided by Facebook.",
9999
optional: true,
100100
},
101-
targetingFecabookPageRegions: {
101+
targetingFacebookPageRegions: {
102102
type: "string[]",
103103
label: "Targeting Facebook Page - Regions",
104104
description: "Region to target the message at. Note that regions can only be specified when there is exactly one country targeted. Limit 200.",
105105
optional: true,
106106
},
107-
targetingFecabookPageCities: {
107+
targetingFacebookPageCities: {
108108
type: "string[]",
109109
label: "Targeting Facebook Page - Cities",
110110
description: "City to target the message at. Note that cities can only be specified when there is exactly one country targeted. Limit 250.",
111111
optional: true,
112112
},
113-
targetingFecabookPageZips: {
113+
targetingFacebookPageZips: {
114114
type: "string[]",
115115
label: "Targeting Facebook Page - Zip",
116116
description: "Zip/Postal Code to target the message at. Limit 50,000.",
@@ -154,32 +154,32 @@ export default {
154154
targetingLinkedInV2CompanyLocations: {
155155
type: "string[]",
156156
label: "Targeting LinkedIn V2 Company - Locations",
157-
description: "Locations to target the message at, expected format of urn:li:geo:{CODE}. (Geo Locations reference)[https://learn.microsoft.com/en-us/linkedin/shared/references/v2/standardized-data/locations/geo], (Geo Typeahead Locations reference)[https://learn.microsoft.com/en-us/linkedin/shared/references/v2/standardized-data/locations/geo-typeahead?tabs=http]",
157+
description: "Locations to target the message at, expected format of `urn:li:geo:{CODE}`. [Geo Locations reference](https://learn.microsoft.com/en-us/linkedin/shared/references/v2/standardized-data/locations/geo), [Geo Typeahead Locations reference](https://learn.microsoft.com/en-us/linkedin/shared/references/v2/standardized-data/locations/geo-typeahead?tabs=http)",
158158
optional: true,
159159
},
160160
targetingLinkedInV2CompanyStaffCountRange: {
161161
type: "string[]",
162162
label: "Targeting LinkedIn V2 Company - Staff Count Range",
163-
description: "Staff count to target the message at, expected format of SIZE_{VALUES}. (Staff count codes reference)[https://learn.microsoft.com/en-us/linkedin/shared/references/reference-tables/company-size-codes]",
163+
description: "Staff count to target the message at, expected format of `SIZE_{VALUES}`. [Staff count codes reference](https://learn.microsoft.com/en-us/linkedin/shared/references/reference-tables/company-size-codes)",
164164
options: STAFF_COUNT_RANGE_OPTIONS,
165165
optional: true,
166166
},
167167
targetingLinkedInV2CompanySeniorities: {
168168
type: "string[]",
169169
label: "Targeting LinkedIn V2 Company - Seniorities",
170-
description: "Seniorities to target the message at, expected format of urn:li:seniority:{CODE}. (Seniorities codes reference)[https://learn.microsoft.com/en-us/linkedin/shared/references/reference-tables/seniority-codes]",
170+
description: "Seniorities to target the message at, expected format of `urn:li:seniority:{CODE}`. [Seniorities codes reference](https://learn.microsoft.com/en-us/linkedin/shared/references/reference-tables/seniority-codes)",
171171
optional: true,
172172
},
173173
targetingLinkedInV2CompanyIndustries: {
174174
type: "string[]",
175175
label: "Targeting LinkedIn V2 Company - Industries",
176-
description: "Industries to target the message at, expected format of urn:li:industry:{CODE}. (Industries codes reference)[https://learn.microsoft.com/en-us/linkedin/shared/references/reference-tables/industry-codes-v2]",
176+
description: "Industries to target the message at, expected format of `urn:li:industry:{CODE}`. [Industries codes reference](https://learn.microsoft.com/en-us/linkedin/shared/references/reference-tables/industry-codes-v2)",
177177
optional: true,
178178
},
179179
targetingLinkedInV2CompanyInterfaceLocations: {
180180
type: "string[]",
181181
label: "Targeting LinkedIn V2 Company - Interface Locations",
182-
description: "Languages to target the message at, expected format of {\"country\":\"COUNTRY\",\"language\":\"language\"}. (Language codes reference)[https://learn.microsoft.com/en-us/linkedin/shared/references/reference-tables/language-codes] Languages can be interpreted as this format: language_COUNTRY, replace in request as necessary.",
182+
description: "Languages to target the message at, expected format of `{\"country\":\"COUNTRY\",\"language\":\"language\"}`. [Language codes reference](https://learn.microsoft.com/en-us/linkedin/shared/references/reference-tables/language-codes) Languages can be interpreted as this format: language_COUNTRY, replace in request as necessary.",
183183
optional: true,
184184
},
185185
privacyFacebookVisibility: {
@@ -237,35 +237,35 @@ export default {
237237
async run({ $ }) {
238238
const facebookPage = {};
239239

240-
if (this.targetingFecabookPageAgeMin) {
241-
facebookPage.ageMin = this.targetingFecabookPageAgeMin;
240+
if (this.targetingFacebookPageAgeMin) {
241+
facebookPage.ageMin = this.targetingFacebookPageAgeMin;
242242
}
243-
if (this.targetingFecabookPageEducation) {
244-
facebookPage.education = parseObject(this.targetingFecabookPageEducation);
243+
if (this.targetingFacebookPageEducation) {
244+
facebookPage.education = parseObject(this.targetingFacebookPageEducation);
245245
}
246-
if (this.targetingFecabookPageInterestIn) {
247-
facebookPage.interestIn = parseObject(this.targetingFecabookPageInterestIn);
246+
if (this.targetingFacebookPageInterestIn) {
247+
facebookPage.interestIn = parseObject(this.targetingFacebookPageInterestIn);
248248
}
249-
if (this.targetingFecabookPageRelationshipStatus) {
250-
facebookPage.relationshipStatus = parseObject(this.targetingFecabookPageRelationshipStatus);
249+
if (this.targetingFacebookPageRelationshipStatus) {
250+
facebookPage.relationshipStatus = parseObject(this.targetingFacebookPageRelationshipStatus);
251251
}
252-
if (this.targetingFecabookPageCountry) {
253-
facebookPage.countries = parseObject(this.targetingFecabookPageCountry)?.map((country) => ({
252+
if (this.targetingFacebookPageCountry) {
253+
facebookPage.countries = parseObject(this.targetingFacebookPageCountry)?.map((country) => ({
254254
v: country,
255255
}));
256256
}
257-
if (this.targetingFecabookPageRegions) {
258-
facebookPage.regions = parseObject(this.targetingFecabookPageRegions)?.map((region) => ({
257+
if (this.targetingFacebookPageRegions) {
258+
facebookPage.regions = parseObject(this.targetingFacebookPageRegions)?.map((region) => ({
259259
v: region,
260260
}));
261261
}
262-
if (this.targetingFecabookPageCities) {
263-
facebookPage.cities = parseObject(this.targetingFecabookPageCities)?.map((city) => ({
262+
if (this.targetingFacebookPageCities) {
263+
facebookPage.cities = parseObject(this.targetingFacebookPageCities)?.map((city) => ({
264264
v: city,
265265
}));
266266
}
267-
if (this.targetingFecabookPageZips) {
268-
facebookPage.zips = parseObject(this.targetingFecabookPageZips)?.map((zip) => ({
267+
if (this.targetingFacebookPageZips) {
268+
facebookPage.zips = parseObject(this.targetingFacebookPageZips)?.map((zip) => ({
269269
v: zip,
270270
}));
271271
}

components/hootsuite/common/constants.mjs

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -206,46 +206,10 @@ export const GEOGRAPHY_OPTIONS = [
206206
label: "Haryana",
207207
value: "as.in.hr",
208208
},
209-
{
210-
label: "Daman & Diu",
211-
value: "as.in.dd",
212-
},
213-
{
214-
label: "Delhi",
215-
value: "as.in.dl",
216-
},
217-
{
218-
label: "New Delhi Area, India",
219-
value: "as.in.dl.7151",
220-
},
221-
{
222-
label: "Dadra & Nagar Haveli",
223-
value: "as.in.dn",
224-
},
225-
{
226-
label: "Goa",
227-
value: "as.in.ga",
228-
},
229209
{
230210
label: "Gujarat",
231211
value: "as.in.gj",
232212
},
233-
{
234-
label: "Vadodara Area, India",
235-
value: "as.in.gj.6552",
236-
},
237-
{
238-
label: "Ahmedabad Area, India",
239-
value: "as.in.gj.7065",
240-
},
241-
{
242-
label: "Himachal Pradesh",
243-
value: "as.in.hp",
244-
},
245-
{
246-
label: "Haryana",
247-
value: "as.in.hr",
248-
},
249213
{
250214
label: "Gurgaon, India",
251215
value: "as.in.hr.7391",

0 commit comments

Comments
 (0)