@salesforce/lds-adapters-analytics-unifiedanalytics 1.423.0 → 1.424.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.
@@ -3834,12 +3834,40 @@ function validate$$(obj, path = 'DataAlertThresholdsRepresentation') {
3834
3834
  }
3835
3835
 
3836
3836
  const TTL$o = 500;
3837
- const VERSION$z = "04f6ab40ada1d70c527b0dd9ba6e7415";
3837
+ const VERSION$z = "cc2fad25cb7d5a43adddf76b7e121810";
3838
3838
  function validate$_(obj, path = 'DataAlertRepresentation') {
3839
3839
  const v_error = (() => {
3840
3840
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
3841
3841
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
3842
3842
  }
3843
+ if (obj.agent !== undefined) {
3844
+ const obj_agent = obj.agent;
3845
+ const path_agent = path + '.agent';
3846
+ let obj_agent_union0 = null;
3847
+ const obj_agent_union0_error = (() => {
3848
+ if (typeof obj_agent !== 'string') {
3849
+ return new TypeError('Expected "string" but received "' + typeof obj_agent + '" (at "' + path_agent + '")');
3850
+ }
3851
+ })();
3852
+ if (obj_agent_union0_error != null) {
3853
+ obj_agent_union0 = obj_agent_union0_error.message;
3854
+ }
3855
+ let obj_agent_union1 = null;
3856
+ const obj_agent_union1_error = (() => {
3857
+ if (obj_agent !== null) {
3858
+ return new TypeError('Expected "null" but received "' + typeof obj_agent + '" (at "' + path_agent + '")');
3859
+ }
3860
+ })();
3861
+ if (obj_agent_union1_error != null) {
3862
+ obj_agent_union1 = obj_agent_union1_error.message;
3863
+ }
3864
+ if (obj_agent_union0 && obj_agent_union1) {
3865
+ let message = 'Object doesn\'t match union (at "' + path_agent + '")';
3866
+ message += '\n' + obj_agent_union0.split('\n').map((line) => '\t' + line).join('\n');
3867
+ message += '\n' + obj_agent_union1.split('\n').map((line) => '\t' + line).join('\n');
3868
+ return new TypeError(message);
3869
+ }
3870
+ }
3843
3871
  const obj_alertName = obj.alertName;
3844
3872
  const path_alertName = path + '.alertName';
3845
3873
  if (typeof obj_alertName !== 'string') {
@@ -4417,6 +4445,7 @@ const createDataAlert_ConfigPropertyMetadata = [
4417
4445
  generateParamConfigMetadata('schedule', true, 2 /* Body */, 4 /* Unsupported */),
4418
4446
  generateParamConfigMetadata('thresholds', true, 2 /* Body */, 4 /* Unsupported */),
4419
4447
  generateParamConfigMetadata('utterance', true, 2 /* Body */, 0 /* String */),
4448
+ generateParamConfigMetadata('agent', false, 2 /* Body */, 4 /* Unsupported */),
4420
4449
  ];
4421
4450
  const createDataAlert_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$O, createDataAlert_ConfigPropertyMetadata);
4422
4451
  const createResourceParams$O = /*#__PURE__*/ createResourceParams$_(createDataAlert_ConfigPropertyMetadata);
@@ -4443,6 +4472,13 @@ function typeCheckConfig$O(untrustedConfig) {
4443
4472
  if (referenceDataAlertThresholdsInputRepresentationValidationError === null) {
4444
4473
  config.thresholds = untrustedConfig_thresholds;
4445
4474
  }
4475
+ const untrustedConfig_agent = untrustedConfig.agent;
4476
+ if (typeof untrustedConfig_agent === 'string') {
4477
+ config.agent = untrustedConfig_agent;
4478
+ }
4479
+ if (untrustedConfig_agent === null) {
4480
+ config.agent = untrustedConfig_agent;
4481
+ }
4446
4482
  return config;
4447
4483
  }
4448
4484
  function validateAdapterConfig$O(untrustedConfig, configPropertyNames) {
@@ -4758,6 +4794,7 @@ const updateDataAlert_ConfigPropertyMetadata = [
4758
4794
  generateParamConfigMetadata('schedule', true, 2 /* Body */, 4 /* Unsupported */),
4759
4795
  generateParamConfigMetadata('thresholds', true, 2 /* Body */, 4 /* Unsupported */),
4760
4796
  generateParamConfigMetadata('utterance', true, 2 /* Body */, 0 /* String */),
4797
+ generateParamConfigMetadata('agent', false, 2 /* Body */, 4 /* Unsupported */),
4761
4798
  ];
4762
4799
  const updateDataAlert_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$L, updateDataAlert_ConfigPropertyMetadata);
4763
4800
  const createResourceParams$L = /*#__PURE__*/ createResourceParams$_(updateDataAlert_ConfigPropertyMetadata);
@@ -4784,6 +4821,13 @@ function typeCheckConfig$L(untrustedConfig) {
4784
4821
  if (referenceDataAlertThresholdsInputRepresentationValidationError === null) {
4785
4822
  config.thresholds = untrustedConfig_thresholds;
4786
4823
  }
4824
+ const untrustedConfig_agent = untrustedConfig.agent;
4825
+ if (typeof untrustedConfig_agent === 'string') {
4826
+ config.agent = untrustedConfig_agent;
4827
+ }
4828
+ if (untrustedConfig_agent === null) {
4829
+ config.agent = untrustedConfig_agent;
4830
+ }
4787
4831
  return config;
4788
4832
  }
4789
4833
  function validateAdapterConfig$L(untrustedConfig, configPropertyNames) {
@@ -19,6 +19,7 @@ export interface CreateDataAlertConfig {
19
19
  schedule: types_DataAlertDailyScheduleInputRepresentation_DataAlertDailyScheduleInputRepresentation | types_DataAlertWeeklyScheduleInputRepresentation_DataAlertWeeklyScheduleInputRepresentation | types_DataAlertEveryNMinutesScheduleInputRepresentation_DataAlertEveryNMinutesScheduleInputRepresentation;
20
20
  thresholds: types_DataAlertThresholdsInputRepresentation_DataAlertThresholdsInputRepresentation;
21
21
  utterance: string;
22
+ agent?: string | null;
22
23
  }
23
24
  export declare const createResourceParams: (config: CreateDataAlertConfig) => resources_postTableauDataAlerts_ResourceRequestConfig;
24
25
  export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<CreateDataAlertConfig>): adapter$45$utils_Untrusted<CreateDataAlertConfig>;
@@ -20,6 +20,7 @@ export interface UpdateDataAlertConfig {
20
20
  schedule: types_DataAlertDailyScheduleInputRepresentation_DataAlertDailyScheduleInputRepresentation | types_DataAlertWeeklyScheduleInputRepresentation_DataAlertWeeklyScheduleInputRepresentation | types_DataAlertEveryNMinutesScheduleInputRepresentation_DataAlertEveryNMinutesScheduleInputRepresentation;
21
21
  thresholds: types_DataAlertThresholdsInputRepresentation_DataAlertThresholdsInputRepresentation;
22
22
  utterance: string;
23
+ agent?: string | null;
23
24
  }
24
25
  export declare const createResourceParams: (config: UpdateDataAlertConfig) => resources_putTableauDataAlertsByDataAlertId_ResourceRequestConfig;
25
26
  export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<UpdateDataAlertConfig>): adapter$45$utils_Untrusted<UpdateDataAlertConfig>;
@@ -17,6 +17,7 @@ export interface ResourceRequestConfig {
17
17
  schedule: types_DataAlertDailyScheduleInputRepresentation_DataAlertDailyScheduleInputRepresentation | types_DataAlertWeeklyScheduleInputRepresentation_DataAlertWeeklyScheduleInputRepresentation | types_DataAlertEveryNMinutesScheduleInputRepresentation_DataAlertEveryNMinutesScheduleInputRepresentation;
18
18
  thresholds: types_DataAlertThresholdsInputRepresentation_DataAlertThresholdsInputRepresentation;
19
19
  utterance: string;
20
+ agent?: string | null;
20
21
  };
21
22
  }
