@salesforce/lds-adapters-analytics-tableau-embedding 1.319.0 → 1.321.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 +15 -3
- package/dist/es/es2018/types/src/generated/adapters/getJWT.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/adapters/postJWT.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/getTableauJwt.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/postTableauJwt.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/types/TableauJWTInputRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/TableauJWTRepresentation.d.ts +4 -1
- package/dist/es/es2018/types/src/generated/types/TableauJWTRepresentation2.d.ts +4 -1
- package/package.json +4 -4
- package/sfdc/index.js +16 -4
- package/src/raml/api.raml +14 -0
|
@@ -275,7 +275,7 @@ const getEASAdapterFactory = (luvio) => function TableauEmbedding__getEAS(untrus
|
|
|
275
275
|
};
|
|
276
276
|
|
|
277
277
|
const TTL$1 = 100;
|
|
278
|
-
const VERSION$1 = "
|
|
278
|
+
const VERSION$1 = "7c471499a5fc6c0f05f551d51897602f";
|
|
279
279
|
function validate$1(obj, path = 'TableauJWTRepresentation') {
|
|
280
280
|
const v_error = (() => {
|
|
281
281
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -306,6 +306,11 @@ function validate$1(obj, path = 'TableauJWTRepresentation') {
|
|
|
306
306
|
if (typeof obj_token !== 'string') {
|
|
307
307
|
return new TypeError('Expected "string" but received "' + typeof obj_token + '" (at "' + path_token + '")');
|
|
308
308
|
}
|
|
309
|
+
const obj_uafClaims = obj.uafClaims;
|
|
310
|
+
const path_uafClaims = path + '.uafClaims';
|
|
311
|
+
if (typeof obj_uafClaims !== 'string') {
|
|
312
|
+
return new TypeError('Expected "string" but received "' + typeof obj_uafClaims + '" (at "' + path_uafClaims + '")');
|
|
313
|
+
}
|
|
309
314
|
})();
|
|
310
315
|
return v_error === undefined ? null : v_error;
|
|
311
316
|
}
|
|
@@ -353,7 +358,7 @@ function select$2(luvio, params) {
|
|
|
353
358
|
return select$3();
|
|
354
359
|
}
|
|
355
360
|
function keyBuilder$2(luvio, params) {
|
|
356
|
-
return keyPrefix + '::TableauJWTRepresentation:(' + 'cb:' + params.queryParams.cb + ',' + 'siteId:' + params.queryParams.siteId + ',' + 'tabUrl:' + params.queryParams.tabUrl + ')';
|
|
361
|
+
return keyPrefix + '::TableauJWTRepresentation:(' + 'cb:' + params.queryParams.cb + ',' + 'siteId:' + params.queryParams.siteId + ',' + 'tabUrl:' + params.queryParams.tabUrl + ',' + 'uafDefinitionNames:' + params.queryParams.uafDefinitionNames + ')';
|
|
357
362
|
}
|
|
358
363
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
359
364
|
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$2(luvio, resourceParams));
|
|
@@ -406,6 +411,7 @@ const getJWT_ConfigPropertyMetadata = [
|
|
|
406
411
|
generateParamConfigMetadata('cb', false, 1 /* QueryParameter */, 0 /* String */),
|
|
407
412
|
generateParamConfigMetadata('siteId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
408
413
|
generateParamConfigMetadata('tabUrl', false, 1 /* QueryParameter */, 0 /* String */),
|
|
414
|
+
generateParamConfigMetadata('uafDefinitionNames', false, 1 /* QueryParameter */, 0 /* String */),
|
|
409
415
|
];
|
|
410
416
|
const getJWT_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getJWT_ConfigPropertyMetadata);
|
|
411
417
|
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$3(getJWT_ConfigPropertyMetadata);
|
|
@@ -502,7 +508,7 @@ const getJWTAdapterFactory = (luvio) => function TableauEmbedding__getJWT(untrus
|
|
|
502
508
|
};
|
|
503
509
|
|
|
504
510
|
const TTL = 100;
|
|
505
|
-
const VERSION = "
|
|
511
|
+
const VERSION = "b2170b0df06590260d72ee738c7c7494";
|
|
506
512
|
function validate(obj, path = 'TableauJWTRepresentation2') {
|
|
507
513
|
const v_error = (() => {
|
|
508
514
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -533,6 +539,11 @@ function validate(obj, path = 'TableauJWTRepresentation2') {
|
|
|
533
539
|
if (typeof obj_token !== 'string') {
|
|
534
540
|
return new TypeError('Expected "string" but received "' + typeof obj_token + '" (at "' + path_token + '")');
|
|
535
541
|
}
|
|
542
|
+
const obj_uafClaims = obj.uafClaims;
|
|
543
|
+
const path_uafClaims = path + '.uafClaims';
|
|
544
|
+
if (typeof obj_uafClaims !== 'string') {
|
|
545
|
+
return new TypeError('Expected "string" but received "' + typeof obj_uafClaims + '" (at "' + path_uafClaims + '")');
|
|
546
|
+
}
|
|
536
547
|
})();
|
|
537
548
|
return v_error === undefined ? null : v_error;
|
|
538
549
|
}
|
|
@@ -627,6 +638,7 @@ const postJWT_ConfigPropertyMetadata = [
|
|
|
627
638
|
generateParamConfigMetadata('cb', false, 2 /* Body */, 0 /* String */),
|
|
628
639
|
generateParamConfigMetadata('siteId', false, 2 /* Body */, 0 /* String */),
|
|
629
640
|
generateParamConfigMetadata('tabUrl', false, 2 /* Body */, 0 /* String */),
|
|
641
|
+
generateParamConfigMetadata('uafDefinitionNames', false, 2 /* Body */, 0 /* String */),
|
|
630
642
|
];
|
|
631
643
|
const postJWT_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, postJWT_ConfigPropertyMetadata);
|
|
632
644
|
const createResourceParams = /*#__PURE__*/ createResourceParams$3(postJWT_ConfigPropertyMetadata);
|
|
@@ -9,6 +9,7 @@ export interface GetJWTConfig {
|
|
|
9
9
|
cb?: string;
|
|
10
10
|
siteId?: string;
|
|
11
11
|
tabUrl?: string;
|
|
12
|
+
uafDefinitionNames?: string;
|
|
12
13
|
}
|
|
13
14
|
export declare const createResourceParams: (config: GetJWTConfig) => resources_getTableauJwt_ResourceRequestConfig;
|
|
14
15
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetJWTConfig): string;
|
|
@@ -9,6 +9,7 @@ export interface PostJWTConfig {
|
|
|
9
9
|
cb?: string;
|
|
10
10
|
siteId?: string;
|
|
11
11
|
tabUrl?: string;
|
|
12
|
+
uafDefinitionNames?: string;
|
|
12
13
|
}
|
|
13
14
|
export declare const createResourceParams: (config: PostJWTConfig) => resources_postTableauJwt_ResourceRequestConfig;
|
|
14
15
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<PostJWTConfig>): adapter$45$utils_Untrusted<PostJWTConfig>;
|
|
@@ -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, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
-
export declare const VERSION = "
|
|
2
|
+
export declare const VERSION = "7e513fa44730c7be7a9b63193970031c";
|
|
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;
|
|
@@ -20,6 +20,8 @@ export interface TableauJWTInputRepresentationNormalized {
|
|
|
20
20
|
siteId?: string;
|
|
21
21
|
/** Tableau Embedding URL */
|
|
22
22
|
tabUrl?: string;
|
|
23
|
+
/** UAF Claim definition names */
|
|
24
|
+
uafDefinitionNames?: string;
|
|
23
25
|
}
|
|
24
26
|
/**
|
|
25
27
|
* Tableau embedding JWT inputs
|
|
@@ -31,4 +33,5 @@ export interface TableauJWTInputRepresentation {
|
|
|
31
33
|
cb?: string;
|
|
32
34
|
siteId?: string;
|
|
33
35
|
tabUrl?: string;
|
|
36
|
+
uafDefinitionNames?: string;
|
|
34
37
|
}
|
|
@@ -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, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
2
|
export declare const TTL = 100;
|
|
3
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "7c471499a5fc6c0f05f551d51897602f";
|
|
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;
|
|
@@ -25,6 +25,8 @@ export interface TableauJWTRepresentationNormalized {
|
|
|
25
25
|
tabUrl: string;
|
|
26
26
|
/** Tableau embedding JWT */
|
|
27
27
|
token: string;
|
|
28
|
+
/** The UAF claims that were added to the JWT */
|
|
29
|
+
uafClaims: string;
|
|
28
30
|
}
|
|
29
31
|
/**
|
|
30
32
|
* Tableau embedding JWT
|
|
@@ -38,4 +40,5 @@ export interface TableauJWTRepresentation {
|
|
|
38
40
|
siteId: string;
|
|
39
41
|
tabUrl: string;
|
|
40
42
|
token: string;
|
|
43
|
+
uafClaims: string;
|
|
41
44
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
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
2
|
export declare const TTL = 100;
|
|
3
|
-
export declare const VERSION = "
|
|
3
|
+
export declare const VERSION = "b2170b0df06590260d72ee738c7c7494";
|
|
4
4
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
5
|
export declare const RepresentationType: string;
|
|
6
6
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
@@ -34,6 +34,8 @@ export interface TableauJWTRepresentation2Normalized {
|
|
|
34
34
|
tabUrl: string;
|
|
35
35
|
/** Tableau embedding JWT */
|
|
36
36
|
token: string;
|
|
37
|
+
/** The UAF claims that were added to the JWT */
|
|
38
|
+
uafClaims: string;
|
|
37
39
|
}
|
|
38
40
|
/**
|
|
39
41
|
* Tableau embedding JWT
|
|
@@ -47,4 +49,5 @@ export interface TableauJWTRepresentation2 {
|
|
|
47
49
|
siteId: string;
|
|
48
50
|
tabUrl: string;
|
|
49
51
|
token: string;
|
|
52
|
+
uafClaims: string;
|
|
50
53
|
}
|
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.321.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",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"NO-test:unit": "jest"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@salesforce/lds-bindings": "^1.
|
|
47
|
+
"@salesforce/lds-bindings": "^1.321.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
51
|
-
"@salesforce/lds-karma": "^1.
|
|
50
|
+
"@salesforce/lds-compiler-plugins": "^1.321.0",
|
|
51
|
+
"@salesforce/lds-karma": "^1.321.0"
|
|
52
52
|
},
|
|
53
53
|
"nx": {
|
|
54
54
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -285,7 +285,7 @@ const getEASAdapterFactory = (luvio) => function TableauEmbedding__getEAS(untrus
|
|
|
285
285
|
};
|
|
286
286
|
|
|
287
287
|
const TTL$1 = 100;
|
|
288
|
-
const VERSION$1 = "
|
|
288
|
+
const VERSION$1 = "7c471499a5fc6c0f05f551d51897602f";
|
|
289
289
|
function validate$1(obj, path = 'TableauJWTRepresentation') {
|
|
290
290
|
const v_error = (() => {
|
|
291
291
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -316,6 +316,11 @@ function validate$1(obj, path = 'TableauJWTRepresentation') {
|
|
|
316
316
|
if (typeof obj_token !== 'string') {
|
|
317
317
|
return new TypeError('Expected "string" but received "' + typeof obj_token + '" (at "' + path_token + '")');
|
|
318
318
|
}
|
|
319
|
+
const obj_uafClaims = obj.uafClaims;
|
|
320
|
+
const path_uafClaims = path + '.uafClaims';
|
|
321
|
+
if (typeof obj_uafClaims !== 'string') {
|
|
322
|
+
return new TypeError('Expected "string" but received "' + typeof obj_uafClaims + '" (at "' + path_uafClaims + '")');
|
|
323
|
+
}
|
|
319
324
|
})();
|
|
320
325
|
return v_error === undefined ? null : v_error;
|
|
321
326
|
}
|
|
@@ -363,7 +368,7 @@ function select$2(luvio, params) {
|
|
|
363
368
|
return select$3();
|
|
364
369
|
}
|
|
365
370
|
function keyBuilder$2(luvio, params) {
|
|
366
|
-
return keyPrefix + '::TableauJWTRepresentation:(' + 'cb:' + params.queryParams.cb + ',' + 'siteId:' + params.queryParams.siteId + ',' + 'tabUrl:' + params.queryParams.tabUrl + ')';
|
|
371
|
+
return keyPrefix + '::TableauJWTRepresentation:(' + 'cb:' + params.queryParams.cb + ',' + 'siteId:' + params.queryParams.siteId + ',' + 'tabUrl:' + params.queryParams.tabUrl + ',' + 'uafDefinitionNames:' + params.queryParams.uafDefinitionNames + ')';
|
|
367
372
|
}
|
|
368
373
|
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
369
374
|
getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$2(luvio, resourceParams));
|
|
@@ -416,6 +421,7 @@ const getJWT_ConfigPropertyMetadata = [
|
|
|
416
421
|
generateParamConfigMetadata('cb', false, 1 /* QueryParameter */, 0 /* String */),
|
|
417
422
|
generateParamConfigMetadata('siteId', false, 1 /* QueryParameter */, 0 /* String */),
|
|
418
423
|
generateParamConfigMetadata('tabUrl', false, 1 /* QueryParameter */, 0 /* String */),
|
|
424
|
+
generateParamConfigMetadata('uafDefinitionNames', false, 1 /* QueryParameter */, 0 /* String */),
|
|
419
425
|
];
|
|
420
426
|
const getJWT_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getJWT_ConfigPropertyMetadata);
|
|
421
427
|
const createResourceParams$1 = /*#__PURE__*/ createResourceParams$3(getJWT_ConfigPropertyMetadata);
|
|
@@ -500,7 +506,7 @@ const getJWTAdapterFactory = (luvio) => function TableauEmbedding__getJWT(untrus
|
|
|
500
506
|
};
|
|
501
507
|
|
|
502
508
|
const TTL = 100;
|
|
503
|
-
const VERSION = "
|
|
509
|
+
const VERSION = "b2170b0df06590260d72ee738c7c7494";
|
|
504
510
|
function validate(obj, path = 'TableauJWTRepresentation2') {
|
|
505
511
|
const v_error = (() => {
|
|
506
512
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -531,6 +537,11 @@ function validate(obj, path = 'TableauJWTRepresentation2') {
|
|
|
531
537
|
if (typeof obj_token !== 'string') {
|
|
532
538
|
return new TypeError('Expected "string" but received "' + typeof obj_token + '" (at "' + path_token + '")');
|
|
533
539
|
}
|
|
540
|
+
const obj_uafClaims = obj.uafClaims;
|
|
541
|
+
const path_uafClaims = path + '.uafClaims';
|
|
542
|
+
if (typeof obj_uafClaims !== 'string') {
|
|
543
|
+
return new TypeError('Expected "string" but received "' + typeof obj_uafClaims + '" (at "' + path_uafClaims + '")');
|
|
544
|
+
}
|
|
534
545
|
})();
|
|
535
546
|
return v_error === undefined ? null : v_error;
|
|
536
547
|
}
|
|
@@ -625,6 +636,7 @@ const postJWT_ConfigPropertyMetadata = [
|
|
|
625
636
|
generateParamConfigMetadata('cb', false, 2 /* Body */, 0 /* String */),
|
|
626
637
|
generateParamConfigMetadata('siteId', false, 2 /* Body */, 0 /* String */),
|
|
627
638
|
generateParamConfigMetadata('tabUrl', false, 2 /* Body */, 0 /* String */),
|
|
639
|
+
generateParamConfigMetadata('uafDefinitionNames', false, 2 /* Body */, 0 /* String */),
|
|
628
640
|
];
|
|
629
641
|
const postJWT_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, postJWT_ConfigPropertyMetadata);
|
|
630
642
|
const createResourceParams = /*#__PURE__*/ createResourceParams$3(postJWT_ConfigPropertyMetadata);
|
|
@@ -707,4 +719,4 @@ withDefaultLuvio((luvio) => {
|
|
|
707
719
|
});
|
|
708
720
|
|
|
709
721
|
export { getEAS, getEAS_imperative, getJWT, getJWT_imperative, postJWT };
|
|
710
|
-
// version: 1.
|
|
722
|
+
// version: 1.321.0-40847d67a8
|
package/src/raml/api.raml
CHANGED
|
@@ -56,6 +56,10 @@ types:
|
|
|
56
56
|
type: string
|
|
57
57
|
# This was edited to specify the property is not required! Tests will fail with network mock issues if this is removed!
|
|
58
58
|
required: false
|
|
59
|
+
uafDefinitionNames:
|
|
60
|
+
description: UAF Claim definition names
|
|
61
|
+
type: string
|
|
62
|
+
required: false
|
|
59
63
|
TableauJWTRepresentation:
|
|
60
64
|
description: Tableau embedding JWT
|
|
61
65
|
type: object
|
|
@@ -76,6 +80,9 @@ types:
|
|
|
76
80
|
token:
|
|
77
81
|
description: Tableau embedding JWT
|
|
78
82
|
type: string
|
|
83
|
+
uafClaims:
|
|
84
|
+
description: The UAF claims that were added to the JWT
|
|
85
|
+
type: string
|
|
79
86
|
# This type should always be a clone of TableauJWTRepresentation above, just configured differently in luvio.raml. Inheritance via base type is not possible!
|
|
80
87
|
TableauJWTRepresentation2:
|
|
81
88
|
description: Tableau embedding JWT
|
|
@@ -97,6 +104,9 @@ types:
|
|
|
97
104
|
token:
|
|
98
105
|
description: Tableau embedding JWT
|
|
99
106
|
type: string
|
|
107
|
+
uafClaims:
|
|
108
|
+
description: The UAF claims that were added to the JWT
|
|
109
|
+
type: string
|
|
100
110
|
/tableau:
|
|
101
111
|
/eas:
|
|
102
112
|
get:
|
|
@@ -131,6 +141,10 @@ types:
|
|
|
131
141
|
description: Tableau Embedding URL
|
|
132
142
|
type: string
|
|
133
143
|
required: false
|
|
144
|
+
uafDefinitionNames:
|
|
145
|
+
description: UAF Claim definition names
|
|
146
|
+
type: string
|
|
147
|
+
required: false
|
|
134
148
|
post:
|
|
135
149
|
displayName: postTableauJWT
|
|
136
150
|
description: POST method for generating the custom Tableau embedding JWT
|