@segment/action-destinations 3.345.8-staging → 3.345.9-staging-d01d86282.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/amazon-amc/syncAudiencesToDSP/index.js +49 -29
- package/dist/destinations/amazon-amc/syncAudiencesToDSP/index.js.map +1 -1
- package/dist/destinations/linkedin-audiences/api/index.d.ts +1 -1
- package/dist/destinations/linkedin-audiences/api/index.js.map +1 -1
- package/dist/destinations/linkedin-audiences/updateAudience/index.js +14 -6
- package/dist/destinations/linkedin-audiences/updateAudience/index.js.map +1 -1
- package/dist/destinations/responsys/generated-types.d.ts +2 -1
- package/dist/destinations/responsys/index.js +15 -7
- package/dist/destinations/responsys/index.js.map +1 -1
- package/dist/destinations/responsys/sendAudience/index.js +3 -3
- package/dist/destinations/responsys/sendAudience/index.js.map +1 -1
- package/dist/destinations/responsys/sendAudienceAsPet/functions.d.ts +4 -3
- package/dist/destinations/responsys/sendAudienceAsPet/functions.js +81 -54
- package/dist/destinations/responsys/sendAudienceAsPet/functions.js.map +1 -1
- package/dist/destinations/responsys/sendAudienceAsPet/generated-types.d.ts +2 -1
- package/dist/destinations/responsys/sendAudienceAsPet/index.js +17 -63
- package/dist/destinations/responsys/sendAudienceAsPet/index.js.map +1 -1
- package/dist/destinations/responsys/sendCustomTraits/generated-types.d.ts +1 -0
- package/dist/destinations/responsys/sendCustomTraits/index.js +29 -8
- package/dist/destinations/responsys/sendCustomTraits/index.js.map +1 -1
- package/dist/destinations/responsys/sendToPet/functions.d.ts +10 -0
- package/dist/destinations/responsys/sendToPet/functions.js +108 -0
- package/dist/destinations/responsys/sendToPet/functions.js.map +1 -0
- package/dist/destinations/responsys/sendToPet/generated-types.d.ts +15 -0
- package/dist/destinations/responsys/sendToPet/generated-types.js.map +1 -0
- package/dist/destinations/responsys/sendToPet/index.js +69 -0
- package/dist/destinations/responsys/sendToPet/index.js.map +1 -0
- package/dist/destinations/responsys/shared-properties.d.ts +5 -1
- package/dist/destinations/responsys/shared-properties.js +75 -2
- package/dist/destinations/responsys/shared-properties.js.map +1 -1
- package/dist/destinations/responsys/types.d.ts +3 -0
- package/dist/destinations/responsys/upsertListMember/generated-types.d.ts +2 -1
- package/dist/destinations/responsys/upsertListMember/index.js +6 -7
- package/dist/destinations/responsys/upsertListMember/index.js.map +1 -1
- package/dist/destinations/responsys/utils.d.ts +7 -3
- package/dist/destinations/responsys/utils.js +108 -49
- package/dist/destinations/responsys/utils.js.map +1 -1
- package/dist/destinations/salesforce-marketing-cloud/_tests_/multistatus.test.d.ts +1 -0
- package/dist/destinations/salesforce-marketing-cloud/_tests_/multistatus.test.js +325 -0
- package/dist/destinations/salesforce-marketing-cloud/_tests_/multistatus.test.js.map +1 -0
- package/dist/destinations/salesforce-marketing-cloud/contactDataExtension/index.js +1 -17
- package/dist/destinations/salesforce-marketing-cloud/contactDataExtension/index.js.map +1 -1
- package/dist/destinations/salesforce-marketing-cloud/dataExtension/index.js +1 -17
- package/dist/destinations/salesforce-marketing-cloud/dataExtension/index.js.map +1 -1
- package/dist/destinations/salesforce-marketing-cloud/sfmc-operations.d.ts +2 -2
- package/dist/destinations/salesforce-marketing-cloud/sfmc-operations.js +45 -7
- package/dist/destinations/salesforce-marketing-cloud/sfmc-operations.js.map +1 -1
- package/dist/destinations/salesforce-marketing-cloud/types.d.ts +19 -0
- package/dist/destinations/salesforce-marketing-cloud/types.js.map +1 -0
- package/package.json +2 -2
- package/dist/destinations/accoil-analytics/postToAccoil/generated-types.d.ts +0 -5
- package/dist/destinations/accoil-analytics/postToAccoil/generated-types.js.map +0 -1
- package/dist/destinations/accoil-analytics/postToAccoil/index.d.ts +0 -5
- package/dist/destinations/accoil-analytics/postToAccoil/index.js +0 -28
- package/dist/destinations/accoil-analytics/postToAccoil/index.js.map +0 -1
- 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/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/addToList/generated-types.d.ts +0 -2
- package/dist/destinations/first-party-dv360/addToList/generated-types.js +0 -3
- package/dist/destinations/first-party-dv360/addToList/generated-types.js.map +0 -1
- package/dist/destinations/first-party-dv360/addToList/index.d.ts +0 -5
- package/dist/destinations/first-party-dv360/addToList/index.js +0 -11
- package/dist/destinations/first-party-dv360/addToList/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/hubspot/customEvent/dynamic-fields.d.ts +0 -5
- package/dist/destinations/hubspot/customEvent/dynamic-fields.js +0 -112
- package/dist/destinations/hubspot/customEvent/dynamic-fields.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/schema-functions.d.ts +0 -3
- package/dist/destinations/hubspot/customEvent/schema-functions.js +0 -30
- package/dist/destinations/hubspot/customEvent/schema-functions.js.map +0 -1
- package/dist/destinations/hubspot/customEvent/utils.d.ts +0 -14
- package/dist/destinations/hubspot/customEvent/utils.js +0 -303
- package/dist/destinations/hubspot/customEvent/utils.js.map +0 -1
- package/dist/destinations/hubspot/customEvent/validation-functions.d.ts +0 -3
- package/dist/destinations/hubspot/customEvent/validation-functions.js +0 -66
- package/dist/destinations/hubspot/customEvent/validation-functions.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/hubspot/upsertObject/association-functions.d.ts +0 -5
- package/dist/destinations/hubspot/upsertObject/association-functions.js +0 -136
- package/dist/destinations/hubspot/upsertObject/association-functions.js.map +0 -1
- package/dist/destinations/hubspot/upsertObject/cache-functions.d.ts +0 -3
- package/dist/destinations/hubspot/upsertObject/cache-functions.js +0 -20
- package/dist/destinations/hubspot/upsertObject/cache-functions.js.map +0 -1
- package/dist/destinations/hubspot/upsertObject/dynamic-fields.d.ts +0 -7
- package/dist/destinations/hubspot/upsertObject/dynamic-fields.js +0 -222
- package/dist/destinations/hubspot/upsertObject/dynamic-fields.js.map +0 -1
- package/dist/destinations/hubspot/upsertObject/hubspot-association-functions.d.ts +0 -5
- package/dist/destinations/hubspot/upsertObject/hubspot-association-functions.js +0 -136
- package/dist/destinations/hubspot/upsertObject/hubspot-association-functions.js.map +0 -1
- package/dist/destinations/hubspot/upsertObject/hubspot-properties-functions.d.ts +0 -4
- package/dist/destinations/hubspot/upsertObject/hubspot-properties-functions.js +0 -159
- package/dist/destinations/hubspot/upsertObject/hubspot-properties-functions.js.map +0 -1
- package/dist/destinations/hubspot/upsertObject/hubspot-record-functions.d.ts +0 -4
- package/dist/destinations/hubspot/upsertObject/hubspot-record-functions.js +0 -100
- package/dist/destinations/hubspot/upsertObject/hubspot-record-functions.js.map +0 -1
- package/dist/destinations/hubspot/upsertObject/schema-functions.d.ts +0 -3
- package/dist/destinations/hubspot/upsertObject/schema-functions.js +0 -80
- package/dist/destinations/hubspot/upsertObject/schema-functions.js.map +0 -1
- package/dist/destinations/hubspot/upsertObject/send-from-record-functions.d.ts +0 -4
- package/dist/destinations/hubspot/upsertObject/send-from-record-functions.js +0 -100
- package/dist/destinations/hubspot/upsertObject/send-from-record-functions.js.map +0 -1
- package/dist/destinations/hubspot/upsertObject/utils.d.ts +0 -13
- package/dist/destinations/hubspot/upsertObject/utils.js +0 -547
- package/dist/destinations/hubspot/upsertObject/utils.js.map +0 -1
- package/dist/destinations/hubspot/upsertObject/validation-functions.d.ts +0 -2
- package/dist/destinations/hubspot/upsertObject/validation-functions.js +0 -67
- package/dist/destinations/hubspot/upsertObject/validation-functions.js.map +0 -1
- package/dist/destinations/responsys/shared_properties.d.ts +0 -3
- package/dist/destinations/responsys/shared_properties.js +0 -19
- package/dist/destinations/responsys/shared_properties.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/singlestore/sendData/generated-types.d.ts +0 -2
- package/dist/destinations/singlestore/sendData/generated-types.js +0 -3
- package/dist/destinations/singlestore/sendData/generated-types.js.map +0 -1
- package/dist/destinations/singlestore/sendData/index.d.ts +0 -5
- package/dist/destinations/singlestore/sendData/index.js +0 -65
- package/dist/destinations/singlestore/sendData/index.js.map +0 -1
- package/dist/destinations/singlestore/utils.d.ts +0 -0
- package/dist/destinations/singlestore/utils.js +0 -2
- package/dist/destinations/singlestore/utils.js.map +0 -1
- package/dist/destinations/twilio-messaging/generated-types.d.ts +0 -6
- package/dist/destinations/twilio-messaging/generated-types.js +0 -3
- package/dist/destinations/twilio-messaging/generated-types.js.map +0 -1
- package/dist/destinations/twilio-messaging/index.d.ts +0 -4
- package/dist/destinations/twilio-messaging/index.js +0 -61
- package/dist/destinations/twilio-messaging/index.js.map +0 -1
- package/dist/destinations/twilio-messaging/sendMessage/constants.d.ts +0 -45
- package/dist/destinations/twilio-messaging/sendMessage/constants.js +0 -99
- package/dist/destinations/twilio-messaging/sendMessage/constants.js.map +0 -1
- package/dist/destinations/twilio-messaging/sendMessage/dynamic-fields.d.ts +0 -11
- package/dist/destinations/twilio-messaging/sendMessage/dynamic-fields.js +0 -209
- package/dist/destinations/twilio-messaging/sendMessage/dynamic-fields.js.map +0 -1
- package/dist/destinations/twilio-messaging/sendMessage/fields.d.ts +0 -2
- package/dist/destinations/twilio-messaging/sendMessage/fields.js +0 -261
- package/dist/destinations/twilio-messaging/sendMessage/fields.js.map +0 -1
- package/dist/destinations/twilio-messaging/sendMessage/generated-types.d.ts +0 -24
- package/dist/destinations/twilio-messaging/sendMessage/generated-types.js +0 -3
- package/dist/destinations/twilio-messaging/sendMessage/generated-types.js.map +0 -1
- package/dist/destinations/twilio-messaging/sendMessage/index.js +0 -42
- package/dist/destinations/twilio-messaging/sendMessage/index.js.map +0 -1
- package/dist/destinations/twilio-messaging/sendMessage/types.d.ts +0 -34
- package/dist/destinations/twilio-messaging/sendMessage/types.js.map +0 -1
- package/dist/destinations/twilio-messaging/sendMessage/utils.d.ts +0 -6
- package/dist/destinations/twilio-messaging/sendMessage/utils.js +0 -154
- package/dist/destinations/twilio-messaging/sendMessage/utils.js.map +0 -1
- /package/dist/destinations/{accoil-analytics/postToAccoil → responsys/sendToPet}/generated-types.js +0 -0
- /package/dist/destinations/{twilio-messaging/sendMessage → responsys/sendToPet}/index.d.ts +0 -0
- /package/dist/destinations/{twilio-messaging/sendMessage → salesforce-marketing-cloud}/types.js +0 -0
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
|
-
}
|
package/dist/destinations/campaign-manager-360/conversionAdjustmentUpload/generated-types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/campaign-manager-360/conversionAdjustmentUpload/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const utils_1 = require("../utils");
|
|
4
|
-
const common_fields_1 = require("../common-fields");
|
|
5
|
-
const action = {
|
|
6
|
-
title: 'Conversion Adjustment Upload',
|
|
7
|
-
description: "Adjust an conversion in Campaign Manager 360.",
|
|
8
|
-
fields: {
|
|
9
|
-
requiredId: {
|
|
10
|
-
label: 'Required ID',
|
|
11
|
-
description: 'A user identifier record the conversion against. Exactly one of Google Click ID, Display Click ID, Encrypted User ID, Mobile Device ID, Match ID, Impression ID or Encrypted User ID Candidates must be provided.',
|
|
12
|
-
type: 'object',
|
|
13
|
-
required: true,
|
|
14
|
-
properties: {
|
|
15
|
-
gclid: {
|
|
16
|
-
label: 'Google Click ID',
|
|
17
|
-
description: 'The Google Click ID (gclid) associated with the conversion.',
|
|
18
|
-
type: 'string',
|
|
19
|
-
required: false
|
|
20
|
-
},
|
|
21
|
-
dclid: {
|
|
22
|
-
label: 'Display Click ID',
|
|
23
|
-
description: 'The Display Click ID (dclid) associated with the conversion.',
|
|
24
|
-
type: 'string',
|
|
25
|
-
required: false
|
|
26
|
-
},
|
|
27
|
-
encryptedUserId: {
|
|
28
|
-
label: 'Encrypted User ID',
|
|
29
|
-
description: "The encrypted user ID associated with the conversion. If this field is set then 'Encryption Entity ID', 'Encryption Entity Type' and 'Encryption Source' should also be specified.",
|
|
30
|
-
type: 'string',
|
|
31
|
-
required: false
|
|
32
|
-
},
|
|
33
|
-
mobileDeviceId: {
|
|
34
|
-
label: 'Mobile Device ID',
|
|
35
|
-
description: 'The mobile device ID associated with the conversion.',
|
|
36
|
-
type: 'string',
|
|
37
|
-
required: false,
|
|
38
|
-
default: {
|
|
39
|
-
'@path': '$.context.device.id'
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
matchId: {
|
|
43
|
-
label: 'Match ID',
|
|
44
|
-
description: 'The match ID field. A match ID is your own first-party identifier that has been synced with Google using the match ID feature in Floodlight.',
|
|
45
|
-
type: 'string',
|
|
46
|
-
required: false
|
|
47
|
-
},
|
|
48
|
-
impressionId: {
|
|
49
|
-
label: 'Impression ID',
|
|
50
|
-
description: 'The impression ID associated with the conversion.',
|
|
51
|
-
type: 'string',
|
|
52
|
-
required: false
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
default: {
|
|
56
|
-
gclid: {
|
|
57
|
-
'@if': {
|
|
58
|
-
exists: { '@path': '$.integrations.Campaign Manager 360.gclid' },
|
|
59
|
-
then: { '@path': '$.integrations.Campaign Manager 360.gclid' },
|
|
60
|
-
else: { '@path': '$.properties.gclid' }
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
dclid: {
|
|
64
|
-
'@if': {
|
|
65
|
-
exists: { '@path': '$.integrations.Campaign Manager 360.dclid' },
|
|
66
|
-
then: { '@path': '$.integrations.Campaign Manager 360.dclid' },
|
|
67
|
-
else: { '@path': '$.properties.dclid' }
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
encryptedUserId: { '@path': '$.userId' },
|
|
71
|
-
mobileDeviceId: { '@path': '$.context.device.id' },
|
|
72
|
-
matchId: { '@path': '$.properties.matchId' },
|
|
73
|
-
impressionId: { '@path': '$.properties.impressionId' }
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
...common_fields_1.commonFields
|
|
77
|
-
},
|
|
78
|
-
perform: async (request, { settings, payload, auth }) => {
|
|
79
|
-
return await utils_1.send(request, settings, [payload], true, auth);
|
|
80
|
-
},
|
|
81
|
-
performBatch: async (request, { settings, payload, auth }) => {
|
|
82
|
-
return await utils_1.send(request, settings, payload, true, auth);
|
|
83
|
-
}
|
|
84
|
-
};
|
|
85
|
-
exports.default = action;
|
|
86
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/campaign-manager-360/conversionAdjustmentUpload/index.ts"],"names":[],"mappings":";;AAGA,oCAA+B;AAC/B,oDAA+C;AAE/C,MAAM,MAAM,GAAwC;IAClD,KAAK,EAA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EAAE;qBACxC;iBACF;gBACD,KAAK,EAAE;oBACL,KAAK,EAAE;wBACL,MAAM,EAAE,EAAE,OAAO,EAAE,2CAA2C,EAAE;wBAChE,IAAI,EAAE,EAAE,OAAO,EAAE,2CAA2C,EAAE;wBAC9D,IAAI,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE;qBACxC;iBACF;gBACD,eAAe,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;gBACxC,cAAc,EAAE,EAAE,OAAO,EAAE,qBAAqB,EAAE;gBAClD,OAAO,EAAE,EAAE,OAAO,EAAE,sBAAsB,EAAE;gBAC5C,YAAY,EAAE,EAAE,OAAO,EAAE,2BAA2B,EAAE;aACvD;SACF;QACD,GAAG,4BAAY;KAChB;IACD,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE;QACtD,OAAO,MAAM,YAAI,CAAC,OAAO,EAAE,QAAQ,EAAE,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;IAC7D,CAAC;IACD,YAAY,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE;QAC3D,OAAO,MAAM,YAAI,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,CAAA;IAC3D,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
export interface Payload {
|
|
2
|
-
customVariables?: {
|
|
3
|
-
type: string;
|
|
4
|
-
value: string;
|
|
5
|
-
}[];
|
|
6
|
-
requiredId: {
|
|
7
|
-
gclid?: string;
|
|
8
|
-
dclid?: string;
|
|
9
|
-
encryptedUserId?: string;
|
|
10
|
-
mobileDeviceId?: string;
|
|
11
|
-
matchId?: string;
|
|
12
|
-
impressionId?: string;
|
|
13
|
-
encryptedUserIdCandidates?: string;
|
|
14
|
-
};
|
|
15
|
-
floodlightConfigurationId?: string;
|
|
16
|
-
floodlightActivityId?: string;
|
|
17
|
-
encryptionInfo?: {
|
|
18
|
-
encryptionEntityId: string;
|
|
19
|
-
encryptionEntityType: string;
|
|
20
|
-
encryptionSource: string;
|
|
21
|
-
};
|
|
22
|
-
userDetails?: {
|
|
23
|
-
email?: string;
|
|
24
|
-
phone?: string;
|
|
25
|
-
firstName?: string;
|
|
26
|
-
lastName?: string;
|
|
27
|
-
streetAddress?: string;
|
|
28
|
-
city?: string;
|
|
29
|
-
state?: string;
|
|
30
|
-
postalCode?: string;
|
|
31
|
-
countryCode?: string;
|
|
32
|
-
};
|
|
33
|
-
timestamp: string;
|
|
34
|
-
value: number;
|
|
35
|
-
quantity: string;
|
|
36
|
-
ordinal: string;
|
|
37
|
-
limitAdTracking?: boolean;
|
|
38
|
-
childDirectedTreatment?: boolean;
|
|
39
|
-
nonPersonalizedAd?: boolean;
|
|
40
|
-
treatmentForUnderage?: boolean;
|
|
41
|
-
adUserDataConsent?: string;
|
|
42
|
-
merchantId?: string;
|
|
43
|
-
merchantFeedLabel?: string;
|
|
44
|
-
merchantFeedLanguage?: string;
|
|
45
|
-
cartDataItems?: {
|
|
46
|
-
itemId: string;
|
|
47
|
-
quantity: number;
|
|
48
|
-
unitPrice: number;
|
|
49
|
-
}[];
|
|
50
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/campaign-manager-360/conversionUpload/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const utils_1 = require("../utils");
|
|
4
|
-
const common_fields_1 = require("../common-fields");
|
|
5
|
-
const action = {
|
|
6
|
-
title: 'Conversion Upload',
|
|
7
|
-
description: 'Send a conversion to Campaign Manager 360.',
|
|
8
|
-
fields: {
|
|
9
|
-
customVariables: {
|
|
10
|
-
label: 'Custom Variables',
|
|
11
|
-
description: 'Custom variables associated with the conversion.',
|
|
12
|
-
type: 'object',
|
|
13
|
-
multiple: true,
|
|
14
|
-
required: false,
|
|
15
|
-
additionalProperties: false,
|
|
16
|
-
properties: {
|
|
17
|
-
type: {
|
|
18
|
-
label: 'Type',
|
|
19
|
-
description: 'The type of the custom variable.',
|
|
20
|
-
type: 'string',
|
|
21
|
-
allowNull: false,
|
|
22
|
-
required: true,
|
|
23
|
-
choices: utils_1.getCustomVarTypeChoices()
|
|
24
|
-
},
|
|
25
|
-
value: {
|
|
26
|
-
label: 'Value',
|
|
27
|
-
description: 'The value of the custom variable.',
|
|
28
|
-
type: 'string',
|
|
29
|
-
allowNull: false,
|
|
30
|
-
required: true
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
default: {
|
|
34
|
-
'@arrayPath': [
|
|
35
|
-
'$.properties.customVariables',
|
|
36
|
-
{
|
|
37
|
-
type: {
|
|
38
|
-
'@path': '$.type'
|
|
39
|
-
},
|
|
40
|
-
value: {
|
|
41
|
-
'@path': '$.value'
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
]
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
requiredId: {
|
|
48
|
-
label: 'Required ID',
|
|
49
|
-
description: 'A user identifier record the conversion against. Exactly one of Google Click ID, Display Click ID, Encrypted User ID, Mobile Device ID, Match ID, Impression ID or Encrypted User ID Candidates must be provided.',
|
|
50
|
-
type: 'object',
|
|
51
|
-
required: true,
|
|
52
|
-
properties: {
|
|
53
|
-
gclid: {
|
|
54
|
-
label: 'Google Click ID',
|
|
55
|
-
description: 'The Google Click ID (gclid) associated with the conversion.',
|
|
56
|
-
type: 'string',
|
|
57
|
-
required: false
|
|
58
|
-
},
|
|
59
|
-
dclid: {
|
|
60
|
-
label: 'Display Click ID',
|
|
61
|
-
description: 'The Display Click ID (dclid) associated with the conversion.',
|
|
62
|
-
type: 'string',
|
|
63
|
-
required: false
|
|
64
|
-
},
|
|
65
|
-
encryptedUserId: {
|
|
66
|
-
label: 'Encrypted User ID',
|
|
67
|
-
description: "The encrypted user ID associated with the conversion. If this field is set then 'Encryption Entity ID', 'Encryption Entity Type' and 'Encryption Source' should also be specified.",
|
|
68
|
-
type: 'string',
|
|
69
|
-
required: false
|
|
70
|
-
},
|
|
71
|
-
mobileDeviceId: {
|
|
72
|
-
label: 'Mobile Device ID',
|
|
73
|
-
description: 'The mobile device ID associated with the conversion.',
|
|
74
|
-
type: 'string',
|
|
75
|
-
required: false,
|
|
76
|
-
default: {
|
|
77
|
-
'@path': '$.context.device.id'
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
matchId: {
|
|
81
|
-
label: 'Match ID',
|
|
82
|
-
description: 'The match ID field. A match ID is your own first-party identifier that has been synced with Google using the match ID feature in Floodlight.',
|
|
83
|
-
type: 'string',
|
|
84
|
-
required: false
|
|
85
|
-
},
|
|
86
|
-
impressionId: {
|
|
87
|
-
label: 'Impression ID',
|
|
88
|
-
description: 'The impression ID associated with the conversion.',
|
|
89
|
-
type: 'string',
|
|
90
|
-
required: false
|
|
91
|
-
},
|
|
92
|
-
encryptedUserIdCandidates: {
|
|
93
|
-
label: 'Encrypted User ID Candidates',
|
|
94
|
-
description: 'A comma separated list of the alphanumeric encrypted user IDs. Any user ID with exposure prior to the conversion timestamp will be used in the inserted conversion. If no such user ID is found then the conversion will be rejected with INVALID_ARGUMENT error. When set, `encryptionInfo` should also be specified.',
|
|
95
|
-
type: 'string',
|
|
96
|
-
required: false
|
|
97
|
-
}
|
|
98
|
-
},
|
|
99
|
-
default: {
|
|
100
|
-
gclid: {
|
|
101
|
-
'@if': {
|
|
102
|
-
exists: { '@path': '$.integrations.Campaign Manager 360.gclid' },
|
|
103
|
-
then: { '@path': '$.integrations.Campaign Manager 360.gclid' },
|
|
104
|
-
else: { '@path': '$.properties.gclid' }
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
dclid: {
|
|
108
|
-
'@if': {
|
|
109
|
-
exists: { '@path': '$.integrations.Campaign Manager 360.dclid' },
|
|
110
|
-
then: { '@path': '$.integrations.Campaign Manager 360.dclid' },
|
|
111
|
-
else: { '@path': '$.properties.dclid' }
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
encryptedUserId: { '@path': '$.userId' },
|
|
115
|
-
mobileDeviceId: { '@path': '$.context.device.id' },
|
|
116
|
-
matchId: { '@path': '$.properties.matchId' },
|
|
117
|
-
impressionId: { '@path': '$.properties.impressionId' },
|
|
118
|
-
encryptedUserIdCandidates: { '@path': '$.properties.encryptedUserIdCandidates' }
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
|
-
...common_fields_1.commonFields
|
|
122
|
-
},
|
|
123
|
-
perform: async (request, { settings, payload, auth }) => {
|
|
124
|
-
return await utils_1.send(request, settings, [payload], false, auth);
|
|
125
|
-
},
|
|
126
|
-
performBatch: async (request, { settings, payload, auth }) => {
|
|
127
|
-
return await utils_1.send(request, settings, payload, false, auth);
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
exports.default = action;
|
|
131
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/campaign-manager-360/conversionUpload/index.ts"],"names":[],"mappings":";;AAGA,oCAAwD;AACxD,oDAA+C;AAE/C,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,mBAAmB;IAC1B,WAAW,EAAE,4CAA4C;IACzD,MAAM,EAAE;QACN,eAAe,EAAE;YACf,KAAK,EAAE,kBAAkB;YACzB,WAAW,EAAE,kDAAkD;YAC/D,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd,QAAQ,EAAE,KAAK;YACf,oBAAoB,EAAE,KAAK;YAC3B,UAAU,EAAE;gBACV,IAAI,EAAE;oBACJ,KAAK,EAAE,MAAM;oB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C,OAAO,CAAC,EAAE,KAAK,EAAE,IAAI,CAAE,CAAA;IAC/D,CAAC;IACD,YAAY,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE;QAC3D,OAAO,MAAM,YAAI,CAAC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,CAAE,CAAA;IAC7D,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../src/destinations/campaign-manager-360/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,63 +0,0 @@
|
|
|
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
|
-
const conversionUpload_1 = __importDefault(require("./conversionUpload"));
|
|
7
|
-
const conversionAdjustmentUpload_1 = __importDefault(require("./conversionAdjustmentUpload"));
|
|
8
|
-
const destination = {
|
|
9
|
-
name: 'Campaign Manager 360',
|
|
10
|
-
slug: 'campaign-manager-360',
|
|
11
|
-
mode: 'cloud',
|
|
12
|
-
authentication: {
|
|
13
|
-
scheme: 'oauth2',
|
|
14
|
-
fields: {
|
|
15
|
-
profileId: {
|
|
16
|
-
label: 'Profile ID',
|
|
17
|
-
description: 'The ID of the Campaign Manager 360 profile you want to use.',
|
|
18
|
-
type: 'string',
|
|
19
|
-
required: true
|
|
20
|
-
},
|
|
21
|
-
defaultFloodlightActivityId: {
|
|
22
|
-
label: 'Default Floodlight Activity ID',
|
|
23
|
-
description: 'The Default Floodlight activity ID associated with all the mappings. Can be overridden in the mapping.',
|
|
24
|
-
type: 'string',
|
|
25
|
-
required: false
|
|
26
|
-
},
|
|
27
|
-
defaultFloodlightConfigurationId: {
|
|
28
|
-
label: 'Default Floodlight Configuration ID',
|
|
29
|
-
description: 'The Default Floodlight configuration ID associated with all the mappings. Can be overridden in the mapping.',
|
|
30
|
-
type: 'string',
|
|
31
|
-
required: false
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
testAuthentication: (_request) => {
|
|
35
|
-
return true;
|
|
36
|
-
},
|
|
37
|
-
refreshAccessToken: async (request, { auth }) => {
|
|
38
|
-
const response = await request('https://www.googleapis.com/oauth2/v4/token', {
|
|
39
|
-
method: 'POST',
|
|
40
|
-
body: new URLSearchParams({
|
|
41
|
-
refresh_token: auth.refreshToken,
|
|
42
|
-
client_id: auth.clientId,
|
|
43
|
-
client_secret: auth.clientSecret,
|
|
44
|
-
grant_type: 'refresh_token'
|
|
45
|
-
})
|
|
46
|
-
});
|
|
47
|
-
return { accessToken: response.data.access_token };
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
extendRequest({ auth }) {
|
|
51
|
-
return {
|
|
52
|
-
headers: {
|
|
53
|
-
authorization: `Bearer ${auth?.accessToken}`
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
},
|
|
57
|
-
actions: {
|
|
58
|
-
conversionUpload: conversionUpload_1.default,
|
|
59
|
-
conversionAdjustmentUpload: conversionAdjustmentUpload_1.default
|
|
60
|
-
}
|
|
61
|
-
};
|
|
62
|
-
exports.default = destination;
|
|
63
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/campaign-manager-360/index.ts"],"names":[],"mappings":";;;;;AAGA,0EAAiD;AAGjD,8FAAqE;AAErE,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE,sBAAsB;IAC5B,IAAI,EAAE,OAAO;IAEb,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,SAAS,EAAE;gBACT,K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-
access_token: string;
|
|
3
|
-
scope: string;
|
|
4
|
-
expires_in: number;
|
|
5
|
-
token_type: string;
|
|
6
|
-
}
|
|
7
|
-
export interface AddressInfo {
|
|
8
|
-
hashedFirstName?: string;
|
|
9
|
-
hashedLastName?: string;
|
|
10
|
-
city?: string;
|
|
11
|
-
state?: string;
|
|
12
|
-
countryCode?: string;
|
|
13
|
-
postalCode?: string;
|
|
14
|
-
hashedStreetAddress?: string;
|
|
15
|
-
}
|
|
16
|
-
export interface UpdateRequest {
|
|
17
|
-
conversions: Conversion[];
|
|
18
|
-
encryptionInfo?: EncryptionInfo;
|
|
19
|
-
kind: 'dfareporting#conversionsBatchUpdateRequest';
|
|
20
|
-
}
|
|
21
|
-
export interface InsertRequest {
|
|
22
|
-
conversions: Conversion[];
|
|
23
|
-
encryptionInfo?: EncryptionInfo;
|
|
24
|
-
kind: 'dfareporting#conversionsBatchInsertRequest';
|
|
25
|
-
}
|
|
26
|
-
export declare type CartData = {
|
|
27
|
-
merchantId: string;
|
|
28
|
-
merchantFeedLabel: string;
|
|
29
|
-
merchantFeedLanguage: string;
|
|
30
|
-
items: CartDataItem[];
|
|
31
|
-
};
|
|
32
|
-
export declare type CartDataItem = {
|
|
33
|
-
itemId: string;
|
|
34
|
-
quantity: number;
|
|
35
|
-
unitPrice: number;
|
|
36
|
-
};
|
|
37
|
-
export declare type Conversion = ConversionBase & {
|
|
38
|
-
customVariables?: CustomVariable[];
|
|
39
|
-
encryptedUserIdCandidates?: string[];
|
|
40
|
-
};
|
|
41
|
-
declare type ExactlyOne<T, Keys extends keyof T = keyof T> = {
|
|
42
|
-
[K in Keys]: Pick<T, K> & Partial<Record<Exclude<Keys, K>, never>>;
|
|
43
|
-
}[Keys];
|
|
44
|
-
declare type ExactlyOneIdentifier = ExactlyOne<{
|
|
45
|
-
encryptedUserId?: string;
|
|
46
|
-
mobileDeviceId?: string;
|
|
47
|
-
matchId?: string;
|
|
48
|
-
gclid?: string;
|
|
49
|
-
dclid?: string;
|
|
50
|
-
impressionId?: string;
|
|
51
|
-
encryptedUserIdCandidates?: string[];
|
|
52
|
-
}>;
|
|
53
|
-
export declare type ConversionBase = ExactlyOneIdentifier & {
|
|
54
|
-
adUserDataConsent?: ConsentType | undefined;
|
|
55
|
-
cartData?: CartData | undefined;
|
|
56
|
-
childDirectedTreatment?: boolean | undefined;
|
|
57
|
-
dclid?: string | undefined;
|
|
58
|
-
encryptedUserId?: string | undefined;
|
|
59
|
-
floodlightActivityId: string;
|
|
60
|
-
floodlightConfigurationId: string;
|
|
61
|
-
gclid?: string | undefined;
|
|
62
|
-
impressionId?: string | undefined;
|
|
63
|
-
kind: 'dfareporting#conversion';
|
|
64
|
-
limitAdTracking?: boolean | undefined;
|
|
65
|
-
matchId?: string | undefined;
|
|
66
|
-
mobileDeviceId?: string | undefined;
|
|
67
|
-
nonPersonalizedAd?: boolean | undefined;
|
|
68
|
-
ordinal: string;
|
|
69
|
-
quantity: string;
|
|
70
|
-
timestampMicros: string;
|
|
71
|
-
treatmentForUnderage?: boolean | undefined;
|
|
72
|
-
userIdentifiers?: UserIdentifier[];
|
|
73
|
-
value: number;
|
|
74
|
-
};
|
|
75
|
-
export interface CustomVariable {
|
|
76
|
-
type: CustomVarTypeChoices;
|
|
77
|
-
value: string;
|
|
78
|
-
kind: 'dfareporting#customFloodlightVariable';
|
|
79
|
-
}
|
|
80
|
-
export interface EncryptionInfo {
|
|
81
|
-
encryptionEntityId: string;
|
|
82
|
-
encryptionEntityType: EntityType;
|
|
83
|
-
encryptionSource: Source;
|
|
84
|
-
kind: 'dfareporting#encryptionInfo';
|
|
85
|
-
}
|
|
86
|
-
export declare type UserIdentifier = {
|
|
87
|
-
hashedEmail: string;
|
|
88
|
-
} | {
|
|
89
|
-
hashedPhoneNumber: string;
|
|
90
|
-
} | {
|
|
91
|
-
addressInfo: AddressInfo;
|
|
92
|
-
};
|
|
93
|
-
export declare const ConsentType: {
|
|
94
|
-
readonly GRANTED: "GRANTED";
|
|
95
|
-
readonly DENIED: "DENIED";
|
|
96
|
-
};
|
|
97
|
-
export declare type ConsentType = typeof ConsentType[keyof typeof ConsentType];
|
|
98
|
-
export declare const EntityType: {
|
|
99
|
-
readonly ADWORDS_CUSTOMER: "ADWORDS_CUSTOMER";
|
|
100
|
-
readonly DBM_ADVERTISER: "DBM_ADVERTISER";
|
|
101
|
-
readonly DBM_PARTNER: "DBM_PARTNER";
|
|
102
|
-
readonly DCM_ACCOUNT: "DCM_ACCOUNT";
|
|
103
|
-
readonly DCM_ADVERTISER: "DCM_ADVERTISER";
|
|
104
|
-
readonly ENCRYPTION_ENTITY_TYPE_UNKNOWN: "ENCRYPTION_ENTITY_TYPE_UNKNOWN";
|
|
105
|
-
readonly DFP_NETWORK_CODE: "DFP_NETWORK_CODE";
|
|
106
|
-
};
|
|
107
|
-
export declare type EntityType = typeof EntityType[keyof typeof EntityType];
|
|
108
|
-
export declare const Source: {
|
|
109
|
-
readonly AD_SERVING: "AD_SERVING";
|
|
110
|
-
readonly ENCRYPTION_SCOPE_UNKNOWN: "ENCRYPTION_SCOPE_UNKNOWN";
|
|
111
|
-
readonly DATA_TRANSFER: "DATA_TRANSFER";
|
|
112
|
-
};
|
|
113
|
-
export declare type Source = typeof Source[keyof typeof Source];
|
|
114
|
-
export declare const CustomVarTypeChoices: string[];
|
|
115
|
-
export declare type CustomVarTypeChoices = typeof CustomVarTypeChoices[number];
|
|
116
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CustomVarTypeChoices = exports.Source = exports.EntityType = exports.ConsentType = void 0;
|
|
4
|
-
exports.ConsentType = {
|
|
5
|
-
GRANTED: 'GRANTED',
|
|
6
|
-
DENIED: 'DENIED'
|
|
7
|
-
};
|
|
8
|
-
exports.EntityType = {
|
|
9
|
-
ADWORDS_CUSTOMER: 'ADWORDS_CUSTOMER',
|
|
10
|
-
DBM_ADVERTISER: 'DBM_ADVERTISER',
|
|
11
|
-
DBM_PARTNER: 'DBM_PARTNER',
|
|
12
|
-
DCM_ACCOUNT: 'DCM_ACCOUNT',
|
|
13
|
-
DCM_ADVERTISER: 'DCM_ADVERTISER',
|
|
14
|
-
ENCRYPTION_ENTITY_TYPE_UNKNOWN: 'ENCRYPTION_ENTITY_TYPE_UNKNOWN',
|
|
15
|
-
DFP_NETWORK_CODE: 'DFP_NETWORK_CODE'
|
|
16
|
-
};
|
|
17
|
-
exports.Source = {
|
|
18
|
-
AD_SERVING: 'AD_SERVING',
|
|
19
|
-
ENCRYPTION_SCOPE_UNKNOWN: 'ENCRYPTION_SCOPE_UNKNOWN',
|
|
20
|
-
DATA_TRANSFER: 'DATA_TRANSFER'
|
|
21
|
-
};
|
|
22
|
-
exports.CustomVarTypeChoices = Array.from({ length: 100 }, (_, i) => `U${i + 1}`);
|
|
23
|
-
//# sourceMappingURL=types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/destinations/campaign-manager-360/types.ts"],"names":[],"mappings":";;;AAuGa,QAAA,WAAW,GAAG;IACzB,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;CACR,CAAA;AAIG,QAAA,UAAU,GAAG;IACxB,gBAAgB,EAAE,kBAAkB;IACpC,cAAc,EAAE,gBAAgB;IAChC,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,aAAa;IAC1B,cAAc,EAAE,gBAAgB;IAChC,8BAA8B,EAAE,gCAAgC;IAChE,gBAAgB,EAAE,kBAAkB;CAC5B,CAAA;AAIG,QAAA,MAAM,GAAG;IACpB,UAAU,EAAE,YAAY;IACxB,wBAAwB,EAAE,0BAA0B;IACpD,aAAa,EAAE,eAAe;CACtB,CAAA;AAIG,QAAA,oBAAoB,GAAG,KAAK,CAAC,IAAI,CAC5C,EAAE,MAAM,EAAE,GAAG,EAAE,EACf,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CACtB,CAAA"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { RequestClient } from '@segment/actions-core';
|
|
2
|
-
import { Payload as UploadPayload } from './conversionUpload/generated-types';
|
|
3
|
-
import { Payload as Adjustayload } from './conversionAdjustmentUpload/generated-types';
|
|
4
|
-
import { AuthTokens } from '@segment/actions-core/destination-kit/parse-settings';
|
|
5
|
-
import { Settings } from './generated-types';
|
|
6
|
-
import { InsertRequest } from './types';
|
|
7
|
-
export declare function send(request: RequestClient, settings: Settings, payloads: UploadPayload[] | Adjustayload[], isAdjustment: boolean, auth?: AuthTokens): Promise<import("@segment/actions-core/src").ModifiedResponse<unknown>>;
|
|
8
|
-
export declare function getJSON(payloads: UploadPayload[] | Adjustayload[], settings: Settings): InsertRequest;
|
|
9
|
-
export declare function maybeHash(value: string | undefined): string | undefined;
|
|
10
|
-
export declare function getCustomVarTypeChoices(): Array<{
|
|
11
|
-
value: string;
|
|
12
|
-
label: string;
|
|
13
|
-
}>;
|
|
14
|
-
export declare function getEntityTypeChoices(): Array<{
|
|
15
|
-
value: string;
|
|
16
|
-
label: string;
|
|
17
|
-
}>;
|
|
18
|
-
export declare function getSources(): Array<{
|
|
19
|
-
value: string;
|
|
20
|
-
label: string;
|
|
21
|
-
}>;
|