@segment/action-destinations 3.323.1-hadron.0 → 3.324.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/hubspot/customEvent/client.d.ts +2 -2
- package/dist/destinations/hubspot/customEvent/client.js.map +1 -1
- package/dist/destinations/hubspot/customEvent/dynamic-fields.js +2 -2
- package/dist/destinations/hubspot/customEvent/dynamic-fields.js.map +1 -1
- package/dist/destinations/hubspot/customEvent/index.js +42 -36
- package/dist/destinations/hubspot/customEvent/index.js.map +1 -1
- package/dist/destinations/hubspot/customEvent/types.d.ts +4 -11
- package/dist/destinations/hubspot/customEvent/types.js +2 -1
- package/dist/destinations/hubspot/customEvent/types.js.map +1 -1
- package/dist/destinations/hubspot/customEvent/utils.d.ts +8 -10
- package/dist/destinations/hubspot/customEvent/utils.js +189 -155
- package/dist/destinations/hubspot/customEvent/utils.js.map +1 -1
- package/package.json +4 -5
- package/dist/destinations/braze/createAliasV2.types.d.ts +0 -5
- package/dist/destinations/braze/createAliasV2.types.js +0 -3
- package/dist/destinations/braze/createAliasV2.types.js.map +0 -1
- package/dist/destinations/braze/identifyUserV2.types.d.ts +0 -8
- package/dist/destinations/braze/identifyUserV2.types.js +0 -3
- package/dist/destinations/braze/identifyUserV2.types.js.map +0 -1
- package/dist/destinations/braze/trackEvent2/generated-types.d.ts +0 -16
- package/dist/destinations/braze/trackEvent2/generated-types.js +0 -3
- package/dist/destinations/braze/trackEvent2/generated-types.js.map +0 -1
- package/dist/destinations/braze/trackEvent2/index.d.ts +0 -5
- package/dist/destinations/braze/trackEvent2/index.js +0 -117
- package/dist/destinations/braze/trackEvent2/index.js.map +0 -1
- package/dist/destinations/braze/trackPurchase2/generated-types.d.ts +0 -22
- package/dist/destinations/braze/trackPurchase2/generated-types.js +0 -3
- package/dist/destinations/braze/trackPurchase2/generated-types.js.map +0 -1
- package/dist/destinations/braze/trackPurchase2/index.d.ts +0 -5
- package/dist/destinations/braze/trackPurchase2/index.js +0 -135
- package/dist/destinations/braze/trackPurchase2/index.js.map +0 -1
- package/dist/destinations/campaign-manager-360/common-fields.d.ts +0 -3
- package/dist/destinations/campaign-manager-360/common-fields.js +0 -306
- package/dist/destinations/campaign-manager-360/common-fields.js.map +0 -1
- package/dist/destinations/campaign-manager-360/conversionAdjustmentUpload/generated-types.d.ts +0 -45
- package/dist/destinations/campaign-manager-360/conversionAdjustmentUpload/generated-types.js +0 -3
- package/dist/destinations/campaign-manager-360/conversionAdjustmentUpload/generated-types.js.map +0 -1
- package/dist/destinations/campaign-manager-360/conversionAdjustmentUpload/index.d.ts +0 -5
- package/dist/destinations/campaign-manager-360/conversionAdjustmentUpload/index.js +0 -86
- package/dist/destinations/campaign-manager-360/conversionAdjustmentUpload/index.js.map +0 -1
- package/dist/destinations/campaign-manager-360/conversionUpload/generated-types.d.ts +0 -50
- package/dist/destinations/campaign-manager-360/conversionUpload/generated-types.js +0 -3
- package/dist/destinations/campaign-manager-360/conversionUpload/generated-types.js.map +0 -1
- package/dist/destinations/campaign-manager-360/conversionUpload/index.d.ts +0 -5
- package/dist/destinations/campaign-manager-360/conversionUpload/index.js +0 -131
- package/dist/destinations/campaign-manager-360/conversionUpload/index.js.map +0 -1
- package/dist/destinations/campaign-manager-360/generated-types.d.ts +0 -5
- package/dist/destinations/campaign-manager-360/generated-types.js +0 -3
- package/dist/destinations/campaign-manager-360/generated-types.js.map +0 -1
- package/dist/destinations/campaign-manager-360/index.d.ts +0 -4
- package/dist/destinations/campaign-manager-360/index.js +0 -63
- package/dist/destinations/campaign-manager-360/index.js.map +0 -1
- package/dist/destinations/campaign-manager-360/types.d.ts +0 -116
- package/dist/destinations/campaign-manager-360/types.js +0 -23
- package/dist/destinations/campaign-manager-360/types.js.map +0 -1
- package/dist/destinations/campaign-manager-360/utils.d.ts +0 -21
- package/dist/destinations/campaign-manager-360/utils.js +0 -175
- package/dist/destinations/campaign-manager-360/utils.js.map +0 -1
- package/dist/destinations/first-party-dv360/addToAudContactInfo/generated-types.d.ts +0 -9
- package/dist/destinations/first-party-dv360/addToAudContactInfo/generated-types.js +0 -3
- package/dist/destinations/first-party-dv360/addToAudContactInfo/generated-types.js.map +0 -1
- package/dist/destinations/first-party-dv360/addToAudContactInfo/index.d.ts +0 -5
- package/dist/destinations/first-party-dv360/addToAudContactInfo/index.js +0 -32
- package/dist/destinations/first-party-dv360/addToAudContactInfo/index.js.map +0 -1
- package/dist/destinations/first-party-dv360/addToAudMobileDeviceId/generated-types.d.ts +0 -4
- package/dist/destinations/first-party-dv360/addToAudMobileDeviceId/generated-types.js +0 -3
- package/dist/destinations/first-party-dv360/addToAudMobileDeviceId/generated-types.js.map +0 -1
- package/dist/destinations/first-party-dv360/addToAudMobileDeviceId/index.d.ts +0 -5
- package/dist/destinations/first-party-dv360/addToAudMobileDeviceId/index.js +0 -27
- package/dist/destinations/first-party-dv360/addToAudMobileDeviceId/index.js.map +0 -1
- package/dist/destinations/first-party-dv360/addToList.types.d.ts +0 -9
- package/dist/destinations/first-party-dv360/addToList.types.js +0 -3
- package/dist/destinations/first-party-dv360/addToList.types.js.map +0 -1
- package/dist/destinations/first-party-dv360/properties.d.ts +0 -9
- package/dist/destinations/first-party-dv360/properties.js +0 -69
- package/dist/destinations/first-party-dv360/properties.js.map +0 -1
- package/dist/destinations/hubspot/customEvent/event-completion.d.ts +0 -3
- package/dist/destinations/hubspot/customEvent/event-completion.js +0 -17
- package/dist/destinations/hubspot/customEvent/event-completion.js.map +0 -1
- package/dist/destinations/hubspot/customEvent/validation.d.ts +0 -3
- package/dist/destinations/hubspot/customEvent/validation.js +0 -66
- package/dist/destinations/hubspot/customEvent/validation.js.map +0 -1
- package/dist/destinations/s3/syncAudienceToS3/generated-types.d.ts +0 -53
- package/dist/destinations/s3/syncAudienceToS3/generated-types.js +0 -3
- package/dist/destinations/s3/syncAudienceToS3/generated-types.js.map +0 -1
- package/dist/destinations/s3/syncAudienceToS3/index.d.ts +0 -5
- package/dist/destinations/s3/syncAudienceToS3/index.js +0 -22
- package/dist/destinations/s3/syncAudienceToS3/index.js.map +0 -1
- package/dist/destinations/s3/syncEventsToS3/generated-types.d.ts +0 -44
- package/dist/destinations/s3/syncEventsToS3/generated-types.js +0 -3
- package/dist/destinations/s3/syncEventsToS3/generated-types.js.map +0 -1
- package/dist/destinations/s3/syncEventsToS3/index.d.ts +0 -5
- package/dist/destinations/s3/syncEventsToS3/index.js +0 -19
- package/dist/destinations/s3/syncEventsToS3/index.js.map +0 -1
- package/dist/destinations/s3/syncToS3.types.d.ts +0 -44
- package/dist/destinations/s3/syncToS3.types.js +0 -3
- package/dist/destinations/s3/syncToS3.types.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
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const actions_core_1 = require("@segment/actions-core");
|
|
4
|
-
const utils_1 = require("../utils");
|
|
5
|
-
const action = {
|
|
6
|
-
title: 'Track Event V2',
|
|
7
|
-
description: 'Record custom events in Braze',
|
|
8
|
-
defaultSubscription: 'type = "track" and event != "Order Completed"',
|
|
9
|
-
fields: {
|
|
10
|
-
external_id: {
|
|
11
|
-
label: 'External User ID',
|
|
12
|
-
description: 'The unique user identifier',
|
|
13
|
-
type: 'string',
|
|
14
|
-
default: {
|
|
15
|
-
'@path': '$.userId'
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
user_alias: {
|
|
19
|
-
label: 'User Alias Object',
|
|
20
|
-
description: 'A user alias object. See [the docs](https://www.braze.com/docs/api/objects_filters/user_alias_object/).',
|
|
21
|
-
type: 'object',
|
|
22
|
-
properties: {
|
|
23
|
-
alias_name: {
|
|
24
|
-
label: 'Alias Name',
|
|
25
|
-
type: 'string'
|
|
26
|
-
},
|
|
27
|
-
alias_label: {
|
|
28
|
-
label: 'Alias Label',
|
|
29
|
-
type: 'string'
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
email: {
|
|
34
|
-
label: 'Email',
|
|
35
|
-
description: 'The user email',
|
|
36
|
-
type: 'string',
|
|
37
|
-
default: {
|
|
38
|
-
'@if': {
|
|
39
|
-
exists: { '@path': '$.context.traits.email' },
|
|
40
|
-
then: { '@path': '$.context.traits.email' },
|
|
41
|
-
else: { '@path': '$.properties.email' }
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
braze_id: {
|
|
46
|
-
label: 'Braze User Identifier',
|
|
47
|
-
description: 'The unique user identifier',
|
|
48
|
-
type: 'string',
|
|
49
|
-
allowNull: true,
|
|
50
|
-
default: {
|
|
51
|
-
'@path': '$.properties.braze_id'
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
name: {
|
|
55
|
-
label: 'Event Name',
|
|
56
|
-
description: 'The event name',
|
|
57
|
-
type: 'string',
|
|
58
|
-
required: true,
|
|
59
|
-
default: {
|
|
60
|
-
'@path': '$.event'
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
time: {
|
|
64
|
-
label: 'Time',
|
|
65
|
-
description: 'When the event occurred.',
|
|
66
|
-
type: 'datetime',
|
|
67
|
-
required: true,
|
|
68
|
-
default: {
|
|
69
|
-
'@path': '$.receivedAt'
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
properties: {
|
|
73
|
-
label: 'Event Properties',
|
|
74
|
-
description: 'Properties of the event',
|
|
75
|
-
type: 'object',
|
|
76
|
-
default: {
|
|
77
|
-
'@path': '$.properties'
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
enable_batching: {
|
|
81
|
-
type: 'boolean',
|
|
82
|
-
label: 'Batch Data to Braze',
|
|
83
|
-
description: 'If true, Segment will batch events before sending to Braze’s user track endpoint. Braze accepts batches of up to 75 events.',
|
|
84
|
-
default: true
|
|
85
|
-
},
|
|
86
|
-
batch_size: {
|
|
87
|
-
label: 'Batch Size',
|
|
88
|
-
description: 'Maximum number of events to include in each batch. Actual batch sizes may be lower.',
|
|
89
|
-
type: 'number',
|
|
90
|
-
default: 75,
|
|
91
|
-
unsafe_hidden: true
|
|
92
|
-
}
|
|
93
|
-
},
|
|
94
|
-
syncMode: {
|
|
95
|
-
description: 'Define how the records from your destination will be synced.',
|
|
96
|
-
label: 'How to track events',
|
|
97
|
-
default: 'add',
|
|
98
|
-
choices: [
|
|
99
|
-
{ label: 'Add Profile with Event', value: 'add' },
|
|
100
|
-
{ label: 'Update Profile with Event', value: 'update' }
|
|
101
|
-
]
|
|
102
|
-
},
|
|
103
|
-
perform: (request, { settings, payload, syncMode }) => {
|
|
104
|
-
if (syncMode === 'add' || syncMode === 'update') {
|
|
105
|
-
return utils_1.sendTrackEvent(request, settings, payload, syncMode);
|
|
106
|
-
}
|
|
107
|
-
throw new actions_core_1.IntegrationError('syncMode must be "add" or "upsert"', 'Invalid syncMode', 400);
|
|
108
|
-
},
|
|
109
|
-
performBatch: (request, { settings, payload, syncMode }) => {
|
|
110
|
-
if (syncMode === 'add' || syncMode === 'update') {
|
|
111
|
-
return utils_1.sendBatchedTrackEvent(request, settings, payload, syncMode);
|
|
112
|
-
}
|
|
113
|
-
throw new actions_core_1.IntegrationError('syncMode must be "add" or "upsert"', 'Invalid syncMode', 400);
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
|
-
exports.default = action;
|
|
117
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/braze/trackEvent2/index.ts"],"names":[],"mappings":";;AACA,wDAAwD;AAGxD,oCAAgE;AAEhE,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,gBAAgB;IACvB,WAAW,EAAE,+BAA+B;IAC5C,mBAAmB,EAAE,+CAA+C;IACpE,MAAM,EAAE;QACN,WAAW,EAAE;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M,IAAI,+BAAgB,CAAC,oCAAoC,EAAE,kBAAkB,EAAE,GAAG,CAAC,CAAA;IAC3F,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export interface Payload {
|
|
2
|
-
external_id?: string;
|
|
3
|
-
user_alias?: {
|
|
4
|
-
alias_name?: string;
|
|
5
|
-
alias_label?: string;
|
|
6
|
-
};
|
|
7
|
-
email?: string;
|
|
8
|
-
braze_id?: string | null;
|
|
9
|
-
time: string | number;
|
|
10
|
-
products: {
|
|
11
|
-
product_id: string;
|
|
12
|
-
currency?: string;
|
|
13
|
-
price: number;
|
|
14
|
-
quantity?: number;
|
|
15
|
-
[k: string]: unknown;
|
|
16
|
-
}[];
|
|
17
|
-
properties?: {
|
|
18
|
-
[k: string]: unknown;
|
|
19
|
-
};
|
|
20
|
-
enable_batching?: boolean;
|
|
21
|
-
batch_size?: number;
|
|
22
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/braze/trackPurchase2/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const actions_core_1 = require("@segment/actions-core");
|
|
4
|
-
const utils_1 = require("../utils");
|
|
5
|
-
const action = {
|
|
6
|
-
title: 'Track Purchase V2',
|
|
7
|
-
description: 'Record purchases in Braze',
|
|
8
|
-
defaultSubscription: 'event = "Order Completed"',
|
|
9
|
-
fields: {
|
|
10
|
-
external_id: {
|
|
11
|
-
label: 'External User ID',
|
|
12
|
-
description: 'The unique user identifier',
|
|
13
|
-
type: 'string',
|
|
14
|
-
default: {
|
|
15
|
-
'@path': '$.userId'
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
user_alias: {
|
|
19
|
-
label: 'User Alias Object',
|
|
20
|
-
description: 'A user alias object. See [the docs](https://www.braze.com/docs/api/objects_filters/user_alias_object/).',
|
|
21
|
-
type: 'object',
|
|
22
|
-
properties: {
|
|
23
|
-
alias_name: {
|
|
24
|
-
label: 'Alias Name',
|
|
25
|
-
type: 'string'
|
|
26
|
-
},
|
|
27
|
-
alias_label: {
|
|
28
|
-
label: 'Alias Label',
|
|
29
|
-
type: 'string'
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
email: {
|
|
34
|
-
label: 'Email',
|
|
35
|
-
description: 'The user email',
|
|
36
|
-
type: 'string',
|
|
37
|
-
default: {
|
|
38
|
-
'@path': '$.traits.email'
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
braze_id: {
|
|
42
|
-
label: 'Braze User Identifier',
|
|
43
|
-
description: 'The unique user identifier',
|
|
44
|
-
type: 'string',
|
|
45
|
-
allowNull: true,
|
|
46
|
-
default: {
|
|
47
|
-
'@path': '$.properties.braze_id'
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
time: {
|
|
51
|
-
label: 'Time',
|
|
52
|
-
description: 'When the event occurred.',
|
|
53
|
-
type: 'datetime',
|
|
54
|
-
required: true,
|
|
55
|
-
default: {
|
|
56
|
-
'@path': '$.receivedAt'
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
products: {
|
|
60
|
-
label: 'Products',
|
|
61
|
-
description: 'Products purchased',
|
|
62
|
-
type: 'object',
|
|
63
|
-
multiple: true,
|
|
64
|
-
required: true,
|
|
65
|
-
additionalProperties: true,
|
|
66
|
-
properties: {
|
|
67
|
-
product_id: {
|
|
68
|
-
label: 'Product ID',
|
|
69
|
-
type: 'string',
|
|
70
|
-
required: true
|
|
71
|
-
},
|
|
72
|
-
currency: {
|
|
73
|
-
label: 'Currency',
|
|
74
|
-
type: 'string'
|
|
75
|
-
},
|
|
76
|
-
price: {
|
|
77
|
-
label: 'Price',
|
|
78
|
-
type: 'number',
|
|
79
|
-
required: true
|
|
80
|
-
},
|
|
81
|
-
quantity: {
|
|
82
|
-
label: 'Quantity',
|
|
83
|
-
type: 'integer'
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
default: {
|
|
87
|
-
'@path': '$.properties.products'
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
properties: {
|
|
91
|
-
label: 'Event Properties',
|
|
92
|
-
description: 'Properties of the event',
|
|
93
|
-
type: 'object',
|
|
94
|
-
default: {
|
|
95
|
-
'@path': '$.properties'
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
enable_batching: {
|
|
99
|
-
type: 'boolean',
|
|
100
|
-
label: 'Batch Data to Braze',
|
|
101
|
-
description: 'If true, Segment will batch events before sending to Braze’s user track endpoint. Braze accepts batches of up to 75 events.',
|
|
102
|
-
default: true
|
|
103
|
-
},
|
|
104
|
-
batch_size: {
|
|
105
|
-
label: 'Batch Size',
|
|
106
|
-
description: 'Maximum number of events to include in each batch. Actual batch sizes may be lower.',
|
|
107
|
-
type: 'number',
|
|
108
|
-
default: 75,
|
|
109
|
-
unsafe_hidden: true
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
syncMode: {
|
|
113
|
-
description: 'Define how the records from your destination will be synced.',
|
|
114
|
-
label: 'How to track events',
|
|
115
|
-
default: 'add',
|
|
116
|
-
choices: [
|
|
117
|
-
{ label: 'Add Profile with Event', value: 'add' },
|
|
118
|
-
{ label: 'Update Profile with Event', value: 'update' }
|
|
119
|
-
]
|
|
120
|
-
},
|
|
121
|
-
perform: (request, { settings, payload, syncMode }) => {
|
|
122
|
-
if (syncMode === 'add' || syncMode === 'update') {
|
|
123
|
-
return utils_1.sendTrackPurchase(request, settings, payload, syncMode);
|
|
124
|
-
}
|
|
125
|
-
throw new actions_core_1.IntegrationError('syncMode must be "add" or "update"', 'Invalid syncMode', 400);
|
|
126
|
-
},
|
|
127
|
-
performBatch: (request, { settings, payload, syncMode }) => {
|
|
128
|
-
if (syncMode === 'add' || syncMode === 'update') {
|
|
129
|
-
return utils_1.sendBatchedTrackPurchase(request, settings, payload, syncMode);
|
|
130
|
-
}
|
|
131
|
-
throw new actions_core_1.IntegrationError('syncMode must be "add" or "update"', 'Invalid syncMode', 400);
|
|
132
|
-
}
|
|
133
|
-
};
|
|
134
|
-
exports.default = action;
|
|
135
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/braze/trackPurchase2/index.ts"],"names":[],"mappings":";;AACA,wDAAwD;AAGxD,oCAAsE;AAEtE,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,mBAAmB;IAC1B,WAAW,EAAE,2BAA2B;IACxC,mBAAmB,EAAE,2BAA2B;IAChD,MAAM,EAAE;QACN,WAAW,EAAE;YACX,KAAK,EAAE,kBAAkB;YACzB,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,UAAU;aACpB;SACF;QACD,UAAU,EAAE;YACV,KAAK,EAAE,mBAAmB;YAC1B,WAAW,EACT,yGAAyG;YAC3G,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,UAAU,EAAE;oBACV,KAAK,EAAE,YAAY;oBACnB,IAAI,EAAE,QAAQ;iBACf;gBACD,WAAW,EAAE;oBACX,KAAK,EAAE,aAAa;oBACpB,IAAI,EAAE,QAAQ;iBACf;aACF;SACF;QACD,KAAK,EAAE;YACL,KAAK,EAAE,OAAO;YACd,WAAW,EAAE,gBAAgB;YAC7B,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE;gBACP,OAAO,EAAE,gBAAgB;aAC1B;SACF;QACD,QAAQ,EAAE;YACR,KAAK,EAAE,uBAAuB;YAC9B,WAAW,EAAE,4BAA4B;YACzC,IAAI,EAAE,QAAQ;YACd,SAAS,EAAE,IAAI;YACf,OAAO,EAAE;gBACP,OAAO,EAAE,uBAAuB;aACjC;SACF;QACD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AE,qBAAqB;QAC5B,OAAO,EAAE,KAAK;QACd,OAAO,EAAE;YACP,EAAE,KAAK,EAAE,wBAAwB,EAAE,KAAK,EAAE,KAAK,EAAE;YACjD,EAAE,KAAK,EAAE,2BAA2B,EAAE,KAAK,EAAE,QAAQ,EAAE;SACxD;KACF;IACD,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QACpD,IAAI,QAAQ,KAAK,KAAK,IAAI,QAAQ,KAAK,QAAQ,EAAE;YAC/C,OAAO,yBAAiB,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAA;SAC/D;QACD,MAAM,IAAI,+BAAgB,CAAC,oCAAoC,EAAE,kBAAkB,EAAE,GAAG,CAAC,CAAA;IAC3F,CAAC;IACD,YAAY,EAAE,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE;QACzD,IAAI,QAAQ,KAAK,KAAK,IAAI,QAAQ,KAAK,QAAQ,EAAE;YAC/C,OAAO,gCAAwB,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAA;SACtE;QACD,MAAM,IAAI,+BAAgB,CAAC,oCAAoC,EAAE,kBAAkB,EAAE,GAAG,CAAC,CAAA;IAC3F,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1,306 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.commonFields = void 0;
|
|
4
|
-
const types_1 = require("./types");
|
|
5
|
-
const utils_1 = require("./utils");
|
|
6
|
-
exports.commonFields = {
|
|
7
|
-
floodlightConfigurationId: {
|
|
8
|
-
label: 'Floodlight Configuration ID',
|
|
9
|
-
description: 'The Floodlight configuration ID associated with the conversion. Overrides the default Floodlight Configuration ID defined in Settings.',
|
|
10
|
-
type: 'string',
|
|
11
|
-
required: false
|
|
12
|
-
},
|
|
13
|
-
floodlightActivityId: {
|
|
14
|
-
label: 'Floodlight Activity ID',
|
|
15
|
-
description: 'The Floodlight activity ID associated with the conversion. Overrides the default Floodlight Activity ID defined in Settings.',
|
|
16
|
-
type: 'string',
|
|
17
|
-
required: false
|
|
18
|
-
},
|
|
19
|
-
encryptionInfo: {
|
|
20
|
-
label: 'Encryption Info',
|
|
21
|
-
description: 'The encryption information associated with the conversion. Required if Encrypted User ID or Encryption User ID Candidates fields are populated.',
|
|
22
|
-
type: 'object',
|
|
23
|
-
required: false,
|
|
24
|
-
properties: {
|
|
25
|
-
encryptionEntityId: {
|
|
26
|
-
label: 'Encryption Entity ID',
|
|
27
|
-
description: 'The encryption entity ID. This should match the encryption type configuration for ad serving or Data Transfer.',
|
|
28
|
-
type: 'string',
|
|
29
|
-
required: true
|
|
30
|
-
},
|
|
31
|
-
encryptionEntityType: {
|
|
32
|
-
label: 'Encryption Entity Type',
|
|
33
|
-
description: 'The encryption entity type. This should match the encryption type configuration for ad serving or Data Transfer.',
|
|
34
|
-
type: 'string',
|
|
35
|
-
required: true,
|
|
36
|
-
choices: utils_1.getEntityTypeChoices()
|
|
37
|
-
},
|
|
38
|
-
encryptionSource: {
|
|
39
|
-
label: 'Encryption Source',
|
|
40
|
-
description: 'The encryption source. This should match the encryption type configuration for ad serving or Data Transfer.',
|
|
41
|
-
type: 'string',
|
|
42
|
-
required: true,
|
|
43
|
-
choices: utils_1.getSources()
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
userDetails: {
|
|
48
|
-
label: 'User Details',
|
|
49
|
-
description: 'User details associated with the conversion.',
|
|
50
|
-
type: 'object',
|
|
51
|
-
required: false,
|
|
52
|
-
properties: {
|
|
53
|
-
email: {
|
|
54
|
-
label: 'Email',
|
|
55
|
-
description: "The user's email address. If unhashed, Segment will hash before sending to Campaign Manager 360.",
|
|
56
|
-
type: 'string',
|
|
57
|
-
required: false
|
|
58
|
-
},
|
|
59
|
-
phone: {
|
|
60
|
-
label: 'Phone',
|
|
61
|
-
description: "The user's phone number. If unhashed, Segment will hash before sending to Campaign Manager 360.",
|
|
62
|
-
type: 'string',
|
|
63
|
-
required: false
|
|
64
|
-
},
|
|
65
|
-
firstName: {
|
|
66
|
-
label: 'First Name',
|
|
67
|
-
description: 'First name of the user. If unhashed, Segment will hash before sending to Campaign Manager 360.',
|
|
68
|
-
type: 'string',
|
|
69
|
-
required: false
|
|
70
|
-
},
|
|
71
|
-
lastName: {
|
|
72
|
-
label: 'Last Name',
|
|
73
|
-
description: 'Last name of the user. If unhashed, Segment will hash before sending to Campaign Manager 360.',
|
|
74
|
-
type: 'string',
|
|
75
|
-
required: false
|
|
76
|
-
},
|
|
77
|
-
streetAddress: {
|
|
78
|
-
label: 'Street Address',
|
|
79
|
-
description: 'The street address of the user. If unhashed, Segment will hash before sending to Campaign Manager 360.',
|
|
80
|
-
type: 'string',
|
|
81
|
-
required: false
|
|
82
|
-
},
|
|
83
|
-
city: {
|
|
84
|
-
label: 'City',
|
|
85
|
-
description: "The user's city",
|
|
86
|
-
type: 'string',
|
|
87
|
-
required: false
|
|
88
|
-
},
|
|
89
|
-
state: {
|
|
90
|
-
label: 'State',
|
|
91
|
-
description: "The user's state",
|
|
92
|
-
type: 'string',
|
|
93
|
-
required: false
|
|
94
|
-
},
|
|
95
|
-
postalCode: {
|
|
96
|
-
label: 'Postal Code',
|
|
97
|
-
description: "The user's postal code",
|
|
98
|
-
type: 'string',
|
|
99
|
-
required: false
|
|
100
|
-
},
|
|
101
|
-
countryCode: {
|
|
102
|
-
label: 'Country Code',
|
|
103
|
-
description: "2-letter country code in ISO-3166-1 alpha-2 of the user's address.",
|
|
104
|
-
type: 'string',
|
|
105
|
-
required: false
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
default: {
|
|
109
|
-
email: {
|
|
110
|
-
'@if': {
|
|
111
|
-
exists: { '@path': '$.traits.email' },
|
|
112
|
-
then: { '@path': '$.traits.email' },
|
|
113
|
-
else: { '@path': '$.context.traits.email' }
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
phone: {
|
|
117
|
-
'@if': {
|
|
118
|
-
exists: { '@path': '$.traits.phone' },
|
|
119
|
-
then: { '@path': '$.traits.phone' },
|
|
120
|
-
else: { '@path': '$.context.traits.phone' }
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
firstName: {
|
|
124
|
-
'@if': {
|
|
125
|
-
exists: { '@path': '$.traits.first_name' },
|
|
126
|
-
then: { '@path': '$.traits.first_name' },
|
|
127
|
-
else: { '@path': '$.context.traits.first_name' }
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
lastName: {
|
|
131
|
-
'@if': {
|
|
132
|
-
exists: { '@path': '$.traits.last_name' },
|
|
133
|
-
then: { '@path': '$.traits.last_name' },
|
|
134
|
-
else: { '@path': '$.context.traits.last_name' }
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
streetAddress: {
|
|
138
|
-
'@if': {
|
|
139
|
-
exists: { '@path': '$.traits.address.street' },
|
|
140
|
-
then: { '@path': '$.traits.address.street' },
|
|
141
|
-
else: { '@path': '$.context.traits.address.street' }
|
|
142
|
-
}
|
|
143
|
-
},
|
|
144
|
-
city: {
|
|
145
|
-
'@if': {
|
|
146
|
-
exists: { '@path': '$.traits.address.city' },
|
|
147
|
-
then: { '@path': '$.traits.address.city' },
|
|
148
|
-
else: { '@path': '$.context.traits.address.city' }
|
|
149
|
-
}
|
|
150
|
-
},
|
|
151
|
-
state: {
|
|
152
|
-
'@if': {
|
|
153
|
-
exists: { '@path': '$.traits.address.state' },
|
|
154
|
-
then: { '@path': '$.traits.address.state' },
|
|
155
|
-
else: { '@path': '$.context.traits.address.state' }
|
|
156
|
-
}
|
|
157
|
-
},
|
|
158
|
-
postalCode: {
|
|
159
|
-
'@if': {
|
|
160
|
-
exists: { '@path': '$.traits.address.postal_code' },
|
|
161
|
-
then: { '@path': '$.traits.address.postal_code' },
|
|
162
|
-
else: { '@path': '$.context.traits.address.postal_code' }
|
|
163
|
-
}
|
|
164
|
-
},
|
|
165
|
-
countryCode: {
|
|
166
|
-
'@if': {
|
|
167
|
-
exists: { '@path': '$.traits.address.country' },
|
|
168
|
-
then: { '@path': '$.traits.address.country' },
|
|
169
|
-
else: { '@path': '$.context.traits.address.country' }
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
timestamp: {
|
|
175
|
-
label: 'Timestamp (ISO-8601)',
|
|
176
|
-
description: 'The timestamp of the conversion in a ISO-8601 string.',
|
|
177
|
-
type: 'string',
|
|
178
|
-
required: true,
|
|
179
|
-
default: {
|
|
180
|
-
'@path': '$.timestamp'
|
|
181
|
-
}
|
|
182
|
-
},
|
|
183
|
-
value: {
|
|
184
|
-
label: 'Value',
|
|
185
|
-
description: 'The value of the conversion.',
|
|
186
|
-
type: 'number',
|
|
187
|
-
required: true,
|
|
188
|
-
default: {
|
|
189
|
-
'@if': {
|
|
190
|
-
exists: { '@path': '$.properties.total' },
|
|
191
|
-
then: { '@path': '$.properties.total' },
|
|
192
|
-
else: { '@path': '$.properties.revenue' }
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
},
|
|
196
|
-
quantity: {
|
|
197
|
-
label: 'Quantity',
|
|
198
|
-
description: 'The quantity of the conversion.',
|
|
199
|
-
type: 'string',
|
|
200
|
-
required: true,
|
|
201
|
-
default: {
|
|
202
|
-
'@path': '$.quantity'
|
|
203
|
-
}
|
|
204
|
-
},
|
|
205
|
-
ordinal: {
|
|
206
|
-
label: 'Ordinal',
|
|
207
|
-
description: 'The ordinal of the conversion. Use this field to control how conversions of the same user and day are de-duplicated.',
|
|
208
|
-
type: 'string',
|
|
209
|
-
required: true
|
|
210
|
-
},
|
|
211
|
-
limitAdTracking: {
|
|
212
|
-
label: 'Limit Ad Tracking',
|
|
213
|
-
description: 'Whether Limit Ad Tracking is enabled. When set to true, the conversion will be used for reporting but not targeting. This will prevent remarketing.',
|
|
214
|
-
type: 'boolean',
|
|
215
|
-
required: false,
|
|
216
|
-
default: false
|
|
217
|
-
},
|
|
218
|
-
childDirectedTreatment: {
|
|
219
|
-
label: 'Child Directed Treatment',
|
|
220
|
-
description: 'Whether this particular request may come from a user under the age of 13, under COPPA compliance.',
|
|
221
|
-
type: 'boolean',
|
|
222
|
-
required: false,
|
|
223
|
-
default: false
|
|
224
|
-
},
|
|
225
|
-
nonPersonalizedAd: {
|
|
226
|
-
label: 'Non-Personalized Ad',
|
|
227
|
-
description: 'Whether the conversion was for a non personalized ad.',
|
|
228
|
-
type: 'boolean',
|
|
229
|
-
required: false,
|
|
230
|
-
default: true
|
|
231
|
-
},
|
|
232
|
-
treatmentForUnderage: {
|
|
233
|
-
label: 'Treatment For Underage',
|
|
234
|
-
description: "Whether this particular request may come from a user under the age of 16 (may differ by country), under compliance with the European Union's General Data Protection Regulation (GDPR).",
|
|
235
|
-
type: 'boolean',
|
|
236
|
-
required: false,
|
|
237
|
-
default: false
|
|
238
|
-
},
|
|
239
|
-
adUserDataConsent: {
|
|
240
|
-
label: 'Ad User Data Consent',
|
|
241
|
-
description: 'The user data consent status for the conversion.',
|
|
242
|
-
type: 'string',
|
|
243
|
-
required: false,
|
|
244
|
-
choices: [
|
|
245
|
-
{ label: types_1.ConsentType.GRANTED, value: types_1.ConsentType.GRANTED },
|
|
246
|
-
{ label: types_1.ConsentType.DENIED, value: types_1.ConsentType.DENIED }
|
|
247
|
-
]
|
|
248
|
-
},
|
|
249
|
-
merchantId: {
|
|
250
|
-
label: 'Cart Data Merchant ID',
|
|
251
|
-
description: 'The Merchant Center ID where the items are uploaded. Required if the cart data is provided.',
|
|
252
|
-
type: 'string',
|
|
253
|
-
required: false
|
|
254
|
-
},
|
|
255
|
-
merchantFeedLabel: {
|
|
256
|
-
label: 'Cart Data Merchant Feed Label',
|
|
257
|
-
description: 'The feed labels associated with the feed where your items are uploaded. Required if the cart data is provided. For more information, please refer to https://support.google.com/merchants/answer/12453549.',
|
|
258
|
-
type: 'string',
|
|
259
|
-
required: false
|
|
260
|
-
},
|
|
261
|
-
merchantFeedLanguage: {
|
|
262
|
-
label: 'Cart Data Merchant Feed Language',
|
|
263
|
-
description: 'The language associated with the feed where your items are uploaded. Use ISO 639-1 language codes. This field is needed only when item IDs are not unique across multiple Merchant Center feeds.',
|
|
264
|
-
type: 'string',
|
|
265
|
-
required: false
|
|
266
|
-
},
|
|
267
|
-
cartDataItems: {
|
|
268
|
-
label: 'Cart Data Items',
|
|
269
|
-
description: 'The items in the cart.',
|
|
270
|
-
type: 'object',
|
|
271
|
-
multiple: true,
|
|
272
|
-
required: false,
|
|
273
|
-
additionalProperties: false,
|
|
274
|
-
properties: {
|
|
275
|
-
itemId: {
|
|
276
|
-
label: 'Item ID',
|
|
277
|
-
description: 'The item ID associated with the conversion.',
|
|
278
|
-
type: 'string',
|
|
279
|
-
required: true
|
|
280
|
-
},
|
|
281
|
-
quantity: {
|
|
282
|
-
label: 'Quantity',
|
|
283
|
-
description: 'The quantity of the item.',
|
|
284
|
-
type: 'number',
|
|
285
|
-
required: true
|
|
286
|
-
},
|
|
287
|
-
unitPrice: {
|
|
288
|
-
label: 'Value',
|
|
289
|
-
description: 'The value of the item.',
|
|
290
|
-
type: 'number',
|
|
291
|
-
required: true
|
|
292
|
-
}
|
|
293
|
-
},
|
|
294
|
-
default: {
|
|
295
|
-
'@arrayPath': [
|
|
296
|
-
'$.properties.products',
|
|
297
|
-
{
|
|
298
|
-
itemId: { '@path': '$.product_id' },
|
|
299
|
-
quantity: { '@path': '$.quantity' },
|
|
300
|
-
unitPrice: { '@path': '$.price' }
|
|
301
|
-
}
|
|
302
|
-
]
|
|
303
|
-
}
|
|
304
|
-
}
|
|
305
|
-
};
|
|
306
|
-
//# sourceMappingURL=common-fields.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common-fields.js","sourceRo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,QAAQ,EAAE,KAAK;KAChB;IACD,aAAa,EAAE;QACb,KAAK,EAAE,iBAAiB;QACxB,WAAW,EAAE,wBAAwB;QACrC,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,KAAK;QACf,oBAAoB,EAAE,KAAK;QAC3B,UAAU,EAAE;YACV,MAAM,EAAE;gBACN,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,6CAA6C;gBAC1D,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,QAAQ,EAAE;gBACR,KAAK,EAAE,UAAU;gBACjB,WAAW,EAAE,2BAA2B;gBACxC,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,SAAS,EAAE;gBACT,KAAK,EAAE,OAAO;gBACd,WAAW,EAAE,wBAAwB;gBACrC,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;SACF;QACD,OAAO,EAAE;YACP,YAAY,EAAE;gBACZ,uBAAuB;gBACvB;oBACE,MAAM,EAAE,EAAE,OAAO,EAAE,cAAc,EAAE;oBACnC,QAAQ,EAAE,EAAE,OAAO,EAAE,YAAY,EAAE;oBACnC,SAAS,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE;iBAClC;aACF;SACF;KACF;CACF,CAAA"}
|
package/dist/destinations/campaign-manager-360/conversionAdjustmentUpload/generated-types.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
export interface Payload {
|
|
2
|
-
requiredId: {
|
|
3
|
-
gclid?: string;
|
|
4
|
-
dclid?: string;
|
|
5
|
-
encryptedUserId?: string;
|
|
6
|
-
mobileDeviceId?: string;
|
|
7
|
-
matchId?: string;
|
|
8
|
-
impressionId?: string;
|
|
9
|
-
};
|
|
10
|
-
floodlightConfigurationId?: string;
|
|
11
|
-
floodlightActivityId?: string;
|
|
12
|
-
encryptionInfo?: {
|
|
13
|
-
encryptionEntityId: string;
|
|
14
|
-
encryptionEntityType: string;
|
|
15
|
-
encryptionSource: string;
|
|
16
|
-
};
|
|
17
|
-
userDetails?: {
|
|
18
|
-
email?: string;
|
|
19
|
-
phone?: string;
|
|
20
|
-
firstName?: string;
|
|
21
|
-
lastName?: string;
|
|
22
|
-
streetAddress?: string;
|
|
23
|
-
city?: string;
|
|
24
|
-
state?: string;
|
|
25
|
-
postalCode?: string;
|
|
26
|
-
countryCode?: string;
|
|
27
|
-
};
|
|
28
|
-
timestamp: string;
|
|
29
|
-
value: number;
|
|
30
|
-
quantity: string;
|
|
31
|
-
ordinal: string;
|
|
32
|
-
limitAdTracking?: boolean;
|
|
33
|
-
childDirectedTreatment?: boolean;
|
|
34
|
-
nonPersonalizedAd?: boolean;
|
|
35
|
-
treatmentForUnderage?: boolean;
|
|
36
|
-
adUserDataConsent?: string;
|
|
37
|
-
merchantId?: string;
|
|
38
|
-
merchantFeedLabel?: string;
|
|
39
|
-
merchantFeedLanguage?: string;
|
|
40
|
-
cartDataItems?: {
|
|
41
|
-
itemId: string;
|
|
42
|
-
quantity: number;
|
|
43
|
-
unitPrice: number;
|
|
44
|
-
}[];
|
|
45
|
-
}
|