@salesforce/lds-adapters-analytics-unifiedanalytics 1.427.0 → 1.428.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.
@@ -2751,7 +2751,7 @@ const queryAssetsAdapterFactory = (luvio) => {
2751
2751
  };
2752
2752
  };
2753
2753
 
2754
- const VERSION$B = "48241522a2d9c05d07397ef0fdfbce4e";
2754
+ const VERSION$B = "581903d233184a85957cb2aa527b0d33";
2755
2755
  function validate$17(obj, path = 'DashboardRepresentation') {
2756
2756
  const v_error = (() => {
2757
2757
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -2783,6 +2783,22 @@ function validate$17(obj, path = 'DashboardRepresentation') {
2783
2783
  if (typeof obj_createdDate !== 'string') {
2784
2784
  return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
2785
2785
  }
2786
+ if (obj.customConfig !== undefined) {
2787
+ const obj_customConfig = obj.customConfig;
2788
+ const path_customConfig = path + '.customConfig';
2789
+ if (typeof obj_customConfig !== 'object' || ArrayIsArray(obj_customConfig) || obj_customConfig === null) {
2790
+ return new TypeError('Expected "object" but received "' + typeof obj_customConfig + '" (at "' + path_customConfig + '")');
2791
+ }
2792
+ const obj_customConfig_keys = ObjectKeys(obj_customConfig);
2793
+ for (let i = 0; i < obj_customConfig_keys.length; i++) {
2794
+ const key = obj_customConfig_keys[i];
2795
+ const obj_customConfig_prop = obj_customConfig[key];
2796
+ const path_customConfig_prop = path_customConfig + '["' + key + '"]';
2797
+ if (obj_customConfig_prop === undefined) {
2798
+ return new TypeError('Expected "defined" but received "' + typeof obj_customConfig_prop + '" (at "' + path_customConfig_prop + '")');
2799
+ }
2800
+ }
2801
+ }
2786
2802
  if (obj.description !== undefined) {
2787
2803
  const obj_description = obj.description;
2788
2804
  const path_description = path + '.description';
@@ -3203,6 +3219,7 @@ const createDashboard_ConfigPropertyMetadata = [
3203
3219
  generateParamConfigMetadata('widgets', true, 2 /* Body */, 4 /* Unsupported */),
3204
3220
  generateParamConfigMetadata('style', false, 2 /* Body */, 4 /* Unsupported */),
3205
3221
  generateParamConfigMetadata('backgroundSource', false, 2 /* Body */, 4 /* Unsupported */),
3222
+ generateParamConfigMetadata('customConfig', false, 2 /* Body */, 4 /* Unsupported */),
3206
3223
  ];
3207
3224
  const createDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$T, createDashboard_ConfigPropertyMetadata);
3208
3225
  const createResourceParams$T = /*#__PURE__*/ createResourceParams$_(createDashboard_ConfigPropertyMetadata);
@@ -3263,6 +3280,21 @@ function typeCheckConfig$T(untrustedConfig) {
3263
3280
  config.backgroundSource = untrustedConfig_backgroundSource_object;
3264
3281
  }
3265
3282
  }
3283
+ const untrustedConfig_customConfig = untrustedConfig.customConfig;
3284
+ if (untrustedIsObject(untrustedConfig_customConfig)) {
3285
+ const untrustedConfig_customConfig_object = {};
3286
+ const untrustedConfig_customConfig_keys = Object.keys(untrustedConfig_customConfig);
3287
+ for (let i = 0, arrayLength = untrustedConfig_customConfig_keys.length; i < arrayLength; i++) {
3288
+ const key = untrustedConfig_customConfig_keys[i];
3289
+ const untrustedConfig_customConfig_prop = untrustedConfig_customConfig[key];
3290
+ if (untrustedConfig_customConfig_object !== undefined) {
3291
+ untrustedConfig_customConfig_object[key] = untrustedConfig_customConfig_prop;
3292
+ }
3293
+ }
3294
+ if (untrustedConfig_customConfig_object !== undefined && Object.keys(untrustedConfig_customConfig_object).length >= 0) {
3295
+ config.customConfig = untrustedConfig_customConfig_object;
3296
+ }
3297
+ }
3266
3298
  return config;
3267
3299
  }
3268
3300
  function validateAdapterConfig$T(untrustedConfig, configPropertyNames) {
@@ -3576,6 +3608,7 @@ const updateDashboard_ConfigPropertyMetadata = [
3576
3608
  generateParamConfigMetadata('widgets', true, 2 /* Body */, 4 /* Unsupported */),
3577
3609
  generateParamConfigMetadata('style', false, 2 /* Body */, 4 /* Unsupported */),
3578
3610
  generateParamConfigMetadata('backgroundSource', false, 2 /* Body */, 4 /* Unsupported */),
3611
+ generateParamConfigMetadata('customConfig', false, 2 /* Body */, 4 /* Unsupported */),
3579
3612
  ];
3580
3613
  const updateDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$Q, updateDashboard_ConfigPropertyMetadata);
3581
3614
  const createResourceParams$Q = /*#__PURE__*/ createResourceParams$_(updateDashboard_ConfigPropertyMetadata);
@@ -3636,6 +3669,21 @@ function typeCheckConfig$Q(untrustedConfig) {
3636
3669
  config.backgroundSource = untrustedConfig_backgroundSource_object;
3637
3670
  }
3638
3671
  }
3672
+ const untrustedConfig_customConfig = untrustedConfig.customConfig;
3673
+ if (untrustedIsObject(untrustedConfig_customConfig)) {
3674
+ const untrustedConfig_customConfig_object = {};
3675
+ const untrustedConfig_customConfig_keys = Object.keys(untrustedConfig_customConfig);
3676
+ for (let i = 0, arrayLength = untrustedConfig_customConfig_keys.length; i < arrayLength; i++) {
3677
+ const key = untrustedConfig_customConfig_keys[i];
3678
+ const untrustedConfig_customConfig_prop = untrustedConfig_customConfig[key];
3679
+ if (untrustedConfig_customConfig_object !== undefined) {
3680
+ untrustedConfig_customConfig_object[key] = untrustedConfig_customConfig_prop;
3681
+ }
3682
+ }
3683
+ if (untrustedConfig_customConfig_object !== undefined && Object.keys(untrustedConfig_customConfig_object).length >= 0) {
3684
+ config.customConfig = untrustedConfig_customConfig_object;
3685
+ }
3686
+ }
3639
3687
  return config;
3640
3688
  }
