@salesforce/lds-adapters-analytics-unifiedanalytics 1.346.0 → 1.347.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.
@@ -3642,7 +3642,7 @@ function validate$D(obj, path = 'AnalyticsUserRepresentation') {
3642
3642
  }
3643
3643
 
3644
3644
  const TTL$h = 500;
3645
- const VERSION$r = "ada5b73b64faa32b0113876061677c0a";
3645
+ const VERSION$r = "6e1c96752ff32573835ff880edbeaac0";
3646
3646
  function validate$C(obj, path = 'DataAssetRequestRepresentation') {
3647
3647
  const v_error = (() => {
3648
3648
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -4183,8 +4183,29 @@ function validate$C(obj, path = 'DataAssetRequestRepresentation') {
4183
4183
  }
4184
4184
  const obj_workspaceAssetId = obj.workspaceAssetId;
4185
4185
  const path_workspaceAssetId = path + '.workspaceAssetId';
4186
- if (typeof obj_workspaceAssetId !== 'string') {
4187
- return new TypeError('Expected "string" but received "' + typeof obj_workspaceAssetId + '" (at "' + path_workspaceAssetId + '")');
4186
+ let obj_workspaceAssetId_union0 = null;
4187
+ const obj_workspaceAssetId_union0_error = (() => {
4188
+ if (typeof obj_workspaceAssetId !== 'string') {
4189
+ return new TypeError('Expected "string" but received "' + typeof obj_workspaceAssetId + '" (at "' + path_workspaceAssetId + '")');
4190
+ }
4191
+ })();
4192
+ if (obj_workspaceAssetId_union0_error != null) {
4193
+ obj_workspaceAssetId_union0 = obj_workspaceAssetId_union0_error.message;
4194
+ }
4195
+ let obj_workspaceAssetId_union1 = null;
4196
+ const obj_workspaceAssetId_union1_error = (() => {
4197
+ if (obj_workspaceAssetId !== null) {
4198
+ return new TypeError('Expected "null" but received "' + typeof obj_workspaceAssetId + '" (at "' + path_workspaceAssetId + '")');
4199
+ }
4200
+ })();
4201
+ if (obj_workspaceAssetId_union1_error != null) {
4202
+ obj_workspaceAssetId_union1 = obj_workspaceAssetId_union1_error.message;
4203
+ }
4204
+ if (obj_workspaceAssetId_union0 && obj_workspaceAssetId_union1) {
4205
+ let message = 'Object doesn\'t match union (at "' + path_workspaceAssetId + '")';
4206
+ message += '\n' + obj_workspaceAssetId_union0.split('\n').map((line) => '\t' + line).join('\n');
4207
+ message += '\n' + obj_workspaceAssetId_union1.split('\n').map((line) => '\t' + line).join('\n');
4208
+ return new TypeError(message);
4188
4209
  }
4189
4210
  })();
4190
4211
  return v_error === undefined ? null : v_error;
@@ -1,7 +1,7 @@
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
3
  export declare const TTL = 500;
4
- export declare const VERSION = "ada5b73b64faa32b0113876061677c0a";
4
+ export declare const VERSION = "6e1c96752ff32573835ff880edbeaac0";
5
5
  export declare function validate(obj: any, path?: string): TypeError | null;
6
6
  export declare const RepresentationType: string;
7
7
  export interface KeyParams extends $64$luvio_engine_KeyMetadata {
@@ -82,7 +82,7 @@ export interface DataAssetRequestRepresentationNormalized {
82
82
  /** Data Asset Request Target Id */
83
83
  targetRequestId: string | null;
84
84
  /** workspaceAssetId in the workspace */
85
- workspaceAssetId: string;
85
+ workspaceAssetId: string | null;
86
86
  }
87
87
  /**
88
88
  * Represents a data asset request
@@ -119,5 +119,5 @@ export interface DataAssetRequestRepresentation {
119
119
  sourceRequestId: string | null;
120
120
  status: string;
121
121
  targetRequestId: string | null;
122
- workspaceAssetId: string;
122
+ workspaceAssetId: string | null;
123
123
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-analytics-unifiedanalytics",
3
- "version": "1.346.0",
3
+ "version": "1.347.0",
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.346.0"
43
+ "@salesforce/lds-bindings": "^1.347.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.346.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.347.0"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -2314,7 +2314,7 @@ function validate$J(obj, path = 'AnalyticsUserRepresentation') {
2314
2314
  }
2315
2315
 
2316
2316
  const TTL$k = 500;
2317
- const VERSION$v = "ada5b73b64faa32b0113876061677c0a";
2317
+ const VERSION$v = "6e1c96752ff32573835ff880edbeaac0";
2318
2318
  function validate$I(obj, path = 'DataAssetRequestRepresentation') {
2319
2319
  const v_error = (() => {
2320
2320
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -2855,8 +2855,29 @@ function validate$I(obj, path = 'DataAssetRequestRepresentation') {
2855
2855
  }
2856
2856
  const obj_workspaceAssetId = obj.workspaceAssetId;
2857
2857
  const path_workspaceAssetId = path + '.workspaceAssetId';
2858
- if (typeof obj_workspaceAssetId !== 'string') {
2859
- return new TypeError('Expected "string" but received "' + typeof obj_workspaceAssetId + '" (at "' + path_workspaceAssetId + '")');
2858
+ let obj_workspaceAssetId_union0 = null;
2859
+ const obj_workspaceAssetId_union0_error = (() => {
2860
+ if (typeof obj_workspaceAssetId !== 'string') {
2861
+ return new TypeError('Expected "string" but received "' + typeof obj_workspaceAssetId + '" (at "' + path_workspaceAssetId + '")');
2862
+ }
2863
+ })();
2864
+ if (obj_workspaceAssetId_union0_error != null) {
2865
+ obj_workspaceAssetId_union0 = obj_workspaceAssetId_union0_error.message;
2866
+ }
2867
+ let obj_workspaceAssetId_union1 = null;
2868
+ const obj_workspaceAssetId_union1_error = (() => {
2869
+ if (obj_workspaceAssetId !== null) {
2870
+ return new TypeError('Expected "null" but received "' + typeof obj_workspaceAssetId + '" (at "' + path_workspaceAssetId + '")');
2871
+ }
2872
+ })();
2873
+ if (obj_workspaceAssetId_union1_error != null) {
2874
+ obj_workspaceAssetId_union1 = obj_workspaceAssetId_union1_error.message;
2875
+ }
2876
+ if (obj_workspaceAssetId_union0 && obj_workspaceAssetId_union1) {
2877
+ let message = 'Object doesn\'t match union (at "' + path_workspaceAssetId + '")';
2878
+ message += '\n' + obj_workspaceAssetId_union0.split('\n').map((line) => '\t' + line).join('\n');
2879
+ message += '\n' + obj_workspaceAssetId_union1.split('\n').map((line) => '\t' + line).join('\n');
2880
+ return new TypeError(message);
2860
2881
  }
2861
2882
  })();
2862
2883
  return v_error === undefined ? null : v_error;
@@ -12843,4 +12864,4 @@ withDefaultLuvio((luvio) => {
12843
12864
  });
12844
12865
 
12845
12866
  export { createAnnotation, createAssetSlackChannel, createDashboard, createDataAssetRequest, createLoglines, createRecordShares, createVisualization, createWorkspace, createWorkspaceAsset, deleteAllShares, deleteDashboard, deleteRecordShare, deleteVisualization, deleteWorkspace, deleteWorkspaceAsset, follow, generateSFDriveCredentials, getAnnotations, getAnnotations_imperative, getAssetSlackChannels, getAssetSlackChannels_imperative, getDashboardByName, getDashboardByNameNotifyChange, getDashboardByName_imperative, getDashboards, getDashboards_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, getSharesNotifyChange, 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, publish, queryAssets, queryUsers, unfollow, updateDashboard, updateDataAssetRequest, updateRecordShares, updateSubscriptionDigestConfig, updateVisualization, updateWorkspace };
12846
- // version: 1.346.0-1b813009ec
12867
+ // version: 1.347.0-31679f40fc
package/src/raml/api.raml CHANGED
@@ -1169,7 +1169,7 @@ types:
1169
1169
  type: string | nil
1170
1170
  workspaceAssetId:
1171
1171
  description: workspaceAssetId in the workspace
1172
- type: string
1172
+ type: string | nil
1173
1173
  TableauMarketplaceListingInstallationProgressResponse:
1174
1174
  description: Representation of tableau marketplace's listing installation progress
1175
1175
  type: object