@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.
Files changed (24) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/analytics-tableau-embedding.js +694 -0
  3. package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
  4. package/dist/es/es2018/types/src/generated/adapters/getEAS.d.ts +26 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getJWT.d.ts +31 -0
  6. package/dist/es/es2018/types/src/generated/adapters/postJWT.d.ts +19 -0
  7. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +3 -0
  8. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +6 -0
  9. package/dist/es/es2018/types/src/generated/resources/getTableauEas.d.ts +12 -0
  10. package/dist/es/es2018/types/src/generated/resources/getTableauJwt.d.ts +19 -0
  11. package/dist/es/es2018/types/src/generated/resources/postTableauJwt.d.ts +16 -0
  12. package/dist/es/es2018/types/src/generated/types/TableauEASRepresentation.d.ts +32 -0
  13. package/dist/es/es2018/types/src/generated/types/TableauJWTInputRepresentation.d.ts +40 -0
  14. package/dist/es/es2018/types/src/generated/types/TableauJWTRepresentation.d.ts +44 -0
  15. package/dist/es/es2018/types/src/generated/types/TableauJWTRepresentation2.d.ts +53 -0
  16. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  17. package/dist/es/es2018/types/src/main.d.ts +3 -0
  18. package/dist/es/es2018/types/src/sfdc.d.ts +6 -0
  19. package/dist/es/es2018/types/src/wire/getJWT/index.d.ts +4 -0
  20. package/package.json +76 -0
  21. package/sfdc/index.d.ts +1 -0
  22. package/sfdc/index.js +724 -0
  23. package/src/raml/api.raml +171 -0
  24. package/src/raml/luvio.raml +39 -0
