@salesforce/lds-adapters-analytics-unifiedanalytics 1.436.0 → 1.437.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.
@@ -5716,15 +5716,61 @@ function validate$M(obj, path = 'PromotionContentAssetRepresentation') {
5716
5716
  if (typeof obj_sourceId !== 'string') {
5717
5717
  return new TypeError('Expected "string" but received "' + typeof obj_sourceId + '" (at "' + path_sourceId + '")');
5718
5718
  }
5719
- const obj_targetDevName = obj.targetDevName;
5720
- const path_targetDevName = path + '.targetDevName';
5721
- if (typeof obj_targetDevName !== 'string') {
5722
- return new TypeError('Expected "string" but received "' + typeof obj_targetDevName + '" (at "' + path_targetDevName + '")');
5723
- }
5724
- const obj_targetId = obj.targetId;
5725
- const path_targetId = path + '.targetId';
5726
- if (typeof obj_targetId !== 'string') {
5727
- return new TypeError('Expected "string" but received "' + typeof obj_targetId + '" (at "' + path_targetId + '")');
5719
+ if (obj.targetDevName !== undefined) {
5720
+ const obj_targetDevName = obj.targetDevName;
5721
+ const path_targetDevName = path + '.targetDevName';
5722
+ let obj_targetDevName_union0 = null;
5723
+ const obj_targetDevName_union0_error = (() => {
5724
+ if (typeof obj_targetDevName !== 'string') {
5725
+ return new TypeError('Expected "string" but received "' + typeof obj_targetDevName + '" (at "' + path_targetDevName + '")');
5726
+ }
5727
+ })();
5728
+ if (obj_targetDevName_union0_error != null) {
5729
+ obj_targetDevName_union0 = obj_targetDevName_union0_error.message;
5730
+ }
5731
+ let obj_targetDevName_union1 = null;
5732
+ const obj_targetDevName_union1_error = (() => {
5733
+ if (obj_targetDevName !== null) {
5734
+ return new TypeError('Expected "null" but received "' + typeof obj_targetDevName + '" (at "' + path_targetDevName + '")');
5735
+ }
5736
+ })();
5737
+ if (obj_targetDevName_union1_error != null) {
5738
+ obj_targetDevName_union1 = obj_targetDevName_union1_error.message;
5739
+ }
5740
+ if (obj_targetDevName_union0 && obj_targetDevName_union1) {
5741
+ let message = 'Object doesn\'t match union (at "' + path_targetDevName + '")';
5742
+ message += '\n' + obj_targetDevName_union0.split('\n').map((line) => '\t' + line).join('\n');
5743
+ message += '\n' + obj_targetDevName_union1.split('\n').map((line) => '\t' + line).join('\n');
5744
+ return new TypeError(message);
5745
+ }
5746
+ }
5747
+ if (obj.targetId !== undefined) {
5748
+ const obj_targetId = obj.targetId;
5749
+ const path_targetId = path + '.targetId';
5750
+ let obj_targetId_union0 = null;
5751
+ const obj_targetId_union0_error = (() => {
5752
+ if (typeof obj_targetId !== 'string') {
5753
+ return new TypeError('Expected "string" but received "' + typeof obj_targetId + '" (at "' + path_targetId + '")');
5754
+ }
5755
+ })();
5756
+ if (obj_targetId_union0_error != null) {
5757
+ obj_targetId_union0 = obj_targetId_union0_error.message;
5758
+ }
5759
+ let obj_targetId_union1 = null;
5760
+ const obj_targetId_union1_error = (() => {
5761
+ if (obj_targetId !== null) {
5762
+ return new TypeError('Expected "null" but received "' + typeof obj_targetId + '" (at "' + path_targetId + '")');
5763
+ }
5764
+ })();
5765
+ if (obj_targetId_union1_error != null) {
5766
+ obj_targetId_union1 = obj_targetId_union1_error.message;
5767
+ }
5768
+ if (obj_targetId_union0 && obj_targetId_union1) {
5769
+ let message = 'Object doesn\'t match union (at "' + path_targetId + '")';
5770
+ message += '\n' + obj_targetId_union0.split('\n').map((line) => '\t' + line).join('\n');
5771
+ message += '\n' + obj_targetId_union1.split('\n').map((line) => '\t' + line).join('\n');
5772
+ return new TypeError(message);
5773
+ }
5728
5774
  }
5729
5775
  })();
5730
5776
  return v_error === undefined ? null : v_error;
@@ -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 = "a40334f8fc33a083731ace3bba75e04c";
2
+ export declare const VERSION = "f94bc511578c19437ffa5d1f0e042360";
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: PromotionContentAssetRepresentation, existing: PromotionContentAssetRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): PromotionContentAssetRepresentationNormalized;
@@ -25,9 +25,9 @@ export interface PromotionContentAssetRepresentationNormalized {
25
25
  /** The source ID of the asset */
26
26
  sourceId: string;
27
27
  /** The target developer name of the asset */
28
- targetDevName: string;
28
+ targetDevName?: string | null;
29
29
  /** The target ID of the asset */
30
- targetId: string;
30
+ targetId?: string | null;
31
31
  }
