@segment/action-destinations 3.97.0 → 3.98.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.
Files changed (24) hide show
  1. package/dist/destinations/actions-pardot/generated-types.d.ts +5 -0
  2. package/dist/destinations/actions-pardot/generated-types.js +3 -0
  3. package/dist/destinations/actions-pardot/generated-types.js.map +1 -0
  4. package/dist/destinations/actions-pardot/index.d.ts +4 -0
  5. package/dist/destinations/actions-pardot/index.js +62 -0
  6. package/dist/destinations/actions-pardot/index.js.map +1 -0
  7. package/dist/destinations/actions-pardot/pa-operations.d.ts +17 -0
  8. package/dist/destinations/actions-pardot/pa-operations.js +51 -0
  9. package/dist/destinations/actions-pardot/pa-operations.js.map +1 -0
  10. package/dist/destinations/actions-pardot/pa-properties.d.ts +2 -0
  11. package/dist/destinations/actions-pardot/pa-properties.js +13 -0
  12. package/dist/destinations/actions-pardot/pa-properties.js.map +1 -0
  13. package/dist/destinations/actions-pardot/pa-type.d.ts +15 -0
  14. package/dist/destinations/actions-pardot/pa-type.js +3 -0
  15. package/dist/destinations/actions-pardot/pa-type.js.map +1 -0
  16. package/dist/destinations/actions-pardot/prospects/generated-types.d.ts +19 -0
  17. package/dist/destinations/actions-pardot/prospects/generated-types.js +3 -0
  18. package/dist/destinations/actions-pardot/prospects/generated-types.js.map +1 -0
  19. package/dist/destinations/actions-pardot/prospects/index.d.ts +5 -0
  20. package/dist/destinations/actions-pardot/prospects/index.js +205 -0
  21. package/dist/destinations/actions-pardot/prospects/index.js.map +1 -0
  22. package/dist/destinations/index.js +1 -0
  23. package/dist/destinations/index.js.map +1 -1
  24. package/package.json +2 -2
