@segment/action-destinations 3.131.1-ga4-cloud.12 → 3.131.1-gads-test.19
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/algolia-insights/algolia-insight-api.d.ts +26 -0
- package/dist/destinations/algolia-insights/algolia-insight-api.js +8 -0
- package/dist/destinations/algolia-insights/algolia-insight-api.js.map +1 -0
- package/dist/destinations/algolia-insights/conversionEvents/generated-types.d.ts +9 -0
- package/dist/destinations/algolia-insights/conversionEvents/generated-types.js +3 -0
- package/dist/destinations/algolia-insights/conversionEvents/generated-types.js.map +1 -0
- package/dist/destinations/algolia-insights/conversionEvents/index.d.ts +6 -0
- package/dist/destinations/algolia-insights/conversionEvents/index.js +83 -0
- package/dist/destinations/algolia-insights/conversionEvents/index.js.map +1 -0
- package/dist/destinations/algolia-insights/generated-types.d.ts +4 -0
- package/dist/destinations/algolia-insights/generated-types.js +3 -0
- package/dist/destinations/algolia-insights/generated-types.js.map +1 -0
- package/dist/destinations/algolia-insights/index.d.ts +5 -0
- package/dist/destinations/algolia-insights/index.js +54 -0
- package/dist/destinations/algolia-insights/index.js.map +1 -0
- package/dist/destinations/algolia-insights/productClickedEvents/generated-types.d.ts +8 -0
- package/dist/destinations/algolia-insights/productClickedEvents/generated-types.js +3 -0
- package/dist/destinations/algolia-insights/productClickedEvents/generated-types.js.map +1 -0
- package/dist/destinations/algolia-insights/productClickedEvents/index.d.ts +6 -0
- package/dist/destinations/algolia-insights/productClickedEvents/index.js +91 -0
- package/dist/destinations/algolia-insights/productClickedEvents/index.js.map +1 -0
- package/dist/destinations/algolia-insights/productViewedEvents/generated-types.d.ts +7 -0
- package/dist/destinations/algolia-insights/productViewedEvents/generated-types.js +3 -0
- package/dist/destinations/algolia-insights/productViewedEvents/generated-types.js.map +1 -0
- package/dist/destinations/algolia-insights/productViewedEvents/index.d.ts +6 -0
- package/dist/destinations/algolia-insights/productViewedEvents/index.js +81 -0
- package/dist/destinations/algolia-insights/productViewedEvents/index.js.map +1 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/api/index.d.ts +20 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/api/index.js +133 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/api/index.js.map +1 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/constants/index.d.ts +2 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/constants/index.js +6 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/constants/index.js.map +1 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/createOrUpdateIndividualConstituent/fixtures.d.ts +80 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/createOrUpdateIndividualConstituent/fixtures.js +151 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/createOrUpdateIndividualConstituent/fixtures.js.map +1 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/createOrUpdateIndividualConstituent/generated-types.d.ts +35 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/createOrUpdateIndividualConstituent/generated-types.js +3 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/createOrUpdateIndividualConstituent/generated-types.js.map +1 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/createOrUpdateIndividualConstituent/index.d.ts +5 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/createOrUpdateIndividualConstituent/index.js +619 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/createOrUpdateIndividualConstituent/index.js.map +1 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/generated-types.d.ts +3 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/generated-types.js +3 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/generated-types.js.map +1 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/index.d.ts +4 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/index.js +53 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/index.js.map +1 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/types/index.d.ts +67 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/types/index.js +3 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/types/index.js.map +1 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/utils/index.d.ts +8 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/utils/index.js +44 -0
- package/dist/destinations/blackbaud-raisers-edge-nxt/utils/index.js.map +1 -0
- package/dist/destinations/google-analytics-4/addPaymentInfo/generated-types.d.ts +1 -3
- package/dist/destinations/google-analytics-4/addPaymentInfo/index.js +3 -10
- package/dist/destinations/google-analytics-4/addPaymentInfo/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/addToCart/generated-types.d.ts +1 -3
- package/dist/destinations/google-analytics-4/addToCart/index.js +3 -10
- package/dist/destinations/google-analytics-4/addToCart/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/addToWishlist/generated-types.d.ts +1 -3
- package/dist/destinations/google-analytics-4/addToWishlist/index.js +3 -10
- package/dist/destinations/google-analytics-4/addToWishlist/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/beginCheckout/generated-types.d.ts +1 -3
- package/dist/destinations/google-analytics-4/beginCheckout/index.js +3 -10
- package/dist/destinations/google-analytics-4/beginCheckout/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/customEvent/generated-types.d.ts +1 -3
- package/dist/destinations/google-analytics-4/customEvent/index.js +3 -10
- package/dist/destinations/google-analytics-4/customEvent/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/ga4-functions.d.ts +0 -3
- package/dist/destinations/google-analytics-4/ga4-functions.js +1 -31
- package/dist/destinations/google-analytics-4/ga4-functions.js.map +1 -1
- package/dist/destinations/google-analytics-4/ga4-properties.d.ts +0 -2
- package/dist/destinations/google-analytics-4/ga4-properties.js +3 -17
- package/dist/destinations/google-analytics-4/ga4-properties.js.map +1 -1
- package/dist/destinations/google-analytics-4/ga4-types.d.ts +0 -14
- package/dist/destinations/google-analytics-4/ga4-types.js +0 -6
- package/dist/destinations/google-analytics-4/ga4-types.js.map +1 -1
- package/dist/destinations/google-analytics-4/generateLead/generated-types.d.ts +1 -3
- package/dist/destinations/google-analytics-4/generateLead/index.js +3 -10
- package/dist/destinations/google-analytics-4/generateLead/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/generated-types.d.ts +1 -2
- package/dist/destinations/google-analytics-4/index.js +10 -15
- package/dist/destinations/google-analytics-4/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/login/generated-types.d.ts +1 -3
- package/dist/destinations/google-analytics-4/login/index.js +3 -10
- package/dist/destinations/google-analytics-4/login/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/pageView/generated-types.d.ts +1 -3
- package/dist/destinations/google-analytics-4/pageView/index.js +3 -10
- package/dist/destinations/google-analytics-4/pageView/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/purchase/generated-types.d.ts +1 -3
- package/dist/destinations/google-analytics-4/purchase/index.js +3 -10
- package/dist/destinations/google-analytics-4/purchase/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/refund/generated-types.d.ts +1 -3
- package/dist/destinations/google-analytics-4/refund/index.js +3 -10
- package/dist/destinations/google-analytics-4/refund/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/removeFromCart/generated-types.d.ts +1 -3
- package/dist/destinations/google-analytics-4/removeFromCart/index.js +3 -10
- package/dist/destinations/google-analytics-4/removeFromCart/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/search/generated-types.d.ts +1 -3
- package/dist/destinations/google-analytics-4/search/index.js +3 -10
- package/dist/destinations/google-analytics-4/search/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/selectItem/generated-types.d.ts +1 -3
- package/dist/destinations/google-analytics-4/selectItem/index.js +3 -10
- package/dist/destinations/google-analytics-4/selectItem/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/selectPromotion/generated-types.d.ts +1 -3
- package/dist/destinations/google-analytics-4/selectPromotion/index.js +3 -10
- package/dist/destinations/google-analytics-4/selectPromotion/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/signUp/generated-types.d.ts +1 -3
- package/dist/destinations/google-analytics-4/signUp/index.js +3 -10
- package/dist/destinations/google-analytics-4/signUp/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/viewCart/generated-types.d.ts +1 -3
- package/dist/destinations/google-analytics-4/viewCart/index.js +3 -10
- package/dist/destinations/google-analytics-4/viewCart/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/viewItem/generated-types.d.ts +1 -3
- package/dist/destinations/google-analytics-4/viewItem/index.js +3 -10
- package/dist/destinations/google-analytics-4/viewItem/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/viewItemList/generated-types.d.ts +1 -3
- package/dist/destinations/google-analytics-4/viewItemList/index.js +3 -10
- package/dist/destinations/google-analytics-4/viewItemList/index.js.map +1 -1
- package/dist/destinations/google-analytics-4/viewPromotion/generated-types.d.ts +1 -3
- package/dist/destinations/google-analytics-4/viewPromotion/index.js +3 -10
- package/dist/destinations/google-analytics-4/viewPromotion/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/functions.d.ts +2 -1
- package/dist/destinations/google-enhanced-conversions/functions.js +2 -2
- package/dist/destinations/google-enhanced-conversions/functions.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/types.d.ts +2 -1
- package/dist/destinations/google-enhanced-conversions/types.js +8 -2
- package/dist/destinations/google-enhanced-conversions/types.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/uploadCallConversion/index.js +3 -3
- package/dist/destinations/google-enhanced-conversions/uploadCallConversion/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/uploadClickConversion/index.js +3 -3
- package/dist/destinations/google-enhanced-conversions/uploadClickConversion/index.js.map +1 -1
- package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/index.js +2 -2
- package/dist/destinations/google-enhanced-conversions/uploadConversionAdjustment/index.js.map +1 -1
- package/dist/destinations/heap/flat.d.ts +1 -2
- package/dist/destinations/heap/flat.js +11 -1
- package/dist/destinations/heap/flat.js.map +1 -1
- package/dist/destinations/heap/heapUtils.d.ts +8 -0
- package/dist/destinations/heap/heapUtils.js +41 -0
- package/dist/destinations/heap/heapUtils.js.map +1 -0
- package/dist/destinations/heap/trackEvent/generated-types.d.ts +0 -1
- package/dist/destinations/heap/trackEvent/index.js +18 -54
- package/dist/destinations/heap/trackEvent/index.js.map +1 -1
- package/dist/destinations/launchpad/generated-types.d.ts +5 -0
- package/dist/destinations/launchpad/generated-types.js +3 -0
- package/dist/destinations/launchpad/generated-types.js.map +1 -0
- package/dist/destinations/launchpad/groupIdentifyUser/generated-types.d.ts +9 -0
- package/dist/destinations/launchpad/groupIdentifyUser/generated-types.js +3 -0
- package/dist/destinations/launchpad/groupIdentifyUser/generated-types.js.map +1 -0
- package/dist/destinations/launchpad/groupIdentifyUser/index.d.ts +5 -0
- package/dist/destinations/launchpad/groupIdentifyUser/index.js +79 -0
- package/dist/destinations/launchpad/groupIdentifyUser/index.js.map +1 -0
- package/dist/destinations/launchpad/identifyUser/generated-types.d.ts +8 -0
- package/dist/destinations/launchpad/identifyUser/generated-types.js +3 -0
- package/dist/destinations/launchpad/identifyUser/generated-types.js.map +1 -0
- package/dist/destinations/launchpad/identifyUser/index.d.ts +5 -0
- package/dist/destinations/launchpad/identifyUser/index.js +79 -0
- package/dist/destinations/launchpad/identifyUser/index.js.map +1 -0
- package/dist/destinations/launchpad/index.d.ts +4 -0
- package/dist/destinations/launchpad/index.js +96 -0
- package/dist/destinations/launchpad/index.js.map +1 -0
- package/dist/destinations/launchpad/launchpad-types.d.ts +28 -0
- package/dist/destinations/launchpad/launchpad-types.js +3 -0
- package/dist/destinations/launchpad/launchpad-types.js.map +1 -0
- package/dist/destinations/launchpad/trackEvent/generated-types.d.ts +18 -0
- package/dist/destinations/launchpad/trackEvent/generated-types.js +3 -0
- package/dist/destinations/launchpad/trackEvent/generated-types.js.map +1 -0
- package/dist/destinations/launchpad/trackEvent/index.d.ts +5 -0
- package/dist/destinations/launchpad/trackEvent/index.js +62 -0
- package/dist/destinations/launchpad/trackEvent/index.js.map +1 -0
- package/dist/destinations/launchpad/trackEvent/launchpad-properties.d.ts +2 -0
- package/dist/destinations/launchpad/trackEvent/launchpad-properties.js +87 -0
- package/dist/destinations/launchpad/trackEvent/launchpad-properties.js.map +1 -0
- package/dist/destinations/launchpad/utils.d.ts +6 -0
- package/dist/destinations/launchpad/utils.js +20 -0
- package/dist/destinations/launchpad/utils.js.map +1 -0
- package/dist/destinations/livelike-cloud/generated-types.d.ts +4 -0
- package/dist/destinations/livelike-cloud/generated-types.js +3 -0
- package/dist/destinations/livelike-cloud/generated-types.js.map +1 -0
- package/dist/destinations/livelike-cloud/index.d.ts +4 -0
- package/dist/destinations/livelike-cloud/index.js +84 -0
- package/dist/destinations/livelike-cloud/index.js.map +1 -0
- package/dist/destinations/livelike-cloud/properties.d.ts +1 -0
- package/dist/destinations/livelike-cloud/properties.js +5 -0
- package/dist/destinations/livelike-cloud/properties.js.map +1 -0
- package/dist/destinations/livelike-cloud/trackEvent/generated-types.d.ts +11 -0
- package/dist/destinations/livelike-cloud/trackEvent/generated-types.js +3 -0
- package/dist/destinations/livelike-cloud/trackEvent/generated-types.js.map +1 -0
- package/dist/destinations/livelike-cloud/trackEvent/index.d.ts +5 -0
- package/dist/destinations/livelike-cloud/trackEvent/index.js +101 -0
- package/dist/destinations/livelike-cloud/trackEvent/index.js.map +1 -0
- package/dist/destinations/pinterest-conversions/generated-types.d.ts +4 -0
- package/dist/destinations/pinterest-conversions/generated-types.js +3 -0
- package/dist/destinations/pinterest-conversions/generated-types.js.map +1 -0
- package/dist/destinations/pinterest-conversions/index.d.ts +4 -0
- package/dist/destinations/pinterest-conversions/index.js +29 -0
- package/dist/destinations/pinterest-conversions/index.js.map +1 -0
- package/dist/destinations/twilio-studio/generated-types.d.ts +6 -0
- package/dist/destinations/twilio-studio/generated-types.js +3 -0
- package/dist/destinations/twilio-studio/generated-types.js.map +1 -0
- package/dist/destinations/twilio-studio/index.d.ts +4 -0
- package/dist/destinations/twilio-studio/index.js +55 -0
- package/dist/destinations/twilio-studio/index.js.map +1 -0
- package/dist/destinations/twilio-studio/triggerStudioFlow/generated-types.d.ts +8 -0
- package/dist/destinations/twilio-studio/triggerStudioFlow/generated-types.js +3 -0
- package/dist/destinations/twilio-studio/triggerStudioFlow/generated-types.js.map +1 -0
- package/dist/destinations/twilio-studio/triggerStudioFlow/index.d.ts +5 -0
- package/dist/destinations/twilio-studio/triggerStudioFlow/index.js +84 -0
- package/dist/destinations/twilio-studio/triggerStudioFlow/index.js.map +1 -0
- package/dist/destinations/twilio-studio/utils.d.ts +29 -0
- package/dist/destinations/twilio-studio/utils.js +43 -0
- package/dist/destinations/twilio-studio/utils.js.map +1 -0
- package/dist/destinations/vwo/identifyUser/index.js +6 -6
- package/dist/destinations/vwo/identifyUser/index.js.map +1 -1
- package/dist/destinations/vwo/index.js +1 -1
- package/dist/destinations/vwo/index.js.map +1 -1
- package/dist/destinations/vwo/pageVisit/index.js +6 -6
- package/dist/destinations/vwo/pageVisit/index.js.map +1 -1
- package/dist/destinations/vwo/trackEvent/index.js +7 -7
- package/dist/destinations/vwo/trackEvent/index.js.map +1 -1
- package/dist/destinations/vwo/utility.js +2 -2
- package/package.json +4 -4
package/dist/destinations/blackbaud-raisers-edge-nxt/createOrUpdateIndividualConstituent/index.js
ADDED
|
@@ -0,0 +1,619 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const actions_core_1 = require("@segment/actions-core");
|
|
4
|
+
const api_1 = require("../api");
|
|
5
|
+
const utils_1 = require("../utils");
|
|
6
|
+
const action = {
|
|
7
|
+
title: 'Create or Update Individual Constituent',
|
|
8
|
+
description: "Create or update an Individual Constituent record in Raiser's Edge NXT.",
|
|
9
|
+
defaultSubscription: 'type = "identify"',
|
|
10
|
+
fields: {
|
|
11
|
+
address: {
|
|
12
|
+
label: 'Address',
|
|
13
|
+
description: "The constituent's address.",
|
|
14
|
+
type: 'object',
|
|
15
|
+
properties: {
|
|
16
|
+
address_lines: {
|
|
17
|
+
label: 'Address Lines',
|
|
18
|
+
type: 'string'
|
|
19
|
+
},
|
|
20
|
+
city: {
|
|
21
|
+
label: 'City',
|
|
22
|
+
type: 'string'
|
|
23
|
+
},
|
|
24
|
+
country: {
|
|
25
|
+
label: 'Country',
|
|
26
|
+
type: 'string'
|
|
27
|
+
},
|
|
28
|
+
do_not_mail: {
|
|
29
|
+
label: 'Do Not Mail',
|
|
30
|
+
type: 'boolean'
|
|
31
|
+
},
|
|
32
|
+
postal_code: {
|
|
33
|
+
label: 'ZIP/Postal Code',
|
|
34
|
+
type: 'string'
|
|
35
|
+
},
|
|
36
|
+
primary: {
|
|
37
|
+
label: 'Is Primary',
|
|
38
|
+
type: 'boolean'
|
|
39
|
+
},
|
|
40
|
+
state: {
|
|
41
|
+
label: 'State/Province',
|
|
42
|
+
type: 'string'
|
|
43
|
+
},
|
|
44
|
+
type: {
|
|
45
|
+
label: 'Address Type',
|
|
46
|
+
type: 'string'
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
default: {
|
|
50
|
+
address_lines: {
|
|
51
|
+
'@if': {
|
|
52
|
+
exists: {
|
|
53
|
+
'@path': '$.traits.address.street'
|
|
54
|
+
},
|
|
55
|
+
then: {
|
|
56
|
+
'@path': '$.traits.address.street'
|
|
57
|
+
},
|
|
58
|
+
else: {
|
|
59
|
+
'@path': '$.properties.address.street'
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
city: {
|
|
64
|
+
'@if': {
|
|
65
|
+
exists: {
|
|
66
|
+
'@path': '$.traits.address.city'
|
|
67
|
+
},
|
|
68
|
+
then: {
|
|
69
|
+
'@path': '$.traits.address.city'
|
|
70
|
+
},
|
|
71
|
+
else: {
|
|
72
|
+
'@path': '$.properties.address.city'
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
country: {
|
|
77
|
+
'@if': {
|
|
78
|
+
exists: {
|
|
79
|
+
'@path': '$.traits.address.country'
|
|
80
|
+
},
|
|
81
|
+
then: {
|
|
82
|
+
'@path': '$.traits.address.country'
|
|
83
|
+
},
|
|
84
|
+
else: {
|
|
85
|
+
'@path': '$.properties.address.country'
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
do_not_mail: '',
|
|
90
|
+
postal_code: {
|
|
91
|
+
'@if': {
|
|
92
|
+
exists: {
|
|
93
|
+
'@path': '$.traits.address.postalCode'
|
|
94
|
+
},
|
|
95
|
+
then: {
|
|
96
|
+
'@path': '$.traits.address.postalCode'
|
|
97
|
+
},
|
|
98
|
+
else: {
|
|
99
|
+
'@path': '$.properties.address.postalCode'
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
primary: '',
|
|
104
|
+
state: {
|
|
105
|
+
'@if': {
|
|
106
|
+
exists: {
|
|
107
|
+
'@path': '$.traits.address.state'
|
|
108
|
+
},
|
|
109
|
+
then: {
|
|
110
|
+
'@path': '$.traits.address.state'
|
|
111
|
+
},
|
|
112
|
+
else: {
|
|
113
|
+
'@path': '$.properties.address.state'
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
type: ''
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
birthdate: {
|
|
121
|
+
label: 'Birthdate',
|
|
122
|
+
description: "The constituent's birthdate.",
|
|
123
|
+
type: 'datetime',
|
|
124
|
+
default: {
|
|
125
|
+
'@if': {
|
|
126
|
+
exists: {
|
|
127
|
+
'@path': '$.traits.birthday'
|
|
128
|
+
},
|
|
129
|
+
then: {
|
|
130
|
+
'@path': '$.traits.birthday'
|
|
131
|
+
},
|
|
132
|
+
else: {
|
|
133
|
+
'@path': '$.properties.birthday'
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
email: {
|
|
139
|
+
label: 'Email',
|
|
140
|
+
description: "The constituent's email address.",
|
|
141
|
+
type: 'object',
|
|
142
|
+
properties: {
|
|
143
|
+
address: {
|
|
144
|
+
label: 'Email Address',
|
|
145
|
+
type: 'string'
|
|
146
|
+
},
|
|
147
|
+
do_not_email: {
|
|
148
|
+
label: 'Do Not Email',
|
|
149
|
+
type: 'boolean'
|
|
150
|
+
},
|
|
151
|
+
primary: {
|
|
152
|
+
label: 'Is Primary',
|
|
153
|
+
type: 'boolean'
|
|
154
|
+
},
|
|
155
|
+
type: {
|
|
156
|
+
label: 'Email Type',
|
|
157
|
+
type: 'string'
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
default: {
|
|
161
|
+
address: {
|
|
162
|
+
'@if': {
|
|
163
|
+
exists: {
|
|
164
|
+
'@path': '$.traits.email'
|
|
165
|
+
},
|
|
166
|
+
then: {
|
|
167
|
+
'@path': '$.traits.email'
|
|
168
|
+
},
|
|
169
|
+
else: {
|
|
170
|
+
'@path': '$.properties.email'
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
do_not_email: '',
|
|
175
|
+
primary: '',
|
|
176
|
+
type: ''
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
first: {
|
|
180
|
+
label: 'First Name',
|
|
181
|
+
description: "The constituent's first name up to 50 characters.",
|
|
182
|
+
type: 'string',
|
|
183
|
+
default: {
|
|
184
|
+
'@if': {
|
|
185
|
+
exists: {
|
|
186
|
+
'@path': '$.traits.firstName'
|
|
187
|
+
},
|
|
188
|
+
then: {
|
|
189
|
+
'@path': '$.traits.firstName'
|
|
190
|
+
},
|
|
191
|
+
else: {
|
|
192
|
+
'@path': '$.properties.firstName'
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
gender: {
|
|
198
|
+
label: 'Gender',
|
|
199
|
+
description: "The constituent's gender.",
|
|
200
|
+
type: 'string',
|
|
201
|
+
default: {
|
|
202
|
+
'@if': {
|
|
203
|
+
exists: {
|
|
204
|
+
'@path': '$.traits.gender'
|
|
205
|
+
},
|
|
206
|
+
then: {
|
|
207
|
+
'@path': '$.traits.gender'
|
|
208
|
+
},
|
|
209
|
+
else: {
|
|
210
|
+
'@path': '$.properties.gender'
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
income: {
|
|
216
|
+
label: 'Income',
|
|
217
|
+
description: "The constituent's income.",
|
|
218
|
+
type: 'string'
|
|
219
|
+
},
|
|
220
|
+
last: {
|
|
221
|
+
label: 'Last Name',
|
|
222
|
+
description: "The constituent's last name up to 100 characters. This is required to create a constituent.",
|
|
223
|
+
type: 'string',
|
|
224
|
+
default: {
|
|
225
|
+
'@if': {
|
|
226
|
+
exists: {
|
|
227
|
+
'@path': '$.traits.lastName'
|
|
228
|
+
},
|
|
229
|
+
then: {
|
|
230
|
+
'@path': '$.traits.lastName'
|
|
231
|
+
},
|
|
232
|
+
else: {
|
|
233
|
+
'@path': '$.properties.lastName'
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
},
|
|
238
|
+
lookup_id: {
|
|
239
|
+
label: 'Lookup ID',
|
|
240
|
+
description: 'The organization-defined identifier for the constituent.',
|
|
241
|
+
type: 'string',
|
|
242
|
+
default: ''
|
|
243
|
+
},
|
|
244
|
+
online_presence: {
|
|
245
|
+
label: 'Online Presence',
|
|
246
|
+
description: "The constituent's online presence.",
|
|
247
|
+
type: 'object',
|
|
248
|
+
properties: {
|
|
249
|
+
address: {
|
|
250
|
+
label: 'Web Address',
|
|
251
|
+
type: 'string'
|
|
252
|
+
},
|
|
253
|
+
primary: {
|
|
254
|
+
label: 'Is Primary',
|
|
255
|
+
type: 'boolean'
|
|
256
|
+
},
|
|
257
|
+
type: {
|
|
258
|
+
label: 'Online Presence Type',
|
|
259
|
+
type: 'string'
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
default: {
|
|
263
|
+
address: {
|
|
264
|
+
'@if': {
|
|
265
|
+
exists: {
|
|
266
|
+
'@path': '$.traits.website'
|
|
267
|
+
},
|
|
268
|
+
then: {
|
|
269
|
+
'@path': '$.traits.website'
|
|
270
|
+
},
|
|
271
|
+
else: {
|
|
272
|
+
'@path': '$.properties.website'
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
primary: '',
|
|
277
|
+
type: ''
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
phone: {
|
|
281
|
+
label: 'Phone',
|
|
282
|
+
description: "The constituent's phone number.",
|
|
283
|
+
type: 'object',
|
|
284
|
+
properties: {
|
|
285
|
+
do_not_call: {
|
|
286
|
+
label: 'Do Not Call',
|
|
287
|
+
type: 'boolean'
|
|
288
|
+
},
|
|
289
|
+
number: {
|
|
290
|
+
label: 'Phone Number',
|
|
291
|
+
type: 'string'
|
|
292
|
+
},
|
|
293
|
+
primary: {
|
|
294
|
+
label: 'Is Primary',
|
|
295
|
+
type: 'boolean'
|
|
296
|
+
},
|
|
297
|
+
type: {
|
|
298
|
+
label: 'Phone Type',
|
|
299
|
+
type: 'string'
|
|
300
|
+
}
|
|
301
|
+
},
|
|
302
|
+
default: {
|
|
303
|
+
do_not_call: '',
|
|
304
|
+
number: {
|
|
305
|
+
'@if': {
|
|
306
|
+
exists: {
|
|
307
|
+
'@path': '$.traits.phone'
|
|
308
|
+
},
|
|
309
|
+
then: {
|
|
310
|
+
'@path': '$.traits.phone'
|
|
311
|
+
},
|
|
312
|
+
else: {
|
|
313
|
+
'@path': '$.properties.phone'
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
primary: '',
|
|
318
|
+
type: ''
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
},
|
|
322
|
+
perform: async (request, { payload }) => {
|
|
323
|
+
const blackbaudSkyApiClient = new api_1.BlackbaudSkyApi(request);
|
|
324
|
+
let constituentId = undefined;
|
|
325
|
+
if (payload.email?.address || payload.lookup_id) {
|
|
326
|
+
let searchField = 'email_address';
|
|
327
|
+
let searchText = payload.email?.address || '';
|
|
328
|
+
if (payload.lookup_id) {
|
|
329
|
+
searchField = 'lookup_id';
|
|
330
|
+
searchText = payload.lookup_id;
|
|
331
|
+
}
|
|
332
|
+
const constituentSearchResponse = await blackbaudSkyApiClient.getExistingConstituents(searchField, searchText);
|
|
333
|
+
const constituentSearchResults = await constituentSearchResponse.json();
|
|
334
|
+
if (constituentSearchResults.count > 1) {
|
|
335
|
+
throw new actions_core_1.IntegrationError('Multiple records returned for given traits', 'MULTIPLE_EXISTING_RECORDS', 400);
|
|
336
|
+
}
|
|
337
|
+
else if (constituentSearchResults.count === 1) {
|
|
338
|
+
constituentId = constituentSearchResults.value[0].id;
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
const constituentData = {
|
|
342
|
+
first: payload.first,
|
|
343
|
+
gender: payload.gender,
|
|
344
|
+
income: payload.income,
|
|
345
|
+
last: payload.last,
|
|
346
|
+
lookup_id: payload.lookup_id
|
|
347
|
+
};
|
|
348
|
+
Object.keys(constituentData).forEach((key) => {
|
|
349
|
+
if (!constituentData[key]) {
|
|
350
|
+
delete constituentData[key];
|
|
351
|
+
}
|
|
352
|
+
});
|
|
353
|
+
if (payload.birthdate) {
|
|
354
|
+
const birthdateFuzzyDate = utils_1.dateStringToFuzzyDate(payload.birthdate);
|
|
355
|
+
if (birthdateFuzzyDate) {
|
|
356
|
+
constituentData.birthdate = birthdateFuzzyDate;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
let constituentAddressData = {};
|
|
360
|
+
if (payload.address &&
|
|
361
|
+
(payload.address.address_lines ||
|
|
362
|
+
payload.address.city ||
|
|
363
|
+
payload.address.country ||
|
|
364
|
+
payload.address.postal_code ||
|
|
365
|
+
payload.address.state) &&
|
|
366
|
+
payload.address.type) {
|
|
367
|
+
constituentAddressData = payload.address;
|
|
368
|
+
}
|
|
369
|
+
let constituentEmailData = {};
|
|
370
|
+
if (payload.email && payload.email.address && payload.email.type) {
|
|
371
|
+
constituentEmailData = payload.email;
|
|
372
|
+
}
|
|
373
|
+
let constituentOnlinePresenceData = {};
|
|
374
|
+
if (payload.online_presence && payload.online_presence.address && payload.online_presence.type) {
|
|
375
|
+
constituentOnlinePresenceData = payload.online_presence;
|
|
376
|
+
}
|
|
377
|
+
let constituentPhoneData = {};
|
|
378
|
+
if (payload.phone && payload.phone.number && payload.phone.type) {
|
|
379
|
+
constituentPhoneData = payload.phone;
|
|
380
|
+
}
|
|
381
|
+
if (!constituentId) {
|
|
382
|
+
constituentData.type = 'Individual';
|
|
383
|
+
if (!constituentData.last) {
|
|
384
|
+
throw new actions_core_1.IntegrationError('Missing last name value', 'MISSING_REQUIRED_FIELD', 400);
|
|
385
|
+
}
|
|
386
|
+
else {
|
|
387
|
+
if (Object.keys(constituentAddressData).length > 0) {
|
|
388
|
+
constituentData.address = constituentAddressData;
|
|
389
|
+
}
|
|
390
|
+
if (Object.keys(constituentEmailData).length > 0) {
|
|
391
|
+
constituentData.email = constituentEmailData;
|
|
392
|
+
}
|
|
393
|
+
if (Object.keys(constituentOnlinePresenceData).length > 0) {
|
|
394
|
+
constituentData.online_presence = constituentOnlinePresenceData;
|
|
395
|
+
}
|
|
396
|
+
if (Object.keys(constituentPhoneData).length > 0) {
|
|
397
|
+
constituentData.phone = constituentPhoneData;
|
|
398
|
+
}
|
|
399
|
+
await blackbaudSkyApiClient.createConstituent(constituentData);
|
|
400
|
+
}
|
|
401
|
+
return;
|
|
402
|
+
}
|
|
403
|
+
else {
|
|
404
|
+
const integrationErrors = [];
|
|
405
|
+
if (Object.keys(constituentData).length > 0) {
|
|
406
|
+
const updateConstituentResponse = await blackbaudSkyApiClient.updateConstituent(constituentId, constituentData);
|
|
407
|
+
if (updateConstituentResponse.status !== 200) {
|
|
408
|
+
const statusCode = updateConstituentResponse.status;
|
|
409
|
+
const errorMessage = statusCode
|
|
410
|
+
? `${statusCode} error occurred when updating constituent`
|
|
411
|
+
: 'Error occurred when updating constituent';
|
|
412
|
+
if (utils_1.isRequestErrorRetryable(statusCode)) {
|
|
413
|
+
throw new actions_core_1.RetryableError(errorMessage);
|
|
414
|
+
}
|
|
415
|
+
else {
|
|
416
|
+
integrationErrors.push(errorMessage);
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
if (Object.keys(constituentAddressData).length > 0) {
|
|
421
|
+
const getConstituentAddressListResponse = await blackbaudSkyApiClient.getConstituentAddressList(constituentId);
|
|
422
|
+
let updateAddressErrorCode = undefined;
|
|
423
|
+
if (getConstituentAddressListResponse.status !== 200) {
|
|
424
|
+
updateAddressErrorCode = getConstituentAddressListResponse.status;
|
|
425
|
+
}
|
|
426
|
+
else {
|
|
427
|
+
const constituentAddressListResults = await getConstituentAddressListResponse.json();
|
|
428
|
+
let existingAddress = undefined;
|
|
429
|
+
if (constituentAddressListResults.count > 0) {
|
|
430
|
+
existingAddress = utils_1.filterObjectListByMatchFields(constituentAddressListResults.value, constituentAddressData, ['address_lines', 'city', 'postal_code', 'state']);
|
|
431
|
+
}
|
|
432
|
+
if (!existingAddress) {
|
|
433
|
+
if (constituentAddressData.primary !== false && constituentAddressListResults.count === 0) {
|
|
434
|
+
constituentAddressData.primary = true;
|
|
435
|
+
}
|
|
436
|
+
const createConstituentAddressResponse = await blackbaudSkyApiClient.createConstituentAddress(constituentId, constituentAddressData);
|
|
437
|
+
if (createConstituentAddressResponse.status !== 200) {
|
|
438
|
+
updateAddressErrorCode = createConstituentAddressResponse.status;
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
else {
|
|
442
|
+
if (existingAddress.inactive ||
|
|
443
|
+
(constituentAddressData.do_not_mail !== undefined &&
|
|
444
|
+
constituentAddressData.do_not_mail !== existingAddress.do_not_mail) ||
|
|
445
|
+
(constituentAddressData.primary !== undefined &&
|
|
446
|
+
constituentAddressData.primary &&
|
|
447
|
+
constituentAddressData.primary !== existingAddress.primary) ||
|
|
448
|
+
constituentAddressData.type !== existingAddress.type) {
|
|
449
|
+
const updateConstituentAddressByIdResponse = await blackbaudSkyApiClient.updateConstituentAddressById(existingAddress.id, constituentAddressData);
|
|
450
|
+
if (updateConstituentAddressByIdResponse.status !== 200) {
|
|
451
|
+
updateAddressErrorCode = updateConstituentAddressByIdResponse.status;
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
if (updateAddressErrorCode) {
|
|
457
|
+
const errorMessage = updateAddressErrorCode
|
|
458
|
+
? `${updateAddressErrorCode} error occurred when updating constituent address`
|
|
459
|
+
: 'Error occurred when updating constituent address';
|
|
460
|
+
if (utils_1.isRequestErrorRetryable(updateAddressErrorCode)) {
|
|
461
|
+
throw new actions_core_1.RetryableError(errorMessage);
|
|
462
|
+
}
|
|
463
|
+
else {
|
|
464
|
+
integrationErrors.push(errorMessage);
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
if (Object.keys(constituentEmailData).length > 0) {
|
|
469
|
+
const getConstituentEmailListResponse = await blackbaudSkyApiClient.getConstituentEmailList(constituentId);
|
|
470
|
+
let updateEmailErrorCode = undefined;
|
|
471
|
+
if (getConstituentEmailListResponse.status !== 200) {
|
|
472
|
+
updateEmailErrorCode = getConstituentEmailListResponse.status;
|
|
473
|
+
}
|
|
474
|
+
else {
|
|
475
|
+
const constituentEmailListResults = await getConstituentEmailListResponse.json();
|
|
476
|
+
let existingEmail = undefined;
|
|
477
|
+
if (constituentEmailListResults.count > 0) {
|
|
478
|
+
existingEmail = utils_1.filterObjectListByMatchFields(constituentEmailListResults.value, constituentEmailData, [
|
|
479
|
+
'address'
|
|
480
|
+
]);
|
|
481
|
+
}
|
|
482
|
+
if (!existingEmail) {
|
|
483
|
+
if (constituentEmailData.primary !== false && constituentEmailListResults.count === 0) {
|
|
484
|
+
constituentEmailData.primary = true;
|
|
485
|
+
}
|
|
486
|
+
const createConstituentEmailResponse = await blackbaudSkyApiClient.createConstituentEmail(constituentId, constituentEmailData);
|
|
487
|
+
if (createConstituentEmailResponse.status !== 200) {
|
|
488
|
+
updateEmailErrorCode = createConstituentEmailResponse.status;
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
else {
|
|
492
|
+
if (existingEmail.inactive ||
|
|
493
|
+
(constituentEmailData.do_not_email !== undefined &&
|
|
494
|
+
constituentEmailData.do_not_email !== existingEmail.do_not_email) ||
|
|
495
|
+
(constituentEmailData.primary !== undefined &&
|
|
496
|
+
constituentEmailData.primary &&
|
|
497
|
+
constituentEmailData.primary !== existingEmail.primary) ||
|
|
498
|
+
constituentEmailData.type !== existingEmail.type) {
|
|
499
|
+
const updateConstituentEmailByIdResponse = await blackbaudSkyApiClient.updateConstituentEmailById(existingEmail.id, constituentEmailData);
|
|
500
|
+
if (updateConstituentEmailByIdResponse.status !== 200) {
|
|
501
|
+
updateEmailErrorCode = updateConstituentEmailByIdResponse.status;
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
if (updateEmailErrorCode) {
|
|
507
|
+
const errorMessage = updateEmailErrorCode
|
|
508
|
+
? `${updateEmailErrorCode} error occurred when updating constituent email`
|
|
509
|
+
: 'Error occurred when updating constituent email';
|
|
510
|
+
if (utils_1.isRequestErrorRetryable(updateEmailErrorCode)) {
|
|
511
|
+
throw new actions_core_1.RetryableError(errorMessage);
|
|
512
|
+
}
|
|
513
|
+
else {
|
|
514
|
+
integrationErrors.push(errorMessage);
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
if (Object.keys(constituentOnlinePresenceData).length > 0) {
|
|
519
|
+
const getConstituentOnlinePresenceListResponse = await blackbaudSkyApiClient.getConstituentOnlinePresenceList(constituentId);
|
|
520
|
+
let updateOnlinePresenceErrorCode = undefined;
|
|
521
|
+
if (getConstituentOnlinePresenceListResponse.status !== 200) {
|
|
522
|
+
updateOnlinePresenceErrorCode = getConstituentOnlinePresenceListResponse.status;
|
|
523
|
+
}
|
|
524
|
+
else {
|
|
525
|
+
const constituentOnlinePresenceListResults = await getConstituentOnlinePresenceListResponse.json();
|
|
526
|
+
let existingOnlinePresence = undefined;
|
|
527
|
+
if (constituentOnlinePresenceListResults.count > 0) {
|
|
528
|
+
existingOnlinePresence = utils_1.filterObjectListByMatchFields(constituentOnlinePresenceListResults.value, constituentOnlinePresenceData, ['address']);
|
|
529
|
+
}
|
|
530
|
+
if (!existingOnlinePresence) {
|
|
531
|
+
if (constituentOnlinePresenceData.primary !== false && constituentOnlinePresenceListResults.count === 0) {
|
|
532
|
+
constituentOnlinePresenceData.primary = true;
|
|
533
|
+
}
|
|
534
|
+
const createConstituentOnlinePresenceResponse = await blackbaudSkyApiClient.createConstituentOnlinePresence(constituentId, constituentOnlinePresenceData);
|
|
535
|
+
if (createConstituentOnlinePresenceResponse.status !== 200) {
|
|
536
|
+
updateOnlinePresenceErrorCode = createConstituentOnlinePresenceResponse.status;
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
else {
|
|
540
|
+
if (existingOnlinePresence.inactive ||
|
|
541
|
+
(constituentOnlinePresenceData.primary !== undefined &&
|
|
542
|
+
constituentOnlinePresenceData.primary !== existingOnlinePresence.primary) ||
|
|
543
|
+
constituentOnlinePresenceData.type !== existingOnlinePresence.type) {
|
|
544
|
+
const updateConstituentOnlinePresenceByIdResponse = await blackbaudSkyApiClient.updateConstituentOnlinePresenceById(existingOnlinePresence.id, constituentOnlinePresenceData);
|
|
545
|
+
if (updateConstituentOnlinePresenceByIdResponse.status !== 200) {
|
|
546
|
+
updateOnlinePresenceErrorCode = updateConstituentOnlinePresenceByIdResponse.status;
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
}
|
|
551
|
+
if (updateOnlinePresenceErrorCode) {
|
|
552
|
+
const errorMessage = updateOnlinePresenceErrorCode
|
|
553
|
+
? `${updateOnlinePresenceErrorCode} error occurred when updating constituent online presence`
|
|
554
|
+
: 'Error occurred when updating constituent online presence';
|
|
555
|
+
if (utils_1.isRequestErrorRetryable(updateOnlinePresenceErrorCode)) {
|
|
556
|
+
throw new actions_core_1.RetryableError(errorMessage);
|
|
557
|
+
}
|
|
558
|
+
else {
|
|
559
|
+
integrationErrors.push(errorMessage);
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
if (Object.keys(constituentPhoneData).length > 0) {
|
|
564
|
+
const getConstituentPhoneListResponse = await blackbaudSkyApiClient.getConstituentPhoneList(constituentId);
|
|
565
|
+
let updatePhoneErrorCode = undefined;
|
|
566
|
+
if (getConstituentPhoneListResponse.status !== 200) {
|
|
567
|
+
updatePhoneErrorCode = getConstituentPhoneListResponse.status;
|
|
568
|
+
}
|
|
569
|
+
else {
|
|
570
|
+
const constituentPhoneListResults = await getConstituentPhoneListResponse.json();
|
|
571
|
+
let existingPhone = undefined;
|
|
572
|
+
if (constituentPhoneListResults.count > 0) {
|
|
573
|
+
existingPhone = utils_1.filterObjectListByMatchFields(constituentPhoneListResults.value, constituentPhoneData, [
|
|
574
|
+
'int:number'
|
|
575
|
+
]);
|
|
576
|
+
}
|
|
577
|
+
if (!existingPhone) {
|
|
578
|
+
if (constituentPhoneData.primary !== false && constituentPhoneListResults.count === 0) {
|
|
579
|
+
constituentPhoneData.primary = true;
|
|
580
|
+
}
|
|
581
|
+
const createConstituentPhoneResponse = await blackbaudSkyApiClient.createConstituentPhone(constituentId, constituentPhoneData);
|
|
582
|
+
if (createConstituentPhoneResponse.status !== 200) {
|
|
583
|
+
updatePhoneErrorCode = createConstituentPhoneResponse.status;
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
else {
|
|
587
|
+
if (existingPhone.inactive ||
|
|
588
|
+
(constituentPhoneData.do_not_call !== undefined &&
|
|
589
|
+
constituentPhoneData.do_not_call !== existingPhone.do_not_call) ||
|
|
590
|
+
(constituentPhoneData.primary !== undefined && constituentPhoneData.primary !== existingPhone.primary) ||
|
|
591
|
+
constituentPhoneData.type !== existingPhone.type) {
|
|
592
|
+
const updateConstituentPhoneByIdResponse = await blackbaudSkyApiClient.updateConstituentPhoneById(existingPhone.id, constituentPhoneData);
|
|
593
|
+
if (updateConstituentPhoneByIdResponse.status !== 200) {
|
|
594
|
+
updatePhoneErrorCode = updateConstituentPhoneByIdResponse.status;
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
if (updatePhoneErrorCode) {
|
|
600
|
+
const errorMessage = updatePhoneErrorCode
|
|
601
|
+
? `${updatePhoneErrorCode} error occurred when updating constituent online presence`
|
|
602
|
+
: 'Error occurred when updating constituent online presence';
|
|
603
|
+
if (utils_1.isRequestErrorRetryable(updatePhoneErrorCode)) {
|
|
604
|
+
throw new actions_core_1.RetryableError(errorMessage);
|
|
605
|
+
}
|
|
606
|
+
else {
|
|
607
|
+
integrationErrors.push(errorMessage);
|
|
608
|
+
}
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
if (integrationErrors.length > 0) {
|
|
612
|
+
throw new actions_core_1.IntegrationError('One or more errors occurred when updating existing constituent: ' + integrationErrors.join(', '), 'UPDATE_CONSTITUENT_ERROR', 500);
|
|
613
|
+
}
|
|
614
|
+
return;
|
|
615
|
+
}
|
|
616
|
+
}
|
|
617
|
+
};
|
|
618
|
+
exports.default = action;
|
|
619
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/blackbaud-raisers-edge-nxt/createOrUpdateIndividualConstituent/index.ts"],"names":[],"mappings":";;AAAA,wDAA0F;AAG1F,gCAAwC;AAYxC,oCAAwG;AAExG,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,yCAAyC;IAChD,WAAW,EAAE,yEAAyE;IACtF,mBAAmB,EAAE,mBAAmB;IACxC,MA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I,KAAK,aAAa,CAAC,IAAI,EAChD;4BAGA,MAAM,kCAAkC,GAAG,MAAM,qBAAqB,CAAC,0BAA0B,CAC/F,aAAa,CAAC,EAAE,EAChB,oBAAoB,CACrB,CAAA;4BACD,IAAI,kCAAkC,CAAC,MAAM,KAAK,GAAG,EAAE;gCACrD,oBAAoB,GAAG,kCAAkC,CAAC,MAAM,CAAA;6BACjE;yBACF;qBACF;iBACF;gBAED,IAAI,oBAAoB,EAAE;oBACxB,MAAM,YAAY,GAAG,oBAAoB;wBACvC,CAAC,CAAC,GAAG,oBAAoB,2DAA2D;wBACpF,CAAC,CAAC,0DAA0D,CAAA;oBAC9D,IAAI,+BAAuB,CAAC,oBAAoB,CAAC,EAAE;wBACjD,MAAM,IAAI,6BAAc,CAAC,YAAY,CAAC,CAAA;qBACvC;yBAAM;wBACL,iBAAiB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAA;qBACrC;iBACF;aACF;YAED,IAAI,iBAAiB,CAAC,MAAM,GAAG,CAAC,EAAE;gBAChC,MAAM,IAAI,+BAAgB,CACxB,kEAAkE,GAAG,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,EACjG,0BAA0B,EAC1B,GAAG,CACJ,CAAA;aACF;YAED,OAAM;SACP;IACH,CAAC;CACF,CAAA;AAED,kBAAe,MAAM,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generated-types.js","sourceRoot":"","sources":["../../../src/destinations/blackbaud-raisers-edge-nxt/generated-types.ts"],"names":[],"mappings":""}
|