@segment/action-destinations 3.134.0 → 3.135.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 (91) hide show
  1. package/dist/destinations/blackbaud-raisers-edge-nxt/api/index.d.ts +17 -12
  2. package/dist/destinations/blackbaud-raisers-edge-nxt/api/index.js +299 -32
  3. package/dist/destinations/blackbaud-raisers-edge-nxt/api/index.js.map +1 -1
  4. package/dist/destinations/blackbaud-raisers-edge-nxt/constants/index.d.ts +3 -1
  5. package/dist/destinations/blackbaud-raisers-edge-nxt/constants/index.js +4 -2
  6. package/dist/destinations/blackbaud-raisers-edge-nxt/constants/index.js.map +1 -1
  7. package/dist/destinations/blackbaud-raisers-edge-nxt/createGift/fixtures.d.ts +27 -0
  8. package/dist/destinations/blackbaud-raisers-edge-nxt/createGift/fixtures.js +60 -0
  9. package/dist/destinations/blackbaud-raisers-edge-nxt/createGift/fixtures.js.map +1 -0
  10. package/dist/destinations/blackbaud-raisers-edge-nxt/createGift/generated-types.d.ts +63 -0
  11. package/dist/destinations/blackbaud-raisers-edge-nxt/createGift/generated-types.js +3 -0
  12. package/dist/destinations/blackbaud-raisers-edge-nxt/createGift/generated-types.js.map +1 -0
  13. package/dist/destinations/blackbaud-raisers-edge-nxt/createGift/index.d.ts +5 -0
  14. package/dist/destinations/blackbaud-raisers-edge-nxt/createGift/index.js +242 -0
  15. package/dist/destinations/blackbaud-raisers-edge-nxt/createGift/index.js.map +1 -0
  16. package/dist/destinations/blackbaud-raisers-edge-nxt/createOrUpdateIndividualConstituent/fixtures.js +1 -1
  17. package/dist/destinations/blackbaud-raisers-edge-nxt/createOrUpdateIndividualConstituent/fixtures.js.map +1 -1
  18. package/dist/destinations/blackbaud-raisers-edge-nxt/createOrUpdateIndividualConstituent/generated-types.d.ts +1 -0
  19. package/dist/destinations/blackbaud-raisers-edge-nxt/createOrUpdateIndividualConstituent/index.d.ts +3 -1
  20. package/dist/destinations/blackbaud-raisers-edge-nxt/createOrUpdateIndividualConstituent/index.js +277 -550
  21. package/dist/destinations/blackbaud-raisers-edge-nxt/createOrUpdateIndividualConstituent/index.js.map +1 -1
  22. package/dist/destinations/blackbaud-raisers-edge-nxt/index.js +2 -0
  23. package/dist/destinations/blackbaud-raisers-edge-nxt/index.js.map +1 -1
  24. package/dist/destinations/blackbaud-raisers-edge-nxt/types/index.d.ts +61 -8
  25. package/dist/destinations/blackbaud-raisers-edge-nxt/utils/index.d.ts +6 -1
  26. package/dist/destinations/blackbaud-raisers-edge-nxt/utils/index.js +149 -5
  27. package/dist/destinations/blackbaud-raisers-edge-nxt/utils/index.js.map +1 -1
  28. package/dist/destinations/engage-messaging-sendgrid/sendEmail/generated-types.d.ts +1 -1
  29. package/dist/destinations/engage-messaging-sendgrid/sendEmail/index.js +5 -2
  30. package/dist/destinations/engage-messaging-sendgrid/sendEmail/index.js.map +1 -1
  31. package/dist/destinations/engage-messaging-twilio/sendSms/generated-types.d.ts +1 -1
  32. package/dist/destinations/engage-messaging-twilio/sendSms/index.js +0 -1
  33. package/dist/destinations/engage-messaging-twilio/sendSms/index.js.map +1 -1
  34. package/dist/destinations/engage-messaging-twilio/sendSms/sms-sender.js +4 -1
  35. package/dist/destinations/engage-messaging-twilio/sendSms/sms-sender.js.map +1 -1
  36. package/dist/destinations/google-analytics-4/index.js +1 -1
  37. package/dist/destinations/google-analytics-4/index.js.map +1 -1
  38. package/dist/destinations/index.js +1 -0
  39. package/dist/destinations/index.js.map +1 -1
  40. package/dist/destinations/ironclad/recordAction.types.d.ts +12 -0
  41. package/dist/destinations/ironclad/recordAction.types.js +3 -0
  42. package/dist/destinations/ironclad/recordAction.types.js.map +1 -0
  43. package/dist/destinations/mixpanel/mixpanel-properties.js +0 -8
  44. package/dist/destinations/mixpanel/mixpanel-properties.js.map +1 -1
  45. package/dist/destinations/mixpanel/trackEvent/generated-types.d.ts +0 -3
  46. package/dist/destinations/mixpanel/trackPurchase/generated-types.d.ts +0 -3
  47. package/dist/destinations/outfunnel/forwardGroupEvent/generated-types.d.ts +14 -0
  48. package/dist/destinations/outfunnel/forwardGroupEvent/generated-types.js +3 -0
  49. package/dist/destinations/outfunnel/forwardGroupEvent/generated-types.js.map +1 -0
  50. package/dist/destinations/outfunnel/forwardGroupEvent/index.d.ts +5 -0
  51. package/dist/destinations/outfunnel/forwardGroupEvent/index.js +83 -0
  52. package/dist/destinations/outfunnel/forwardGroupEvent/index.js.map +1 -0
  53. package/dist/destinations/outfunnel/forwardIdentifyEvent/generated-types.d.ts +13 -0
  54. package/dist/destinations/outfunnel/forwardIdentifyEvent/generated-types.js +3 -0
  55. package/dist/destinations/outfunnel/forwardIdentifyEvent/generated-types.js.map +1 -0
  56. package/dist/destinations/outfunnel/forwardIdentifyEvent/index.d.ts +5 -0
  57. package/dist/destinations/outfunnel/forwardIdentifyEvent/index.js +76 -0
  58. package/dist/destinations/outfunnel/forwardIdentifyEvent/index.js.map +1 -0
  59. package/dist/destinations/outfunnel/forwardTrackEvent/generated-types.d.ts +15 -0
  60. package/dist/destinations/outfunnel/forwardTrackEvent/generated-types.js +3 -0
  61. package/dist/destinations/outfunnel/forwardTrackEvent/generated-types.js.map +1 -0
  62. package/dist/destinations/outfunnel/forwardTrackEvent/index.d.ts +5 -0
  63. package/dist/destinations/outfunnel/forwardTrackEvent/index.js +97 -0
  64. package/dist/destinations/outfunnel/forwardTrackEvent/index.js.map +1 -0
  65. package/dist/destinations/outfunnel/generated-types.d.ts +4 -0
  66. package/dist/destinations/outfunnel/generated-types.js +3 -0
  67. package/dist/destinations/outfunnel/generated-types.js.map +1 -0
  68. package/dist/destinations/outfunnel/index.d.ts +4 -0
  69. package/dist/destinations/outfunnel/index.js +54 -0
  70. package/dist/destinations/outfunnel/index.js.map +1 -0
  71. package/dist/destinations/outfunnel/presets.d.ts +2 -0
  72. package/dist/destinations/outfunnel/presets.js +31 -0
  73. package/dist/destinations/outfunnel/presets.js.map +1 -0
  74. package/dist/destinations/outfunnel/utils.d.ts +1 -0
  75. package/dist/destinations/outfunnel/utils.js +7 -0
  76. package/dist/destinations/outfunnel/utils.js.map +1 -0
  77. package/dist/destinations/qualtrics/qualtricsApiClient.js +3 -1
  78. package/dist/destinations/qualtrics/qualtricsApiClient.js.map +1 -1
  79. package/dist/destinations/ripe/group/index.js +0 -1
  80. package/dist/destinations/ripe/group/index.js.map +1 -1
  81. package/dist/destinations/ripe/identify/index.js +0 -1
  82. package/dist/destinations/ripe/identify/index.js.map +1 -1
  83. package/dist/destinations/ripe/page/index.js +0 -1
  84. package/dist/destinations/ripe/page/index.js.map +1 -1
  85. package/dist/destinations/ripe/track/index.js +0 -1
  86. package/dist/destinations/ripe/track/index.js.map +1 -1
  87. package/dist/destinations/segment-profiles/segment-properties.js +1 -1
  88. package/dist/destinations/twilio/sendSMS.types.d.ts +1 -0
  89. package/dist/destinations/voucherify/index.js +1 -1
  90. package/dist/destinations/voucherify/index.js.map +1 -1
  91. package/package.json +2 -2
