@pipedream/salesforce_rest_api 1.2.1 → 1.3.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 (64) hide show
  1. package/README.md +92 -0
  2. package/actions/add-contact-to-campaign/add-contact-to-campaign.mjs +25 -25
  3. package/actions/add-lead-to-campaign/add-lead-to-campaign.mjs +25 -24
  4. package/actions/common/base-create-update.mjs +108 -0
  5. package/actions/convert-soap-xml-to-json/convert-soap-xml-to-json.mjs +11 -3
  6. package/actions/create-account/create-account.mjs +33 -36
  7. package/actions/create-attachment/create-attachment.mjs +36 -50
  8. package/actions/create-campaign/create-campaign.mjs +41 -37
  9. package/actions/create-case/create-case.mjs +41 -37
  10. package/actions/create-casecomment/create-casecomment.mjs +26 -38
  11. package/actions/create-contact/create-contact.mjs +38 -35
  12. package/actions/create-event/create-event.mjs +57 -66
  13. package/actions/create-lead/create-lead.mjs +34 -42
  14. package/actions/create-note/create-note.mjs +24 -43
  15. package/actions/create-opportunity/create-opportunity.mjs +38 -47
  16. package/actions/create-record/create-record.mjs +49 -15
  17. package/actions/create-task/create-task.mjs +50 -42
  18. package/actions/create-user/create-user.mjs +33 -196
  19. package/actions/delete-opportunity/delete-opportunity.mjs +17 -13
  20. package/actions/delete-record/delete-record.mjs +18 -16
  21. package/actions/find-records/find-records.mjs +41 -26
  22. package/actions/insert-blob-data/insert-blob-data.mjs +3 -7
  23. package/actions/post-feed-to-chatter/post-feed-to-chatter.mjs +45 -20
  24. package/actions/search-string/search-string.mjs +22 -20
  25. package/actions/soql-search/soql-search.mjs +13 -8
  26. package/actions/sosl-search/sosl-search.mjs +19 -9
  27. package/actions/update-account/update-account.mjs +54 -41
  28. package/actions/update-contact/update-contact.mjs +59 -40
  29. package/actions/update-opportunity/update-opportunity.mjs +56 -54
  30. package/actions/update-record/update-record.mjs +67 -20
  31. package/common/all-sobjects.mjs +3812 -0
  32. package/common/constants-props.mjs +1539 -0
  33. package/common/props-async-options.mjs +154 -0
  34. package/common/props-utils.mjs +88 -31
  35. package/common/sobjects/account.mjs +349 -22
  36. package/common/sobjects/attachment.mjs +56 -17
  37. package/common/sobjects/campaign.mjs +125 -23
  38. package/common/sobjects/case.mjs +193 -13
  39. package/common/sobjects/caseComment.mjs +28 -4
  40. package/common/sobjects/contact.mjs +207 -43
  41. package/common/sobjects/event.mjs +218 -18
  42. package/common/sobjects/lead.mjs +245 -22
  43. package/common/sobjects/note.mjs +37 -14
  44. package/common/sobjects/opportunity.mjs +148 -22
  45. package/common/sobjects/task.mjs +240 -19
  46. package/common/sobjects/user.mjs +965 -0
  47. package/package.json +2 -2
  48. package/salesforce_rest_api.app.mjs +72 -249
  49. package/sources/common-webhook-methods.mjs +71 -0
  50. package/sources/common.mjs +85 -22
  51. package/sources/new-outbound-message/new-outbound-message.mjs +11 -3
  52. package/sources/new-record-instant/new-record-instant.mjs +77 -6
  53. package/sources/record-deleted-instant/record-deleted-instant.mjs +40 -5
  54. package/sources/record-updated-instant/record-updated-instant.mjs +137 -5
  55. package/actions/common/base.mjs +0 -18
  56. package/actions/find-create-record/find-create-record.mjs +0 -89
  57. package/actions/get-sobject-fields-values/get-sobject-fields-values.mjs +0 -57
  58. package/common/utils.mjs +0 -51
  59. package/sources/common-instant.mjs +0 -146
  60. package/sources/new-record/new-record.mjs +0 -91
  61. package/sources/record-deleted/record-deleted.mjs +0 -51
  62. package/sources/record-updated/record-updated.mjs +0 -94
  63. package/sources/updated-field-on-record/updated-field-on-record.mjs +0 -161
  64. package/sources/updated-field-on-record-instant/updated-field-on-record-instant.mjs +0 -76
@@ -1,25 +1,246 @@
1
- import constants from "../constants.mjs";
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
- ActivityDate: {
5
- type: "string",
6
- label: "Activity date",
7
- description: "Represents the due date of the task. This field has a timestamp that is always set to midnight in the Coordinated Universal Time (UTC) time zone. The timestamp is not relevant; do not attempt to alter it to accommodate time zone differences. Note This field can't be set or updated for a recurring task (IsRecurrence is true).",
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
- Description: {
10
- type: "string",
11
- label: "Description",
12
- description: "Contains a text description of the task.",
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
- Subject: {
15
- type: "string",
16
- label: "Subject",
17
- description: "The subject line of the task, such as “Call” or “Send Quote.” Limit: 255 characters.",
18
- },
19
- TaskSubtype: {
20
- type: "string",
21
- label: "Task sub-type",
22
- description: "Provides standard subtypes to facilitate creating and searching for specific task subtypes. This field isn't updateable. TaskSubtype values: Task Email List Email Cadence Call Note The Cadence subtype is an internal value used by High Velocity Sales, and can't be set manually.",
23
- options: constants.TASK_SUB_TYPES,
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
  };