@salesforce/lds-adapters-analytics-unifiedanalytics 1.354.0-dev1 → 1.354.0-dev10

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 (42) hide show
  1. package/dist/es/es2018/analytics-unifiedanalytics.js +3583 -2429
  2. package/dist/es/es2018/types/src/generated/adapters/createTemplate.d.ts +22 -0
  3. package/dist/es/es2018/types/src/generated/adapters/deleteDataAlert.d.ts +14 -0
  4. package/dist/es/es2018/types/src/generated/adapters/getDataAlert.d.ts +28 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getDataAlertCollection.d.ts +29 -0
  6. package/dist/es/es2018/types/src/generated/adapters/postDataAlertRun.d.ts +15 -0
  7. package/dist/es/es2018/types/src/generated/adapters/updateFollowedAsset.d.ts +5 -6
  8. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +5 -0
  9. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +9 -1
  10. package/dist/es/es2018/types/src/generated/resources/deleteTableauDataAlertsByDataAlertId.d.ts +12 -0
  11. package/dist/es/es2018/types/src/generated/resources/getTableauDataAlerts.d.ts +17 -0
  12. package/dist/es/es2018/types/src/generated/resources/getTableauDataAlertsByDataAlertId.d.ts +16 -0
  13. package/dist/es/es2018/types/src/generated/resources/patchTableauFollowFollowersFollowsByFollowerId.d.ts +5 -6
  14. package/dist/es/es2018/types/src/generated/resources/postTableauDataAlertsRunByDataAlertId.d.ts +12 -0
  15. package/dist/es/es2018/types/src/generated/resources/postTableauMarketplaceTemplates.d.ts +19 -0
  16. package/dist/es/es2018/types/src/generated/types/AnalyticsAssetsQueryResultsItemRepresentation.d.ts +4 -1
  17. package/dist/es/es2018/types/src/generated/types/DataAlertCollectionRepresentation.d.ts +45 -0
  18. package/dist/es/es2018/types/src/generated/types/DataAlertConditionRepresentation.d.ts +33 -0
  19. package/dist/es/es2018/types/src/generated/types/DataAlertContentRepresentation.d.ts +28 -0
  20. package/dist/es/es2018/types/src/generated/types/DataAlertCronScheduleRepresentation.d.ts +29 -0
  21. package/dist/es/es2018/types/src/generated/types/DataAlertDailyScheduleRepresentation.d.ts +26 -0
  22. package/dist/es/es2018/types/src/generated/types/DataAlertDeliveryConfigurationRepresentation.d.ts +29 -0
  23. package/dist/es/es2018/types/src/generated/types/DataAlertMetricContentRepresentation.d.ts +32 -0
  24. package/dist/es/es2018/types/src/generated/types/DataAlertMetricValueRepresentation.d.ts +51 -0
  25. package/dist/es/es2018/types/src/generated/types/DataAlertNotificationRecipientsRepresentation.d.ts +29 -0
  26. package/dist/es/es2018/types/src/generated/types/DataAlertRawValueRepresentation.d.ts +32 -0
  27. package/dist/es/es2018/types/src/generated/types/DataAlertReceiversRepresentation.d.ts +28 -0
  28. package/dist/es/es2018/types/src/generated/types/DataAlertRepresentation.d.ts +21 -4
  29. package/dist/es/es2018/types/src/generated/types/DataAlertRunOutputRepresentation.d.ts +44 -0
  30. package/dist/es/es2018/types/src/generated/types/DataAlertScheduleRepresentation.d.ts +31 -0
  31. package/dist/es/es2018/types/src/generated/types/DataAlertThresholdsRepresentation.d.ts +32 -0
  32. package/dist/es/es2018/types/src/generated/types/DataAlertValueRepresentation.d.ts +28 -0
  33. package/dist/es/es2018/types/src/generated/types/DataAlertWeeklyScheduleRepresentation.d.ts +29 -0
  34. package/dist/es/es2018/types/src/generated/types/FollowerAssetCollectionRepresentation.d.ts +42 -0
  35. package/dist/es/es2018/types/src/generated/types/MarketplaceTemplateInputRepresentation.d.ts +47 -0
  36. package/dist/es/es2018/types/src/generated/types/MarketplaceTemplateOutputRepresentation.d.ts +38 -0
  37. package/dist/es/es2018/types/src/generated/types/UnifiedFilterRepresentation.d.ts +34 -0
  38. package/dist/es/es2018/types/src/generated/types/UpdateFollowedAssetInputRepresentation.d.ts +6 -9
  39. package/package.json +3 -3
  40. package/sfdc/index.js +5288 -4061
  41. package/src/raml/api.raml +372 -21
  42. package/src/raml/luvio.raml +38 -1
