@salesforce/lds-adapters-analytics-unifiedanalytics 1.332.0-dev16 → 1.332.0-dev18

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 (39) hide show
  1. package/dist/es/es2018/analytics-unifiedanalytics.js +1421 -700
  2. package/dist/es/es2018/types/src/generated/adapters/createDataAlert.d.ts +27 -0
  3. package/dist/es/es2018/types/src/generated/adapters/follow.d.ts +2 -0
  4. package/dist/es/es2018/types/src/generated/adapters/updateDataAlert.d.ts +28 -0
  5. package/dist/es/es2018/types/src/generated/adapters/updateFollowedAsset.d.ts +20 -0
  6. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +3 -0
  7. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +4 -1
  8. package/dist/es/es2018/types/src/generated/resources/patchTableauFollowFollowersFollowsByFollowerId.d.ts +19 -0
  9. package/dist/es/es2018/types/src/generated/resources/postTableauDataAlerts.d.ts +26 -0
  10. package/dist/es/es2018/types/src/generated/resources/postTableauFollowFollowersFollowsByFollowerId.d.ts +2 -0
  11. package/dist/es/es2018/types/src/generated/resources/putTableauDataAlertsByDataAlertId.d.ts +29 -0
  12. package/dist/es/es2018/types/src/generated/types/DataAlertConditionInputRepresentation.d.ts +38 -0
  13. package/dist/es/es2018/types/src/generated/types/DataAlertContentInputRepresentation.d.ts +33 -0
  14. package/dist/es/es2018/types/src/generated/types/DataAlertCronScheduleInputRepresentation.d.ts +30 -0
  15. package/dist/es/es2018/types/src/generated/types/DataAlertDailyScheduleInputRepresentation.d.ts +26 -0
  16. package/dist/es/es2018/types/src/generated/types/DataAlertDeliveryConfigurationInputRepresentation.d.ts +30 -0
  17. package/dist/es/es2018/types/src/generated/types/DataAlertInputRepresentation.d.ts +47 -0
  18. package/dist/es/es2018/types/src/generated/types/DataAlertMetricContentInputRepresentation.d.ts +33 -0
  19. package/dist/es/es2018/types/src/generated/types/DataAlertMetricValueInputRepresentation.d.ts +55 -0
  20. package/dist/es/es2018/types/src/generated/types/DataAlertNotificationRecipientsInputRepresentation.d.ts +30 -0
  21. package/dist/es/es2018/types/src/generated/types/DataAlertRawValueInputRepresentation.d.ts +33 -0
  22. package/dist/es/es2018/types/src/generated/types/DataAlertReceiversInputRepresentation.d.ts +33 -0
  23. package/dist/es/es2018/types/src/generated/types/DataAlertRepresentation.d.ts +38 -0
  24. package/dist/es/es2018/types/src/generated/types/DataAlertScheduleInputRepresentation.d.ts +38 -0
  25. package/dist/es/es2018/types/src/generated/types/DataAlertThresholdsInputRepresentation.d.ts +32 -0
  26. package/dist/es/es2018/types/src/generated/types/DataAlertValueInputRepresentation.d.ts +34 -0
  27. package/dist/es/es2018/types/src/generated/types/DataAlertValueRightOperandInputRepresentation.d.ts +28 -0
  28. package/dist/es/es2018/types/src/generated/types/DataAlertWeeklyScheduleInputRepresentation.d.ts +30 -0
  29. package/dist/es/es2018/types/src/generated/types/DataAssetRequestRepresentation.d.ts +3 -3
  30. package/dist/es/es2018/types/src/generated/types/FollowInputRepresentation.d.ts +4 -1
  31. package/dist/es/es2018/types/src/generated/types/FollowedAssetRepresentation.d.ts +5 -1
  32. package/dist/es/es2018/types/src/generated/types/FollowedTimeRangeRepresentation.d.ts +31 -0
  33. package/dist/es/es2018/types/src/generated/types/FollowerAssetRepresentation.d.ts +5 -1
  34. package/dist/es/es2018/types/src/generated/types/UnifiedFilterInputRepresentation.d.ts +33 -0
  35. package/dist/es/es2018/types/src/generated/types/UpdateFollowedAssetInputRepresentation.d.ts +37 -0
  36. package/package.json +3 -3
  37. package/sfdc/index.js +2021 -1291
  38. package/src/raml/api.raml +419 -1
  39. package/src/raml/luvio.raml +18 -0
