@segment/action-destinations 3.417.0 → 3.418.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/attentive/fields.js +0 -1
- package/dist/destinations/attentive/fields.js.map +1 -1
- package/dist/destinations/attentive/functions.js +5 -8
- package/dist/destinations/attentive/functions.js.map +1 -1
- package/dist/destinations/customerio/createUpdateDevice/generated-types.d.ts +2 -0
- package/dist/destinations/customerio/createUpdateDevice/index.js +3 -1
- package/dist/destinations/customerio/createUpdateDevice/index.js.map +1 -1
- package/dist/destinations/customerio/createUpdateObject/generated-types.d.ts +2 -0
- package/dist/destinations/customerio/createUpdateObject/index.js +3 -1
- package/dist/destinations/customerio/createUpdateObject/index.js.map +1 -1
- package/dist/destinations/customerio/createUpdatePerson/generated-types.d.ts +2 -0
- package/dist/destinations/customerio/createUpdatePerson/index.js +3 -1
- package/dist/destinations/customerio/createUpdatePerson/index.js.map +1 -1
- package/dist/destinations/customerio/customerio-properties.d.ts +2 -0
- package/dist/destinations/customerio/customerio-properties.js +21 -0
- package/dist/destinations/customerio/customerio-properties.js.map +1 -0
- package/dist/destinations/customerio/deleteDevice/generated-types.d.ts +2 -0
- package/dist/destinations/customerio/deleteDevice/index.js +3 -1
- package/dist/destinations/customerio/deleteDevice/index.js.map +1 -1
- package/dist/destinations/customerio/deleteObject/generated-types.d.ts +2 -0
- package/dist/destinations/customerio/deleteObject/index.js +3 -1
- package/dist/destinations/customerio/deleteObject/index.js.map +1 -1
- package/dist/destinations/customerio/deletePerson/generated-types.d.ts +2 -0
- package/dist/destinations/customerio/deletePerson/index.js +3 -1
- package/dist/destinations/customerio/deletePerson/index.js.map +1 -1
- package/dist/destinations/customerio/deleteRelationship/generated-types.d.ts +2 -0
- package/dist/destinations/customerio/deleteRelationship/index.js +3 -1
- package/dist/destinations/customerio/deleteRelationship/index.js.map +1 -1
- package/dist/destinations/customerio/mergePeople/generated-types.d.ts +2 -0
- package/dist/destinations/customerio/mergePeople/index.js +3 -1
- package/dist/destinations/customerio/mergePeople/index.js.map +1 -1
- package/dist/destinations/customerio/reportContentEvent/generated-types.d.ts +2 -0
- package/dist/destinations/customerio/reportContentEvent/index.js +2 -0
- package/dist/destinations/customerio/reportContentEvent/index.js.map +1 -1
- package/dist/destinations/customerio/reportDeliveryEvent/generated-types.d.ts +2 -0
- package/dist/destinations/customerio/reportDeliveryEvent/index.js +3 -1
- package/dist/destinations/customerio/reportDeliveryEvent/index.js.map +1 -1
- package/dist/destinations/customerio/suppressPerson/generated-types.d.ts +2 -0
- package/dist/destinations/customerio/suppressPerson/index.js +3 -1
- package/dist/destinations/customerio/suppressPerson/index.js.map +1 -1
- package/dist/destinations/customerio/trackEvent/generated-types.d.ts +2 -0
- package/dist/destinations/customerio/trackEvent/index.js +3 -1
- package/dist/destinations/customerio/trackEvent/index.js.map +1 -1
- package/dist/destinations/customerio/trackPageView/generated-types.d.ts +2 -0
- package/dist/destinations/customerio/trackPageView/index.js +3 -1
- package/dist/destinations/customerio/trackPageView/index.js.map +1 -1
- package/dist/destinations/customerio/trackScreenView/generated-types.d.ts +2 -0
- package/dist/destinations/customerio/trackScreenView/index.js +3 -1
- package/dist/destinations/customerio/trackScreenView/index.js.map +1 -1
- package/dist/destinations/customerio/unsuppressPerson/generated-types.d.ts +2 -0
- package/dist/destinations/customerio/unsuppressPerson/index.js +3 -1
- package/dist/destinations/customerio/unsuppressPerson/index.js.map +1 -1
- package/dist/destinations/customerio/utils.js +6 -0
- package/dist/destinations/customerio/utils.js.map +1 -1
- package/dist/destinations/index.js +1 -0
- package/dist/destinations/index.js.map +1 -1
- package/dist/destinations/intercom/index.js +0 -4
- package/dist/destinations/intercom/index.js.map +1 -1
- package/dist/destinations/liveramp-audiences/audienceEnteredS3/index.js +3 -1
- package/dist/destinations/liveramp-audiences/audienceEnteredS3/index.js.map +1 -1
- package/dist/destinations/liveramp-audiences/audienceEnteredSftp/index.js +2 -0
- package/dist/destinations/liveramp-audiences/audienceEnteredSftp/index.js.map +1 -1
- package/dist/destinations/liveramp-audiences/awsClient.d.ts +1 -0
- package/dist/destinations/liveramp-audiences/awsClient.js +2 -1
- package/dist/destinations/liveramp-audiences/awsClient.js.map +1 -1
- package/dist/destinations/liveramp-audiences/properties.d.ts +1 -0
- package/dist/destinations/liveramp-audiences/properties.js +2 -1
- package/dist/destinations/liveramp-audiences/properties.js.map +1 -1
- package/dist/destinations/stackadapt-audiences/forwardAudienceEvent/functions.js +4 -2
- package/dist/destinations/stackadapt-audiences/forwardAudienceEvent/functions.js.map +1 -1
- package/dist/destinations/stackadapt-audiences/functions.d.ts +1 -1
- package/dist/destinations/stackadapt-audiences/functions.js +1 -1
- package/dist/destinations/stackadapt-audiences/functions.js.map +1 -1
- package/dist/destinations/yonoma/generated-types.d.ts +3 -0
- package/dist/destinations/yonoma/generated-types.js +3 -0
- package/dist/destinations/yonoma/generated-types.js.map +1 -0
- package/dist/destinations/yonoma/index.d.ts +4 -0
- package/dist/destinations/yonoma/index.js +47 -0
- package/dist/destinations/yonoma/index.js.map +1 -0
- package/dist/destinations/yonoma/sendEvent/constants.d.ts +1 -0
- package/dist/destinations/yonoma/sendEvent/constants.js +5 -0
- package/dist/destinations/yonoma/sendEvent/constants.js.map +1 -0
- package/dist/destinations/yonoma/sendEvent/functions.d.ts +1 -0
- package/dist/destinations/yonoma/sendEvent/functions.js +19 -0
- package/dist/destinations/yonoma/sendEvent/functions.js.map +1 -0
- package/dist/destinations/yonoma/sendEvent/generated-types.d.ts +12 -0
- package/dist/destinations/yonoma/sendEvent/generated-types.js +3 -0
- package/dist/destinations/yonoma/sendEvent/generated-types.js.map +1 -0
- package/dist/destinations/yonoma/sendEvent/index.d.ts +5 -0
- package/dist/destinations/yonoma/sendEvent/index.js +97 -0
- package/dist/destinations/yonoma/sendEvent/index.js.map +1 -0
- package/dist/destinations/yonoma/sendEvent/types.d.ts +10 -0
- package/dist/destinations/yonoma/sendEvent/types.js +3 -0
- package/dist/destinations/yonoma/sendEvent/types.js.map +1 -0
- package/dist/destinations/yonoma/trackEvent/constants.d.ts +1 -0
- package/dist/destinations/yonoma/trackEvent/constants.js +5 -0
- package/dist/destinations/yonoma/trackEvent/constants.js.map +1 -0
- package/dist/destinations/yonoma/trackEvent/generated-types.d.ts +13 -0
- package/dist/destinations/yonoma/trackEvent/generated-types.js +3 -0
- package/dist/destinations/yonoma/trackEvent/generated-types.js.map +1 -0
- package/dist/destinations/yonoma/trackEvent/index.d.ts +5 -0
- package/dist/destinations/yonoma/trackEvent/index.js +104 -0
- package/dist/destinations/yonoma/trackEvent/index.js.map +1 -0
- package/dist/destinations/yonoma/trackEvent/types.d.ts +11 -0
- package/dist/destinations/yonoma/trackEvent/types.js +3 -0
- package/dist/destinations/yonoma/trackEvent/types.js.map +1 -0
- package/dist/destinations/yonoma/trackPageView/constants.d.ts +1 -0
- package/dist/destinations/yonoma/trackPageView/constants.js +5 -0
- package/dist/destinations/yonoma/trackPageView/constants.js.map +1 -0
- package/dist/destinations/yonoma/trackPageView/generated-types.d.ts +17 -0
- package/dist/destinations/yonoma/trackPageView/generated-types.js +3 -0
- package/dist/destinations/yonoma/trackPageView/generated-types.js.map +1 -0
- package/dist/destinations/yonoma/trackPageView/index.d.ts +5 -0
- package/dist/destinations/yonoma/trackPageView/index.js +116 -0
- package/dist/destinations/yonoma/trackPageView/index.js.map +1 -0
- package/dist/destinations/yonoma/trackPageView/types.d.ts +13 -0
- package/dist/destinations/yonoma/trackPageView/types.js +3 -0
- package/dist/destinations/yonoma/trackPageView/types.js.map +1 -0
- package/dist/destinations/yonoma/upsertContact/constants.d.ts +3 -0
- package/dist/destinations/yonoma/upsertContact/constants.js +7 -0
- package/dist/destinations/yonoma/upsertContact/constants.js.map +1 -0
- package/dist/destinations/yonoma/upsertContact/functions.d.ts +1 -0
- package/dist/destinations/yonoma/upsertContact/functions.js +19 -0
- package/dist/destinations/yonoma/upsertContact/functions.js.map +1 -0
- package/dist/destinations/yonoma/upsertContact/generated-types.d.ts +22 -0
- package/dist/destinations/yonoma/upsertContact/generated-types.js +3 -0
- package/dist/destinations/yonoma/upsertContact/generated-types.js.map +1 -0
- package/dist/destinations/yonoma/upsertContact/index.d.ts +5 -0
- package/dist/destinations/yonoma/upsertContact/index.js +189 -0
- package/dist/destinations/yonoma/upsertContact/index.js.map +1 -0
- package/dist/destinations/yonoma/upsertContact/types.d.ts +24 -0
- package/dist/destinations/yonoma/upsertContact/types.js +3 -0
- package/dist/destinations/yonoma/upsertContact/types.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const actions_core_1 = require("@segment/actions-core");
|
|
4
|
+
const constants_1 = require("./constants");
|
|
5
|
+
const functions_1 = require("./functions");
|
|
6
|
+
const action = {
|
|
7
|
+
title: 'Upsert Contact',
|
|
8
|
+
description: 'Sync Segment user profile details to Yonoma Contacts.',
|
|
9
|
+
defaultSubscription: 'type = "identify"',
|
|
10
|
+
fields: {
|
|
11
|
+
identifiers: {
|
|
12
|
+
label: 'Identifiers',
|
|
13
|
+
type: 'object',
|
|
14
|
+
description: 'Unique identifiers for the contact. At least one of userId or anonymousId is required.',
|
|
15
|
+
required: true,
|
|
16
|
+
additionalProperties: false,
|
|
17
|
+
properties: {
|
|
18
|
+
userId: {
|
|
19
|
+
label: 'User ID',
|
|
20
|
+
type: 'string',
|
|
21
|
+
description: 'Unique user identifier from your app.'
|
|
22
|
+
},
|
|
23
|
+
anonymousId: {
|
|
24
|
+
label: 'Anonymous ID',
|
|
25
|
+
type: 'string',
|
|
26
|
+
description: 'Anonymous identifier from Segment for tracking pre-identified activity.'
|
|
27
|
+
},
|
|
28
|
+
email: {
|
|
29
|
+
label: 'Email',
|
|
30
|
+
type: 'string',
|
|
31
|
+
description: "Contact's email address. Required if userId is not provided."
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
default: {
|
|
35
|
+
userId: { '@path': '$.userId' },
|
|
36
|
+
anonymousId: { '@path': '$.anonymousId' },
|
|
37
|
+
email: { '@path': '$.traits.email' }
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
listId: {
|
|
41
|
+
label: 'List ID',
|
|
42
|
+
type: 'string',
|
|
43
|
+
description: "The Yonoma list to add the contact to.",
|
|
44
|
+
required: true,
|
|
45
|
+
default: { '@path': '$.traits.list_id' }
|
|
46
|
+
},
|
|
47
|
+
properties: {
|
|
48
|
+
label: 'Contact Properties',
|
|
49
|
+
type: 'object',
|
|
50
|
+
description: 'Additional Contact metadata.',
|
|
51
|
+
required: false,
|
|
52
|
+
additionalProperties: false,
|
|
53
|
+
defaultObjectUI: 'keyvalue',
|
|
54
|
+
properties: {
|
|
55
|
+
firstName: {
|
|
56
|
+
label: 'First Name',
|
|
57
|
+
type: 'string',
|
|
58
|
+
description: "Contact's first name."
|
|
59
|
+
},
|
|
60
|
+
lastName: {
|
|
61
|
+
label: 'Last Name',
|
|
62
|
+
type: 'string',
|
|
63
|
+
description: "Contact's last name."
|
|
64
|
+
},
|
|
65
|
+
phone: {
|
|
66
|
+
label: 'Phone Number',
|
|
67
|
+
type: 'string',
|
|
68
|
+
description: "Contact's phone number."
|
|
69
|
+
},
|
|
70
|
+
dateOfBirth: {
|
|
71
|
+
label: 'Date of Birth',
|
|
72
|
+
type: 'string',
|
|
73
|
+
description: "Contact's date of birth in YYYY-MM-DD or ISO8601 format."
|
|
74
|
+
},
|
|
75
|
+
address: {
|
|
76
|
+
label: 'Address',
|
|
77
|
+
type: 'string',
|
|
78
|
+
description: "Contact's address."
|
|
79
|
+
},
|
|
80
|
+
city: {
|
|
81
|
+
label: 'City',
|
|
82
|
+
type: 'string',
|
|
83
|
+
description: "Contact's city."
|
|
84
|
+
},
|
|
85
|
+
state: {
|
|
86
|
+
label: 'State',
|
|
87
|
+
type: 'string',
|
|
88
|
+
description: "Contact's state or province."
|
|
89
|
+
},
|
|
90
|
+
country: {
|
|
91
|
+
label: 'Country',
|
|
92
|
+
type: 'string',
|
|
93
|
+
description: "Contact's country."
|
|
94
|
+
},
|
|
95
|
+
zipcode: {
|
|
96
|
+
label: 'Zip Code',
|
|
97
|
+
type: 'string',
|
|
98
|
+
description: "Contact's postal code."
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
default: {
|
|
102
|
+
firstName: { '@path': '$.traits.first_name' },
|
|
103
|
+
lastName: { '@path': '$.traits.last_name' },
|
|
104
|
+
phone: { '@path': '$.traits.phone' },
|
|
105
|
+
dateOfBirth: { '@path': '$.traits.birthday' },
|
|
106
|
+
address: { '@path': '$.traits.address.street' },
|
|
107
|
+
city: { '@path': '$.traits.address.city' },
|
|
108
|
+
state: { '@path': '$.traits.address.state' },
|
|
109
|
+
country: { '@path': '$.traits.address.country' },
|
|
110
|
+
zipcode: { '@path': '$.traits.address.postal_code' }
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
status: {
|
|
114
|
+
label: 'Email subscription status',
|
|
115
|
+
type: 'boolean',
|
|
116
|
+
description: 'Indicates if the Contact is subscribed or unsubscribed from marketing emails. Set to true to subscribe, false to unsubscribe.',
|
|
117
|
+
required: true,
|
|
118
|
+
default: true
|
|
119
|
+
},
|
|
120
|
+
tags_to_add: {
|
|
121
|
+
label: 'Tags to Add',
|
|
122
|
+
type: 'string',
|
|
123
|
+
multiple: true,
|
|
124
|
+
description: 'List of tags to add to the Contact. Can be a single string or array of tags. Tags must already exist in Yonoma.',
|
|
125
|
+
required: false
|
|
126
|
+
},
|
|
127
|
+
tags_to_remove: {
|
|
128
|
+
label: 'Tags to Remove',
|
|
129
|
+
type: 'string',
|
|
130
|
+
multiple: true,
|
|
131
|
+
description: 'List of tags to remove from the Contact. Can be a single string or array of strings. Tags must already exist in Yonoma.',
|
|
132
|
+
required: false
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
perform: async (request, { payload }) => {
|
|
136
|
+
const { listId, properties: { firstName, lastName, phone, dateOfBirth, address, city, state, country, zipcode } = {}, status, tags_to_add, tags_to_remove, identifiers: { userId, email, anonymousId } = {} } = payload;
|
|
137
|
+
if (!userId && !email && !anonymousId) {
|
|
138
|
+
throw new actions_core_1.PayloadValidationError('At least one identifier (userId, email, or anonymousId) is required.');
|
|
139
|
+
}
|
|
140
|
+
const jsonUpsertContact = {
|
|
141
|
+
...(userId ? { userId } : {}),
|
|
142
|
+
...(anonymousId ? { anonymousId } : {}),
|
|
143
|
+
...(email ? { email } : {}),
|
|
144
|
+
listId,
|
|
145
|
+
...(typeof status === 'boolean' ? { status } : {}),
|
|
146
|
+
properties: {
|
|
147
|
+
...(firstName ? { firstName } : {}),
|
|
148
|
+
...(lastName ? { lastName } : {}),
|
|
149
|
+
...(phone ? { phone } : {}),
|
|
150
|
+
...(dateOfBirth ? { dateOfBirth: (0, functions_1.formatDate)(dateOfBirth) } : {}),
|
|
151
|
+
...(address ? { address } : {}),
|
|
152
|
+
...(city ? { city } : {}),
|
|
153
|
+
...(state ? { state } : {}),
|
|
154
|
+
...(country ? { country } : {}),
|
|
155
|
+
...(zipcode ? { zipcode } : {})
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
await request(constants_1.UPSERT_CONTACT_URL, {
|
|
159
|
+
method: 'POST',
|
|
160
|
+
json: jsonUpsertContact
|
|
161
|
+
});
|
|
162
|
+
if (typeof tags_to_add === 'string' || ((Array.isArray(tags_to_add) && tags_to_add.length > 0))) {
|
|
163
|
+
const jsonAddTags = {
|
|
164
|
+
...(userId ? { userId } : {}),
|
|
165
|
+
...(email ? { email } : {}),
|
|
166
|
+
listId,
|
|
167
|
+
tags: Array.isArray(tags_to_add) ? tags_to_add : [tags_to_add]
|
|
168
|
+
};
|
|
169
|
+
await request(constants_1.TAG_CONTACT_URL, {
|
|
170
|
+
method: 'POST',
|
|
171
|
+
json: jsonAddTags
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
if (typeof tags_to_remove === 'string' || ((Array.isArray(tags_to_remove) && tags_to_remove.length > 0))) {
|
|
175
|
+
const jsonRemoveTags = {
|
|
176
|
+
...(userId ? { userId } : {}),
|
|
177
|
+
...(email ? { email } : {}),
|
|
178
|
+
listId,
|
|
179
|
+
tags: Array.isArray(tags_to_remove) ? tags_to_remove : [tags_to_remove]
|
|
180
|
+
};
|
|
181
|
+
await request(constants_1.UNTAG_CONTACT_URL, {
|
|
182
|
+
method: 'POST',
|
|
183
|
+
json: jsonRemoveTags
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
};
|
|
188
|
+
exports.default = action;
|
|
189
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/yonoma/upsertContact/index.ts"],"names":[],"mappings":";;AAAA,wDAAgF;AAGhF,2CAAoF;AAEpF,2CAAwC;AAExC,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,gBAAgB;IACvB,WAAW,EAAE,uDAAuD;IACpE,mBAAmB,EAAE,mBAAmB;IACxC,MAAM,EAAE;QACN,WAAW,EAAE;YACX,KAAK,EAAE,aAAa;YACpB,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,wFAAwF;YACrG,QAAQ,EAAE,IAAI;YACd,oBAAoB,EAAE,KAAK;YAC3B,UAAU,EAAE;gBACV,MAAM,EAAE;oBACN,KAAK,EAAE,SAAS;oBAChB,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,uCAAuC;iBACrD;gBACD,WAAW,EAAE;oBACX,KAAK,EAAE,cAAc;oBACrB,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,yEAAyE;iBACvF;gBACD,KAAK,EAAE;oBACL,KAAK,EAAE,OAAO;oBACd,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,8DAA8D;iBAC5E;aACF;YACD,OAAO,EAAE;gBACP,MAAM,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE;gBAC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C,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,cAAc,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;YACzG,MAAM,cAAc,GAAG;gBACrB,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC7B,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC3B,MAAM;gBACN,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC;aACxE,CAAA;YACD,MAAM,OAAO,CAAC,6BAAiB,EAAE;gBAC/B,MAAM,EAAE,MAAM;gBACd,IAAI,EAAE,cAAc;aACrB,CAAC,CAAA;QACJ,CAAC;IAEH,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface UpsertContactJSON {
|
|
2
|
+
userId?: string;
|
|
3
|
+
anonymousId?: string;
|
|
4
|
+
email?: string;
|
|
5
|
+
listId: string;
|
|
6
|
+
status?: boolean;
|
|
7
|
+
properties: {
|
|
8
|
+
firstName?: string;
|
|
9
|
+
lastName?: string;
|
|
10
|
+
phone?: string;
|
|
11
|
+
dateOfBirth?: string;
|
|
12
|
+
address?: string;
|
|
13
|
+
city?: string;
|
|
14
|
+
state?: string;
|
|
15
|
+
country?: string;
|
|
16
|
+
zipcode?: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export interface UpdateTagsJSON {
|
|
20
|
+
userId?: string;
|
|
21
|
+
email?: string;
|
|
22
|
+
listId: string;
|
|
23
|
+
tags: string[];
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/destinations/yonoma/upsertContact/types.ts"],"names":[],"mappings":""}
|
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.418.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/segmentio/action-destinations",
|
|
@@ -90,5 +90,5 @@
|
|
|
90
90
|
"__tests__/__helpers__/"
|
|
91
91
|
]
|
|
92
92
|
},
|
|
93
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "b367ebd5a59a0e271bff6a1f809de98bd9f14677"
|
|
94
94
|
}
|