@@ -0,0 +1,62 @@
1
+ import { Adapter as $64$luvio_engine_Adapter, Snapshot as $64$luvio_engine_Snapshot, UnfulfilledSnapshot as $64$luvio_engine_UnfulfilledSnapshot, AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata } from '@luvio/engine';
2
+ export declare const ObjectPrototypeHasOwnProperty: (v: PropertyKey) => boolean;
3
+ declare const ObjectKeys: {
4
+ (o: object): string[];
5
+ (o: {}): string[];
6
+ }, ObjectCreate: {
7
+ (o: object | null): any;
8
+ (o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
9
+ };
10
+ export { ObjectCreate, ObjectKeys };
11
+ export declare const ArrayIsArray: (arg: any) => arg is any[];
12
+ export declare const ArrayPrototypePush: (...items: any[]) => number;
13
+ export interface AdapterValidationConfig {
14
+ displayName: string;
15
+ parameters: {
16
+ required: string[];
17
+ optional: string[];
18
+ unsupported?: string[];
19
+ };
20
+ }
21
+ /**
22
+ * Validates an adapter config is well-formed.
23
+ * @param config The config to validate.
24
+ * @param adapter The adapter validation configuration.
25
+ * @param oneOf The keys the config must contain at least one of.
26
+ * @throws A TypeError if config doesn't satisfy the adapter's config validation.
27
+ */
28
+ export declare function validateConfig<T>(config: Untrusted<T>, adapter: AdapterValidationConfig, oneOf?: string[]): void;
29
+ export declare function untrustedIsObject<Base>(untrusted: unknown): untrusted is Untrusted<Base>;
30
+ export type UncoercedConfiguration<Base, Options extends {
31
+ [key in keyof Base]?: any;
32
+ }> = {
33
+ [Key in keyof Base]?: Base[Key] | Options[Key];
34
+ };
35
+ export type Untrusted<Base> = Partial<Base>;
36
+ export declare function areRequiredParametersPresent<T>(config: any, configPropertyNames: AdapterValidationConfig): config is T;
37
+ 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>;
38
+ export declare const SNAPSHOT_STATE_FULFILLED = "Fulfilled";
39
+ export declare const SNAPSHOT_STATE_UNFULFILLED = "Unfulfilled";
40
+ export declare const snapshotRefreshOptions: {
41
+ overrides: {
42
+ headers: {
43
+ 'Cache-Control': string;
44
+ };
45
+ };
46
+ };
47
+ /**
48
+ * A deterministic JSON stringify implementation. Heavily adapted from https://github.com/epoberezkin/fast-json-stable-stringify.
49
+ * This is needed because insertion order for JSON.stringify(object) affects output:
50
+ * JSON.stringify({a: 1, b: 2})
51
+ * "{"a":1,"b":2}"
52
+ * JSON.stringify({b: 2, a: 1})
53
+ * "{"b":2,"a":1}"
54
+ * @param data Data to be JSON-stringified.
55
+ * @returns JSON.stringified value with consistent ordering of keys.
56
+ */
57
+ export declare function stableJSONStringify(node: any): string | undefined;
58
+ export declare function getFetchResponseStatusText(status: number): string;
59
+ export declare function isUnfulfilledSnapshot<T, U>(snapshot: $64$luvio_engine_Snapshot<T, U>): snapshot is $64$luvio_engine_UnfulfilledSnapshot<T, U>;
60
+ export declare function generateParamConfigMetadata(name: string, required: boolean, resourceType: $64$luvio_engine_AdapterConfigMetadata['resourceType'], typeCheckShape: $64$luvio_engine_AdapterConfigMetadata['typeCheckShape'], isArrayShape?: boolean, coerceFn?: (v: unknown) => unknown): $64$luvio_engine_AdapterConfigMetadata;
61
+ export declare function buildAdapterValidationConfig(displayName: string, paramsMeta: $64$luvio_engine_AdapterConfigMetadata[]): AdapterValidationConfig;
62
+ export declare const keyPrefix = "TableauEmbedding";
@@ -0,0 +1,26 @@
1
+ import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, 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';
2
+ import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
3
+ import { ResourceRequestConfig as resources_getTableauEas_ResourceRequestConfig } from '../resources/getTableauEas';
4
+ import { TableauEASRepresentation as types_TableauEASRepresentation_TableauEASRepresentation } from '../types/TableauEASRepresentation';
5
+ export declare const adapterName = "getEAS";
6
+ export declare const getEAS_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
+ export declare const getEAS_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
+ export interface GetEASConfig {
9
+ }
10
+ export declare const createResourceParams: (config: GetEASConfig) => resources_getTableauEas_ResourceRequestConfig;
11
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetEASConfig): string;
12
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetEASConfig): $64$luvio_engine_NormalizedKeyMetadata;
13
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetEASConfig>): adapter$45$utils_Untrusted<GetEASConfig>;
14
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetEASConfig | null;
15
+ export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetEASConfig): $64$luvio_engine_Fragment;
16
+ export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetEASConfig): $64$luvio_engine_Snapshot<types_TableauEASRepresentation_TableauEASRepresentation, any>;
17
+ 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>>;
18
+ 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>;
19
+ 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>>;
20
+ export type BuildSnapshotContext = {
21
+ luvio: $64$luvio_engine_Luvio;
22
+ config: GetEASConfig;
23
+ };
24
+ export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_TableauEASRepresentation_TableauEASRepresentation, any>>;
25
+ export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_TableauEASRepresentation_TableauEASRepresentation>): $64$luvio_engine_Snapshot<types_TableauEASRepresentation_TableauEASRepresentation, any>;
26
+ export declare const getEASAdapterFactory: $64$luvio_engine_AdapterFactory<GetEASConfig, types_TableauEASRepresentation_TableauEASRepresentation>;
@@ -0,0 +1,31 @@
1
+ import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, 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';
2
+ import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
3
+ import { ResourceRequestConfig as resources_getTableauJwt_ResourceRequestConfig } from '../resources/getTableauJwt';
4
+ import { TableauJWTRepresentation as types_TableauJWTRepresentation_TableauJWTRepresentation } from '../types/TableauJWTRepresentation';
5
+ export declare const adapterName = "getJWT";
6
+ export declare const getJWT_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
+ export declare const getJWT_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
+ export interface GetJWTConfig {
9
+ cb?: string;
10
+ siteId?: string;
11
+ tabUrl?: string;
12
+ uafDefinitionNames?: string;
13
+ jwtAccessScopeSet?: string;
14
+ }
15
+ export declare const createResourceParams: (config: GetJWTConfig) => resources_getTableauJwt_ResourceRequestConfig;
16
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetJWTConfig): string;
17
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetJWTConfig): $64$luvio_engine_NormalizedKeyMetadata;
18
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetJWTConfig>): adapter$45$utils_Untrusted<GetJWTConfig>;
19
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetJWTConfig | null;
20
+ export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetJWTConfig): $64$luvio_engine_Fragment;
21
+ export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetJWTConfig): $64$luvio_engine_Snapshot<types_TableauJWTRepresentation_TableauJWTRepresentation, any>;
22
+ 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>>;
23
+ 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>;
24
+ 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>>;
25
+ export type BuildSnapshotContext = {
26
+ luvio: $64$luvio_engine_Luvio;
27
+ config: GetJWTConfig;
28
+ };
29
+ export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_TableauJWTRepresentation_TableauJWTRepresentation, any>>;
30
+ export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_TableauJWTRepresentation_TableauJWTRepresentation>): $64$luvio_engine_Snapshot<types_TableauJWTRepresentation_TableauJWTRepresentation, any>;
31
+ export declare const getJWTAdapterFactory: $64$luvio_engine_AdapterFactory<GetJWTConfig, types_TableauJWTRepresentation_TableauJWTRepresentation>;
@@ -0,0 +1,19 @@
1
+ import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
2
+ import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
3
+ import { ResourceRequestConfig as resources_postTableauJwt_ResourceRequestConfig } from '../resources/postTableauJwt';
4
+ import { TableauJWTRepresentation2 as types_TableauJWTRepresentation2_TableauJWTRepresentation2 } from '../types/TableauJWTRepresentation2';
5
+ export declare const adapterName = "postJWT";
6
+ export declare const postJWT_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
+ export declare const postJWT_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
+ export interface PostJWTConfig {
9
+ cb?: string;
10
+ siteId?: string;
11
+ tabUrl?: string;
12
+ uafDefinitionNames?: string;
13
+ jwtAccessScopeSet?: string;
14
+ }
15
+ export declare const createResourceParams: (config: PostJWTConfig) => resources_postTableauJwt_ResourceRequestConfig;
16
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<PostJWTConfig>): adapter$45$utils_Untrusted<PostJWTConfig>;
17
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): PostJWTConfig | null;
18
+ 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>>;
19
+ export declare const postJWTAdapterFactory: $64$luvio_engine_AdapterFactory<PostJWTConfig, types_TableauJWTRepresentation2_TableauJWTRepresentation2>;
@@ -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,6 @@
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
+ export { getEAS, getJWT, postJWT, getEAS_imperative, getJWT_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, 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(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_TableauEASRepresentation_TableauEASRepresentation): void;
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,19 @@
1
+ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, 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
+ cb?: string;
6
+ siteId?: string;
7
+ tabUrl?: string;
8
+ uafDefinitionNames?: string;
9
+ jwtAccessScopeSet?: string;
10
+ };
11
+ }
12
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
13
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
14
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
15
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_TableauJWTRepresentation_TableauJWTRepresentation): void;
16
+ 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>;
17
+ 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;
18
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
19
+ export default createResourceRequest;
@@ -0,0 +1,16 @@
1
+ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, 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
+ export interface ResourceRequestConfig {
4
+ body: {
5
+ cb?: string;
6
+ siteId?: string;
7
+ tabUrl?: string;
8
+ uafDefinitionNames?: string;
9
+ jwtAccessScopeSet?: string;
10
+ };
11
+ }
12
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
13
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_TableauJWTRepresentation2_TableauJWTRepresentation2): void;
14
+ 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
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
16
+ export default createResourceRequest;
@@ -0,0 +1,32 @@
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, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } 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 const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: TableauEASRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Tableau EAS trust registration details
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface TableauEASRepresentationNormalized {
18
+ /** Issuer URL */
19
+ issuer: string;
20
+ /** JWKS URI */
21
+ jwks: string;
22
+ }
23
+ /**
24
+ * Tableau EAS trust registration details
25
+ *
26
+ * Keys:
27
+ * (none)
28
+ */
29
+ export interface TableauEASRepresentation {
30
+ issuer: string;
31
+ jwks: string;
32
+ }
@@ -0,0 +1,40 @@
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, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const VERSION = "7ccd30c623faa219bf33cdc3b32af9f4";
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 const ingest: $64$luvio_engine_ResourceIngest;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: TableauJWTInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Tableau embedding JWT inputs
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface TableauJWTInputRepresentationNormalized {
17
+ /** Cache buster */
18
+ cb?: string;
19
+ /** Scopes set */
20
+ jwtAccessScopeSet?: string;
21
+ /** Tableau Site ID */
22
+ siteId?: string;
23
+ /** Tableau Embedding URL */
24
+ tabUrl?: string;
25
+ /** UAF Claim definition names */
26
+ uafDefinitionNames?: string;
27
+ }
28
+ /**
29
+ * Tableau embedding JWT inputs
30
+ *
31
+ * Keys:
32
+ * (none)
33
+ */
34
+ export interface TableauJWTInputRepresentation {
35
+ cb?: string;
36
+ jwtAccessScopeSet?: string;
37
+ siteId?: string;
38
+ tabUrl?: string;
39
+ uafDefinitionNames?: string;
40
+ }
@@ -0,0 +1,44 @@
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, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const TTL = 100;
3
+ export declare const VERSION = "7c471499a5fc6c0f05f551d51897602f";
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 const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: TableauJWTRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Tableau embedding JWT
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
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;
26
+ /** Tableau embedding JWT */
27
+ token: string;
28
+ /** The UAF claims that were added to the JWT */
29
+ uafClaims: string;
30
+ }
31
+ /**
32
+ * Tableau embedding JWT
33
+ *
34
+ * Keys:
35
+ * (none)
36
+ */
37
+ export interface TableauJWTRepresentation {
38
+ cb: string;
39
+ jti: string;
40
+ siteId: string;
41
+ tabUrl: string;
42
+ token: string;
43
+ uafClaims: string;
44
+ }
@@ -0,0 +1,53 @@
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 = "b2170b0df06590260d72ee738c7c7494";
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(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: TableauJWTRepresentation2, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
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
+ /** The UAF claims that were added to the JWT */
38
+ uafClaims: string;
39
+ }
40
+ /**
41
+ * Tableau embedding JWT
42
+ *
43
+ * Keys:
44
+ * id (string): jti
45
+ */
46
+ export interface TableauJWTRepresentation2 {
47
+ cb: string;
48
+ jti: string;
49
+ siteId: string;
50
+ tabUrl: string;
51
+ token: string;
52
+ uafClaims: string;
53
+ }
@@ -0,0 +1,32 @@
1
+ import { NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const ObjectKeys: {
3
+ (o: object): string[];
4
+ (o: {}): string[];
5
+ }, ObjectCreate: {
6
+ (o: object | null): any;
7
+ (o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
8
+ }, ObjectAssign: {
9
+ <T extends {}, U>(target: T, source: U): T & U;
10
+ <T_1 extends {}, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
11
+ <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;
12
+ (target: object, ...sources: any[]): any;
13
+ };
14
+ export declare const ArrayIsArray: (arg: any) => arg is any[];
15
+ export declare const JSONStringify: {
16
+ (value: any, replacer?: ((this: any, key: string, value: any) => any) | undefined, space?: string | number | undefined): string;
17
+ (value: any, replacer?: (string | number)[] | null | undefined, space?: string | number | undefined): string;
18
+ };
19
+ type AllowedPrimitives = boolean | string | number | Date | null;
20
+ type Value<T> = T extends AllowedPrimitives ? T : RecursivePartial<T>;
21
+ export type RecursivePartial<T> = null | {
22
+ [P in keyof T]?: T[P] extends Array<infer U> ? Array<Value<U>> | null : Value<T[P]> | null;
23
+ };
24
+ export declare function equalsArray<U, V extends U[]>(a: V, b: V, equalsItem: (itemA: U, itemB: U) => boolean | void): boolean;
25
+ export declare function equalsObject<U, V extends {
26
+ [key: string]: U;
27
+ }>(a: V, b: V, equalsProp: (propA: U, propB: U) => boolean | void): boolean;
28
+ export declare function createLink(ref: string | $64$luvio_engine_NormalizedKeyMetadata): {
29
+ __ref: string;
30
+ };
31
+ export declare function assignMetadataLink(entry: any, metadataKey: string | $64$luvio_engine_NormalizedKeyMetadata): void;
32
+ export {};
@@ -0,0 +1,3 @@
1
+ export { getEASAdapterFactory } from './generated/adapters/getEAS';
2
+ export { getJWTAdapterFactory } from './wire/getJWT';
3
+ export { postJWTAdapterFactory } from './generated/adapters/postJWT';
@@ -0,0 +1,6 @@
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
+ export { getEAS, getJWT, postJWT, getEAS_imperative, getJWT_imperative };
@@ -0,0 +1,4 @@
1
+ import type { AdapterFactory } from '@luvio/engine';
2
+ import type { GetJWTConfig } from '../../generated/adapters/getJWT';
3
+ import type { TableauJWTRepresentation } from '../../generated/types/TableauJWTRepresentation';
4
+ export declare const getJWTAdapterFactory: AdapterFactory<GetJWTConfig, TableauJWTRepresentation>;
package/package.json ADDED
@@ -0,0 +1,76 @@
1
+ {
2
+ "name": "@salesforce/lds-adapters-analytics-tableau-embedding",
3
+ "version": "0.1.0-dev1",
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
+ "types": "./dist/es/es2018/types/src/generated/artifacts/main.d.ts",
17
+ "import": "./dist/es/es2018/analytics-tableau-embedding.js",
18
+ "require": "./dist/es/es2018/analytics-tableau-embedding.js"
19
+ },
20
+ "./sfdc": {
21
+ "types": "./sfdc/index.d.ts",
22
+ "import": "./sfdc/index.js",
23
+ "default": "./sfdc/index.js"
24
+ }
25
+ },
26
+ "sfdc": {
27
+ "namespace": "lightning",
28
+ "module": "analyticsTableauEmbeddingApi"
29
+ },
30
+ "contributors": [
31
+ "eureka@salesforce.com",
32
+ "asufaru@salesforce.com"
33
+ ],
34
+ "scripts": {
35
+ "build": "yarn build:services",
36
+ "build:karma": "rollup --bundleConfigAsCjs --config rollup.config.karma.js",
37
+ "build:raml": "luvio generate src/raml/luvio.raml src/generated -p '../lds-compiler-plugins'",
38
+ "build:services": "rollup --bundleConfigAsCjs --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": "nx build:karma && karma start",
43
+ "test": "nx build:karma && karma start --single-run",
44
+ "NO-test:unit": "jest"
45
+ },
46
+ "dependencies": {
47
+ "@salesforce/lds-bindings": "^0.1.0-dev1"
48
+ },
49
+ "devDependencies": {
50
+ "@salesforce/lds-compiler-plugins": "^0.1.0-dev1",
51
+ "@salesforce/lds-karma": "^0.1.0-dev1"
52
+ },
53
+ "nx": {
54
+ "targets": {
55
+ "build": {
56
+ "outputs": [
57
+ "{projectRoot}/dist",
58
+ "{projectRoot}/sfdc"
59
+ ]
60
+ },
61
+ "build:raml": {
62
+ "outputs": [
63
+ "{projectRoot}/src/generated"
64
+ ]
65
+ },
66
+ "build:karma": {
67
+ "outputs": [
68
+ "{projectRoot}/karma/dist"
69
+ ]
70
+ }
71
+ }
72
+ },
73
+ "volta": {
74
+ "extends": "../../package.json"
75
+ }
76
+ }
@@ -0,0 +1 @@
1
+ export * from '../dist/es/es2018/types/src/sfdc';