package/src/raml/api.raml CHANGED
@@ -336,6 +336,34 @@ types:
336
336
  enum:
337
337
  - Group
338
338
  - User
339
+ followedTimeRange:
340
+ description: Time Range filter representation
341
+ type: FollowedTimeRangeRepresentation
342
+ required: false
343
+ UpdateFollowedAssetInputRepresentation:
344
+ description: Update followed asset input representation in unified analytics.
345
+ type: object
346
+ properties:
347
+ assetId:
348
+ description: Asset ID
349
+ 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
+ required: false
364
+ followedTimeRange:
365
+ description: Time Range filter representation
366
+ type: FollowedTimeRangeRepresentation
339
367
  FollowedAssetCollectionRepresentation:
340
368
  description: Collection of Followed Assets
341
369
  type: object
@@ -402,6 +430,20 @@ types:
402
430
  enum:
403
431
  - SemanticMetricDefinition
404
432
  - SemanticSubMetric
433
+ followedTimeRange:
434
+ description: Time Range filter representation
435
+ type: FollowedTimeRangeRepresentation | nil
436
+ required: false
437
+ FollowedTimeRangeRepresentation:
438
+ description: Followed Time Range Representation
439
+ type: object
440
+ properties:
441
+ fieldName: string
442
+ operator: string # SemanticFilterOperatorTypeEnum
443
+ values:
444
+ type: array
445
+ items:
446
+ type: string | number
405
447
  FollowerAssetRepresentation:
406
448
  description: Represent follower and asset mapping
407
449
  type: object
@@ -430,6 +472,10 @@ types:
430
472
  createdDate:
431
473
  description: Created date
432
474
  type: string
475
+ followedTimeRange:
476
+ description: Time Range filter representation
477
+ type: FollowedTimeRangeRepresentation | nil
478
+ required: false
433
479
  FollowerCollectionRepresentation:
434
480
  description: Collection of Followers
435
481
  type: object
@@ -972,6 +1018,323 @@ types:
972
1018
  count:
973
1019
  description: Count of data asset requests
974
1020
  type: integer
