@salesforce/lds-adapters-sfap-analytics-insights 1.298.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/sfap-analytics-insights.js +2767 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/createInsightsBatch.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/adapters/generateInsights.d.ts +18 -0
- package/dist/es/es2018/types/src/generated/adapters/getInsightsBatch.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getMetricFilterValues.d.ts +25 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +4 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +7 -0
- package/dist/es/es2018/types/src/generated/resources/getBatchesByBatch_id.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/postBatches.d.ts +14 -0
- package/dist/es/es2018/types/src/generated/resources/postFilterValues.d.ts +22 -0
- package/dist/es/es2018/types/src/generated/resources/postV1GenerateBundle.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/types/BatchInput.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/BatchOptions.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/CompareConfig.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/types/Error.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/ExtensionOptions.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/Filter.d.ts +36 -0
- package/dist/es/es2018/types/src/generated/types/GenerateInsightBatchRequest.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/GenerateInsightBatchResponse.d.ts +47 -0
- package/dist/es/es2018/types/src/generated/types/GenerateInsightBundleRequest.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/GenerateInsightBundleResponse.d.ts +45 -0
- package/dist/es/es2018/types/src/generated/types/GetFilterValuesRequest.d.ts +45 -0
- package/dist/es/es2018/types/src/generated/types/GetFilterValuesResponse.d.ts +43 -0
- package/dist/es/es2018/types/src/generated/types/GetFilterValuesResponse_CategoricalValues.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/GetInsightBatchResponse.d.ts +47 -0
- package/dist/es/es2018/types/src/generated/types/InputMetric.d.ts +40 -0
- package/dist/es/es2018/types/src/generated/types/Insight.d.ts +49 -0
- package/dist/es/es2018/types/src/generated/types/InsightBundle.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/types/InsightBundleInput.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/InsightBundleOptions.d.ts +40 -0
- package/dist/es/es2018/types/src/generated/types/InsightFeedbackMetadata.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/InsightGroup.d.ts +36 -0
- package/dist/es/es2018/types/src/generated/types/InsightResponse.d.ts +33 -0
- package/dist/es/es2018/types/src/generated/types/InsightsOptions.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/InsightsOptions_InsightSetting.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/Measure.d.ts +33 -0
- package/dist/es/es2018/types/src/generated/types/MeasurementPeriod.d.ts +41 -0
- package/dist/es/es2018/types/src/generated/types/MetricDefinition.d.ts +42 -0
- package/dist/es/es2018/types/src/generated/types/MetricInstance.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/MetricMetadata.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/NullableValue.d.ts +36 -0
- package/dist/es/es2018/types/src/generated/types/Overview.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/OverviewResponse.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/RepresentationOptions.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/RepresentationOptions_NumberUnits.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/SemanticDataModel.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/types/SemanticField.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/SummarizationOptions.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/Summary.d.ts +37 -0
- package/dist/es/es2018/types/src/generated/types/SummaryResponse.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/TableField.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/TimeDimension.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +66 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +2852 -0
- package/src/raml/api.raml +723 -0
- package/src/raml/luvio.raml +47 -0
|
@@ -0,0 +1,723 @@
|
|
|
1
|
+
#%RAML 1.0
|
|
2
|
+
types:
|
|
3
|
+
SummaryResponse:
|
|
4
|
+
type: object
|
|
5
|
+
properties:
|
|
6
|
+
result: Summary
|
|
7
|
+
error:
|
|
8
|
+
type: Error
|
|
9
|
+
required: false
|
|
10
|
+
InsightGroup:
|
|
11
|
+
type: object
|
|
12
|
+
properties:
|
|
13
|
+
type:
|
|
14
|
+
type: string
|
|
15
|
+
required: false
|
|
16
|
+
insights:
|
|
17
|
+
type: array
|
|
18
|
+
items: InsightResponse
|
|
19
|
+
required: false
|
|
20
|
+
overviews:
|
|
21
|
+
type: array
|
|
22
|
+
items: OverviewResponse
|
|
23
|
+
required: false
|
|
24
|
+
error:
|
|
25
|
+
type: Error
|
|
26
|
+
required: false
|
|
27
|
+
GetFilterValuesResponse_CategoricalValues:
|
|
28
|
+
type: object
|
|
29
|
+
properties:
|
|
30
|
+
values:
|
|
31
|
+
description: |-
|
|
32
|
+
Single page of field values. grpc built-in generic value that covers all data types.
|
|
33
|
+
Support both text field(e.g. State, City) and discrete numeric field(E.g. Postal Code)
|
|
34
|
+
type: array
|
|
35
|
+
items:
|
|
36
|
+
type: string | number | boolean | nil
|
|
37
|
+
required: false
|
|
38
|
+
InsightsOptions_InsightSetting:
|
|
39
|
+
type: object
|
|
40
|
+
properties:
|
|
41
|
+
type:
|
|
42
|
+
enum:
|
|
43
|
+
- INSIGHT_TYPE_UNSPECIFIED
|
|
44
|
+
- INSIGHT_TYPE_RISKY_MONOPOLY
|
|
45
|
+
- INSIGHT_TYPE_TOP_DRIVERS
|
|
46
|
+
- INSIGHT_TYPE_RECORD_LEVEL_OUTLIERS
|
|
47
|
+
- INSIGHT_TYPE_CURRENT_TREND
|
|
48
|
+
- INSIGHT_TYPE_NEW_TREND
|
|
49
|
+
- INSIGHT_TYPE_TOP_DIMENSION_MEMBER_MOVERS
|
|
50
|
+
- INSIGHT_TYPE_METRIC_FORECAST
|
|
51
|
+
- INSIGHT_TYPE_BOTTOM_CONTRIBUTORS
|
|
52
|
+
- INSIGHT_TYPE_TOP_DETRACTORS
|
|
53
|
+
type: string
|
|
54
|
+
(amf-format): enum
|
|
55
|
+
required: false
|
|
56
|
+
disabled:
|
|
57
|
+
type: boolean
|
|
58
|
+
required: false
|
|
59
|
+
MetricMetadata:
|
|
60
|
+
type: object
|
|
61
|
+
properties:
|
|
62
|
+
name:
|
|
63
|
+
type: string
|
|
64
|
+
required: false
|
|
65
|
+
definitionId:
|
|
66
|
+
type: string
|
|
67
|
+
required: false
|
|
68
|
+
InsightResponse:
|
|
69
|
+
type: object
|
|
70
|
+
properties:
|
|
71
|
+
result: Insight
|
|
72
|
+
error:
|
|
73
|
+
type: Error
|
|
74
|
+
required: false
|
|
75
|
+
insightType:
|
|
76
|
+
type: string
|
|
77
|
+
required: false
|
|
78
|
+
SemanticField:
|
|
79
|
+
type: object
|
|
80
|
+
properties:
|
|
81
|
+
name:
|
|
82
|
+
description: The apiName of the semanticField
|
|
83
|
+
type: string
|
|
84
|
+
required: false
|
|
85
|
+
Insight:
|
|
86
|
+
type: object
|
|
87
|
+
properties:
|
|
88
|
+
type:
|
|
89
|
+
type: string
|
|
90
|
+
required: false
|
|
91
|
+
version:
|
|
92
|
+
type: number
|
|
93
|
+
format: int32
|
|
94
|
+
required: false
|
|
95
|
+
markup:
|
|
96
|
+
type: string
|
|
97
|
+
required: false
|
|
98
|
+
viz:
|
|
99
|
+
type: object
|
|
100
|
+
required: false
|
|
101
|
+
facts:
|
|
102
|
+
type: object
|
|
103
|
+
required: false
|
|
104
|
+
characterization:
|
|
105
|
+
enum:
|
|
106
|
+
- CHARACTERIZATION_UNSPECIFIED
|
|
107
|
+
- CHARACTERIZATION_NORMAL
|
|
108
|
+
- CHARACTERIZATION_UNUSUAL
|
|
109
|
+
type: string
|
|
110
|
+
(amf-format): enum
|
|
111
|
+
required: false
|
|
112
|
+
question:
|
|
113
|
+
type: string
|
|
114
|
+
required: false
|
|
115
|
+
score:
|
|
116
|
+
type: number
|
|
117
|
+
format: double
|
|
118
|
+
required: false
|
|
119
|
+
id:
|
|
120
|
+
type: string
|
|
121
|
+
required: false
|
|
122
|
+
insightFeedbackMetadata: InsightFeedbackMetadata
|
|
123
|
+
vegaLiteViz:
|
|
124
|
+
description: vegaLiteViz will be removed in the future
|
|
125
|
+
type: object
|
|
126
|
+
required: false
|
|
127
|
+
Error:
|
|
128
|
+
type: object
|
|
129
|
+
properties:
|
|
130
|
+
code:
|
|
131
|
+
type: string
|
|
132
|
+
required: false
|
|
133
|
+
message:
|
|
134
|
+
type: string
|
|
135
|
+
required: false
|
|
136
|
+
SemanticDataModel:
|
|
137
|
+
type: object
|
|
138
|
+
properties:
|
|
139
|
+
apiName:
|
|
140
|
+
type: string
|
|
141
|
+
required: false
|
|
142
|
+
MetricDefinition:
|
|
143
|
+
type: object
|
|
144
|
+
properties:
|
|
145
|
+
semanticDataModel: SemanticDataModel
|
|
146
|
+
measure: Measure
|
|
147
|
+
timeDimension: TimeDimension
|
|
148
|
+
comparison: CompareConfig
|
|
149
|
+
filters:
|
|
150
|
+
type: array
|
|
151
|
+
items: Filter
|
|
152
|
+
required: false
|
|
153
|
+
runningTotal:
|
|
154
|
+
type: boolean
|
|
155
|
+
required: false
|
|
156
|
+
MeasurementPeriod:
|
|
157
|
+
type: object
|
|
158
|
+
properties:
|
|
159
|
+
granularity:
|
|
160
|
+
description: The amount of time to aggregate to
|
|
161
|
+
enum:
|
|
162
|
+
- GRANULARITY_UNSPECIFIED
|
|
163
|
+
- GRANULARITY_BY_YEAR
|
|
164
|
+
- GRANULARITY_BY_QUARTER
|
|
165
|
+
- GRANULARITY_BY_MONTH
|
|
166
|
+
- GRANULARITY_BY_WEEK
|
|
167
|
+
- GRANULARITY_BY_DAY
|
|
168
|
+
- GRANULARITY_BY_FISCAL_QUARTER
|
|
169
|
+
type: string
|
|
170
|
+
(amf-format): enum
|
|
171
|
+
required: false
|
|
172
|
+
range:
|
|
173
|
+
description: The period to count as the current one
|
|
174
|
+
enum:
|
|
175
|
+
- RANGE_UNSPECIFIED
|
|
176
|
+
- RANGE_CURRENT_PARTIAL
|
|
177
|
+
- RANGE_LAST_COMPLETE
|
|
178
|
+
- RANGE_CUSTOM
|
|
179
|
+
type: string
|
|
180
|
+
(amf-format): enum
|
|
181
|
+
required: false
|
|
182
|
+
start:
|
|
183
|
+
description: |-
|
|
184
|
+
(Inclusive) Start
|
|
185
|
+
Ignored (and computed server side) unless range = RANGE_CUSTOM, in which case it is required
|
|
186
|
+
When specified, formatted as date only ("2006-01-02")
|
|
187
|
+
type: string
|
|
188
|
+
required: false
|
|
189
|
+
end:
|
|
190
|
+
description: |-
|
|
191
|
+
(Inclusive) End
|
|
192
|
+
Ignored (and computed server side) unless range = RANGE_CUSTOM, in which case it is required
|
|
193
|
+
When specified, formatted as date only ("2006-01-02")
|
|
194
|
+
type: string
|
|
195
|
+
required: false
|
|
196
|
+
InsightsOptions:
|
|
197
|
+
type: object
|
|
198
|
+
properties:
|
|
199
|
+
settings:
|
|
200
|
+
type: array
|
|
201
|
+
items: InsightsOptions_InsightSetting
|
|
202
|
+
required: false
|
|
203
|
+
InsightBundle:
|
|
204
|
+
type: object
|
|
205
|
+
properties:
|
|
206
|
+
insightGroups:
|
|
207
|
+
description: The insight groups returned are determined by the bundle type
|
|
208
|
+
type: array
|
|
209
|
+
items: InsightGroup
|
|
210
|
+
required: false
|
|
211
|
+
hasErrors:
|
|
212
|
+
description: Whether or not any errors were encountered when generating the bundle
|
|
213
|
+
type: boolean
|
|
214
|
+
required: false
|
|
215
|
+
characterization:
|
|
216
|
+
description: The overall characterization of the bundle
|
|
217
|
+
enum:
|
|
218
|
+
- CHARACTERIZATION_UNSPECIFIED
|
|
219
|
+
- CHARACTERIZATION_NORMAL
|
|
220
|
+
- CHARACTERIZATION_UNUSUAL
|
|
221
|
+
type: string
|
|
222
|
+
(amf-format): enum
|
|
223
|
+
required: false
|
|
224
|
+
GenerateInsightBatchResponse:
|
|
225
|
+
type: object
|
|
226
|
+
properties:
|
|
227
|
+
batchId:
|
|
228
|
+
description: ID of the batch being generated
|
|
229
|
+
type: string
|
|
230
|
+
required: true
|
|
231
|
+
summary:
|
|
232
|
+
description: If a cached summary exists, return the summary immediately
|
|
233
|
+
(amf-and):
|
|
234
|
+
- SummaryResponse
|
|
235
|
+
type: any
|
|
236
|
+
required: false
|
|
237
|
+
timestamp:
|
|
238
|
+
description: |-
|
|
239
|
+
If a cached summary exists, return a timestamp of the cached summary
|
|
240
|
+
generation in UTC
|
|
241
|
+
type: string
|
|
242
|
+
required: false
|
|
243
|
+
generatingSummary:
|
|
244
|
+
description: Lets client know if summary is being generated
|
|
245
|
+
type: boolean
|
|
246
|
+
required: false
|
|
247
|
+
MetricInstance:
|
|
248
|
+
type: object
|
|
249
|
+
properties:
|
|
250
|
+
measurementPeriod: MeasurementPeriod
|
|
251
|
+
filters:
|
|
252
|
+
type: array
|
|
253
|
+
items: Filter
|
|
254
|
+
required: false
|
|
255
|
+
BatchInput:
|
|
256
|
+
type: object
|
|
257
|
+
properties:
|
|
258
|
+
bundleInput:
|
|
259
|
+
type: InsightBundleInput
|
|
260
|
+
required: false
|
|
261
|
+
metricInstanceId:
|
|
262
|
+
type: string
|
|
263
|
+
required: false
|
|
264
|
+
OverviewResponse:
|
|
265
|
+
type: object
|
|
266
|
+
properties:
|
|
267
|
+
result: Overview
|
|
268
|
+
error:
|
|
269
|
+
type: Error
|
|
270
|
+
required: false
|
|
271
|
+
InputMetric:
|
|
272
|
+
type: object
|
|
273
|
+
properties:
|
|
274
|
+
metric: MetricDefinition
|
|
275
|
+
instance: MetricInstance
|
|
276
|
+
extensionOptions: ExtensionOptions
|
|
277
|
+
representationOptions: RepresentationOptions
|
|
278
|
+
insightsOptions: InsightsOptions
|
|
279
|
+
TimeDimension:
|
|
280
|
+
type: object
|
|
281
|
+
properties:
|
|
282
|
+
tableField: TableField
|
|
283
|
+
semanticField: SemanticField
|
|
284
|
+
RepresentationOptions:
|
|
285
|
+
type: object
|
|
286
|
+
properties:
|
|
287
|
+
type:
|
|
288
|
+
enum:
|
|
289
|
+
- NUMBER_FORMAT_TYPE_UNSPECIFIED
|
|
290
|
+
- NUMBER_FORMAT_TYPE_NUMBER
|
|
291
|
+
- NUMBER_FORMAT_TYPE_PERCENT
|
|
292
|
+
- NUMBER_FORMAT_TYPE_CURRENCY
|
|
293
|
+
type: string
|
|
294
|
+
(amf-format): enum
|
|
295
|
+
required: false
|
|
296
|
+
numberUnits: RepresentationOptions_NumberUnits
|
|
297
|
+
sentimentType:
|
|
298
|
+
enum:
|
|
299
|
+
- SENTIMENT_TYPE_UNSPECIFIED
|
|
300
|
+
- SENTIMENT_TYPE_NONE
|
|
301
|
+
- SENTIMENT_TYPE_UP_IS_GOOD
|
|
302
|
+
- SENTIMENT_TYPE_DOWN_IS_GOOD
|
|
303
|
+
type: string
|
|
304
|
+
(amf-format): enum
|
|
305
|
+
required: false
|
|
306
|
+
GenerateInsightBundleRequest:
|
|
307
|
+
type: object
|
|
308
|
+
properties:
|
|
309
|
+
type:
|
|
310
|
+
description: The bundle type to request
|
|
311
|
+
enum:
|
|
312
|
+
- INSIGHT_BUNDLE_TYPE_UNSPECIFIED
|
|
313
|
+
- INSIGHT_BUNDLE_TYPE_BAN
|
|
314
|
+
- INSIGHT_BUNDLE_TYPE_SPRINGBOARD
|
|
315
|
+
- INSIGHT_BUNDLE_TYPE_DETAIL
|
|
316
|
+
type: string
|
|
317
|
+
(amf-format): enum
|
|
318
|
+
required: false
|
|
319
|
+
version:
|
|
320
|
+
description: The version of the bundle type to request
|
|
321
|
+
type: number
|
|
322
|
+
format: int32
|
|
323
|
+
required: false
|
|
324
|
+
input:
|
|
325
|
+
description: The input to the bundle type
|
|
326
|
+
(amf-and):
|
|
327
|
+
- InsightBundleInput
|
|
328
|
+
type: any
|
|
329
|
+
required: false
|
|
330
|
+
options:
|
|
331
|
+
description: Options affecting the generation of the bundle
|
|
332
|
+
(amf-and):
|
|
333
|
+
- InsightBundleOptions
|
|
334
|
+
type: any
|
|
335
|
+
required: false
|
|
336
|
+
InsightFeedbackMetadata:
|
|
337
|
+
type: object
|
|
338
|
+
properties:
|
|
339
|
+
type:
|
|
340
|
+
type: string
|
|
341
|
+
required: false
|
|
342
|
+
score:
|
|
343
|
+
type: number
|
|
344
|
+
format: double
|
|
345
|
+
required: false
|
|
346
|
+
dimensionHash:
|
|
347
|
+
type: string
|
|
348
|
+
required: false
|
|
349
|
+
GenerateInsightBundleResponse:
|
|
350
|
+
type: object
|
|
351
|
+
properties:
|
|
352
|
+
result:
|
|
353
|
+
description: |-
|
|
354
|
+
Note that it is possible that we encountered some errors but were still
|
|
355
|
+
able to compute part of the result. In that case, the result key will be
|
|
356
|
+
present, and there will be errors at the appropriate level inside
|
|
357
|
+
(amf-and):
|
|
358
|
+
- InsightBundle
|
|
359
|
+
type: any
|
|
360
|
+
required: false
|
|
361
|
+
error:
|
|
362
|
+
type: Error
|
|
363
|
+
required: false
|
|
364
|
+
id:
|
|
365
|
+
description: id of the bundle response, for cacheing
|
|
366
|
+
type: string
|
|
367
|
+
required: true
|
|
368
|
+
InsightBundleOptions:
|
|
369
|
+
type: object
|
|
370
|
+
properties:
|
|
371
|
+
outputFormat:
|
|
372
|
+
description: Used to determine the type of markup to return for the insight text
|
|
373
|
+
enum:
|
|
374
|
+
- OUTPUT_FORMAT_UNSPECIFIED
|
|
375
|
+
- OUTPUT_FORMAT_HTML
|
|
376
|
+
- OUTPUT_FORMAT_TEXT
|
|
377
|
+
type: string
|
|
378
|
+
(amf-format): enum
|
|
379
|
+
required: false
|
|
380
|
+
now:
|
|
381
|
+
description: |-
|
|
382
|
+
A string of the format "YYYY-MM-DD HH:MM:SS" or "YYYY-MM-DD" or empty.
|
|
383
|
+
If no time is specified, then midnight ("00:00:00") is used.
|
|
384
|
+
Hours must be in 24-hr format (00 to 23).
|
|
385
|
+
If provided, analysis will be done as if this is the current date/time.
|
|
386
|
+
If not provided, then the current date/time will be used.
|
|
387
|
+
type: string
|
|
388
|
+
required: false
|
|
389
|
+
timeZone:
|
|
390
|
+
description: |-
|
|
391
|
+
A string of the format used in the IANA Time Zone database, e.g. "America/Vancouver"
|
|
392
|
+
See https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
|
|
393
|
+
If not provided, will default to "UTC"
|
|
394
|
+
type: string
|
|
395
|
+
required: false
|
|
396
|
+
TableField:
|
|
397
|
+
type: object
|
|
398
|
+
properties:
|
|
399
|
+
name:
|
|
400
|
+
description: The apiName of the field
|
|
401
|
+
type: string
|
|
402
|
+
required: false
|
|
403
|
+
tableName:
|
|
404
|
+
description: The apiName of the table the field is on
|
|
405
|
+
type: string
|
|
406
|
+
required: false
|
|
407
|
+
ExtensionOptions:
|
|
408
|
+
type: object
|
|
409
|
+
properties:
|
|
410
|
+
analysisDimensions:
|
|
411
|
+
type: array
|
|
412
|
+
items:
|
|
413
|
+
type: string
|
|
414
|
+
required: false
|
|
415
|
+
minimumGranularity:
|
|
416
|
+
enum:
|
|
417
|
+
- GRANULARITY_UNSPECIFIED
|
|
418
|
+
- GRANULARITY_BY_YEAR
|
|
419
|
+
- GRANULARITY_BY_QUARTER
|
|
420
|
+
- GRANULARITY_BY_MONTH
|
|
421
|
+
- GRANULARITY_BY_WEEK
|
|
422
|
+
- GRANULARITY_BY_DAY
|
|
423
|
+
- GRANULARITY_BY_FISCAL_QUARTER
|
|
424
|
+
type: string
|
|
425
|
+
(amf-format): enum
|
|
426
|
+
required: false
|
|
427
|
+
RepresentationOptions_NumberUnits:
|
|
428
|
+
type: object
|
|
429
|
+
properties:
|
|
430
|
+
singularNoun:
|
|
431
|
+
type: string
|
|
432
|
+
required: false
|
|
433
|
+
pluralNoun:
|
|
434
|
+
type: string
|
|
435
|
+
required: false
|
|
436
|
+
CompareConfig:
|
|
437
|
+
type: object
|
|
438
|
+
properties:
|
|
439
|
+
comparison:
|
|
440
|
+
enum:
|
|
441
|
+
- TIME_COMPARISON_UNSPECIFIED
|
|
442
|
+
- TIME_COMPARISON_NONE
|
|
443
|
+
- TIME_COMPARISON_PREVIOUS_PERIOD
|
|
444
|
+
- TIME_COMPARISON_YEAR_AGO_PERIOD
|
|
445
|
+
type: string
|
|
446
|
+
(amf-format): enum
|
|
447
|
+
required: false
|
|
448
|
+
GetInsightBatchResponse:
|
|
449
|
+
type: object
|
|
450
|
+
properties:
|
|
451
|
+
bundles:
|
|
452
|
+
description: ID of the batch being generated
|
|
453
|
+
type: array
|
|
454
|
+
items: InsightBundle
|
|
455
|
+
required: false
|
|
456
|
+
hasErrors:
|
|
457
|
+
description: Flag denoting if any insights encountered errors during generation
|
|
458
|
+
type: boolean
|
|
459
|
+
required: false
|
|
460
|
+
summary:
|
|
461
|
+
description: Summary generated by GAI
|
|
462
|
+
(amf-and):
|
|
463
|
+
- SummaryResponse
|
|
464
|
+
type: any
|
|
465
|
+
required: false
|
|
466
|
+
batchId:
|
|
467
|
+
description: Batch id
|
|
468
|
+
type: string
|
|
469
|
+
required: true
|
|
470
|
+
Overview:
|
|
471
|
+
type: object
|
|
472
|
+
properties:
|
|
473
|
+
viz:
|
|
474
|
+
type: object
|
|
475
|
+
required: false
|
|
476
|
+
vegaLiteViz:
|
|
477
|
+
description: Vega-lite spec giving a summary viz
|
|
478
|
+
type: object
|
|
479
|
+
required: false
|
|
480
|
+
GetFilterValuesResponse:
|
|
481
|
+
type: object
|
|
482
|
+
properties:
|
|
483
|
+
categoricalValues: GetFilterValuesResponse_CategoricalValues
|
|
484
|
+
nextPageToken:
|
|
485
|
+
type: string
|
|
486
|
+
required: false
|
|
487
|
+
totalAvailable:
|
|
488
|
+
type: number
|
|
489
|
+
format: int32
|
|
490
|
+
required: false
|
|
491
|
+
id:
|
|
492
|
+
type: string
|
|
493
|
+
required: true
|
|
494
|
+
NullableValue:
|
|
495
|
+
type: object
|
|
496
|
+
properties:
|
|
497
|
+
nullValue:
|
|
498
|
+
enum:
|
|
499
|
+
- NULL_VALUE
|
|
500
|
+
type: string
|
|
501
|
+
(amf-format): enum
|
|
502
|
+
required: false
|
|
503
|
+
string:
|
|
504
|
+
type: string
|
|
505
|
+
required: false
|
|
506
|
+
boolean:
|
|
507
|
+
type: boolean
|
|
508
|
+
required: false
|
|
509
|
+
number:
|
|
510
|
+
type: number
|
|
511
|
+
format: float
|
|
512
|
+
required: false
|
|
513
|
+
date:
|
|
514
|
+
description: Dates should be passed in as string_value and formatted as RFC3339 ("2006-01-02T15:04:05Z07:00")
|
|
515
|
+
type: string
|
|
516
|
+
required: false
|
|
517
|
+
InsightBundleInput:
|
|
518
|
+
type: object
|
|
519
|
+
properties:
|
|
520
|
+
metadata: MetricMetadata
|
|
521
|
+
metric: InputMetric
|
|
522
|
+
SummarizationOptions:
|
|
523
|
+
type: object
|
|
524
|
+
properties:
|
|
525
|
+
strategy:
|
|
526
|
+
description: The strategy to use for the summary
|
|
527
|
+
enum:
|
|
528
|
+
- SUMMARIZATION_STRATEGY_UNSPECIFIED
|
|
529
|
+
- SUMMARIZATION_STRATEGY_DIGEST
|
|
530
|
+
type: string
|
|
531
|
+
(amf-format): enum
|
|
532
|
+
required: false
|
|
533
|
+
BatchOptions:
|
|
534
|
+
type: object
|
|
535
|
+
properties:
|
|
536
|
+
bundle:
|
|
537
|
+
description: Options to apply to each insight bundle
|
|
538
|
+
(amf-and):
|
|
539
|
+
- InsightBundleOptions
|
|
540
|
+
type: any
|
|
541
|
+
required: false
|
|
542
|
+
summarization:
|
|
543
|
+
description: Options to apply to desired summary
|
|
544
|
+
(amf-and):
|
|
545
|
+
- SummarizationOptions
|
|
546
|
+
type: any
|
|
547
|
+
required: false
|
|
548
|
+
skipCache:
|
|
549
|
+
description: Option to skip checking for batch/summary in cache
|
|
550
|
+
type: boolean
|
|
551
|
+
required: false
|
|
552
|
+
GenerateInsightBatchRequest:
|
|
553
|
+
type: object
|
|
554
|
+
properties:
|
|
555
|
+
batchInput:
|
|
556
|
+
description: Either fully formed bundles or metric instance IDs
|
|
557
|
+
type: array
|
|
558
|
+
items: BatchInput
|
|
559
|
+
required: false
|
|
560
|
+
options:
|
|
561
|
+
description: Options to apply to the entire batch
|
|
562
|
+
(amf-and):
|
|
563
|
+
- BatchOptions
|
|
564
|
+
type: any
|
|
565
|
+
required: false
|
|
566
|
+
Filter:
|
|
567
|
+
type: object
|
|
568
|
+
properties:
|
|
569
|
+
operator:
|
|
570
|
+
enum:
|
|
571
|
+
- OPERATOR_UNSPECIFIED
|
|
572
|
+
- OPERATOR_IN
|
|
573
|
+
- OPERATOR_NOT_IN
|
|
574
|
+
- OPERATOR_EQUALS
|
|
575
|
+
- OPERATOR_DOES_NOT_EQUAL
|
|
576
|
+
- OPERATOR_LESS_THAN
|
|
577
|
+
- OPERATOR_LESS_THAN_OR_EQUAL_TO
|
|
578
|
+
- OPERATOR_GREATER_THAN
|
|
579
|
+
- OPERATOR_GREATER_THAN_OR_EQUAL_TO
|
|
580
|
+
- OPERATOR_BETWEEN
|
|
581
|
+
- OPERATOR_CONTAINS
|
|
582
|
+
- OPERATOR_CONTAINS_IGNORE_CASE
|
|
583
|
+
- OPERATOR_NOT_CONTAINS
|
|
584
|
+
- OPERATOR_NOT_CONTAINS_IGNORE_CASE
|
|
585
|
+
- OPERATOR_STARTS_WITH
|
|
586
|
+
- OPERATOR_STARTS_WITH_IGNORE_CASE
|
|
587
|
+
- OPERATOR_DOES_NOT_START_WITH
|
|
588
|
+
- OPERATOR_DOES_NOT_START_WITH_IGNORE_CASE
|
|
589
|
+
- OPERATOR_ENDS_WITH
|
|
590
|
+
- OPERATOR_ENDS_WITH_IGNORE_CASE
|
|
591
|
+
- OPERATOR_DOES_NOT_END_WITH
|
|
592
|
+
- OPERATOR_DOES_NOT_END_WITH_IGNORE_CASE
|
|
593
|
+
- OPERATOR_LIKE
|
|
594
|
+
type: string
|
|
595
|
+
(amf-format): enum
|
|
596
|
+
required: false
|
|
597
|
+
tableField: TableField
|
|
598
|
+
semanticField: SemanticField
|
|
599
|
+
values:
|
|
600
|
+
type: array
|
|
601
|
+
items: NullableValue
|
|
602
|
+
required: false
|
|
603
|
+
GetFilterValuesRequest:
|
|
604
|
+
type: object
|
|
605
|
+
properties:
|
|
606
|
+
semanticDataModel: SemanticDataModel
|
|
607
|
+
tableField:
|
|
608
|
+
type: TableField
|
|
609
|
+
required: false
|
|
610
|
+
semanticField:
|
|
611
|
+
type: SemanticField
|
|
612
|
+
required: false
|
|
613
|
+
pageToken:
|
|
614
|
+
type: string
|
|
615
|
+
required: false
|
|
616
|
+
pageSize:
|
|
617
|
+
description: Page size specifies the maximum number of values to return on a query. It has a maximum of 1000.
|
|
618
|
+
type: number
|
|
619
|
+
format: int32
|
|
620
|
+
required: false
|
|
621
|
+
searchTerm:
|
|
622
|
+
description: Specifies to look for field values that contain the search_term
|
|
623
|
+
type: string
|
|
624
|
+
required: false
|
|
625
|
+
filters:
|
|
626
|
+
type: array
|
|
627
|
+
items: Filter
|
|
628
|
+
required: false
|
|
629
|
+
Summary:
|
|
630
|
+
type: object
|
|
631
|
+
properties:
|
|
632
|
+
strategy:
|
|
633
|
+
description: Which summarization strategy was used
|
|
634
|
+
enum:
|
|
635
|
+
- SUMMARIZATION_STRATEGY_UNSPECIFIED
|
|
636
|
+
- SUMMARIZATION_STRATEGY_DIGEST
|
|
637
|
+
type: string
|
|
638
|
+
(amf-format): enum
|
|
639
|
+
required: false
|
|
640
|
+
markup:
|
|
641
|
+
description: Text for the summary
|
|
642
|
+
type: string
|
|
643
|
+
required: false
|
|
644
|
+
generationId:
|
|
645
|
+
description: ID of the Einstein GPT generation request.
|
|
646
|
+
type: string
|
|
647
|
+
required: false
|
|
648
|
+
timestamp:
|
|
649
|
+
description: Timestamp of the summary generation in UTC
|
|
650
|
+
type: string
|
|
651
|
+
required: false
|
|
652
|
+
Measure:
|
|
653
|
+
type: object
|
|
654
|
+
properties:
|
|
655
|
+
tableField: TableField
|
|
656
|
+
semanticField: SemanticField
|
|
657
|
+
aggregation:
|
|
658
|
+
enum:
|
|
659
|
+
- AGGREGATION_UNSPECIFIED
|
|
660
|
+
- AGGREGATION_SUM
|
|
661
|
+
- AGGREGATION_AVERAGE
|
|
662
|
+
- AGGREGATION_MEDIAN
|
|
663
|
+
- AGGREGATION_MAX
|
|
664
|
+
- AGGREGATION_MIN
|
|
665
|
+
- AGGREGATION_COUNT
|
|
666
|
+
- AGGREGATION_COUNT_DISTINCT
|
|
667
|
+
- AGGREGATION_USER
|
|
668
|
+
type: string
|
|
669
|
+
(amf-format): enum
|
|
670
|
+
required: false
|
|
671
|
+
title: TUA Insights API
|
|
672
|
+
baseUri: https://api.salesforce.com/analytics/insights/{version}
|
|
673
|
+
(amf-serverDescription): Insights api
|
|
674
|
+
description: Tableau Unified Analytics Insights Service providing insights about metrics
|
|
675
|
+
version: v1-alpha.3
|
|
676
|
+
(amf-tags):
|
|
677
|
+
- name: InsightsService
|
|
678
|
+
/batches:
|
|
679
|
+
post:
|
|
680
|
+
displayName: generateInsightBatch
|
|
681
|
+
(amf-tags):
|
|
682
|
+
- InsightsService
|
|
683
|
+
body:
|
|
684
|
+
application/json: GenerateInsightBatchRequest
|
|
685
|
+
responses:
|
|
686
|
+
'200':
|
|
687
|
+
description: OK
|
|
688
|
+
body:
|
|
689
|
+
application/json: GenerateInsightBatchResponse
|
|
690
|
+
/filterValues:
|
|
691
|
+
post:
|
|
692
|
+
displayName: filterValues
|
|
693
|
+
(amf-tags):
|
|
694
|
+
- InsightsService
|
|
695
|
+
body:
|
|
696
|
+
application/json: GetFilterValuesRequest
|
|
697
|
+
responses:
|
|
698
|
+
'200':
|
|
699
|
+
description: OK
|
|
700
|
+
body:
|
|
701
|
+
application/json: GetFilterValuesResponse
|
|
702
|
+
/batches/{batch_id}:
|
|
703
|
+
get:
|
|
704
|
+
displayName: getInsightBatch
|
|
705
|
+
(amf-tags):
|
|
706
|
+
- InsightsService
|
|
707
|
+
responses:
|
|
708
|
+
'200':
|
|
709
|
+
description: OK
|
|
710
|
+
body:
|
|
711
|
+
application/json: GetInsightBatchResponse
|
|
712
|
+
/v1/generateBundle:
|
|
713
|
+
post:
|
|
714
|
+
displayName: generateInsightBundle
|
|
715
|
+
(amf-tags):
|
|
716
|
+
- InsightsService
|
|
717
|
+
body:
|
|
718
|
+
application/json: GenerateInsightBundleRequest
|
|
719
|
+
responses:
|
|
720
|
+
'200':
|
|
721
|
+
description: OK
|
|
722
|
+
body:
|
|
723
|
+
application/json: GenerateInsightBundleResponse
|