package/src/raml/api.raml CHANGED
@@ -177,6 +177,9 @@ types:
177
177
  workspace?:
178
178
  description: The workspace of the asset.
179
179
  type: AnalyticsAssetsQueryResultsWorkspaceRepresentation | nil
180
+ assetParentIdentifier?:
181
+ description: Id of an asset's parent
182
+ type: string | nil
180
183
  AnalyticsAssetsQueryInputRepresentation:
181
184
  description: Unified Analytics Assets Query Input Representation
182
185
  type: object
@@ -347,24 +350,15 @@ types:
347
350
  assetId:
348
351
  description: Asset ID
349
352
  type: string
350
- assetType:
351
- description: Followed asset type
352
- type: string
353
- enum:
354
- - SemanticMetricDefinition
355
- - SemanticSubMetric
356
- required: false
357
- followerType:
358
- description: Follower type
359
- type: string
360
- enum:
361
- - Group
362
- - User
363
353
  required: false
364
354
  followedTimeRange:
365
355
  description: Time Range filter representation
366
356
  type: FollowedTimeRangeRepresentation | nil
367
357
  required: false
358
+ updateAllAssets:
359
+ description: Whether or not to update all followed assets
360
+ type: boolean
361
+ required: false
368
362
  FollowedAssetCollectionRepresentation:
369
363
  description: Collection of Followed Assets
370
364
  type: object
@@ -445,6 +439,18 @@ types:
445
439
  type: array
446
440
  items:
447
441
  type: string | number
442
+ FollowerAssetCollectionRepresentation:
443
+ description: Collection of Follower Assets
444
+ type: object
445
+ properties:
446
+ followerId:
447
+ description: ID of the follower
448
+ type: string
449
+ followerAssets:
450
+ description: List of follower assets being returned
451
+ type: array
452
+ items:
453
+ type: FollowerAssetRepresentation
448
454
  FollowerAssetRepresentation:
449
455
  description: Represent follower and asset mapping
450
456
  type: object
@@ -1019,6 +1025,21 @@ types:
1019
1025
  count:
1020
1026
  description: Count of data asset requests
1021
1027
  type: integer
1028
+ DataAlertCollectionRepresentation:
1029
+ description: A collection of unified analytics data alerts.
1030
+ type: object
1031
+ properties:
1032
+ dataAlerts:
1033
+ description: List of data alerts being returned.
1034
+ type: array
1035
+ items:
1036
+ type: DataAlertRepresentation
1037
+ totalSize:
1038
+ description: Total size of data alert array returned.
1039
+ type: integer
1040
+ nextPageUrl:
1041
+ description: Next page url for pagination.
1042
+ type: string
1022
1043
  DataAlertValueInputRepresentation:
1023
1044
  description: Abstract input representation for operands
1024
1045
  type: object
@@ -1259,13 +1280,6 @@ types:
1259
1280
  type: array
1260
1281
  items:
1261
1282
  type: DataAlertReceiversInputRepresentation
1262
- DataAlertRepresentation:
1263
- description: Output of Data Alert
1264
- type: object
1265
- properties:
1266
- id:
1267
- description: Database record id of the data alert.
1268
- type: string
1269
1283
  DataAlertInputRepresentation:
1270
1284
  description: A top level data alert metadata representation.
1271
1285
  type: object
@@ -1336,6 +1350,232 @@ types:
1336
1350
  customLogicalOperation:
