@salesforce/lds-adapters-analytics-unifiedanalytics 1.307.0 → 1.308.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.
@@ -4770,7 +4770,7 @@ const queryUsersAdapterFactory = (luvio) => {
4770
4770
  };
4771
4771
  };
4772
4772
 
4773
- const VERSION$9 = "50a6ca06910ae9b59fcac99883bb393f";
4773
+ const VERSION$9 = "1a13994f888cdbab1f3489b0a99c8449";
4774
4774
  function validate$c(obj, path = 'VisualizationRepresentation') {
4775
4775
  const v_error = (() => {
4776
4776
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -4834,16 +4834,14 @@ function validate$c(obj, path = 'VisualizationRepresentation') {
4834
4834
  if (obj.interactions !== undefined) {
4835
4835
  const obj_interactions = obj.interactions;
4836
4836
  const path_interactions = path + '.interactions';
4837
- if (typeof obj_interactions !== 'object' || ArrayIsArray(obj_interactions) || obj_interactions === null) {
4838
- return new TypeError('Expected "object" but received "' + typeof obj_interactions + '" (at "' + path_interactions + '")');
4839
- }
4840
- const obj_interactions_keys = ObjectKeys(obj_interactions);
4841
- for (let i = 0; i < obj_interactions_keys.length; i++) {
4842
- const key = obj_interactions_keys[i];
4843
- const obj_interactions_prop = obj_interactions[key];
4844
- const path_interactions_prop = path_interactions + '["' + key + '"]';
4845
- if (obj_interactions_prop === undefined) {
4846
- return new TypeError('Expected "defined" but received "' + typeof obj_interactions_prop + '" (at "' + path_interactions_prop + '")');
4837
+ if (!ArrayIsArray(obj_interactions)) {
4838
+ return new TypeError('Expected "array" but received "' + typeof obj_interactions + '" (at "' + path_interactions + '")');
4839
+ }
4840
+ for (let i = 0; i < obj_interactions.length; i++) {
4841
+ const obj_interactions_item = obj_interactions[i];
4842
+ const path_interactions_item = path_interactions + '[' + i + ']';
4843
+ if (obj_interactions_item === undefined) {
4844
+ return new TypeError('Expected "defined" but received "' + typeof obj_interactions_item + '" (at "' + path_interactions_item + '")');
4847
4845
  }
4848
4846
  }
4849
4847
  }
@@ -5246,7 +5244,7 @@ const createVisualization_ConfigPropertyMetadata = [
5246
5244
  generateParamConfigMetadata('visualSpecification', true, 2 /* Body */, 4 /* Unsupported */),
5247
5245
  generateParamConfigMetadata('fields', false, 2 /* Body */, 4 /* Unsupported */),
5248
5246
  generateParamConfigMetadata('view', false, 2 /* Body */, 4 /* Unsupported */),
5249
- generateParamConfigMetadata('interactions', false, 2 /* Body */, 4 /* Unsupported */),
5247
+ generateParamConfigMetadata('interactions', false, 2 /* Body */, 4 /* Unsupported */, true),
5250
5248
  ];
5251
5249
  const createVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$g, createVisualization_ConfigPropertyMetadata);
5252
5250
  const createResourceParams$g = /*#__PURE__*/ createResourceParams$y(createVisualization_ConfigPropertyMetadata);
@@ -5329,19 +5327,13 @@ function typeCheckConfig$g(untrustedConfig) {
5329
5327
  }
5330
5328
  }
5331
5329
  const untrustedConfig_interactions = untrustedConfig.interactions;
5332
- if (untrustedIsObject(untrustedConfig_interactions)) {
5333
- const untrustedConfig_interactions_object = {};
5334
- const untrustedConfig_interactions_keys = Object.keys(untrustedConfig_interactions);
5335
- for (let i = 0, arrayLength = untrustedConfig_interactions_keys.length; i < arrayLength; i++) {
5336
- const key = untrustedConfig_interactions_keys[i];
5337
- const untrustedConfig_interactions_prop = untrustedConfig_interactions[key];
5338
- if (untrustedConfig_interactions_object !== undefined) {
5339
- untrustedConfig_interactions_object[key] = untrustedConfig_interactions_prop;
5340
- }
5341
- }
5342
- if (untrustedConfig_interactions_object !== undefined && Object.keys(untrustedConfig_interactions_object).length >= 0) {
5343
- config.interactions = untrustedConfig_interactions_object;
5330
+ if (ArrayIsArray$1(untrustedConfig_interactions)) {
5331
+ const untrustedConfig_interactions_array = [];
5332
+ for (let i = 0, arrayLength = untrustedConfig_interactions.length; i < arrayLength; i++) {
5333
+ const untrustedConfig_interactions_item = untrustedConfig_interactions[i];
5334
+ untrustedConfig_interactions_array.push(untrustedConfig_interactions_item);
5344
5335
  }
5336
+ config.interactions = untrustedConfig_interactions_array;
5345
5337
  }
5346
5338
  return config;
5347
5339
  }
@@ -5654,7 +5646,7 @@ const updateVisualization_ConfigPropertyMetadata = [
5654
5646
  generateParamConfigMetadata('visualSpecification', true, 2 /* Body */, 4 /* Unsupported */),
5655
5647
  generateParamConfigMetadata('fields', false, 2 /* Body */, 4 /* Unsupported */),
5656
5648
  generateParamConfigMetadata('view', false, 2 /* Body */, 4 /* Unsupported */),
5657
- generateParamConfigMetadata('interactions', false, 2 /* Body */, 4 /* Unsupported */),
5649
+ generateParamConfigMetadata('interactions', false, 2 /* Body */, 4 /* Unsupported */, true),
5658
5650
  ];
5659
5651
  const updateVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, updateVisualization_ConfigPropertyMetadata);
5660
5652
  const createResourceParams$d = /*#__PURE__*/ createResourceParams$y(updateVisualization_ConfigPropertyMetadata);
@@ -5737,19 +5729,13 @@ function typeCheckConfig$d(untrustedConfig) {
5737
5729
  }
5738
5730
  }
5739
5731
  const untrustedConfig_interactions = untrustedConfig.interactions;
5740
- if (untrustedIsObject(untrustedConfig_interactions)) {
5741
- const untrustedConfig_interactions_object = {};
5742
- const untrustedConfig_interactions_keys = Object.keys(untrustedConfig_interactions);
5743
- for (let i = 0, arrayLength = untrustedConfig_interactions_keys.length; i < arrayLength; i++) {
5744
- const key = untrustedConfig_interactions_keys[i];
5745
- const untrustedConfig_interactions_prop = untrustedConfig_interactions[key];
5746
- if (untrustedConfig_interactions_object !== undefined) {
5747
- untrustedConfig_interactions_object[key] = untrustedConfig_interactions_prop;
5748
- }
5749
- }
5750
- if (untrustedConfig_interactions_object !== undefined && Object.keys(untrustedConfig_interactions_object).length >= 0) {
5751
- config.interactions = untrustedConfig_interactions_object;
5732
+ if (ArrayIsArray$1(untrustedConfig_interactions)) {
5733
+ const untrustedConfig_interactions_array = [];
5734
+ for (let i = 0, arrayLength = untrustedConfig_interactions.length; i < arrayLength; i++) {
5735
+ const untrustedConfig_interactions_item = untrustedConfig_interactions[i];
5736
+ untrustedConfig_interactions_array.push(untrustedConfig_interactions_item);
5752
5737
  }
5738
+ config.interactions = untrustedConfig_interactions_array;
5753
5739
  }
5754
5740
  return config;
5755
5741
  }
@@ -6011,7 +5997,7 @@ const getVisualizationBundleAdapterFactory = (luvio) => function UnifiedAnalytic
6011
5997
  buildCachedSnapshotCachePolicy$5, buildNetworkSnapshotCachePolicy$5);
6012
5998
  };
6013
5999
 
6014
- const VERSION$6 = "cd4ffaf2332ab8ec006033f2e4339ad7";
6000
+ const VERSION$6 = "d30aa567784494839ce9c37e69190918";
6015
6001
  function validate$9(obj, path = 'WorkspaceRepresentation') {
6016
6002
  const v_error = (() => {
6017
6003
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -6035,10 +6021,12 @@ function validate$9(obj, path = 'WorkspaceRepresentation') {
6035
6021
  if (typeof obj_createdDate !== 'string') {
6036
6022
  return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
6037
6023
  }
6038
- const obj_description = obj.description;
6039
- const path_description = path + '.description';
6040
- if (typeof obj_description !== 'string') {
6041
- return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
6024
+ if (obj.description !== undefined) {
6025
+ const obj_description = obj.description;
6026
+ const path_description = path + '.description';
6027
+ if (typeof obj_description !== 'string') {
6028
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
6029
+ }
6042
6030
  }
6043
6031
  const obj_id = obj.id;
6044
6032
  const path_id = path + '.id';
@@ -25,9 +25,7 @@ export interface CreateVisualizationConfig {
25
25
  view?: {
26
26
  [key: string]: unknown;
27
27
  };
28
- interactions?: {
29
- [key: string]: unknown;
30
- };
28
+ interactions?: Array<unknown>;
31
29
  }
32
30
  export declare const createResourceParams: (config: CreateVisualizationConfig) => resources_postUnifiedAnalyticsVisualizations_ResourceRequestConfig;
33
31
  export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<CreateVisualizationConfig>): adapter$45$utils_Untrusted<CreateVisualizationConfig>;
@@ -26,9 +26,7 @@ export interface UpdateVisualizationConfig {
26
26
  view?: {
27
27
  [key: string]: unknown;
28
28
  };
29
- interactions?: {
30
- [key: string]: unknown;
31
- };
29
+ interactions?: Array<unknown>;
32
30
  }
33
31
  export declare const createResourceParams: (config: UpdateVisualizationConfig) => resources_patchUnifiedAnalyticsVisualizationsByVisualizationIdOrApiName_ResourceRequestConfig;
34
32
  export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<UpdateVisualizationConfig>): adapter$45$utils_Untrusted<UpdateVisualizationConfig>;
@@ -24,9 +24,7 @@ export interface ResourceRequestConfig {
24
24
  view?: {
25
25
  [key: string]: unknown;
26
26
  };
27
- interactions?: {
28
- [key: string]: unknown;
29
- };
27
+ interactions?: Array<unknown>;
30
28
  };
31
29
  }
32
30
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
@@ -21,9 +21,7 @@ export interface ResourceRequestConfig {
21
21
  view?: {
22
22
  [key: string]: unknown;
23
23
  };
24
- interactions?: {
25
- [key: string]: unknown;
26
- };
24
+ interactions?: Array<unknown>;
27
25
  };
28
26
  }
29
27
  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 = "3bed7c60f3ce38281d84fe0ed9bf78cf";
2
+ export declare const VERSION = "1f5c68b9f89c1d165bd72e635a88573f";
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: VisualizationInputRepresentation, existing: VisualizationInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): VisualizationInputRepresentationNormalized;
@@ -27,9 +27,7 @@ export interface VisualizationInputRepresentationNormalized {
27
27
  /** Visualization id. */
28
28
  id?: string;
29
29
  /** Interactions representation */
30
- interactions?: {
31
- [key: string]: unknown;
32
- };
30
+ interactions?: Array<unknown>;
33
31
  /** Master label. */
34
32
  label: string;
35
33
  /** Unique developer name. */
@@ -62,9 +60,7 @@ export interface VisualizationInputRepresentation {
62
60
  [key: string]: unknown;
63
61
  };
64
62
  id?: string;
65
- interactions?: {
66
- [key: string]: unknown;
67
- };
63
+ interactions?: Array<unknown>;
68
64
  label: string;
69
65
  name?: string;
70
66
  view?: {
@@ -1,6 +1,6 @@
1
1
  import { AnalyticsUserRepresentation as AnalyticsUserRepresentation_AnalyticsUserRepresentation } from './AnalyticsUserRepresentation';
2
2
  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';
3
- export declare const VERSION = "50a6ca06910ae9b59fcac99883bb393f";
3
+ export declare const VERSION = "1a13994f888cdbab1f3489b0a99c8449";
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 {
@@ -41,9 +41,7 @@ export interface VisualizationRepresentationNormalized {
41
41
  /** Visualization id. */
42
42
  id: string;
43
43
  /** Interactions representation */
44
- interactions?: {
45
- [key: string]: unknown;
46
- };
44
+ interactions?: Array<unknown>;
47
45
  /** Label of the asset. */
48
46
  label: string;
49
47
  /** Last modified by of the asset. */
@@ -82,9 +80,7 @@ export interface VisualizationRepresentation {
82
80
  [key: string]: unknown;
83
81
  };
84
82
  id: string;
85
- interactions?: {
86
- [key: string]: unknown;
87
- };
83
+ interactions?: Array<unknown>;
88
84
  label: string;
89
85
  lastModifiedBy?: AnalyticsUserRepresentation_AnalyticsUserRepresentation;
90
86
  lastModifiedDate?: string;
@@ -1,6 +1,6 @@
1
1
  import { AnalyticsUserRepresentation as AnalyticsUserRepresentation_AnalyticsUserRepresentation } from './AnalyticsUserRepresentation';
2
2
  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';
3
- export declare const VERSION = "cd4ffaf2332ab8ec006033f2e4339ad7";
3
+ export declare const VERSION = "d30aa567784494839ce9c37e69190918";
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 {
@@ -31,7 +31,7 @@ export interface WorkspaceRepresentationNormalized {
31
31
  /** Created date of the asset */
32
32
  createdDate: string;
33
33
  /** Description of the asset. */
34
- description: string;
34
+ description?: string;
35
35
  /** Database record id of the asset. */
36
36
  id: string;
37
37
  /** Label of the asset. */
@@ -55,7 +55,7 @@ export interface WorkspaceRepresentation {
55
55
  cacheableKey: string;
56
56
  createdBy: AnalyticsUserRepresentation_AnalyticsUserRepresentation;
57
57
  createdDate: string;
58
- description: string;
58
+ description?: string;
59
59
  id: string;
60
60
  label: string;
61
61
  lastModifiedBy?: unknown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-analytics-unifiedanalytics",
3
- "version": "1.307.0",
3
+ "version": "1.308.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.307.0"
43
+ "@salesforce/lds-bindings": "^1.308.0-dev1"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.307.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.308.0-dev1"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -2234,7 +2234,7 @@ function validate$p(obj, path = 'AnalyticsUserRepresentation') {
2234
2234
  return v_error === undefined ? null : v_error;
2235
2235
  }
2236
2236
 
2237
- const VERSION$i = "50a6ca06910ae9b59fcac99883bb393f";
2237
+ const VERSION$i = "1a13994f888cdbab1f3489b0a99c8449";
2238
2238
  function validate$o(obj, path = 'VisualizationRepresentation') {
2239
2239
  const v_error = (() => {
2240
2240
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -2298,16 +2298,14 @@ function validate$o(obj, path = 'VisualizationRepresentation') {
2298
2298
  if (obj.interactions !== undefined) {
2299
2299
  const obj_interactions = obj.interactions;
2300
2300
  const path_interactions = path + '.interactions';
2301
- if (typeof obj_interactions !== 'object' || ArrayIsArray(obj_interactions) || obj_interactions === null) {
2302
- return new TypeError('Expected "object" but received "' + typeof obj_interactions + '" (at "' + path_interactions + '")');
2303
- }
2304
- const obj_interactions_keys = ObjectKeys(obj_interactions);
2305
- for (let i = 0; i < obj_interactions_keys.length; i++) {
2306
- const key = obj_interactions_keys[i];
2307
- const obj_interactions_prop = obj_interactions[key];
2308
- const path_interactions_prop = path_interactions + '["' + key + '"]';
2309
- if (obj_interactions_prop === undefined) {
2310
- return new TypeError('Expected "defined" but received "' + typeof obj_interactions_prop + '" (at "' + path_interactions_prop + '")');
2301
+ if (!ArrayIsArray(obj_interactions)) {
2302
+ return new TypeError('Expected "array" but received "' + typeof obj_interactions + '" (at "' + path_interactions + '")');
2303
+ }
2304
+ for (let i = 0; i < obj_interactions.length; i++) {
2305
+ const obj_interactions_item = obj_interactions[i];
2306
+ const path_interactions_item = path_interactions + '[' + i + ']';
2307
+ if (obj_interactions_item === undefined) {
2308
+ return new TypeError('Expected "defined" but received "' + typeof obj_interactions_item + '" (at "' + path_interactions_item + '")');
2311
2309
  }
2312
2310
  }
2313
2311
  }
@@ -2482,7 +2480,7 @@ const createVisualization_ConfigPropertyMetadata = [
2482
2480
  generateParamConfigMetadata('visualSpecification', true, 2 /* Body */, 4 /* Unsupported */),
2483
2481
  generateParamConfigMetadata('fields', false, 2 /* Body */, 4 /* Unsupported */),
2484
2482
  generateParamConfigMetadata('view', false, 2 /* Body */, 4 /* Unsupported */),
2485
- generateParamConfigMetadata('interactions', false, 2 /* Body */, 4 /* Unsupported */),
2483
+ generateParamConfigMetadata('interactions', false, 2 /* Body */, 4 /* Unsupported */, true),
2486
2484
  ];
2487
2485
  const createVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$u, createVisualization_ConfigPropertyMetadata);
2488
2486
  const createResourceParams$u = /*#__PURE__*/ createResourceParams$y(createVisualization_ConfigPropertyMetadata);
@@ -2565,19 +2563,13 @@ function typeCheckConfig$u(untrustedConfig) {
2565
2563
  }
2566
2564
  }
2567
2565
  const untrustedConfig_interactions = untrustedConfig.interactions;
2568
- if (untrustedIsObject(untrustedConfig_interactions)) {
2569
- const untrustedConfig_interactions_object = {};
2570
- const untrustedConfig_interactions_keys = Object.keys(untrustedConfig_interactions);
2571
- for (let i = 0, arrayLength = untrustedConfig_interactions_keys.length; i < arrayLength; i++) {
2572
- const key = untrustedConfig_interactions_keys[i];
2573
- const untrustedConfig_interactions_prop = untrustedConfig_interactions[key];
2574
- if (untrustedConfig_interactions_object !== undefined) {
2575
- untrustedConfig_interactions_object[key] = untrustedConfig_interactions_prop;
2576
- }
2577
- }
2578
- if (untrustedConfig_interactions_object !== undefined && Object.keys(untrustedConfig_interactions_object).length >= 0) {
2579
- config.interactions = untrustedConfig_interactions_object;
2566
+ if (ArrayIsArray$1(untrustedConfig_interactions)) {
2567
+ const untrustedConfig_interactions_array = [];
2568
+ for (let i = 0, arrayLength = untrustedConfig_interactions.length; i < arrayLength; i++) {
2569
+ const untrustedConfig_interactions_item = untrustedConfig_interactions[i];
2570
+ untrustedConfig_interactions_array.push(untrustedConfig_interactions_item);
2580
2571
  }
2572
+ config.interactions = untrustedConfig_interactions_array;
2581
2573
  }
2582
2574
  return config;
2583
2575
  }
@@ -2623,7 +2615,7 @@ const createVisualizationAdapterFactory = (luvio) => {
2623
2615
  };
2624
2616
  };
2625
2617
 
2626
- const VERSION$h = "cd4ffaf2332ab8ec006033f2e4339ad7";
2618
+ const VERSION$h = "d30aa567784494839ce9c37e69190918";
2627
2619
  function validate$n(obj, path = 'WorkspaceRepresentation') {
2628
2620
  const v_error = (() => {
2629
2621
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -2647,10 +2639,12 @@ function validate$n(obj, path = 'WorkspaceRepresentation') {
2647
2639
  if (typeof obj_createdDate !== 'string') {
2648
2640
  return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
2649
2641
  }
2650
- const obj_description = obj.description;
2651
- const path_description = path + '.description';
2652
- if (typeof obj_description !== 'string') {
2653
- return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
2642
+ if (obj.description !== undefined) {
2643
+ const obj_description = obj.description;
2644
+ const path_description = path + '.description';
2645
+ if (typeof obj_description !== 'string') {
2646
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
2647
+ }
2654
2648
  }
2655
2649
  const obj_id = obj.id;
2656
2650
  const path_id = path + '.id';
@@ -8140,7 +8134,7 @@ const updateVisualization_ConfigPropertyMetadata = [
8140
8134
  generateParamConfigMetadata('visualSpecification', true, 2 /* Body */, 4 /* Unsupported */),
8141
8135
  generateParamConfigMetadata('fields', false, 2 /* Body */, 4 /* Unsupported */),
8142
8136
  generateParamConfigMetadata('view', false, 2 /* Body */, 4 /* Unsupported */),
8143
- generateParamConfigMetadata('interactions', false, 2 /* Body */, 4 /* Unsupported */),
8137
+ generateParamConfigMetadata('interactions', false, 2 /* Body */, 4 /* Unsupported */, true),
8144
8138
  ];
8145
8139
  const updateVisualization_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, updateVisualization_ConfigPropertyMetadata);
8146
8140
  const createResourceParams$1 = /*#__PURE__*/ createResourceParams$y(updateVisualization_ConfigPropertyMetadata);
@@ -8223,19 +8217,13 @@ function typeCheckConfig$1(untrustedConfig) {
8223
8217
  }
8224
8218
  }
8225
8219
  const untrustedConfig_interactions = untrustedConfig.interactions;
8226
- if (untrustedIsObject(untrustedConfig_interactions)) {
8227
- const untrustedConfig_interactions_object = {};
8228
- const untrustedConfig_interactions_keys = Object.keys(untrustedConfig_interactions);
8229
- for (let i = 0, arrayLength = untrustedConfig_interactions_keys.length; i < arrayLength; i++) {
8230
- const key = untrustedConfig_interactions_keys[i];
8231
- const untrustedConfig_interactions_prop = untrustedConfig_interactions[key];
8232
- if (untrustedConfig_interactions_object !== undefined) {
8233
- untrustedConfig_interactions_object[key] = untrustedConfig_interactions_prop;
8234
- }
8235
- }
8236
- if (untrustedConfig_interactions_object !== undefined && Object.keys(untrustedConfig_interactions_object).length >= 0) {
8237
- config.interactions = untrustedConfig_interactions_object;
8220
+ if (ArrayIsArray$1(untrustedConfig_interactions)) {
8221
+ const untrustedConfig_interactions_array = [];
8222
+ for (let i = 0, arrayLength = untrustedConfig_interactions.length; i < arrayLength; i++) {
8223
+ const untrustedConfig_interactions_item = untrustedConfig_interactions[i];
8224
+ untrustedConfig_interactions_array.push(untrustedConfig_interactions_item);
8238
8225
  }
8226
+ config.interactions = untrustedConfig_interactions_array;
8239
8227
  }
8240
8228
  return config;
8241
8229
  }
@@ -8608,4 +8596,4 @@ withDefaultLuvio((luvio) => {
8608
8596
  });
8609
8597
 
8610
8598
  export { createAnnotation, createAssetSlackChannel, createDashboard, createVisualization, createWorkspace, createWorkspaceAsset, deleteDashboard, deleteVisualization, deleteWorkspace, deleteWorkspaceAsset, follow, getAnnotations, getAnnotations_imperative, getAssetSlackChannels, getAssetSlackChannels_imperative, getDashboardByName, getDashboardByNameNotifyChange, getDashboardByName_imperative, getDashboards, getDashboards_imperative, getFlowByName, getFlowByName_imperative, getFlows, getFlows_imperative, getFollowedAssets, getFollowedAssets_imperative, getFollowers, getFollowers_imperative, getSlackAppInfo, getSlackAppInfo_imperative, getSubscriptionDigestConfig, getSubscriptionDigestConfigNotifyChange, getSubscriptionDigestConfig_imperative, getUnifiedAnalyticsLibraryAssets, getVisualization, getVisualizationBundle, getVisualizationBundleNotifyChange, getVisualizationBundle_imperative, getVisualizationNotifyChange, getVisualization_imperative, getVisualizations, getVisualizations_imperative, getWorkspaceByIdOrName, getWorkspaceByIdOrNameNotifyChange, getWorkspaceByIdOrName_imperative, getWorkspaces, getWorkspaces_imperative, queryAssets, queryUsers, unfollow, updateDashboard, updateSubscriptionDigestConfig, updateVisualization, updateWorkspace };
8611
- // version: 1.307.0-1e4b921353
8599
+ // version: 1.308.0-dev1-36d38ba652
package/src/raml/api.raml CHANGED
@@ -514,11 +514,10 @@ types:
514
514
  type: any
515
515
  interactions:
516
516
  description: Interactions representation
517
- type: object
517
+ type: array
518
518
  required: false
519
- properties:
520
- //:
521
- type: any
519
+ items:
520
+ type: any
522
521
  VisualizationRepresentation:
523
522
  description: Unified analytics visualization representation.
524
523
  discriminator: name # TODO Hand-rolled W-15315791: invalid inheritance
@@ -585,11 +584,10 @@ types:
585
584
  type: any
586
585
  interactions:
587
586
  description: Interactions representation
588
- type: object
587
+ type: array
589
588
  required: false
590
- properties:
591
- //:
592
- type: any
589
+ items:
590
+ type: any
593
591
  VisualizationBundleRepresentation:
594
592
  description: Unified analytics visualization with additional information.
595
593
  type: object
@@ -1295,6 +1293,7 @@ types:
1295
1293
  description:
1296
1294
  description: Description of the asset.
1297
1295
  type: string
1296
+ required: false
1298
1297
  id:
1299
1298
  description: Database record id of the asset.
1300
1299
  type: string