@pipedream/salesforce_rest_api 1.2.1 → 1.3.1
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/README.md +92 -0
- package/actions/add-contact-to-campaign/add-contact-to-campaign.mjs +25 -25
- package/actions/add-lead-to-campaign/add-lead-to-campaign.mjs +25 -24
- package/actions/common/base-create-update.mjs +108 -0
- package/actions/convert-soap-xml-to-json/convert-soap-xml-to-json.mjs +11 -3
- package/actions/create-account/create-account.mjs +33 -36
- package/actions/create-attachment/create-attachment.mjs +36 -50
- package/actions/create-campaign/create-campaign.mjs +41 -37
- package/actions/create-case/create-case.mjs +41 -37
- package/actions/create-casecomment/create-casecomment.mjs +26 -38
- package/actions/create-contact/create-contact.mjs +38 -35
- package/actions/create-event/create-event.mjs +57 -66
- package/actions/create-lead/create-lead.mjs +34 -42
- package/actions/create-note/create-note.mjs +24 -43
- package/actions/create-opportunity/create-opportunity.mjs +38 -47
- package/actions/create-record/create-record.mjs +49 -15
- package/actions/create-task/create-task.mjs +50 -42
- package/actions/create-user/create-user.mjs +33 -196
- package/actions/delete-opportunity/delete-opportunity.mjs +17 -13
- package/actions/delete-record/delete-record.mjs +18 -16
- package/actions/find-records/find-records.mjs +41 -26
- package/actions/insert-blob-data/insert-blob-data.mjs +3 -7
- package/actions/post-feed-to-chatter/post-feed-to-chatter.mjs +45 -20
- package/actions/search-string/search-string.mjs +22 -20
- package/actions/soql-search/soql-search.mjs +13 -8
- package/actions/sosl-search/sosl-search.mjs +19 -9
- package/actions/update-account/update-account.mjs +54 -41
- package/actions/update-contact/update-contact.mjs +59 -40
- package/actions/update-opportunity/update-opportunity.mjs +56 -54
- package/actions/update-record/update-record.mjs +67 -20
- package/common/all-sobjects.mjs +3812 -0
- package/common/constants-props.mjs +1539 -0
- package/common/props-async-options.mjs +154 -0
- package/common/props-utils.mjs +88 -31
- package/common/sobjects/account.mjs +349 -22
- package/common/sobjects/attachment.mjs +56 -17
- package/common/sobjects/campaign.mjs +125 -23
- package/common/sobjects/case.mjs +193 -13
- package/common/sobjects/caseComment.mjs +28 -4
- package/common/sobjects/contact.mjs +207 -43
- package/common/sobjects/event.mjs +218 -18
- package/common/sobjects/lead.mjs +245 -22
- package/common/sobjects/note.mjs +37 -14
- package/common/sobjects/opportunity.mjs +148 -22
- package/common/sobjects/task.mjs +240 -19
- package/common/sobjects/user.mjs +965 -0
- package/package.json +2 -2
- package/salesforce_rest_api.app.mjs +72 -249
- package/sources/common-webhook-methods.mjs +71 -0
- package/sources/common.mjs +85 -22
- package/sources/new-outbound-message/new-outbound-message.mjs +11 -3
- package/sources/new-record-instant/new-record-instant.mjs +95 -7
- package/sources/record-deleted-instant/record-deleted-instant.mjs +40 -5
- package/sources/record-updated-instant/record-updated-instant.mjs +137 -5
- package/actions/common/base.mjs +0 -18
- package/actions/find-create-record/find-create-record.mjs +0 -89
- package/actions/get-sobject-fields-values/get-sobject-fields-values.mjs +0 -57
- package/common/utils.mjs +0 -51
- package/sources/common-instant.mjs +0 -146
- package/sources/new-record/new-record.mjs +0 -91
- package/sources/record-deleted/record-deleted.mjs +0 -51
- package/sources/record-updated/record-updated.mjs +0 -94
- package/sources/updated-field-on-record/updated-field-on-record.mjs +0 -161
- package/sources/updated-field-on-record-instant/updated-field-on-record-instant.mjs +0 -76
package/common/sobjects/task.mjs
CHANGED
|
@@ -1,25 +1,246 @@
|
|
|
1
|
-
import
|
|
1
|
+
import {
|
|
2
|
+
RECURRENCE_INSTANCE_OPTIONS,
|
|
3
|
+
RECURRENCE_MONTH_OPTIONS,
|
|
4
|
+
TIMEZONE_OPTIONS,
|
|
5
|
+
RECURRENCE_TYPE_OPTIONS,
|
|
6
|
+
WEEKDAY_MASK_OPTIONS,
|
|
7
|
+
} from "../constants-props.mjs";
|
|
8
|
+
import commonProps from "../props-async-options.mjs";
|
|
2
9
|
|
|
3
10
|
export default {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
11
|
+
createProps: {
|
|
12
|
+
IsRecurrence: {
|
|
13
|
+
type: "boolean",
|
|
14
|
+
label: "Recurring",
|
|
15
|
+
description:
|
|
16
|
+
"Indicates whether the task is scheduled to repeat itself (`true`) or only occurs once (`false`).",
|
|
17
|
+
optional: true,
|
|
18
|
+
},
|
|
19
|
+
TaskSubtype: {
|
|
20
|
+
type: "string",
|
|
21
|
+
label: "Task Subtype",
|
|
22
|
+
description: "The subtype of the task.",
|
|
23
|
+
optional: true,
|
|
24
|
+
options: [
|
|
25
|
+
{
|
|
26
|
+
label: "Task",
|
|
27
|
+
value: "Task",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
label: "Email",
|
|
31
|
+
value: "Email",
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
label: "List Email",
|
|
35
|
+
value: "ListEmail",
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
label: "Cadence",
|
|
39
|
+
value: "Cadence",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
label: "Call",
|
|
43
|
+
value: "Call",
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
label: "LinkedIn",
|
|
47
|
+
value: "LinkedIn",
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
},
|
|
8
51
|
},
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
52
|
+
initialProps: {
|
|
53
|
+
ActivityDate: {
|
|
54
|
+
type: "string",
|
|
55
|
+
label: "Due Date",
|
|
56
|
+
description: "Represents the due date of the task.",
|
|
57
|
+
optional: true,
|
|
58
|
+
},
|
|
59
|
+
Description: {
|
|
60
|
+
type: "string",
|
|
61
|
+
label: "Description",
|
|
62
|
+
description: "A text description of the task.",
|
|
63
|
+
optional: true,
|
|
64
|
+
},
|
|
65
|
+
Priority: {
|
|
66
|
+
type: "string",
|
|
67
|
+
label: "Priority",
|
|
68
|
+
description:
|
|
69
|
+
"Indicates the importance or urgency of a task, such as high or low.",
|
|
70
|
+
options: [
|
|
71
|
+
"High",
|
|
72
|
+
"Normal",
|
|
73
|
+
"Low",
|
|
74
|
+
],
|
|
75
|
+
},
|
|
13
76
|
},
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
77
|
+
extraProps: {
|
|
78
|
+
OwnerId: {
|
|
79
|
+
...commonProps.UserId,
|
|
80
|
+
label: "Owner ID",
|
|
81
|
+
description: "ID of the User or Group who owns the record.",
|
|
82
|
+
optional: true,
|
|
83
|
+
},
|
|
84
|
+
TaskWhoIds: {
|
|
85
|
+
...commonProps.ContactOrLeadIds,
|
|
86
|
+
label: "Related IDs",
|
|
87
|
+
description: "One or more Contact or Lead IDs related to this task.",
|
|
88
|
+
optional: true,
|
|
89
|
+
},
|
|
90
|
+
CallDisposition: {
|
|
91
|
+
type: "string",
|
|
92
|
+
label: "Call Result",
|
|
93
|
+
description:
|
|
94
|
+
"Represents the result of a given call, for example, “we'll call back,” or “call unsuccessful.” Limit is 255 characters.",
|
|
95
|
+
optional: true,
|
|
96
|
+
},
|
|
97
|
+
CallDurationInSeconds: {
|
|
98
|
+
type: "integer",
|
|
99
|
+
label: "Call Duration",
|
|
100
|
+
description: "Duration of the call in seconds.",
|
|
101
|
+
optional: true,
|
|
102
|
+
},
|
|
103
|
+
CallObject: {
|
|
104
|
+
type: "string",
|
|
105
|
+
label: "Call Object Identifier",
|
|
106
|
+
description: "Name of a call center. Limit is 255 characters.",
|
|
107
|
+
optional: true,
|
|
108
|
+
},
|
|
109
|
+
CallType: {
|
|
110
|
+
type: "string",
|
|
111
|
+
label: "Call Type",
|
|
112
|
+
description: "The type of call being answered.",
|
|
113
|
+
optional: true,
|
|
114
|
+
options: [
|
|
115
|
+
"Internal",
|
|
116
|
+
"Inbound",
|
|
117
|
+
"Outbound",
|
|
118
|
+
],
|
|
119
|
+
},
|
|
120
|
+
IsReminderSet: {
|
|
121
|
+
type: "boolean",
|
|
122
|
+
label: "Reminder Set",
|
|
123
|
+
description:
|
|
124
|
+
"Indicates whether a popup reminder has been set for the task.",
|
|
125
|
+
optional: true,
|
|
126
|
+
},
|
|
127
|
+
IsVisibleInSelfService: {
|
|
128
|
+
type: "boolean",
|
|
129
|
+
label: "Visible in Self-Service",
|
|
130
|
+
description:
|
|
131
|
+
"Indicates whether a task associated with an object can be viewed in the Customer Portal.",
|
|
132
|
+
optional: true,
|
|
133
|
+
},
|
|
134
|
+
RecurrenceDayOfMonth: {
|
|
135
|
+
type: "integer",
|
|
136
|
+
label: "Recurrence Day of Month",
|
|
137
|
+
description: "The day of the month in which the task repeats.",
|
|
138
|
+
optional: true,
|
|
139
|
+
},
|
|
140
|
+
RecurrenceDayOfWeekMask: {
|
|
141
|
+
type: "integer[]",
|
|
142
|
+
label: "Recurrence Day of Week Mask",
|
|
143
|
+
description: "The day(s) of the week on which the task repeats.",
|
|
144
|
+
optional: true,
|
|
145
|
+
options: WEEKDAY_MASK_OPTIONS,
|
|
146
|
+
},
|
|
147
|
+
RecurrenceEndDateOnly: {
|
|
148
|
+
type: "string",
|
|
149
|
+
label: "Recurrence End Date",
|
|
150
|
+
description: "The last date on which the task repeats.",
|
|
151
|
+
optional: true,
|
|
152
|
+
},
|
|
153
|
+
RecurrenceInstance: {
|
|
154
|
+
type: "string",
|
|
155
|
+
label: "Recurrence Instance",
|
|
156
|
+
description: "The frequency of the recurring task.",
|
|
157
|
+
optional: true,
|
|
158
|
+
options: RECURRENCE_INSTANCE_OPTIONS,
|
|
159
|
+
},
|
|
160
|
+
RecurrenceInterval: {
|
|
161
|
+
type: "integer",
|
|
162
|
+
label: "Recurrence Interval",
|
|
163
|
+
description: "The interval between recurring tasks.",
|
|
164
|
+
optional: true,
|
|
165
|
+
},
|
|
166
|
+
RecurrenceMonthOfYear: {
|
|
167
|
+
type: "string",
|
|
168
|
+
label: "Recurrence Month of Year",
|
|
169
|
+
description: "The month of the year in which the task repeats.",
|
|
170
|
+
optional: true,
|
|
171
|
+
options: RECURRENCE_MONTH_OPTIONS,
|
|
172
|
+
},
|
|
173
|
+
RecurrenceRegeneratedType: {
|
|
174
|
+
type: "string",
|
|
175
|
+
label: "Repeat This Task",
|
|
176
|
+
description: "Represents what triggers a repeating task to repeat.",
|
|
177
|
+
optional: true,
|
|
178
|
+
options: [
|
|
179
|
+
{
|
|
180
|
+
label: "After due date",
|
|
181
|
+
value: "RecurrenceRegenerateAfterDueDate",
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
label: "After date completed",
|
|
185
|
+
value: "RecurrenceRegenerateAfterToday",
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
label: "(Task Closed)",
|
|
189
|
+
value: "RecurrenceRegenerated",
|
|
190
|
+
},
|
|
191
|
+
],
|
|
192
|
+
},
|
|
193
|
+
RecurrenceStartDateOnly: {
|
|
194
|
+
type: "string",
|
|
195
|
+
label: "Recurrence Start Date",
|
|
196
|
+
description: "The date when the recurring task begins.",
|
|
197
|
+
optional: true,
|
|
198
|
+
},
|
|
199
|
+
RecurrenceTimeZoneSidKey: {
|
|
200
|
+
type: "string",
|
|
201
|
+
label: "Recurrence Time Zone",
|
|
202
|
+
description: "The time zone associated with the recurring task.",
|
|
203
|
+
optional: true,
|
|
204
|
+
options: TIMEZONE_OPTIONS,
|
|
205
|
+
},
|
|
206
|
+
RecurrenceType: {
|
|
207
|
+
type: "string",
|
|
208
|
+
label: "Recurrence Type",
|
|
209
|
+
description: "Indicates how often the task repeats.",
|
|
210
|
+
optional: true,
|
|
211
|
+
options: RECURRENCE_TYPE_OPTIONS,
|
|
212
|
+
},
|
|
213
|
+
ReminderDateTime: {
|
|
214
|
+
type: "string",
|
|
215
|
+
label: "Reminder Date / Time",
|
|
216
|
+
description: "Represents the time when the reminder is scheduled to fire",
|
|
217
|
+
optional: true,
|
|
218
|
+
},
|
|
219
|
+
Status: {
|
|
220
|
+
type: "string",
|
|
221
|
+
label: "Status",
|
|
222
|
+
description: "The status of the task.",
|
|
223
|
+
optional: true,
|
|
224
|
+
options: [
|
|
225
|
+
"Not Started",
|
|
226
|
+
"In Progress",
|
|
227
|
+
"Completed",
|
|
228
|
+
"Waiting on someone else",
|
|
229
|
+
"Deferred",
|
|
230
|
+
],
|
|
231
|
+
},
|
|
232
|
+
Subject: {
|
|
233
|
+
type: "string",
|
|
234
|
+
label: "Subject",
|
|
235
|
+
description: "The subject line of the task. Limit: 255 characters.",
|
|
236
|
+
optional: true,
|
|
237
|
+
options: [
|
|
238
|
+
"Call",
|
|
239
|
+
"Email",
|
|
240
|
+
"Send Letter",
|
|
241
|
+
"Send Quote",
|
|
242
|
+
"Other",
|
|
243
|
+
],
|
|
244
|
+
},
|
|
24
245
|
},
|
|
25
246
|
};
|