1337
1351
  description: logical operations between conditions
1338
1352
  type: string
1353
+ DataAlertRunOutputRepresentation:
1354
+ description: Output of running a Data Alert
1355
+ type: object
1356
+ properties:
1357
+ executedAt:
1358
+ description: Timestamp when the data alert was executed.
1359
+ type: string
1360
+ id:
1361
+ description: Database record id of the data alert.
1362
+ type: string
1363
+ triggered:
1364
+ description: Whether the data alert was triggered by this run.
1365
+ type: boolean
1366
+ DataAlertConditionRepresentation:
1367
+ description: Represents a condition for a data alert
1368
+ type: object
1369
+ properties:
1370
+ leftOperand:
1371
+ description: Left operand of the condition
1372
+ type: DataAlertValueRepresentation
1373
+ operator:
1374
+ description: Operator for the condition
1375
+ type: string
1376
+ enum:
1377
+ - Equals
1378
+ - GreaterOrEqual
1379
+ - GreaterThan
1380
+ - LessOrEqual
1381
+ - LessThan
1382
+ - NotEqual
1383
+ rightOperand:
1384
+ description: Right operand of the condition
1385
+ type: DataAlertValueRepresentation
1386
+ DataAlertContentRepresentation:
1387
+ description: Represents the content for a data alert
1388
+ type: object
1389
+ discriminator: type
1390
+ properties:
1391
+ type:
1392
+ description: Type of content
1393
+ type: string
1394
+ enum:
1395
+ - Metric
1396
+ DataAlertCronScheduleRepresentation:
1397
+ description: Represents the cron schedule for a data alert
1398
+ type: DataAlertScheduleRepresentation
1399
+ properties:
1400
+ cronExpression:
1401
+ description: Cron expression for the schedule
1402
+ type: string
1403
+ DataAlertDailyScheduleRepresentation:
1404
+ description: Represents the daily schedule for a data alert
1405
+ type: DataAlertScheduleRepresentation
1406
+ properties: {}
1407
+ DataAlertDeliveryConfigurationRepresentation:
1408
+ description: Represents the delivery configuration for a data alert
1409
+ type: object
1410
+ properties:
1411
+ receivers:
1412
+ description: Receivers for the data alert
1413
+ type: array
1414
+ items:
1415
+ type: DataAlertReceiversRepresentation
1416
+ DataAlertMetricContentRepresentation:
1417
+ description: Represents the metric content for a data alert
1418
+ type: DataAlertContentRepresentation
1419
+ properties:
1420
+ instruction:
1421
+ description: Instructions to generate notification content
1422
+ type: string
1423
+ modelApiNameOrId:
1424
+ description: Id or API name of the semantic data model
1425
+ type: array
1426
+ items:
1427
+ type: string
1428
+ DataAlertMetricValueRepresentation:
1429
+ description: Represents a metric value for a data alert condition
1430
+ type: DataAlertValueRepresentation
1431
+ properties:
1432
+ factKey:
1433
+ description: fact key
1434
+ type: string
1435
+ filterContext:
1436
+ description: filter context
1437
+ type: array
1438
+ items:
1439
+ type: UnifiedFilterRepresentation
1440
+ insightType:
1441
+ description: type of insight
1442
+ type: string
1443
+ enum:
1444
+ - GoalProgress
1445
+ - Popc
1446
+ - RecordLevelOutliers
1447
+ - RiskyMonopoly
1448
+ - Unspecified
1449
+ - UnusualChange
1450
+ metricId:
1451
+ description: metric or sub-metric Id
1452
+ type: string
1453
+ modelApiNameOrId:
1454
+ description: Id or API name of the semantic data model
1455
+ type: string
1456
+ params:
1457
+ description: additional metric params
1458
+ type: object
1459
+ properties:
1460
+ //:
1461
+ type: string
1462
+ timeContext:
1463
+ description: time filter
1464
+ type: UnifiedFilterRepresentation
1465
+ DataAlertNotificationRecipientsRepresentation:
1466
+ description: Represents notification recipients for a data alert
1467
+ type: DataAlertReceiversRepresentation
1468
+ properties:
1469
+ recipients:
1470
+ description: list of notification recipients
1471
+ type: array
1472
+ items:
1473
+ type: string
1474
+ DataAlertRawValueRepresentation:
1475
+ description: Represents a raw value for a data alert condition
1476
+ type: DataAlertValueRepresentation
1477
+ properties:
1478
+ dataType:
1479
+ description: Data type of the raw value
1480
+ type: string
1481
+ enum:
1482
+ - Number
1483
+ - Percent
1484
+ - Text
1485
+ value:
1486
+ description: Raw value
1487
+ type: string
1488
+ DataAlertReceiversRepresentation:
1489
+ description: Represents receivers for a data alert
1490
+ type: object
1491
+ discriminator: type
1492
+ properties:
1493
+ type:
1494
+ description: delivery type
1495
+ type: string
1496
+ enum:
1497
+ - Notification
1498
+ DataAlertRepresentation:
1499
+ description: Output representation for Data Alert
1500
+ discriminatorValue: DataAlert
1501
+ type: object #Hand-rolled W-18183450: invalid inheritance
1502
+ properties:
1503
+ id:
1504
+ description: ID of the Data Alert
1505
+ type: string
1506
+ alertName:
1507
+ description: User entered alert name.
1508
+ type: string
1509
+ content:
1510
+ description: Notification content configuration. Contains the config needed
1511
+ to generate the notification content.
1512
+ type: DataAlertContentRepresentation
1513
+ deliveryConfigurations:
1514
+ description: Data alert delivery configurations.
1515
+ type: DataAlertDeliveryConfigurationRepresentation
1516
+ schedule:
1517
+ description: Data alert schedule.
1518
+ type: DataAlertScheduleRepresentation
1519
+ thresholds:
1520
+ description: Thresholds to be evaluated.
1521
+ type: DataAlertThresholdsRepresentation
1522
+ DataAlertScheduleRepresentation:
1523
+ description: Represents the schedule for a data alert
1524
+ type: object
1525
+ discriminator: type
1526
+ properties:
1527
+ hoursOfDay:
1528
+ description: Schedule time
1529
+ type: array
1530
+ items:
1531
+ type: integer
1532
+ type:
1533
+ description: Type of schedule
1534
+ type: string
1535
+ enum:
1536
+ - Cron
1537
+ - Daily
1538
+ - Weekly
1539
+ DataAlertThresholdsRepresentation:
1540
+ description: Represents the thresholds for a data alert
1541
+ type: object
1542
+ properties:
1543
+ conditions:
1544
+ description: Conditions for the data alert
1545
+ type: array
1546
+ items:
1547
+ type: DataAlertConditionRepresentation
1548
+ customLogicalOperation:
1549
+ description: Logical operations between conditions
1550
+ type: string
1551
+ DataAlertValueRepresentation:
1552
+ description: Represents a value for a data alert condition
1553
+ discriminator: type
1554
+ type: object
1555
+ properties:
1556
+ type:
1557
+ description: Type of data value
1558
+ type: string
1559
+ enum:
1560
+ - Insights
1561
+ - RawValue
1562
+ DataAlertWeeklyScheduleRepresentation:
1563
+ description: Represents the weekly schedule for a data alert
1564
+ type: DataAlertScheduleRepresentation
1565
+ properties:
1566
+ daysOfWeek:
1567
+ description: Days of the week for the schedule
1568
+ type: array
1569
+ items:
1570
+ type: string
1571
+ enum:
1572
+ - Friday
1573
+ - Monday
1574
+ - Saturday
1575
+ - Sunday
1576
+ - Thursday
1577
+ - Tuesday
1578
+ - Wednesday
1339
1579
  DataAssetRequestInputRepresentation:
