@salesforce/lds-adapters-analytics-unifiedanalytics 1.332.0-dev12 → 1.332.0-dev13

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.
@@ -4991,10 +4991,64 @@ function validate$y(obj, path = 'DataAssetRepresentation') {
4991
4991
  if (typeof obj_assetType !== 'string') {
4992
4992
  return new TypeError('Expected "string" but received "' + typeof obj_assetType + '" (at "' + path_assetType + '")');
4993
4993
  }
4994
- const obj_workspaceId = obj.workspaceId;
4995
- const path_workspaceId = path + '.workspaceId';
4996
- if (typeof obj_workspaceId !== 'string') {
4997
- return new TypeError('Expected "string" but received "' + typeof obj_workspaceId + '" (at "' + path_workspaceId + '")');
4994
+ const obj_createdBy = obj.createdBy;
4995
+ const path_createdBy = path + '.createdBy';
4996
+ const referencepath_createdByValidationError = validate$C(obj_createdBy, path_createdBy);
4997
+ if (referencepath_createdByValidationError !== null) {
4998
+ let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
4999
+ message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
5000
+ return new TypeError(message);
5001
+ }
5002
+ if (obj.createdDate !== undefined) {
5003
+ const obj_createdDate = obj.createdDate;
5004
+ const path_createdDate = path + '.createdDate';
5005
+ if (typeof obj_createdDate !== 'string') {
5006
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
5007
+ }
5008
+ }
5009
+ if (obj.description !== undefined) {
5010
+ const obj_description = obj.description;
5011
+ const path_description = path + '.description';
5012
+ if (typeof obj_description !== 'string') {
5013
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
5014
+ }
5015
+ }
5016
+ if (obj.id !== undefined) {
5017
+ const obj_id = obj.id;
5018
+ const path_id = path + '.id';
5019
+ if (typeof obj_id !== 'string') {
5020
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
5021
+ }
5022
+ }
5023
+ const obj_label = obj.label;
5024
+ const path_label = path + '.label';
5025
+ if (typeof obj_label !== 'string') {
5026
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
5027
+ }
5028
+ const obj_lastModifiedBy = obj.lastModifiedBy;
5029
+ const path_lastModifiedBy = path + '.lastModifiedBy';
5030
+ const referencepath_lastModifiedByValidationError = validate$C(obj_lastModifiedBy, path_lastModifiedBy);
5031
+ if (referencepath_lastModifiedByValidationError !== null) {
5032
+ let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_lastModifiedBy + '")\n';
5033
+ message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
5034
+ return new TypeError(message);
5035
+ }
5036
+ const obj_lastModifiedDate = obj.lastModifiedDate;
5037
+ const path_lastModifiedDate = path + '.lastModifiedDate';
5038
+ if (typeof obj_lastModifiedDate !== 'string') {
5039
+ return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
5040
+ }
5041
+ const obj_name = obj.name;
5042
+ const path_name = path + '.name';
5043
+ if (typeof obj_name !== 'string') {
5044
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
5045
+ }
5046
+ if (obj.workspaceId !== undefined) {
5047
+ const obj_workspaceId = obj.workspaceId;
5048
+ const path_workspaceId = path + '.workspaceId';
5049
+ if (typeof obj_workspaceId !== 'string') {
5050
+ return new TypeError('Expected "string" but received "' + typeof obj_workspaceId + '" (at "' + path_workspaceId + '")');
5051
+ }
4998
5052
  }
4999
5053
  })();
5000
5054
  return v_error === undefined ? null : v_error;
@@ -1,6 +1,7 @@
1
+ import { AnalyticsUserRepresentation as AnalyticsUserRepresentation_AnalyticsUserRepresentation } from './AnalyticsUserRepresentation';
1
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';
2
3
  export declare const TTL = 500;
3
- export declare const VERSION = "e199a4324db4bb8fd022035821c522d7";
4
+ export declare const VERSION = "7ce15fca75fceda2fa8738e6d8aa258a";
4
5
  export declare function validate(obj: any, path?: string): TypeError | null;
5
6
  export declare const RepresentationType: string;
