@salesforce/lds-adapters-analytics-unifiedanalytics 1.354.0-dev2 → 1.354.0-dev21

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 (41) hide show
  1. package/dist/es/es2018/analytics-unifiedanalytics.js +1750 -816
  2. package/dist/es/es2018/types/src/generated/adapters/deleteDataAlert.d.ts +14 -0
  3. package/dist/es/es2018/types/src/generated/adapters/getDataAlert.d.ts +28 -0
  4. package/dist/es/es2018/types/src/generated/adapters/getDataAlertCollection.d.ts +29 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getShares.d.ts +2 -0
  6. package/dist/es/es2018/types/src/generated/adapters/postDataAlertRun.d.ts +15 -0
  7. package/dist/es/es2018/types/src/generated/adapters/queryUsers.d.ts +5 -5
  8. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +4 -0
  9. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +8 -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/getTableauRecordsSharesByRecordId.d.ts +2 -0
  14. package/dist/es/es2018/types/src/generated/resources/postTableauDataAlertsRunByDataAlertId.d.ts +12 -0
  15. package/dist/es/es2018/types/src/generated/resources/postTableauUsersQuery.d.ts +5 -5
  16. package/dist/es/es2018/types/src/generated/types/AnalyticsAssetsQueryResultsItemRepresentation.d.ts +4 -1
  17. package/dist/es/es2018/types/src/generated/types/AnalyticsUsersQueryInputRepresentation.d.ts +11 -11
  18. package/dist/es/es2018/types/src/generated/types/DataAlertCollectionRepresentation.d.ts +36 -0
  19. package/dist/es/es2018/types/src/generated/types/DataAlertConditionRepresentation.d.ts +33 -0
  20. package/dist/es/es2018/types/src/generated/types/DataAlertContentRepresentation.d.ts +28 -0
  21. package/dist/es/es2018/types/src/generated/types/DataAlertCronScheduleRepresentation.d.ts +29 -0
  22. package/dist/es/es2018/types/src/generated/types/DataAlertDailyScheduleRepresentation.d.ts +26 -0
  23. package/dist/es/es2018/types/src/generated/types/DataAlertDeliveryConfigurationRepresentation.d.ts +29 -0
  24. package/dist/es/es2018/types/src/generated/types/DataAlertMetricContentRepresentation.d.ts +32 -0
  25. package/dist/es/es2018/types/src/generated/types/DataAlertMetricValueRepresentation.d.ts +51 -0
  26. package/dist/es/es2018/types/src/generated/types/DataAlertNotificationRecipientsRepresentation.d.ts +29 -0
  27. package/dist/es/es2018/types/src/generated/types/DataAlertRawValueRepresentation.d.ts +32 -0
  28. package/dist/es/es2018/types/src/generated/types/DataAlertReceiversRepresentation.d.ts +28 -0
  29. package/dist/es/es2018/types/src/generated/types/DataAlertRepresentation.d.ts +27 -4
  30. package/dist/es/es2018/types/src/generated/types/DataAlertRunOutputRepresentation.d.ts +44 -0
  31. package/dist/es/es2018/types/src/generated/types/DataAlertScheduleRepresentation.d.ts +31 -0
  32. package/dist/es/es2018/types/src/generated/types/DataAlertThresholdsRepresentation.d.ts +32 -0
  33. package/dist/es/es2018/types/src/generated/types/DataAlertValueRepresentation.d.ts +28 -0
  34. package/dist/es/es2018/types/src/generated/types/DataAlertWeeklyScheduleRepresentation.d.ts +29 -0
  35. package/dist/es/es2018/types/src/generated/types/SetupRecordAccessRepresentation.d.ts +8 -1
  36. package/dist/es/es2018/types/src/generated/types/SetupRecordShareUserOrGroupRepresentation.d.ts +40 -0
  37. package/dist/es/es2018/types/src/generated/types/UnifiedFilterRepresentation.d.ts +34 -0
  38. package/package.json +3 -3
  39. package/sfdc/index.js +3369 -2365
  40. package/src/raml/api.raml +362 -7
  41. package/src/raml/luvio.raml +24 -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
@@ -287,18 +290,23 @@ types:
287
290
  searchTerm:
288
291
  description: Search term parameter value
289
292
  type: string
293
+ required: false
290
294
  userCapability:
291
295
  description: User permission