1340
1580
  description: DataAssetRequest input representation in unified analytics.
1341
1581
  type: object
@@ -1808,6 +2048,40 @@ types:
1808
2048
  iconName:
1809
2049
  description: Icon Name of the File
1810
2050
  type: string
2051
+ MarketplaceTemplateInputRepresentation:
2052
+ description: Input representation for Marketplace Template Info.
2053
+ type: object
2054
+ properties:
2055
+ assetIdOrApiName:
2056
+ description: The source asset Id.
2057
+ type: string
2058
+ assetType:
2059
+ description: The source asset type.
2060
+ type: string
2061
+ description:
2062
+ description: The Template description.
2063
+ type: string
2064
+ label:
2065
+ description: The label of the template.
2066
+ type: string
2067
+ name:
2068
+ description: The Template name.
2069
+ type: string
2070
+ tags:
2071
+ description: The tags associated with the template.
2072
+ type: object
2073
+ properties:
2074
+ //:
2075
+ type: array
2076
+ items:
2077
+ type: string
2078
+ MarketplaceTemplateOutputRepresentation:
2079
+ description: Id of template created
2080
+ type: object
2081
+ properties:
2082
+ id:
2083
+ description: The ID of template
2084
+ type: string
1811
2085
  OrgCollectionRepresentation:
