@segment/action-destinations 3.44.1-alpha.0 → 3.45.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/close/createUpdateContactAndLead/generated-types.d.ts +12 -0
- package/dist/destinations/close/createUpdateContactAndLead/generated-types.js +3 -0
- package/dist/destinations/close/createUpdateContactAndLead/generated-types.js.map +1 -0
- package/dist/destinations/close/createUpdateContactAndLead/index.d.ts +5 -0
- package/dist/destinations/close/createUpdateContactAndLead/index.js +89 -0
- package/dist/destinations/close/createUpdateContactAndLead/index.js.map +1 -0
- package/dist/destinations/close/generated-types.d.ts +4 -0
- package/dist/destinations/close/generated-types.js +3 -0
- package/dist/destinations/close/generated-types.js.map +1 -0
- package/dist/destinations/close/index.d.ts +4 -0
- package/dist/destinations/close/index.js +49 -0
- package/dist/destinations/close/index.js.map +1 -0
- package/dist/destinations/customerio/utils.js +1 -1
- package/dist/destinations/customerio/utils.js.map +1 -1
- package/dist/destinations/salesforce/lead/index.js +9 -9
- package/dist/destinations/salesforce/lead/index.js.map +1 -1
- package/dist/destinations/salesforce/sf-properties.d.ts +0 -2
- package/dist/destinations/salesforce/sf-properties.js +4 -20
- package/dist/destinations/salesforce/sf-properties.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface Payload {
|
|
2
|
+
lead_name?: string;
|
|
3
|
+
contact_name?: string;
|
|
4
|
+
contact_email?: string;
|
|
5
|
+
contact_phone?: string;
|
|
6
|
+
contact_url?: string;
|
|
7
|
+
contact_title?: string;
|
|
8
|
+
contact_external_id?: string;
|
|
9
|
+
contact_custom_fields?: {
|
|
10
|
+
[k: string]: unknown;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../../src/destinations/close/createUpdateContactAndLead/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const action = {
|
|
4
|
+
title: 'Create or Update Contact and Lead',
|
|
5
|
+
description: '',
|
|
6
|
+
defaultSubscription: 'type = "identify"',
|
|
7
|
+
fields: {
|
|
8
|
+
lead_name: {
|
|
9
|
+
label: 'Lead Name',
|
|
10
|
+
description: '',
|
|
11
|
+
type: 'string',
|
|
12
|
+
required: false,
|
|
13
|
+
default: {
|
|
14
|
+
'@path': '$.traits.company.name'
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
contact_name: {
|
|
18
|
+
label: 'Contact Name',
|
|
19
|
+
description: '',
|
|
20
|
+
type: 'string',
|
|
21
|
+
required: false,
|
|
22
|
+
default: {
|
|
23
|
+
'@path': '$.traits.name'
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
contact_email: {
|
|
27
|
+
label: 'Contact Email',
|
|
28
|
+
description: '',
|
|
29
|
+
type: 'string',
|
|
30
|
+
required: false,
|
|
31
|
+
default: {
|
|
32
|
+
'@path': '$.traits.email'
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
contact_phone: {
|
|
36
|
+
label: 'Contact Phone',
|
|
37
|
+
description: '',
|
|
38
|
+
type: 'string',
|
|
39
|
+
required: false,
|
|
40
|
+
default: {
|
|
41
|
+
'@path': '$.traits.phone'
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
contact_url: {
|
|
45
|
+
label: 'Contact URL',
|
|
46
|
+
description: '',
|
|
47
|
+
type: 'string',
|
|
48
|
+
required: false,
|
|
49
|
+
default: {
|
|
50
|
+
'@path': '$.traits.website'
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
contact_title: {
|
|
54
|
+
label: 'Contact Title',
|
|
55
|
+
description: '',
|
|
56
|
+
type: 'string',
|
|
57
|
+
required: false,
|
|
58
|
+
default: {
|
|
59
|
+
'@path': '$.traits.title'
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
contact_external_id: {
|
|
63
|
+
label: 'Contact User ID',
|
|
64
|
+
description: 'Your ID that identifies the Contact. Contact Custom Field ID for User ID must be defined in the global integration settings.',
|
|
65
|
+
type: 'string',
|
|
66
|
+
required: false,
|
|
67
|
+
default: {
|
|
68
|
+
'@path': '$.userId'
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
contact_custom_fields: {
|
|
72
|
+
label: 'Contact Custom Fields',
|
|
73
|
+
description: 'Custom Fields to set on the Contact. Key should be Custom Field ID (`cf_xxxx`).',
|
|
74
|
+
type: 'object',
|
|
75
|
+
required: false
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
perform: (request, data) => {
|
|
79
|
+
const settings = {
|
|
80
|
+
contact_custom_field_id_for_user_id: data.settings.contact_custom_field_id_for_user_id
|
|
81
|
+
};
|
|
82
|
+
return request('https://services.close.com/webhooks/segment/actions/create-update-contact-and-lead/', {
|
|
83
|
+
method: 'post',
|
|
84
|
+
json: { action_payload: data.payload, settings }
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
exports.default = action;
|
|
89
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/close/createUpdateContactAndLead/index.ts"],"names":[],"mappings":";;AAIA,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,mCAAmC;IAC1C,WAAW,EAAE,EAAE;IACf,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,SAAS,EAAE;YACT,KAAK,EAAE,WAAW;YAClB,WAAW,EAAE,EAAE;YACf,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE;gBACP,OAAO,EAAE,uBAAuB;aACjC;SACF;QACD,YAAY,EAAE;YACZ,KAAK,EAAE,cAAc;YACrB,WAAW,EAAE,EAAE;YAC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,CAAC,qFAAqF,EAAE;YACpG,MAAM,EAAE,MAAM;YACd,IAAI,EAAE,EAAE,cAAc,EAAE,IAAI,CAAC,OAAO,EAAE,QAAQ,EAAE;SACjD,CAAC,CAAA;IACJ,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../src/destinations/close/generated-types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,49 @@
|
|
|
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 createUpdateContactAndLead_1 = __importDefault(require("./createUpdateContactAndLead"));
|
|
7
|
+
const destination = {
|
|
8
|
+
name: 'Close',
|
|
9
|
+
slug: 'close',
|
|
10
|
+
mode: 'cloud',
|
|
11
|
+
authentication: {
|
|
12
|
+
scheme: 'basic',
|
|
13
|
+
fields: {
|
|
14
|
+
api_key: {
|
|
15
|
+
label: 'API key',
|
|
16
|
+
description: 'Your Close API key.',
|
|
17
|
+
type: 'string',
|
|
18
|
+
required: true
|
|
19
|
+
},
|
|
20
|
+
contact_custom_field_id_for_user_id: {
|
|
21
|
+
label: 'Contact Custom Field ID for User ID',
|
|
22
|
+
description: "Enter the ID of a Contact Custom Field that'll be " +
|
|
23
|
+
"used to store User ID. You'll need to create this Contact " +
|
|
24
|
+
'Custom Field in Close first, and then the integration will use ' +
|
|
25
|
+
'this field to store the User ID when creating new contacts, ' +
|
|
26
|
+
'and/or will be used as a lookup key when updating existing ' +
|
|
27
|
+
'Contacts. If this field is not filled out, it will only ' +
|
|
28
|
+
'lookup and de-dupe based on email.',
|
|
29
|
+
type: 'string',
|
|
30
|
+
default: '',
|
|
31
|
+
required: false
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
testAuthentication: (request) => {
|
|
35
|
+
return request(`https://api.close.com/api/v1/me/`);
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
extendRequest({ settings }) {
|
|
39
|
+
return {
|
|
40
|
+
username: settings.api_key,
|
|
41
|
+
password: ''
|
|
42
|
+
};
|
|
43
|
+
},
|
|
44
|
+
actions: {
|
|
45
|
+
createUpdateContactAndLead: createUpdateContactAndLead_1.default
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
exports.default = destination;
|
|
49
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/destinations/close/index.ts"],"names":[],"mappings":";;;;;AAGA,8FAAqE;AAErE,MAAM,WAAW,GAAoC;IACnD,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,OAAO;IACb,IAAI,EAAE,OAAO;IAEb,cAAc,EAAE;QACd,MAAM,EAAE,OAAO;QACf,MAAM,EAAE;YACN,OAAO,EAAE;gBACP,KAAK,EAAE,SAAS;gBAChB,WAAW,EAAE,qBAAqB;gBAClC,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;aACf;YACD,mCAAmC,EAAE;gBACnC,KAAK,EAAE,qCAAqC;gBAC5C,WAAW,EACT,oDAAoD;oBACpD,4DAA4D;oBAC5D,iEAAiE;oBACjE,8DAA8D;oBAC9D,6DAA6D;oBAC7D,0DAA0D;oBAC1D,oCAAoC;gBACtC,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,KAAK;aAChB;SACF;QACD,kBAAkB,EAAE,CAAC,OAAO,EAAE,EAAE;YAC9B,OAAO,OAAO,CAAC,kCAAkC,CAAC,CAAA;QACpD,CAAC;KACF;IAED,aAAa,CAAC,EAAE,QAAQ,EAAE;QACxB,OAAO;YACL,QAAQ,EAAE,QAAQ,CAAC,OAAO;YAC1B,QAAQ,EAAE,EAAE;SACb,CAAA;IACH,CAAC;IAQD,OAAO,EAAE;QACP,0BAA0B,EAA1B,oCAA0B;KAC3B;CACF,CAAA;AAED,kBAAe,WAAW,CAAA"}
|
|
@@ -25,7 +25,7 @@ const isIsoDate = (value) => {
|
|
|
25
25
|
const isoformat = '^\\d{4}-\\d{2}-\\d{2}' +
|
|
26
26
|
'((T\\d{2}:\\d{2}(:\\d{2})?)' +
|
|
27
27
|
'(\\.\\d{1,6})?' +
|
|
28
|
-
'(Z|(\\+|-)\\d{2}
|
|
28
|
+
'(Z|(\\+|-)\\d{2}:?\\d{2})?)?$';
|
|
29
29
|
const matcher = new RegExp(isoformat);
|
|
30
30
|
return typeof value === 'string' && matcher.test(value) && !isNaN(Date.parse(value));
|
|
31
31
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/destinations/customerio/utils.ts"],"names":[],"mappings":";;;;;;AAAA,4DAAmC;AACnC,yEAAgD;AAEzC,MAAM,gBAAgB,GAAG,CAAC,aAAsB,EAAE,EAAE;IACzD,IAAI,aAAa,KAAK,aAAa,CAAC,EAAE,EAAE;QACtC,OAAO,8BAA8B,CAAA;KACtC;IAED,OAAO,2BAA2B,CAAA;AACpC,CAAC,CAAA;AANY,QAAA,gBAAgB,oBAM5B;AAED,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,mDAAc,CAAA;IACd,mDAAc,CAAA;AAChB,CAAC,EAHW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAGxB;AAED,MAAM,QAAQ,GAAG,CAAC,KAAc,EAAoC,EAAE;IACpE,OAAO,uBAAa,CAAC,KAAK,CAAC,CAAA;AAC7B,CAAC,CAAA;AAED,MAAM,SAAS,GAAG,CAAC,KAAa,EAAW,EAAE;IAE3C,MAAM,SAAS,GACb,uBAAuB;QACvB,6BAA6B;QAC7B,gBAAgB;QAChB,
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/destinations/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AAhBY,QAAA,qBAAqB,yBAgBjC;AAGM,MAAM,0BAA0B,GAAG,CAAC,OAAgC,EAA2B,EAAE;IACtG,MAAM,KAAK,GAA4B,EAAE,CAAA;IACzC,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;IAEjC,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;QACnB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,CAAA;QAE1B,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YAE7B,MAAM,SAAS,GAAG,eAAK,CAAC,KAAK,CAAC,CAAA;YAE9B,IAAI,SAAS,CAAC,KAAK,CAAC,EAAE;gBACpB,KAAK,CAAC,GAAG,CAAC,GAAG,SAAS,CAAC,IAAI,EAAE,CAAA;gBAC7B,OAAM;aACP;SACF;QAED,IAAI,QAAQ,CAAC,KAAK,CAAC,EAAE;YACnB,KAAK,CAAC,GAAG,CAAC,GAAG,kCAA0B,CAAC,KAAK,CAAC,CAAA;YAE9C,OAAM;SACP;QAED,KAAK,CAAC,GAAG,CAAC,GAAG,KAAK,CAAA;IACpB,CAAC,CAAC,CAAA;IAEF,OAAO,KAAK,CAAA;AACd,CAAC,CAAA;AA3BY,QAAA,0BAA0B,8BA2BtC"}
|
|
@@ -14,47 +14,47 @@ const action = {
|
|
|
14
14
|
traits: sf_properties_1.traits,
|
|
15
15
|
company: {
|
|
16
16
|
label: 'Company',
|
|
17
|
-
description:
|
|
17
|
+
description: 'Company',
|
|
18
18
|
type: 'string'
|
|
19
19
|
},
|
|
20
20
|
last_name: {
|
|
21
21
|
label: 'Last Name',
|
|
22
|
-
description:
|
|
22
|
+
description: 'Last Name',
|
|
23
23
|
type: 'string'
|
|
24
24
|
},
|
|
25
25
|
first_name: {
|
|
26
26
|
label: 'First Name',
|
|
27
|
-
description:
|
|
27
|
+
description: 'First Name',
|
|
28
28
|
type: 'string'
|
|
29
29
|
},
|
|
30
30
|
email: {
|
|
31
31
|
label: 'Email',
|
|
32
|
-
description:
|
|
32
|
+
description: 'Email',
|
|
33
33
|
type: 'string'
|
|
34
34
|
},
|
|
35
35
|
city: {
|
|
36
36
|
label: 'City',
|
|
37
|
-
description:
|
|
37
|
+
description: 'City',
|
|
38
38
|
type: 'string'
|
|
39
39
|
},
|
|
40
40
|
postal_code: {
|
|
41
41
|
label: 'Postal Code',
|
|
42
|
-
description:
|
|
42
|
+
description: 'Postal Code',
|
|
43
43
|
type: 'string'
|
|
44
44
|
},
|
|
45
45
|
country: {
|
|
46
46
|
label: 'Country',
|
|
47
|
-
description:
|
|
47
|
+
description: 'Country',
|
|
48
48
|
type: 'string'
|
|
49
49
|
},
|
|
50
50
|
street: {
|
|
51
51
|
label: 'Street',
|
|
52
|
-
description:
|
|
52
|
+
description: 'Street',
|
|
53
53
|
type: 'string'
|
|
54
54
|
},
|
|
55
55
|
state: {
|
|
56
56
|
label: 'State',
|
|
57
|
-
description:
|
|
57
|
+
description: 'State',
|
|
58
58
|
type: 'string'
|
|
59
59
|
}
|
|
60
60
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/salesforce/lead/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAA0E;AAG1E,oDAAoE;AACpE,qEAAyC;AAEzC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,MAAM;IACb,WAAW,EAAE,aAAa;IAC1B,MAAM,EAAE;QACN,SAAS,EAAE,yBAAS;QACpB,MAAM,EAAE,sBAAM;QACd,OAAO,EAAE;YACP,KAAK,EAAE,SAAS;YAChB,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/salesforce/lead/index.ts"],"names":[],"mappings":";;;;;AAAA,wDAA0E;AAG1E,oDAAoE;AACpE,qEAAyC;AAEzC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,MAAM;IACb,WAAW,EAAE,aAAa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,+BAAgB,CAAC,oCAAoC,EAAE,8BAA8B,EAAE,GAAG,CAAC,CAAA;aACtG;YACD,OAAO,MAAM,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,CAAA;SAC9C;QAED,8BAAc,CAAC,OAAO,CAAC,CAAA;QAEvB,IAAI,OAAO,CAAC,SAAS,KAAK,QAAQ,EAAE;YAClC,OAAO,MAAM,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,CAAA;SAC9C;QAED,IAAI,OAAO,CAAC,SAAS,KAAK,QAAQ,EAAE;YAClC,IAAI,CAAC,OAAO,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE;gBAC1C,MAAM,IAAI,+BAAgB,CAAC,oCAAoC,EAAE,8BAA8B,EAAE,GAAG,CAAC,CAAA;aACtG;YACD,OAAO,MAAM,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,CAAA;SAC9C;IACH,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { InputField } from '@segment/actions-core/src/destination-kit/types';
|
|
2
2
|
export declare const operation: InputField;
|
|
3
3
|
export declare const traits: InputField;
|
|
4
|
-
export declare const other_fields: InputField;
|
|
5
|
-
export declare const custom_fields: InputField;
|
|
6
4
|
interface Payload {
|
|
7
5
|
operation?: string;
|
|
8
6
|
traits?: object;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.validateLookup = exports.
|
|
3
|
+
exports.validateLookup = exports.traits = exports.operation = void 0;
|
|
4
4
|
const actions_core_1 = require("@segment/actions-core");
|
|
5
5
|
exports.operation = {
|
|
6
6
|
label: 'Operation',
|
|
7
|
-
description: '
|
|
7
|
+
description: 'Operation',
|
|
8
8
|
type: 'string',
|
|
9
9
|
required: true,
|
|
10
10
|
choices: [
|
|
@@ -14,24 +14,8 @@ exports.operation = {
|
|
|
14
14
|
]
|
|
15
15
|
};
|
|
16
16
|
exports.traits = {
|
|
17
|
-
label: '
|
|
18
|
-
description:
|
|
19
|
-
|
|
20
|
-
Any field can be matched on, including Record ID, External IDs, standard fields and custom fields. On the left-hand side, input the Salesforce field name. On the right-hand side, map the Segment field that contains the value.
|
|
21
|
-
|
|
22
|
-
If multiple records are found, we will not make any updates so we recommend using fields that contain unique values per record. Please see more information in our documentation.`,
|
|
23
|
-
type: 'object'
|
|
24
|
-
};
|
|
25
|
-
exports.other_fields = {
|
|
26
|
-
label: 'Other Standard Fields',
|
|
27
|
-
description: 'Additional standard fields to send to Salesforce. On the left-hand side, input the Salesforce standard field name. On the right-hand side, map the Segment field that contains the value.',
|
|
28
|
-
type: 'object'
|
|
29
|
-
};
|
|
30
|
-
exports.custom_fields = {
|
|
31
|
-
label: 'Custom Fields',
|
|
32
|
-
description: `Custom fields to send to Salesforce. Fields must be predefined in your Salesforce account.
|
|
33
|
-
|
|
34
|
-
On the left-hand side, input the Salesforce field name with __c appended. On the right-hand side, map the Segment field that contains the value.`,
|
|
17
|
+
label: 'Traits',
|
|
18
|
+
description: 'Traits',
|
|
35
19
|
type: 'object'
|
|
36
20
|
};
|
|
37
21
|
const validateLookup = (payload) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sf-properties.js","sourceRoot":"","sources":["../../../src/destinations/salesforce/sf-properties.ts"],"names":[],"mappings":";;;AACA,wDAAwD;AAE3C,QAAA,SAAS,GAAe;IACnC,KAAK,EAAE,WAAW;IAClB,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"sf-properties.js","sourceRoot":"","sources":["../../../src/destinations/salesforce/sf-properties.ts"],"names":[],"mappings":";;;AACA,wDAAwD;AAE3C,QAAA,SAAS,GAAe;IACnC,KAAK,EAAE,WAAW;IAClB,WAAW,EAAE,WAAW;IACxB,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,IAAI;IACd,OAAO,EAAE;QACP,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;QACpC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;QACpC,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE;KACrC;CACF,CAAA;AAEY,QAAA,MAAM,GAAe;IAChC,KAAK,EAAE,QAAQ;IACf,WAAW,EAAE,QAAQ;IACrB,IAAI,EAAE,QAAQ;CACf,CAAA;AAOM,MAAM,cAAc,GAAG,CAAC,OAAgB,EAAE,EAAE;IACjD,IAAI,OAAO,CAAC,SAAS,KAAK,QAAQ,IAAI,OAAO,CAAC,SAAS,KAAK,QAAQ,EAAE;QACpE,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE;YACnB,MAAM,IAAI,+BAAgB,CACxB,wDAAwD,EACxD,8BAA8B,EAC9B,GAAG,CACJ,CAAA;SACF;KACF;AACH,CAAC,CAAA;AAVY,QAAA,cAAc,kBAU1B"}
|
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.
|
|
4
|
+
"version": "3.45.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/segmentio/action-destinations",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"<rootDir>/test/setup-after-env.ts"
|
|
64
64
|
]
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "45a6a8cafda1d555f993e018df40fa4e4bc716c3"
|
|
67
67
|
}
|