292
296
  type: string
297
+ required: false
293
298
  useAutoSuggest:
294
299
  description: Use auto suggest term parameter value
295
300
  type: boolean
301
+ required: false
296
302
  limit:
297
303
  description: Limit parameter value
298
304
  type: integer
305
+ required: false
299
306
  offset:
300
307
  description: Offset parameter value
301
308
  type: integer
309
+ required: false
302
310
  AnalyticsUsersQueryResultsRepresentation:
303
311
  description: Results of Users Query
304
312
  type: object
@@ -1022,6 +1030,21 @@ types:
1022
1030
  count:
1023
1031
  description: Count of data asset requests
1024
1032
  type: integer
1033
+ DataAlertCollectionRepresentation:
1034
+ description: A collection of unified analytics data alerts.
1035
+ type: object
1036
+ properties:
1037
+ dataAlerts:
1038
+ description: List of data alerts being returned.
1039
+ type: array
1040
+ items:
1041
+ type: DataAlertRepresentation
1042
+ totalSize:
1043
+ description: Total size of data alert array returned.
1044
+ type: integer
1045
+ nextPageUrl:
1046
+ description: Next page url for pagination.
1047
+ type: string | nil
1025
1048
  DataAlertValueInputRepresentation:
1026
1049
  description: Abstract input representation for operands
1027
1050
  type: object
@@ -1262,13 +1285,6 @@ types:
1262
1285
  type: array
1263
1286
  items:
1264
1287
  type: DataAlertReceiversInputRepresentation
1265
- DataAlertRepresentation:
1266
- description: Output of Data Alert
1267
- type: object
1268
- properties:
1269
- id:
1270
- description: Database record id of the data alert.
1271
- type: string
1272
1288
  DataAlertInputRepresentation:
1273
1289
  description: A top level data alert metadata representation.
1274
1290
  type: object
@@ -1339,6 +1355,238 @@ types:
1339
1355
  customLogicalOperation:
1340
1356
  description: logical operations between conditions
1341
1357
  type: string