32
32
  /**
33
33
  * Represents a content asset in a promotion request
@@ -41,6 +41,6 @@ export interface PromotionContentAssetRepresentation {
41
41
  isReused: boolean;
42
42
  sourceDevName: string;
43
43
  sourceId: string;
44
- targetDevName: string;
45
- targetId: string;
44
+ targetDevName?: string | null;
45
+ targetId?: string | null;
46
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-analytics-unifiedanalytics",
3
- "version": "1.436.0",
3
+ "version": "1.437.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.436.0"
43
+ "@salesforce/lds-bindings": "^1.437.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.436.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.437.0"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -3296,15 +3296,61 @@ function validate$W(obj, path = 'PromotionContentAssetRepresentation') {
3296
3296
  if (typeof obj_sourceId !== 'string') {
3297
3297
  return new TypeError('Expected "string" but received "' + typeof obj_sourceId + '" (at "' + path_sourceId + '")');
3298
3298
  }
3299
- const obj_targetDevName = obj.targetDevName;
3300
- const path_targetDevName = path + '.targetDevName';
3301
- if (typeof obj_targetDevName !== 'string') {
3302
- return new TypeError('Expected "string" but received "' + typeof obj_targetDevName + '" (at "' + path_targetDevName + '")');
3299
+ if (obj.targetDevName !== undefined) {
3300
+ const obj_targetDevName = obj.targetDevName;
3301
+ const path_targetDevName = path + '.targetDevName';
3302
+ let obj_targetDevName_union0 = null;
3303
+ const obj_targetDevName_union0_error = (() => {
3304
+ if (typeof obj_targetDevName !== 'string') {
3305
+ return new TypeError('Expected "string" but received "' + typeof obj_targetDevName + '" (at "' + path_targetDevName + '")');
3306
+ }
3307
+ })();
3308
+ if (obj_targetDevName_union0_error != null) {
3309
+ obj_targetDevName_union0 = obj_targetDevName_union0_error.message;
3310
+ }
3311
+ let obj_targetDevName_union1 = null;
3312
+ const obj_targetDevName_union1_error = (() => {
3313
+ if (obj_targetDevName !== null) {
3314
+ return new TypeError('Expected "null" but received "' + typeof obj_targetDevName + '" (at "' + path_targetDevName + '")');
3315
+ }
3316
+ })();
3317
+ if (obj_targetDevName_union1_error != null) {
3318
+ obj_targetDevName_union1 = obj_targetDevName_union1_error.message;
3319
+ }
3320
+ if (obj_targetDevName_union0 && obj_targetDevName_union1) {
3321
+ let message = 'Object doesn\'t match union (at "' + path_targetDevName + '")';
3322
+ message += '\n' + obj_targetDevName_union0.split('\n').map((line) => '\t' + line).join('\n');
3323
+ message += '\n' + obj_targetDevName_union1.split('\n').map((line) => '\t' + line).join('\n');
3324
+ return new TypeError(message);
3325
+ }
3303
3326
  }
3304
- const obj_targetId = obj.targetId;
3305
- const path_targetId = path + '.targetId';
3306
- if (typeof obj_targetId !== 'string') {
3307
- return new TypeError('Expected "string" but received "' + typeof obj_targetId + '" (at "' + path_targetId + '")');
3327
+ if (obj.targetId !== undefined) {
3328
+ const obj_targetId = obj.targetId;
3329
+ const path_targetId = path + '.targetId';
3330
+ let obj_targetId_union0 = null;
3331
+ const obj_targetId_union0_error = (() => {
3332
+ if (typeof obj_targetId !== 'string') {
3333
+ return new TypeError('Expected "string" but received "' + typeof obj_targetId + '" (at "' + path_targetId + '")');
3334
+ }
3335
+ })();
3336
+ if (obj_targetId_union0_error != null) {
3337
+ obj_targetId_union0 = obj_targetId_union0_error.message;
3338
+ }
3339
+ let obj_targetId_union1 = null;
3340
+ const obj_targetId_union1_error = (() => {
3341
+ if (obj_targetId !== null) {
3342
+ return new TypeError('Expected "null" but received "' + typeof obj_targetId + '" (at "' + path_targetId + '")');
3343
+ }
3344
+ })();
3345
+ if (obj_targetId_union1_error != null) {
3346
+ obj_targetId_union1 = obj_targetId_union1_error.message;
3347
+ }
3348
+ if (obj_targetId_union0 && obj_targetId_union1) {
3349
+ let message = 'Object doesn\'t match union (at "' + path_targetId + '")';
3350
+ message += '\n' + obj_targetId_union0.split('\n').map((line) => '\t' + line).join('\n');
3351
+ message += '\n' + obj_targetId_union1.split('\n').map((line) => '\t' + line).join('\n');
3352
+ return new TypeError(message);
3353
+ }
3308
3354
  }
3309
3355
  })();
3310
3356
  return v_error === undefined ? null : v_error;
@@ -16595,4 +16641,4 @@ withDefaultLuvio((luvio) => {
16595
16641
  });
16596
16642
 
16597
16643
  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, getDataAssetLineageByIdOrApiName, getDataAssetLineageByIdOrApiName_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, postDataAlertQuery, postDataAlertQuery_imperative, postDataAlertRun, publish, publishToMarketplace, queryAssets, queryUsers, unfollow, updateDashboard, updateDataAlert, updateDataAssetRequest, updateFollowedAsset, updateRecordShares, updateSubscriptionDigestConfig, updateVisualization, updateWorkspace };
16598
- // version: 1.436.0-7cd4295391
16644
+ // version: 1.437.0-f680421dc4
package/src/raml/api.raml CHANGED
@@ -2197,10 +2197,12 @@ types:
2197
2197
  type: string
2198
2198
  targetDevName:
2199
2199
  description: The target developer name of the asset
2200
- type: string
2200
+ type: string | nil
2201
+ required: false
2201
2202
  targetId:
2202
2203
  description: The target ID of the asset
2203
- type: string
2204
+ type: string | nil
2205
+ required: false
2204
2206
  TableauMarketplaceListingInstallationProgressResponse:
2205
2207
  description: Representation of tableau marketplace's listing installation progress
2206
2208
  type: object