@salesforce/lds-adapters-analytics-unifiedanalytics 1.404.0-dev6 → 1.404.0-dev8
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-unifiedanalytics.js +65 -2
- package/dist/es/es2018/types/src/generated/adapters/createDashboard.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/adapters/getDataAssetDependencies.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/adapters/updateDashboard.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/resources/getTableauDataAssetsDependenciesByAssetId.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/resources/patchTableauDashboardsByDashboardIdOrApiName.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/resources/postTableauDashboards.d.ts +3 -0
- package/dist/es/es2018/types/src/generated/types/DashboardInputRepresentation.d.ts +8 -1
- package/dist/es/es2018/types/src/generated/types/DashboardRepresentation.d.ts +8 -1
- package/dist/es/es2018/types/src/generated/types/DataAssetRepresentation.d.ts +7 -1
- package/package.json +3 -3
- package/sfdc/index.js +66 -3
- package/src/raml/api.raml +28 -1
|
@@ -2751,12 +2751,28 @@ const queryAssetsAdapterFactory = (luvio) => {
|
|
|
2751
2751
|
};
|
|
2752
2752
|
};
|
|
2753
2753
|
|
|
2754
|
-
const VERSION$B = "
|
|
2754
|
+
const VERSION$B = "48241522a2d9c05d07397ef0fdfbce4e";
|
|
2755
2755
|
function validate$17(obj, path = 'DashboardRepresentation') {
|
|
2756
2756
|
const v_error = (() => {
|
|
2757
2757
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
2758
2758
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
2759
2759
|
}
|
|
2760
|
+
if (obj.backgroundSource !== undefined) {
|
|
2761
|
+
const obj_backgroundSource = obj.backgroundSource;
|
|
2762
|
+
const path_backgroundSource = path + '.backgroundSource';
|
|
2763
|
+
if (typeof obj_backgroundSource !== 'object' || ArrayIsArray(obj_backgroundSource) || obj_backgroundSource === null) {
|
|
2764
|
+
return new TypeError('Expected "object" but received "' + typeof obj_backgroundSource + '" (at "' + path_backgroundSource + '")');
|
|
2765
|
+
}
|
|
2766
|
+
const obj_backgroundSource_keys = ObjectKeys(obj_backgroundSource);
|
|
2767
|
+
for (let i = 0; i < obj_backgroundSource_keys.length; i++) {
|
|
2768
|
+
const key = obj_backgroundSource_keys[i];
|
|
2769
|
+
const obj_backgroundSource_prop = obj_backgroundSource[key];
|
|
2770
|
+
const path_backgroundSource_prop = path_backgroundSource + '["' + key + '"]';
|
|
2771
|
+
if (obj_backgroundSource_prop === undefined) {
|
|
2772
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_backgroundSource_prop + '" (at "' + path_backgroundSource_prop + '")');
|
|
2773
|
+
}
|
|
2774
|
+
}
|
|
2775
|
+
}
|
|
2760
2776
|
const obj_createdBy = obj.createdBy;
|
|
2761
2777
|
const path_createdBy = path + '.createdBy';
|
|
2762
2778
|
if (obj_createdBy === undefined) {
|
|
@@ -3186,6 +3202,7 @@ const createDashboard_ConfigPropertyMetadata = [
|
|
|
3186
3202
|
generateParamConfigMetadata('layouts', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
3187
3203
|
generateParamConfigMetadata('widgets', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3188
3204
|
generateParamConfigMetadata('style', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3205
|
+
generateParamConfigMetadata('backgroundSource', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3189
3206
|
];
|
|
3190
3207
|
const createDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$T, createDashboard_ConfigPropertyMetadata);
|
|
3191
3208
|
const createResourceParams$T = /*#__PURE__*/ createResourceParams$_(createDashboard_ConfigPropertyMetadata);
|
|
@@ -3231,6 +3248,21 @@ function typeCheckConfig$T(untrustedConfig) {
|
|
|
3231
3248
|
config.style = untrustedConfig_style_object;
|
|
3232
3249
|
}
|
|
3233
3250
|
}
|
|
3251
|
+
const untrustedConfig_backgroundSource = untrustedConfig.backgroundSource;
|
|
3252
|
+
if (untrustedIsObject(untrustedConfig_backgroundSource)) {
|
|
3253
|
+
const untrustedConfig_backgroundSource_object = {};
|
|
3254
|
+
const untrustedConfig_backgroundSource_keys = Object.keys(untrustedConfig_backgroundSource);
|
|
3255
|
+
for (let i = 0, arrayLength = untrustedConfig_backgroundSource_keys.length; i < arrayLength; i++) {
|
|
3256
|
+
const key = untrustedConfig_backgroundSource_keys[i];
|
|
3257
|
+
const untrustedConfig_backgroundSource_prop = untrustedConfig_backgroundSource[key];
|
|
3258
|
+
if (untrustedConfig_backgroundSource_object !== undefined) {
|
|
3259
|
+
untrustedConfig_backgroundSource_object[key] = untrustedConfig_backgroundSource_prop;
|
|
3260
|
+
}
|
|
3261
|
+
}
|
|
3262
|
+
if (untrustedConfig_backgroundSource_object !== undefined && Object.keys(untrustedConfig_backgroundSource_object).length >= 0) {
|
|
3263
|
+
config.backgroundSource = untrustedConfig_backgroundSource_object;
|
|
3264
|
+
}
|
|
3265
|
+
}
|
|
3234
3266
|
return config;
|
|
3235
3267
|
}
|
|
3236
3268
|
function validateAdapterConfig$T(untrustedConfig, configPropertyNames) {
|
|
@@ -3543,6 +3575,7 @@ const updateDashboard_ConfigPropertyMetadata = [
|
|
|
3543
3575
|
generateParamConfigMetadata('layouts', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
3544
3576
|
generateParamConfigMetadata('widgets', true, 2 /* Body */, 4 /* Unsupported */),
|
|
3545
3577
|
generateParamConfigMetadata('style', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3578
|
+
generateParamConfigMetadata('backgroundSource', false, 2 /* Body */, 4 /* Unsupported */),
|
|
3546
3579
|
];
|
|
3547
3580
|
const updateDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$Q, updateDashboard_ConfigPropertyMetadata);
|
|
3548
3581
|
const createResourceParams$Q = /*#__PURE__*/ createResourceParams$_(updateDashboard_ConfigPropertyMetadata);
|
|
@@ -3588,6 +3621,21 @@ function typeCheckConfig$Q(untrustedConfig) {
|
|
|
3588
3621
|
config.style = untrustedConfig_style_object;
|
|
3589
3622
|
}
|
|
3590
3623
|
}
|
|
3624
|
+
const untrustedConfig_backgroundSource = untrustedConfig.backgroundSource;
|
|
3625
|
+
if (untrustedIsObject(untrustedConfig_backgroundSource)) {
|
|
3626
|
+
const untrustedConfig_backgroundSource_object = {};
|
|
3627
|
+
const untrustedConfig_backgroundSource_keys = Object.keys(untrustedConfig_backgroundSource);
|
|
3628
|
+
for (let i = 0, arrayLength = untrustedConfig_backgroundSource_keys.length; i < arrayLength; i++) {
|
|
3629
|
+
const key = untrustedConfig_backgroundSource_keys[i];
|
|
3630
|
+
const untrustedConfig_backgroundSource_prop = untrustedConfig_backgroundSource[key];
|
|
3631
|
+
if (untrustedConfig_backgroundSource_object !== undefined) {
|
|
3632
|
+
untrustedConfig_backgroundSource_object[key] = untrustedConfig_backgroundSource_prop;
|
|
3633
|
+
}
|
|
3634
|
+
}
|
|
3635
|
+
if (untrustedConfig_backgroundSource_object !== undefined && Object.keys(untrustedConfig_backgroundSource_object).length >= 0) {
|
|
3636
|
+
config.backgroundSource = untrustedConfig_backgroundSource_object;
|
|
3637
|
+
}
|
|
3638
|
+
}
|
|
3591
3639
|
return config;
|
|
3592
3640
|
}
|
|
3593
3641
|
function validateAdapterConfig$Q(untrustedConfig, configPropertyNames) {
|
|
@@ -6787,6 +6835,13 @@ function validate$G(obj, path = 'DataAssetRepresentation') {
|
|
|
6787
6835
|
if (typeof obj_assetType !== 'string') {
|
|
6788
6836
|
return new TypeError('Expected "string" but received "' + typeof obj_assetType + '" (at "' + path_assetType + '")');
|
|
6789
6837
|
}
|
|
6838
|
+
if (obj.assetTypeFingerprint !== undefined) {
|
|
6839
|
+
const obj_assetTypeFingerprint = obj.assetTypeFingerprint;
|
|
6840
|
+
const path_assetTypeFingerprint = path + '.assetTypeFingerprint';
|
|
6841
|
+
if (typeof obj_assetTypeFingerprint !== 'string') {
|
|
6842
|
+
return new TypeError('Expected "string" but received "' + typeof obj_assetTypeFingerprint + '" (at "' + path_assetTypeFingerprint + '")');
|
|
6843
|
+
}
|
|
6844
|
+
}
|
|
6790
6845
|
const obj_createdBy = obj.createdBy;
|
|
6791
6846
|
const path_createdBy = path + '.createdBy';
|
|
6792
6847
|
const referencepath_createdByValidationError = validate$P(obj_createdBy, path_createdBy);
|
|
@@ -6840,6 +6895,13 @@ function validate$G(obj, path = 'DataAssetRepresentation') {
|
|
|
6840
6895
|
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
6841
6896
|
}
|
|
6842
6897
|
}
|
|
6898
|
+
if (obj.isPrimaryAsset !== undefined) {
|
|
6899
|
+
const obj_isPrimaryAsset = obj.isPrimaryAsset;
|
|
6900
|
+
const path_isPrimaryAsset = path + '.isPrimaryAsset';
|
|
6901
|
+
if (typeof obj_isPrimaryAsset !== 'boolean') {
|
|
6902
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isPrimaryAsset + '" (at "' + path_isPrimaryAsset + '")');
|
|
6903
|
+
}
|
|
6904
|
+
}
|
|
6843
6905
|
const obj_label = obj.label;
|
|
6844
6906
|
const path_label = path + '.label';
|
|
6845
6907
|
if (typeof obj_label !== 'string') {
|
|
@@ -6967,7 +7029,7 @@ function select$$(luvio, params) {
|
|
|
6967
7029
|
return select$10();
|
|
6968
7030
|
}
|
|
6969
7031
|
function keyBuilder$X(luvio, params) {
|
|
6970
|
-
return keyPrefix + '::DataAssetDependentCollectionRepresentation:(' + 'includeSynchronizationInfo:' + params.queryParams.includeSynchronizationInfo + ',' + 'assetId:' + params.urlParams.assetId + ')';
|
|
7032
|
+
return keyPrefix + '::DataAssetDependentCollectionRepresentation:(' + 'includeSynchronizationInfo:' + params.queryParams.includeSynchronizationInfo + ',' + 'failOnSchemaMismatch:' + params.queryParams.failOnSchemaMismatch + ',' + 'assetId:' + params.urlParams.assetId + ')';
|
|
6971
7033
|
}
|
|
6972
7034
|
function getResponseCacheKeys$E(storeKeyMap, luvio, resourceParams, response) {
|
|
6973
7035
|
getTypeCacheKeys$t(storeKeyMap, luvio, response, () => keyBuilder$X(luvio, resourceParams));
|
|
@@ -7019,6 +7081,7 @@ const adapterName$E = 'getDataAssetDependencies';
|
|
|
7019
7081
|
const getDataAssetDependencies_ConfigPropertyMetadata = [
|
|
7020
7082
|
generateParamConfigMetadata('assetId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
7021
7083
|
generateParamConfigMetadata('includeSynchronizationInfo', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
7084
|
+
generateParamConfigMetadata('failOnSchemaMismatch', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
7022
7085
|
];
|
|
7023
7086
|
const getDataAssetDependencies_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$E, getDataAssetDependencies_ConfigPropertyMetadata);
|
|
7024
7087
|
const createResourceParams$E = /*#__PURE__*/ createResourceParams$_(getDataAssetDependencies_ConfigPropertyMetadata);
|
|
@@ -19,6 +19,9 @@ export interface CreateDashboardConfig {
|
|
|
19
19
|
style?: {
|
|
20
20
|
[key: string]: unknown;
|
|
21
21
|
};
|
|
22
|
+
backgroundSource?: {
|
|
23
|
+
[key: string]: unknown;
|
|
24
|
+
};
|
|
22
25
|
}
|
|
23
26
|
export declare const createResourceParams: (config: CreateDashboardConfig) => resources_postTableauDashboards_ResourceRequestConfig;
|
|
24
27
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<CreateDashboardConfig>): adapter$45$utils_Untrusted<CreateDashboardConfig>;
|
|
@@ -8,6 +8,7 @@ export declare const getDataAssetDependencies_ConfigPropertyNames: adapter$45$ut
|
|
|
8
8
|
export interface GetDataAssetDependenciesConfig {
|
|
9
9
|
assetId: string;
|
|
10
10
|
includeSynchronizationInfo?: boolean;
|
|
11
|
+
failOnSchemaMismatch?: boolean;
|
|
11
12
|
}
|
|
12
13
|
export declare const createResourceParams: (config: GetDataAssetDependenciesConfig) => resources_getTableauDataAssetsDependenciesByAssetId_ResourceRequestConfig;
|
|
13
14
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetDataAssetDependenciesConfig): string;
|
|
@@ -20,6 +20,9 @@ export interface UpdateDashboardConfig {
|
|
|
20
20
|
style?: {
|
|
21
21
|
[key: string]: unknown;
|
|
22
22
|
};
|
|
23
|
+
backgroundSource?: {
|
|
24
|
+
[key: string]: unknown;
|
|
25
|
+
};
|
|
23
26
|
}
|
|
24
27
|
export declare const createResourceParams: (config: UpdateDashboardConfig) => resources_patchTableauDashboardsByDashboardIdOrApiName_ResourceRequestConfig;
|
|
25
28
|
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<UpdateDashboardConfig>): adapter$45$utils_Untrusted<UpdateDashboardConfig>;
|
package/dist/es/es2018/types/src/generated/resources/getTableauDataAssetsDependenciesByAssetId.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export interface ResourceRequestConfig {
|
|
|
6
6
|
};
|
|
7
7
|
queryParams: {
|
|
8
8
|
includeSynchronizationInfo?: boolean;
|
|
9
|
+
failOnSchemaMismatch?: boolean;
|
|
9
10
|
};
|
|
10
11
|
}
|
|
11
12
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
@@ -20,6 +20,9 @@ export interface ResourceRequestConfig {
|
|
|
20
20
|
style?: {
|
|
21
21
|
[key: string]: unknown;
|
|
22
22
|
};
|
|
23
|
+
backgroundSource?: {
|
|
24
|
+
[key: string]: unknown;
|
|
25
|
+
};
|
|
23
26
|
};
|
|
24
27
|
}
|
|
25
28
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
@@ -17,6 +17,9 @@ export interface ResourceRequestConfig {
|
|
|
17
17
|
style?: {
|
|
18
18
|
[key: string]: unknown;
|
|
19
19
|
};
|
|
20
|
+
backgroundSource?: {
|
|
21
|
+
[key: string]: unknown;
|
|
22
|
+
};
|
|
20
23
|
};
|
|
21
24
|
}
|
|
22
25
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
@@ -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 = "f0dd9e670e17de8e3a03b57bf8ca6bc0";
|
|
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: DashboardInputRepresentation, existing: DashboardInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): DashboardInputRepresentationNormalized;
|
|
@@ -14,6 +14,10 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
14
14
|
* (none)
|
|
15
15
|
*/
|
|
16
16
|
export interface DashboardInputRepresentationNormalized {
|
|
17
|
+
/** Dashboard level background image source. */
|
|
18
|
+
backgroundSource?: {
|
|
19
|
+
[key: string]: unknown;
|
|
20
|
+
};
|
|
17
21
|
/** Description. */
|
|
18
22
|
description?: string;
|
|
19
23
|
/** Database id. */
|
|
@@ -42,6 +46,9 @@ export interface DashboardInputRepresentationNormalized {
|
|
|
42
46
|
* (none)
|
|
43
47
|
*/
|
|
44
48
|
export interface DashboardInputRepresentation {
|
|
49
|
+
backgroundSource?: {
|
|
50
|
+
[key: string]: unknown;
|
|
51
|
+
};
|
|
45
52
|
description?: string;
|
|
46
53
|
id?: string;
|
|
47
54
|
label: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
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
|
-
export declare const VERSION = "
|
|
2
|
+
export declare const VERSION = "48241522a2d9c05d07397ef0fdfbce4e";
|
|
3
3
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
4
|
export declare const RepresentationType: string;
|
|
5
5
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
@@ -23,6 +23,10 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
|
|
|
23
23
|
* name (string): name
|
|
24
24
|
*/
|
|
25
25
|
export interface DashboardRepresentationNormalized {
|
|
26
|
+
/** Dashboard level background image source. */
|
|
27
|
+
backgroundSource?: {
|
|
28
|
+
[key: string]: unknown;
|
|
29
|
+
};
|
|
26
30
|
/** Created by of the asset. */
|
|
27
31
|
createdBy: unknown;
|
|
28
32
|
/** Created date of the asset */
|
|
@@ -61,6 +65,9 @@ export interface DashboardRepresentationNormalized {
|
|
|
61
65
|
* name (string): name
|
|
62
66
|
*/
|
|
63
67
|
export interface DashboardRepresentation {
|
|
68
|
+
backgroundSource?: {
|
|
69
|
+
[key: string]: unknown;
|
|
70
|
+
};
|
|
64
71
|
createdBy: unknown;
|
|
65
72
|
createdDate: string;
|
|
66
73
|
description?: string;
|
|
@@ -2,7 +2,7 @@ import { AnalyticsUserRepresentation as AnalyticsUserRepresentation_AnalyticsUse
|
|
|
2
2
|
import { DataSpaceInfoRepresentation as DataSpaceInfoRepresentation_DataSpaceInfoRepresentation } from './DataSpaceInfoRepresentation';
|
|
3
3
|
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';
|
|
4
4
|
export declare const TTL = 500;
|
|
5
|
-
export declare const VERSION = "
|
|
5
|
+
export declare const VERSION = "6abaabb80cff5ac2b0f50879ce3d5b75";
|
|
6
6
|
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
7
7
|
export declare const RepresentationType: string;
|
|
8
8
|
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
@@ -30,6 +30,8 @@ export interface DataAssetRepresentationNormalized {
|
|
|
30
30
|
assetId: string;
|
|
31
31
|
/** Type of the DataAsset */
|
|
32
32
|
assetType: string;
|
|
33
|
+
/** Schema fingerprint of the asset type of the DataAsset */
|
|
34
|
+
assetTypeFingerprint?: string;
|
|
33
35
|
/** Created by of the DataAsset. */
|
|
34
36
|
createdBy: AnalyticsUserRepresentation_AnalyticsUserRepresentation;
|
|
35
37
|
/** Created date of the DataAsset */
|
|
@@ -42,6 +44,8 @@ export interface DataAssetRepresentationNormalized {
|
|
|
42
44
|
description?: string;
|
|
43
45
|
/** DataAsset id. */
|
|
44
46
|
id?: string;
|
|
47
|
+
/** Whether the DataAsset is the primary asset in a list of data asset dependencies */
|
|
48
|
+
isPrimaryAsset?: boolean;
|
|
45
49
|
/** Label of the DataAsset. */
|
|
46
50
|
label: string;
|
|
47
51
|
/** Last modified by of the DataAsset. */
|
|
@@ -64,12 +68,14 @@ export interface DataAssetRepresentationNormalized {
|
|
|
64
68
|
export interface DataAssetRepresentation {
|
|
65
69
|
assetId: string;
|
|
66
70
|
assetType: string;
|
|
71
|
+
assetTypeFingerprint?: string;
|
|
67
72
|
createdBy: AnalyticsUserRepresentation_AnalyticsUserRepresentation;
|
|
68
73
|
createdDate?: string;
|
|
69
74
|
createdWorkspace?: string;
|
|
70
75
|
dataSpaceInfo?: Array<DataSpaceInfoRepresentation_DataSpaceInfoRepresentation>;
|
|
71
76
|
description?: string;
|
|
72
77
|
id?: string;
|
|
78
|
+
isPrimaryAsset?: boolean;
|
|
73
79
|
label: string;
|
|
74
80
|
lastModifiedBy: AnalyticsUserRepresentation_AnalyticsUserRepresentation;
|
|
75
81
|
lastModifiedDate: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-analytics-unifiedanalytics",
|
|
3
|
-
"version": "1.404.0-
|
|
3
|
+
"version": "1.404.0-dev8",
|
|
4
4
|
"description": "Tableau Unified Analytics Platform",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/analytics-unifiedanalytics.js",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"test:unit": "jest"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@salesforce/lds-bindings": "^1.404.0-
|
|
43
|
+
"@salesforce/lds-bindings": "^1.404.0-dev8"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.404.0-
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.404.0-dev8"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|
package/sfdc/index.js
CHANGED
|
@@ -1943,12 +1943,28 @@ const createAssetSlackChannelAdapterFactory = (luvio) => {
|
|
|
1943
1943
|
};
|
|
1944
1944
|
};
|
|
1945
1945
|
|
|
1946
|
-
const VERSION$E = "
|
|
1946
|
+
const VERSION$E = "48241522a2d9c05d07397ef0fdfbce4e";
|
|
1947
1947
|
function validate$1d(obj, path = 'DashboardRepresentation') {
|
|
1948
1948
|
const v_error = (() => {
|
|
1949
1949
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
1950
1950
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
1951
1951
|
}
|
|
1952
|
+
if (obj.backgroundSource !== undefined) {
|
|
1953
|
+
const obj_backgroundSource = obj.backgroundSource;
|
|
1954
|
+
const path_backgroundSource = path + '.backgroundSource';
|
|
1955
|
+
if (typeof obj_backgroundSource !== 'object' || ArrayIsArray(obj_backgroundSource) || obj_backgroundSource === null) {
|
|
1956
|
+
return new TypeError('Expected "object" but received "' + typeof obj_backgroundSource + '" (at "' + path_backgroundSource + '")');
|
|
1957
|
+
}
|
|
1958
|
+
const obj_backgroundSource_keys = ObjectKeys(obj_backgroundSource);
|
|
1959
|
+
for (let i = 0; i < obj_backgroundSource_keys.length; i++) {
|
|
1960
|
+
const key = obj_backgroundSource_keys[i];
|
|
1961
|
+
const obj_backgroundSource_prop = obj_backgroundSource[key];
|
|
1962
|
+
const path_backgroundSource_prop = path_backgroundSource + '["' + key + '"]';
|
|
1963
|
+
if (obj_backgroundSource_prop === undefined) {
|
|
1964
|
+
return new TypeError('Expected "defined" but received "' + typeof obj_backgroundSource_prop + '" (at "' + path_backgroundSource_prop + '")');
|
|
1965
|
+
}
|
|
1966
|
+
}
|
|
1967
|
+
}
|
|
1952
1968
|
const obj_createdBy = obj.createdBy;
|
|
1953
1969
|
const path_createdBy = path + '.createdBy';
|
|
1954
1970
|
if (obj_createdBy === undefined) {
|
|
@@ -2149,6 +2165,7 @@ const createDashboard_ConfigPropertyMetadata = [
|
|
|
2149
2165
|
generateParamConfigMetadata('layouts', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
2150
2166
|
generateParamConfigMetadata('widgets', true, 2 /* Body */, 4 /* Unsupported */),
|
|
2151
2167
|
generateParamConfigMetadata('style', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2168
|
+
generateParamConfigMetadata('backgroundSource', false, 2 /* Body */, 4 /* Unsupported */),
|
|
2152
2169
|
];
|
|
2153
2170
|
const createDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$X, createDashboard_ConfigPropertyMetadata);
|
|
2154
2171
|
const createResourceParams$X = /*#__PURE__*/ createResourceParams$_(createDashboard_ConfigPropertyMetadata);
|
|
@@ -2194,6 +2211,21 @@ function typeCheckConfig$X(untrustedConfig) {
|
|
|
2194
2211
|
config.style = untrustedConfig_style_object;
|
|
2195
2212
|
}
|
|
2196
2213
|
}
|
|
2214
|
+
const untrustedConfig_backgroundSource = untrustedConfig.backgroundSource;
|
|
2215
|
+
if (untrustedIsObject(untrustedConfig_backgroundSource)) {
|
|
2216
|
+
const untrustedConfig_backgroundSource_object = {};
|
|
2217
|
+
const untrustedConfig_backgroundSource_keys = Object.keys(untrustedConfig_backgroundSource);
|
|
2218
|
+
for (let i = 0, arrayLength = untrustedConfig_backgroundSource_keys.length; i < arrayLength; i++) {
|
|
2219
|
+
const key = untrustedConfig_backgroundSource_keys[i];
|
|
2220
|
+
const untrustedConfig_backgroundSource_prop = untrustedConfig_backgroundSource[key];
|
|
2221
|
+
if (untrustedConfig_backgroundSource_object !== undefined) {
|
|
2222
|
+
untrustedConfig_backgroundSource_object[key] = untrustedConfig_backgroundSource_prop;
|
|
2223
|
+
}
|
|
2224
|
+
}
|
|
2225
|
+
if (untrustedConfig_backgroundSource_object !== undefined && Object.keys(untrustedConfig_backgroundSource_object).length >= 0) {
|
|
2226
|
+
config.backgroundSource = untrustedConfig_backgroundSource_object;
|
|
2227
|
+
}
|
|
2228
|
+
}
|
|
2197
2229
|
return config;
|
|
2198
2230
|
}
|
|
2199
2231
|
function validateAdapterConfig$X(untrustedConfig, configPropertyNames) {
|
|
@@ -8217,6 +8249,13 @@ function validate$w(obj, path = 'DataAssetRepresentation') {
|
|
|
8217
8249
|
if (typeof obj_assetType !== 'string') {
|
|
8218
8250
|
return new TypeError('Expected "string" but received "' + typeof obj_assetType + '" (at "' + path_assetType + '")');
|
|
8219
8251
|
}
|
|
8252
|
+
if (obj.assetTypeFingerprint !== undefined) {
|
|
8253
|
+
const obj_assetTypeFingerprint = obj.assetTypeFingerprint;
|
|
8254
|
+
const path_assetTypeFingerprint = path + '.assetTypeFingerprint';
|
|
8255
|
+
if (typeof obj_assetTypeFingerprint !== 'string') {
|
|
8256
|
+
return new TypeError('Expected "string" but received "' + typeof obj_assetTypeFingerprint + '" (at "' + path_assetTypeFingerprint + '")');
|
|
8257
|
+
}
|
|
8258
|
+
}
|
|
8220
8259
|
const obj_createdBy = obj.createdBy;
|
|
8221
8260
|
const path_createdBy = path + '.createdBy';
|
|
8222
8261
|
const referencepath_createdByValidationError = validate$X(obj_createdBy, path_createdBy);
|
|
@@ -8270,6 +8309,13 @@ function validate$w(obj, path = 'DataAssetRepresentation') {
|
|
|
8270
8309
|
return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
|
|
8271
8310
|
}
|
|
8272
8311
|
}
|
|
8312
|
+
if (obj.isPrimaryAsset !== undefined) {
|
|
8313
|
+
const obj_isPrimaryAsset = obj.isPrimaryAsset;
|
|
8314
|
+
const path_isPrimaryAsset = path + '.isPrimaryAsset';
|
|
8315
|
+
if (typeof obj_isPrimaryAsset !== 'boolean') {
|
|
8316
|
+
return new TypeError('Expected "boolean" but received "' + typeof obj_isPrimaryAsset + '" (at "' + path_isPrimaryAsset + '")');
|
|
8317
|
+
}
|
|
8318
|
+
}
|
|
8273
8319
|
const obj_label = obj.label;
|
|
8274
8320
|
const path_label = path + '.label';
|
|
8275
8321
|
if (typeof obj_label !== 'string') {
|
|
@@ -8397,7 +8443,7 @@ function select$U(luvio, params) {
|
|
|
8397
8443
|
return select$V();
|
|
8398
8444
|
}
|
|
8399
8445
|
function keyBuilder$P(luvio, params) {
|
|
8400
|
-
return keyPrefix + '::DataAssetDependentCollectionRepresentation:(' + 'includeSynchronizationInfo:' + params.queryParams.includeSynchronizationInfo + ',' + 'assetId:' + params.urlParams.assetId + ')';
|
|
8446
|
+
return keyPrefix + '::DataAssetDependentCollectionRepresentation:(' + 'includeSynchronizationInfo:' + params.queryParams.includeSynchronizationInfo + ',' + 'failOnSchemaMismatch:' + params.queryParams.failOnSchemaMismatch + ',' + 'assetId:' + params.urlParams.assetId + ')';
|
|
8401
8447
|
}
|
|
8402
8448
|
function getResponseCacheKeys$y(storeKeyMap, luvio, resourceParams, response) {
|
|
8403
8449
|
getTypeCacheKeys$n(storeKeyMap, luvio, response, () => keyBuilder$P(luvio, resourceParams));
|
|
@@ -8449,6 +8495,7 @@ const adapterName$y = 'getDataAssetDependencies';
|
|
|
8449
8495
|
const getDataAssetDependencies_ConfigPropertyMetadata = [
|
|
8450
8496
|
generateParamConfigMetadata('assetId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8451
8497
|
generateParamConfigMetadata('includeSynchronizationInfo', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
8498
|
+
generateParamConfigMetadata('failOnSchemaMismatch', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
8452
8499
|
];
|
|
8453
8500
|
const getDataAssetDependencies_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$y, getDataAssetDependencies_ConfigPropertyMetadata);
|
|
8454
8501
|
const createResourceParams$y = /*#__PURE__*/ createResourceParams$_(getDataAssetDependencies_ConfigPropertyMetadata);
|
|
@@ -14374,6 +14421,7 @@ const updateDashboard_ConfigPropertyMetadata = [
|
|
|
14374
14421
|
generateParamConfigMetadata('layouts', true, 2 /* Body */, 4 /* Unsupported */, true),
|
|
14375
14422
|
generateParamConfigMetadata('widgets', true, 2 /* Body */, 4 /* Unsupported */),
|
|
14376
14423
|
generateParamConfigMetadata('style', false, 2 /* Body */, 4 /* Unsupported */),
|
|
14424
|
+
generateParamConfigMetadata('backgroundSource', false, 2 /* Body */, 4 /* Unsupported */),
|
|
14377
14425
|
];
|
|
14378
14426
|
const updateDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, updateDashboard_ConfigPropertyMetadata);
|
|
14379
14427
|
const createResourceParams$7 = /*#__PURE__*/ createResourceParams$_(updateDashboard_ConfigPropertyMetadata);
|
|
@@ -14419,6 +14467,21 @@ function typeCheckConfig$7(untrustedConfig) {
|
|
|
14419
14467
|
config.style = untrustedConfig_style_object;
|
|
14420
14468
|
}
|
|
14421
14469
|
}
|
|
14470
|
+
const untrustedConfig_backgroundSource = untrustedConfig.backgroundSource;
|
|
14471
|
+
if (untrustedIsObject(untrustedConfig_backgroundSource)) {
|
|
14472
|
+
const untrustedConfig_backgroundSource_object = {};
|
|
14473
|
+
const untrustedConfig_backgroundSource_keys = Object.keys(untrustedConfig_backgroundSource);
|
|
14474
|
+
for (let i = 0, arrayLength = untrustedConfig_backgroundSource_keys.length; i < arrayLength; i++) {
|
|
14475
|
+
const key = untrustedConfig_backgroundSource_keys[i];
|
|
14476
|
+
const untrustedConfig_backgroundSource_prop = untrustedConfig_backgroundSource[key];
|
|
14477
|
+
if (untrustedConfig_backgroundSource_object !== undefined) {
|
|
14478
|
+
untrustedConfig_backgroundSource_object[key] = untrustedConfig_backgroundSource_prop;
|
|
14479
|
+
}
|
|
14480
|
+
}
|
|
14481
|
+
if (untrustedConfig_backgroundSource_object !== undefined && Object.keys(untrustedConfig_backgroundSource_object).length >= 0) {
|
|
14482
|
+
config.backgroundSource = untrustedConfig_backgroundSource_object;
|
|
14483
|
+
}
|
|
14484
|
+
}
|
|
14422
14485
|
return config;
|
|
14423
14486
|
}
|
|
14424
14487
|
function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
|
|
@@ -15743,4 +15806,4 @@ withDefaultLuvio((luvio) => {
|
|
|
15743
15806
|
});
|
|
15744
15807
|
|
|
15745
15808
|
export { createAnnotation, createAssetSlackChannel, createDashboard, createDataAlert, createDataAssetRequest, createLoglines, createRecordShares, createTemplate, createVisualization, createWorkspace, createWorkspaceAsset, deleteAllShares, deleteDashboard, deleteDataAlert, deleteRecordShare, deleteVisualization, deleteWorkspace, deleteWorkspaceAsset, follow, generateSFDriveCredentials, generateSFDrivePresignedCredentials, getAnnotations, getAnnotations_imperative, getAssetSlackChannels, getAssetSlackChannels_imperative, getDashboardByName, getDashboardByNameNotifyChange, getDashboardByName_imperative, getDashboards, getDashboards_imperative, getDataAlert, getDataAlertCollection, getDataAlertCollection_imperative, getDataAlertNotifyChange, getDataAlert_imperative, getDataAssetDependencies, getDataAssetDependencies_imperative, getDataAssetRequestByIdOrApiName, getDataAssetRequestByIdOrApiNameNotifyChange, getDataAssetRequestByIdOrApiName_imperative, getDataAssetRequests, getDataAssetRequestsCount, getDataAssetRequestsCount_imperative, getDataAssetRequests_imperative, getFlowByName, getFlowByName_imperative, getFlows, getFlows_imperative, getFollowedAssets, getFollowedAssets_imperative, getFollowers, getFollowers_imperative, getMarketplaceListingInstallationProgress, getMarketplaceListingInstallationProgress_imperative, getOrg, getOrg_imperative, getShares, getShares_imperative, getSlackAppInfo, getSlackAppInfo_imperative, getSubscriptionDigestConfig, getSubscriptionDigestConfigNotifyChange, getSubscriptionDigestConfig_imperative, getUnifiedAnalyticsLibraryAssets, getUniqueFollowerCount, getUniqueFollowerCount_imperative, getVisualization, getVisualizationBundle, getVisualizationBundleNotifyChange, getVisualizationBundle_imperative, getVisualizationNotifyChange, getVisualization_imperative, getVisualizations, getVisualizations_imperative, getWorkspaceByIdOrName, getWorkspaceByIdOrNameNotifyChange, getWorkspaceByIdOrName_imperative, getWorkspaces, getWorkspaces_imperative, initiateMarketplaceListingInstallation, initiateMarketplaceListingInstallation_imperative, notifySharesUpdateAvailable, postDataAlertRun, publish, publishToMarketplace, queryAssets, queryUsers, unfollow, updateDashboard, updateDataAlert, updateDataAssetRequest, updateFollowedAsset, updateRecordShares, updateSubscriptionDigestConfig, updateVisualization, updateWorkspace };
|
|
15746
|
-
// version: 1.404.0-
|
|
15809
|
+
// version: 1.404.0-dev8-0d1fa821a7
|
package/src/raml/api.raml
CHANGED
|
@@ -949,6 +949,13 @@ types:
|
|
|
949
949
|
properties:
|
|
950
950
|
//:
|
|
951
951
|
type: any
|
|
952
|
+
backgroundSource:
|
|
953
|
+
description: Dashboard level background image source.
|
|
954
|
+
type: object
|
|
955
|
+
required: false
|
|
956
|
+
properties:
|
|
957
|
+
//:
|
|
958
|
+
type: any
|
|
952
959
|
DashboardRepresentation:
|
|
953
960
|
description: Unified analytics dashboard representation.
|
|
954
961
|
discriminator: id
|
|
@@ -1006,6 +1013,13 @@ types:
|
|
|
1006
1013
|
properties:
|
|
1007
1014
|
//:
|
|
1008
1015
|
type: any
|
|
1016
|
+
backgroundSource:
|
|
1017
|
+
description: Dashboard level background image source.
|
|
1018
|
+
type: object
|
|
1019
|
+
required: false
|
|
1020
|
+
properties:
|
|
1021
|
+
//:
|
|
1022
|
+
type: any
|
|
1009
1023
|
DataAssetDependentCollectionRepresentation:
|
|
1010
1024
|
description: Represents a List of dependent assets for a given asset
|
|
1011
1025
|
type: object
|
|
@@ -1087,6 +1101,14 @@ types:
|
|
|
1087
1101
|
items:
|
|
1088
1102
|
type: DataSpaceInfoRepresentation
|
|
1089
1103
|
required: false
|
|
1104
|
+
isPrimaryAsset:
|
|
1105
|
+
description: Whether the DataAsset is the primary asset in a list of data asset dependencies
|
|
1106
|
+
type: boolean
|
|
1107
|
+
required: false
|
|
1108
|
+
assetTypeFingerprint:
|
|
1109
|
+
description: Schema fingerprint of the asset type of the DataAsset
|
|
1110
|
+
type: string
|
|
1111
|
+
required: false
|
|
1090
1112
|
DataAssetRequestCollectionRepresentation:
|
|
1091
1113
|
description: Collection of Data Asset Requests
|
|
1092
1114
|
type: object
|
|
@@ -1899,8 +1921,9 @@ types:
|
|
|
1899
1921
|
description: Overall progress status of a task
|
|
1900
1922
|
type: string | nil
|
|
1901
1923
|
enum:
|
|
1902
|
-
-
|
|
1924
|
+
- CreationInProgress
|
|
1903
1925
|
- InReview
|
|
1926
|
+
- MigrationInProgress
|
|
1904
1927
|
- NotStarted
|
|
1905
1928
|
- Terminal
|
|
1906
1929
|
required: false
|
|
@@ -3447,6 +3470,10 @@ types:
|
|
|
3447
3470
|
type: boolean
|
|
3448
3471
|
required: false
|
|
3449
3472
|
description: Include synchronization information in the response
|
|
3473
|
+
failOnSchemaMismatch:
|
|
3474
|
+
type: boolean
|
|
3475
|
+
required: false
|
|
3476
|
+
description: Perform asset type schema mismatch validation and include schema fingerprint in the response
|
|
3450
3477
|
responses:
|
|
3451
3478
|
'200':
|
|
3452
3479
|
description: Success
|