@salesforce/lds-adapters-analytics-wave-private 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/analytics-wave-private.js +1364 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/createDashboard.d.ts +22 -0
- package/dist/es/es2018/types/src/generated/adapters/executeSoqlQueryPost.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/adapters/executeTemplateSetupPlan.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/adapters/getTemplateSetupPlan.d.ts +29 -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 +8 -0
- package/dist/es/es2018/types/src/generated/resources/getWaveTemplatesPlansByPlanNameAndTemplateIdOrApiName.d.ts +17 -0
- package/dist/es/es2018/types/src/generated/resources/postWaveDashboards.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/resources/postWaveSoql.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/postWaveTemplatesPlansByPlanNameAndTemplateIdOrApiName.d.ts +13 -0
- package/dist/es/es2018/types/src/generated/types/BaseDashboardInputRepresentation.d.ts +47 -0
- package/dist/es/es2018/types/src/generated/types/DashboardRepresentation.d.ts +40 -0
- package/dist/es/es2018/types/src/generated/types/SoqlQueryInputRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/SoqlQueryResultRepresentation.d.ts +35 -0
- package/dist/es/es2018/types/src/generated/types/TemplateSetupJobRepresentation.d.ts +41 -0
- package/dist/es/es2018/types/src/generated/types/TemplateSetupPlanRepresentation.d.ts +60 -0
- package/dist/es/es2018/types/src/generated/types/TemplateSetupTaskRepresentation.d.ts +55 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +75 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +1460 -0
- package/src/raml/api.raml +278 -0
- package/src/raml/luvio.raml +43 -0
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
#%RAML 1.0
|
|
2
|
+
# This RAML has been modified and "ELT Foundation - Analytics" is responsible for maintaining it
|
|
3
|
+
securedBy:
|
|
4
|
+
- OAuth2
|
|
5
|
+
title: Salesforce Connect API
|
|
6
|
+
version: '52.0'
|
|
7
|
+
mediaType: application/json
|
|
8
|
+
protocols:
|
|
9
|
+
- https
|
|
10
|
+
baseUri: /services/data/v66.0
|
|
11
|
+
securitySchemes:
|
|
12
|
+
OAuth2:
|
|
13
|
+
type: OAuth 2.0
|
|
14
|
+
settings:
|
|
15
|
+
authorizationUri: https://example.com/oauth/authorize
|
|
16
|
+
accessTokenUri: ''
|
|
17
|
+
authorizationGrants:
|
|
18
|
+
- implicit
|
|
19
|
+
annotationTypes:
|
|
20
|
+
oas-readOnly:
|
|
21
|
+
type: boolean
|
|
22
|
+
allowedTargets: TypeDeclaration
|
|
23
|
+
oas-collectionFormat:
|
|
24
|
+
type: string
|
|
25
|
+
oas-body-name:
|
|
26
|
+
type: string
|
|
27
|
+
allowedTargets: TypeDeclaration
|
|
28
|
+
|
|
29
|
+
types:
|
|
30
|
+
# TODO: Intentionally hand-rolled
|
|
31
|
+
# The java source has a single 'json' string field, but uses a custom serializer which outputs that as
|
|
32
|
+
# the actual json. The json output is not defined in the connect annotations.
|
|
33
|
+
# Similar to SaqlQueryResultsRepresentation in lds-adapters-analytics-wave
|
|
34
|
+
SoqlQueryResultRepresentation:
|
|
35
|
+
description: Represents a string of JSON content that will be serialized as-is.
|
|
36
|
+
type: object
|
|
37
|
+
properties:
|
|
38
|
+
totalSize:
|
|
39
|
+
type: number
|
|
40
|
+
required: false
|
|
41
|
+
done:
|
|
42
|
+
type: boolean
|
|
43
|
+
required: false
|
|
44
|
+
records:
|
|
45
|
+
description: The result records
|
|
46
|
+
type: array
|
|
47
|
+
items:
|
|
48
|
+
type: any
|
|
49
|
+
# depending on the type of query and the underlying data, there might be other properties
|
|
50
|
+
//:
|
|
51
|
+
type: any
|
|
52
|
+
SoqlQueryInputRepresentation:
|
|
53
|
+
description: A query input representation SOQL
|
|
54
|
+
type: object
|
|
55
|
+
properties:
|
|
56
|
+
query:
|
|
57
|
+
description: The query
|
|
58
|
+
type: string
|
|
59
|
+
TemplateSetupJobRepresentation:
|
|
60
|
+
description: The configuration and status of a template setup job.
|
|
61
|
+
type: object
|
|
62
|
+
properties:
|
|
63
|
+
description:
|
|
64
|
+
description: The job description.
|
|
65
|
+
type: string
|
|
66
|
+
required: false # TODO Hand-rolled W-8253396
|
|
67
|
+
duration:
|
|
68
|
+
description: The job's last execution time duration.
|
|
69
|
+
# format: int64
|
|
70
|
+
# type: integer
|
|
71
|
+
# TODO Hand-rolled W-8274943
|
|
72
|
+
format: double
|
|
73
|
+
type: number
|
|
74
|
+
required: false # TODO Hand-rolled W-8253396
|
|
75
|
+
name:
|
|
76
|
+
description: The job name.
|
|
77
|
+
type: string
|
|
78
|
+
status:
|
|
79
|
+
description: The job's last execution status
|
|
80
|
+
type: string
|
|
81
|
+
enum:
|
|
82
|
+
- Completed
|
|
83
|
+
- ExistingSetup
|
|
84
|
+
- Failed
|
|
85
|
+
- InProgress
|
|
86
|
+
- NotExecuted
|
|
87
|
+
- PreConditionNotMet
|
|
88
|
+
tasks:
|
|
89
|
+
description: The tasks in this job.
|
|
90
|
+
type: array
|
|
91
|
+
items:
|
|
92
|
+
type: TemplateSetupTaskRepresentation
|
|
93
|
+
TemplateSetupPlanRepresentation:
|
|
94
|
+
description: The configuration and current status of a template setup plan.
|
|
95
|
+
type: object
|
|
96
|
+
properties:
|
|
97
|
+
description:
|
|
98
|
+
description: The setup plan description.
|
|
99
|
+
type: string
|
|
100
|
+
required: false # TODO Hand-rolled W-8253396
|
|
101
|
+
details:
|
|
102
|
+
description: The task detailed description.
|
|
103
|
+
type: string
|
|
104
|
+
required: false # TODO Hand-rolled W-8253396
|
|
105
|
+
duration:
|
|
106
|
+
description: The setup plan's last execution duration.
|
|
107
|
+
# format: int64
|
|
108
|
+
# type: integer
|
|
109
|
+
# TODO Hand-rolled W-8274943
|
|
110
|
+
format: double
|
|
111
|
+
type: number
|
|
112
|
+
required: false # TODO Hand-rolled W-8253396
|
|
113
|
+
jobs:
|
|
114
|
+
description: The jobs in this plan.
|
|
115
|
+
type: array
|
|
116
|
+
items:
|
|
117
|
+
type: TemplateSetupJobRepresentation
|
|
118
|
+
name:
|
|
119
|
+
description: The setup plan name.
|
|
120
|
+
type: string
|
|
121
|
+
status:
|
|
122
|
+
description: The setup plan's last execution status.
|
|
123
|
+
type: string
|
|
124
|
+
enum:
|
|
125
|
+
- Completed
|
|
126
|
+
- ExistingSetup
|
|
127
|
+
- Failed
|
|
128
|
+
- InProgress
|
|
129
|
+
- NotExecuted
|
|
130
|
+
- PreConditionNotMet
|
|
131
|
+
templateId:
|
|
132
|
+
description: The template id for this setup plan.
|
|
133
|
+
type: string
|
|
134
|
+
TemplateSetupTaskRepresentation:
|
|
135
|
+
description: The configuration and status of a template setup task.
|
|
136
|
+
type: object
|
|
137
|
+
properties:
|
|
138
|
+
description:
|
|
139
|
+
description: The task description.
|
|
140
|
+
type: string
|
|
141
|
+
required: false # TODO Hand-rolled W-8253396
|
|
142
|
+
details:
|
|
143
|
+
description: The task detailed description.
|
|
144
|
+
type: string
|
|
145
|
+
required: false # TODO Hand-rolled W-8253396
|
|
146
|
+
duration:
|
|
147
|
+
description: The task's last execution time duration.
|
|
148
|
+
# format: int64
|
|
149
|
+
# type: integer
|
|
150
|
+
# TODO Hand-rolled W-8274943
|
|
151
|
+
format: double
|
|
152
|
+
type: number
|
|
153
|
+
required: false # TODO Hand-rolled W-8253396
|
|
154
|
+
enabled:
|
|
155
|
+
description: Is the resulting setup for this task enabled.
|
|
156
|
+
type: boolean
|
|
157
|
+
required: false # TODO Hand-rolled W-8253396
|
|
158
|
+
endDate:
|
|
159
|
+
description: The End Date timestamp of the task.
|
|
160
|
+
type: string
|
|
161
|
+
required: false # TODO Hand-rolled W-8253396
|
|
162
|
+
error:
|
|
163
|
+
description: Any error message if the task's last execution failed.
|
|
164
|
+
type: string
|
|
165
|
+
required: false # TODO Hand-rolled W-8253396
|
|
166
|
+
name:
|
|
167
|
+
description: The task name.
|
|
168
|
+
type: string
|
|
169
|
+
setupUrl:
|
|
170
|
+
description: The url or url path to perform the task configuration manually.
|
|
171
|
+
Typically only shown on error.
|
|
172
|
+
type: string
|
|
173
|
+
required: false # TODO Hand-rolled W-8253396
|
|
174
|
+
startDate:
|
|
175
|
+
description: The Start Date timestamp of the task.
|
|
176
|
+
type: string
|
|
177
|
+
required: false # TODO Hand-rolled W-8253396
|
|
178
|
+
status:
|
|
179
|
+
description: The task's last execution status.
|
|
180
|
+
type: string
|
|
181
|
+
enum:
|
|
182
|
+
- Completed
|
|
183
|
+
- ExistingSetup
|
|
184
|
+
- Failed
|
|
185
|
+
- InProgress
|
|
186
|
+
- NotExecuted
|
|
187
|
+
- PreConditionNotMet
|
|
188
|
+
BaseDashboardInputRepresentation:
|
|
189
|
+
description: Wave Dashboard Asset Representation
|
|
190
|
+
type: object
|
|
191
|
+
discriminator: name
|
|
192
|
+
properties:
|
|
193
|
+
folder:
|
|
194
|
+
description: Folder in which this dashboard is stored.
|
|
195
|
+
type: any
|
|
196
|
+
label:
|
|
197
|
+
description: The label of the asset.
|
|
198
|
+
type: string
|
|
199
|
+
name:
|
|
200
|
+
description: The name of the asset.
|
|
201
|
+
type: string
|
|
202
|
+
description:
|
|
203
|
+
description: Short Description of the asset.
|
|
204
|
+
type: string
|
|
205
|
+
templateSourceId:
|
|
206
|
+
description: The source template ID or api name used to create the dashboard.
|
|
207
|
+
type: string
|
|
208
|
+
templateValues:
|
|
209
|
+
description: The runtime template values to use during dashboard creation,
|
|
210
|
+
as specified by the individual dashboard template.
|
|
211
|
+
type: object
|
|
212
|
+
properties:
|
|
213
|
+
//:
|
|
214
|
+
type: any
|
|
215
|
+
DashboardRepresentation:
|
|
216
|
+
description: Wave dashboard asset representation.
|
|
217
|
+
type: object
|
|
218
|
+
properties:
|
|
219
|
+
id:
|
|
220
|
+
description: The 18 character asset ID.
|
|
221
|
+
type: string | nil
|
|
222
|
+
//:
|
|
223
|
+
type: any
|
|
224
|
+
|
|
225
|
+
/wave:
|
|
226
|
+
/soql:
|
|
227
|
+
post:
|
|
228
|
+
description: Execute a query.
|
|
229
|
+
responses:
|
|
230
|
+
'200':
|
|
231
|
+
description: Success
|
|
232
|
+
body:
|
|
233
|
+
application/json:
|
|
234
|
+
type: SoqlQueryResultRepresentation
|
|
235
|
+
body:
|
|
236
|
+
application/json:
|
|
237
|
+
type: SoqlQueryInputRepresentation
|
|
238
|
+
(oas-body-name): query
|
|
239
|
+
/templates/{templateIdOrApiName}/plans/{planName}:
|
|
240
|
+
get:
|
|
241
|
+
displayName: getWaveTemplateSetupPlan
|
|
242
|
+
description: Returns the plan.
|
|
243
|
+
responses:
|
|
244
|
+
'200':
|
|
245
|
+
description: Success
|
|
246
|
+
body:
|
|
247
|
+
application/json:
|
|
248
|
+
type: TemplateSetupPlanRepresentation
|
|
249
|
+
post:
|
|
250
|
+
displayName: postWaveTemplateSetupPlan
|
|
251
|
+
description: Execute a plan.
|
|
252
|
+
responses:
|
|
253
|
+
'200':
|
|
254
|
+
description: Success
|
|
255
|
+
body:
|
|
256
|
+
application/json:
|
|
257
|
+
type: TemplateSetupPlanRepresentation
|
|
258
|
+
uriParameters:
|
|
259
|
+
planName:
|
|
260
|
+
type: string
|
|
261
|
+
required: true
|
|
262
|
+
templateIdOrApiName:
|
|
263
|
+
type: string
|
|
264
|
+
required: true
|
|
265
|
+
/dashboards:
|
|
266
|
+
post:
|
|
267
|
+
displayName: postDashboardCollection
|
|
268
|
+
description: Create a new Dashboard.
|
|
269
|
+
responses:
|
|
270
|
+
'200':
|
|
271
|
+
description: Success
|
|
272
|
+
body:
|
|
273
|
+
application/json:
|
|
274
|
+
type: DashboardRepresentation
|
|
275
|
+
body:
|
|
276
|
+
application/json:
|
|
277
|
+
type: BaseDashboardInputRepresentation
|
|
278
|
+
(oas-body-name): dashboard
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
#%RAML 1.0 Overlay
|
|
2
|
+
extends: ./api.raml
|
|
3
|
+
|
|
4
|
+
uses:
|
|
5
|
+
luvio: luvio://annotations.raml
|
|
6
|
+
|
|
7
|
+
(luvio.keyPrefix): 'WAVE'
|
|
8
|
+
(luvio.ttl): 2592000000
|
|
9
|
+
|
|
10
|
+
types:
|
|
11
|
+
SoqlQueryResultRepresentation:
|
|
12
|
+
(luvio.opaque): true
|
|
13
|
+
(luvio.ttl): 5000
|
|
14
|
+
TemplateSetupPlanRepresentation:
|
|
15
|
+
(luvio.key):
|
|
16
|
+
templateId: templateId
|
|
17
|
+
planName: name
|
|
18
|
+
(luvio.ttl): 1000
|
|
19
|
+
DashboardRepresentation:
|
|
20
|
+
(luvio.ttl): 5000
|
|
21
|
+
(luvio.key):
|
|
22
|
+
id: id
|
|
23
|
+
|
|
24
|
+
/wave:
|
|
25
|
+
/soql:
|
|
26
|
+
post:
|
|
27
|
+
(luvio.adapter):
|
|
28
|
+
name: executeSoqlQueryPost
|
|
29
|
+
(luvio.method): get
|
|
30
|
+
/templates/{templateIdOrApiName}/plans/{planName}:
|
|
31
|
+
get:
|
|
32
|
+
(luvio.adapter):
|
|
33
|
+
name: getTemplateSetupPlan
|
|
34
|
+
(luvio.key):
|
|
35
|
+
templateId: urlParams.templateIdOrApiName
|
|
36
|
+
planName: urlParams.planName
|
|
37
|
+
post:
|
|
38
|
+
(luvio.adapter):
|
|
39
|
+
name: executeTemplateSetupPlan
|
|
40
|
+
/dashboards:
|
|
41
|
+
post:
|
|
42
|
+
(luvio.adapter):
|
|
43
|
+
name: createDashboard
|