@salesforce/lds-adapters-analytics-tableau-embedding 1.148.0 → 1.149.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/dist/es/es2018/analytics-tableau-embedding.js +245 -172
- package/dist/es/es2018/types/src/generated/adapters/getJWT.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/adapters/postJWT.d.ts +5 -16
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +1 -2
- package/dist/es/es2018/types/src/generated/resources/getTableauJwt.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/postTableauJwt.d.ts +5 -7
- package/dist/es/es2018/types/src/generated/types/TableauJWTInputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/TableauJWTRepresentation.d.ts +13 -1
- package/dist/es/es2018/types/src/generated/types/TableauJWTRepresentation2.d.ts +50 -0
- package/dist/es/es2018/types/src/sfdc.d.ts +1 -2
- package/package.json +1 -1
- package/sfdc/index.js +254 -199
- package/src/raml/api.raml +46 -3
- package/src/raml/luvio.raml +8 -1
|
@@ -5,6 +5,7 @@ import { TableauJWTRepresentation as types_TableauJWTRepresentation_TableauJWTRe
|
|
|
5
5
|
export declare const adapterName = "getJWT";
|
|
6
6
|
export declare const getJWT_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
7
|
export interface GetJWTConfig {
|
|
8
|
+
cb?: string;
|
|
8
9
|
siteId?: string;
|
|
9
10
|
tabUrl?: string;
|
|
10
11
|
}
|
|
@@ -1,27 +1,16 @@
|
|
|
1
1
|
import { AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig, Untrusted as adapter$45$utils_Untrusted } from './adapter-utils';
|
|
2
2
|
import { ResourceRequestConfig as resources_postTableauJwt_ResourceRequestConfig } from '../resources/postTableauJwt';
|
|
3
|
-
import { Luvio as $64$luvio_engine_Luvio,
|
|
4
|
-
import {
|
|
3
|
+
import { Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
4
|
+
import { TableauJWTRepresentation2 as types_TableauJWTRepresentation2_TableauJWTRepresentation2 } from '../types/TableauJWTRepresentation2';
|
|
5
5
|
export declare const adapterName = "postJWT";
|
|
6
6
|
export declare const postJWT_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
7
|
export interface PostJWTConfig {
|
|
8
|
+
cb?: string;
|
|
8
9
|
siteId?: string;
|
|
9
10
|
tabUrl?: string;
|
|
10
11
|
}
|
|
11
12
|
export declare function createResourceParams(config: PostJWTConfig): resources_postTableauJwt_ResourceRequestConfig;
|
|
12
|
-
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: PostJWTConfig): string;
|
|
13
|
-
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: PostJWTConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
13
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<PostJWTConfig>): adapter$45$utils_Untrusted<PostJWTConfig>;
|
|
15
14
|
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): PostJWTConfig | null;
|
|
16
|
-
export declare function
|
|
17
|
-
export declare
|
|
18
|
-
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: PostJWTConfig, resourceParams: resources_postTableauJwt_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_TableauJWTRepresentation_TableauJWTRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_TableauJWTRepresentation_TableauJWTRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_TableauJWTRepresentation_TableauJWTRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_TableauJWTRepresentation_TableauJWTRepresentation, any>>;
|
|
19
|
-
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: PostJWTConfig, resourceParams: resources_postTableauJwt_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
20
|
-
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: PostJWTConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_TableauJWTRepresentation_TableauJWTRepresentation, any>>;
|
|
21
|
-
export type BuildSnapshotContext = {
|
|
22
|
-
luvio: $64$luvio_engine_Luvio;
|
|
23
|
-
config: PostJWTConfig;
|
|
24
|
-
};
|
|
25
|
-
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_TableauJWTRepresentation_TableauJWTRepresentation, any>>;
|
|
26
|
-
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_TableauJWTRepresentation_TableauJWTRepresentation>): $64$luvio_engine_Snapshot<types_TableauJWTRepresentation_TableauJWTRepresentation, any>;
|
|
27
|
-
export declare const postJWTAdapterFactory: $64$luvio_engine_AdapterFactory<PostJWTConfig, types_TableauJWTRepresentation_TableauJWTRepresentation>;
|
|
15
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: PostJWTConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_TableauJWTRepresentation2_TableauJWTRepresentation2, {}> | import("@luvio/engine").StaleSnapshot<types_TableauJWTRepresentation2_TableauJWTRepresentation2, {}> | import("@luvio/engine").PendingSnapshot<types_TableauJWTRepresentation2_TableauJWTRepresentation2, any>>;
|
|
16
|
+
export declare const postJWTAdapterFactory: $64$luvio_engine_AdapterFactory<PostJWTConfig, types_TableauJWTRepresentation2_TableauJWTRepresentation2>;
|
|
@@ -3,5 +3,4 @@ declare let getJWT: any;
|
|
|
3
3
|
declare let postJWT: any;
|
|
4
4
|
declare let getEAS_imperative: any;
|
|
5
5
|
declare let getJWT_imperative: any;
|
|
6
|
-
|
|
7
|
-
export { getEAS, getJWT, postJWT, getEAS_imperative, getJWT_imperative, postJWT_imperative };
|
|
6
|
+
export { getEAS, getJWT, postJWT, getEAS_imperative, getJWT_imperative };
|
|
@@ -2,6 +2,7 @@ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment,
|
|
|
2
2
|
import { TableauJWTRepresentation as types_TableauJWTRepresentation_TableauJWTRepresentation } from '../types/TableauJWTRepresentation';
|
|
3
3
|
export interface ResourceRequestConfig {
|
|
4
4
|
queryParams: {
|
|
5
|
+
cb?: string;
|
|
5
6
|
siteId?: string;
|
|
6
7
|
tabUrl?: string;
|
|
7
8
|
};
|
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment,
|
|
2
|
-
import {
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
|
|
2
|
+
import { TableauJWTRepresentation2 as types_TableauJWTRepresentation2_TableauJWTRepresentation2 } from '../types/TableauJWTRepresentation2';
|
|
3
3
|
export interface ResourceRequestConfig {
|
|
4
4
|
body: {
|
|
5
|
+
cb?: string;
|
|
5
6
|
siteId?: string;
|
|
6
7
|
tabUrl?: string;
|
|
7
8
|
};
|
|
8
9
|
}
|
|
9
10
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
10
|
-
export declare function
|
|
11
|
-
export declare function
|
|
12
|
-
export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_TableauJWTRepresentation_TableauJWTRepresentation): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
13
|
-
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_TableauJWTRepresentation_TableauJWTRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_TableauJWTRepresentation_TableauJWTRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_TableauJWTRepresentation_TableauJWTRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_TableauJWTRepresentation_TableauJWTRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_TableauJWTRepresentation_TableauJWTRepresentation, any>;
|
|
14
|
-
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_TableauJWTRepresentation_TableauJWTRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
11
|
+
export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_TableauJWTRepresentation2_TableauJWTRepresentation2): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
12
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_TableauJWTRepresentation2_TableauJWTRepresentation2>): $64$luvio_engine_FulfilledSnapshot<types_TableauJWTRepresentation2_TableauJWTRepresentation2, {}> | $64$luvio_engine_StaleSnapshot<types_TableauJWTRepresentation2_TableauJWTRepresentation2, {}> | $64$luvio_engine_PendingSnapshot<types_TableauJWTRepresentation2_TableauJWTRepresentation2, any>;
|
|
15
13
|
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
16
14
|
export default createResourceRequest;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
2
|
-
export declare const VERSION = "
|
|
2
|
+
export declare const VERSION = "872526fa9136739ec5fc76c8d6ce5468";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
5
5
|
export declare function normalize(input: TableauJWTInputRepresentation, existing: TableauJWTInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): TableauJWTInputRepresentationNormalized;
|
|
@@ -14,6 +14,8 @@ export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: T
|
|
|
14
14
|
* (none)
|
|
15
15
|
*/
|
|
16
16
|
export interface TableauJWTInputRepresentationNormalized {
|
|
17
|
+
/** Cache buster */
|
|
18
|
+
cb?: string;
|
|
17
19
|
/** Tableau Site ID */
|
|
18
20
|
siteId?: string;
|
|
19
21
|
/** Tableau Embedding URL */
|
|
@@ -26,6 +28,7 @@ export interface TableauJWTInputRepresentationNormalized {
|
|
|
26
28
|
* (none)
|
|
27
29
|
*/
|
|
28
30
|
export interface TableauJWTInputRepresentation {
|
|
31
|
+
cb?: string;
|
|
29
32
|
siteId?: string;
|
|
30
33
|
tabUrl?: string;
|
|
31
34
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
2
2
|
export declare const TTL = 100;
|
|
3
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "4d102ac5faa986113597892e5baa1d1f";
|
|
4
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
5
|
export declare const RepresentationType: string;
|
|
6
6
|
export declare function normalize(input: TableauJWTRepresentation, existing: TableauJWTRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): TableauJWTRepresentationNormalized;
|
|
@@ -15,6 +15,14 @@ export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: T
|
|
|
15
15
|
* (none)
|
|
16
16
|
*/
|
|
17
17
|
export interface TableauJWTRepresentationNormalized {
|
|
18
|
+
/** The cache buster parameter used when the JWT was requested, if available */
|
|
19
|
+
cb: string;
|
|
20
|
+
/** The jti claim in the JWT */
|
|
21
|
+
jti: string;
|
|
22
|
+
/** The Tableau Site ID this JWT was created for */
|
|
23
|
+
siteId: string;
|
|
24
|
+
/** The Tableau URL this JWT was created for */
|
|
25
|
+
tabUrl: string;
|
|
18
26
|
/** Tableau embedding JWT */
|
|
19
27
|
token: string;
|
|
20
28
|
}
|
|
@@ -25,5 +33,9 @@ export interface TableauJWTRepresentationNormalized {
|
|
|
25
33
|
* (none)
|
|
26
34
|
*/
|
|
27
35
|
export interface TableauJWTRepresentation {
|
|
36
|
+
cb: string;
|
|
37
|
+
jti: string;
|
|
38
|
+
siteId: string;
|
|
39
|
+
tabUrl: string;
|
|
28
40
|
token: string;
|
|
29
41
|
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
2
|
+
export declare const TTL = 100;
|
|
3
|
+
export declare const VERSION = "88a8d9029774893417ad347424a8729c";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
7
|
+
id: string;
|
|
8
|
+
}
|
|
9
|
+
export type TableauJWTRepresentation2NormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
10
|
+
export type PartialTableauJWTRepresentation2NormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
|
|
12
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): TableauJWTRepresentation2NormalizedKeyMetadata;
|
|
13
|
+
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: TableauJWTRepresentation2): string;
|
|
14
|
+
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: TableauJWTRepresentation2): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
|
+
export declare function normalize(input: TableauJWTRepresentation2, existing: TableauJWTRepresentation2Normalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): TableauJWTRepresentation2Normalized;
|
|
16
|
+
export declare const select: () => $64$luvio_engine_BaseFragment;
|
|
17
|
+
export declare function equals(existing: TableauJWTRepresentation2Normalized, incoming: TableauJWTRepresentation2Normalized): boolean;
|
|
18
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
19
|
+
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: TableauJWTRepresentation2, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
20
|
+
/**
|
|
21
|
+
* Tableau embedding JWT
|
|
22
|
+
*
|
|
23
|
+
* Keys:
|
|
24
|
+
* id (string): jti
|
|
25
|
+
*/
|
|
26
|
+
export interface TableauJWTRepresentation2Normalized {
|
|
27
|
+
/** The cache buster parameter used when the JWT was requested, if available */
|
|
28
|
+
cb: string;
|
|
29
|
+
/** The jti claim in the JWT */
|
|
30
|
+
jti: string;
|
|
31
|
+
/** The Tableau Site ID this JWT was created for */
|
|
32
|
+
siteId: string;
|
|
33
|
+
/** The Tableau URL this JWT was created for */
|
|
34
|
+
tabUrl: string;
|
|
35
|
+
/** Tableau embedding JWT */
|
|
36
|
+
token: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Tableau embedding JWT
|
|
40
|
+
*
|
|
41
|
+
* Keys:
|
|
42
|
+
* id (string): jti
|
|
43
|
+
*/
|
|
44
|
+
export interface TableauJWTRepresentation2 {
|
|
45
|
+
cb: string;
|
|
46
|
+
jti: string;
|
|
47
|
+
siteId: string;
|
|
48
|
+
tabUrl: string;
|
|
49
|
+
token: string;
|
|
50
|
+
}
|
|
@@ -3,5 +3,4 @@ declare let getJWT: any;
|
|
|
3
3
|
declare let postJWT: any;
|
|
4
4
|
declare let getEAS_imperative: any;
|
|
5
5
|
declare let getJWT_imperative: any;
|
|
6
|
-
|
|
7
|
-
export { getEAS, getJWT, postJWT, getEAS_imperative, getJWT_imperative, postJWT_imperative };
|
|
6
|
+
export { getEAS, getJWT, postJWT, getEAS_imperative, getJWT_imperative };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-analytics-tableau-embedding",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.149.0",
|
|
4
4
|
"description": "The APIs in this family are supporting embedding of Tableau vizualizations into Salesforce.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/es/es2018/analytics-tableau-embedding.js",
|