@segment/action-destinations 3.468.1-staging-e75f1dc61.0 → 3.468.1-staging-908f774bb.0
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/dist/destinations/facebook-custom-audiences/constants.d.ts +0 -3
- package/dist/destinations/facebook-custom-audiences/constants.js +1 -55
- package/dist/destinations/facebook-custom-audiences/constants.js.map +1 -1
- package/dist/destinations/facebook-custom-audiences/fields.d.ts +3 -0
- package/dist/destinations/facebook-custom-audiences/fields.js +16 -0
- package/dist/destinations/facebook-custom-audiences/fields.js.map +1 -0
- package/dist/destinations/facebook-custom-audiences/functions.d.ts +20 -0
- package/dist/destinations/facebook-custom-audiences/functions.js +87 -0
- package/dist/destinations/facebook-custom-audiences/functions.js.map +1 -0
- package/dist/destinations/facebook-custom-audiences/generated-types.d.ts +1 -1
- package/dist/destinations/facebook-custom-audiences/index.js +25 -105
- package/dist/destinations/facebook-custom-audiences/index.js.map +1 -1
- package/dist/destinations/facebook-custom-audiences/presets.d.ts +2 -0
- package/dist/destinations/facebook-custom-audiences/presets.js +39 -0
- package/dist/destinations/facebook-custom-audiences/presets.js.map +1 -0
- package/dist/destinations/facebook-custom-audiences/sync/constants.d.ts +3 -0
- package/dist/destinations/facebook-custom-audiences/sync/constants.js +90 -0
- package/dist/destinations/facebook-custom-audiences/sync/constants.js.map +1 -0
- package/dist/destinations/facebook-custom-audiences/sync/fields.d.ts +7 -0
- package/dist/destinations/facebook-custom-audiences/sync/fields.js +243 -0
- package/dist/destinations/facebook-custom-audiences/sync/fields.js.map +1 -0
- package/dist/destinations/facebook-custom-audiences/sync/functions.d.ts +32 -0
- package/dist/destinations/facebook-custom-audiences/sync/functions.js +267 -0
- package/dist/destinations/facebook-custom-audiences/sync/functions.js.map +1 -0
- package/dist/destinations/facebook-custom-audiences/sync/generated-types.d.ts +10 -2
- package/dist/destinations/facebook-custom-audiences/sync/hook-functions.d.ts +38 -0
- package/dist/destinations/facebook-custom-audiences/sync/hook-functions.js +104 -0
- package/dist/destinations/facebook-custom-audiences/sync/hook-functions.js.map +1 -0
- package/dist/destinations/facebook-custom-audiences/sync/index.js +15 -266
- package/dist/destinations/facebook-custom-audiences/sync/index.js.map +1 -1
- package/dist/destinations/facebook-custom-audiences/sync/types.d.ts +33 -0
- package/dist/destinations/facebook-custom-audiences/sync/types.js +3 -0
- package/dist/destinations/facebook-custom-audiences/sync/types.js.map +1 -0
- package/dist/destinations/facebook-custom-audiences/types.d.ts +20 -0
- package/dist/destinations/facebook-custom-audiences/types.js +3 -0
- package/dist/destinations/facebook-custom-audiences/types.js.map +1 -0
- package/package.json +2 -2
- package/dist/destinations/facebook-custom-audiences/fbca-operations.d.ts +0 -42
- package/dist/destinations/facebook-custom-audiences/fbca-operations.js +0 -144
- package/dist/destinations/facebook-custom-audiences/fbca-operations.js.map +0 -1
- package/dist/destinations/facebook-custom-audiences/fbca-properties.d.ts +0 -8
- package/dist/destinations/facebook-custom-audiences/fbca-properties.js +0 -148
- package/dist/destinations/facebook-custom-audiences/fbca-properties.js.map +0 -1
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
export declare const US_STATE_CODES: Map<string, string>;
|
|
2
1
|
export declare const API_VERSION = "v24.0";
|
|
3
|
-
export declare const CANARY_API_VERSION = "v24.0";
|
|
4
2
|
export declare const BASE_URL = "https://graph.facebook.com";
|
|
5
|
-
export declare const FACEBOOK_CUSTOM_AUDIENCE_FLAGON = "facebook-custom-audience-actions-canary-version";
|
|
@@ -1,60 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.US_STATE_CODES = new Map([
|
|
5
|
-
['arizona', 'az'],
|
|
6
|
-
['alabama', 'al'],
|
|
7
|
-
['alaska', 'ak'],
|
|
8
|
-
['arkansas', 'ar'],
|
|
9
|
-
['california', 'ca'],
|
|
10
|
-
['colorado', 'co'],
|
|
11
|
-
['connecticut', 'ct'],
|
|
12
|
-
['delaware', 'de'],
|
|
13
|
-
['florida', 'fl'],
|
|
14
|
-
['georgia', 'ga'],
|
|
15
|
-
['hawaii', 'hi'],
|
|
16
|
-
['idaho', 'id'],
|
|
17
|
-
['illinois', 'il'],
|
|
18
|
-
['indiana', 'in'],
|
|
19
|
-
['iowa', 'ia'],
|
|
20
|
-
['kansas', 'ks'],
|
|
21
|
-
['kentucky', 'ky'],
|
|
22
|
-
['louisiana', 'la'],
|
|
23
|
-
['maine', 'me'],
|
|
24
|
-
['maryland', 'md'],
|
|
25
|
-
['massachusetts', 'ma'],
|
|
26
|
-
['michigan', 'mi'],
|
|
27
|
-
['minnesota', 'mn'],
|
|
28
|
-
['mississippi', 'ms'],
|
|
29
|
-
['missouri', 'mo'],
|
|
30
|
-
['montana', 'mt'],
|
|
31
|
-
['nebraska', 'ne'],
|
|
32
|
-
['nevada', 'nv'],
|
|
33
|
-
['newhampshire', 'nh'],
|
|
34
|
-
['newjersey', 'nj'],
|
|
35
|
-
['newmexico', 'nm'],
|
|
36
|
-
['newyork', 'ny'],
|
|
37
|
-
['northcarolina', 'nc'],
|
|
38
|
-
['northdakota', 'nd'],
|
|
39
|
-
['ohio', 'oh'],
|
|
40
|
-
['oklahoma', 'ok'],
|
|
41
|
-
['oregon', 'or'],
|
|
42
|
-
['pennsylvania', 'pa'],
|
|
43
|
-
['rhodeisland', 'ri'],
|
|
44
|
-
['southcarolina', 'sc'],
|
|
45
|
-
['southdakota', 'sd'],
|
|
46
|
-
['tennessee', 'tn'],
|
|
47
|
-
['texas', 'tx'],
|
|
48
|
-
['utah', 'ut'],
|
|
49
|
-
['vermont', 'vt'],
|
|
50
|
-
['virginia', 'va'],
|
|
51
|
-
['washington', 'wa'],
|
|
52
|
-
['westvirginia', 'wv'],
|
|
53
|
-
['wisconsin', 'wi'],
|
|
54
|
-
['wyoming', 'wy']
|
|
55
|
-
]);
|
|
3
|
+
exports.BASE_URL = exports.API_VERSION = void 0;
|
|
56
4
|
exports.API_VERSION = 'v24.0';
|
|
57
|
-
exports.CANARY_API_VERSION = 'v24.0';
|
|
58
5
|
exports.BASE_URL = 'https://graph.facebook.com';
|
|
59
|
-
exports.FACEBOOK_CUSTOM_AUDIENCE_FLAGON = 'facebook-custom-audience-actions-canary-version';
|
|
60
6
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/destinations/facebook-custom-audiences/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/destinations/facebook-custom-audiences/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,WAAW,GAAG,OAAO,CAAA;AAErB,QAAA,QAAQ,GAAG,4BAA4B,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.audienceDescription = exports.adAccountId = void 0;
|
|
4
|
+
exports.adAccountId = {
|
|
5
|
+
type: 'string',
|
|
6
|
+
label: 'Advertiser Account ID',
|
|
7
|
+
description: 'Your advertiser account id. Read [more](https://www.facebook.com/business/help/1492627900875762).',
|
|
8
|
+
required: true
|
|
9
|
+
};
|
|
10
|
+
exports.audienceDescription = {
|
|
11
|
+
type: 'string',
|
|
12
|
+
label: 'Description',
|
|
13
|
+
description: 'A brief description about your audience.',
|
|
14
|
+
required: true
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=fields.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fields.js","sourceRoot":"","sources":["../../../src/destinations/facebook-custom-audiences/fields.ts"],"names":[],"mappings":";;;AAEa,QAAA,WAAW,GAAkB;IACxC,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,uBAAuB;IAC9B,WAAW,EAAE,mGAAmG;IAChH,QAAQ,EAAE,IAAI;CACf,CAAA;AAEY,QAAA,mBAAmB,GAAkB;IAChD,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,0CAA0C;IACvD,QAAQ,EAAE,IAAI;CACf,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { RequestClient } from '@segment/actions-core';
|
|
2
|
+
export declare function createAudience(request: RequestClient, name: string, adAccountId: string, description?: string): Promise<{
|
|
3
|
+
data?: {
|
|
4
|
+
externalId: string;
|
|
5
|
+
};
|
|
6
|
+
error?: {
|
|
7
|
+
message: string;
|
|
8
|
+
code: string;
|
|
9
|
+
};
|
|
10
|
+
}>;
|
|
11
|
+
export declare function getAudience(request: RequestClient, externalId: string): Promise<{
|
|
12
|
+
data?: {
|
|
13
|
+
externalId?: string;
|
|
14
|
+
name: string;
|
|
15
|
+
};
|
|
16
|
+
error?: {
|
|
17
|
+
message: string;
|
|
18
|
+
code: string;
|
|
19
|
+
};
|
|
20
|
+
}>;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createAudience = createAudience;
|
|
4
|
+
exports.getAudience = getAudience;
|
|
5
|
+
const actions_core_1 = require("@segment/actions-core");
|
|
6
|
+
const constants_1 = require("./constants");
|
|
7
|
+
async function createAudience(request, name, adAccountId, description) {
|
|
8
|
+
if (!name) {
|
|
9
|
+
throw new actions_core_1.IntegrationError('Missing audience name value', 'MISSING_REQUIRED_FIELD', 400);
|
|
10
|
+
}
|
|
11
|
+
if (!adAccountId) {
|
|
12
|
+
throw new actions_core_1.IntegrationError('Missing ad account ID value', 'MISSING_REQUIRED_FIELD', 400);
|
|
13
|
+
}
|
|
14
|
+
const url = `${constants_1.BASE_URL}/${constants_1.API_VERSION}/act_${adAccountId.startsWith('act_') ? adAccountId.slice(4) : adAccountId}/customaudiences`;
|
|
15
|
+
const json = {
|
|
16
|
+
name,
|
|
17
|
+
subtype: 'CUSTOM',
|
|
18
|
+
customer_file_source: 'BOTH_USER_AND_PARTNER_PROVIDED',
|
|
19
|
+
...(description ? { description } : {})
|
|
20
|
+
};
|
|
21
|
+
try {
|
|
22
|
+
const response = await request(url, {
|
|
23
|
+
method: 'post',
|
|
24
|
+
json
|
|
25
|
+
});
|
|
26
|
+
const r = await response.json();
|
|
27
|
+
const id = r.id;
|
|
28
|
+
if (!id) {
|
|
29
|
+
return {
|
|
30
|
+
error: {
|
|
31
|
+
message: 'Invalid response from create audience request',
|
|
32
|
+
code: 'INVALID_RESPONSE'
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
return { data: { externalId: id } };
|
|
37
|
+
}
|
|
38
|
+
catch (error) {
|
|
39
|
+
const err = error;
|
|
40
|
+
return {
|
|
41
|
+
error: {
|
|
42
|
+
message: err.error.message,
|
|
43
|
+
code: err.error.type
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
async function getAudience(request, externalId) {
|
|
49
|
+
const url = `${constants_1.BASE_URL}/${constants_1.API_VERSION}/${externalId}`;
|
|
50
|
+
try {
|
|
51
|
+
const response = await request(url, { method: 'GET' });
|
|
52
|
+
const r = await response.json();
|
|
53
|
+
const { id, name } = r;
|
|
54
|
+
if (!id) {
|
|
55
|
+
return {
|
|
56
|
+
error: {
|
|
57
|
+
message: 'Invalid response from get audience request',
|
|
58
|
+
code: 'INVALID_RESPONSE'
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
if (externalId !== id) {
|
|
63
|
+
return {
|
|
64
|
+
error: {
|
|
65
|
+
message: `Audience not found. Audience ID mismatch. Expected: ${externalId}, Received: ${id}`,
|
|
66
|
+
code: 'ID_MISMATCH'
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
data: {
|
|
72
|
+
externalId: id,
|
|
73
|
+
name: name || ''
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
catch (error) {
|
|
78
|
+
const err = error;
|
|
79
|
+
return {
|
|
80
|
+
error: {
|
|
81
|
+
message: err.error.message,
|
|
82
|
+
code: err.error.type
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=functions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"functions.js","sourceRoot":"","sources":["../../../src/destinations/facebook-custom-audiences/functions.ts"],"names":[],"mappings":";;AAIA,wCA8CC;AAED,kCAuCC;AA3FD,wDAAuE;AAEvE,2CAAmD;AAE5C,KAAK,UAAU,cAAc,CAAC,OAAsB,EAAE,IAAY,EAAE,WAAmB,EAAE,WAAoB;IAClH,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,MAAM,IAAI,+BAAgB,CAAC,6BAA6B,EAAE,wBAAwB,EAAE,GAAG,CAAC,CAAA;IAC1F,CAAC;IACD,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,MAAM,IAAI,+BAAgB,CAAC,6BAA6B,EAAE,wBAAwB,EAAE,GAAG,CAAC,CAAA;IAC1F,CAAC;IAED,MAAM,GAAG,GAAG,GAAG,oBAAQ,IAAI,uBAAW,QACpC,WAAW,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,WAC1D,kBAAkB,CAAA;IAElB,MAAM,IAAI,GAA0B;QAClC,IAAI;QACJ,OAAO,EAAE,QAAQ;QACjB,oBAAoB,EAAE,gCAAgC;QACtD,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACxC,CAAA;IAED,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAyB,GAAG,EAAE;YAC1D,MAAM,EAAE,MAAM;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AE,EAAE;oBAC7F,IAAI,EAAE,aAAa;iBACpB;aACF,CAAA;QACH,CAAC;QACD,OAAO;YACL,IAAI,EAAE;gBACJ,UAAU,EAAE,EAAE;gBACd,IAAI,EAAE,IAAI,IAAI,EAAE;aACjB;SACF,CAAA;IACH,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,MAAM,GAAG,GAAG,KAA8B,CAAA;QAC1C,OAAO;YACL,KAAK,EAAE;gBACL,OAAO,EAAE,GAAG,CAAC,KAAK,CAAC,OAAO;gBAC1B,IAAI,EAAE,GAAG,CAAC,KAAK,CAAC,IAAI;aACrB;SACF,CAAA;IACH,CAAC;AACH,CAAC"}
|
|
@@ -4,10 +4,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const actions_core_1 = require("@segment/actions-core");
|
|
7
|
-
const
|
|
7
|
+
const fields_1 = require("./fields");
|
|
8
8
|
const sync_1 = __importDefault(require("./sync"));
|
|
9
|
-
const
|
|
10
|
-
const
|
|
9
|
+
const functions_1 = require("./functions");
|
|
10
|
+
const presets_1 = require("./presets");
|
|
11
11
|
const destination = {
|
|
12
12
|
name: 'Facebook Custom Audiences (Actions)',
|
|
13
13
|
slug: 'actions-facebook-custom-audiences',
|
|
@@ -16,7 +16,10 @@ const destination = {
|
|
|
16
16
|
authentication: {
|
|
17
17
|
scheme: 'oauth2',
|
|
18
18
|
fields: {
|
|
19
|
-
retlAdAccountId:
|
|
19
|
+
retlAdAccountId: {
|
|
20
|
+
...fields_1.adAccountId,
|
|
21
|
+
description: 'Your advertiser account id. Read [more](https://www.facebook.com/business/help/1492627900875762). This is required to set up the connection, but can be overriden using the Engage Audience setting named "Advertiser Account ID".'
|
|
22
|
+
}
|
|
20
23
|
}
|
|
21
24
|
},
|
|
22
25
|
extendRequest({ auth }) {
|
|
@@ -27,13 +30,12 @@ const destination = {
|
|
|
27
30
|
};
|
|
28
31
|
},
|
|
29
32
|
audienceFields: {
|
|
30
|
-
engageAdAccountId:
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
33
|
+
engageAdAccountId: {
|
|
34
|
+
...fields_1.adAccountId,
|
|
35
|
+
description: 'Your advertiser account id. Read [more](https://www.facebook.com/business/help/1492627900875762). This overrides the main Destination settings named "Advertiser Account ID".',
|
|
36
|
+
required: false
|
|
37
|
+
},
|
|
38
|
+
audienceDescription: fields_1.audienceDescription
|
|
37
39
|
},
|
|
38
40
|
audienceConfig: {
|
|
39
41
|
mode: {
|
|
@@ -41,109 +43,27 @@ const destination = {
|
|
|
41
43
|
full_audience_sync: false
|
|
42
44
|
},
|
|
43
45
|
async createAudience(request, createAudienceInput) {
|
|
44
|
-
const audienceName = createAudienceInput
|
|
45
|
-
const
|
|
46
|
-
const
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
throw new actions_core_1.IntegrationError('Missing audience name value', 'MISSING_REQUIRED_FIELD', 400);
|
|
50
|
-
}
|
|
51
|
-
if (!adAccountId) {
|
|
52
|
-
throw new actions_core_1.IntegrationError('Missing ad account ID value', 'MISSING_REQUIRED_FIELD', 400);
|
|
53
|
-
}
|
|
54
|
-
const createAudienceUrl = `https://graph.facebook.com/${(0, fbca_operations_1.getApiVersion)(features, statsContext)}/act_${adAccountId}/customaudiences`;
|
|
55
|
-
const payload = {
|
|
56
|
-
name: audienceName,
|
|
57
|
-
description: audienceDescription || '',
|
|
58
|
-
subtype: 'CUSTOM',
|
|
59
|
-
customer_file_source: 'BOTH_USER_AND_PARTNER_PROVIDED'
|
|
60
|
-
};
|
|
61
|
-
let response;
|
|
62
|
-
try {
|
|
63
|
-
response = await request(createAudienceUrl, {
|
|
64
|
-
method: 'POST',
|
|
65
|
-
headers: {
|
|
66
|
-
'Content-Type': 'application/x-www-form-urlencoded'
|
|
67
|
-
},
|
|
68
|
-
body: new URLSearchParams(payload)
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
catch (err) {
|
|
72
|
-
let message = err.response?.content || err.message;
|
|
73
|
-
let userTitle, userMsg;
|
|
74
|
-
if (typeof message === 'string') {
|
|
75
|
-
try {
|
|
76
|
-
const parsed = JSON.parse(message);
|
|
77
|
-
if (parsed?.error) {
|
|
78
|
-
userTitle = parsed.error.error_user_title;
|
|
79
|
-
userMsg = parsed.error.error_user_msg || parsed.error.error_user_message;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
catch (e) {
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
if (userTitle || userMsg) {
|
|
86
|
-
message = `${userTitle ? userTitle + ': ' : ''}${userMsg || ''}`.trim();
|
|
87
|
-
}
|
|
88
|
-
throw new actions_core_1.IntegrationError(String(message), 'CREATE_AUDIENCE_FAILED', 400);
|
|
46
|
+
const { audienceName, audienceSettings: { engageAdAccountId, audienceDescription } = {}, settings: { retlAdAccountId } = {} } = createAudienceInput;
|
|
47
|
+
const addAccountId = (engageAdAccountId ?? retlAdAccountId);
|
|
48
|
+
const { data: { externalId: id } = {}, error } = await (0, functions_1.createAudience)(request, audienceName, addAccountId, audienceDescription);
|
|
49
|
+
if (error) {
|
|
50
|
+
throw new actions_core_1.IntegrationError(error.message || 'Failed to create audience', error.code || 'CREATE_AUDIENCE_FAILED', 400);
|
|
89
51
|
}
|
|
90
|
-
|
|
91
|
-
if (!r[EXTERNAL_ID_KEY]) {
|
|
92
|
-
throw new actions_core_1.IntegrationError('Invalid response from create audience request', 'INVALID_RESPONSE', 400);
|
|
93
|
-
}
|
|
94
|
-
return {
|
|
95
|
-
externalId: r[EXTERNAL_ID_KEY]
|
|
96
|
-
};
|
|
52
|
+
return { externalId: id };
|
|
97
53
|
},
|
|
98
54
|
async getAudience(request, getAudienceInput) {
|
|
99
|
-
const {
|
|
100
|
-
const
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
if (!r[EXTERNAL_ID_KEY]) {
|
|
104
|
-
throw new actions_core_1.IntegrationError('Invalid response from get audience request', 'INVALID_RESPONSE', 400);
|
|
105
|
-
}
|
|
106
|
-
if (getAudienceInput.externalId !== r[EXTERNAL_ID_KEY]) {
|
|
107
|
-
throw new actions_core_1.IntegrationError("Couldn't find audience", 'INVALID_RESPONSE', 400);
|
|
55
|
+
const { externalId } = getAudienceInput;
|
|
56
|
+
const { data: { externalId: id } = {}, error } = await (0, functions_1.getAudience)(request, externalId);
|
|
57
|
+
if (error) {
|
|
58
|
+
throw new actions_core_1.IntegrationError(error.message || 'Failed to get audience', error.code || 'GET_AUDIENCE_FAILED', 400);
|
|
108
59
|
}
|
|
109
|
-
return {
|
|
110
|
-
externalId: r[EXTERNAL_ID_KEY]
|
|
111
|
-
};
|
|
60
|
+
return { externalId: id };
|
|
112
61
|
}
|
|
113
62
|
},
|
|
114
63
|
actions: {
|
|
115
64
|
sync: sync_1.default
|
|
116
65
|
},
|
|
117
|
-
presets:
|
|
118
|
-
{
|
|
119
|
-
name: 'Entities Audience Membership Changed',
|
|
120
|
-
partnerAction: 'sync',
|
|
121
|
-
mapping: (0, actions_core_1.defaultValues)(sync_1.default.fields),
|
|
122
|
-
type: 'specificEvent',
|
|
123
|
-
eventSlug: 'warehouse_audience_membership_changed_identify'
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
name: 'Associated Entity Added',
|
|
127
|
-
partnerAction: 'sync',
|
|
128
|
-
mapping: (0, actions_core_1.defaultValues)(sync_1.default.fields),
|
|
129
|
-
type: 'specificEvent',
|
|
130
|
-
eventSlug: 'warehouse_entity_added_track'
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
name: 'Associated Entity Removed',
|
|
134
|
-
partnerAction: 'sync',
|
|
135
|
-
mapping: (0, actions_core_1.defaultValues)(sync_1.default.fields),
|
|
136
|
-
type: 'specificEvent',
|
|
137
|
-
eventSlug: 'warehouse_entity_removed_track'
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
name: 'Journeys Step Entered',
|
|
141
|
-
partnerAction: 'sync',
|
|
142
|
-
mapping: (0, actions_core_1.defaultValues)(sync_1.default.fields),
|
|
143
|
-
type: 'specificEvent',
|
|
144
|
-
eventSlug: 'journeys_step_entered_track'
|
|
145
|
-
}
|
|
146
|
-
]
|
|
66
|
+
presets: presets_1.presets
|
|
147
67
|
};
|
|
148
68
|
exports.default = destination;
|
|
149
69
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/facebook-custom-audiences/index.ts"],"names":[],"mappings":";;;;;AACA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/facebook-custom-audiences/index.ts"],"names":[],"mappings":";;;;;AACA,wDAAwD;AAExD,qCAA2D;AAC3D,kDAAyB;AACzB,2CAAyD;AACzD,uCAAmC;AAEnC,MAAM,WAAW,GAA8D;IAC7E,IAAI,EAAE,qCAAqC;IAC3C,IAAI,EAAE,mCAAmC;IACzC,IAAI,EAAE,OAAO;IACb,WAAW,EAAE,4CAA4C;IACzD,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,eAAe,EACf;gBACE,GAAG,oBAAW;gBACd,WAAW,EAAE,oOAAoO;aAClP;SACF;KACF;IACD,aAAa,CAAC,EAAE,IAAI,EAAE;QACpB,OAAO;YACL,OAAO,EAAE;gBACP,aAAa,EAAE,UAAU,IAAI,EAAE,WAAW,EAAE;aAC7C;SACF,CAAA;IACH,CAAC;IACD,cAAc,EAAE;QACd,iBAAiB,EAAE;YACf,GAAG,oBAAW;YACd,WAAW,EAAE,+KAA+K;YAC5L,QAAQ,EAAE,KAAK;SAChB;QACH,mBAAmB,EAAnB,4BAAmB;KACpB;IACD,cAAc,EAAE;QACd,IAAI,EAAE;YACJ,IAAI,EAAE,QAAQ;YACd,kBAAkB,EAAE,KAAK;SAC1B;QACD,KAAK,CAAC,cAAc,CA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,kBAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.presets = void 0;
|
|
7
|
+
const actions_core_1 = require("@segment/actions-core");
|
|
8
|
+
const sync_1 = __importDefault(require("./sync"));
|
|
9
|
+
exports.presets = [
|
|
10
|
+
{
|
|
11
|
+
name: 'Entities Audience Membership Changed',
|
|
12
|
+
partnerAction: 'sync',
|
|
13
|
+
mapping: (0, actions_core_1.defaultValues)(sync_1.default.fields),
|
|
14
|
+
type: 'specificEvent',
|
|
15
|
+
eventSlug: 'warehouse_audience_membership_changed_identify'
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
name: 'Associated Entity Added',
|
|
19
|
+
partnerAction: 'sync',
|
|
20
|
+
mapping: (0, actions_core_1.defaultValues)(sync_1.default.fields),
|
|
21
|
+
type: 'specificEvent',
|
|
22
|
+
eventSlug: 'warehouse_entity_added_track'
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: 'Associated Entity Removed',
|
|
26
|
+
partnerAction: 'sync',
|
|
27
|
+
mapping: (0, actions_core_1.defaultValues)(sync_1.default.fields),
|
|
28
|
+
type: 'specificEvent',
|
|
29
|
+
eventSlug: 'warehouse_entity_removed_track'
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: 'Journeys Step Entered',
|
|
33
|
+
partnerAction: 'sync',
|
|
34
|
+
mapping: (0, actions_core_1.defaultValues)(sync_1.default.fields),
|
|
35
|
+
type: 'specificEvent',
|
|
36
|
+
eventSlug: 'journeys_step_entered_track'
|
|
37
|
+
}
|
|
38
|
+
];
|
|
39
|
+
//# sourceMappingURL=presets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presets.js","sourceRoot":"","sources":["../../../src/destinations/facebook-custom-audiences/presets.ts"],"names":[],"mappings":";;;;;;AAAA,wDAAqD;AAErD,kDAAyB;AAEZ,QAAA,OAAO,GAAa;IAC/B;QACE,IAAI,EAAE,sCAAsC;QAC5C,aAAa,EAAE,MAAM;QACrB,OAAO,EAAE,IAAA,4BAAa,EAAC,cAAI,CAAC,MAAM,CAAC;QACnC,IAAI,EAAE,eAAe;QACrB,SAAS,EAAE,gDAAgD;KAC5D;IACD;QACE,IAAI,EAAE,yBAAyB;QAC/B,aAAa,EAAE,MAAM;QACrB,OAAO,EAAE,IAAA,4BAAa,EAAC,cAAI,CAAC,MAAM,CAAC;QACnC,IAAI,EAAE,eAAe;QACrB,SAAS,EAAE,8BAA8B;KAC1C;IACD;QACE,IAAI,EAAE,2BAA2B;QACjC,aAAa,EAAE,MAAM;QACrB,OAAO,EAAE,IAAA,4BAAa,EAAC,cAAI,CAAC,MAAM,CAAC;QACnC,IAAI,EAAE,eAAe;QACrB,SAAS,EAAE,gCAAgC;KAC5C;IACD;QACE,IAAI,EAAE,uBAAuB;QAC7B,aAAa,EAAE,MAAM;QACrB,OAAO,EAAE,IAAA,4BAAa,EAAC,cAAI,CAAC,MAAM,CAAC;QACnC,IAAI,EAAE,eAAe;QACrB,SAAS,EAAE,6BAA6B;KACzC;CACF,CAAA"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const US_STATE_CODES: Map<string, string>;
|
|
2
|
+
export declare const SCHEMA_PROPERTIES: readonly ["EXTERN_ID", "EMAIL", "PHONE", "DOBY", "DOBM", "DOBD", "LN", "FN", "FI", "GEN", "CT", "ST", "ZIP", "COUNTRY", "MADID"];
|
|
3
|
+
export declare const SEGMENT_SCHEMA_PROPERTIES: string[];
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SEGMENT_SCHEMA_PROPERTIES = exports.SCHEMA_PROPERTIES = exports.US_STATE_CODES = void 0;
|
|
4
|
+
exports.US_STATE_CODES = new Map([
|
|
5
|
+
['arizona', 'az'],
|
|
6
|
+
['alabama', 'al'],
|
|
7
|
+
['alaska', 'ak'],
|
|
8
|
+
['arkansas', 'ar'],
|
|
9
|
+
['california', 'ca'],
|
|
10
|
+
['colorado', 'co'],
|
|
11
|
+
['connecticut', 'ct'],
|
|
12
|
+
['delaware', 'de'],
|
|
13
|
+
['florida', 'fl'],
|
|
14
|
+
['georgia', 'ga'],
|
|
15
|
+
['hawaii', 'hi'],
|
|
16
|
+
['idaho', 'id'],
|
|
17
|
+
['illinois', 'il'],
|
|
18
|
+
['indiana', 'in'],
|
|
19
|
+
['iowa', 'ia'],
|
|
20
|
+
['kansas', 'ks'],
|
|
21
|
+
['kentucky', 'ky'],
|
|
22
|
+
['louisiana', 'la'],
|
|
23
|
+
['maine', 'me'],
|
|
24
|
+
['maryland', 'md'],
|
|
25
|
+
['massachusetts', 'ma'],
|
|
26
|
+
['michigan', 'mi'],
|
|
27
|
+
['minnesota', 'mn'],
|
|
28
|
+
['mississippi', 'ms'],
|
|
29
|
+
['missouri', 'mo'],
|
|
30
|
+
['montana', 'mt'],
|
|
31
|
+
['nebraska', 'ne'],
|
|
32
|
+
['nevada', 'nv'],
|
|
33
|
+
['newhampshire', 'nh'],
|
|
34
|
+
['newjersey', 'nj'],
|
|
35
|
+
['newmexico', 'nm'],
|
|
36
|
+
['newyork', 'ny'],
|
|
37
|
+
['northcarolina', 'nc'],
|
|
38
|
+
['northdakota', 'nd'],
|
|
39
|
+
['ohio', 'oh'],
|
|
40
|
+
['oklahoma', 'ok'],
|
|
41
|
+
['oregon', 'or'],
|
|
42
|
+
['pennsylvania', 'pa'],
|
|
43
|
+
['rhodeisland', 'ri'],
|
|
44
|
+
['southcarolina', 'sc'],
|
|
45
|
+
['southdakota', 'sd'],
|
|
46
|
+
['tennessee', 'tn'],
|
|
47
|
+
['texas', 'tx'],
|
|
48
|
+
['utah', 'ut'],
|
|
49
|
+
['vermont', 'vt'],
|
|
50
|
+
['virginia', 'va'],
|
|
51
|
+
['washington', 'wa'],
|
|
52
|
+
['westvirginia', 'wv'],
|
|
53
|
+
['wisconsin', 'wi'],
|
|
54
|
+
['wyoming', 'wy']
|
|
55
|
+
]);
|
|
56
|
+
exports.SCHEMA_PROPERTIES = [
|
|
57
|
+
'EXTERN_ID',
|
|
58
|
+
'EMAIL',
|
|
59
|
+
'PHONE',
|
|
60
|
+
'DOBY',
|
|
61
|
+
'DOBM',
|
|
62
|
+
'DOBD',
|
|
63
|
+
'LN',
|
|
64
|
+
'FN',
|
|
65
|
+
'FI',
|
|
66
|
+
'GEN',
|
|
67
|
+
'CT',
|
|
68
|
+
'ST',
|
|
69
|
+
'ZIP',
|
|
70
|
+
'COUNTRY',
|
|
71
|
+
'MADID'
|
|
72
|
+
];
|
|
73
|
+
exports.SEGMENT_SCHEMA_PROPERTIES = [
|
|
74
|
+
'externalId',
|
|
75
|
+
'email',
|
|
76
|
+
'phone',
|
|
77
|
+
'year',
|
|
78
|
+
'month',
|
|
79
|
+
'day',
|
|
80
|
+
'last',
|
|
81
|
+
'first',
|
|
82
|
+
'firstInitial',
|
|
83
|
+
'gender',
|
|
84
|
+
'city',
|
|
85
|
+
'state',
|
|
86
|
+
'zip',
|
|
87
|
+
'country',
|
|
88
|
+
'mobileAdId'
|
|
89
|
+
];
|
|
90
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/destinations/facebook-custom-audiences/sync/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,cAAc,GAAG,IAAI,GAAG,CAAiB;IACpD,CAAC,SAAS,EAAE,IAAI,CAAC;IACjB,CAAC,SAAS,EAAE,IAAI,CAAC;IACjB,CAAC,QAAQ,EAAE,IAAI,CAAC;IAChB,CAAC,UAAU,EAAE,IAAI,CAAC;IAClB,CAAC,YA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AAE,IAAI,CAAC;IACrB,CAAC,eAAe,EAAE,IAAI,CAAC;IACvB,CAAC,aAAa,EAAE,IAAI,CAAC;IACrB,CAAC,WAAW,EAAE,IAAI,CAAC;IACnB,CAAC,OAAO,EAAE,IAAI,CAAC;IACf,CAAC,MAAM,EAAE,IAAI,CAAC;IACd,CAAC,SAAS,EAAE,IAAI,CAAC;IACjB,CAAC,UAAU,EAAE,IAAI,CAAC;IAClB,CAAC,YAAY,EAAE,IAAI,CAAC;IACpB,CAAC,cAAc,EAAE,IAAI,CAAC;IACtB,CAAC,WAAW,EAAE,IAAI,CAAC;IACnB,CAAC,SAAS,EAAE,IAAI,CAAC;CAClB,CAAC,CAAA;AAIW,QAAA,iBAAiB,GAAG;IAC/B,WAAW;IACX,OAAO;IACP,OAAO;IACP,MAAM;IACN,MAAM;IACN,MAAM;IACN,IAAI;IACJ,IAAI;IACJ,IAAI;IACJ,KAAK;IACL,IAAI;IACJ,IAAI;IACJ,KAAK;IACL,SAAS;IACT,OAAO;CACC,CAAA;AAIG,QAAA,yBAAyB,GAAG;IACvC,YAAY;IACZ,OAAO;IACP,OAAO;IACP,MAAM;IACN,OAAO;IACP,KAAK;IACL,MAAM;IACN,OAAO;IACP,cAAc;IACd,QAAQ;IACR,MAAM;IACN,OAAO;IACP,KAAK;IACL,SAAS;IACT,YAAY;CACb,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { InputField } from '@segment/actions-core';
|
|
2
|
+
import { ActionHookDefinition } from '@segment/actions-core/destination-kit';
|
|
3
|
+
import type { Settings, AudienceSettings } from '../generated-types';
|
|
4
|
+
import type { Payload, RetlOnMappingSaveOutputs, RetlOnMappingSaveInputs } from './generated-types';
|
|
5
|
+
export declare const fields: Record<string, InputField>;
|
|
6
|
+
export declare const retlHookInputFields: ActionHookDefinition<Settings, Payload, AudienceSettings, RetlOnMappingSaveInputs, RetlOnMappingSaveOutputs>['inputFields'];
|
|
7
|
+
export declare const retlHookOutputTypes: ActionHookDefinition<Settings, Payload, AudienceSettings, RetlOnMappingSaveInputs, RetlOnMappingSaveOutputs>['outputTypes'];
|