3641
3689
  function validateAdapterConfig$Q(untrustedConfig, configPropertyNames) {
@@ -22,6 +22,9 @@ export interface CreateDashboardConfig {
22
22
  backgroundSource?: {
23
23
  [key: string]: unknown;
24
24
  };
25
+ customConfig?: {
26
+ [key: string]: unknown;
27
+ };
25
28
  }
26
29
  export declare const createResourceParams: (config: CreateDashboardConfig) => resources_postTableauDashboards_ResourceRequestConfig;
27
30
  export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<CreateDashboardConfig>): adapter$45$utils_Untrusted<CreateDashboardConfig>;
@@ -23,6 +23,9 @@ export interface UpdateDashboardConfig {
23
23
  backgroundSource?: {
24
24
  [key: string]: unknown;
25
25
  };
26
+ customConfig?: {
27
+ [key: string]: unknown;
28
+ };
26
29
  }
27
30
  export declare const createResourceParams: (config: UpdateDashboardConfig) => resources_patchTableauDashboardsByDashboardIdOrApiName_ResourceRequestConfig;
28
31
  export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<UpdateDashboardConfig>): adapter$45$utils_Untrusted<UpdateDashboardConfig>;
@@ -23,6 +23,9 @@ export interface ResourceRequestConfig {
23
23
  backgroundSource?: {
24
24
  [key: string]: unknown;
25
25
  };
26
+ customConfig?: {
27
+ [key: string]: unknown;
28
+ };
26
29
  };
27
30
  }
