@salesforce/lds-adapters-analytics-tableau-embedding 0.131.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.
@@ -0,0 +1,66 @@
1
+ import { Adapter as $64$luvio_engine_Adapter, Snapshot as $64$luvio_engine_Snapshot, UnfulfilledSnapshot as $64$luvio_engine_UnfulfilledSnapshot } from '@luvio/engine';
2
+ export declare const ObjectPrototypeHasOwnProperty: (v: PropertyKey) => boolean;
3
+ declare const ObjectKeys: {
4
+ (o: object): string[];
5
+ (o: {}): string[];
6
+ }, ObjectFreeze: {
7
+ <T extends Function>(f: T): T;
8
+ <T_1 extends {
9
+ [idx: string]: object | U | null | undefined;
10
+ }, U extends string | number | bigint | boolean | symbol>(o: T_1): Readonly<T_1>;
11
+ <T_2>(o: T_2): Readonly<T_2>;
12
+ }, ObjectCreate: {
13
+ (o: object | null): any;
14
+ (o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
15
+ };
16
+ export { ObjectFreeze, ObjectCreate, ObjectKeys };
17
+ export declare const ArrayIsArray: (arg: any) => arg is any[];
18
+ export declare const ArrayPrototypePush: (...items: any[]) => number;
19
+ export interface AdapterValidationConfig {
20
+ displayName: string;
21
+ parameters: {
22
+ required: string[];
23
+ optional: string[];
24
+ unsupported?: string[];
25
+ };
26
+ }
27
+ /**
28
+ * Validates an adapter config is well-formed.
29
+ * @param config The config to validate.
30
+ * @param adapter The adapter validation configuration.
31
+ * @param oneOf The keys the config must contain at least one of.
32
+ * @throws A TypeError if config doesn't satisfy the adapter's config validation.
33
+ */
34
+ export declare function validateConfig<T>(config: Untrusted<T>, adapter: AdapterValidationConfig, oneOf?: string[]): void;
35
+ export declare function untrustedIsObject<Base>(untrusted: unknown): untrusted is Untrusted<Base>;
36
+ export type UncoercedConfiguration<Base, Options extends {
37
+ [key in keyof Base]?: any;
38
+ }> = {
39
+ [Key in keyof Base]?: Base[Key] | Options[Key];
40
+ };
41
+ export type Untrusted<Base> = Partial<Base>;
42
+ export declare function areRequiredParametersPresent<T>(config: any, configPropertyNames: AdapterValidationConfig): config is T;
43
+ export declare function refreshable<C, D, R>(adapter: $64$luvio_engine_Adapter<C, D>, resolve: (config: unknown) => Promise<$64$luvio_engine_Snapshot<R>>): $64$luvio_engine_Adapter<C, D>;
44
+ export declare const SNAPSHOT_STATE_FULFILLED = "Fulfilled";
45
+ export declare const SNAPSHOT_STATE_UNFULFILLED = "Unfulfilled";
46
+ export declare const snapshotRefreshOptions: {
47
+ overrides: {
48
+ headers: {
49
+ 'Cache-Control': string;
50
+ };
51
+ };
52
+ };
53
+ /**
54
+ * A deterministic JSON stringify implementation. Heavily adapted from https://github.com/epoberezkin/fast-json-stable-stringify.
55
+ * This is needed because insertion order for JSON.stringify(object) affects output:
56
+ * JSON.stringify({a: 1, b: 2})
57
+ * "{"a":1,"b":2}"
58
+ * JSON.stringify({b: 2, a: 1})
59
+ * "{"b":2,"a":1}"
60
+ * @param data Data to be JSON-stringified.
61
+ * @returns JSON.stringified value with consistent ordering of keys.
62
+ */
63
+ export declare function stableJSONStringify(node: any): string | undefined;
64
+ export declare function getFetchResponseStatusText(status: number): string;
65
+ export declare function isUnfulfilledSnapshot<T, U>(snapshot: $64$luvio_engine_Snapshot<T, U>): snapshot is $64$luvio_engine_UnfulfilledSnapshot<T, U>;
66
+ export declare const keyPrefix = "TableauEmbedding";
@@ -0,0 +1,25 @@
1
+ import { AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig, Untrusted as adapter$45$utils_Untrusted } from './adapter-utils';
2
+ import { ResourceRequestConfig as resources_getTableauEas_ResourceRequestConfig } from '../resources/getTableauEas';
3
+ import { Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
4
+ import { TableauEASRepresentation as types_TableauEASRepresentation_TableauEASRepresentation } from '../types/TableauEASRepresentation';
5
+ export declare const adapterName = "getEAS";
6
+ export declare const getEAS_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
7
+ export interface GetEASConfig {
8
+ }
9
+ export declare function createResourceParams(config: GetEASConfig): resources_getTableauEas_ResourceRequestConfig;
10
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetEASConfig): string;
11
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetEASConfig): $64$luvio_engine_NormalizedKeyMetadata;
12
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetEASConfig>): adapter$45$utils_Untrusted<GetEASConfig>;
13
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetEASConfig | null;
14
+ export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetEASConfig): $64$luvio_engine_Fragment;
15
+ export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetEASConfig): $64$luvio_engine_Snapshot<types_TableauEASRepresentation_TableauEASRepresentation, any>;
16
+ export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetEASConfig, resourceParams: resources_getTableauEas_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_TableauEASRepresentation_TableauEASRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_TableauEASRepresentation_TableauEASRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_TableauEASRepresentation_TableauEASRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_TableauEASRepresentation_TableauEASRepresentation, any>>;
17
+ export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetEASConfig, resourceParams: resources_getTableauEas_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
18
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetEASConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_TableauEASRepresentation_TableauEASRepresentation, any>>;
19
+ export type BuildSnapshotContext = {
20
+ luvio: $64$luvio_engine_Luvio;
21
+ config: GetEASConfig;
22
+ };
23
+ export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_TableauEASRepresentation_TableauEASRepresentation, any>>;
24
+ export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_TableauEASRepresentation_TableauEASRepresentation>): $64$luvio_engine_Snapshot<types_TableauEASRepresentation_TableauEASRepresentation, any>;
25
+ export declare const getEASAdapterFactory: $64$luvio_engine_AdapterFactory<GetEASConfig, types_TableauEASRepresentation_TableauEASRepresentation>;
@@ -0,0 +1,27 @@
1
+ import { AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig, Untrusted as adapter$45$utils_Untrusted } from './adapter-utils';
2
+ import { ResourceRequestConfig as resources_getTableauJwt_ResourceRequestConfig } from '../resources/getTableauJwt';
3
+ import { Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
4
+ import { TableauJWTRepresentation as types_TableauJWTRepresentation_TableauJWTRepresentation } from '../types/TableauJWTRepresentation';
5
+ export declare const adapterName = "getJWT";
6
+ export declare const getJWT_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
7
+ export interface GetJWTConfig {
8
+ siteId?: string;
9
+ tabUrl?: string;
10
+ }
11
+ export declare function createResourceParams(config: GetJWTConfig): resources_getTableauJwt_ResourceRequestConfig;
12
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetJWTConfig): string;
13
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetJWTConfig): $64$luvio_engine_NormalizedKeyMetadata;
14
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetJWTConfig>): adapter$45$utils_Untrusted<GetJWTConfig>;
15
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetJWTConfig | null;
16
+ export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetJWTConfig): $64$luvio_engine_Fragment;
17
+ export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetJWTConfig): $64$luvio_engine_Snapshot<types_TableauJWTRepresentation_TableauJWTRepresentation, any>;
18
+ export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetJWTConfig, resourceParams: resources_getTableauJwt_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: GetJWTConfig, resourceParams: resources_getTableauJwt_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
20
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetJWTConfig, 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: GetJWTConfig;
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 getJWTAdapterFactory: $64$luvio_engine_AdapterFactory<GetJWTConfig, types_TableauJWTRepresentation_TableauJWTRepresentation>;
@@ -0,0 +1,27 @@
1
+ import { AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig, Untrusted as adapter$45$utils_Untrusted } from './adapter-utils';
2
+ import { ResourceRequestConfig as resources_postTableauJwt_ResourceRequestConfig } from '../resources/postTableauJwt';
3
+ import { Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
4
+ import { TableauJWTRepresentation as types_TableauJWTRepresentation_TableauJWTRepresentation } from '../types/TableauJWTRepresentation';
5
+ export declare const adapterName = "postJWT";
6
+ export declare const postJWT_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
7
+ export interface PostJWTConfig {
8
+ siteId?: string;
9
+ tabUrl?: string;
10
+ }
11
+ 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
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<PostJWTConfig>): adapter$45$utils_Untrusted<PostJWTConfig>;
15
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): PostJWTConfig | null;
16
+ export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: PostJWTConfig): $64$luvio_engine_Fragment;
17
+ export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: PostJWTConfig): $64$luvio_engine_Snapshot<types_TableauJWTRepresentation_TableauJWTRepresentation, any>;
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>;
@@ -0,0 +1,3 @@
1
+ export { getEASAdapterFactory } from '../adapters/getEAS';
2
+ export { getJWTAdapterFactory } from '../adapters/getJWT';
3
+ export { postJWTAdapterFactory } from '../adapters/postJWT';
@@ -0,0 +1,7 @@
1
+ declare let getEAS: any;
2
+ declare let getJWT: any;
3
+ declare let postJWT: any;
4
+ declare let getEAS_imperative: any;
5
+ declare let getJWT_imperative: any;
6
+ declare let postJWT_imperative: any;
7
+ export { getEAS, getJWT, postJWT, getEAS_imperative, getJWT_imperative, postJWT_imperative };
@@ -0,0 +1,12 @@
1
+ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
2
+ import { TableauEASRepresentation as types_TableauEASRepresentation_TableauEASRepresentation } from '../types/TableauEASRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ }
5
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
6
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
7
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
8
+ export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_TableauEASRepresentation_TableauEASRepresentation): $64$luvio_engine_DurableStoreKeyMetadataMap;
9
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_TableauEASRepresentation_TableauEASRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_TableauEASRepresentation_TableauEASRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_TableauEASRepresentation_TableauEASRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_TableauEASRepresentation_TableauEASRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_TableauEASRepresentation_TableauEASRepresentation, any>;
10
+ export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_TableauEASRepresentation_TableauEASRepresentation>): $64$luvio_engine_ErrorSnapshot;
11
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
12
+ export default createResourceRequest;
@@ -0,0 +1,16 @@
1
+ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
2
+ import { TableauJWTRepresentation as types_TableauJWTRepresentation_TableauJWTRepresentation } from '../types/TableauJWTRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ queryParams: {
5
+ siteId?: string;
6
+ tabUrl?: string;
7
+ };
8
+ }
9
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
10
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
11
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
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;
15
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
16
+ export default createResourceRequest;
@@ -0,0 +1,16 @@
1
+ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
2
+ import { TableauJWTRepresentation as types_TableauJWTRepresentation_TableauJWTRepresentation } from '../types/TableauJWTRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ body: {
5
+ siteId?: string;
6
+ tabUrl?: string;
7
+ };
8
+ }
9
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
10
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
11
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
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;
15
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
16
+ export default createResourceRequest;
@@ -0,0 +1,33 @@
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
+ export declare const TTL = 180000;
3
+ export declare const VERSION = "97a38409c54dceea0317e696f6166bc4";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: TableauEASRepresentation, existing: TableauEASRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): TableauEASRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_BaseFragment;
8
+ export declare function equals(existing: TableauEASRepresentationNormalized, incoming: TableauEASRepresentationNormalized): boolean;
9
+ export declare function deepFreeze(input: TableauEASRepresentation): void;
10
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
11
+ export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: TableauEASRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
12
+ /**
13
+ * Tableau EAS trust registration details
14
+ *
15
+ * Keys:
16
+ * (none)
17
+ */
18
+ export interface TableauEASRepresentationNormalized {
19
+ /** Issuer URL */
20
+ issuer: string;
21
+ /** JWKS URI */
22
+ jwks: string;
23
+ }
24
+ /**
25
+ * Tableau EAS trust registration details
26
+ *
27
+ * Keys:
28
+ * (none)
29
+ */
30
+ export interface TableauEASRepresentation {
31
+ issuer: string;
32
+ jwks: string;
33
+ }
@@ -0,0 +1,32 @@
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 = "a7df15758a0a28e27cea747a7fd4d48e";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
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;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: TableauJWTInputRepresentationNormalized, incoming: TableauJWTInputRepresentationNormalized): boolean;
8
+ export declare function deepFreeze(input: TableauJWTInputRepresentation): void;
9
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: TableauJWTInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
11
+ /**
12
+ * Tableau embedding JWT inputs
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface TableauJWTInputRepresentationNormalized {
18
+ /** Tableau Site ID */
19
+ siteId?: string;
20
+ /** Tableau Embedding URL */
21
+ tabUrl?: string;
22
+ }
23
+ /**
24
+ * Tableau embedding JWT inputs
25
+ *
26
+ * Keys:
27
+ * (none)
28
+ */
29
+ export interface TableauJWTInputRepresentation {
30
+ siteId?: string;
31
+ tabUrl?: string;
32
+ }
@@ -0,0 +1,30 @@
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
+ export declare const TTL = 0;
3
+ export declare const VERSION = "53f57df1863a858a8575f7088b4d78cb";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
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;
7
+ export declare const select: () => $64$luvio_engine_BaseFragment;
8
+ export declare function equals(existing: TableauJWTRepresentationNormalized, incoming: TableauJWTRepresentationNormalized): boolean;
9
+ export declare function deepFreeze(input: TableauJWTRepresentation): void;
10
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
11
+ export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: TableauJWTRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
12
+ /**
13
+ * Tableau embedding JWT
14
+ *
15
+ * Keys:
16
+ * (none)
17
+ */
18
+ export interface TableauJWTRepresentationNormalized {
19
+ /** Tableau embedding JWT */
20
+ token: string;
21
+ }
22
+ /**
23
+ * Tableau embedding JWT
24
+ *
25
+ * Keys:
26
+ * (none)
27
+ */
28
+ export interface TableauJWTRepresentation {
29
+ token: string;
30
+ }
@@ -0,0 +1,39 @@
1
+ import { NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const ObjectFreeze: {
3
+ <T extends Function>(f: T): T;
4
+ <T_1 extends {
5
+ [idx: string]: object | U | null | undefined;
6
+ }, U extends string | number | bigint | boolean | symbol>(o: T_1): Readonly<T_1>;
7
+ <T_2>(o: T_2): Readonly<T_2>;
8
+ }, ObjectKeys: {
9
+ (o: object): string[];
10
+ (o: {}): string[];
11
+ }, ObjectCreate: {
12
+ (o: object | null): any;
13
+ (o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
14
+ }, ObjectAssign: {
15
+ <T extends {}, U>(target: T, source: U): T & U;
16
+ <T_1 extends {}, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
17
+ <T_2 extends {}, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W;
18
+ (target: object, ...sources: any[]): any;
19
+ };
20
+ export declare const ArrayIsArray: (arg: any) => arg is any[];
21
+ export declare const JSONStringify: {
22
+ (value: any, replacer?: ((this: any, key: string, value: any) => any) | undefined, space?: string | number | undefined): string;
23
+ (value: any, replacer?: (string | number)[] | null | undefined, space?: string | number | undefined): string;
24
+ };
25
+ type AllowedPrimitives = boolean | string | number | Date | null;
26
+ type Value<T> = T extends AllowedPrimitives ? T : RecursivePartial<T>;
27
+ export type RecursivePartial<T> = null | {
28
+ [P in keyof T]?: T[P] extends Array<infer U> ? Array<Value<U>> | null : Value<T[P]> | null;
29
+ };
30
+ export declare function equalsArray<U, V extends U[]>(a: V, b: V, equalsItem: (itemA: U, itemB: U) => boolean | void): boolean;
31
+ export declare function equalsObject<U, V extends {
32
+ [key: string]: U;
33
+ }>(a: V, b: V, equalsProp: (propA: U, propB: U) => boolean | void): boolean;
34
+ export declare function deepFreeze(value: any): void;
35
+ export declare function createLink(ref: string | $64$luvio_engine_NormalizedKeyMetadata): {
36
+ __ref: string;
37
+ };
38
+ export declare function assignMetadataLink(entry: any, metadataKey: string | $64$luvio_engine_NormalizedKeyMetadata): void;
39
+ export {};
package/package.json ADDED
@@ -0,0 +1,69 @@
1
+ {
2
+ "name": "@salesforce/lds-adapters-analytics-tableau-embedding",
3
+ "version": "0.131.0",
4
+ "description": "The APIs in this family are supporting embedding of Tableau vizualizations into Salesforce.",
5
+ "license": "MIT",
6
+ "main": "dist/es/es2018/analytics-tableau-embedding.js",
7
+ "module": "dist/es/es2018/analytics-tableau-embedding.js",
8
+ "types": "dist/es/es2018/types/src/generated/artifacts/main.d.ts",
9
+ "files": [
10
+ "dist",
11
+ "sfdc",
12
+ "src/raml/*"
13
+ ],
14
+ "exports": {
15
+ ".": {
16
+ "import": "./dist/es/es2018/analytics-tableau-embedding.js",
17
+ "require": "./dist/es/es2018/analytics-tableau-embedding.js",
18
+ "types": "./dist/es/es2018/types/src/generated/artifacts/main.d.ts"
19
+ },
20
+ "./sfdc": {
21
+ "import": "./sfdc/index.js",
22
+ "types": "./sfdc/index.d.ts",
23
+ "default": "./sfdc/index.js"
24
+ }
25
+ },
26
+ "sdfc": {
27
+ "namespace": "lightning",
28
+ "module": "analyticsTableauEmbeddingApi"
29
+ },
30
+ "contributors": [
31
+ "eureka@salesforce.com",
32
+ "asufaru@salesforce.com"
33
+ ],
34
+ "scripts": {
35
+ "build": "yarn build:raml && yarn build:services && yarn build:karma",
36
+ "build:karma": "rollup --config rollup.config.karma.js",
37
+ "build:raml": "luvio generate src/raml/luvio.raml src/generated -p '../lds-compiler-plugins'",
38
+ "build:services": "rollup --config rollup.config.js",
39
+ "clean": "rm -rf dist sfdc src/generated karma/dist",
40
+ "release:core": "../../scripts/release/core.js --adapter=lds-adapters-analytics-tableau-embedding",
41
+ "release:corejar": "yarn build && ../core-build/scripts/core.js --adapter=lds-adapters-analytics-tableau-embedding",
42
+ "start": "karma start",
43
+ "test": "karma start --single-run",
44
+ "test:compat": "karma start --single-run --compat",
45
+ "NO-test:unit": "jest"
46
+ },
47
+ "dependencies": {
48
+ "@salesforce/lds-bindings": "1.131.0-244.6"
49
+ },
50
+ "devDependencies": {
51
+ "@salesforce/lds-compiler-plugins": "1.131.0-244.6",
52
+ "@salesforce/lds-karma": "1.131.0-244.6"
53
+ },
54
+ "nx": {
55
+ "targets": {
56
+ "build": {
57
+ "outputs": [
58
+ "packages/lds-adapters-analytics-tableau-embedding/dist",
59
+ "packages/lds-adapters-analytics-tableau-embedding/karma/dist",
60
+ "packages/lds-adapters-analytics-tableau-embedding/sfdc",
61
+ "packages/lds-adapters-analytics-tableau-embedding/src/generated"
62
+ ]
63
+ }
64
+ }
65
+ },
66
+ "volta": {
67
+ "extends": "../../package.json"
68
+ }
69
+ }
@@ -0,0 +1 @@
1
+ export * from '../dist/es/es2018/types/src/generated/artifacts/sfdc';