@salesforce/lds-adapters-industries-timeline 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.
Files changed (45) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/industries-timeline.js +2552 -0
  3. package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
  4. package/dist/es/es2018/types/src/generated/adapters/getDataGraphMetadata.d.ts +27 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getDataModelObjects.d.ts +28 -0
  6. package/dist/es/es2018/types/src/generated/adapters/getEngagementEvents.d.ts +29 -0
  7. package/dist/es/es2018/types/src/generated/adapters/getTimelineData.d.ts +33 -0
  8. package/dist/es/es2018/types/src/generated/adapters/getTimelineMetadata.d.ts +27 -0
  9. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +5 -0
  10. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +11 -0
  11. package/dist/es/es2018/types/src/generated/resources/getConnectTimelineCustDataPfrmDataGraphMetadata.d.ts +15 -0
  12. package/dist/es/es2018/types/src/generated/resources/getConnectTimelineCustDataPfrmDataModelObjects.d.ts +16 -0
  13. package/dist/es/es2018/types/src/generated/resources/getConnectTimelineMetadataConfigurations.d.ts +15 -0
  14. package/dist/es/es2018/types/src/generated/resources/getConnectTimelineTimelineDefinitionsCustDataPfrmEventsByTimelineConfigFullNameAndTimelineObjRecordId.d.ts +19 -0
  15. package/dist/es/es2018/types/src/generated/resources/getConnectTimelineTimelineDefinitionsEventsByTimelineConfigFullNameAndTimelineObjRecordId.d.ts +23 -0
  16. package/dist/es/es2018/types/src/generated/types/CdpMetadataOutputRepresentation.d.ts +30 -0
  17. package/dist/es/es2018/types/src/generated/types/DGObjectOutputRepresentation.d.ts +55 -0
  18. package/dist/es/es2018/types/src/generated/types/DataGraphMetadataRepresentation.d.ts +30 -0
  19. package/dist/es/es2018/types/src/generated/types/DataGraphOutputRepresentation.d.ts +53 -0
  20. package/dist/es/es2018/types/src/generated/types/DmoFieldsOutputRepresentation.d.ts +34 -0
  21. package/dist/es/es2018/types/src/generated/types/DmoOutputRepresentation.d.ts +45 -0
  22. package/dist/es/es2018/types/src/generated/types/DmoRelationshipsOutputRepresentation.d.ts +30 -0
  23. package/dist/es/es2018/types/src/generated/types/EngagementEventTimelineDataRepresentation.d.ts +41 -0
  24. package/dist/es/es2018/types/src/generated/types/EngagementEventsRelatedListFieldsRepresentation.d.ts +34 -0
  25. package/dist/es/es2018/types/src/generated/types/EngagementEventsRelatedListRecordsRepresentation.d.ts +29 -0
  26. package/dist/es/es2018/types/src/generated/types/PathToDmoRepresentation.d.ts +30 -0
  27. package/dist/es/es2018/types/src/generated/types/RelationshipTypeOutputRepresentation.d.ts +31 -0
  28. package/dist/es/es2018/types/src/generated/types/TimelineDataCloudEventRepresentation.d.ts +48 -0
  29. package/dist/es/es2018/types/src/generated/types/TimelineDataGetResultRepresentation.d.ts +44 -0
  30. package/dist/es/es2018/types/src/generated/types/TimelineElementRepresentation.d.ts +34 -0
  31. package/dist/es/es2018/types/src/generated/types/TimelineEngagementRelatedListEventsRepresentation.d.ts +36 -0
  32. package/dist/es/es2018/types/src/generated/types/TimelineEntityRepresentation.d.ts +43 -0
  33. package/dist/es/es2018/types/src/generated/types/TimelineErrorRepresentation.d.ts +31 -0
  34. package/dist/es/es2018/types/src/generated/types/TimelineEventFieldRepresentation.d.ts +31 -0
  35. package/dist/es/es2018/types/src/generated/types/TimelineEventRepresentation.d.ts +44 -0
  36. package/dist/es/es2018/types/src/generated/types/TimelineEventTypeMetadataRepresentation.d.ts +60 -0
  37. package/dist/es/es2018/types/src/generated/types/TimelineEventTypeRepresentation.d.ts +31 -0
  38. package/dist/es/es2018/types/src/generated/types/TimelineMetadataDefinitionRepresentation.d.ts +41 -0
  39. package/dist/es/es2018/types/src/generated/types/TimelineMetadataResultRepresentation.d.ts +37 -0
  40. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  41. package/package.json +71 -0
  42. package/sfdc/index.d.ts +1 -0
  43. package/sfdc/index.js +2634 -0
  44. package/src/raml/api.raml +611 -0
  45. package/src/raml/luvio.raml +164 -0