28
31
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
@@ -20,6 +20,9 @@ export interface ResourceRequestConfig {
20
20
  backgroundSource?: {
21
21
  [key: string]: unknown;
22
22
  };
23
+ customConfig?: {
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;
@@ -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 = "f0dd9e670e17de8e3a03b57bf8ca6bc0";
2
+ export declare const VERSION = "77afdc4d4f6a4ce9eadb90f26b594e7d";
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;
@@ -18,6 +18,10 @@ export interface DashboardInputRepresentationNormalized {
18
18
  backgroundSource?: {
19
19
  [key: string]: unknown;
20
20
  };
21
+ /** Dashboard level custom configuration */
22
+ customConfig?: {
23
+ [key: string]: unknown;
24
+ };
21
25
  /** Description. */
22
26
  description?: string;
23
27
  /** Database id. */
@@ -49,6 +53,9 @@ export interface DashboardInputRepresentation {
49
53
  backgroundSource?: {
50
54
  [key: string]: unknown;
51
55
  };
56
+ customConfig?: {
57
+ [key: string]: unknown;
58
+ };
52
59
  description?: string;
53
60
  id?: string;
54
61
  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 = "48241522a2d9c05d07397ef0fdfbce4e";
2
+ export declare const VERSION = "581903d233184a85957cb2aa527b0d33";
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 {
@@ -31,6 +31,10 @@ export interface DashboardRepresentationNormalized {
31
31
  createdBy: unknown;
32
32
  /** Created date of the asset */
33
33
  createdDate: string;
34
+ /** Dashboard level custom configuration */
35
+ customConfig?: {
36
+ [key: string]: unknown;
37
+ };
34
38
  /** Description of the asset. */
35
39
  description?: string;
36
40
  /** Database record id of the asset. */
@@ -70,6 +74,9 @@ export interface DashboardRepresentation {
70
74
  };
71
75
  createdBy: unknown;
72
76
  createdDate: string;
77
+ customConfig?: {
78
+ [key: string]: unknown;
79
+ };
73
80
  description?: string;
74
81
  id: string;
75
82
  label: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-analytics-unifiedanalytics",
3
- "version": "1.427.0",
3
+ "version": "1.428.0-dev1",
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.427.0"
43
+ "@salesforce/lds-bindings": "^1.428.0-dev1"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.427.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.428.0-dev1"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -1943,7 +1943,7 @@ const createAssetSlackChannelAdapterFactory = (luvio) => {
1943
1943
  };
1944
1944
  };
1945
1945
 
1946
- const VERSION$E = "48241522a2d9c05d07397ef0fdfbce4e";
1946
+ const VERSION$E = "581903d233184a85957cb2aa527b0d33";
1947
1947
  function validate$1d(obj, path = 'DashboardRepresentation') {
1948
1948
  const v_error = (() => {
1949
1949
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -1975,6 +1975,22 @@ function validate$1d(obj, path = 'DashboardRepresentation') {
1975
1975
  if (typeof obj_createdDate !== 'string') {
1976
1976
  return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
1977
1977
  }
1978
+ if (obj.customConfig !== undefined) {
1979
+ const obj_customConfig = obj.customConfig;
1980
+ const path_customConfig = path + '.customConfig';
1981
+ if (typeof obj_customConfig !== 'object' || ArrayIsArray(obj_customConfig) || obj_customConfig === null) {
1982
+ return new TypeError('Expected "object" but received "' + typeof obj_customConfig + '" (at "' + path_customConfig + '")');
1983
+ }
1984
+ const obj_customConfig_keys = ObjectKeys(obj_customConfig);
1985
+ for (let i = 0; i < obj_customConfig_keys.length; i++) {
1986
+ const key = obj_customConfig_keys[i];
1987
+ const obj_customConfig_prop = obj_customConfig[key];
1988
+ const path_customConfig_prop = path_customConfig + '["' + key + '"]';
1989
+ if (obj_customConfig_prop === undefined) {
1990
+ return new TypeError('Expected "defined" but received "' + typeof obj_customConfig_prop + '" (at "' + path_customConfig_prop + '")');
1991
+ }
1992
+ }
1993
+ }
1978
1994
  if (obj.description !== undefined) {
1979
1995
  const obj_description = obj.description;
1980
1996
  const path_description = path + '.description';
@@ -2166,6 +2182,7 @@ const createDashboard_ConfigPropertyMetadata = [
2166
2182
  generateParamConfigMetadata('widgets', true, 2 /* Body */, 4 /* Unsupported */),
2167
2183
  generateParamConfigMetadata('style', false, 2 /* Body */, 4 /* Unsupported */),
2168
2184
  generateParamConfigMetadata('backgroundSource', false, 2 /* Body */, 4 /* Unsupported */),
2185
+ generateParamConfigMetadata('customConfig', false, 2 /* Body */, 4 /* Unsupported */),
2169
2186
  ];
2170
2187
  const createDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$X, createDashboard_ConfigPropertyMetadata);
2171
2188
  const createResourceParams$X = /*#__PURE__*/ createResourceParams$_(createDashboard_ConfigPropertyMetadata);
@@ -2226,6 +2243,21 @@ function typeCheckConfig$X(untrustedConfig) {
2226
2243
  config.backgroundSource = untrustedConfig_backgroundSource_object;
2227
2244
  }
2228
2245
  }
2246
+ const untrustedConfig_customConfig = untrustedConfig.customConfig;
2247
+ if (untrustedIsObject(untrustedConfig_customConfig)) {
2248
+ const untrustedConfig_customConfig_object = {};
2249
+ const untrustedConfig_customConfig_keys = Object.keys(untrustedConfig_customConfig);
2250
+ for (let i = 0, arrayLength = untrustedConfig_customConfig_keys.length; i < arrayLength; i++) {
2251
+ const key = untrustedConfig_customConfig_keys[i];
2252
+ const untrustedConfig_customConfig_prop = untrustedConfig_customConfig[key];
2253
+ if (untrustedConfig_customConfig_object !== undefined) {
2254
+ untrustedConfig_customConfig_object[key] = untrustedConfig_customConfig_prop;
2255
+ }
2256
+ }
2257
+ if (untrustedConfig_customConfig_object !== undefined && Object.keys(untrustedConfig_customConfig_object).length >= 0) {
2258
+ config.customConfig = untrustedConfig_customConfig_object;
2259
+ }
2260
+ }
2229
2261
  return config;
2230
2262
  }
2231
2263
  function validateAdapterConfig$X(untrustedConfig, configPropertyNames) {
@@ -14517,6 +14549,7 @@ const updateDashboard_ConfigPropertyMetadata = [
14517
14549
  generateParamConfigMetadata('widgets', true, 2 /* Body */, 4 /* Unsupported */),
14518
14550
  generateParamConfigMetadata('style', false, 2 /* Body */, 4 /* Unsupported */),
14519
14551
  generateParamConfigMetadata('backgroundSource', false, 2 /* Body */, 4 /* Unsupported */),
14552
+ generateParamConfigMetadata('customConfig', false, 2 /* Body */, 4 /* Unsupported */),
14520
14553
  ];
14521
14554
  const updateDashboard_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$7, updateDashboard_ConfigPropertyMetadata);
14522
14555
  const createResourceParams$7 = /*#__PURE__*/ createResourceParams$_(updateDashboard_ConfigPropertyMetadata);
@@ -14577,6 +14610,21 @@ function typeCheckConfig$7(untrustedConfig) {
14577
14610
  config.backgroundSource = untrustedConfig_backgroundSource_object;
14578
14611
  }
14579
14612
  }
14613
+ const untrustedConfig_customConfig = untrustedConfig.customConfig;
14614
+ if (untrustedIsObject(untrustedConfig_customConfig)) {
14615
+ const untrustedConfig_customConfig_object = {};
14616
+ const untrustedConfig_customConfig_keys = Object.keys(untrustedConfig_customConfig);
14617
+ for (let i = 0, arrayLength = untrustedConfig_customConfig_keys.length; i < arrayLength; i++) {
14618
+ const key = untrustedConfig_customConfig_keys[i];
14619
+ const untrustedConfig_customConfig_prop = untrustedConfig_customConfig[key];
14620
+ if (untrustedConfig_customConfig_object !== undefined) {
14621
+ untrustedConfig_customConfig_object[key] = untrustedConfig_customConfig_prop;
14622
+ }
14623
+ }
14624
+ if (untrustedConfig_customConfig_object !== undefined && Object.keys(untrustedConfig_customConfig_object).length >= 0) {
14625
+ config.customConfig = untrustedConfig_customConfig_object;
14626
+ }
14627
+ }
14580
14628
  return config;
14581
14629
  }
14582
14630
  function validateAdapterConfig$7(untrustedConfig, configPropertyNames) {
@@ -15909,4 +15957,4 @@ withDefaultLuvio((luvio) => {
15909
15957
  });
15910
15958
 
15911
15959
  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 };
15912
- // version: 1.427.0-d53a098e46
15960
+ // version: 1.428.0-dev1-52205c6c54
package/src/raml/api.raml CHANGED
@@ -956,6 +956,13 @@ types:
956
956
  properties:
957
957
  //:
958
958
  type: any
959
+ customConfig:
960
+ description: Dashboard level custom configuration
961
+ type: object
962
+ required: false
963
+ properties:
964
+ //:
965
+ type: any
959
966
  DashboardRepresentation:
960
967
  description: Unified analytics dashboard representation.
961
968
  discriminator: id
@@ -1020,6 +1027,13 @@ types:
1020
1027
  properties:
1021
1028
  //:
1022
1029
  type: any
1030
+ customConfig:
1031
+ description: Dashboard level custom configuration
1032
+ type: object
1033
+ required: false
1034
+ properties:
1035
+ //:
1036
+ type: any
1023
1037
  DataAssetDependentCollectionRepresentation:
1024
1038
  description: Represents a List of dependent assets for a given asset
1025
1039
  type: object