@salesforce/lds-adapters-marketing-prospect 0.1.0-dev1
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/LICENSE.txt +82 -0
- package/dist/es/es2018/marketing-prospect.js +1027 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/getConversionEntries.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/adapters/getPostConversionEntries.d.ts +43 -0
- package/dist/es/es2018/types/src/generated/adapters/getProspectFieldMappings.d.ts +26 -0
- package/dist/es/es2018/types/src/generated/adapters/saveProspectFieldMappings.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +4 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +8 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectProspectConversion.d.ts +20 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectProspectFieldMapping.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectProspectConversion.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectProspectFieldMapping.d.ts +13 -0
- package/dist/es/es2018/types/src/generated/types/ConversionEntriesRepresentation.d.ts +33 -0
- package/dist/es/es2018/types/src/generated/types/ConversionEntryRepresentation.d.ts +59 -0
- package/dist/es/es2018/types/src/generated/types/ConversionPostInputRepresentation.d.ts +86 -0
- package/dist/es/es2018/types/src/generated/types/FieldInfo.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/FieldMapping.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/FieldMappingInput.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/InputObjectFieldMapping.d.ts +33 -0
- package/dist/es/es2018/types/src/generated/types/OutputObjectFieldMapping.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/types/ProspectFieldMappingInputRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/ProspectFieldMappingOutputGetRepresentation.d.ts +39 -0
- package/dist/es/es2018/types/src/generated/types/ProspectFieldMappingOutputPostRepresentation.d.ts +44 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +66 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +1096 -0
- package/src/raml/api.raml +309 -0
- package/src/raml/luvio.raml +62 -0
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
#%RAML 1.0
|
|
2
|
+
securedBy:
|
|
3
|
+
- OAuth2
|
|
4
|
+
title: Salesforce Connect API
|
|
5
|
+
version: '65.0'
|
|
6
|
+
mediaType: application/json
|
|
7
|
+
protocols:
|
|
8
|
+
- https
|
|
9
|
+
baseUri: /services/data/v66.0
|
|
10
|
+
securitySchemes:
|
|
11
|
+
OAuth2:
|
|
12
|
+
type: OAuth 2.0
|
|
13
|
+
settings:
|
|
14
|
+
authorizationUri: https://example.com/oauth/authorize
|
|
15
|
+
accessTokenUri: ''
|
|
16
|
+
authorizationGrants:
|
|
17
|
+
- implicit
|
|
18
|
+
annotationTypes:
|
|
19
|
+
oas-readOnly:
|
|
20
|
+
type: boolean
|
|
21
|
+
allowedTargets: TypeDeclaration
|
|
22
|
+
oas-collectionFormat:
|
|
23
|
+
type: string
|
|
24
|
+
oas-body-name:
|
|
25
|
+
type: string
|
|
26
|
+
allowedTargets: TypeDeclaration
|
|
27
|
+
types:
|
|
28
|
+
ConversionEntriesRepresentation:
|
|
29
|
+
description: Represents the list of entries in the Prospect to Lead Conversion
|
|
30
|
+
type: object
|
|
31
|
+
properties:
|
|
32
|
+
conversionEntries:
|
|
33
|
+
description: The list of entries
|
|
34
|
+
type: array
|
|
35
|
+
items:
|
|
36
|
+
type: ConversionEntryRepresentation
|
|
37
|
+
postConversionEntries:
|
|
38
|
+
description: The list of entries for post request
|
|
39
|
+
type: array
|
|
40
|
+
required: false
|
|
41
|
+
items:
|
|
42
|
+
type: ConversionEntryRepresentation
|
|
43
|
+
ConversionEntryRepresentation:
|
|
44
|
+
description: Represents an individual entry in the Conversion
|
|
45
|
+
type: object
|
|
46
|
+
properties:
|
|
47
|
+
accountId:
|
|
48
|
+
description: accountId
|
|
49
|
+
type: string
|
|
50
|
+
apiErrorCode:
|
|
51
|
+
description: apiErrorCode
|
|
52
|
+
type: string
|
|
53
|
+
contactId:
|
|
54
|
+
description: contactId
|
|
55
|
+
type: string
|
|
56
|
+
exceptionMsg:
|
|
57
|
+
description: exceptionMsg
|
|
58
|
+
type: string
|
|
59
|
+
httpStatusCode:
|
|
60
|
+
description: httpStatusCode
|
|
61
|
+
type: string
|
|
62
|
+
leadId:
|
|
63
|
+
description: leadId
|
|
64
|
+
type: string
|
|
65
|
+
opportunityId:
|
|
66
|
+
description: opportunityId
|
|
67
|
+
type: string
|
|
68
|
+
prospectId:
|
|
69
|
+
description: prospectId
|
|
70
|
+
type: string
|
|
71
|
+
ConversionPostInputRepresentation:
|
|
72
|
+
description: An Input Representation on Prospect Conversion Request
|
|
73
|
+
type: object
|
|
74
|
+
properties:
|
|
75
|
+
accountName:
|
|
76
|
+
description: AccountName input for Conversion to Account
|
|
77
|
+
type: string
|
|
78
|
+
contactFirstName:
|
|
79
|
+
description: FirstName input for Conversion to Contact
|
|
80
|
+
type: string
|
|
81
|
+
contactLastName:
|
|
82
|
+
description: LastName input for Conversion to Contact
|
|
83
|
+
type: string
|
|
84
|
+
contactSalutation:
|
|
85
|
+
description: Salutation input for Conversion to Contact
|
|
86
|
+
type: string
|
|
87
|
+
convertedStatus:
|
|
88
|
+
description: Converted Status
|
|
89
|
+
type: string
|
|
90
|
+
createOpportunity:
|
|
91
|
+
description: Boolean which decides whether the prospect should be allowed to convert to opportunity
|
|
92
|
+
type: boolean
|
|
93
|
+
existingAccountId:
|
|
94
|
+
description: Existing Account ID for conversion to Account
|
|
95
|
+
type: string
|
|
96
|
+
existingContactId:
|
|
97
|
+
description: Existing Contact ID for conversion to Contact
|
|
98
|
+
type: string
|
|
99
|
+
existingLeadId:
|
|
100
|
+
description: Existing Lead ID for conversion to Lead
|
|
101
|
+
type: string
|
|
102
|
+
existingOpportunityId:
|
|
103
|
+
description: Existing Opportunity Id for conversion to Opportunity when CreateOpportunity is true
|
|
104
|
+
type: string
|
|
105
|
+
leadCompany:
|
|
106
|
+
description: Company input for Conversion to Lead
|
|
107
|
+
type: string
|
|
108
|
+
leadFirstName:
|
|
109
|
+
description: FirstName for Conversion to Lead
|
|
110
|
+
type: string
|
|
111
|
+
leadLastName:
|
|
112
|
+
description: LastName input for Conversion to Lead
|
|
113
|
+
type: string
|
|
114
|
+
leadSalutation:
|
|
115
|
+
description: Salutation input for Conversion to Lead
|
|
116
|
+
type: string
|
|
117
|
+
opportunityName:
|
|
118
|
+
description: OpportunityName for conversion to Opportunity when CreateOpportunity is true
|
|
119
|
+
type: string
|
|
120
|
+
ownerId:
|
|
121
|
+
description: Owner ID which will be assigned to the entity post conversion
|
|
122
|
+
type: string
|
|
123
|
+
prospectId:
|
|
124
|
+
description: ProspectId
|
|
125
|
+
type: string
|
|
126
|
+
FieldInfo:
|
|
127
|
+
description: Represents field information
|
|
128
|
+
type: object
|
|
129
|
+
properties:
|
|
130
|
+
apiName:
|
|
131
|
+
description: The API name of the field
|
|
132
|
+
type: string
|
|
133
|
+
dataType:
|
|
134
|
+
description: The data type of the field
|
|
135
|
+
type: string
|
|
136
|
+
label:
|
|
137
|
+
description: The label of the field
|
|
138
|
+
type: string
|
|
139
|
+
qualifiedApiName:
|
|
140
|
+
description: The qualified API name of the field
|
|
141
|
+
type: string
|
|
142
|
+
FieldMapping:
|
|
143
|
+
description: Represents a field mapping between input and output fields
|
|
144
|
+
type: object
|
|
145
|
+
properties:
|
|
146
|
+
inputField:
|
|
147
|
+
description: The input field name
|
|
148
|
+
type: string
|
|
149
|
+
outputField:
|
|
150
|
+
description: The output field name
|
|
151
|
+
type: string
|
|
152
|
+
FieldMappingInput:
|
|
153
|
+
description: Input representation for field mapping between input and output fields
|
|
154
|
+
type: object
|
|
155
|
+
properties:
|
|
156
|
+
inputField:
|
|
157
|
+
description: The input field name
|
|
158
|
+
type: string
|
|
159
|
+
required: false
|
|
160
|
+
outputField:
|
|
161
|
+
description: The output field name
|
|
162
|
+
type: string
|
|
163
|
+
required: false
|
|
164
|
+
InputObjectFieldMapping:
|
|
165
|
+
description: Input representation for field mappings for a specific output object
|
|
166
|
+
type: object
|
|
167
|
+
properties:
|
|
168
|
+
mappedFields:
|
|
169
|
+
description: The list of mapped fields for this output object
|
|
170
|
+
type: array
|
|
171
|
+
items:
|
|
172
|
+
type: FieldMapping
|
|
173
|
+
required: false
|
|
174
|
+
outputObject:
|
|
175
|
+
description: The output object name (e.g., Lead)
|
|
176
|
+
type: string
|
|
177
|
+
required: false
|
|
178
|
+
OutputObjectFieldMapping:
|
|
179
|
+
description: Represents field mappings for a specific output object
|
|
180
|
+
type: object
|
|
181
|
+
additionalProperties: true
|
|
182
|
+
properties:
|
|
183
|
+
mappedFields:
|
|
184
|
+
description: The list of mapped fields for this output object
|
|
185
|
+
type: array
|
|
186
|
+
items:
|
|
187
|
+
type: FieldMapping
|
|
188
|
+
outputObject:
|
|
189
|
+
description: The output object name (e.g., Lead)
|
|
190
|
+
type: string
|
|
191
|
+
unmappedInputObjectFields:
|
|
192
|
+
description: The list of unmapped input object fields for this output object
|
|
193
|
+
type: array
|
|
194
|
+
items:
|
|
195
|
+
type: FieldInfo
|
|
196
|
+
unmappedOutputObjectFields:
|
|
197
|
+
description: The list of unmapped fields for this output object
|
|
198
|
+
type: array
|
|
199
|
+
items:
|
|
200
|
+
type: FieldInfo
|
|
201
|
+
ProspectFieldMappingInputRepresentation:
|
|
202
|
+
description: Input Representation for saving Prospect Field Mappings
|
|
203
|
+
type: object
|
|
204
|
+
properties:
|
|
205
|
+
inputObjectFieldMappings:
|
|
206
|
+
description: List of input object field mappings, each containing mappings for a specific output object
|
|
207
|
+
type: array
|
|
208
|
+
items:
|
|
209
|
+
type: InputObjectFieldMapping
|
|
210
|
+
required: false
|
|
211
|
+
ProspectFieldMappingOutputGetRepresentation:
|
|
212
|
+
description: Represents the mappings and available fields for Prospect to Lead conversion (GET operation)
|
|
213
|
+
type: object
|
|
214
|
+
additionalProperties: true
|
|
215
|
+
properties:
|
|
216
|
+
apiErrorCode:
|
|
217
|
+
description: API error code for detailed error categorization
|
|
218
|
+
type: string
|
|
219
|
+
apiErrorMsg:
|
|
220
|
+
description: API error message providing detailed error information
|
|
221
|
+
type: string
|
|
222
|
+
httpStatusCode:
|
|
223
|
+
description: 'HTTP status code indicating the response status: 200 (success), 204 (no content), 500 (error)'
|
|
224
|
+
type: string
|
|
225
|
+
outputObjectFieldMappings:
|
|
226
|
+
description: The list of output object field mappings with mapped and unmapped fields
|
|
227
|
+
type: array
|
|
228
|
+
items:
|
|
229
|
+
type: OutputObjectFieldMapping
|
|
230
|
+
ProspectFieldMappingOutputPostRepresentation:
|
|
231
|
+
description: Represents the mappings and available fields for Prospect to Lead conversion (POST operation)
|
|
232
|
+
type: object
|
|
233
|
+
additionalProperties: true
|
|
234
|
+
properties:
|
|
235
|
+
apiErrorCode:
|
|
236
|
+
description: API error code for detailed error categorization
|
|
237
|
+
type: string
|
|
238
|
+
apiErrorMsg:
|
|
239
|
+
description: API error message providing detailed error information
|
|
240
|
+
type: string
|
|
241
|
+
httpStatusCode:
|
|
242
|
+
description: 'HTTP status code indicating the response status: 200 (success), 204 (no content), 500 (error)'
|
|
243
|
+
type: string
|
|
244
|
+
/connect:
|
|
245
|
+
/ProspectConversion:
|
|
246
|
+
get:
|
|
247
|
+
displayName: getProspectEntries
|
|
248
|
+
description: Get entries for the Conversation
|
|
249
|
+
responses:
|
|
250
|
+
'200':
|
|
251
|
+
description: Success
|
|
252
|
+
body:
|
|
253
|
+
application/json:
|
|
254
|
+
type: ConversionEntriesRepresentation
|
|
255
|
+
queryParameters:
|
|
256
|
+
contactMap:
|
|
257
|
+
type: string
|
|
258
|
+
required: false
|
|
259
|
+
leadMap:
|
|
260
|
+
type: string
|
|
261
|
+
required: false
|
|
262
|
+
owner:
|
|
263
|
+
type: string
|
|
264
|
+
required: false
|
|
265
|
+
personAccountMap:
|
|
266
|
+
type: string
|
|
267
|
+
required: false
|
|
268
|
+
prospectId:
|
|
269
|
+
type: string
|
|
270
|
+
required: false
|
|
271
|
+
status:
|
|
272
|
+
type: string
|
|
273
|
+
required: false
|
|
274
|
+
post:
|
|
275
|
+
displayName: postProspectEntries
|
|
276
|
+
description: Convert Prospect
|
|
277
|
+
responses:
|
|
278
|
+
'200':
|
|
279
|
+
description: Success
|
|
280
|
+
body:
|
|
281
|
+
application/json:
|
|
282
|
+
type: ConversionEntriesRepresentation
|
|
283
|
+
body:
|
|
284
|
+
application/json:
|
|
285
|
+
type: ConversionPostInputRepresentation
|
|
286
|
+
(oas-body-name): conversionRequestBody
|
|
287
|
+
/ProspectFieldMapping:
|
|
288
|
+
get:
|
|
289
|
+
displayName: getProspectFieldMapping
|
|
290
|
+
description: Get Prospect Field Mappings
|
|
291
|
+
responses:
|
|
292
|
+
'200':
|
|
293
|
+
description: Success
|
|
294
|
+
body:
|
|
295
|
+
application/json:
|
|
296
|
+
type: ProspectFieldMappingOutputGetRepresentation
|
|
297
|
+
post:
|
|
298
|
+
displayName: postProspectFieldMapping
|
|
299
|
+
description: Save Prospect Field Mappings
|
|
300
|
+
responses:
|
|
301
|
+
'200':
|
|
302
|
+
description: Success
|
|
303
|
+
body:
|
|
304
|
+
application/json:
|
|
305
|
+
type: ProspectFieldMappingOutputPostRepresentation
|
|
306
|
+
body:
|
|
307
|
+
application/json:
|
|
308
|
+
type: ProspectFieldMappingInputRepresentation
|
|
309
|
+
(oas-body-name): prospectFieldMappingInput
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
#%RAML 1.0 Overlay
|
|
2
|
+
extends: ./api.raml
|
|
3
|
+
|
|
4
|
+
uses:
|
|
5
|
+
luvio: luvio://annotations.raml
|
|
6
|
+
|
|
7
|
+
(luvio.keyPrefix): 'Prospect'
|
|
8
|
+
(luvio.ttl): 3000000
|
|
9
|
+
|
|
10
|
+
types:
|
|
11
|
+
ConversionEntriesRepresentation:
|
|
12
|
+
(luvio.opaque): true
|
|
13
|
+
(luvio.ttl): 60000
|
|
14
|
+
ConversionEntryRepresentation:
|
|
15
|
+
(luvio.key):
|
|
16
|
+
leadId: leadId
|
|
17
|
+
(luvio.ttl): 60000
|
|
18
|
+
ConversionPostInputRepresentation:
|
|
19
|
+
(luvio.key):
|
|
20
|
+
prospectId: prospectId
|
|
21
|
+
(luvio.ttl): 60000
|
|
22
|
+
FieldInfo:
|
|
23
|
+
(luvio.opaque): true
|
|
24
|
+
(luvio.ttl): 60000
|
|
25
|
+
FieldMapping:
|
|
26
|
+
(luvio.opaque): true
|
|
27
|
+
(luvio.ttl): 60000
|
|
28
|
+
FieldMappingInput:
|
|
29
|
+
(luvio.opaque): true
|
|
30
|
+
(luvio.ttl): 1000
|
|
31
|
+
OutputObjectFieldMapping:
|
|
32
|
+
(luvio.key):
|
|
33
|
+
outputObject: outputObject
|
|
34
|
+
(luvio.ttl): 1000
|
|
35
|
+
InputObjectFieldMapping:
|
|
36
|
+
(luvio.opaque): true
|
|
37
|
+
(luvio.ttl): 1000
|
|
38
|
+
ProspectFieldMappingInputRepresentation:
|
|
39
|
+
(luvio.opaque): true
|
|
40
|
+
(luvio.ttl): 1000
|
|
41
|
+
ProspectFieldMappingOutputGetRepresentation:
|
|
42
|
+
(luvio.opaque): true
|
|
43
|
+
(luvio.ttl): 1000
|
|
44
|
+
ProspectFieldMappingOutputPostRepresentation:
|
|
45
|
+
(luvio.key):
|
|
46
|
+
httpStatusCode: httpStatusCode
|
|
47
|
+
(luvio.ttl): 500
|
|
48
|
+
/connect/ProspectConversion:
|
|
49
|
+
get:
|
|
50
|
+
(luvio.adapter):
|
|
51
|
+
name: getConversionEntries
|
|
52
|
+
post:
|
|
53
|
+
(luvio.method): get
|
|
54
|
+
(luvio.adapter):
|
|
55
|
+
name: getPostConversionEntries
|
|
56
|
+
/connect/ProspectFieldMapping:
|
|
57
|
+
get:
|
|
58
|
+
(luvio.adapter):
|
|
59
|
+
name: getProspectFieldMappings
|
|
60
|
+
post:
|
|
61
|
+
(luvio.adapter):
|
|
62
|
+
name: saveProspectFieldMappings
|