@salesforce/lds-adapters-cdp-calculated-insights 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.
- package/LICENSE.txt +82 -0
- package/dist/es/es2018/cdp-calculated-insights.js +1455 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/getCalculatedInsightMetadata.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/adapters/getCalculatedInsightsMetadata.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/adapters/queryCalculatedInsight.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/adapters/queryProfileCalculatedInsight.d.ts +39 -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 +10 -0
- package/dist/es/es2018/types/src/generated/resources/getSsotCalculatedInsights.d.ts +20 -0
- package/dist/es/es2018/types/src/generated/resources/getSsotCalculatedInsightsByApiName.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/getSsotInsightCalculatedInsightsByCiName.d.ts +25 -0
- package/dist/es/es2018/types/src/generated/resources/getSsotProfileCalculatedInsightsByCiNameAndDataModelNameAndId.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/CdpCalculatedInsightCollectionDataRepresentation.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/types/CdpCalculatedInsightCollectionRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/CdpCalculatedInsightDataSourceRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/CdpCalculatedInsightDimensionRepresentation.d.ts +50 -0
- package/dist/es/es2018/types/src/generated/types/CdpCalculatedInsightErrorResponseRepresentation.d.ts +40 -0
- package/dist/es/es2018/types/src/generated/types/CdpCalculatedInsightMeasureRepresentation.d.ts +50 -0
- package/dist/es/es2018/types/src/generated/types/CdpCalculatedInsightRepresentation.d.ts +99 -0
- package/dist/es/es2018/types/src/generated/types/CdpQueryMetadataItemRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/CdpQueryMetadataOutputRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/CdpQueryOutputRepresentation.d.ts +54 -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 +1564 -0
- package/src/raml/api.raml +412 -0
- package/src/raml/luvio.raml +56 -0
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
#%RAML 1.0
|
|
2
|
+
securedBy:
|
|
3
|
+
- OAuth2
|
|
4
|
+
title: Salesforce Connect API
|
|
5
|
+
version: '62.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
|
+
CdpCalculatedInsightCollectionDataRepresentation:
|
|
29
|
+
description: Container data representation.
|
|
30
|
+
type: object
|
|
31
|
+
properties:
|
|
32
|
+
count:
|
|
33
|
+
description: The number of results returned in this page.
|
|
34
|
+
type: integer
|
|
35
|
+
currentPageToken:
|
|
36
|
+
description: Support for server side pagination - Current page token (base64
|
|
37
|
+
of the query parameters). Use this in token request parameter.
|
|
38
|
+
type: string
|
|
39
|
+
currentPageUrl:
|
|
40
|
+
description: Support for server side pagination - Current page absolute url
|
|
41
|
+
with query parameters.
|
|
42
|
+
type: string
|
|
43
|
+
items:
|
|
44
|
+
description: List of calculatedInsights.
|
|
45
|
+
type: array
|
|
46
|
+
items:
|
|
47
|
+
type: CdpCalculatedInsightRepresentation
|
|
48
|
+
nextPageToken:
|
|
49
|
+
description: Support for server side pagination - Next page token (base64
|
|
50
|
+
of the query parameters). Use this in token request parameter.
|
|
51
|
+
type: string | nil # TODO hand rolled. W-15546181
|
|
52
|
+
nextPageUrl:
|
|
53
|
+
description: Support for server side pagination - Next page absolute url with
|
|
54
|
+
query parameters.
|
|
55
|
+
type: string | nil # TODO hand rolled. W-15546181
|
|
56
|
+
previousPageToken:
|
|
57
|
+
description: Support for server side pagination - Previous page token (base64
|
|
58
|
+
of the query parameters). Use this in token request parameter.
|
|
59
|
+
type: string | nil # TODO hand rolled. W-15546181
|
|
60
|
+
previousPageUrl:
|
|
61
|
+
description: Support for server side pagination - Previous page absolute url
|
|
62
|
+
with query parameters.
|
|
63
|
+
type: string | nil # TODO hand rolled. W-15546181
|
|
64
|
+
total:
|
|
65
|
+
description: Total row count of calculatedInsights.
|
|
66
|
+
type: integer
|
|
67
|
+
CdpCalculatedInsightCollectionRepresentation:
|
|
68
|
+
description: Container of a calculated insights page.
|
|
69
|
+
type: object
|
|
70
|
+
properties:
|
|
71
|
+
collection:
|
|
72
|
+
description: Collection Data Representation. Following standard API format.
|
|
73
|
+
type: CdpCalculatedInsightCollectionDataRepresentation
|
|
74
|
+
CdpCalculatedInsightDataSourceRepresentation:
|
|
75
|
+
description: A calculated insight data source.
|
|
76
|
+
type: object
|
|
77
|
+
properties:
|
|
78
|
+
sourceApiName:
|
|
79
|
+
description: Source Api Name
|
|
80
|
+
type: string
|
|
81
|
+
type:
|
|
82
|
+
description: Type
|
|
83
|
+
type: string
|
|
84
|
+
CdpCalculatedInsightDimensionRepresentation:
|
|
85
|
+
description: A calculated insight dimension.
|
|
86
|
+
type: object
|
|
87
|
+
properties:
|
|
88
|
+
apiName:
|
|
89
|
+
description: Api Name
|
|
90
|
+
type: string
|
|
91
|
+
creationType:
|
|
92
|
+
description: Creation Type
|
|
93
|
+
type: string
|
|
94
|
+
dataSource:
|
|
95
|
+
description: Data Source
|
|
96
|
+
type: CdpCalculatedInsightDataSourceRepresentation
|
|
97
|
+
dataType:
|
|
98
|
+
description: Data Type
|
|
99
|
+
type: string
|
|
100
|
+
dateGranularity:
|
|
101
|
+
description: Date Granularity
|
|
102
|
+
type: string | nil # TODO hand rolled. W-15546181
|
|
103
|
+
displayName:
|
|
104
|
+
description: Display Name
|
|
105
|
+
type: string
|
|
106
|
+
fieldRole:
|
|
107
|
+
description: Field Role
|
|
108
|
+
type: string
|
|
109
|
+
formula:
|
|
110
|
+
description: Formula
|
|
111
|
+
type: string
|
|
112
|
+
CdpCalculatedInsightErrorResponseRepresentation:
|
|
113
|
+
description: Calculated Insight error response representation
|
|
114
|
+
type: object
|
|
115
|
+
properties:
|
|
116
|
+
errorCode:
|
|
117
|
+
description: Error code
|
|
118
|
+
type: string
|
|
119
|
+
message:
|
|
120
|
+
description: Error message
|
|
121
|
+
type: string
|
|
122
|
+
CdpCalculatedInsightMeasureRepresentation:
|
|
123
|
+
description: A calculated insight measure.
|
|
124
|
+
type: object
|
|
125
|
+
properties:
|
|
126
|
+
apiName:
|
|
127
|
+
description: Api Name
|
|
128
|
+
type: string
|
|
129
|
+
creationType:
|
|
130
|
+
description: Creation Type
|
|
131
|
+
type: string
|
|
132
|
+
dataSource:
|
|
133
|
+
description: Data Source
|
|
134
|
+
type: CdpCalculatedInsightDataSourceRepresentation
|
|
135
|
+
dataType:
|
|
136
|
+
description: Data Type
|
|
137
|
+
type: string
|
|
138
|
+
displayName:
|
|
139
|
+
description: Display Name
|
|
140
|
+
type: string
|
|
141
|
+
fieldAggregationType:
|
|
142
|
+
description: Field Aggregation Type
|
|
143
|
+
type: string
|
|
144
|
+
fieldRole:
|
|
145
|
+
description: Field Role
|
|
146
|
+
type: string
|
|
147
|
+
formula:
|
|
148
|
+
description: Formula
|
|
149
|
+
type: string
|
|
150
|
+
CdpCalculatedInsightRepresentation:
|
|
151
|
+
description: A calculated insight.
|
|
152
|
+
type: object
|
|
153
|
+
properties:
|
|
154
|
+
apiName:
|
|
155
|
+
description: Api Name
|
|
156
|
+
type: string
|
|
157
|
+
calculatedInsightStatus:
|
|
158
|
+
description: Calculated Insight Status
|
|
159
|
+
type: string
|
|
160
|
+
creationType:
|
|
161
|
+
description: Creation Type
|
|
162
|
+
type: string
|
|
163
|
+
dataSpace:
|
|
164
|
+
description: Data Space
|
|
165
|
+
type: string
|
|
166
|
+
definitionStatus:
|
|
167
|
+
description: Definition Status
|
|
168
|
+
type: string
|
|
169
|
+
definitionType:
|
|
170
|
+
description: Definition Type
|
|
171
|
+
type: string
|
|
172
|
+
description:
|
|
173
|
+
description: Description
|
|
174
|
+
type: string | nil # TODO hand rolled. W-15546181
|
|
175
|
+
dimensions:
|
|
176
|
+
description: Dimensions
|
|
177
|
+
type: array
|
|
178
|
+
items:
|
|
179
|
+
type: CdpCalculatedInsightDimensionRepresentation
|
|
180
|
+
displayName:
|
|
181
|
+
description: Display Name
|
|
182
|
+
type: string
|
|
183
|
+
expression:
|
|
184
|
+
description: Expression
|
|
185
|
+
type: string
|
|
186
|
+
isEnabled:
|
|
187
|
+
description: Is Enabled
|
|
188
|
+
type: boolean
|
|
189
|
+
lastCalcInsightStatusDateTime:
|
|
190
|
+
description: Last Calc Insight Status Date Time
|
|
191
|
+
type: string
|
|
192
|
+
lastCalcInsightStatusErrorCode:
|
|
193
|
+
description: Last Calc Insight Status Error Code
|
|
194
|
+
type: string | nil # TODO hand rolled. W-15546181
|
|
195
|
+
lastRunDateTime:
|
|
196
|
+
description: Last Run Date Time
|
|
197
|
+
type: string | nil # TODO hand rolled. W-15546181
|
|
198
|
+
lastRunStatus:
|
|
199
|
+
description: Last Run Status
|
|
200
|
+
type: string | nil # TODO hand rolled. W-15546181
|
|
201
|
+
lastRunStatusDateTime:
|
|
202
|
+
description: Last Run Status Date Time
|
|
203
|
+
type: string | nil # TODO hand rolled. W-15546181
|
|
204
|
+
lastRunStatusErrorCode:
|
|
205
|
+
description: Last Run Status Error Code
|
|
206
|
+
type: string | nil # TODO hand rolled. W-15546181
|
|
207
|
+
measures:
|
|
208
|
+
description: Measures
|
|
209
|
+
type: array
|
|
210
|
+
items:
|
|
211
|
+
type: CdpCalculatedInsightMeasureRepresentation
|
|
212
|
+
publishScheduleEndDate:
|
|
213
|
+
description: 'Publish Schedule End Date Expected format: Expected: yyyy-MM-dd'
|
|
214
|
+
type: string | nil # TODO hand rolled. W-15546181
|
|
215
|
+
publishScheduleInterval:
|
|
216
|
+
description: Publish Schedule Interval NOT_SCHEDULED, SIX, TWELVE, TWENTY_FOUR
|
|
217
|
+
type: string
|
|
218
|
+
publishScheduleStartDateTime:
|
|
219
|
+
description: 'Publish Schedule Start Date Time Expected format: Expected:
|
|
220
|
+
yyyy-MM-ddTHH:mm'
|
|
221
|
+
type: string | nil # TODO hand rolled. W-15546181
|
|
222
|
+
CdpQueryMetadataItemRepresentation:
|
|
223
|
+
description: Represents Cdp Metadata Item
|
|
224
|
+
type: object
|
|
225
|
+
properties:
|
|
226
|
+
placeInOrder:
|
|
227
|
+
description: Attribute place order in the result
|
|
228
|
+
type: integer
|
|
229
|
+
type:
|
|
230
|
+
description: Metadata Type for Column
|
|
231
|
+
type: string
|
|
232
|
+
typeCode:
|
|
233
|
+
description: Metadata Type Code
|
|
234
|
+
type: integer
|
|
235
|
+
CdpQueryMetadataOutputRepresentation:
|
|
236
|
+
description: Represents Cdp Query Metadata Output
|
|
237
|
+
type: object
|
|
238
|
+
properties:
|
|
239
|
+
metadata:
|
|
240
|
+
description: Result metadata set
|
|
241
|
+
type: array
|
|
242
|
+
items:
|
|
243
|
+
type: object
|
|
244
|
+
CdpQueryOutputRepresentation:
|
|
245
|
+
description: Represents Cdp Query output
|
|
246
|
+
type: object
|
|
247
|
+
properties:
|
|
248
|
+
data:
|
|
249
|
+
description: Result data set
|
|
250
|
+
type: array
|
|
251
|
+
items:
|
|
252
|
+
type: object
|
|
253
|
+
properties: # TODO hand rolled. W-15546181
|
|
254
|
+
//:
|
|
255
|
+
type: any
|
|
256
|
+
done:
|
|
257
|
+
description: Query start time
|
|
258
|
+
type: boolean
|
|
259
|
+
endTime?: # TODO hand rolled. W-15546181
|
|
260
|
+
description: Query end time
|
|
261
|
+
type: string
|
|
262
|
+
metadata:
|
|
263
|
+
description: Query start time
|
|
264
|
+
type: object
|
|
265
|
+
properties:
|
|
266
|
+
//:
|
|
267
|
+
type: any # TODO hand rolled. W-15546181
|
|
268
|
+
queryId?: # TODO hand rolled. W-15546181
|
|
269
|
+
description: Query Id
|
|
270
|
+
type: string
|
|
271
|
+
rowCount?: # TODO hand rolled. W-15546181
|
|
272
|
+
description: Query start time
|
|
273
|
+
type: integer
|
|
274
|
+
startTime?: # TODO hand rolled. W-15546181
|
|
275
|
+
description: Query start time
|
|
276
|
+
type: string
|
|
277
|
+
/ssot:
|
|
278
|
+
/calculated-insights:
|
|
279
|
+
get:
|
|
280
|
+
displayName: getCdpCalculatedInsightCollection
|
|
281
|
+
description: Gets a page result of calculated insights
|
|
282
|
+
responses:
|
|
283
|
+
'200':
|
|
284
|
+
description: Success
|
|
285
|
+
body:
|
|
286
|
+
application/json:
|
|
287
|
+
type: CdpCalculatedInsightCollectionRepresentation
|
|
288
|
+
queryParameters:
|
|
289
|
+
batchSize:
|
|
290
|
+
type: integer
|
|
291
|
+
required: false
|
|
292
|
+
dataspace:
|
|
293
|
+
type: string
|
|
294
|
+
required: false
|
|
295
|
+
definitionType:
|
|
296
|
+
type: string
|
|
297
|
+
required: false
|
|
298
|
+
offset:
|
|
299
|
+
type: integer
|
|
300
|
+
required: false
|
|
301
|
+
orderby:
|
|
302
|
+
type: string
|
|
303
|
+
required: false
|
|
304
|
+
pageToken:
|
|
305
|
+
type: string
|
|
306
|
+
required: false
|
|
307
|
+
/{apiName}:
|
|
308
|
+
get:
|
|
309
|
+
displayName: getCdpCalculatedInsight
|
|
310
|
+
description: Gets the calculated insight.
|
|
311
|
+
responses:
|
|
312
|
+
'200':
|
|
313
|
+
description: Success
|
|
314
|
+
body:
|
|
315
|
+
application/json:
|
|
316
|
+
type: CdpCalculatedInsightRepresentation
|
|
317
|
+
uriParameters:
|
|
318
|
+
apiName:
|
|
319
|
+
type: string
|
|
320
|
+
required: true
|
|
321
|
+
/insight:
|
|
322
|
+
/calculated-insights/{ciName}:
|
|
323
|
+
get:
|
|
324
|
+
displayName: getCdpInsightsQuery
|
|
325
|
+
description: Queries Calculated Insights Data
|
|
326
|
+
responses:
|
|
327
|
+
'200':
|
|
328
|
+
description: Success
|
|
329
|
+
body:
|
|
330
|
+
application/json:
|
|
331
|
+
type: CdpQueryOutputRepresentation
|
|
332
|
+
queryParameters:
|
|
333
|
+
batchSize:
|
|
334
|
+
type: integer
|
|
335
|
+
required: false
|
|
336
|
+
dataspace:
|
|
337
|
+
type: string
|
|
338
|
+
required: false
|
|
339
|
+
dimensions:
|
|
340
|
+
type: string
|
|
341
|
+
required: false
|
|
342
|
+
filters:
|
|
343
|
+
type: string
|
|
344
|
+
required: false
|
|
345
|
+
measures:
|
|
346
|
+
type: string
|
|
347
|
+
required: false
|
|
348
|
+
offset:
|
|
349
|
+
type: integer
|
|
350
|
+
required: false
|
|
351
|
+
orderby:
|
|
352
|
+
type: string
|
|
353
|
+
required: false
|
|
354
|
+
timeGranularity:
|
|
355
|
+
type: string
|
|
356
|
+
required: false
|
|
357
|
+
uriParameters:
|
|
358
|
+
ciName:
|
|
359
|
+
type: string
|
|
360
|
+
required: true
|
|
361
|
+
/profile:
|
|
362
|
+
/{dataModelName}/{id}/calculated-insights/{ciName}:
|
|
363
|
+
get:
|
|
364
|
+
displayName: getCdpProfileApiQuery
|
|
365
|
+
description: Query Profile Data
|
|
366
|
+
responses:
|
|
367
|
+
'200':
|
|
368
|
+
description: Success
|
|
369
|
+
body:
|
|
370
|
+
application/json:
|
|
371
|
+
type: CdpQueryOutputRepresentation
|
|
372
|
+
queryParameters:
|
|
373
|
+
batchSize:
|
|
374
|
+
type: integer
|
|
375
|
+
required: false
|
|
376
|
+
dataspace:
|
|
377
|
+
type: string
|
|
378
|
+
required: false
|
|
379
|
+
dimensions:
|
|
380
|
+
type: string
|
|
381
|
+
required: false
|
|
382
|
+
fields:
|
|
383
|
+
type: string
|
|
384
|
+
required: false
|
|
385
|
+
filters:
|
|
386
|
+
type: string
|
|
387
|
+
required: false
|
|
388
|
+
measures:
|
|
389
|
+
type: string
|
|
390
|
+
required: false
|
|
391
|
+
offset:
|
|
392
|
+
type: integer
|
|
393
|
+
required: false
|
|
394
|
+
orderby:
|
|
395
|
+
type: string
|
|
396
|
+
required: false
|
|
397
|
+
searchKey:
|
|
398
|
+
type: string
|
|
399
|
+
required: false
|
|
400
|
+
timeGranularity:
|
|
401
|
+
type: string
|
|
402
|
+
required: false
|
|
403
|
+
uriParameters:
|
|
404
|
+
ciName:
|
|
405
|
+
type: string
|
|
406
|
+
required: true
|
|
407
|
+
dataModelName:
|
|
408
|
+
type: string
|
|
409
|
+
required: true
|
|
410
|
+
id:
|
|
411
|
+
type: string
|
|
412
|
+
required: true
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
#%RAML 1.0 Overlay
|
|
2
|
+
extends: ./api.raml
|
|
3
|
+
|
|
4
|
+
uses:
|
|
5
|
+
luvio: luvio://annotations.raml
|
|
6
|
+
|
|
7
|
+
(luvio.keyPrefix): 'calculated-insights'
|
|
8
|
+
(luvio.ttl): 3000000
|
|
9
|
+
|
|
10
|
+
types:
|
|
11
|
+
CdpCalculatedInsightCollectionDataRepresentation:
|
|
12
|
+
(luvio.opaque): true
|
|
13
|
+
(luvio.key):
|
|
14
|
+
id: currentPageToken
|
|
15
|
+
CdpCalculatedInsightCollectionRepresentation:
|
|
16
|
+
(luvio.opaque): true
|
|
17
|
+
CdpCalculatedInsightDataSourceRepresentation:
|
|
18
|
+
(luvio.opaque): true
|
|
19
|
+
CdpCalculatedInsightDimensionRepresentation:
|
|
20
|
+
(luvio.opaque): true
|
|
21
|
+
CdpCalculatedInsightErrorResponseRepresentation:
|
|
22
|
+
(luvio.opaque): true
|
|
23
|
+
(luvio.key):
|
|
24
|
+
message: message
|
|
25
|
+
CdpCalculatedInsightMeasureRepresentation:
|
|
26
|
+
(luvio.opaque): true
|
|
27
|
+
CdpCalculatedInsightRepresentation:
|
|
28
|
+
(luvio.opaque): true
|
|
29
|
+
(luvio.key):
|
|
30
|
+
apiName: apiName
|
|
31
|
+
CdpQueryOutputRepresentation:
|
|
32
|
+
(luvio.opaque): true
|
|
33
|
+
|
|
34
|
+
/ssot:
|
|
35
|
+
/calculated-insights:
|
|
36
|
+
get:
|
|
37
|
+
(luvio.adapter):
|
|
38
|
+
name: getCalculatedInsightsMetadata
|
|
39
|
+
/{apiName}:
|
|
40
|
+
get:
|
|
41
|
+
(luvio.adapter):
|
|
42
|
+
name: getCalculatedInsightMetadata
|
|
43
|
+
(luvio.key):
|
|
44
|
+
apiName: urlParams.apiName
|
|
45
|
+
/insight:
|
|
46
|
+
/calculated-insights/{ciName}:
|
|
47
|
+
get:
|
|
48
|
+
(luvio.adapter):
|
|
49
|
+
name: queryCalculatedInsight
|
|
50
|
+
uriParameters:
|
|
51
|
+
ciName:
|
|
52
|
+
/profile:
|
|
53
|
+
/{dataModelName}/{id}/calculated-insights/{ciName}:
|
|
54
|
+
get:
|
|
55
|
+
(luvio.adapter):
|
|
56
|
+
name: queryProfileCalculatedInsight
|