@salesforce/lds-adapters-analytics-tableau-embedding 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-tableau-embedding.js +694 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/getEAS.d.ts +26 -0
- package/dist/es/es2018/types/src/generated/adapters/getJWT.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/adapters/postJWT.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +6 -0
- package/dist/es/es2018/types/src/generated/resources/getTableauEas.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/resources/getTableauJwt.d.ts +19 -0
- package/dist/es/es2018/types/src/generated/resources/postTableauJwt.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/types/TableauEASRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/TableauJWTInputRepresentation.d.ts +40 -0
- package/dist/es/es2018/types/src/generated/types/TableauJWTRepresentation.d.ts +44 -0
- package/dist/es/es2018/types/src/generated/types/TableauJWTRepresentation2.d.ts +53 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/dist/es/es2018/types/src/main.d.ts +3 -0
- package/dist/es/es2018/types/src/sfdc.d.ts +6 -0
- package/dist/es/es2018/types/src/wire/getJWT/index.d.ts +4 -0
- package/package.json +76 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +724 -0
- package/src/raml/api.raml +171 -0
- package/src/raml/luvio.raml +39 -0
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
#%RAML 1.0
|
|
2
|
+
# EUREKA: Contents of this file have been manually edited and are different from Core generated RAML!
|
|
3
|
+
# Please make sure these changes are kept if they are still needed and don't just override with new contents!
|
|
4
|
+
securedBy:
|
|
5
|
+
- OAuth2
|
|
6
|
+
title: Salesforce Connect API
|
|
7
|
+
version: '59.0'
|
|
8
|
+
mediaType: application/json
|
|
9
|
+
protocols:
|
|
10
|
+
- https
|
|
11
|
+
baseUri: /services/data/v66.0
|
|
12
|
+
securitySchemes:
|
|
13
|
+
OAuth2:
|
|
14
|
+
type: OAuth 2.0
|
|
15
|
+
settings:
|
|
16
|
+
authorizationUri: https://example.com/oauth/authorize
|
|
17
|
+
accessTokenUri: ''
|
|
18
|
+
authorizationGrants:
|
|
19
|
+
- implicit
|
|
20
|
+
annotationTypes:
|
|
21
|
+
oas-readOnly:
|
|
22
|
+
type: boolean
|
|
23
|
+
allowedTargets: TypeDeclaration
|
|
24
|
+
oas-collectionFormat:
|
|
25
|
+
type: string
|
|
26
|
+
oas-body-name:
|
|
27
|
+
type: string
|
|
28
|
+
allowedTargets: TypeDeclaration
|
|
29
|
+
types:
|
|
30
|
+
TableauEASRepresentation:
|
|
31
|
+
description: Tableau EAS trust registration details
|
|
32
|
+
type: object
|
|
33
|
+
properties:
|
|
34
|
+
issuer:
|
|
35
|
+
description: Issuer URL
|
|
36
|
+
type: string
|
|
37
|
+
jwks:
|
|
38
|
+
description: JWKS URI
|
|
39
|
+
type: string
|
|
40
|
+
TableauJWTInputRepresentation:
|
|
41
|
+
description: Tableau embedding JWT inputs
|
|
42
|
+
type: object
|
|
43
|
+
properties:
|
|
44
|
+
cb:
|
|
45
|
+
description: Cache buster
|
|
46
|
+
type: string
|
|
47
|
+
# This was edited to specify the property is not required! Tests will fail with network mock issues if this is removed!
|
|
48
|
+
required: false
|
|
49
|
+
siteId:
|
|
50
|
+
description: Tableau Site ID
|
|
51
|
+
type: string
|
|
52
|
+
# This was edited to specify the property is not required! Tests will fail with network mock issues if this is removed!
|
|
53
|
+
required: false
|
|
54
|
+
tabUrl:
|
|
55
|
+
description: Tableau Embedding URL
|
|
56
|
+
type: string
|
|
57
|
+
# This was edited to specify the property is not required! Tests will fail with network mock issues if this is removed!
|
|
58
|
+
required: false
|
|
59
|
+
uafDefinitionNames:
|
|
60
|
+
description: UAF Claim definition names
|
|
61
|
+
type: string
|
|
62
|
+
required: false
|
|
63
|
+
jwtAccessScopeSet:
|
|
64
|
+
description: Scopes set
|
|
65
|
+
type: string
|
|
66
|
+
required: false
|
|
67
|
+
TableauJWTRepresentation:
|
|
68
|
+
description: Tableau embedding JWT
|
|
69
|
+
type: object
|
|
70
|
+
properties:
|
|
71
|
+
cb:
|
|
72
|
+
description: The cache buster parameter used when the JWT was requested, if
|
|
73
|
+
available
|
|
74
|
+
type: string
|
|
75
|
+
jti:
|
|
76
|
+
description: The jti claim in the JWT
|
|
77
|
+
type: string
|
|
78
|
+
siteId:
|
|
79
|
+
description: The Tableau Site ID this JWT was created for
|
|
80
|
+
type: string
|
|
81
|
+
tabUrl:
|
|
82
|
+
description: The Tableau URL this JWT was created for
|
|
83
|
+
type: string
|
|
84
|
+
token:
|
|
85
|
+
description: Tableau embedding JWT
|
|
86
|
+
type: string
|
|
87
|
+
uafClaims:
|
|
88
|
+
description: The UAF claims that were added to the JWT
|
|
89
|
+
type: string
|
|
90
|
+
# This type should always be a clone of TableauJWTRepresentation above, just configured differently in luvio.raml. Inheritance via base type is not possible!
|
|
91
|
+
TableauJWTRepresentation2:
|
|
92
|
+
description: Tableau embedding JWT
|
|
93
|
+
type: object
|
|
94
|
+
properties:
|
|
95
|
+
cb:
|
|
96
|
+
description: The cache buster parameter used when the JWT was requested, if
|
|
97
|
+
available
|
|
98
|
+
type: string
|
|
99
|
+
jti:
|
|
100
|
+
description: The jti claim in the JWT
|
|
101
|
+
type: string
|
|
102
|
+
siteId:
|
|
103
|
+
description: The Tableau Site ID this JWT was created for
|
|
104
|
+
type: string
|
|
105
|
+
tabUrl:
|
|
106
|
+
description: The Tableau URL this JWT was created for
|
|
107
|
+
type: string
|
|
108
|
+
token:
|
|
109
|
+
description: Tableau embedding JWT
|
|
110
|
+
type: string
|
|
111
|
+
uafClaims:
|
|
112
|
+
description: The UAF claims that were added to the JWT
|
|
113
|
+
type: string
|
|
114
|
+
/tableau:
|
|
115
|
+
/eas:
|
|
116
|
+
get:
|
|
117
|
+
displayName: getTableauEAS
|
|
118
|
+
description: Get the Tableau EAS trust details
|
|
119
|
+
responses:
|
|
120
|
+
'200':
|
|
121
|
+
description: Success
|
|
122
|
+
body:
|
|
123
|
+
application/json:
|
|
124
|
+
type: TableauEASRepresentation
|
|
125
|
+
/jwt:
|
|
126
|
+
get:
|
|
127
|
+
displayName: getTableauJWT
|
|
128
|
+
description: GET method to retrieve the custom Tableau embedding JWT
|
|
129
|
+
responses:
|
|
130
|
+
'200':
|
|
131
|
+
description: Success
|
|
132
|
+
body:
|
|
133
|
+
application/json:
|
|
134
|
+
type: TableauJWTRepresentation
|
|
135
|
+
queryParameters:
|
|
136
|
+
cb:
|
|
137
|
+
description: Cache buster
|
|
138
|
+
type: string
|
|
139
|
+
required: false
|
|
140
|
+
siteId:
|
|
141
|
+
description: Tableau Site ID
|
|
142
|
+
type: string
|
|
143
|
+
required: false
|
|
144
|
+
tabUrl:
|
|
145
|
+
description: Tableau Embedding URL
|
|
146
|
+
type: string
|
|
147
|
+
required: false
|
|
148
|
+
uafDefinitionNames:
|
|
149
|
+
description: UAF Claim definition names
|
|
150
|
+
type: string
|
|
151
|
+
required: false
|
|
152
|
+
jwtAccessScopeSet:
|
|
153
|
+
description: Access scope set for the generated JWT token
|
|
154
|
+
type: string
|
|
155
|
+
required: false
|
|
156
|
+
post:
|
|
157
|
+
displayName: postTableauJWT
|
|
158
|
+
description: POST method for generating the custom Tableau embedding JWT
|
|
159
|
+
responses:
|
|
160
|
+
'200':
|
|
161
|
+
description: Success
|
|
162
|
+
body:
|
|
163
|
+
application/json:
|
|
164
|
+
type: TableauJWTRepresentation2
|
|
165
|
+
body:
|
|
166
|
+
application/json:
|
|
167
|
+
description: Tableau embedding JWT inputs
|
|
168
|
+
type: TableauJWTInputRepresentation
|
|
169
|
+
# The line below is from Core RAML but is commented out because it causes compilation errors in this repo!
|
|
170
|
+
# required: false
|
|
171
|
+
(oas-body-name): tableauJwtArgs
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
#%RAML 1.0 Overlay
|
|
2
|
+
extends: ./api.raml
|
|
3
|
+
|
|
4
|
+
uses:
|
|
5
|
+
luvio: luvio://annotations.raml
|
|
6
|
+
|
|
7
|
+
(luvio.keyPrefix): 'TableauEmbedding'
|
|
8
|
+
|
|
9
|
+
types:
|
|
10
|
+
TableauEASRepresentation:
|
|
11
|
+
(luvio.opaque): true
|
|
12
|
+
(luvio.ttl): 180000
|
|
13
|
+
|
|
14
|
+
TableauJWTRepresentation:
|
|
15
|
+
(luvio.opaque): true
|
|
16
|
+
# logically this is going to be ZERO because of `no-cache` forced policy, but using the min recommended here
|
|
17
|
+
(luvio.ttl): 100
|
|
18
|
+
|
|
19
|
+
# This type should always be a clone of TableauJWTRepresentation above, just configured differently
|
|
20
|
+
TableauJWTRepresentation2:
|
|
21
|
+
(luvio.opaque): true
|
|
22
|
+
# logically this is going to be ZERO because of `no-cache` forced policy, but using the min recommended here
|
|
23
|
+
(luvio.ttl): 100
|
|
24
|
+
(luvio.key):
|
|
25
|
+
id: jti
|
|
26
|
+
|
|
27
|
+
/tableau:
|
|
28
|
+
/eas:
|
|
29
|
+
get:
|
|
30
|
+
(luvio.adapter):
|
|
31
|
+
name: getEAS
|
|
32
|
+
|
|
33
|
+
/jwt:
|
|
34
|
+
get:
|
|
35
|
+
(luvio.adapter):
|
|
36
|
+
name: getJWT
|
|
37
|
+
post:
|
|
38
|
+
(luvio.adapter):
|
|
39
|
+
name: postJWT
|