6
7
  export interface KeyParams extends $64$luvio_engine_KeyMetadata {
@@ -24,12 +25,28 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
24
25
  * assetId (string): assetId
25
26
  */
26
27
  export interface DataAssetRepresentationNormalized {
27
- /** Represents id of the Data asset */
28
+ /** Represents id of the DataAsset */
28
29
  assetId: string;
29
- /** Type of the Data asset */
30
+ /** Type of the DataAsset */
30
31
  assetType: string;
31
- /** Id of the workspace */
32
- workspaceId: string;
32
+ /** Created by of the DataAsset. */
33
+ createdBy: AnalyticsUserRepresentation_AnalyticsUserRepresentation;
34
+ /** Created date of the DataAsset */
35
+ createdDate?: string;
36
+ /** Description of the DataAsset. */
37
+ description?: string;
38
+ /** DataAsset id. */
39
+ id?: string;
40
+ /** Label of the DataAsset. */
41
+ label: string;
42
+ /** Last modified by of the DataAsset. */
43
+ lastModifiedBy: AnalyticsUserRepresentation_AnalyticsUserRepresentation;
44
+ /** Last modified date of the DataAsset. */
45
+ lastModifiedDate: string;
46
+ /** Name of the DataAsset. */
47
+ name: string;
48
+ /** Id of the workspace which the DataAsset is part of */
49
+ workspaceId?: string;
33
50
  }
34
51
  /**
35
52
  * Represents a Data asset
@@ -40,5 +57,13 @@ export interface DataAssetRepresentationNormalized {
40
57
  export interface DataAssetRepresentation {
41
58
  assetId: string;
42
59
  assetType: string;
43
- workspaceId: string;
60
+ createdBy: AnalyticsUserRepresentation_AnalyticsUserRepresentation;
61
+ createdDate?: string;
62
+ description?: string;
63
+ id?: string;
64
+ label: string;
65
+ lastModifiedBy: AnalyticsUserRepresentation_AnalyticsUserRepresentation;
66
+ lastModifiedDate: string;
67
+ name: string;
68
+ workspaceId?: string;
44
69
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-analytics-unifiedanalytics",
3
- "version": "1.332.0-dev12",
3
+ "version": "1.332.0-dev13",
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.332.0-dev12"
43
+ "@salesforce/lds-bindings": "^1.332.0-dev13"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.332.0-dev12"
46
+ "@salesforce/lds-compiler-plugins": "^1.332.0-dev13"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -6087,10 +6087,64 @@ function validate$s(obj, path = 'DataAssetRepresentation') {
6087
6087
  if (typeof obj_assetType !== 'string') {
6088
6088
  return new TypeError('Expected "string" but received "' + typeof obj_assetType + '" (at "' + path_assetType + '")');
6089
6089
  }
6090
- const obj_workspaceId = obj.workspaceId;
6091
- const path_workspaceId = path + '.workspaceId';
6092
- if (typeof obj_workspaceId !== 'string') {
6093
- return new TypeError('Expected "string" but received "' + typeof obj_workspaceId + '" (at "' + path_workspaceId + '")');
6090
+ const obj_createdBy = obj.createdBy;
6091
+ const path_createdBy = path + '.createdBy';
6092
+ const referencepath_createdByValidationError = validate$I(obj_createdBy, path_createdBy);
6093
+ if (referencepath_createdByValidationError !== null) {
6094
+ let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_createdBy + '")\n';
6095
+ message += referencepath_createdByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
6096
+ return new TypeError(message);
6097
+ }
6098
+ if (obj.createdDate !== undefined) {
6099
+ const obj_createdDate = obj.createdDate;
6100
+ const path_createdDate = path + '.createdDate';
6101
+ if (typeof obj_createdDate !== 'string') {
6102
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
6103
+ }
6104
+ }
6105
+ if (obj.description !== undefined) {
6106
+ const obj_description = obj.description;
6107
+ const path_description = path + '.description';
6108
+ if (typeof obj_description !== 'string') {
6109
+ return new TypeError('Expected "string" but received "' + typeof obj_description + '" (at "' + path_description + '")');
6110
+ }
6111
+ }
6112
+ if (obj.id !== undefined) {
6113
+ const obj_id = obj.id;
6114
+ const path_id = path + '.id';
6115
+ if (typeof obj_id !== 'string') {
6116
+ return new TypeError('Expected "string" but received "' + typeof obj_id + '" (at "' + path_id + '")');
6117
+ }
6118
+ }
6119
+ const obj_label = obj.label;
6120
+ const path_label = path + '.label';
6121
+ if (typeof obj_label !== 'string') {
6122
+ return new TypeError('Expected "string" but received "' + typeof obj_label + '" (at "' + path_label + '")');
6123
+ }
6124
+ const obj_lastModifiedBy = obj.lastModifiedBy;
6125
+ const path_lastModifiedBy = path + '.lastModifiedBy';
6126
+ const referencepath_lastModifiedByValidationError = validate$I(obj_lastModifiedBy, path_lastModifiedBy);
6127
+ if (referencepath_lastModifiedByValidationError !== null) {
6128
+ let message = 'Object doesn\'t match AnalyticsUserRepresentation (at "' + path_lastModifiedBy + '")\n';
6129
+ message += referencepath_lastModifiedByValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
6130
+ return new TypeError(message);
6131
+ }
6132
+ const obj_lastModifiedDate = obj.lastModifiedDate;
6133
+ const path_lastModifiedDate = path + '.lastModifiedDate';
6134
+ if (typeof obj_lastModifiedDate !== 'string') {
6135
+ return new TypeError('Expected "string" but received "' + typeof obj_lastModifiedDate + '" (at "' + path_lastModifiedDate + '")');
6136
+ }
6137
+ const obj_name = obj.name;
6138
+ const path_name = path + '.name';
6139
+ if (typeof obj_name !== 'string') {
6140
+ return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
6141
+ }
6142
+ if (obj.workspaceId !== undefined) {
6143
+ const obj_workspaceId = obj.workspaceId;
6144
+ const path_workspaceId = path + '.workspaceId';
6145
+ if (typeof obj_workspaceId !== 'string') {
6146
+ return new TypeError('Expected "string" but received "' + typeof obj_workspaceId + '" (at "' + path_workspaceId + '")');
6147
+ }
6094
6148
  }
6095
6149
  })();
6096
6150
  return v_error === undefined ? null : v_error;
@@ -12653,4 +12707,4 @@ withDefaultLuvio((luvio) => {
12653
12707
  });
12654
12708
 
12655
12709
  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 };
12656
- // version: 1.332.0-dev12-919b322e8a
12710
+ // version: 1.332.0-dev13-e67f738040
package/src/raml/api.raml CHANGED
@@ -901,13 +901,41 @@ types:
901
901
  type: DataAssetRepresentation
902
902
  DataAssetRepresentation:
903
903
  description: Represents a Data asset
904
+ discriminator: assetId # TODO Hand-rolled W-17712133: invalid inheritance
904
905
  type: object
905
906
  properties:
907
+ id:
908
+ description: DataAsset id.
909
+ type: string
910
+ required: false
911
+ description:
912
+ description: Description of the DataAsset.
913
+ type: string
914
+ required: false
915
+ label:
916
+ description: Label of the DataAsset.
917
+ type: string
918
+ name:
919
+ description: Name of the DataAsset.
920
+ type: string
921
+ createdBy:
922
+ description: Created by of the DataAsset.
923
+ type: AnalyticsUserRepresentation
924
+ createdDate:
925
+ description: Created date of the DataAsset
926
+ type: string
927
+ required: false
928
+ lastModifiedBy:
929
+ description: Last modified by of the DataAsset.
930
+ type: AnalyticsUserRepresentation
931
+ lastModifiedDate:
932
+ description: Last modified date of the DataAsset.
933
+ type: string
906
934
  assetId:
907
- description: Represents id of the Data asset
935
+ description: Represents id of the DataAsset
908
936
  type: string
909
937
  assetType:
910
- description: Type of the Data asset
938
+ description: Type of the DataAsset
911
939
  type: string
912
940
  enum:
913
941
  - AnalyticsDashboard
@@ -916,8 +944,9 @@ types:
916
944
  - MktDataModelObject
917
945
  - SemanticModel
918
946
  workspaceId:
919
- description: Id of the workspace
947
+ description: Id of the workspace which the DataAsset is part of
920
948
  type: string
949
+ required: false
921
950
  DataAssetRequestCollectionRepresentation:
922
951
  description: Collection of Data Asset Requests
923
952
  type: object