1021
+ DataAlertValueInputRepresentation:
1022
+ description: Abstract input representation for operands
1023
+ type: object
1024
+ discriminator: type
1025
+ properties:
1026
+ type:
1027
+ description: type of operand
1028
+ type: string
1029
+ enum:
1030
+ - Insights
1031
+ - RawValue
1032
+ DataAlertValueRightOperandInputRepresentation:
1033
+ description: Abstract input representation for operands
1034
+ type: object
1035
+ discriminator: type
1036
+ properties:
1037
+ type:
1038
+ description: type of operand
1039
+ type: string
1040
+ enum:
1041
+ - Insights
1042
+ - RawValue
1043
+ DataAlertRawValueInputRepresentation:
1044
+ description: Abstract input representation for raw value operands
1045
+ type: DataAlertValueInputRepresentation
1046
+ discriminatorValue: RawValue
1047
+ properties:
1048
+ dataType:
1049
+ description: 'data types for the raw value: percentage, currency etc. '
1050
+ type: string
1051
+ enum:
1052
+ - Number
1053
+ - Currency
1054
+ - Percentage
1055
+ value:
1056
+ description: raw value of the operand
1057
+ type: string
1058
+ DataAlertMetricValueInputRepresentation:
1059
+ description: Input representation for metric operands
1060
+ type: DataAlertValueInputRepresentation
1061
+ discriminatorValue: Insights
1062
+ properties:
1063
+ metricId:
1064
+ description: metric or sub-metric Id
1065
+ type: string
1066
+ insightType:
1067
+ description: type of insight
1068
+ type: string
1069
+ enum:
1070
+ - GoalProgress
1071
+ - Popc
1072
+ - RecordLevelOutliers
1073
+ - RiskyMonopoly
1074
+ - Unspecified
1075
+ - UnusualChange
1076
+ params:
1077
+ description: additional metric params
1078
+ type: object
1079
+ properties:
1080
+ //:
1081
+ type: string
1082
+ factKey:
1083
+ description: fact key
1084
+ type: string
1085
+ timeContext:
1086
+ description: time filter
1087
+ type: UnifiedFilterInputRepresentation # TODO Hand-rolled @W-17927490
1088
+ filterContext:
1089
+ description: filter context
1090
+ type: array
1091
+ items:
1092
+ type: UnifiedFilterInputRepresentation # TODO Hand-rolled @W-17927490
1093
+ modelApiNameOrId:
1094
+ description: Id or API name of the semantic data model
1095
+ type: string
1096
+ sdmId:
1097
+ description: SDM ID of the semantic data model
1098
+ type: string
1099
+ UnifiedFilterInputRepresentation:
1100
+ description: Message representing the Unified Filter.
1101
+ type: object
1102
+ properties:
1103
+ fieldName:
1104
+ description: FieldName
1105
+ type: string
1106
+ required: false
1107
+ operator:
1108
+ enum:
1109
+ - Equals
1110
+ - DoesNotEquals
1111
+ - EqualsIgnoreCase
1112
+ - DoesNotEqualsIgnoreCase
1113
+ - Between
1114
+ - LessThan
1115
+ - LessThanOrEqualTo
1116
+ - GreaterThan
1117
+ - GreaterThanOrEqualTo
1118
+ - IsEmpty
1119
+ - IsNotEmpty
1120
+ - Contains
1121
+ - ContainsIgnoreCase
1122
+ - NotContains
1123
+ - NotContainsIgnoreCase
1124
+ - StartsWith
1125
+ - StartsWithIgnoreCase
1126
+ - DoesNotStartWith
1127
+ - DoesNotStartWithIgnoreCase
1128
+ - EndsWith
1129
+ - EndsWithIgnoreCase
1130
+ - DoesNotEndWith
1131
+ - DoesNotEndWithIgnoreCase
1132
+ - IsNull
1133
+ - IsNotNull
1134
+ - LastNDays
1135
+ - NextNDays
1136
+ - PreviousWeek
1137
+ - CurrentWeek
1138
+ - NextWeek
1139
+ - PreviousMonth
1140
+ - CurrentMonth
1141
+ - NextMonth
1142
+ - PreviousQuarter
1143
+ - CurrentQuarter
1144
+ - NextQuarter
1145
+ - PreviousYear
1146
+ - CurrentYear
1147
+ - NextYear
1148
+ - PreviousFiscalQuarter
1149
+ - CurrentFiscalQuarter
1150
+ - NextFiscalQuarter
1151
+ - PreviousFiscalYear
1152
+ - CurrentFiscalYear
1153
+ - NextFiscalYear
1154
+ - PreviousMonthToDate
1155
+ - CurrentMonthToDate
1156
+ - PreviousQuarterToDate
1157
+ - CurrentQuarterToDate
1158
+ - PreviousYearToDate
1159
+ - CurrentYearToDate
1160
+ - PreviousFiscalQuarterToDate
1161
+ - CurrentFiscalQuarterToDate
1162
+ - PreviousFiscalYearToDate
1163
+ - CurrentFiscalYearToDate
1164
+ - Values
1165
+ type: string
1166
+ (amf-format): enum
1167
+ required: false
1168
+ values:
1169
+ description: An array of values. All values must be of the same type. We support strings, numbers, and booleans.
1170
+ type: array
1171
+ items:
1172
+ (amf-xone):
1173
+ - type: number
1174
+ - type: string
1175
+ - type: boolean
1176
+ type: any
1177
+ required: false
1178
+ DataAlertConditionInputRepresentation:
1179
+ description: A single condition representation
1180
+ type: object
1181
+ properties:
1182
+ leftOperand:
1183
+ description: Left operand of the condition
1184
+ type: DataAlertValueInputRepresentation # TODO Hand-rolled @W-17927490
1185
+ rightOperand:
1186
+ description: Right operand of the condition
1187
+ type: DataAlertValueRightOperandInputRepresentation # TODO Hand-rolled @W-17927490
1188
+ operator:
1189
+ description: operator of the condition
1190
+ type: string
1191
+ enum:
1192
+ - Equals
1193
+ - GreaterOrEqual
1194
+ - GreaterThan
1195
+ - LessOrEqual
1196
+ - LessThan
1197
+ - NotEqual
1198
+ DataAlertWeeklyScheduleInputRepresentation:
1199
+ description: Input representation for weekly alert alert schedule
1200
+ type: DataAlertScheduleInputRepresentation
1201
+ discriminatorValue: Weekly
1202
+ properties:
1203
+ daysOfWeek:
1204
+ description: days of the week to receive data alerts
1205
+ type: array
1206
+ items:
1207
+ type: string
1208
+ enum:
1209
+ - Friday
1210
+ - Monday
1211
+ - Saturday
1212
+ - Sunday
1213
+ - Thursday
1214
+ - Tuesday
1215
+ - Wednesday
1216
+ DataAlertContentInputRepresentation:
1217
+ description: Input representation for data alert content
1218
+ type: object
1219
+ discriminator: type
1220
+ properties:
1221
+ type:
1222
+ description: content type
1223
+ type: string
1224
+ enum:
1225
+ - Metric
1226
+ DataAlertMetricContentInputRepresentation:
1227
+ description: Input representation for content based on metric value
1228
+ type: DataAlertContentInputRepresentation
1229
+ discriminatorValue: Metric
1230
+ properties:
1231
+ instruction:
1232
+ description: input string instruction
1233
+ type: string
1234
+ modelApiNameOrId:
1235
+ description: Id or API name of the semantic data model
1236
+ type: array
1237
+ items:
1238
+ type: string
1239
+ DataAlertCronScheduleInputRepresentation:
1240
+ description: Input representation for cron based data alert schedule
1241
+ type: DataAlertScheduleInputRepresentation
1242
+ discriminatorValue: Cron
1243
+ properties:
1244
+ cronExpression:
1245
+ description: cron expression
1246
+ type: string
1247
+ DataAlertDailyScheduleInputRepresentation:
1248
+ description: Input representation for daily alert schedule
1249
+ type: DataAlertScheduleInputRepresentation
1250
+ discriminatorValue: Daily
1251
+ properties: {}
1252
+ DataAlertDeliveryConfigurationInputRepresentation:
1253
+ description: Delivery configuration for data alerts.
1254
+ type: object
1255
+ properties:
1256
+ receivers:
1257
+ description: list of recipients to be notified.
1258
+ type: array
1259
+ items:
1260
+ type: DataAlertReceiversInputRepresentation
1261
+ DataAlertRepresentation:
1262
+ description: Output of Data Alert
1263
+ type: object
1264
+ properties:
1265
+ id:
1266
+ description: Database record id of the data alert.
1267
+ type: string
1268
+ DataAlertInputRepresentation:
1269
+ description: A top level data alert metadata representation.
1270
+ type: object
1271
+ properties:
1272
+ analysisUtterance:
1273
+ description: user entered utterance for generating analysis.
1274
+ type: string
1275
+ content:
1276
+ type: DataAlertContentInputRepresentation # TODO Hand-rolled @W-17927490
1277
+ deliveryConfigurations:
1278
+ type: DataAlertDeliveryConfigurationInputRepresentation # TODO Hand-rolled @W-17927490
1279
+ schedule:
1280
+ description: data alert schedule
1281
+ type: DataAlertScheduleInputRepresentation # TODO Hand-rolled @W-17927490
1282
+ thresholds:
1283
+ description: thresholds to be evaluated
1284
+ type: DataAlertThresholdsInputRepresentation # TODO Hand-rolled @W-17927490
1285
+ utterance:
1286
+ description: user entered utterance
1287
+ type: string
1288
+ DataAlertNotificationRecipientsInputRepresentation:
1289
+ description: 'List of UNS recipients for Data alerts. May contain user or group
1290
+ Ids. '
1291
+ type: DataAlertReceiversInputRepresentation
1292
+ discriminatorValue: Notification
1293
+ properties:
1294
+ recipients:
1295
+ description: group or user Ids
1296
+ type: array
1297
+ items:
1298
+ type: string
1299
+ DataAlertReceiversInputRepresentation:
1300
+ description: Input representation for data alert recipients
1301
+ type: object
1302
+ discriminator: type
1303
+ properties:
1304
+ type:
1305
+ description: delivery type
1306
+ type: string
1307
+ enum:
1308
+ - Notification
1309
+ DataAlertScheduleInputRepresentation:
1310
+ description: Input representation for data alert schedule
1311
+ discriminator: type
1312
+ type: object
1313
+ properties:
1314
+ hoursOfDay:
1315
+ description: schedule time
1316
+ type: array
1317
+ items:
1318
+ type: integer
1319
+ type:
1320
+ description: schedule type
1321
+ type: string
1322
+ enum:
1323
+ - Cron
1324
+ - Daily
1325
+ - Weekly
1326
+ DataAlertThresholdsInputRepresentation:
1327
+ description: Data alert thresholds input representation.
1328
+ type: object
1329
+ properties:
1330
+ conditions:
1331
+ description: list of conditions to be evaluated.
1332
+ type: array
1333
+ items:
1334
+ type: DataAlertConditionInputRepresentation
1335
+ customLogicalOperation:
1336
+ description: logical operations between conditions
1337
+ type: string
975
1338
  DataAssetRequestInputRepresentation:
976
1339
  description: DataAssetRequest input representation in unified analytics.
977
1340
  type: object
@@ -1147,7 +1510,7 @@ types:
1147
1510
  type: string | nil
1148
1511
  workspaceAssetId:
1149
1512
  description: workspaceAssetId in the workspace
1150
- type: string
1513
+ type: string | nil
1151
1514
 
1152
1515
  TableauMarketplaceListingInstallationProgressResponse:
1153
1516
  description: Representation of tableau marketplace's listing installation progress
@@ -2178,6 +2541,48 @@ types:
2178
2541
  dashboardIdOrApiName:
2179
2542
  type: string
2180
2543
  required: true
2544
+ /dataAlerts:
2545
+ post:
2546
+ displayName: postDataAlertCollection
2547
+ description: Create a new data alert.
2548
+ responses:
2549
+ '200':
2550
+ description: Success
2551
+ body:
2552
+ application/json:
2553
+ type: DataAlertRepresentation
2554
+ queryParameters:
2555
+ runNow:
2556
+ description: optional parameter to trigger data alert flow to run immediately.
2557
+ type: boolean
2558
+ required: false
2559
+ body:
2560
+ application/json:
2561
+ type: DataAlertInputRepresentation
2562
+ (oas-body-name): dataAlert
2563
+ /dataAlerts/{dataAlertId}:
2564
+ put:
2565
+ displayName: updateDataAlert
2566
+ description: update a data alert
2567
+ responses:
2568
+ '200':
2569
+ description: Success
2570
+ body:
2571
+ application/json:
2572
+ type: DataAlertRepresentation
2573
+ queryParameters:
2574
+ runNow:
2575
+ description: optional parameter to trigger data alert flow to run immediately.
2576
+ type: boolean
2577
+ required: false
2578
+ body:
2579
+ application/json:
2580
+ type: DataAlertInputRepresentation
2581
+ (oas-body-name): dataAlert
2582
+ uriParameters:
2583
+ dataAlertId:
2584
+ type: string
2585
+ required: true
2181
2586
  /data-assets:
2182
2587
  /requests:
2183
2588
  get:
@@ -2325,6 +2730,19 @@ types:
2325
2730
  application/json:
2326
2731
  type: FollowInputRepresentation
2327
2732
  (oas-body-name): followerAsset
2733
+ patch:
2734
+ displayName: patchFollow
2735
+ description: Update a followed asset
2736
+ responses:
2737
+ '200':
2738
+ description: Success
2739
+ body:
2740
+ application/json:
2741
+ type: FollowerAssetRepresentation
2742
+ body:
2743
+ application/json:
2744
+ type: UpdateFollowedAssetInputRepresentation
2745
+ (oas-body-name): followerAsset
2328
2746
  uriParameters:
2329
2747
  followerId:
2330
2748
  type: string
@@ -34,6 +34,11 @@ types:
34
34
  DataAssetRequestCountRepresentation:
35
35
  (luvio.ttl): 500
36
36
  (luvio.opaque): true
37
+ DataAlertRepresentation:
38
+ (luvio.ttl): 500
39
+ (luvio.opaque): true
40
+ (luvio.key):
41
+ dataAlertId: id
37
42
  DataAssetRequestRepresentation:
38
43
  (luvio.ttl): 500
39
44
  (luvio.opaque): true
@@ -194,6 +199,9 @@ types:
194
199
  post:
195
200
  (luvio.adapter):
196
201
  name: follow
202
+ patch:
203
+ (luvio.adapter):
204
+ name: updateFollowedAsset
197
205
 
198
206
  /tableau/follow/followers/{followerId}/follows/{followedAssetId}:
199
207
  delete:
@@ -381,6 +389,16 @@ types:
381
389
  (luvio.adapter):
382
390
  name: getMarketplaceListingInstallationProgress
383
391
 
392
+ /tableau/dataAlerts:
393
+ post:
394
+ (luvio.adapter):
395
+ name: createDataAlert
396
+
397
+ /tableau/dataAlerts/{dataAlertId}:
398
+ put:
399
+ (luvio.adapter):
400
+ name: updateDataAlert
401
+
384
402
  /tableau/data-assets/requests:
385
403
  get:
386
404
  (luvio.adapter):