1358
+ DataAlertRunOutputRepresentation:
1359
+ description: Output of running a Data Alert
1360
+ type: object
1361
+ properties:
1362
+ executedAt:
1363
+ description: Timestamp when the data alert was executed.
1364
+ type: string
1365
+ id:
1366
+ description: Database record id of the data alert.
1367
+ type: string
1368
+ triggered:
1369
+ description: Whether the data alert was triggered by this run.
1370
+ type: boolean
1371
+ DataAlertConditionRepresentation:
1372
+ description: Represents a condition for a data alert
1373
+ type: object
1374
+ properties:
1375
+ leftOperand:
1376
+ description: Left operand of the condition
1377
+ type: DataAlertValueRepresentation
1378
+ operator:
1379
+ description: Operator for the condition
1380
+ type: string
1381
+ enum:
1382
+ - Equals
1383
+ - GreaterOrEqual
1384
+ - GreaterThan
1385
+ - LessOrEqual
1386
+ - LessThan
1387
+ - NotEqual
1388
+ rightOperand:
1389
+ description: Right operand of the condition
1390
+ type: DataAlertValueRepresentation
1391
+ DataAlertContentRepresentation:
1392
+ description: Represents the content for a data alert
1393
+ type: object
1394
+ discriminator: type
1395
+ properties:
1396
+ type:
1397
+ description: Type of content
1398
+ type: string
1399
+ enum:
1400
+ - Metric
1401
+ DataAlertCronScheduleRepresentation:
1402
+ description: Represents the cron schedule for a data alert
1403
+ type: DataAlertScheduleRepresentation
1404
+ properties:
1405
+ cronExpression:
1406
+ description: Cron expression for the schedule
1407
+ type: string
1408
+ DataAlertDailyScheduleRepresentation:
1409
+ description: Represents the daily schedule for a data alert
1410
+ type: DataAlertScheduleRepresentation
1411
+ properties: {}
1412
+ DataAlertDeliveryConfigurationRepresentation:
1413
+ description: Represents the delivery configuration for a data alert
1414
+ type: object
1415
+ properties:
1416
+ receivers:
1417
+ description: Receivers for the data alert
1418
+ type: array
1419
+ items:
1420
+ type: DataAlertReceiversRepresentation
1421
+ DataAlertMetricContentRepresentation:
1422
+ description: Represents the metric content for a data alert
1423
+ type: DataAlertContentRepresentation
1424
+ properties:
1425
+ instruction:
1426
+ description: Instructions to generate notification content
1427
+ type: string
1428
+ modelApiNameOrId:
1429
+ description: Id or API name of the semantic data model
1430
+ type: array
1431
+ items:
1432
+ type: string
1433
+ DataAlertMetricValueRepresentation:
1434
+ description: Represents a metric value for a data alert condition
1435
+ type: DataAlertValueRepresentation
1436
+ properties:
1437
+ factKey:
1438
+ description: fact key
1439
+ type: string
1440
+ filterContext:
1441
+ description: filter context
1442
+ type: array
1443
+ items:
1444
+ type: UnifiedFilterRepresentation
1445
+ insightType:
1446
+ description: type of insight
1447
+ type: string
1448
+ enum:
1449
+ - GoalProgress
1450
+ - Popc
1451
+ - RecordLevelOutliers
1452
+ - RiskyMonopoly
1453
+ - Unspecified
1454
+ - UnusualChange
1455
+ metricId:
1456
+ description: metric or sub-metric Id
1457
+ type: string
1458
+ modelApiNameOrId:
1459
+ description: Id or API name of the semantic data model
1460
+ type: string
1461
+ params:
1462
+ description: additional metric params
1463
+ type: object
1464
+ properties:
1465
+ //:
1466
+ type: string
1467
+ timeContext:
1468
+ description: time filter
1469
+ type: UnifiedFilterRepresentation
1470
+ DataAlertNotificationRecipientsRepresentation:
1471
+ description: Represents notification recipients for a data alert
1472
+ type: DataAlertReceiversRepresentation
1473
+ properties:
1474
+ recipients:
1475
+ description: list of notification recipients
1476
+ type: array
1477
+ items:
1478
+ type: string
1479
+ DataAlertRawValueRepresentation:
1480
+ description: Represents a raw value for a data alert condition
1481
+ type: DataAlertValueRepresentation
1482
+ properties:
1483
+ dataType:
1484
+ description: Data type of the raw value
1485
+ type: string
1486
+ enum:
1487
+ - Number
1488
+ - Percent
1489
+ - Text
1490
+ value:
1491
+ description: Raw value
1492
+ type: string
1493
+ DataAlertReceiversRepresentation:
1494
+ description: Represents receivers for a data alert
1495
+ type: object
1496
+ discriminator: type
1497
+ properties:
1498
+ type:
1499
+ description: delivery type
1500
+ type: string
1501
+ enum:
1502
+ - Notification
1503
+ DataAlertRepresentation:
1504
+ description: Output representation for Data Alert
1505
+ discriminatorValue: DataAlert
1506
+ type: object #Hand-rolled W-18183450: invalid inheritance
1507
+ properties:
1508
+ id:
1509
+ description: ID of the Data Alert
1510
+ type: string
1511
+ alertName:
1512
+ description: User entered alert name.
1513
+ type: string
1514
+ content:
1515
+ description: Notification content configuration. Contains the config needed
1516
+ to generate the notification content.
1517
+ type: DataAlertContentRepresentation
1518
+ deliveryConfigurations:
1519
+ description: Data alert delivery configurations.
1520
+ type: DataAlertDeliveryConfigurationRepresentation
1521
+ createdDate:
1522
+ description: Creation date of the data alert
1523
+ type: string
1524
+ lastModifiedDate:
1525
+ description: Last modified date of the data alert
1526
+ type: string
1527
+ schedule:
1528
+ description: Data alert schedule.
1529
+ type: DataAlertScheduleRepresentation
1530
+ thresholds:
1531
+ description: Thresholds to be evaluated.
1532
+ type: DataAlertThresholdsRepresentation
1533
+ DataAlertScheduleRepresentation:
1534
+ description: Represents the schedule for a data alert
1535
+ type: object
1536
+ discriminator: type
1537
+ properties:
1538
+ hoursOfDay:
1539
+ description: Schedule time
1540
+ type: array
1541
+ items:
1542
+ type: integer
1543
+ type:
1544
+ description: Type of schedule
1545
+ type: string
1546
+ enum:
1547
+ - Cron
1548
+ - Daily
1549
+ - Weekly
1550
+ DataAlertThresholdsRepresentation:
1551
+ description: Represents the thresholds for a data alert
1552
+ type: object
1553
+ properties:
1554
+ conditions:
1555
+ description: Conditions for the data alert
1556
+ type: array
1557
+ items:
1558
+ type: DataAlertConditionRepresentation
1559
+ customLogicalOperation:
1560
+ description: Logical operations between conditions
1561
+ type: string
1562
+ DataAlertValueRepresentation:
1563
+ description: Represents a value for a data alert condition
1564
+ discriminator: type
1565
+ type: object
1566
+ properties:
1567
+ type:
1568
+ description: Type of data value
1569
+ type: string
1570
+ enum:
1571
+ - Insights
1572
+ - RawValue
1573
+ DataAlertWeeklyScheduleRepresentation:
1574
+ description: Represents the weekly schedule for a data alert
1575
+ type: DataAlertScheduleRepresentation
1576
+ properties:
1577
+ daysOfWeek:
1578
+ description: Days of the week for the schedule
1579
+ type: array
1580
+ items:
1581
+ type: string
1582
+ enum:
1583
+ - Friday
1584
+ - Monday
1585
+ - Saturday
1586
+ - Sunday
1587
+ - Thursday
1588
+ - Tuesday
1589
+ - Wednesday
1342
1590
  DataAssetRequestInputRepresentation:
1343
1591
  description: DataAssetRequest input representation in unified analytics.
1344
1592
  type: object
@@ -1922,6 +2170,30 @@ types:
1922
2170
  userOrGroupId:
1923
2171
  description: Id of the User/Group
1924
2172
  type: string
2173
+ SetupRecordShareUserOrGroupRepresentation:
2174
+ description: User or Group Representation
2175
+ type: object
2176
+ properties:
2177
+ id:
2178
+ description: Id of the User or Group
2179
+ type: string
2180
+ required: false
2181
+ displayName:
2182
+ description: Display name of the User or Group
2183
+ type: string
2184
+ required: false
2185
+ profilePhotoUrl:
2186
+ description: Profile Photo URL of the User
2187
+ type: string
2188
+ required: false
2189
+ email:
2190
+ description: Email of the User
2191
+ type: string
2192
+ required: false
2193
+ username:
2194
+ description: Username of the User
2195
+ type: string
2196
+ required: false
1925
2197
  SetupRecordAccessRepresentation:
1926
2198
  description: Record Access mapping for specific UserOrGroup
1927
2199
  discriminatorValue: RecordAccessMappingForUserOrGroup
@@ -1943,6 +2215,12 @@ types:
1943
2215
  userOrGroupId:
1944
2216
  description: User/Group Id
1945
2217
  type: string
2218
+ userOrGroup:
2219
+ description: User/Group
2220
+ type: SetupRecordShareUserOrGroupRepresentation
2221
+ createdDate:
2222
+ description: Created Date
2223
+ type: string
1946
2224
  SetupRecordShareCollectionRepresentation:
1947
2225
  description: A collection of shares for a record
1948
2226
  type: object
@@ -2238,6 +2516,21 @@ types:
2238
2516
  type: array
2239
2517
  items:
2240
2518
  type: any
2519
+ UnifiedFilterRepresentation:
2520
+ description: Unified filter representation.
2521
+ type: object
2522
+ properties:
2523
+ fieldName:
2524
+ description: fieldName
2525
+ type: string
2526
+ operator:
2527
+ description: operator
2528
+ type: string
2529
+ values:
2530
+ description: values
2531
+ type: array
2532
+ items:
2533
+ type: object
2241
2534
  UpdateSetupRecordAccessInputRepresentation:
2242
2535
  description: Update record share input representation
2243
2536
  type: object
@@ -2594,6 +2887,25 @@ types:
2594
2887
  type: string
2595
2888
  required: true
2596
2889
  /dataAlerts:
2890
+ get:
2891
+ displayName: getDataAlertCollection
2892
+ description: Get all available Data Alerts.
2893
+ responses:
2894
+ '200':
2895
+ description: Success
2896
+ body:
2897
+ application/json:
2898
+ type: DataAlertCollectionRepresentation
2899
+ queryParameters:
2900
+ ownerId:
2901
+ type: string
2902
+ required: true
2903
+ limit:
2904
+ type: integer
2905
+ required: false
2906
+ offset:
2907
+ type: integer
2908
+ required: false
2597
2909
  post:
2598
2910
  displayName: postDataAlertCollection
2599
2911
  description: Create a new data alert.
@@ -2613,6 +2925,21 @@ types:
2613
2925
  type: DataAlertInputRepresentation
2614
2926
  (oas-body-name): dataAlert
2615
2927
  /dataAlerts/{dataAlertId}:
2928
+ get:
2929
+ displayName: getDataAlertCollection
2930
+ description: Get all available Data Alerts.
2931
+ responses:
2932
+ '200':
2933
+ description: Success
2934
+ body:
2935
+ application/json:
2936
+ type: DataAlertRepresentation
2937
+ delete:
2938
+ displayName: deleteDataAlert
2939
+ description: Delete a data alert
2940
+ responses:
2941
+ '200':
2942
+ description: Success
2616
2943
  put:
2617
2944
  displayName: updateDataAlert
2618
2945
  description: update a data alert
@@ -2635,6 +2962,20 @@ types:
2635
2962
  dataAlertId:
2636
2963
  type: string
2637
2964
  required: true
2965
+ /dataAlerts/{dataAlertId}/run:
2966
+ post:
2967
+ displayName: postDataAlertRun
2968
+ description: Run a data alert immediately.
2969
+ responses:
2970
+ '200':
2971
+ description: Success
2972
+ body:
2973
+ application/json:
2974
+ type: DataAlertRunOutputRepresentation
2975
+ uriParameters:
2976
+ dataAlertId:
2977
+ type: string
2978
+ required: true
2638
2979
  /data-assets:
2639
2980
  /requests:
2640
2981
  get:
@@ -2941,6 +3282,20 @@ types:
2941
3282
  userOrGroupId:
2942
3283
  type: string
2943
3284
  required: false
3285
+ orderBy:
3286
+ description: Order By value, default is Created Date
3287
+ type: string
3288
+ required: false
3289
+ enum:
3290
+ - CreatedDate
3291
+ - UserDisplayName
3292
+ sortOrder:
3293
+ description: Sort Order value, default is descending
3294
+ type: string
3295
+ required: false
3296
+ enum:
3297
+ - DESC
3298
+ - ASC
2944
3299
  patch:
2945
3300
  displayName: patchSetupRecordShareCollection
2946
3301
  description: Update an record share to be associated with a record Item
@@ -34,11 +34,18 @@ types:
34
34
  DataAssetRequestCountRepresentation:
35
35
  (luvio.ttl): 500
36
36
  (luvio.opaque): true
37
+ DataAlertCollectionRepresentation:
38
+ (luvio.ttl): 500
39
+ (luvio.opaque): true
37
40
  DataAlertRepresentation:
38
41
  (luvio.ttl): 500
39
42
  (luvio.opaque): true
40
43
  (luvio.key):
41
44
  dataAlertId: id
45
+ DataAlertRunOutputRepresentation:
46
+ (luvio.ttl): 100
47
+ (luvio.key):
48
+ dataAlertId: id
42
49
  DataAssetRequestRepresentation:
43
50
  (luvio.ttl): 500
44
51
  (luvio.opaque): true
@@ -405,15 +412,31 @@ types:
405
412
  name: createTemplate
406
413
 
407
414
  /tableau/dataAlerts:
415
+ get:
416
+ (luvio.adapter):
417
+ name: getDataAlertCollection
408
418
  post:
409
419
  (luvio.adapter):
410
420
  name: createDataAlert
411
421
 
412
422
  /tableau/dataAlerts/{dataAlertId}:
423
+ get:
424
+ (luvio.adapter):
425
+ name: getDataAlert
426
+ (luvio.key):
427
+ dataAlertId: urlParams.dataAlertId
428
+ delete:
429
+ (luvio.adapter):
430
+ name: deleteDataAlert
431
+ (luvio.key):
432
+ dataAlertId: urlParams.dataAlertId
413
433
  put:
414
434
  (luvio.adapter):
415
435
  name: updateDataAlert
416
-
436
+ /tableau/dataAlerts/{dataAlertId}/run:
437
+ post:
438
+ (luvio.adapter):
439
+ name: postDataAlertRun
417
440
  /tableau/data-assets/requests:
418
441
  get:
419
442
  (luvio.adapter):