@@ -0,0 +1,5 @@
1
+ export interface Settings {
2
+ businessUnitID: string;
3
+ accountID: string;
4
+ isSandbox: boolean;
5
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=generated-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../src/destinations/actions-pardot/generated-types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,4 @@
1
+ import type { DestinationDefinition } from '@segment/actions-core';
2
+ import type { Settings } from './generated-types';
3
+ declare const destination: DestinationDefinition<Settings>;
4
+ export default destination;
@@ -0,0 +1,62 @@
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 prospects_1 = __importDefault(require("./prospects"));
7
+ const destination = {
8
+ name: 'Pardot Actions',
9
+ slug: 'actions-pardot',
10
+ mode: 'cloud',
11
+ authentication: {
12
+ scheme: 'oauth2',
13
+ fields: {
14
+ businessUnitID: {
15
+ label: 'Pardot Business Unit ID',
16
+ description: 'The Pardot Business Unit ID associated with your Pardot Account. ' +
17
+ 'To find your Business Unit ID in Salesforce, go to **Setup** and search for `Pardot`. Your Pardot Business Unit ID is an 18-character string that starts with `0Uv`. If you cannot access the Pardot Account Setup information, ask your Salesforce Administrator to find the Pardot Business Unit ID for you.',
18
+ type: 'string',
19
+ required: true
20
+ },
21
+ accountID: {
22
+ label: 'Account ID',
23
+ description: 'You can find your Account ID (`piAId`) under **Marketing > Campaigns** in your [Pardot account](https://pi.pardot.com/campaign). After selecting your desired website campaign, press **View Tracking Code**. ',
24
+ type: 'string',
25
+ required: true
26
+ },
27
+ isSandbox: {
28
+ label: 'Sandbox Instance',
29
+ description: 'Enable to authenticate into a sandbox instance. You can log in to a sandbox by appending the sandbox name to your Salesforce username. For example, if a username for a production org is user@acme.com and the sandbox is named `test`, the username to log in to the sandbox is user@acme.com.test. If you are already authenticated, please disconnect and reconnect with your sandbox username.',
30
+ type: 'boolean',
31
+ default: false,
32
+ required: true
33
+ }
34
+ },
35
+ refreshAccessToken: async (request, { auth, settings }) => {
36
+ const baseUrl = settings.isSandbox ? 'https://test.salesforce.com' : 'https://login.salesforce.com';
37
+ const res = await request(`${baseUrl}/services/oauth2/token`, {
38
+ method: 'POST',
39
+ body: new URLSearchParams({
40
+ refresh_token: auth.refreshToken,
41
+ client_id: auth.clientId,
42
+ client_secret: auth.clientSecret,
43
+ grant_type: 'refresh_token'
44
+ })
45
+ });
46
+ return { accessToken: res.data.access_token };
47
+ }
48
+ },
49
+ extendRequest({ settings, auth }) {
50
+ return {
51
+ headers: {
52
+ Authorization: `Bearer ${auth?.accessToken}`,
53
+ 'Pardot-Business-Unit-Id': settings.businessUnitID
54
+ }
55
+ };
56
+ },
57
+ actions: {
58
+ prospects: prospects_1.default
59
+ }
60
+ };
61
+ exports.default = destination;
62
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/actions-pardot/index.ts"],"names":[],"mappings":";;;;;AAEA,4DAAmC;AAMnC,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,gBAAgB;IACtB,IAAI,EAAE,OAAO;IAEb,cAAc,EAAE;QACd,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE;YACN,cAAc,EAAE;gBACd,KAAK,EAAE,yBAAyB;gBAChC,WAAW,EACT,mEAAmE;oBACnE,iTAAiT;gBACnT,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,SAAS,EAAE;gBACT,KAAK,EAAE,YAAY;gBACnB,WAAW,EACT,gNAAgN;gBAClN,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,SAAS,EAAE;gBACT,KAAK,EAAE,kBAAkB;gBACzB,WAAW,EACT,qYAAqY;gBACvY,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,QAAQ,EAAE,IAAI;aACf;SACF;QACD,kBAAkB,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE;YAExD,MAAM,OAAO,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,6BAA6B,CAAC,CAAC,CAAC,8BAA8B,CAAA;YACnG,MAAM,GAAG,GAAG,MAAM,OAAO,CAAuB,GAAG,OAAO,wBAAwB,EAAE;gBAClF,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,IAAI,eAAe,CAAC;oBACxB,aAAa,EAAE,IAAI,CAAC,YAAY;oBAChC,SAAS,EAAE,IAAI,CAAC,QAAQ;oBACxB,aAAa,EAAE,IAAI,CAAC,YAAY;oBAChC,UAAU,EAAE,eAAe;iBAC5B,CAAC;aACH,CAAC,CAAA;YACF,OAAO,EAAE,WAAW,EAAE,GAAG,CAAC,IAAI,CAAC,YAAY,EAAE,CAAA;QAC/C,CAAC;KACF;IACD,aAAa,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC9B,OAAO;YACL,OAAO,EAAE;gBACP,aAAa,EAAE,UAAU,IAAI,EAAE,WAAW,EAAE;gBAC5C,yBAAyB,EAAE,QAAQ,CAAC,cAAc;aACnD;SACF,CAAA;IACH,CAAC;IAED,OAAO,EAAE;QACP,SAAS,EAAT,mBAAS;KACV;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
@@ -0,0 +1,17 @@
1
+ import { RequestClient } from '@segment/actions-core';
2
+ import type { Payload as ProspectsPayload } from './prospects/generated-types';
3
+ export declare const PARDOT_API_VERSION = "v5";
4
+ interface ProspectUpsertResponseData {
5
+ id: string;
6
+ email: string;
7
+ }
8
+ export default class Pardot {
9
+ businessUnitID: string;
10
+ baseUrl: string;
11
+ request: RequestClient;
12
+ constructor(businessUnitID: string, baseUrl: string, request: RequestClient);
13
+ upsertRecord: (payload: ProspectsPayload) => Promise<import("@segment/actions-core").ModifiedResponse<ProspectUpsertResponseData>>;
14
+ private ProspectsShape;
15
+ private buildProspectJSON;
16
+ }
17
+ export {};
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PARDOT_API_VERSION = void 0;
4
+ exports.PARDOT_API_VERSION = 'v5';
5
+ class Pardot {
6
+ constructor(businessUnitID, baseUrl, request) {
7
+ this.upsertRecord = async (payload) => {
8
+ const prospect = this.buildProspectJSON(payload);
9
+ return this.request(`${this.baseUrl}/api/${exports.PARDOT_API_VERSION}/objects/prospects/do/upsertLatestByEmail`, {
10
+ method: 'post',
11
+ headers: {
12
+ 'Content-Type': 'application/json'
13
+ },
14
+ json: {
15
+ matchEmail: payload.email,
16
+ prospect: prospect,
17
+ secondaryDeletedSearch: payload.secondaryDeletedSearch
18
+ }
19
+ });
20
+ };
21
+ this.ProspectsShape = (payload) => {
22
+ return {
23
+ email: payload.email,
24
+ firstName: payload.firstName,
25
+ lastName: payload.lastName,
26
+ salutation: payload.salutation,
27
+ phone: payload.phone,
28
+ company: payload.company,
29
+ jobTitle: payload.jobTitle,
30
+ industry: payload.industry,
31
+ city: payload.city,
32
+ state: payload.state,
33
+ zip: payload.zip,
34
+ country: payload.country,
35
+ website: payload.website
36
+ };
37
+ };
38
+ this.buildProspectJSON = (payload) => {
39
+ let baseShape = this.ProspectsShape(payload);
40
+ if (payload.customFields) {
41
+ baseShape = { ...baseShape, ...payload.customFields };
42
+ }
43
+ return baseShape;
44
+ };
45
+ this.businessUnitID = businessUnitID;
46
+ this.baseUrl = baseUrl;
47
+ this.request = request;
48
+ }
49
+ }
50
+ exports.default = Pardot;
51
+ //# sourceMappingURL=pa-operations.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pa-operations.js","sourceRoot":"","sources":["../../../src/destinations/actions-pardot/pa-operations.ts"],"names":[],"mappings":";;;AAIa,QAAA,kBAAkB,GAAG,IAAI,CAAA;AAOtC,MAAqB,MAAM;IAKzB,YAAY,cAAsB,EAAE,OAAe,EAAE,OAAsB;QAM3E,iBAAY,GAAG,KAAK,EAAE,OAAyB,EAAE,EAAE;YACjD,MAAM,QAAQ,GAAG,IAAI,CAAC,i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AI,CAAC,cAAc,GAAG,cAAc,CAAA;QACpC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;QACtB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IACxB,CAAC;CAgDF;AAzDD,yBAyDC"}
@@ -0,0 +1,2 @@
1
+ import { InputField } from '@segment/actions-core/src/destination-kit/types';
2
+ export declare const customFields: InputField;
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.customFields = void 0;
4
+ exports.customFields = {
5
+ label: 'Other Fields',
6
+ description: `
7
+ Additional prospect fields to send to Pardot.
8
+ Only editable fields are accepted. Please see [Pardot docs](https://developer.salesforce.com/docs/marketing/pardot/guide/prospect-v5.html#fields) for more details. On the left-hand side, input the Pardot field name. On the right-hand side, map the Segment field that contains the value.`,
9
+ type: 'object',
10
+ required: false,
11
+ defaultObjectUI: 'keyvalue'
12
+ };
13
+ //# sourceMappingURL=pa-properties.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pa-properties.js","sourceRoot":"","sources":["../../../src/destinations/actions-pardot/pa-properties.ts"],"names":[],"mappings":";;;AAEa,QAAA,YAAY,GAAe;IACtC,KAAK,EAAE,cAAc;IACrB,WAAW,EAAE;;iSAEkR;IAC/R,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,KAAK;IACf,eAAe,EAAE,UAAU;CAC5B,CAAA"}
@@ -0,0 +1,15 @@
1
+ export declare type ProspectsType = {
2
+ email: string;
3
+ firstName?: string;
4
+ lastName?: string;
5
+ salutation?: string;
6
+ phone?: string;
7
+ company?: string;
8
+ jobTitle?: string;
9
+ industry?: string;
10
+ city?: string;
11
+ state?: string;
12
+ zip?: string;
13
+ country?: string;
14
+ website?: string;
15
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=pa-type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pa-type.js","sourceRoot":"","sources":["../../../src/destinations/actions-pardot/pa-type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,19 @@
1
+ export interface Payload {
2
+ email: string;
3
+ firstName?: string;
4
+ lastName?: string;
5
+ salutation?: string;
6
+ phone?: string;
7
+ company?: string;
8
+ jobTitle?: string;
9
+ industry?: string;
10
+ city?: string;
11
+ state?: string;
12
+ zip?: string;
13
+ country?: string;
14
+ website?: string;
15
+ secondaryDeletedSearch: boolean;
16
+ customFields?: {
17
+ [k: string]: unknown;
18
+ };
19
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=generated-types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/actions-pardot/prospects/generated-types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ import { ActionDefinition } from '@segment/actions-core';
2
+ import type { Settings } from '../generated-types';
3
+ import type { Payload } from './generated-types';
4
+ declare const action: ActionDefinition<Settings, Payload>;
5
+ export default action;
@@ -0,0 +1,205 @@
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 actions_core_1 = require("@segment/actions-core");
7
+ const pa_operations_1 = __importDefault(require("../pa-operations"));
8
+ const pa_properties_1 = require("../pa-properties");
9
+ const action = {
10
+ title: 'Upsert Prospect',
11
+ description: 'Create or update a prospect in Pardot using email address.',
12
+ defaultSubscription: 'type = "identify"',
13
+ fields: {
14
+ email: {
15
+ label: 'Email Address',
16
+ description: `The prospect's email address.
17
+ Used to upsert a prospect in Pardot. If multiple prospects have the given email, the prospect with the latest activity is updated. If there's no prospect with the given email, a prospect is created. Please note that Pardot treats email address as case sensitive and will create multiple prospects for casing differences.`,
18
+ type: 'string',
19
+ required: true,
20
+ default: {
21
+ '@if': {
22
+ exists: { '@path': '$.traits.email' },
23
+ then: { '@path': '$.traits.email' },
24
+ else: { '@path': '$.properties.email' }
25
+ }
26
+ }
27
+ },
28
+ firstName: {
29
+ label: 'First Name',
30
+ description: "The prospect's first name.",
31
+ type: 'string',
32
+ required: false,
33
+ default: {
34
+ '@if': {
35
+ exists: { '@path': '$.traits.first_name' },
36
+ then: { '@path': '$.traits.first_name' },
37
+ else: { '@path': '$.properties.first_name' }
38
+ }
39
+ }
40
+ },
41
+ lastName: {
42
+ label: 'Last Name',
43
+ description: "The prospect's last name.",
44
+ type: 'string',
45
+ required: false,
46
+ default: {
47
+ '@if': {
48
+ exists: { '@path': '$.traits.last_name' },
49
+ then: { '@path': '$.traits.last_name' },
50
+ else: { '@path': '$.properties.last_name' }
51
+ }
52
+ }
53
+ },
54
+ salutation: {
55
+ label: 'Salutation',
56
+ description: "The prospect's formal prefix.",
57
+ type: 'string',
58
+ required: false
59
+ },
60
+ phone: {
61
+ label: 'Phone Number',
62
+ description: "The prospect's phone number.",
63
+ type: 'string',
64
+ required: false,
65
+ default: {
66
+ '@if': {
67
+ exists: { '@path': '$.traits.phone' },
68
+ then: { '@path': '$.traits.phone' },
69
+ else: { '@path': '$.properties.phone' }
70
+ }
71
+ }
72
+ },
73
+ company: {
74
+ label: 'Company',
75
+ description: "The prospect's company.",
76
+ type: 'string',
77
+ required: false,
78
+ default: {
79
+ '@if': {
80
+ exists: { '@path': '$.traits.company' },
81
+ then: { '@path': '$.traits.company' },
82
+ else: { '@path': '$.properties.company' }
83
+ }
84
+ }
85
+ },
86
+ jobTitle: {
87
+ label: 'Job Title',
88
+ description: "The prospect's job title.",
89
+ type: 'string',
90
+ required: false,
91
+ default: {
92
+ '@if': {
93
+ exists: { '@path': '$.traits.title' },
94
+ then: { '@path': '$.traits.title' },
95
+ else: { '@path': '$.properties.title' }
96
+ }
97
+ }
98
+ },
99
+ industry: {
100
+ label: 'Industry',
101
+ description: "The prospect's industry.",
102
+ type: 'string',
103
+ required: false
104
+ },
105
+ city: {
106
+ label: 'City',
107
+ description: "The prospect's city.",
108
+ type: 'string',
109
+ required: false,
110
+ default: {
111
+ '@if': {
112
+ exists: { '@path': '$.traits.address.city' },
113
+ then: { '@path': '$.traits.address.city' },
114
+ else: { '@path': '$.properties.address.city' }
115
+ }
116
+ }
117
+ },
118
+ state: {
119
+ label: 'State',
120
+ description: "The prospect's US state.",
121
+ type: 'string',
122
+ required: false,
123
+ default: {
124
+ '@if': {
125
+ exists: { '@path': '$.traits.address.state' },
126
+ then: { '@path': '$.traits.address.state' },
127
+ else: { '@path': '$.properties.address.state' }
128
+ }
129
+ }
130
+ },
131
+ zip: {
132
+ label: 'Zip Code',
133
+ description: "The prospect's postal code.",
134
+ type: 'string',
135
+ required: false,
136
+ default: {
137
+ '@if': {
138
+ exists: { '@path': '$.traits.address.postal_code' },
139
+ then: { '@path': '$.traits.address.postal_code' },
140
+ else: { '@path': '$.properties.address.postal_code' }
141
+ }
142
+ }
143
+ },
144
+ country: {
145
+ label: 'Country',
146
+ description: "The prospect's country.",
147
+ type: 'string',
148
+ required: false,
149
+ default: {
150
+ '@if': {
151
+ exists: { '@path': '$.traits.address.country' },
152
+ then: { '@path': '$.traits.address.country' },
153
+ else: { '@path': '$.properties.address.country' }
154
+ }
155
+ }
156
+ },
157
+ website: {
158
+ label: 'Website',
159
+ description: "The prospect's website URL.",
160
+ type: 'string',
161
+ required: false,
162
+ default: {
163
+ '@if': {
164
+ exists: { '@path': '$.traits.website' },
165
+ then: { '@path': '$.traits.website' },
166
+ else: { '@path': '$.properties.website' }
167
+ }
168
+ }
169
+ },
170
+ secondaryDeletedSearch: {
171
+ label: 'Search Deleted Prospects',
172
+ description: `If true, the request’s search includes deleted records. This property only affects [AMPSEA accounts](https://help.salesforce.com/s/articleView?id=sf.pardot_admin_ampsea_parent.htm&type=5).
173
+ If all records with a matching email address are deleted, the one with the latest activity is undeleted and updated. Otherwise, a new prospect is created.`,
174
+ type: 'boolean',
175
+ required: true,
176
+ default: true
177
+ },
178
+ customFields: pa_properties_1.customFields
179
+ },
180
+ perform: async (request, { settings, payload }) => {
181
+ const baseUrl = settings.isSandbox ? 'https://pi.demo.pardot.com' : 'https://pi.pardot.com';
182
+ const pa = new pa_operations_1.default(settings.businessUnitID, baseUrl, request);
183
+ try {
184
+ return await pa.upsertRecord(payload);
185
+ }
186
+ catch (err) {
187
+ const error = err;
188
+ const statusCode = error.response.status;
189
+ if (error.response.headers.get('content-type')?.includes('application/json')) {
190
+ const data = error.response.data;
191
+ throw new actions_core_1.IntegrationError(`Pardot responded witha error code ${data.code}: ${data.message}. This means Pardot has received the call, but consider the payload to be invalid. To identify the exact error, please refer to ` +
192
+ `https://developer.salesforce.com/docs/marketing/pardot/guide/error-codes.html?q=error#numerical-list-of-error-codes and search for the error code you received.`, 'PARDOT_ERROR', 400);
193
+ }
194
+ else if (error.response.headers.get('content-type')?.includes('text/xml')) {
195
+ if (statusCode === 403 || statusCode === 400) {
196
+ throw new actions_core_1.IntegrationError(`The Business Unit ID or access_token is invalid. This error is also returned when you use the wrong instance (Sandbox or Prod). ` +
197
+ `If you toggled the Sandbox instance, please disconnect and reconnect with your corresponding username.`, 'PARDOT_ERROR', 403);
198
+ }
199
+ }
200
+ throw err;
201
+ }
202
+ }
203
+ };
204
+ exports.default = action;
205
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/actions-pardot/prospects/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAAqF;AAGrF,qEAAqC;AACrC,oDAA+C;AAQ/C,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,iBAAiB;IACxB,WAAW,EAAE,4DAA4D;IACzE,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,KAAK,EAAE;YACL,KAAK,EAAE,eAAe;YACtB,WAAW,EAAE;yUACsT;YACnU,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,IAAI;YACd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G,CACJ,CAAA;iBACA;aACF;YACD,MAAM,GAAG,CAAA;SACV;IACH,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -50,6 +50,7 @@ register('624dddd054ced46facfdb9c0', './launchdarkly');
50
50
  register('615c7438d93d9b61b1e9e192', './mixpanel');
51
51
  register('61a8032ea5f157ee37a720be', './metronome');
52
52
  register('620feaa207e70f6c6a765ff7', './moengage');
53
+ register('62df16e45ba0058c864a75d1', './actions-pardot');
53
54
  register('5f7dd8191ad74f868ab1fc48', './pipedrive');
54
55
  register('62e17e6f687e4a3d32d0f875', './qualtrics');
55
56
  register('61957755c4d820be968457de', './salesforce');
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/destinations/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AACA,wDAAmD;AACnD,gDAAuB;AAWV,QAAA,YAAY,GAA0C,EAAE,CAAA;AACxD,QAAA,QAAQ,GAAsC,EAAE,CAAA;AAU7D,QAAQ,CAAC,0BAA0B,EAAE,UAAU,CAAC,CAAA;AAChD,QAAQ,CAAC,0BAA0B,EAAE,gBAAgB,CAAC,CAAA;AACtD,QAAQ,CAAC,0BAA0B,EAAE,aAAa,CAAC,CAAA;AACnD,QAAQ,CAAC,0BAA0B,EAAE,SAAS,CAAC,CAAA;AAC/C,QAAQ,CAAC,0BAA0B,EAAE,aAAa,CAAC,CAAA;AACnD,QAAQ,CAAC,0BAA0B,EAAE,SAAS,CAAC,CAAA;AAC/C,QAAQ,CAAC,0BAA0B,EAAE,WAAW,CAAC,CAAA;AACjD,QAAQ,CAAC,0BAA0B,EAAE,oBAAoB,CAAC,CAAA;AAC1D,QAAQ,CAAC,0BAA0B,EAAE,cAAc,CAAC,CAAA;AACpD,QAAQ,CAAC,0BAA0B,EAAE,6BAA6B,CAAC,CAAA;AACnE,QAAQ,CAAC,0BAA0B,EAAE,2BAA2B,CAAC,CAAA;AACjE,QAAQ,CAAC,0BAA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}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@segment/action-destinations",
3
3
  "description": "Destination Actions engine and definitions.",
4
- "version": "3.97.0",
4
+ "version": "3.98.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/segmentio/action-destinations",
@@ -65,5 +65,5 @@
65
65
  "lcov"
66
66
  ]
67
67
  },
68
- "gitHead": "adb55a7d8f1386814f13b4a354e808dbe68811ea"
68
+ "gitHead": "ed5cd9142c4182de46ddf856f96c29c8288fbb5c"
69
69
  }