@@ -0,0 +1,611 @@
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/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
+ EngagementEventTimelineDataRepresentation:
29
+ description: Output representation of engagement events to be displayed on the
30
+ timeline component
31
+ type: object
32
+ properties:
33
+ errors:
34
+ description: List of errors
35
+ type: array
36
+ items:
37
+ type: TimelineErrorRepresentation
38
+ eventTypes:
39
+ description: Type of events fetched
40
+ type: array
41
+ items:
42
+ type: TimelineEventTypeRepresentation
43
+ events:
44
+ description: List containing data of all events fetched.
45
+ type: array
46
+ items:
47
+ type: TimelineDataCloudEventRepresentation
48
+ isSuccess:
49
+ description: status flag
50
+ type: boolean
51
+ CdpMetadataOutputRepresentation:
52
+ description: Output representation to fetch all engagement dmos
53
+ type: object
54
+ properties:
55
+ dmos:
56
+ description: get all dmos
57
+ type: array
58
+ items:
59
+ type: DmoOutputRepresentation
60
+ DGObjectOutputRepresentation:
61
+ description: Output representation of DMO node in Datagraph
62
+ type: object
63
+ properties:
64
+ category:
65
+ description: get category
66
+ type: string
67
+ displayName:
68
+ description: get dmo display name
69
+ type: string
70
+ developerName:
71
+ description: get developer name
72
+ type: string
73
+ fields:
74
+ description: get fields
75
+ type: array
76
+ items:
77
+ type: any
78
+ filterCriteria:
79
+ description: get filter criteria
80
+ type: string
81
+ required: false
82
+ memberDmoName:
83
+ description: get member dmo name
84
+ type: string
85
+ paths:
86
+ description: get paths
87
+ type: array
88
+ items:
89
+ type: any
90
+ recencyCriteria:
91
+ description: get recency criteria
92
+ type: array
93
+ items:
94
+ type: any
95
+ relatedObjects:
96
+ description: get related objects
97
+ type: array
98
+ items:
99
+ type: DGObjectOutputRepresentation
100
+ type:
101
+ description: get creation type
102
+ type: string
103
+ DataGraphMetadataRepresentation:
104
+ description: Output representation to fetch all datagraphs and their metadata.
105
+ type: object
106
+ properties:
107
+ dataGraphMetadata:
108
+ description: get all datagraphs
109
+ type: array
110
+ items:
111
+ type: DataGraphOutputRepresentation
112
+ DataGraphOutputRepresentation:
113
+ description: Output representation of a single datagraph
114
+ type: object
115
+ properties:
116
+ dataspaceName:
117
+ description: get dataspace name
118
+ type: string
119
+ description:
120
+ description: get description of a datagraph
121
+ type: string
122
+ required: false
123
+ developerName:
124
+ description: get developer name
125
+ type: string
126
+ dgObject:
127
+ description: get data graph object
128
+ type: DGObjectOutputRepresentation
129
+ idDmoName:
130
+ description: get id dmo name
131
+ type: string
132
+ primaryObjectName:
133
+ description: get primary dmo name
134
+ type: string
135
+ valuesDmoName:
136
+ description: get value dmo name
137
+ type: string
138
+ version:
139
+ description: get version
140
+ type: string
141
+ displayName:
142
+ description: get display name
143
+ type: string
144
+ DmoFieldsOutputRepresentation:
145
+ description: Output representation of each field of DMO
146
+ type: object
147
+ properties:
148
+ displayName:
149
+ description: get display name of a dmo
150
+ type: string
151
+ name:
152
+ description: get name of a dmo
153
+ type: string
154
+ type:
155
+ description: get type of fields
156
+ type: string
157
+ DmoOutputRepresentation:
158
+ description: Output representation of each dmo
159
+ type: object
160
+ properties:
161
+ category:
162
+ description: get category of a dmo
163
+ type: string
164
+ displayName:
165
+ description: get display name of a dmo
166
+ type: string
167
+ fields:
168
+ description: get all fields of a dmo
169
+ type: array
170
+ items:
171
+ type: DmoFieldsOutputRepresentation
172
+ name:
173
+ description: get name of a dmo
174
+ type: string
175
+ referenceModelEntityDeveloperName:
176
+ description: get reference model entity developer name of a dmo
177
+ type: string
178
+ relationships:
179
+ description: get all relationships of a dmo
180
+ type: array
181
+ items:
182
+ type: DmoRelationshipsOutputRepresentation
183
+ DmoRelationshipsOutputRepresentation:
184
+ description: Output representation of relationships for a DMO
185
+ type: object
186
+ properties:
187
+ fromEntity:
188
+ description: 'get fromEntity in relationship '
189
+ type: RelationshipTypeOutputRepresentation
190
+ toEntity:
191
+ description: 'get toEntity in relationship '
192
+ type: RelationshipTypeOutputRepresentation
193
+ EngagementEventsRelatedListFieldsRepresentation:
194
+ description: 'Output representation of FIELDS of Related List of Engagement Events '
195
+ type: object
196
+ properties:
197
+ label:
198
+ description: label of the field
199
+ type: string
200
+ type:
201
+ description: data type of the field
202
+ type: string
203
+ value:
204
+ description: value of the field
205
+ type: string
206
+ EngagementEventsRelatedListRecordsRepresentation:
207
+ description: 'Output representation of RECORDS of Related List of Engagement Events '
208
+ type: object
209
+ properties:
210
+ fields:
211
+ description: 'list of fields for a record '
212
+ type: array
213
+ items:
214
+ type: EngagementEventsRelatedListFieldsRepresentation
215
+ PathToDmoRepresentation:
216
+ description: Output representation for the Path of DMO
217
+ type: object
218
+ properties:
219
+ dmoName:
220
+ description: 'name of the DMO '
221
+ type: string
222
+ pathToDmoRepresentation:
223
+ description: 'path to DMO in JSON '
224
+ type: PathToDmoRepresentation
225
+ required: false
226
+ RelationshipTypeOutputRepresentation:
227
+ description: Output representation of relationship type
228
+ type: object
229
+ properties:
230
+ attribute:
231
+ description: 'get attribute of the entity in Relationship '
232
+ type: string
233
+ name:
234
+ description: 'get name of the entity in Relationship '
235
+ type: string
236
+ TimelineDataCloudEventRepresentation:
237
+ description: Output representation of the Data Cloud Events
238
+ type: object
239
+ properties:
240
+ description:
241
+ description: Description of the Event Entity
242
+ type: string
243
+ required: false
244
+ eventDateTime:
245
+ description: Date Time of the Event
246
+ type: string
247
+ fields:
248
+ description: Fields of the Event
249
+ type: array
250
+ items:
251
+ type: TimelineEventFieldRepresentation
252
+ id:
253
+ description: Record Id
254
+ type: string
255
+ required: false
256
+ relatedListEvents:
257
+ description: list of related Lists data
258
+ type: array
259
+ required: false
260
+ items:
261
+ type: TimelineEngagementRelatedListEventsRepresentation
262
+ title:
263
+ description: Title of the Event Entity
264
+ type: string
265
+ type:
266
+ description: Event Entity Type
267
+ type: string
268
+ TimelineDataGetResultRepresentation:
269
+ description: Output representation of Timeline Data from the GET Resource
270
+ type: object
271
+ properties:
272
+ errors:
273
+ description: TimelineData GET Resource List of Errors
274
+ type: array
275
+ items:
276
+ type: TimelineErrorRepresentation
277
+ required: false
278
+ eventTypes:
279
+ description: TimelineData GET Resource Event Types
280
+ type: array
281
+ items:
282
+ type: TimelineEventTypeRepresentation
283
+ required: false
284
+ events:
285
+ description: TimelineData GET Resource fetch all events
286
+ type: array
287
+ items:
288
+ type: TimelineEventRepresentation
289
+ required: false
290
+ hasMoreData:
291
+ description: TimelineData Get Resource - more Data to be fetched
292
+ type: boolean
293
+ required: false
294
+ isSuccess:
295
+ description: TimelineData get status flag
296
+ type: boolean
297
+ required: false
298
+ TimelineErrorRepresentation:
299
+ description: Error response representation
300
+ type: object
301
+ properties:
302
+ code:
303
+ description: Code for Error
304
+ type: string | nil
305
+ message:
306
+ description: Message Error
307
+ type: string | nil
308
+ TimelineEventFieldRepresentation:
309
+ description: Output representation of the Event Field that is returned as part
310
+ of the GET Timeline Data Result
311
+ type: object
312
+ properties:
313
+ name:
314
+ description: Event Field Name
315
+ type: string | nil
316
+ value:
317
+ description: Event Field Value
318
+ type: string | nil
319
+ TimelineEventRepresentation:
320
+ description: Output representation of the Event that is returned as part of the
321
+ GET Timeline Data Result
322
+ type: object
323
+ properties:
324
+ description:
325
+ description: Description of the Event Entity
326
+ type: string | nil
327
+ eventDateTime:
328
+ description: Date Time of the Event
329
+ type: string | nil
330
+ fields:
331
+ description: Fields of the Event
332
+ type: array
333
+ required: false
334
+ items:
335
+ type: TimelineEventFieldRepresentation
336
+ id:
337
+ description: Record Id
338
+ type: string | nil
339
+ title:
340
+ description: Title of the Event Entity
341
+ type: string | nil
342
+ type:
343
+ description: Event Entity Type
344
+ type: string | nil
345
+ TimelineEventTypeRepresentation:
346
+ description: Output representation of EventType that is returned as part of the
347
+ GET Timeline Data Result
348
+ type: object
349
+ properties:
350
+ eventApiName:
351
+ description: Event API Name
352
+ type: string | nil
353
+ offset:
354
+ description: Timeline Data Offset
355
+ type: integer | nil
356
+ TimelineMetadataResultRepresentation:
357
+ description: Output representation of Timeline Metadata from the GET Resource
358
+ type: object
359
+ properties:
360
+ definitions:
361
+ description: TimelineMetadata GET Resource fetch all definitions
362
+ type: array
363
+ required: false
364
+ items:
365
+ type: TimelineMetadataDefinitionRepresentation
366
+ errors:
367
+ description: TimelineMetadata GET Resource List of Errors
368
+ type: array
369
+ required: false
370
+ items:
371
+ type: TimelineErrorRepresentation
372
+ status:
373
+ description: TimelineMetadata get status
374
+ type: string | nil
375
+ TimelineMetadataDefinitionRepresentation:
376
+ description: Output representation of Timeline Metadata from the GET Resource
377
+ type: object
378
+ properties:
379
+ anchorObject:
380
+ description: TimelineMetadata Anchor Object
381
+ type: TimelineEntityRepresentation
382
+ required: false
383
+ fullName:
384
+ description: TimelineMetadata Configuration Name
385
+ type: string | nil
386
+ eventTypes:
387
+ description: TimelineMetadata GET Resource fetch all event objects
388
+ type: array
389
+ required: false
390
+ items:
391
+ type: TimelineEventTypeMetadataRepresentation
392
+ isActive:
393
+ description: TimelineMetadata active status flag
394
+ type: boolean
395
+ required: false
396
+ masterLabel:
397
+ description: TimelineMetadata Configuration Label
398
+ type: string | nil
399
+ TimelineEntityRepresentation:
400
+ description: Output representation of entity that is returned as part of the GET
401
+ Timeline metadata
402
+ type: object
403
+ properties:
404
+ ageField:
405
+ description: TimelineMetadata Age Field
406
+ type: string | nil
407
+ entityLabel:
408
+ description: EntityLabel
409
+ type: string | nil
410
+ entityName:
411
+ description: Entity Name
412
+ type: string | nil
413
+ icon:
414
+ description: Icon
415
+ type: string | nil
416
+ isAgeFieldSelected:
417
+ description: TimelineMetadata age field selected flag
418
+ type: boolean
419
+ required: false
420
+ source:
421
+ description: Source
422
+ type: string | nil
423
+ TimelineEventTypeMetadataRepresentation:
424
+ description: Output representation of Event Object that is returned as part of
425
+ the GET Timeline metadata
426
+ type: object
427
+ properties:
428
+ anchorReferenceField:
429
+ description: Event Object anchor Reference field
430
+ type: TimelineElementRepresentation
431
+ required: false
432
+ entityApiName:
433
+ description: Event Entity API Name
434
+ type: string | nil
435
+ entityLabel:
436
+ description: Event Entity Label Name
437
+ type: string | nil
438
+ isCreatable:
439
+ description: Whether Event Entity is creatable
440
+ type: boolean
441
+ required: false
442
+ additionalEventData:
443
+ description: Event Entity Additional Data
444
+ type: any
445
+ required: false
446
+ allowNew:
447
+ description: Event Entity allowNew boolean
448
+ type: boolean
449
+ required: false
450
+ fieldsToDisplay:
451
+ description: Event Object fieldsToDisplay List
452
+ type: array
453
+ required: false
454
+ items:
455
+ type: TimelineElementRepresentation
456
+ relatedlistsToDisplay:
457
+ description: Event Object relatedlistsToDisplay List
458
+ type: array
459
+ required: false
460
+ items:
461
+ type: TimelineElementRepresentation
462
+ relationType:
463
+ description: Event Object relation type
464
+ type: string | nil
465
+ sortField:
466
+ description: Event Object sort field
467
+ type: TimelineElementRepresentation
468
+ required: false
469
+ subTitle:
470
+ description: Event Object subTitle field
471
+ type: TimelineElementRepresentation
472
+ required: false
473
+ summaryField:
474
+ description: Event Entity Summary field
475
+ type: TimelineElementRepresentation
476
+ required: false
477
+ title:
478
+ description: Event Object title field
479
+ type: TimelineElementRepresentation
480
+ required: false
481
+ TimelineElementRepresentation:
482
+ description: Output representation of Fields/related Lists that is returned as
483
+ part of the GET Timeline metadata
484
+ type: object
485
+ properties:
486
+ apiName:
487
+ description: Element API Name
488
+ type: string | nil
489
+ dataType:
490
+ description: Element dataType Name
491
+ type: string | nil
492
+ label:
493
+ description: Element label Name
494
+ type: string | nil
495
+ TimelineEngagementRelatedListEventsRepresentation:
496
+ description: Output representation of RELATED LISTS for Engagement Events
497
+ type: object
498
+ properties:
499
+ nameOfDmo:
500
+ description: 'name of the Related List DMO '
501
+ type: string
502
+ pathToDmo:
503
+ description: path till the Related List DMO
504
+ type: PathToDmoRepresentation
505
+ records:
506
+ description: list of records of Related List
507
+ type: array
508
+ items:
509
+ type: EngagementEventsRelatedListRecordsRepresentation
510
+ /connect/timeline:
511
+ /{timelineObjRecordId}/timeline-definitions/{timelineConfigFullName}:
512
+ /cust-data-pfrm/events:
513
+ get:
514
+ description: API to get engagement events data to display on timeline component.
515
+ responses:
516
+ '200':
517
+ description: Success
518
+ body:
519
+ application/json:
520
+ type: EngagementEventTimelineDataRepresentation
521
+ queryParameters:
522
+ dataCloudEventSource:
523
+ type: string
524
+ required: false
525
+ uriParameters:
526
+ timelineConfigFullName:
527
+ type: string
528
+ required: true
529
+ timelineObjRecordId:
530
+ type: string
531
+ required: true
532
+ /events:
533
+ get:
534
+ description: API to get Timeline data
535
+ responses:
536
+ '200':
537
+ description: Success
538
+ body:
539
+ application/json:
540
+ type: TimelineDataGetResultRepresentation
541
+ queryParameters:
542
+ direction:
543
+ type: string
544
+ required: false
545
+ endDate:
546
+ type: string
547
+ required: false
548
+ eventTypeOffsets:
549
+ type: string
550
+ required: false
551
+ eventTypes:
552
+ type: string
553
+ required: false
554
+ startDate:
555
+ type: string
556
+ required: false
557
+ uriParameters:
558
+ timelineConfigFullName:
559
+ type: string
560
+ required: true
561
+ timelineObjRecordId:
562
+ type: string
563
+ required: true
564
+ /cust-data-pfrm:
565
+ /data-graph-metadata:
566
+ get:
567
+ displayName: getTimelineGetDataGraphMetadata
568
+ description: Retrieve data graphs and their metadata, which are built within
569
+ a data space.
570
+ responses:
571
+ '200':
572
+ description: Success
573
+ body:
574
+ application/json:
575
+ type: DataGraphMetadataRepresentation
576
+ queryParameters:
577
+ dataSpaceApiName:
578
+ description: The API name of the data space that contains the data graphs
579
+ to be fetched.
580
+ type: string
581
+ required: false
582
+ /data-model-objects:
583
+ get:
584
+ displayName: getTimelineGetCDPMetadata
585
+ description: Gets data model objects from Data Cloud.
586
+ responses:
587
+ '200':
588
+ description: Success
589
+ body:
590
+ application/json:
591
+ type: CdpMetadataOutputRepresentation
592
+ queryParameters:
593
+ dataSpaceApiName:
594
+ type: string
595
+ required: false
596
+ objectCategory:
597
+ type: string
598
+ required: false
599
+ /metadata/configurations:
600
+ get:
601
+ description: API to get Timeline metadata
602
+ responses:
603
+ '200':
604
+ description: Success
605
+ body:
606
+ application/json:
607
+ type: TimelineMetadataResultRepresentation
608
+ queryParameters:
609
+ fullNames:
610
+ type: string[]
611
+ required: false