22
23
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
@@ -20,6 +20,7 @@ export interface ResourceRequestConfig {
20
20
  schedule: types_DataAlertDailyScheduleInputRepresentation_DataAlertDailyScheduleInputRepresentation | types_DataAlertWeeklyScheduleInputRepresentation_DataAlertWeeklyScheduleInputRepresentation | types_DataAlertEveryNMinutesScheduleInputRepresentation_DataAlertEveryNMinutesScheduleInputRepresentation;
21
21
  thresholds: types_DataAlertThresholdsInputRepresentation_DataAlertThresholdsInputRepresentation;
22
22
  utterance: string;
23
+ agent?: string | null;
23
24
  };
24
25
  }
25
26
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
@@ -7,7 +7,7 @@ import { DataAlertMetricContentInputRepresentation as DataAlertMetricContentInpu
7
7
  import { DataAlertDailyScheduleInputRepresentation as DataAlertDailyScheduleInputRepresentation_DataAlertDailyScheduleInputRepresentation } from './DataAlertDailyScheduleInputRepresentation';
8
8
  import { DataAlertWeeklyScheduleInputRepresentation as DataAlertWeeklyScheduleInputRepresentation_DataAlertWeeklyScheduleInputRepresentation } from './DataAlertWeeklyScheduleInputRepresentation';
9
9
  import { DataAlertEveryNMinutesScheduleInputRepresentation as DataAlertEveryNMinutesScheduleInputRepresentation_DataAlertEveryNMinutesScheduleInputRepresentation } from './DataAlertEveryNMinutesScheduleInputRepresentation';
10
- export declare const VERSION = "afe2ab03fbe9b609eb4584a6e4dd3839";
10
+ export declare const VERSION = "5bbf01be227a6e0c9aa6f938027ceab1";
11
11
  export declare function validate(obj: any, path?: string): TypeError | null;
12
12
  export declare const RepresentationType: string;
13
13
  export declare function normalize(input: DataAlertInputRepresentation, existing: DataAlertInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): DataAlertInputRepresentationNormalized;
@@ -22,6 +22,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
22
22
  * (none)
23
23
  */
24
24
  export interface DataAlertInputRepresentationNormalized {
25
+ /** ID of the associated BotDefinition agent. */
26
+ agent?: string | null;
25
27
  content: DataAlertContentInputRepresentation_DataAlertContentInputRepresentation;
26
28
  /** Type of data alert */
27
29
  dataAlertType: string;
@@ -38,6 +40,7 @@ export interface DataAlertInputRepresentationNormalized {
38
40
  * (none)
39
41
  */
40
42
  export interface DataAlertInputRepresentation {
43
+ agent?: string | null;
41
44
  content: DataAlertMetricContentInputRepresentation_DataAlertMetricContentInputRepresentation;
42
45
  dataAlertType: string;
43
46
  deliveryConfigurations: DataAlertDeliveryConfigurationInputRepresentation_DataAlertDeliveryConfigurationInputRepresentation;
@@ -4,7 +4,7 @@ import { DataAlertScheduleRepresentation as DataAlertScheduleRepresentation_Data
4
4
  import { DataAlertThresholdsRepresentation as DataAlertThresholdsRepresentation_DataAlertThresholdsRepresentation } from './DataAlertThresholdsRepresentation';
5
5
  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';
6
6
  export declare const TTL = 500;
7
- export declare const VERSION = "04f6ab40ada1d70c527b0dd9ba6e7415";
7
+ export declare const VERSION = "cc2fad25cb7d5a43adddf76b7e121810";
8
8
  export declare function validate(obj: any, path?: string): TypeError | null;
9
9
  export declare const RepresentationType: string;
10
10
  export interface KeyParams extends $64$luvio_engine_KeyMetadata {
@@ -28,6 +28,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
28
28
  * dataAlertId (string): id
29
29
  */
30
30
  export interface DataAlertRepresentationNormalized {
31
+ /** ID of the associated BotDefinition agent. */
32
+ agent?: string | null;
31
33
  /** User entered alert name. */
32
34
  alertName: string;
33
35
  /** Notification content configuration. Contains the config needed to generate the notification content. */
@@ -52,6 +54,7 @@ export interface DataAlertRepresentationNormalized {
52
54
  * dataAlertId (string): id
53
55
  */
54
56
  export interface DataAlertRepresentation {
57
+ agent?: string | null;
55
58
  alertName: string;
56
59
  content: DataAlertContentRepresentation_DataAlertContentRepresentation;
57
60
  createdDate: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-analytics-unifiedanalytics",
3
- "version": "1.423.0",
3
+ "version": "1.424.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.423.0"
43
+ "@salesforce/lds-bindings": "^1.424.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.423.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.424.0"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -2558,12 +2558,40 @@ function validate$10(obj, path = 'DataAlertThresholdsRepresentation') {
2558
2558
  }
2559
2559
 
2560
2560
  const TTL$r = 500;
2561
- const VERSION$D = "04f6ab40ada1d70c527b0dd9ba6e7415";
2561
+ const VERSION$D = "cc2fad25cb7d5a43adddf76b7e121810";
2562
2562
  function validate$$(obj, path = 'DataAlertRepresentation') {
2563
2563
  const v_error = (() => {
2564
2564
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2565
2565
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2566
2566
  }
2567
+ if (obj.agent !== undefined) {
2568
+ const obj_agent = obj.agent;
2569
+ const path_agent = path + '.agent';
2570
+ let obj_agent_union0 = null;
2571
+ const obj_agent_union0_error = (() => {
2572
+ if (typeof obj_agent !== 'string') {
2573
+ return new TypeError('Expected "string" but received "' + typeof obj_agent + '" (at "' + path_agent + '")');
2574
+ }
2575
+ })();
2576
+ if (obj_agent_union0_error != null) {
2577
+ obj_agent_union0 = obj_agent_union0_error.message;
2578
+ }
2579
+ let obj_agent_union1 = null;
2580
+ const obj_agent_union1_error = (() => {
2581
+ if (obj_agent !== null) {
2582
+ return new TypeError('Expected "null" but received "' + typeof obj_agent + '" (at "' + path_agent + '")');
2583
+ }
2584
+ })();
2585
+ if (obj_agent_union1_error != null) {
2586
+ obj_agent_union1 = obj_agent_union1_error.message;
2587
+ }
2588
+ if (obj_agent_union0 && obj_agent_union1) {
2589
+ let message = 'Object doesn\'t match union (at "' + path_agent + '")';
2590
+ message += '\n' + obj_agent_union0.split('\n').map((line) => '\t' + line).join('\n');
2591
+ message += '\n' + obj_agent_union1.split('\n').map((line) => '\t' + line).join('\n');
2592
+ return new TypeError(message);
2593
+ }
2594
+ }
2567
2595
  const obj_alertName = obj.alertName;
2568
2596
  const path_alertName = path + '.alertName';
2569
2597
  if (typeof obj_alertName !== 'string') {
@@ -2771,6 +2799,7 @@ const createDataAlert_ConfigPropertyMetadata = [
2771
2799
  generateParamConfigMetadata('schedule', true, 2 /* Body */, 4 /* Unsupported */),
2772
2800
  generateParamConfigMetadata('thresholds', true, 2 /* Body */, 4 /* Unsupported */),
2773
2801
  generateParamConfigMetadata('utterance', true, 2 /* Body */, 0 /* String */),
2802
+ generateParamConfigMetadata('agent', false, 2 /* Body */, 4 /* Unsupported */),
2774
2803
  ];
2775
2804
  const createDataAlert_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$W, createDataAlert_ConfigPropertyMetadata);
2776
2805
  const createResourceParams$W = /*#__PURE__*/ createResourceParams$_(createDataAlert_ConfigPropertyMetadata);
@@ -2797,6 +2826,13 @@ function typeCheckConfig$W(untrustedConfig) {
2797
2826
  if (referenceDataAlertThresholdsInputRepresentationValidationError === null) {
2798
2827
  config.thresholds = untrustedConfig_thresholds;
2799
2828
  }
2829
+ const untrustedConfig_agent = untrustedConfig.agent;
2830
+ if (typeof untrustedConfig_agent === 'string') {
2831
+ config.agent = untrustedConfig_agent;
2832
+ }
2833
+ if (untrustedConfig_agent === null) {
2834
+ config.agent = untrustedConfig_agent;
2835
+ }
2800
2836
  return config;
2801
2837
  }
2802
2838
  function validateAdapterConfig$W(untrustedConfig, configPropertyNames) {
@@ -14604,6 +14640,7 @@ const updateDataAlert_ConfigPropertyMetadata = [
14604
14640
  generateParamConfigMetadata('schedule', true, 2 /* Body */, 4 /* Unsupported */),
14605
14641
  generateParamConfigMetadata('thresholds', true, 2 /* Body */, 4 /* Unsupported */),
14606
14642
  generateParamConfigMetadata('utterance', true, 2 /* Body */, 0 /* String */),
14643
+ generateParamConfigMetadata('agent', false, 2 /* Body */, 4 /* Unsupported */),
14607
14644
  ];
14608
14645
  const updateDataAlert_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$6, updateDataAlert_ConfigPropertyMetadata);
14609
14646
  const createResourceParams$6 = /*#__PURE__*/ createResourceParams$_(updateDataAlert_ConfigPropertyMetadata);
@@ -14630,6 +14667,13 @@ function typeCheckConfig$6(untrustedConfig) {
14630
14667
  if (referenceDataAlertThresholdsInputRepresentationValidationError === null) {
14631
14668
  config.thresholds = untrustedConfig_thresholds;
14632
14669
  }
14670
+ const untrustedConfig_agent = untrustedConfig.agent;
14671
+ if (typeof untrustedConfig_agent === 'string') {
14672
+ config.agent = untrustedConfig_agent;
14673
+ }
14674
+ if (untrustedConfig_agent === null) {
14675
+ config.agent = untrustedConfig_agent;
14676
+ }
14633
14677
  return config;
14634
14678
  }
14635
14679
  function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
@@ -15837,4 +15881,4 @@ withDefaultLuvio((luvio) => {
15837
15881
  });
15838
15882
 
15839
15883
  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 };
15840
- // version: 1.423.0-32cdbd3d26
15884
+ // version: 1.424.0-3bccebbf90
package/src/raml/api.raml CHANGED
@@ -1410,6 +1410,10 @@ types:
1410
1410
  utterance:
1411
1411
  description: user entered utterance
1412
1412
  type: string
1413
+ agent:
1414
+ description: ID of the associated BotDefinition agent.
1415
+ type: string | nil
1416
+ required: false
1413
1417
  DataAlertNotificationRecipientsInputRepresentation:
1414
1418
  description: 'List of UNS recipients for Data alerts. May contain user or group
1415
1419
  Ids. '
@@ -1654,6 +1658,10 @@ types:
1654
1658
  thresholds:
1655
1659
  description: Thresholds to be evaluated.
1656
1660
  type: DataAlertThresholdsRepresentation
1661
+ agent:
1662
+ description: ID of the associated BotDefinition agent.
1663
+ type: string | nil
1664
+ required: false
1657
1665
  DataAlertScheduleRepresentation:
1658
1666
  description: Represents the schedule for a data alert
1659
1667
  type: object