@segment/action-destinations 3.307.1-staging-8294e6874.0 → 3.309.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/actions-pardot/index.js +13 -2
- package/dist/destinations/actions-pardot/index.js.map +1 -1
- package/dist/destinations/actions-pardot/pa-operations.d.ts +1 -1
- package/dist/destinations/actions-pardot/prospects/index.js +2 -1
- package/dist/destinations/actions-pardot/prospects/index.js.map +1 -1
- package/dist/destinations/adjust/functions.d.ts +1 -1
- package/dist/destinations/adobe-target/adobeTarget_operations.d.ts +1 -1
- package/dist/destinations/airship/utilities.d.ts +7 -7
- package/dist/destinations/amazon-amc/index.js +2 -10
- package/dist/destinations/amazon-amc/index.js.map +1 -1
- package/dist/destinations/amazon-amc/syncAudiencesToDSP/index.js +29 -49
- package/dist/destinations/amazon-amc/syncAudiencesToDSP/index.js.map +1 -1
- package/dist/destinations/braze/trackEvent/generated-types.d.ts +1 -0
- package/dist/destinations/braze/trackEvent/index.js +7 -0
- package/dist/destinations/braze/trackEvent/index.js.map +1 -1
- package/dist/destinations/braze/trackPurchase/generated-types.d.ts +1 -0
- package/dist/destinations/braze/trackPurchase/index.js +7 -0
- package/dist/destinations/braze/trackPurchase/index.js.map +1 -1
- package/dist/destinations/braze/updateUserProfile/generated-types.d.ts +1 -0
- package/dist/destinations/braze/updateUserProfile/index.js +7 -0
- package/dist/destinations/braze/updateUserProfile/index.js.map +1 -1
- package/dist/destinations/braze/utils.d.ts +6 -6
- package/dist/destinations/contentstack/audienceSync/generated-types.d.ts +10 -0
- package/dist/destinations/contentstack/audienceSync/generated-types.js.map +1 -0
- package/dist/destinations/contentstack/audienceSync/index.js +48 -0
- package/dist/destinations/contentstack/audienceSync/index.js.map +1 -0
- package/dist/destinations/contentstack/computedAttributeSync/generated-types.d.ts +10 -0
- package/dist/destinations/contentstack/computedAttributeSync/generated-types.js.map +1 -0
- package/dist/destinations/{salesforce/lead2 → contentstack/computedAttributeSync}/index.d.ts +1 -1
- package/dist/destinations/contentstack/computedAttributeSync/index.js +48 -0
- package/dist/destinations/contentstack/computedAttributeSync/index.js.map +1 -0
- package/dist/destinations/contentstack/generated-types.d.ts +0 -2
- package/dist/destinations/contentstack/index.js +5 -48
- package/dist/destinations/contentstack/index.js.map +1 -1
- package/dist/destinations/cordial/cordial-client.d.ts +8 -8
- package/dist/destinations/engage-messaging-sendgrid/previewApiLookup/apiLookups.d.ts +3 -3
- package/dist/destinations/engage-messaging-sendgrid/previewApiLookup/apiLookups.js +9 -9
- package/dist/destinations/engage-messaging-sendgrid/previewApiLookup/apiLookups.js.map +1 -1
- package/dist/destinations/engage-messaging-sendgrid/sendEmail/SendEmailPerformer.d.ts +1 -2
- package/dist/destinations/engage-messaging-sendgrid/sendEmail/SendEmailPerformer.js +1 -1
- package/dist/destinations/engage-messaging-sendgrid/sendEmail/SendEmailPerformer.js.map +1 -1
- package/dist/destinations/engage-messaging-twilio/sendMobilePush/PushSender.d.ts +1 -1
- package/dist/destinations/engage-messaging-twilio/utils/PhoneMessageSender.d.ts +1 -1
- package/dist/destinations/facebook-custom-audiences/fbca-operations.d.ts +2 -2
- package/dist/destinations/gameball/util.d.ts +1 -1
- package/dist/destinations/google-analytics-4/ga4-functions.d.ts +1 -1
- package/dist/destinations/google-enhanced-conversions/constants.d.ts +1 -0
- package/dist/destinations/google-enhanced-conversions/constants.js +5 -0
- package/dist/destinations/google-enhanced-conversions/constants.js.map +1 -0
- package/dist/destinations/google-enhanced-conversions/functions.d.ts +2 -1
- package/dist/destinations/google-enhanced-conversions/functions.js +16 -2
- package/dist/destinations/google-enhanced-conversions/functions.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/uploadCallConversion/generated-types.d.ts +2 -0
- package/dist/destinations/google-enhanced-conversions/uploadCallConversion/index.js +64 -2
- package/dist/destinations/google-enhanced-conversions/uploadCallConversion/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/uploadCallConversion2/generated-types.d.ts +2 -0
- package/dist/destinations/google-enhanced-conversions/uploadCallConversion2/index.js +67 -2
- package/dist/destinations/google-enhanced-conversions/uploadCallConversion2/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/uploadClickConversion/generated-types.d.ts +2 -0
- package/dist/destinations/google-enhanced-conversions/uploadClickConversion/index.js +97 -2
- package/dist/destinations/google-enhanced-conversions/uploadClickConversion/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/uploadClickConversion2/generated-types.d.ts +2 -0
- package/dist/destinations/google-enhanced-conversions/uploadClickConversion2/index.js +102 -2
- package/dist/destinations/google-enhanced-conversions/uploadClickConversion2/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/generated-types.d.ts +2 -0
- package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/index.js +96 -0
- package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment2/generated-types.d.ts +2 -0
- package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment2/index.js +99 -0
- package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment2/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/userList/index.js +2 -2
- package/dist/destinations/google-sheets/postSheet/generated-types.d.ts +0 -1
- package/dist/destinations/google-sheets/postSheet/index.js +0 -7
- package/dist/destinations/google-sheets/postSheet/index.js.map +1 -1
- package/dist/destinations/google-sheets/postSheet/operations.d.ts +1 -1
- package/dist/destinations/google-sheets/postSheet/operations.js +8 -1
- package/dist/destinations/google-sheets/postSheet/operations.js.map +1 -1
- package/dist/destinations/google-sheets/postSheet2/operations2.d.ts +1 -1
- package/dist/destinations/hubspot/customEvent/hubspot-api.d.ts +2 -2
- package/dist/destinations/index.js +2 -0
- package/dist/destinations/index.js.map +1 -1
- package/dist/destinations/iterable/utils.js +7 -7
- package/dist/destinations/iterable/utils.js.map +1 -1
- package/dist/destinations/klaviyo/functions.d.ts +4 -4
- package/dist/destinations/launchdarkly-audiences/syncAudience/custom-audience-operations.d.ts +1 -1
- package/dist/destinations/linkedin-conversions/index.js +2 -14
- package/dist/destinations/linkedin-conversions/index.js.map +1 -1
- package/dist/destinations/nextdoor-capi/generated-types.d.ts +4 -0
- package/dist/destinations/{contentstack/types.js → nextdoor-capi/generated-types.js} +1 -1
- package/dist/destinations/nextdoor-capi/generated-types.js.map +1 -0
- package/dist/destinations/nextdoor-capi/index.d.ts +4 -0
- package/dist/destinations/nextdoor-capi/index.js +42 -0
- package/dist/destinations/nextdoor-capi/index.js.map +1 -0
- package/dist/destinations/nextdoor-capi/sendConversion/generated-types.d.ts +44 -0
- package/dist/destinations/nextdoor-capi/sendConversion/generated-types.js +3 -0
- package/dist/destinations/nextdoor-capi/sendConversion/generated-types.js.map +1 -0
- package/dist/destinations/nextdoor-capi/sendConversion/index.d.ts +5 -0
- package/dist/destinations/nextdoor-capi/sendConversion/index.js +459 -0
- package/dist/destinations/nextdoor-capi/sendConversion/index.js.map +1 -0
- package/dist/destinations/nextdoor-capi/sendConversion/types.d.ts +34 -0
- package/dist/destinations/nextdoor-capi/sendConversion/types.js.map +1 -0
- package/dist/destinations/nextdoor-capi/sendConversion/utils.d.ts +1 -0
- package/dist/destinations/nextdoor-capi/sendConversion/utils.js +9 -0
- package/dist/destinations/nextdoor-capi/sendConversion/utils.js.map +1 -0
- package/dist/destinations/reddit-conversions-api/customEvent/generated-types.d.ts +35 -0
- package/dist/destinations/reddit-conversions-api/customEvent/generated-types.js +3 -0
- package/dist/destinations/reddit-conversions-api/customEvent/generated-types.js.map +1 -0
- package/dist/destinations/reddit-conversions-api/customEvent/index.d.ts +5 -0
- package/dist/destinations/reddit-conversions-api/customEvent/index.js +27 -0
- package/dist/destinations/reddit-conversions-api/customEvent/index.js.map +1 -0
- package/dist/destinations/reddit-conversions-api/fields.d.ts +11 -0
- package/dist/destinations/reddit-conversions-api/fields.js +502 -0
- package/dist/destinations/reddit-conversions-api/fields.js.map +1 -0
- package/dist/destinations/reddit-conversions-api/generated-types.d.ts +5 -0
- package/dist/destinations/reddit-conversions-api/generated-types.js +3 -0
- package/dist/destinations/reddit-conversions-api/generated-types.js.map +1 -0
- package/dist/destinations/reddit-conversions-api/index.d.ts +4 -0
- package/dist/destinations/reddit-conversions-api/index.js +183 -0
- package/dist/destinations/reddit-conversions-api/index.js.map +1 -0
- package/dist/destinations/reddit-conversions-api/standardEvent/generated-types.d.ts +35 -0
- package/dist/destinations/reddit-conversions-api/standardEvent/generated-types.js +3 -0
- package/dist/destinations/reddit-conversions-api/standardEvent/generated-types.js.map +1 -0
- package/dist/destinations/reddit-conversions-api/standardEvent/index.d.ts +5 -0
- package/dist/destinations/reddit-conversions-api/standardEvent/index.js +27 -0
- package/dist/destinations/reddit-conversions-api/standardEvent/index.js.map +1 -0
- package/dist/destinations/reddit-conversions-api/types.d.ts +56 -0
- package/dist/destinations/reddit-conversions-api/types.js +8 -0
- package/dist/destinations/reddit-conversions-api/types.js.map +1 -0
- package/dist/destinations/reddit-conversions-api/utils.d.ts +5 -0
- package/dist/destinations/reddit-conversions-api/utils.js +120 -0
- package/dist/destinations/reddit-conversions-api/utils.js.map +1 -0
- package/dist/destinations/salesforce/index.js +1 -3
- package/dist/destinations/salesforce/index.js.map +1 -1
- package/dist/destinations/salesforce/sf-operations.d.ts +0 -1
- package/dist/destinations/salesforce/sf-operations.js +0 -20
- package/dist/destinations/salesforce/sf-operations.js.map +1 -1
- package/dist/destinations/salesforce/sf-properties.d.ts +0 -1
- package/dist/destinations/salesforce/sf-properties.js +7 -41
- package/dist/destinations/salesforce/sf-properties.js.map +1 -1
- package/dist/destinations/schematic/index.js +1 -1
- package/dist/destinations/schematic/index.js.map +1 -1
- package/dist/destinations/webhook-extensible/generated-types.d.ts +0 -4
- package/dist/destinations/webhook-extensible/index.js +4 -49
- package/dist/destinations/webhook-extensible/index.js.map +1 -1
- package/dist/destinations/webhook-extensible/send/index.js +2 -2
- package/dist/destinations/webhook-extensible/send/index.js.map +1 -1
- package/package.json +4 -4
- package/dist/destinations/contentstack/customAttributesSync/generated-types.d.ts +0 -7
- package/dist/destinations/contentstack/customAttributesSync/generated-types.js.map +0 -1
- package/dist/destinations/contentstack/customAttributesSync/index.js +0 -54
- package/dist/destinations/contentstack/customAttributesSync/index.js.map +0 -1
- package/dist/destinations/contentstack/customAttributesSync/types.d.ts +0 -14
- package/dist/destinations/contentstack/customAttributesSync/types.js.map +0 -1
- package/dist/destinations/contentstack/customAttributesSync/utils.d.ts +0 -4
- package/dist/destinations/contentstack/customAttributesSync/utils.js +0 -20
- package/dist/destinations/contentstack/customAttributesSync/utils.js.map +0 -1
- package/dist/destinations/contentstack/types.d.ts +0 -12
- package/dist/destinations/contentstack/types.js.map +0 -1
- package/dist/destinations/salesforce/lead2/generated-types.d.ts +0 -25
- package/dist/destinations/salesforce/lead2/generated-types.js.map +0 -1
- package/dist/destinations/salesforce/lead2/index.js +0 -200
- package/dist/destinations/salesforce/lead2/index.js.map +0 -1
- package/dist/destinations/webhook-extensible/types.d.ts +0 -6
- package/dist/destinations/webhook-extensible/types.js +0 -3
- package/dist/destinations/webhook-extensible/types.js.map +0 -1
- /package/dist/destinations/contentstack/{customAttributesSync → audienceSync}/generated-types.js +0 -0
- /package/dist/destinations/contentstack/{customAttributesSync → audienceSync}/index.d.ts +0 -0
- /package/dist/destinations/{salesforce/lead2 → contentstack/computedAttributeSync}/generated-types.js +0 -0
- /package/dist/destinations/{contentstack/customAttributesSync → nextdoor-capi/sendConversion}/types.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function hashAndEncode(value: string): string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.hashAndEncode = void 0;
|
|
4
|
+
const crypto_1 = require("crypto");
|
|
5
|
+
function hashAndEncode(value) {
|
|
6
|
+
return crypto_1.createHash('sha256').update(value).digest('hex');
|
|
7
|
+
}
|
|
8
|
+
exports.hashAndEncode = hashAndEncode;
|
|
9
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/destinations/nextdoor-capi/sendConversion/utils.ts"],"names":[],"mappings":";;;AAAA,mCAAmC;AAEnC,SAAgB,aAAa,CAAC,KAAa;IACzC,OAAO,mBAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAA;AACzD,CAAC;AAFD,sCAEC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export interface Payload {
|
|
2
|
+
event_at: string | number;
|
|
3
|
+
custom_event_name: string;
|
|
4
|
+
click_id?: string;
|
|
5
|
+
products?: {
|
|
6
|
+
category: string;
|
|
7
|
+
id: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
}[];
|
|
10
|
+
user?: {
|
|
11
|
+
advertising_id?: string;
|
|
12
|
+
device_type?: string;
|
|
13
|
+
email?: string;
|
|
14
|
+
external_id?: string;
|
|
15
|
+
ip_address?: string;
|
|
16
|
+
opt_out?: boolean;
|
|
17
|
+
user_agent?: string;
|
|
18
|
+
uuid?: string;
|
|
19
|
+
};
|
|
20
|
+
data_processing_options?: {
|
|
21
|
+
country?: string;
|
|
22
|
+
modes?: string;
|
|
23
|
+
region?: string;
|
|
24
|
+
};
|
|
25
|
+
screen_dimensions?: {
|
|
26
|
+
height?: number;
|
|
27
|
+
width?: number;
|
|
28
|
+
};
|
|
29
|
+
event_metadata?: {
|
|
30
|
+
currency?: string;
|
|
31
|
+
item_count?: number;
|
|
32
|
+
value_decimal?: number;
|
|
33
|
+
};
|
|
34
|
+
conversion_id?: string;
|
|
35
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/reddit-conversions-api/customEvent/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const utils_1 = require("../utils");
|
|
4
|
+
const fields_1 = require("../fields");
|
|
5
|
+
const action = {
|
|
6
|
+
title: 'Send Custom Event',
|
|
7
|
+
description: 'Send a Custom Conversion Event to Reddit',
|
|
8
|
+
fields: {
|
|
9
|
+
event_at: fields_1.event_at,
|
|
10
|
+
custom_event_name: fields_1.custom_event_name,
|
|
11
|
+
click_id: fields_1.click_id,
|
|
12
|
+
products: fields_1.products,
|
|
13
|
+
user: fields_1.user,
|
|
14
|
+
data_processing_options: fields_1.data_processing_options,
|
|
15
|
+
screen_dimensions: fields_1.screen_dimensions,
|
|
16
|
+
event_metadata: fields_1.event_metadata,
|
|
17
|
+
conversion_id: fields_1.conversion_id
|
|
18
|
+
},
|
|
19
|
+
perform: async (request, { settings, payload }) => {
|
|
20
|
+
return await utils_1.send(request, settings, [payload]);
|
|
21
|
+
},
|
|
22
|
+
performBatch: async (request, { settings, payload }) => {
|
|
23
|
+
return await utils_1.send(request, settings, payload);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
exports.default = action;
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/reddit-conversions-api/customEvent/index.ts"],"names":[],"mappings":";;AAGA,oCAA+B;AAC/B,sCAUkB;AAElB,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,mBAAmB;IAC1B,WAAW,EAAE,0CAA0C;IACvD,MAAM,EAAE;QACN,QAAQ,EAAR,iBAAQ;QACR,iBAAiB,EAAjB,0BAAiB;QACjB,QAAQ,EAAR,iBAAQ;QACR,QAAQ,EAAR,iBAAQ;QACR,IAAI,EAAJ,aAAI;QACJ,uBAAuB,EAAvB,gCAAuB;QACvB,iBAAiB,EAAjB,0BAAiB;QACjB,cAAc,EAAd,uBAAc;QACd,aAAa,EAAb,sBAAa;KACd;IACD,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QAChD,OAAO,MAAM,YAAI,CAAC,OAAO,EAAE,QAAQ,EAAE,CAAC,OAAO,CAAC,CAAC,CAAA;IACjD,CAAC;IACD,YAAY,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE;QACrD,OAAO,MAAM,YAAI,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAA;IAC/C,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { InputField } from '@segment/actions-core/destination-kit/types';
|
|
2
|
+
export declare const event_at: InputField;
|
|
3
|
+
export declare const custom_event_name: InputField;
|
|
4
|
+
export declare const tracking_type: InputField;
|
|
5
|
+
export declare const click_id: InputField;
|
|
6
|
+
export declare const conversion_id: InputField;
|
|
7
|
+
export declare const event_metadata: InputField;
|
|
8
|
+
export declare const products: InputField;
|
|
9
|
+
export declare const user: InputField;
|
|
10
|
+
export declare const data_processing_options: InputField;
|
|
11
|
+
export declare const screen_dimensions: InputField;
|
|
@@ -0,0 +1,502 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.screen_dimensions = exports.data_processing_options = exports.user = exports.products = exports.event_metadata = exports.conversion_id = exports.click_id = exports.tracking_type = exports.custom_event_name = exports.event_at = void 0;
|
|
4
|
+
exports.event_at = {
|
|
5
|
+
label: 'Event At',
|
|
6
|
+
description: 'The RFC3339 timestamp when the conversion event occurred',
|
|
7
|
+
type: 'datetime',
|
|
8
|
+
required: true,
|
|
9
|
+
default: {
|
|
10
|
+
'@path': '$.timestamp'
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
exports.custom_event_name = {
|
|
14
|
+
label: 'Custom Event Name',
|
|
15
|
+
description: 'A custom event name that can be passed when tracking_type is set to "Custom". All UTF-8 characters are accepted and custom_event_name must be at most 64 characters long.',
|
|
16
|
+
type: 'string',
|
|
17
|
+
required: true
|
|
18
|
+
};
|
|
19
|
+
exports.tracking_type = {
|
|
20
|
+
label: 'Tracking Type',
|
|
21
|
+
description: "One of Reddit CAPI's standard conversion event types. To send a Custom event to Reddit use the Custom Event Action instead.",
|
|
22
|
+
type: 'string',
|
|
23
|
+
required: true,
|
|
24
|
+
choices: [
|
|
25
|
+
{ label: 'Page Visit', value: 'PageVisit' },
|
|
26
|
+
{ label: 'View Content', value: 'ViewContent' },
|
|
27
|
+
{ label: 'Search', value: 'Search' },
|
|
28
|
+
{ label: 'Add to Cart', value: 'AddToCart' },
|
|
29
|
+
{ label: 'Add to Wishlist', value: 'AddToWishlist' },
|
|
30
|
+
{ label: 'Purchase', value: 'Purchase' },
|
|
31
|
+
{ label: 'Lead', value: 'Lead' },
|
|
32
|
+
{ label: 'Sign Up', value: 'SignUp' }
|
|
33
|
+
]
|
|
34
|
+
};
|
|
35
|
+
exports.click_id = {
|
|
36
|
+
label: 'Click ID',
|
|
37
|
+
description: 'The Reddit-generated id associated with a single ad click.',
|
|
38
|
+
type: 'string',
|
|
39
|
+
required: false,
|
|
40
|
+
default: {
|
|
41
|
+
'@if': {
|
|
42
|
+
exists: { '@path': '$.integrations.Reddit Conversions Api.click_id' },
|
|
43
|
+
then: { '@path': '$.integrations.Reddit Conversions Api.click_id' },
|
|
44
|
+
else: { '@path': '$.properties.click_id' }
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
exports.conversion_id = {
|
|
49
|
+
label: 'Conversion ID',
|
|
50
|
+
description: 'The unique conversion ID that corresponds to a distinct conversion event.',
|
|
51
|
+
type: 'string',
|
|
52
|
+
required: false,
|
|
53
|
+
default: { '@path': '$.properties.conversion_id' }
|
|
54
|
+
};
|
|
55
|
+
exports.event_metadata = {
|
|
56
|
+
label: 'Event Metadata',
|
|
57
|
+
description: 'The metadata associated with the conversion event.',
|
|
58
|
+
type: 'object',
|
|
59
|
+
required: false,
|
|
60
|
+
properties: {
|
|
61
|
+
currency: {
|
|
62
|
+
label: 'Currency',
|
|
63
|
+
description: 'The currency for the value provided. This must be a three-character ISO 4217 currency code. This should only be set for revenue-related events.',
|
|
64
|
+
type: 'string',
|
|
65
|
+
choices: [
|
|
66
|
+
{ label: 'AUD - Australian Dollar', value: 'AUD' },
|
|
67
|
+
{ label: 'CAD - Canadian Dollar', value: 'CAD' },
|
|
68
|
+
{ label: 'EUR - Euro', value: 'EUR' },
|
|
69
|
+
{ label: 'GBP - Pound Sterling', value: 'GBP' },
|
|
70
|
+
{ label: 'NZD - New Zealand Dollar', value: 'NZD' },
|
|
71
|
+
{ label: 'USD - US Dollar', value: 'USD' }
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
item_count: {
|
|
75
|
+
label: 'Item Count',
|
|
76
|
+
description: 'The number of items in the event. This should only be set for revenue-related events.',
|
|
77
|
+
type: 'integer'
|
|
78
|
+
},
|
|
79
|
+
value_decimal: {
|
|
80
|
+
label: 'Value Decimal',
|
|
81
|
+
description: 'The value of the transaction in the base unit of the currency. For example, dollars, euros, pesos, rupees, and bitcoin for USD, EUR, MXN, INR, and BTC respectively. This should only be set for revenue-related events.',
|
|
82
|
+
type: 'number'
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
default: {
|
|
86
|
+
currency: {
|
|
87
|
+
'@path': '$.properties.currency'
|
|
88
|
+
},
|
|
89
|
+
item_count: {
|
|
90
|
+
'@path': '$.properties.quantity'
|
|
91
|
+
},
|
|
92
|
+
value_decimal: {
|
|
93
|
+
'@path': '$.properties.total'
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
exports.products = {
|
|
98
|
+
label: 'Products',
|
|
99
|
+
description: 'The products associated with the conversion event.',
|
|
100
|
+
type: 'object',
|
|
101
|
+
required: false,
|
|
102
|
+
multiple: true,
|
|
103
|
+
properties: {
|
|
104
|
+
category: {
|
|
105
|
+
label: 'Category',
|
|
106
|
+
description: "The category the product is in; for example, a label from Google's product taxonomy. Required.",
|
|
107
|
+
type: 'string',
|
|
108
|
+
required: true
|
|
109
|
+
},
|
|
110
|
+
id: {
|
|
111
|
+
label: 'Product ID',
|
|
112
|
+
description: 'The ID representing the product in a catalog. Required.',
|
|
113
|
+
type: 'string',
|
|
114
|
+
required: true
|
|
115
|
+
},
|
|
116
|
+
name: {
|
|
117
|
+
label: 'Product Name',
|
|
118
|
+
description: 'The name of the product. Optional.',
|
|
119
|
+
type: 'string',
|
|
120
|
+
required: false
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
default: {
|
|
124
|
+
'@arrayPath': [
|
|
125
|
+
'$.properties.products',
|
|
126
|
+
{
|
|
127
|
+
category: { '@path': '$.category' },
|
|
128
|
+
id: { '@path': '$.product_id' },
|
|
129
|
+
name: { '@path': '$.name' }
|
|
130
|
+
}
|
|
131
|
+
]
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
exports.user = {
|
|
135
|
+
label: 'User',
|
|
136
|
+
description: 'The identifying user parameters associated with the conversion event.',
|
|
137
|
+
type: 'object',
|
|
138
|
+
required: false,
|
|
139
|
+
properties: {
|
|
140
|
+
advertising_id: {
|
|
141
|
+
label: 'Advertising ID',
|
|
142
|
+
description: 'The mobile advertising ID for the user. This can be the iOS IDFA, Android AAID.',
|
|
143
|
+
type: 'string'
|
|
144
|
+
},
|
|
145
|
+
device_type: {
|
|
146
|
+
label: 'Device Type',
|
|
147
|
+
description: 'The type of mobile device. e.g. iOS or Android.',
|
|
148
|
+
type: 'string'
|
|
149
|
+
},
|
|
150
|
+
email: {
|
|
151
|
+
label: 'Email',
|
|
152
|
+
description: 'The email address of the user.',
|
|
153
|
+
type: 'string'
|
|
154
|
+
},
|
|
155
|
+
external_id: {
|
|
156
|
+
label: 'External ID',
|
|
157
|
+
description: 'An advertiser-assigned persistent identifier for the user.',
|
|
158
|
+
type: 'string'
|
|
159
|
+
},
|
|
160
|
+
ip_address: {
|
|
161
|
+
label: 'IP Address',
|
|
162
|
+
description: 'The IP address of the user.',
|
|
163
|
+
type: 'string'
|
|
164
|
+
},
|
|
165
|
+
opt_out: {
|
|
166
|
+
label: 'Opt Out',
|
|
167
|
+
description: 'A flag indicating whether the user has opted out of tracking.',
|
|
168
|
+
type: 'boolean'
|
|
169
|
+
},
|
|
170
|
+
user_agent: {
|
|
171
|
+
label: 'User Agent',
|
|
172
|
+
description: "The user agent of the user's browser.",
|
|
173
|
+
type: 'string'
|
|
174
|
+
},
|
|
175
|
+
uuid: {
|
|
176
|
+
label: 'UUID',
|
|
177
|
+
description: "The value from the first-party Pixel '_rdt_uuid' cookie on your domain. Note that it is in the '{timestamp}.{uuid}' format. You may use the full value or just the UUID portion.",
|
|
178
|
+
type: 'string'
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
default: {
|
|
182
|
+
advertising_id: { '@path': '$.context.device.advertisingId' },
|
|
183
|
+
device_type: { '@path': '$.context.device.type' },
|
|
184
|
+
email: {
|
|
185
|
+
'@if': {
|
|
186
|
+
exists: { '@path': '$.context.traits.email' },
|
|
187
|
+
then: { '@path': '$.context.traits.email' },
|
|
188
|
+
else: { '@path': '$.properties.email' }
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
external_id: {
|
|
192
|
+
'@if': {
|
|
193
|
+
exists: { '@path': '$.userId' },
|
|
194
|
+
then: { '@path': '$.userId' },
|
|
195
|
+
else: { '@path': '$.anonymousId' }
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
ip_address: { '@path': '$.context.ip' },
|
|
199
|
+
opt_out: { '@path': '$.properties.opt_out' },
|
|
200
|
+
user_agent: { '@path': '$.context.userAgent' },
|
|
201
|
+
uuid: {
|
|
202
|
+
'@if': {
|
|
203
|
+
exists: { '@path': '$.integrations.Reddit Conversions Api.uuid' },
|
|
204
|
+
then: { '@path': '$.integrations.Reddit Conversions Api.uuid' },
|
|
205
|
+
else: { '@path': '$.properties.uuid' }
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
};
|
|
210
|
+
exports.data_processing_options = {
|
|
211
|
+
label: 'Data Processing Options',
|
|
212
|
+
description: 'A structure of data processing options to specify the processing type for the event.',
|
|
213
|
+
type: 'object',
|
|
214
|
+
required: false,
|
|
215
|
+
additionalProperties: false,
|
|
216
|
+
properties: {
|
|
217
|
+
country: {
|
|
218
|
+
label: 'Country',
|
|
219
|
+
description: 'Country Code of the user. We support ISO 3166-1 alpha-2 country code.',
|
|
220
|
+
type: 'string',
|
|
221
|
+
choices: [
|
|
222
|
+
{ label: 'AD - Andorra', value: 'AD' },
|
|
223
|
+
{ label: 'AE - United Arab Emirates', value: 'AE' },
|
|
224
|
+
{ label: 'AF - Afghanistan', value: 'AF' },
|
|
225
|
+
{ label: 'AG - Antigua and Barbuda', value: 'AG' },
|
|
226
|
+
{ label: 'AI - Anguilla', value: 'AI' },
|
|
227
|
+
{ label: 'AL - Albania', value: 'AL' },
|
|
228
|
+
{ label: 'AM - Armenia', value: 'AM' },
|
|
229
|
+
{ label: 'AO - Angola', value: 'AO' },
|
|
230
|
+
{ label: 'AQ - Antarctica', value: 'AQ' },
|
|
231
|
+
{ label: 'AR - Argentina', value: 'AR' },
|
|
232
|
+
{ label: 'AS - American Samoa', value: 'AS' },
|
|
233
|
+
{ label: 'AT - Austria', value: 'AT' },
|
|
234
|
+
{ label: 'AU - Australia', value: 'AU' },
|
|
235
|
+
{ label: 'AW - Aruba', value: 'AW' },
|
|
236
|
+
{ label: 'AX - Åland Islands', value: 'AX' },
|
|
237
|
+
{ label: 'AZ - Azerbaijan', value: 'AZ' },
|
|
238
|
+
{ label: 'BA - Bosnia and Herzegovina', value: 'BA' },
|
|
239
|
+
{ label: 'BB - Barbados', value: 'BB' },
|
|
240
|
+
{ label: 'BD - Bangladesh', value: 'BD' },
|
|
241
|
+
{ label: 'BE - Belgium', value: 'BE' },
|
|
242
|
+
{ label: 'BF - Burkina Faso', value: 'BF' },
|
|
243
|
+
{ label: 'BG - Bulgaria', value: 'BG' },
|
|
244
|
+
{ label: 'BH - Bahrain', value: 'BH' },
|
|
245
|
+
{ label: 'BI - Burundi', value: 'BI' },
|
|
246
|
+
{ label: 'BJ - Benin', value: 'BJ' },
|
|
247
|
+
{ label: 'BL - Saint Barthélemy', value: 'BL' },
|
|
248
|
+
{ label: 'BM - Bermuda', value: 'BM' },
|
|
249
|
+
{ label: 'BN - Brunei Darussalam', value: 'BN' },
|
|
250
|
+
{ label: 'BO - Bolivia (Plurinational State of)', value: 'BO' },
|
|
251
|
+
{ label: 'BQ - Bonaire, Sint Eustatius and Saba', value: 'BQ' },
|
|
252
|
+
{ label: 'BR - Brazil', value: 'BR' },
|
|
253
|
+
{ label: 'BS - Bahamas', value: 'BS' },
|
|
254
|
+
{ label: 'BT - Bhutan', value: 'BT' },
|
|
255
|
+
{ label: 'BV - Bouvet Island', value: 'BV' },
|
|
256
|
+
{ label: 'BW - Botswana', value: 'BW' },
|
|
257
|
+
{ label: 'BY - Belarus', value: 'BY' },
|
|
258
|
+
{ label: 'BZ - Belize', value: 'BZ' },
|
|
259
|
+
{ label: 'CA - Canada', value: 'CA' },
|
|
260
|
+
{ label: 'CC - Cocos (Keeling) Islands', value: 'CC' },
|
|
261
|
+
{ label: 'CD - Congo, Democratic Republic of the', value: 'CD' },
|
|
262
|
+
{ label: 'CF - Central African Republic', value: 'CF' },
|
|
263
|
+
{ label: 'CG - Congo', value: 'CG' },
|
|
264
|
+
{ label: 'CH - Switzerland', value: 'CH' },
|
|
265
|
+
{ label: "CI - Côte d'Ivoire", value: 'CI' },
|
|
266
|
+
{ label: 'CK - Cook Islands', value: 'CK' },
|
|
267
|
+
{ label: 'CL - Chile', value: 'CL' },
|
|
268
|
+
{ label: 'CM - Cameroon', value: 'CM' },
|
|
269
|
+
{ label: 'CN - China', value: 'CN' },
|
|
270
|
+
{ label: 'CO - Colombia', value: 'CO' },
|
|
271
|
+
{ label: 'CR - Costa Rica', value: 'CR' },
|
|
272
|
+
{ label: 'CU - Cuba', value: 'CU' },
|
|
273
|
+
{ label: 'CV - Cabo Verde', value: 'CV' },
|
|
274
|
+
{ label: 'CW - Curaçao', value: 'CW' },
|
|
275
|
+
{ label: 'CX - Christmas Island', value: 'CX' },
|
|
276
|
+
{ label: 'CY - Cyprus', value: 'CY' },
|
|
277
|
+
{ label: 'CZ - Czechia', value: 'CZ' },
|
|
278
|
+
{ label: 'DE - Germany', value: 'DE' },
|
|
279
|
+
{ label: 'DJ - Djibouti', value: 'DJ' },
|
|
280
|
+
{ label: 'DK - Denmark', value: 'DK' },
|
|
281
|
+
{ label: 'DM - Dominica', value: 'DM' },
|
|
282
|
+
{ label: 'DO - Dominican Republic', value: 'DO' },
|
|
283
|
+
{ label: 'DZ - Algeria', value: 'DZ' },
|
|
284
|
+
{ label: 'EC - Ecuador', value: 'EC' },
|
|
285
|
+
{ label: 'EE - Estonia', value: 'EE' },
|
|
286
|
+
{ label: 'EG - Egypt', value: 'EG' },
|
|
287
|
+
{ label: 'EH - Western Sahara', value: 'EH' },
|
|
288
|
+
{ label: 'ER - Eritrea', value: 'ER' },
|
|
289
|
+
{ label: 'ES - Spain', value: 'ES' },
|
|
290
|
+
{ label: 'ET - Ethiopia', value: 'ET' },
|
|
291
|
+
{ label: 'FI - Finland', value: 'FI' },
|
|
292
|
+
{ label: 'FJ - Fiji', value: 'FJ' },
|
|
293
|
+
{ label: 'FK - Falkland Islands (Malvinas)', value: 'FK' },
|
|
294
|
+
{ label: 'FM - Micronesia (Federated States of)', value: 'FM' },
|
|
295
|
+
{ label: 'FO - Faroe Islands', value: 'FO' },
|
|
296
|
+
{ label: 'FR - France', value: 'FR' },
|
|
297
|
+
{ label: 'GA - Gabon', value: 'GA' },
|
|
298
|
+
{ label: 'GB - United Kingdom of Great Britain and Northern Ireland', value: 'GB' },
|
|
299
|
+
{ label: 'GD - Grenada', value: 'GD' },
|
|
300
|
+
{ label: 'GE - Georgia', value: 'GE' },
|
|
301
|
+
{ label: 'GF - French Guiana', value: 'GF' },
|
|
302
|
+
{ label: 'GG - Guernsey', value: 'GG' },
|
|
303
|
+
{ label: 'GH - Ghana', value: 'GH' },
|
|
304
|
+
{ label: 'GI - Gibraltar', value: 'GI' },
|
|
305
|
+
{ label: 'GL - Greenland', value: 'GL' },
|
|
306
|
+
{ label: 'GM - Gambia', value: 'GM' },
|
|
307
|
+
{ label: 'GN - Guinea', value: 'GN' },
|
|
308
|
+
{ label: 'GP - Guadeloupe', value: 'GP' },
|
|
309
|
+
{ label: 'GQ - Equatorial Guinea', value: 'GQ' },
|
|
310
|
+
{ label: 'GR - Greece', value: 'GR' },
|
|
311
|
+
{ label: 'GT - Guatemala', value: 'GT' },
|
|
312
|
+
{ label: 'GU - Guam', value: 'GU' },
|
|
313
|
+
{ label: 'GW - Guinea-Bissau', value: 'GW' },
|
|
314
|
+
{ label: 'GY - Guyana', value: 'GY' },
|
|
315
|
+
{ label: 'HK - Hong Kong', value: 'HK' },
|
|
316
|
+
{ label: 'HM - Heard Island and McDonald Islands', value: 'HM' },
|
|
317
|
+
{ label: 'HN - Honduras', value: 'HN' },
|
|
318
|
+
{ label: 'HR - Croatia', value: 'HR' },
|
|
319
|
+
{ label: 'HT - Haiti', value: 'HT' },
|
|
320
|
+
{ label: 'HU - Hungary', value: 'HU' },
|
|
321
|
+
{ label: 'ID - Indonesia', value: 'ID' },
|
|
322
|
+
{ label: 'IE - Ireland', value: 'IE' },
|
|
323
|
+
{ label: 'IL - Israel', value: 'IL' },
|
|
324
|
+
{ label: 'IM - Isle of Man', value: 'IM' },
|
|
325
|
+
{ label: 'IN - India', value: 'IN' },
|
|
326
|
+
{ label: 'IO - British Indian Ocean Territory', value: 'IO' },
|
|
327
|
+
{ label: 'IQ - Iraq', value: 'IQ' },
|
|
328
|
+
{ label: 'IR - Iran (Islamic Republic of)', value: 'IR' },
|
|
329
|
+
{ label: 'IS - Iceland', value: 'IS' },
|
|
330
|
+
{ label: 'IT - Italy', value: 'IT' },
|
|
331
|
+
{ label: 'JE - Jersey', value: 'JE' },
|
|
332
|
+
{ label: 'JM - Jamaica', value: 'JM' },
|
|
333
|
+
{ label: 'JO - Jordan', value: 'JO' },
|
|
334
|
+
{ label: 'JP - Japan', value: 'JP' },
|
|
335
|
+
{ label: 'KE - Kenya', value: 'KE' },
|
|
336
|
+
{ label: 'KG - Kyrgyzstan', value: 'KG' },
|
|
337
|
+
{ label: 'KH - Cambodia', value: 'KH' },
|
|
338
|
+
{ label: 'KI - Kiribati', value: 'KI' },
|
|
339
|
+
{ label: 'KM - Comoros', value: 'KM' },
|
|
340
|
+
{ label: 'KN - Saint Kitts and Nevis', value: 'KN' },
|
|
341
|
+
{ label: "KP - Korea (Democratic People's Republic of)", value: 'KP' },
|
|
342
|
+
{ label: 'KR - Korea, Republic of', value: 'KR' },
|
|
343
|
+
{ label: 'KW - Kuwait', value: 'KW' },
|
|
344
|
+
{ label: 'KY - Cayman Islands', value: 'KY' },
|
|
345
|
+
{ label: 'KZ - Kazakhstan', value: 'KZ' },
|
|
346
|
+
{ label: "LA - Lao People's Democratic Republic", value: 'LA' },
|
|
347
|
+
{ label: 'LB - Lebanon', value: 'LB' },
|
|
348
|
+
{ label: 'LC - Saint Lucia', value: 'LC' },
|
|
349
|
+
{ label: 'LI - Liechtenstein', value: 'LI' },
|
|
350
|
+
{ label: 'LK - Sri Lanka', value: 'LK' },
|
|
351
|
+
{ label: 'LR - Liberia', value: 'LR' },
|
|
352
|
+
{ label: 'LS - Lesotho', value: 'LS' },
|
|
353
|
+
{ label: 'LT - Lithuania', value: 'LT' },
|
|
354
|
+
{ label: 'LU - Luxembourg', value: 'LU' },
|
|
355
|
+
{ label: 'LV - Latvia', value: 'LV' },
|
|
356
|
+
{ label: 'LY - Libya', value: 'LY' },
|
|
357
|
+
{ label: 'MA - Morocco', value: 'MA' },
|
|
358
|
+
{ label: 'MC - Monaco', value: 'MC' },
|
|
359
|
+
{ label: 'MD - Moldova (Republic of)', value: 'MD' },
|
|
360
|
+
{ label: 'ME - Montenegro', value: 'ME' },
|
|
361
|
+
{ label: 'MF - Saint Martin (French part)', value: 'MF' },
|
|
362
|
+
{ label: 'MG - Madagascar', value: 'MG' },
|
|
363
|
+
{ label: 'MH - Marshall Islands', value: 'MH' },
|
|
364
|
+
{ label: 'MK - North Macedonia', value: 'MK' },
|
|
365
|
+
{ label: 'ML - Mali', value: 'ML' },
|
|
366
|
+
{ label: 'MM - Myanmar', value: 'MM' },
|
|
367
|
+
{ label: 'MN - Mongolia', value: 'MN' },
|
|
368
|
+
{ label: 'MO - Macao', value: 'MO' },
|
|
369
|
+
{ label: 'MP - Northern Mariana Islands', value: 'MP' },
|
|
370
|
+
{ label: 'MQ - Martinique', value: 'MQ' },
|
|
371
|
+
{ label: 'MR - Mauritania', value: 'MR' },
|
|
372
|
+
{ label: 'MS - Montserrat', value: 'MS' },
|
|
373
|
+
{ label: 'MT - Malta', value: 'MT' },
|
|
374
|
+
{ label: 'MU - Mauritius', value: 'MU' },
|
|
375
|
+
{ label: 'MV - Maldives', value: 'MV' },
|
|
376
|
+
{ label: 'MW - Malawi', value: 'MW' },
|
|
377
|
+
{ label: 'MX - Mexico', value: 'MX' },
|
|
378
|
+
{ label: 'MY - Malaysia', value: 'MY' },
|
|
379
|
+
{ label: 'MZ - Mozambique', value: 'MZ' },
|
|
380
|
+
{ label: 'NA - Namibia', value: 'NA' },
|
|
381
|
+
{ label: 'NC - New Caledonia', value: 'NC' },
|
|
382
|
+
{ label: 'NE - Niger', value: 'NE' },
|
|
383
|
+
{ label: 'NF - Norfolk Island', value: 'NF' },
|
|
384
|
+
{ label: 'NG - Nigeria', value: 'NG' },
|
|
385
|
+
{ label: 'NI - Nicaragua', value: 'NI' },
|
|
386
|
+
{ label: 'NL - Netherlands', value: 'NL' },
|
|
387
|
+
{ label: 'NO - Norway', value: 'NO' },
|
|
388
|
+
{ label: 'NP - Nepal', value: 'NP' },
|
|
389
|
+
{ label: 'NR - Nauru', value: 'NR' },
|
|
390
|
+
{ label: 'NU - Niue', value: 'NU' },
|
|
391
|
+
{ label: 'NZ - New Zealand', value: 'NZ' },
|
|
392
|
+
{ label: 'OM - Oman', value: 'OM' },
|
|
393
|
+
{ label: 'PA - Panama', value: 'PA' },
|
|
394
|
+
{ label: 'PE - Peru', value: 'PE' },
|
|
395
|
+
{ label: 'PF - French Polynesia', value: 'PF' },
|
|
396
|
+
{ label: 'PG - Papua New Guinea', value: 'PG' },
|
|
397
|
+
{ label: 'PH - Philippines', value: 'PH' },
|
|
398
|
+
{ label: 'PK - Pakistan', value: 'PK' },
|
|
399
|
+
{ label: 'PL - Poland', value: 'PL' },
|
|
400
|
+
{ label: 'PM - Saint Pierre and Miquelon', value: 'PM' },
|
|
401
|
+
{ label: 'PN - Pitcairn', value: 'PN' },
|
|
402
|
+
{ label: 'PR - Puerto Rico', value: 'PR' },
|
|
403
|
+
{ label: 'PT - Portugal', value: 'PT' },
|
|
404
|
+
{ label: 'PW - Palau', value: 'PW' },
|
|
405
|
+
{ label: 'PY - Paraguay', value: 'PY' },
|
|
406
|
+
{ label: 'QA - Qatar', value: 'QA' },
|
|
407
|
+
{ label: 'RE - Réunion', value: 'RE' },
|
|
408
|
+
{ label: 'RO - Romania', value: 'RO' },
|
|
409
|
+
{ label: 'RS - Serbia', value: 'RS' },
|
|
410
|
+
{ label: 'RU - Russian Federation', value: 'RU' },
|
|
411
|
+
{ label: 'RW - Rwanda', value: 'RW' },
|
|
412
|
+
{ label: 'SA - Saudi Arabia', value: 'SA' },
|
|
413
|
+
{ label: 'SB - Solomon Islands', value: 'SB' },
|
|
414
|
+
{ label: 'SC - Seychelles', value: 'SC' },
|
|
415
|
+
{ label: 'SD - Sudan', value: 'SD' },
|
|
416
|
+
{ label: 'SE - Sweden', value: 'SE' },
|
|
417
|
+
{ label: 'SG - Singapore', value: 'SG' },
|
|
418
|
+
{ label: 'SH - Saint Helena', value: 'SH' },
|
|
419
|
+
{ label: 'SI - Slovenia', value: 'SI' },
|
|
420
|
+
{ label: 'SJ - Svalbard and Jan Mayen', value: 'SJ' },
|
|
421
|
+
{ label: 'SK - Slovakia', value: 'SK' },
|
|
422
|
+
{ label: 'SL - Sierra Leone', value: 'SL' },
|
|
423
|
+
{ label: 'SM - San Marino', value: 'SM' },
|
|
424
|
+
{ label: 'SN - Senegal', value: 'SN' },
|
|
425
|
+
{ label: 'SO - Somalia', value: 'SO' },
|
|
426
|
+
{ label: 'SR - Suriname', value: 'SR' },
|
|
427
|
+
{ label: 'SS - South Sudan', value: 'SS' },
|
|
428
|
+
{ label: 'ST - São Tomé and Príncipe', value: 'ST' },
|
|
429
|
+
{ label: 'SV - El Salvador', value: 'SV' },
|
|
430
|
+
{ label: 'SX - Sint Maarten (Dutch part)', value: 'SX' },
|
|
431
|
+
{ label: 'SY - Syrian Arab Republic', value: 'SY' },
|
|
432
|
+
{ label: 'SZ - Eswatini', value: 'SZ' },
|
|
433
|
+
{ label: 'TC - Turks and Caicos Islands', value: 'TC' },
|
|
434
|
+
{ label: 'TD - Chad', value: 'TD' },
|
|
435
|
+
{ label: 'TF - French Southern Territories', value: 'TF' },
|
|
436
|
+
{ label: 'TG - Togo', value: 'TG' },
|
|
437
|
+
{ label: 'TH - Thailand', value: 'TH' },
|
|
438
|
+
{ label: 'TJ - Tajikistan', value: 'TJ' },
|
|
439
|
+
{ label: 'TK - Tokelau', value: 'TK' },
|
|
440
|
+
{ label: 'TL - Timor-Leste', value: 'TL' },
|
|
441
|
+
{ label: 'TM - Turkmenistan', value: 'TM' },
|
|
442
|
+
{ label: 'TN - Tunisia', value: 'TN' },
|
|
443
|
+
{ label: 'TO - Tonga', value: 'TO' },
|
|
444
|
+
{ label: 'TR - Turkey', value: 'TR' },
|
|
445
|
+
{ label: 'TT - Trinidad and Tobago', value: 'TT' },
|
|
446
|
+
{ label: 'TV - Tuvalu', value: 'TV' },
|
|
447
|
+
{ label: 'TZ - Tanzania, United Republic of', value: 'TZ' },
|
|
448
|
+
{ label: 'UA - Ukraine', value: 'UA' },
|
|
449
|
+
{ label: 'UG - Uganda', value: 'UG' },
|
|
450
|
+
{ label: 'UM - United States Minor Outlying Islands', value: 'UM' },
|
|
451
|
+
{ label: 'UN - United Nations', value: 'UN' },
|
|
452
|
+
{ label: 'US - United States of America', value: 'US' },
|
|
453
|
+
{ label: 'UY - Uruguay', value: 'UY' },
|
|
454
|
+
{ label: 'UZ - Uzbekistan', value: 'UZ' },
|
|
455
|
+
{ label: 'VA - Holy See', value: 'VA' },
|
|
456
|
+
{ label: 'VC - Saint Vincent and the Grenadines', value: 'VC' },
|
|
457
|
+
{ label: 'VE - Venezuela (Bolivarian Republic of)', value: 'VE' },
|
|
458
|
+
{ label: 'VG - Virgin Islands (British)', value: 'VG' },
|
|
459
|
+
{ label: 'VI - Virgin Islands (U.S.)', value: 'VI' },
|
|
460
|
+
{ label: 'VN - Viet Nam', value: 'VN' },
|
|
461
|
+
{ label: 'VU - Vanuatu', value: 'VU' },
|
|
462
|
+
{ label: 'WF - Wallis and Futuna', value: 'WF' },
|
|
463
|
+
{ label: 'WS - Samoa', value: 'WS' },
|
|
464
|
+
{ label: 'YE - Yemen', value: 'YE' },
|
|
465
|
+
{ label: 'YT - Mayotte', value: 'YT' },
|
|
466
|
+
{ label: 'ZA - South Africa', value: 'ZA' },
|
|
467
|
+
{ label: 'ZM - Zambia', value: 'ZM' },
|
|
468
|
+
{ label: 'ZW - Zimbabwe', value: 'ZW' }
|
|
469
|
+
]
|
|
470
|
+
},
|
|
471
|
+
modes: {
|
|
472
|
+
label: 'Modes',
|
|
473
|
+
description: 'Comma delimited list of Data Processing Modes for this conversion event. Currently only LDU (Limited Data Use) is supported.',
|
|
474
|
+
type: 'string',
|
|
475
|
+
choices: [{ label: 'Limited Data Use', value: 'LDU' }]
|
|
476
|
+
},
|
|
477
|
+
region: {
|
|
478
|
+
label: 'Region',
|
|
479
|
+
description: 'Region Code of the user. We support ISO 3166-2 region code, ex: "US-CA, US-NY, etc." or just the region code without country prefix, e.g. "CA, NY, etc.".',
|
|
480
|
+
type: 'string'
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
};
|
|
484
|
+
exports.screen_dimensions = {
|
|
485
|
+
label: 'Screen Dimensions',
|
|
486
|
+
description: "The dimensions of the user's screen.",
|
|
487
|
+
type: 'object',
|
|
488
|
+
additionalProperties: false,
|
|
489
|
+
properties: {
|
|
490
|
+
height: {
|
|
491
|
+
label: 'Height',
|
|
492
|
+
description: "The height of the user's screen in pixels. This must be positive and less than 32768.",
|
|
493
|
+
type: 'integer'
|
|
494
|
+
},
|
|
495
|
+
width: {
|
|
496
|
+
label: 'Width',
|
|
497
|
+
description: "The width of the user's screen in pixels. This must be positive and less than 32768.",
|
|
498
|
+
type: 'integer'
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
};
|
|
502
|
+
//# sourceMappingURL=fields.js.map
|