1812
2086
  description: A collection of unified analytics orgs.
1813
2087
  type: object
@@ -2201,6 +2475,21 @@ types:
2201
2475
  type: array
2202
2476
  items:
2203
2477
  type: any
2478
+ UnifiedFilterRepresentation:
2479
+ description: Unified filter representation.
2480
+ type: object
2481
+ properties:
2482
+ fieldName:
2483
+ description: fieldName
2484
+ type: string
2485
+ operator:
2486
+ description: operator
2487
+ type: string
2488
+ values:
2489
+ description: values
2490
+ type: array
2491
+ items:
2492
+ type: object
2204
2493
  UpdateSetupRecordAccessInputRepresentation:
2205
2494
  description: Update record share input representation
2206
2495
  type: object
@@ -2557,6 +2846,25 @@ types:
2557
2846
  type: string
2558
2847
  required: true
2559
2848
  /dataAlerts:
2849
+ get:
2850
+ displayName: getDataAlertCollection
2851
+ description: Get all available Data Alerts.
2852
+ responses:
2853
+ '200':
2854
+ description: Success
2855
+ body:
2856
+ application/json:
2857
+ type: DataAlertCollectionRepresentation
2858
+ queryParameters:
2859
+ ownerId:
2860
+ type: string
2861
+ required: true
2862
+ limit:
2863
+ type: integer
2864
+ required: false
2865
+ offset:
2866
+ type: integer
2867
+ required: false
2560
2868
  post:
2561
2869
  displayName: postDataAlertCollection
2562
2870
  description: Create a new data alert.
@@ -2576,6 +2884,21 @@ types:
2576
2884
  type: DataAlertInputRepresentation
2577
2885
  (oas-body-name): dataAlert
2578
2886
  /dataAlerts/{dataAlertId}:
2887
+ get:
2888
+ displayName: getDataAlertCollection
2889
+ description: Get all available Data Alerts.
2890
+ responses:
2891
+ '200':
2892
+ description: Success
2893
+ body:
2894
+ application/json:
2895
+ type: DataAlertRepresentation
2896
+ delete:
2897
+ displayName: deleteDataAlert
2898
+ description: Delete a data alert
2899
+ responses:
2900
+ '200':
2901
+ description: Success
2579
2902
  put:
2580
2903
  displayName: updateDataAlert
2581
2904
  description: update a data alert
@@ -2598,6 +2921,20 @@ types:
2598
2921
  dataAlertId:
2599
2922
  type: string
2600
2923
  required: true
2924
+ /dataAlerts/{dataAlertId}/run:
2925
+ post:
2926
+ displayName: postDataAlertRun
2927
+ description: Run a data alert immediately.
2928
+ responses:
2929
+ '200':
2930
+ description: Success
2931
+ body:
2932
+ application/json:
2933
+ type: DataAlertRunOutputRepresentation
2934
+ uriParameters:
2935
+ dataAlertId:
2936
+ type: string
2937
+ required: true
2601
2938
  /data-assets:
2602
2939
  /requests:
2603
2940
  get:
@@ -2753,7 +3090,7 @@ types:
2753
3090
  description: Success
2754
3091
  body:
2755
3092
  application/json:
2756
- type: FollowerAssetRepresentation
3093
+ type: FollowerAssetCollectionRepresentation
2757
3094
  body:
2758
3095
  application/json:
2759
3096
  type: UpdateFollowedAssetInputRepresentation
@@ -3335,3 +3672,17 @@ types:
3335
3672
  installationId:
3336
3673
  type: string
3337
3674
  required: true
3675
+ /tableau/marketplace/templates:
3676
+ post:
3677
+ displayName: postMarketplaceTemplateBuilder
3678
+ description: Create a new template.
3679
+ responses:
3680
+ '200':
3681
+ description: Success
3682
+ body:
3683
+ application/json:
3684
+ type: MarketplaceTemplateOutputRepresentation
3685
+ body:
3686
+ application/json:
3687
+ type: MarketplaceTemplateInputRepresentation
3688
+ (oas-body-name): templateInput
@@ -34,11 +34,17 @@ types:
34
34
  DataAssetRequestCountRepresentation:
35
35
  (luvio.ttl): 500
36
36
  (luvio.opaque): true
37
+ DataAlertCollectionRepresentation:
38
+ (luvio.ttl): 500
37
39
  DataAlertRepresentation:
38
40
  (luvio.ttl): 500
39
41
  (luvio.opaque): true
40
42
  (luvio.key):
41
43
  dataAlertId: id
44
+ DataAlertRunOutputRepresentation:
45
+ (luvio.ttl): 100
46
+ (luvio.key):
47
+ dataAlertId: id
42
48
  DataAssetRequestRepresentation:
43
49
  (luvio.ttl): 500
44
50
  (luvio.opaque): true
@@ -66,6 +72,11 @@ types:
66
72
  (luvio.opaque): true
67
73
  (luvio.key):
68
74
  followedAssetId: id
75
+ FollowerAssetCollectionRepresentation:
76
+ (luvio.ttl): 500
77
+ (luvio.opaque): true
78
+ (luvio.key):
79
+ followerId: followerId
69
80
  FollowerAssetRepresentation:
70
81
  (luvio.ttl): 500
71
82
  (luvio.opaque): true
@@ -124,6 +135,11 @@ types:
124
135
  (luvio.opaque): true
125
136
  (luvio.key):
126
137
  id: id
138
+ MarketplaceTemplateOutputRepresentation:
139
+ (luvio.ttl): 1000
140
+ (luvio.opaque): true
141
+ (luvio.key):
142
+ id: id
127
143
  TableauExternalMonitoringEventItemRepresentation:
128
144
  (luvio.ttl): 1000
129
145
  (luvio.opaque): true
@@ -389,16 +405,37 @@ types:
389
405
  (luvio.adapter):
390
406
  name: getMarketplaceListingInstallationProgress
391
407
 
408
+ /tableau/marketplace/templates:
409
+ post:
410
+ (luvio.adapter):
411
+ name: createTemplate
412
+
392
413
  /tableau/dataAlerts:
414
+ get:
415
+ (luvio.adapter):
416
+ name: getDataAlertCollection
393
417
  post:
394
418
  (luvio.adapter):
395
419
  name: createDataAlert
396
420
 
397
421
  /tableau/dataAlerts/{dataAlertId}:
422
+ get:
423
+ (luvio.adapter):
424
+ name: getDataAlert
425
+ (luvio.key):
426
+ dataAlertId: urlParams.dataAlertId
427
+ delete:
428
+ (luvio.adapter):
429
+ name: deleteDataAlert
430
+ (luvio.key):
431
+ dataAlertId: urlParams.dataAlertId
398
432
  put:
399
433
  (luvio.adapter):
400
434
  name: updateDataAlert
401
-
435
+ /tableau/dataAlerts/{dataAlertId}/run:
436
+ post:
437
+ (luvio.adapter):
438
+ name: postDataAlertRun
402
439
  /tableau/data-assets/requests:
403
440
  get:
404
441
  (luvio.adapter):