@salesforce/lds-adapters-industries-timeline 0.131.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.
- package/LICENSE.txt +82 -0
- package/dist/es/es2018/industries-timeline.js +1631 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +66 -0
- package/dist/es/es2018/types/src/generated/adapters/getTimelineData.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/adapters/getTimelineMetadata.d.ts +26 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +5 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectTimelineMetadataConfigurations.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectTimelineTimelineDefinitionsEventsByTimelineConfigFullNameAndTimelineObjRecordId.d.ts +23 -0
- package/dist/es/es2018/types/src/generated/types/TimelineDataGetResultRepresentation.d.ts +45 -0
- package/dist/es/es2018/types/src/generated/types/TimelineElementRepresentation.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/types/TimelineEntityRepresentation.d.ts +44 -0
- package/dist/es/es2018/types/src/generated/types/TimelineErrorRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/TimelineEventFieldRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/TimelineEventRepresentation.d.ts +45 -0
- package/dist/es/es2018/types/src/generated/types/TimelineEventTypeMetadataRepresentation.d.ts +50 -0
- package/dist/es/es2018/types/src/generated/types/TimelineEventTypeRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/TimelineMetadataDefinitionRepresentation.d.ts +42 -0
- package/dist/es/es2018/types/src/generated/types/TimelineMetadataResultRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +39 -0
- package/package.json +64 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +1671 -0
- package/src/raml/api.raml +284 -0
- package/src/raml/luvio.raml +109 -0
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
#%RAML 1.0
|
|
2
|
+
securedBy:
|
|
3
|
+
- OAuth2
|
|
4
|
+
title: Salesforce Connect API
|
|
5
|
+
version: '56.0'
|
|
6
|
+
mediaType: application/json
|
|
7
|
+
protocols:
|
|
8
|
+
- https
|
|
9
|
+
baseUri: /services/data/v58.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
|
+
TimelineDataGetResultRepresentation:
|
|
29
|
+
description: Output representation of Timeline Data from the GET Resource
|
|
30
|
+
type: object
|
|
31
|
+
properties:
|
|
32
|
+
errors:
|
|
33
|
+
description: TimelineData GET Resource List of Errors
|
|
34
|
+
type: array
|
|
35
|
+
items:
|
|
36
|
+
type: TimelineErrorRepresentation
|
|
37
|
+
required: false
|
|
38
|
+
eventTypes:
|
|
39
|
+
description: TimelineData GET Resource Event Types
|
|
40
|
+
type: array
|
|
41
|
+
items:
|
|
42
|
+
type: TimelineEventTypeRepresentation
|
|
43
|
+
required: false
|
|
44
|
+
events:
|
|
45
|
+
description: TimelineData GET Resource fetch all events
|
|
46
|
+
type: array
|
|
47
|
+
items:
|
|
48
|
+
type: TimelineEventRepresentation
|
|
49
|
+
required: false
|
|
50
|
+
hasMoreData:
|
|
51
|
+
description: TimelineData Get Resource - more Data to be fetched
|
|
52
|
+
type: boolean
|
|
53
|
+
required: false
|
|
54
|
+
isSuccess:
|
|
55
|
+
description: TimelineData get status flag
|
|
56
|
+
type: boolean
|
|
57
|
+
required: false
|
|
58
|
+
TimelineErrorRepresentation:
|
|
59
|
+
description: Error response representation
|
|
60
|
+
type: object
|
|
61
|
+
properties:
|
|
62
|
+
code:
|
|
63
|
+
description: Code for Error
|
|
64
|
+
type: string | nil
|
|
65
|
+
message:
|
|
66
|
+
description: Message Error
|
|
67
|
+
type: string | nil
|
|
68
|
+
TimelineEventFieldRepresentation:
|
|
69
|
+
description: Output representation of the Event Field that is returned as part
|
|
70
|
+
of the GET Timeline Data Result
|
|
71
|
+
type: object
|
|
72
|
+
properties:
|
|
73
|
+
name:
|
|
74
|
+
description: Event Field Name
|
|
75
|
+
type: string | nil
|
|
76
|
+
value:
|
|
77
|
+
description: Event Field Value
|
|
78
|
+
type: string | nil
|
|
79
|
+
TimelineEventRepresentation:
|
|
80
|
+
description: Output representation of the Event that is returned as part of the
|
|
81
|
+
GET Timeline Data Result
|
|
82
|
+
type: object
|
|
83
|
+
properties:
|
|
84
|
+
description:
|
|
85
|
+
description: Description of the Event Entity
|
|
86
|
+
type: string | nil
|
|
87
|
+
eventDateTime:
|
|
88
|
+
description: Date Time of the Event
|
|
89
|
+
type: string | nil
|
|
90
|
+
fields:
|
|
91
|
+
description: Fields of the Event
|
|
92
|
+
type: array
|
|
93
|
+
required: false
|
|
94
|
+
items:
|
|
95
|
+
type: TimelineEventFieldRepresentation
|
|
96
|
+
id:
|
|
97
|
+
description: Record Id
|
|
98
|
+
type: string | nil
|
|
99
|
+
title:
|
|
100
|
+
description: Title of the Event Entity
|
|
101
|
+
type: string | nil
|
|
102
|
+
type:
|
|
103
|
+
description: Event Entity Type
|
|
104
|
+
type: string | nil
|
|
105
|
+
TimelineEventTypeRepresentation:
|
|
106
|
+
description: Output representation of EventType that is returned as part of the
|
|
107
|
+
GET Timeline Data Result
|
|
108
|
+
type: object
|
|
109
|
+
properties:
|
|
110
|
+
eventApiName:
|
|
111
|
+
description: Event API Name
|
|
112
|
+
type: string | nil
|
|
113
|
+
offset:
|
|
114
|
+
description: Timeline Data Offset
|
|
115
|
+
type: integer | nil
|
|
116
|
+
TimelineMetadataResultRepresentation:
|
|
117
|
+
description: Output representation of Timeline Metadata from the GET Resource
|
|
118
|
+
type: object
|
|
119
|
+
properties:
|
|
120
|
+
definitions:
|
|
121
|
+
description: TimelineMetadata GET Resource fetch all definitions
|
|
122
|
+
type: array
|
|
123
|
+
required: false
|
|
124
|
+
items:
|
|
125
|
+
type: TimelineMetadataDefinitionRepresentation
|
|
126
|
+
errors:
|
|
127
|
+
description: TimelineMetadata GET Resource List of Errors
|
|
128
|
+
type: array
|
|
129
|
+
required: false
|
|
130
|
+
items:
|
|
131
|
+
type: TimelineErrorRepresentation
|
|
132
|
+
status:
|
|
133
|
+
description: TimelineMetadata get status
|
|
134
|
+
type: string | nil
|
|
135
|
+
TimelineMetadataDefinitionRepresentation:
|
|
136
|
+
description: Output representation of Timeline Metadata from the GET Resource
|
|
137
|
+
type: object
|
|
138
|
+
properties:
|
|
139
|
+
anchorObject:
|
|
140
|
+
description: TimelineMetadata Anchor Object
|
|
141
|
+
type: TimelineEntityRepresentation
|
|
142
|
+
required: false
|
|
143
|
+
fullName:
|
|
144
|
+
description: TimelineMetadata Configuration Name
|
|
145
|
+
type: string | nil
|
|
146
|
+
eventTypes:
|
|
147
|
+
description: TimelineMetadata GET Resource fetch all event objects
|
|
148
|
+
type: array
|
|
149
|
+
required: false
|
|
150
|
+
items:
|
|
151
|
+
type: TimelineEventTypeMetadataRepresentation
|
|
152
|
+
isActive:
|
|
153
|
+
description: TimelineMetadata active status flag
|
|
154
|
+
type: boolean
|
|
155
|
+
required: false
|
|
156
|
+
masterLabel:
|
|
157
|
+
description: TimelineMetadata Configuration Label
|
|
158
|
+
type: string | nil
|
|
159
|
+
TimelineEntityRepresentation:
|
|
160
|
+
description: Output representation of entity that is returned as part of the GET
|
|
161
|
+
Timeline metadata
|
|
162
|
+
type: object
|
|
163
|
+
properties:
|
|
164
|
+
ageField:
|
|
165
|
+
description: TimelineMetadata Age Field
|
|
166
|
+
type: string | nil
|
|
167
|
+
entityLabel:
|
|
168
|
+
description: EntityLabel
|
|
169
|
+
type: string | nil
|
|
170
|
+
entityName:
|
|
171
|
+
description: Entity Name
|
|
172
|
+
type: string | nil
|
|
173
|
+
icon:
|
|
174
|
+
description: Icon
|
|
175
|
+
type: string | nil
|
|
176
|
+
isAgeFieldSelected:
|
|
177
|
+
description: TimelineMetadata age field selected flag
|
|
178
|
+
type: boolean
|
|
179
|
+
required: false
|
|
180
|
+
source:
|
|
181
|
+
description: Source
|
|
182
|
+
type: string | nil
|
|
183
|
+
TimelineEventTypeMetadataRepresentation:
|
|
184
|
+
description: Output representation of Event Object that is returned as part of
|
|
185
|
+
the GET Timeline metadata
|
|
186
|
+
type: object
|
|
187
|
+
properties:
|
|
188
|
+
anchorReferenceField:
|
|
189
|
+
description: Event Object anchor Reference field
|
|
190
|
+
type: TimelineElementRepresentation
|
|
191
|
+
required: false
|
|
192
|
+
entityApiName:
|
|
193
|
+
description: Event Entity API Name
|
|
194
|
+
type: string | nil
|
|
195
|
+
entityLabel:
|
|
196
|
+
description: Event Entity Label Name
|
|
197
|
+
type: string | nil
|
|
198
|
+
fieldsToDisplay:
|
|
199
|
+
description: Event Object fieldsToDisplay List
|
|
200
|
+
type: array
|
|
201
|
+
required: false
|
|
202
|
+
items:
|
|
203
|
+
type: TimelineElementRepresentation
|
|
204
|
+
relatedlistsToDisplay:
|
|
205
|
+
description: Event Object relatedlistsToDisplay List
|
|
206
|
+
type: array
|
|
207
|
+
required: false
|
|
208
|
+
items:
|
|
209
|
+
type: TimelineElementRepresentation
|
|
210
|
+
relationType:
|
|
211
|
+
description: Event Object relation type
|
|
212
|
+
type: string | nil
|
|
213
|
+
sortField:
|
|
214
|
+
description: Event Object sort field
|
|
215
|
+
type: TimelineElementRepresentation
|
|
216
|
+
required: false
|
|
217
|
+
subTitle:
|
|
218
|
+
description: Event Object subTitle field
|
|
219
|
+
type: TimelineElementRepresentation
|
|
220
|
+
required: false
|
|
221
|
+
title:
|
|
222
|
+
description: Event Object title field
|
|
223
|
+
type: TimelineElementRepresentation
|
|
224
|
+
required: false
|
|
225
|
+
TimelineElementRepresentation:
|
|
226
|
+
description: Output representation of Fields/related Lists that is returned as
|
|
227
|
+
part of the GET Timeline metadata
|
|
228
|
+
type: object
|
|
229
|
+
properties:
|
|
230
|
+
apiName:
|
|
231
|
+
description: Element API Name
|
|
232
|
+
type: string | nil
|
|
233
|
+
dataType:
|
|
234
|
+
description: Element dataType Name
|
|
235
|
+
type: string | nil
|
|
236
|
+
label:
|
|
237
|
+
description: Element label Name
|
|
238
|
+
type: string | nil
|
|
239
|
+
/connect/timeline:
|
|
240
|
+
/{timelineObjRecordId}/timeline-definitions/{timelineConfigFullName}/events:
|
|
241
|
+
get:
|
|
242
|
+
description: API to get Timeline data
|
|
243
|
+
responses:
|
|
244
|
+
'200':
|
|
245
|
+
description: Success
|
|
246
|
+
body:
|
|
247
|
+
application/json:
|
|
248
|
+
type: TimelineDataGetResultRepresentation
|
|
249
|
+
queryParameters:
|
|
250
|
+
direction:
|
|
251
|
+
type: string
|
|
252
|
+
required: false
|
|
253
|
+
endDate:
|
|
254
|
+
type: string
|
|
255
|
+
required: false
|
|
256
|
+
eventTypeOffsets:
|
|
257
|
+
type: string
|
|
258
|
+
required: false
|
|
259
|
+
eventTypes:
|
|
260
|
+
type: string
|
|
261
|
+
required: false
|
|
262
|
+
startDate:
|
|
263
|
+
type: string
|
|
264
|
+
required: false
|
|
265
|
+
uriParameters:
|
|
266
|
+
timelineConfigFullName:
|
|
267
|
+
type: string
|
|
268
|
+
required: true
|
|
269
|
+
timelineObjRecordId:
|
|
270
|
+
type: string
|
|
271
|
+
required: true
|
|
272
|
+
/metadata/configurations:
|
|
273
|
+
get:
|
|
274
|
+
description: API to get Timeline metadata
|
|
275
|
+
responses:
|
|
276
|
+
'200':
|
|
277
|
+
description: Success
|
|
278
|
+
body:
|
|
279
|
+
application/json:
|
|
280
|
+
type: TimelineMetadataResultRepresentation
|
|
281
|
+
queryParameters:
|
|
282
|
+
fullNames:
|
|
283
|
+
type: string[]
|
|
284
|
+
required: false
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
#%RAML 1.0 Overlay
|
|
2
|
+
extends: ./api.raml
|
|
3
|
+
|
|
4
|
+
uses:
|
|
5
|
+
luvio: luvio://annotations.raml
|
|
6
|
+
|
|
7
|
+
(luvio.keyPrefix): 'Timeline'
|
|
8
|
+
(luvio.ttl): 360000
|
|
9
|
+
|
|
10
|
+
types:
|
|
11
|
+
TimelineDataGetResultRepresentation:
|
|
12
|
+
(luvio.opaque): true
|
|
13
|
+
(luvio.ttl): 500
|
|
14
|
+
examples:
|
|
15
|
+
validResponse: !include ../wire/getTimelineData/__karma__/data/TimelineEventsResponse.json
|
|
16
|
+
emptyResponse: !include ../wire/getTimelineData/__karma__/data/TimelineEventsEmptyResponse.json
|
|
17
|
+
TimelineMetadataResultRepresentation:
|
|
18
|
+
(luvio.opaque): true
|
|
19
|
+
(luvio.ttl): 500
|
|
20
|
+
examples:
|
|
21
|
+
validMetadataResponse: !include ../wire/getTimelineMetadata/__karma__/data/TimelineMetadataResponse.json
|
|
22
|
+
|
|
23
|
+
/connect/timeline:
|
|
24
|
+
/{timelineObjRecordId}/timeline-definitions/{timelineConfigFullName}/events:
|
|
25
|
+
get:
|
|
26
|
+
(luvio.adapter):
|
|
27
|
+
name: getTimelineData
|
|
28
|
+
tests:
|
|
29
|
+
validConfigs:
|
|
30
|
+
- |
|
|
31
|
+
{
|
|
32
|
+
"timelineObjRecordId": "0DMR00000000gKcOAI",
|
|
33
|
+
"timelineConfigFullName": "HealthTimeline",
|
|
34
|
+
"direction": "prev",
|
|
35
|
+
"endDate": "2025-10-08T01:02:03Z",
|
|
36
|
+
"startDate": "2021-10-08T01:02:03Z"
|
|
37
|
+
}
|
|
38
|
+
- |
|
|
39
|
+
{
|
|
40
|
+
"timelineObjRecordId": "0DMR00000000gKcOAI",
|
|
41
|
+
"timelineConfigFullName": "HealthTimeline",
|
|
42
|
+
"eventTypeOffsets": "5",
|
|
43
|
+
"endDate": "2025-10-08T01:02:03Z",
|
|
44
|
+
"startDate": "2021-10-08T01:02:03Z"
|
|
45
|
+
}
|
|
46
|
+
- |
|
|
47
|
+
{
|
|
48
|
+
"timelineObjRecordId": "0DMR00000000gKcOAI",
|
|
49
|
+
"timelineConfigFullName": "HealthTimeline"
|
|
50
|
+
}
|
|
51
|
+
invalidConfigs:
|
|
52
|
+
- |
|
|
53
|
+
{}
|
|
54
|
+
- |
|
|
55
|
+
{
|
|
56
|
+
"timelineObjRecordId": 1234567890
|
|
57
|
+
}
|
|
58
|
+
- |
|
|
59
|
+
{
|
|
60
|
+
"direction": "prev",
|
|
61
|
+
"endDate": "2025-10-08T01:02:03Z",
|
|
62
|
+
"eventTypeOffsets": "5",
|
|
63
|
+
"eventTypes": "Case",
|
|
64
|
+
"startDate": "2021-10-08T01:02:03Z"
|
|
65
|
+
}
|
|
66
|
+
queryParameters:
|
|
67
|
+
direction:
|
|
68
|
+
examples:
|
|
69
|
+
validResponse: 'next'
|
|
70
|
+
emptyResponse: 'up'
|
|
71
|
+
endDate:
|
|
72
|
+
examples:
|
|
73
|
+
validResponse: '2025-10-08T01:02:03Z'
|
|
74
|
+
emptyResponse: '2025-10-08T01:02:03Z'
|
|
75
|
+
eventTypeOffsets:
|
|
76
|
+
examples:
|
|
77
|
+
validResponse: '5'
|
|
78
|
+
emptyResponse: '5'
|
|
79
|
+
eventTypes:
|
|
80
|
+
examples:
|
|
81
|
+
validResponse: 'Case'
|
|
82
|
+
emptyResponse: 'Case'
|
|
83
|
+
startDate:
|
|
84
|
+
examples:
|
|
85
|
+
validResponse: '2022-10-08T01:02:03Z'
|
|
86
|
+
emptyResponse: '2022-10-08T01:02:03Z'
|
|
87
|
+
uriParameters:
|
|
88
|
+
timelineConfigFullName:
|
|
89
|
+
examples:
|
|
90
|
+
validResponse: 'HealthTimeline'
|
|
91
|
+
emptyResponse: 'HealthTimeline'
|
|
92
|
+
timelineObjRecordId:
|
|
93
|
+
examples:
|
|
94
|
+
validResponse: '0DMR00000000gKcOAI'
|
|
95
|
+
emptyResponse: '0DMR00000000gKcOAI'
|
|
96
|
+
/metadata/configurations:
|
|
97
|
+
get:
|
|
98
|
+
(luvio.adapter):
|
|
99
|
+
name: getTimelineMetadata
|
|
100
|
+
tests:
|
|
101
|
+
validConfigs:
|
|
102
|
+
- |
|
|
103
|
+
{
|
|
104
|
+
"fullNames": ["AccountTimeline"]
|
|
105
|
+
}
|
|
106
|
+
queryParameters:
|
|
107
|
+
fullNames:
|
|
108
|
+
examples:
|
|
109
|
+
validMetadataResponse: ['AccountTimeline', 'CaseTimeline']
|