@@ -0,0 +1,63 @@
1
+ export interface Payload {
2
+ acknowledgement?: {
3
+ date?: string | number;
4
+ status?: string;
5
+ };
6
+ amount: number;
7
+ check_date?: string | number;
8
+ check_number?: string;
9
+ date?: string | number;
10
+ fund_id: string;
11
+ gift_status?: string;
12
+ is_anonymous?: boolean;
13
+ linked_gifts?: string[];
14
+ lookup_id?: string;
15
+ payment_method: string;
16
+ post_date?: string | number;
17
+ post_status?: string;
18
+ receipt?: {
19
+ date?: string | number;
20
+ status?: string;
21
+ };
22
+ recurring_gift_schedule?: {
23
+ end_date?: string | number;
24
+ frequency?: string;
25
+ start_date?: string | number;
26
+ };
27
+ subtype?: string;
28
+ type?: string;
29
+ constituent_address?: {
30
+ address_lines?: string;
31
+ city?: string;
32
+ country?: string;
33
+ do_not_mail?: boolean;
34
+ postal_code?: string;
35
+ primary?: boolean;
36
+ state?: string;
37
+ type?: string;
38
+ };
39
+ constituent_birthdate?: string | number;
40
+ constituent_id?: string;
41
+ constituent_email?: {
42
+ address?: string;
43
+ do_not_email?: boolean;
44
+ primary?: boolean;
45
+ type?: string;
46
+ };
47
+ constituent_first?: string;
48
+ constituent_gender?: string;
49
+ constituent_income?: string;
50
+ constituent_last?: string;
51
+ constituent_lookup_id?: string;
52
+ constituent_online_presence?: {
53
+ address?: string;
54
+ primary?: boolean;
55
+ type?: string;
56
+ };
57
+ constituent_phone?: {
58
+ do_not_call?: boolean;
59
+ number?: string;
60
+ primary?: boolean;
61
+ type?: string;
62
+ };
63
+ }
@@ -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/blackbaud-raisers-edge-nxt/createGift/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,242 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const actions_core_1 = require("@segment/actions-core");
4
+ const createOrUpdateIndividualConstituent_1 = require("../createOrUpdateIndividualConstituent");
5
+ const api_1 = require("../api");
6
+ const utils_1 = require("../utils");
7
+ const fields = {
8
+ acknowledgement: {
9
+ label: 'Acknowledgement',
10
+ description: 'The gift acknowledgement.',
11
+ type: 'object',
12
+ defaultObjectUI: 'keyvalue:only',
13
+ additionalProperties: false,
14
+ properties: {
15
+ date: {
16
+ label: 'Date',
17
+ type: 'datetime',
18
+ description: 'The date associated with the acknowledgement in ISO-8601 format.'
19
+ },
20
+ status: {
21
+ label: 'Status',
22
+ type: 'string',
23
+ description: 'The status of the acknowledgement. Available values are: ACKNOWLEDGED, NEEDSACKNOWLEDGEMENT, and DONOTACKNOWLEDGE.'
24
+ }
25
+ },
26
+ default: {
27
+ date: {
28
+ '@path': '$.properties.acknowledgement.date'
29
+ },
30
+ status: {
31
+ '@path': '$.properties.acknowledgement.status'
32
+ }
33
+ }
34
+ },
35
+ amount: {
36
+ label: 'Gift Amount',
37
+ description: 'The monetary amount of the gift in number format, e.g. 12.34',
38
+ type: 'number',
39
+ required: true,
40
+ default: {
41
+ '@path': '$.properties.revenue'
42
+ }
43
+ },
44
+ check_date: {
45
+ label: 'Check Date',
46
+ description: 'The check date in ISO-8601 format.',
47
+ type: 'datetime'
48
+ },
49
+ check_number: {
50
+ label: 'Check Number',
51
+ description: 'The check number in string format, e.g. "12345"',
52
+ type: 'string'
53
+ },
54
+ date: {
55
+ label: 'Gift Date',
56
+ description: 'The gift date in ISO-8601 format.',
57
+ type: 'datetime'
58
+ },
59
+ fund_id: {
60
+ label: 'Fund ID',
61
+ description: 'The ID of the fund associated with the gift.',
62
+ type: 'string',
63
+ required: true
64
+ },
65
+ gift_status: {
66
+ label: 'Gift Status',
67
+ description: 'The status of the gift. Available values are "Active", "Held", "Terminated", "Completed", and "Cancelled".',
68
+ type: 'string',
69
+ choices: [
70
+ { label: 'Active', value: 'Active' },
71
+ { label: 'Held', value: 'Held' },
72
+ { label: 'Terminated', value: 'Terminated' },
73
+ { label: 'Completed', value: 'Completed' },
74
+ { label: 'Cancelled', value: 'Cancelled' }
75
+ ]
76
+ },
77
+ is_anonymous: {
78
+ label: 'Is Anonymous',
79
+ description: 'Indicates whether the gift is anonymous.',
80
+ type: 'boolean'
81
+ },
82
+ linked_gifts: {
83
+ label: 'Linked Gifts',
84
+ description: 'The recurring gift associated with the payment being added. When adding a recurring gift payment, a linked_gifts field must be included as an array of strings with the ID of the recurring gift to which the payment is linked.',
85
+ type: 'string',
86
+ multiple: true
87
+ },
88
+ lookup_id: {
89
+ label: 'Lookup ID',
90
+ description: 'The organization-defined identifier for the gift.',
91
+ type: 'string'
92
+ },
93
+ payment_method: {
94
+ label: 'Payment Method',
95
+ description: 'The payment method. Available values are "Cash", "CreditCard", "PersonalCheck", "DirectDebit", "Other", "PayPal", or "Venmo".',
96
+ type: 'string',
97
+ required: true,
98
+ choices: [
99
+ { label: 'Cash', value: 'Cash' },
100
+ { label: 'Credit Card', value: 'CreditCard' },
101
+ { label: 'Personal Check', value: 'PersonalCheck' },
102
+ { label: 'Direct Debit', value: 'DirectDebit' },
103
+ { label: 'Other', value: 'Other' },
104
+ { label: 'PayPal', value: 'PayPal' },
105
+ { label: 'Venmo', value: 'Venmo' }
106
+ ]
107
+ },
108
+ post_date: {
109
+ label: 'Post Date',
110
+ description: 'The date that the gift was posted to general ledger in ISO-8601 format.',
111
+ type: 'datetime'
112
+ },
113
+ post_status: {
114
+ label: 'Post Status',
115
+ description: 'The general ledger post status of the gift. Available values are "Posted", "NotPosted", and "DoNotPost".',
116
+ type: 'string',
117
+ default: 'NotPosted',
118
+ choices: [
119
+ { label: 'Posted', value: 'Posted' },
120
+ { label: 'Not Posted', value: 'NotPosted' },
121
+ { label: 'Do Not Post', value: 'DoNotPost' }
122
+ ]
123
+ },
124
+ receipt: {
125
+ label: 'Receipt',
126
+ description: 'The gift receipt.',
127
+ type: 'object',
128
+ defaultObjectUI: 'keyvalue:only',
129
+ additionalProperties: false,
130
+ properties: {
131
+ date: {
132
+ label: 'Date',
133
+ type: 'datetime',
134
+ description: 'The date that the gift was receipted. Includes an offset from UTC in ISO-8601 format: 1969-11-21T10:29:43.'
135
+ },
136
+ status: {
137
+ label: 'Status',
138
+ type: 'string',
139
+ description: 'The receipt status of the gift. Available values are RECEIPTED, NEEDSRECEIPT, and DONOTRECEIPT.'
140
+ }
141
+ },
142
+ default: {
143
+ date: {
144
+ '@path': '$.properties.receipt.date'
145
+ },
146
+ status: {
147
+ '@path': '$.properties.receipt.status'
148
+ }
149
+ }
150
+ },
151
+ recurring_gift_schedule: {
152
+ label: 'Recurring Gift Schedule',
153
+ description: 'The recurring gift schedule. When adding a recurring gift, a schedule is required.',
154
+ type: 'object',
155
+ defaultObjectUI: 'keyvalue:only',
156
+ additionalProperties: false,
157
+ properties: {
158
+ end_date: {
159
+ label: 'End Date',
160
+ type: 'datetime',
161
+ description: 'Date the recurring gift should end in ISO-8601 format.'
162
+ },
163
+ frequency: {
164
+ label: 'Frequency',
165
+ type: 'string',
166
+ description: 'Installment frequency of the recurring gift to add. Available values are WEEKLY, EVERY_TWO_WEEKS, EVERY_FOUR_WEEKS, MONTHLY, QUARTERLY, ANNUALLY.'
167
+ },
168
+ start_date: {
169
+ label: 'Start Date',
170
+ type: 'datetime',
171
+ description: 'Date the recurring gift should start in ISO-8601 format.'
172
+ }
173
+ },
174
+ default: {
175
+ end_date: {
176
+ '@path': '$.properties.recurring_gift_schedule.end_date'
177
+ },
178
+ frequency: {
179
+ '@path': '$.properties.recurring_gift_schedule.frequency'
180
+ },
181
+ start_date: {
182
+ '@path': '$.properties.recurring_gift_schedule.start_date'
183
+ }
184
+ }
185
+ },
186
+ subtype: {
187
+ label: 'Subtype',
188
+ description: 'The subtype of the gift.',
189
+ type: 'string'
190
+ },
191
+ type: {
192
+ label: 'Type',
193
+ description: 'The gift type. Available values are "Donation", "Other", "GiftInKind", "RecurringGift", and "RecurringGiftPayment".',
194
+ type: 'string',
195
+ default: 'Donation',
196
+ choices: [
197
+ { label: 'Donation', value: 'Donation' },
198
+ { label: 'Other', value: 'Other' },
199
+ { label: 'GiftInKind', value: 'GiftInKind' },
200
+ { label: 'RecurringGift', value: 'RecurringGift' },
201
+ { label: 'RecurringGiftPayment', value: 'RecurringGiftPayment' }
202
+ ]
203
+ }
204
+ };
205
+ Object.keys(createOrUpdateIndividualConstituent_1.fields).forEach((key) => {
206
+ let fieldKey = 'constituent_' + key;
207
+ let fieldLabel = 'Constituent ' + createOrUpdateIndividualConstituent_1.fields[key].label;
208
+ if (key === 'constituent_id') {
209
+ fieldKey = key;
210
+ fieldLabel = createOrUpdateIndividualConstituent_1.fields[key].label;
211
+ }
212
+ fields[fieldKey] = {
213
+ ...createOrUpdateIndividualConstituent_1.fields[key],
214
+ label: fieldLabel
215
+ };
216
+ });
217
+ const perform = async (request, { settings, payload }) => {
218
+ const constituentPayload = utils_1.buildConstituentPayloadFromPayload(payload);
219
+ let constituentId = payload.constituent_id;
220
+ if (Object.keys(constituentPayload).length > 0) {
221
+ const createOrUpdateIndividualConstituentResponse = await createOrUpdateIndividualConstituent_1.perform(request, {
222
+ settings: settings,
223
+ payload: constituentPayload
224
+ });
225
+ constituentId = createOrUpdateIndividualConstituentResponse.id;
226
+ }
227
+ else if (constituentId === undefined) {
228
+ throw new actions_core_1.IntegrationError('Missing constituent_id value', 'MISSING_REQUIRED_FIELD', 400);
229
+ }
230
+ const blackbaudSkyApiClient = new api_1.BlackbaudSkyApi(request);
231
+ const giftData = utils_1.buildGiftDataFromPayload(constituentId, payload);
232
+ return blackbaudSkyApiClient.createGift(giftData);
233
+ };
234
+ const action = {
235
+ title: 'Create Gift',
236
+ description: "Create a Gift record in Raiser's Edge NXT.",
237
+ defaultSubscription: 'type = "track" and event = "Donation Completed"',
238
+ fields,
239
+ perform
240
+ };
241
+ exports.default = action;
242
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/destinations/blackbaud-raisers-edge-nxt/createGift/index.ts"],"names":[],"mappings":";;AAAA,wDAA+G;AAG/G,gGAG+C;AAC/C,gCAAwC;AAExC,oCAAuF;AAEvF,MAAM,MAAM,GAA+B;IACzC,eAAe,EAAE;QACf,KAAK,EAAE,iBAAiB;QACxB,WAAW,EAAE,2BAA2B;QACxC,IAAI,EAAE,QAAQ;QACd,eAAe,EAAE,eAAe;QAChC,oBAAoB,EAAE,KAAK;QAC3B,UAAU,EAAE;YACV,IAAI,EAAE;gBACJ,KAAK,EAAE,MAAM;gBACb,IAAI,EAAE,UAAU;gBAChB,WAAW,EAAE,kEAAkE;aAChF;YACD,MAAM,EAAE;gBACN,KAAK,EAAE,QAAQ;gBACf,IAAI,EAAE,QAAQ;gBACd,WAAW,EACT,oHAAo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;QAC9C,MAAM,2CAA2C,GAAG,MAAM,6CAA0C,CAAC,OAAO,EAAE;YAC5G,QAAQ,EAAE,QAAQ;YAClB,OAAO,EAAE,kBAAkB;SACO,CAAC,CAAA;QACrC,aAAa,GAAG,2CAA2C,CAAC,EAAE,CAAA;KAC/D;SAAM,IAAI,aAAa,KAAK,SAAS,EAAE;QACtC,MAAM,IAAI,+BAAgB,CAAC,8BAA8B,EAAE,wBAAwB,EAAE,GAAG,CAAC,CAAA;KAC1F;IAED,MAAM,qBAAqB,GAAoB,IAAI,qBAAe,CAAC,OAAO,CAAC,CAAA;IAE3E,MAAM,QAAQ,GAAG,gCAAwB,CAAC,aAAuB,EAAE,OAAO,CAAS,CAAA;IAEnF,OAAO,qBAAqB,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAA;AACnD,CAAC,CAAA;AAED,MAAM,MAAM,GAAwC;IAClD,KAAK,EAAE,aAAa;IACpB,WAAW,EAAE,4CAA4C;IACzD,mBAAmB,EAAE,iDAAiD;IACtE,MAAM;IACN,OAAO;CACR,CAAA;AAED,kBAAe,MAAM,CAAA"}
@@ -65,7 +65,7 @@ exports.identifyEventDataWithLookupId = {
65
65
  birthday: '2001-01-01T01:01:01-05:00',
66
66
  email: 'john.doe@aol.com',
67
67
  emailType: 'Personal',
68
- lookup_id: 'abcd1234'
68
+ lookupId: 'abcd1234'
69
69
  }
70
70
  };
71
71
  exports.identifyEventDataWithInvalidWebsite = {
@@ -1 +1 @@
1
- {"version":3,"file":"fixtures.js","sourceRoot":"","sources":["../../../../src/destinations/blackbaud-raisers-edge-nxt/createOrUpdateIndividualConstituent/fixtures.ts"],"names":[],"mappings":";;;AAGa,QAAA,iBAAiB,GAA0B;IACtD,IAAI,EAAE,UAAU;IAChB,MAAM,EAAE;QACN,OAAO,EAAE;YACP,IAAI,EAAE,eAAe;YACrB,UAAU,EAAE,OAAO;YACnB,KAAK,EAAE,IAAI;YACX,MAAM,EAAE,YAAY;SACrB;QACD,WAAW,EAAE,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+BAA+B,GAAG;IAC7C,aAAa,EAAE,gBAAgB;IAC/B,IAAI,EAAE,UAAU;IAChB,KAAK,EAAE,IAAI;IACX,UAAU,EAAE,OAAO;IACnB,IAAI,EAAE,MAAM;CACb,CAAA;AAGY,QAAA,mBAAmB,GAAG;IACjC,OAAO,EAAE,kBAAkB;IAC3B,IAAI,EAAE,MAAM;CACb,CAAA;AAEY,QAAA,oBAAoB,GAAG;IAClC,OAAO,EAAE,kBAAkB;IAC3B,IAAI,EAAE,UAAU;CACjB,CAAA;AAGY,QAAA,4BAA4B,GAAG;IAC1C,OAAO,EAAE,yBAAyB;IAClC,IAAI,EAAE,SAAS;CAChB,CAAA;AAGY,QAAA,mBAAmB,GAAG;IACjC,MAAM,EAAE,cAAc;IACtB,IAAI,EAAE,MAAM;CACb,CAAA"}
1
+ {"version":3,"file":"fixtures.js","sourceRoot":"","sources":["../../../../src/destinations/blackbaud-raisers-edge-nxt/createOrUpdateIndividualConstituent/fixtures.ts"],"names":[],"mappings":";;;AAGa,QAAA,iBAAiB,GAA0B;IACtD,IAAI,EAAE,UAAU;IAChB,MAAM,EAAE;QACN,OAAO,EAAE;YACP,IAAI,EAAE,eAAe;YACrB,UAAU,EAAE,OAAO;YACnB,KAAK,EAAE,IAAI;YACX,MAAM,EAAE,YAAY;SACrB;QACD,WAAW,EAAE,MAAM;QACnB,KAAK,EAAE,kBAAkB;QACzB,SAAS,EAAE,UAAU;QACrB,SAAS,EAAE,MAAM;QACjB,QAAQ,EAAE,KAAK;QACf,KAAK,EAAE,cAAc;QACrB,SAAS,EAAE,MAAM;QACjB,OAAO,EAAE,mCAAmC;QAC5C,WAAW,EAAE,UAAU;KACxB;CACF,CAAA;AAEY,QAAA,wBAAwB,GAA0B;IAC7D,IAAI,EAAE,UAAU;IAChB,MAAM,EAAE;QACN,SAAS,EAAE,MAAM;QACjB,QAAQ,EAAE,KAAK;QACf,KAAK,EAAE,cAAc;QACrB,SAAS,EAAE,MAAM;KAClB;CACF,CAAA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AAS;CAChB,CAAA;AAGY,QAAA,mBAAmB,GAAG;IACjC,MAAM,EAAE,cAAc;IACtB,IAAI,EAAE,MAAM;CACb,CAAA"}
@@ -10,6 +10,7 @@ export interface Payload {
10
10
  type?: string;
11
11
  };
12
12
  birthdate?: string | number;
13
+ constituent_id?: string;
13
14
  email?: {
14
15
  address?: string;
15
16
  do_not_email?: boolean;
@@ -1,5 +1,7 @@
1
- import { ActionDefinition } from '@segment/actions-core';
1
+ import { ActionDefinition, InputField, RequestFn } from '@segment/actions-core';
2
2
  import type { Settings } from '../generated-types';
3
3
  import type { Payload } from './generated-types';
4
+ export declare const fields: Record<string, InputField>;
5
+ export declare const perform: RequestFn<Settings, Payload>;
4
6
  declare const action: ActionDefinition<Settings, Payload>;
5
7
  export default action;