@salesforce/lds-adapters-industries-rule-builder 1.246.0 → 1.248.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.
@@ -2300,6 +2300,18 @@ function validate$Q(obj, path = 'SimulationStepExplainabilityMessageOutputRepres
2300
2300
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
2301
2301
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
2302
2302
  }
2303
+ const obj_contextTagMessages = obj.contextTagMessages;
2304
+ const path_contextTagMessages = path + '.contextTagMessages';
2305
+ if (!ArrayIsArray(obj_contextTagMessages)) {
2306
+ return new TypeError('Expected "array" but received "' + typeof obj_contextTagMessages + '" (at "' + path_contextTagMessages + '")');
2307
+ }
2308
+ for (let i = 0; i < obj_contextTagMessages.length; i++) {
2309
+ const obj_contextTagMessages_item = obj_contextTagMessages[i];
2310
+ const path_contextTagMessages_item = path_contextTagMessages + '[' + i + ']';
2311
+ if (typeof obj_contextTagMessages_item !== 'string') {
2312
+ return new TypeError('Expected "string" but received "' + typeof obj_contextTagMessages_item + '" (at "' + path_contextTagMessages_item + '")');
2313
+ }
2314
+ }
2303
2315
  const obj_message = obj.message;
2304
2316
  const path_message = path + '.message';
2305
2317
  if (typeof obj_message !== 'string') {
@@ -3049,7 +3061,7 @@ function select$v(luvio, params) {
3049
3061
  return select$w();
3050
3062
  }
3051
3063
  function keyBuilder$t(luvio, params) {
3052
- return keyPrefix + '::LookupTablesResultListRepresentation:(' + 'lookupTypes:' + params.queryParams.lookupTypes + ',' + 'searchKey:' + params.queryParams.searchKey + ',' + 'usageType:' + params.queryParams.usageType + ')';
3064
+ return keyPrefix + '::LookupTablesResultListRepresentation:(' + 'lookupTypes:' + params.queryParams.lookupTypes + ',' + 'searchKey:' + params.queryParams.searchKey + ',' + 'usageType:' + params.queryParams.usageType + ',' + 'businessKnowledgeModelName:' + params.queryParams.businessKnowledgeModelName + ')';
3053
3065
  }
3054
3066
  function getResponseCacheKeys$h(storeKeyMap, luvio, resourceParams, response) {
3055
3067
  getTypeCacheKeys$e(storeKeyMap, luvio, response, () => keyBuilder$t(luvio, resourceParams));
@@ -3096,6 +3108,7 @@ const getLookupTables_ConfigPropertyMetadata = [
3096
3108
  generateParamConfigMetadata('lookupTypes', false, 1 /* QueryParameter */, 0 /* String */, true),
3097
3109
  generateParamConfigMetadata('searchKey', true, 1 /* QueryParameter */, 0 /* String */),
3098
3110
  generateParamConfigMetadata('usageType', true, 1 /* QueryParameter */, 0 /* String */),
3111
+ generateParamConfigMetadata('businessKnowledgeModelName', false, 1 /* QueryParameter */, 0 /* String */),
3099
3112
  ];
3100
3113
  const getLookupTables_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$h, getLookupTables_ConfigPropertyMetadata);
3101
3114
  const createResourceParams$h = /*#__PURE__*/ createResourceParams$q(getLookupTables_ConfigPropertyMetadata);
@@ -6349,6 +6362,13 @@ function validate$f(obj, path = 'DecisionMatrixBasicRepresentation') {
6349
6362
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6350
6363
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
6351
6364
  }
6365
+ if (obj.createdDate !== undefined) {
6366
+ const obj_createdDate = obj.createdDate;
6367
+ const path_createdDate = path + '.createdDate';
6368
+ if (typeof obj_createdDate !== 'string') {
6369
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
6370
+ }
6371
+ }
6352
6372
  if (obj.description !== undefined) {
6353
6373
  const obj_description = obj.description;
6354
6374
  const path_description = path + '.description';
@@ -6370,6 +6390,13 @@ function validate$f(obj, path = 'DecisionMatrixBasicRepresentation') {
6370
6390
  return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
6371
6391
  }
6372
6392
  }
6393
+ if (obj.usageType !== undefined) {
6394
+ const obj_usageType = obj.usageType;
6395
+ const path_usageType = path + '.usageType';
6396
+ if (typeof obj_usageType !== 'string') {
6397
+ return new TypeError('Expected "string" but received "' + typeof obj_usageType + '" (at "' + path_usageType + '")');
6398
+ }
6399
+ }
6373
6400
  })();
6374
6401
  return v_error === undefined ? null : v_error;
6375
6402
  }
@@ -9,6 +9,7 @@ export interface GetLookupTablesConfig {
9
9
  lookupTypes?: Array<string>;
10
10
  searchKey: string;
11
11
  usageType: string;
12
+ businessKnowledgeModelName?: string;
12
13
  }
13
14
  export declare const createResourceParams: (config: GetLookupTablesConfig) => resources_getConnectBusinessRulesLookupTables_ResourceRequestConfig;
14
15
  export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetLookupTablesConfig): string;
@@ -5,6 +5,7 @@ export interface ResourceRequestConfig {
5
5
  lookupTypes?: Array<string>;
6
6
  searchKey: string;
7
7
  usageType: string;
8
+ businessKnowledgeModelName?: string;
8
9
  };
9
10
  }
10
11
  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 = "65b0c5e0acf3f66f16916c06016baccf";
2
+ export declare const VERSION = "1a358b8a21b8bc159b44415cf9018264";
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: DecisionMatrixBasicRepresentation, existing: DecisionMatrixBasicRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): DecisionMatrixBasicRepresentationNormalized;
@@ -14,12 +14,16 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
14
14
  * (none)
15
15
  */
16
16
  export interface DecisionMatrixBasicRepresentationNormalized {
17
+ /** DecisionMatrixDetails api DecisionMatrix Created date */
18
+ createdDate?: string;
17
19
  /** DecisionMatrixDetails api DecisionMatrix description */
18
20
  description?: string;
19
21
  /** DecisionMatrixDetails api DecisionMatrix id */
20
22
  id?: string;
21
23
  /** DecisionMatrixDetails api DecisionMatrix name */
22
24
  name?: string;
25
+ /** DecisionMatrixDetails api DecisionMatrix Usage Type */
26
+ usageType?: string;
23
27
  }
24
28
  /**
25
29
  * Output represenation of Decision Matrix Basic Details
@@ -28,7 +32,9 @@ export interface DecisionMatrixBasicRepresentationNormalized {
28
32
  * (none)
29
33
  */
30
34
  export interface DecisionMatrixBasicRepresentation {
35
+ createdDate?: string;
31
36
  description?: string;
32
37
  id?: string;
33
38
  name?: string;
39
+ usageType?: string;
34
40
  }
@@ -1,6 +1,6 @@
1
1
  import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
2
  export declare const TTL = 1000;
3
- export declare const VERSION = "44101e11889c792aaabc50fc90848bc2";
3
+ export declare const VERSION = "7ca3eea05aa4a02803a742fd84ac98fc";
4
4
  export declare function validate(obj: any, path?: string): TypeError | null;
5
5
  export declare const RepresentationType: string;
6
6
  export declare function normalize(input: SimulationStepExplainabilityMessageOutputRepresentation, existing: SimulationStepExplainabilityMessageOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SimulationStepExplainabilityMessageOutputRepresentationNormalized;
@@ -15,6 +15,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
15
15
  * (none)
16
16
  */
17
17
  export interface SimulationStepExplainabilityMessageOutputRepresentationNormalized {
18
+ /** Stores explainability messages of the step related to context tags */
19
+ contextTagMessages: Array<string>;
18
20
  /** stores explainability message of the step */
19
21
  message: string;
20
22
  /** stores explainability condition details of the step */
@@ -31,6 +33,7 @@ export interface SimulationStepExplainabilityMessageOutputRepresentationNormaliz
31
33
  * (none)
32
34
  */
33
35
  export interface SimulationStepExplainabilityMessageOutputRepresentation {
36
+ contextTagMessages: Array<string>;
34
37
  message: string;
35
38
  showConditionDetails: boolean;
36
39
  showOnlyExecutedPathMessage: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-rule-builder",
3
- "version": "1.246.0",
3
+ "version": "1.248.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "This is part of industries interactions and have files for rule builders",
6
6
  "main": "dist/es/es2018/industries-rule-builder.js",
@@ -33,16 +33,16 @@
33
33
  "module": "industriesRuleBuilderApi"
34
34
  },
35
35
  "scripts": {
36
- "build": "yarn build:services && yarn build:karma",
36
+ "build": "yarn build:services",
37
37
  "build:karma": "rollup --bundleConfigAsCjs --config rollup.config.karma.js",
38
38
  "build:raml": "luvio generate src/raml/luvio.raml src/generated -p '../lds-compiler-plugins'",
39
39
  "build:services": "rollup --bundleConfigAsCjs --config rollup.config.js",
40
40
  "clean": "rm -rf dist sfdc src/generated karma/dist",
41
41
  "release:core": "../../scripts/release/core.js --adapter=lds-adapters-industries-rule-builder",
42
42
  "release:corejar": "yarn build && ../core-build/scripts/core.js --adapter=lds-adapters-industries-rule-builder",
43
- "start": "karma start",
44
- "test": "karma start --single-run",
45
- "test:compat": "karma start --single-run --compat",
43
+ "start": "nx build:karma && karma start",
44
+ "test": "nx build:karma && karma start --single-run",
45
+ "test:compat": "nx build:karma && karma start --single-run --compat",
46
46
  "test:unit": "jest"
47
47
  },
48
48
  "dependencies": {
@@ -57,7 +57,6 @@
57
57
  "build": {
58
58
  "outputs": [
59
59
  "{projectRoot}/dist",
60
- "{projectRoot}/karma/dist",
61
60
  "{projectRoot}/sfdc"
62
61
  ]
63
62
  },
@@ -65,6 +64,11 @@
65
64
  "outputs": [
66
65
  "{projectRoot}/src/generated"
67
66
  ]
67
+ },
68
+ "build:karma": {
69
+ "outputs": [
70
+ "{projectRoot}/karma/dist"
71
+ ]
68
72
  }
69
73
  }
70
74
  },
package/sfdc/index.js CHANGED
@@ -4689,7 +4689,7 @@ function select$n(luvio, params) {
4689
4689
  return select$o();
4690
4690
  }
4691
4691
  function keyBuilder$j(luvio, params) {
4692
- return keyPrefix + '::LookupTablesResultListRepresentation:(' + 'lookupTypes:' + params.queryParams.lookupTypes + ',' + 'searchKey:' + params.queryParams.searchKey + ',' + 'usageType:' + params.queryParams.usageType + ')';
4692
+ return keyPrefix + '::LookupTablesResultListRepresentation:(' + 'lookupTypes:' + params.queryParams.lookupTypes + ',' + 'searchKey:' + params.queryParams.searchKey + ',' + 'usageType:' + params.queryParams.usageType + ',' + 'businessKnowledgeModelName:' + params.queryParams.businessKnowledgeModelName + ')';
4693
4693
  }
4694
4694
  function getResponseCacheKeys$d(storeKeyMap, luvio, resourceParams, response) {
4695
4695
  getTypeCacheKeys$a(storeKeyMap, luvio, response, () => keyBuilder$j(luvio, resourceParams));
@@ -4736,6 +4736,7 @@ const getLookupTables_ConfigPropertyMetadata = [
4736
4736
  generateParamConfigMetadata('lookupTypes', false, 1 /* QueryParameter */, 0 /* String */, true),
4737
4737
  generateParamConfigMetadata('searchKey', true, 1 /* QueryParameter */, 0 /* String */),
4738
4738
  generateParamConfigMetadata('usageType', true, 1 /* QueryParameter */, 0 /* String */),
4739
+ generateParamConfigMetadata('businessKnowledgeModelName', false, 1 /* QueryParameter */, 0 /* String */),
4739
4740
  ];
4740
4741
  const getLookupTables_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$d, getLookupTables_ConfigPropertyMetadata);
4741
4742
  const createResourceParams$d = /*#__PURE__*/ createResourceParams$q(getLookupTables_ConfigPropertyMetadata);
@@ -6760,6 +6761,18 @@ function validate$f(obj, path = 'SimulationStepExplainabilityMessageOutputRepres
6760
6761
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6761
6762
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
6762
6763
  }
6764
+ const obj_contextTagMessages = obj.contextTagMessages;
6765
+ const path_contextTagMessages = path + '.contextTagMessages';
6766
+ if (!ArrayIsArray(obj_contextTagMessages)) {
6767
+ return new TypeError('Expected "array" but received "' + typeof obj_contextTagMessages + '" (at "' + path_contextTagMessages + '")');
6768
+ }
6769
+ for (let i = 0; i < obj_contextTagMessages.length; i++) {
6770
+ const obj_contextTagMessages_item = obj_contextTagMessages[i];
6771
+ const path_contextTagMessages_item = path_contextTagMessages + '[' + i + ']';
6772
+ if (typeof obj_contextTagMessages_item !== 'string') {
6773
+ return new TypeError('Expected "string" but received "' + typeof obj_contextTagMessages_item + '" (at "' + path_contextTagMessages_item + '")');
6774
+ }
6775
+ }
6763
6776
  const obj_message = obj.message;
6764
6777
  const path_message = path + '.message';
6765
6778
  if (typeof obj_message !== 'string') {
@@ -7437,6 +7450,13 @@ function validate$9(obj, path = 'DecisionMatrixBasicRepresentation') {
7437
7450
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
7438
7451
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
7439
7452
  }
7453
+ if (obj.createdDate !== undefined) {
7454
+ const obj_createdDate = obj.createdDate;
7455
+ const path_createdDate = path + '.createdDate';
7456
+ if (typeof obj_createdDate !== 'string') {
7457
+ return new TypeError('Expected "string" but received "' + typeof obj_createdDate + '" (at "' + path_createdDate + '")');
7458
+ }
7459
+ }
7440
7460
  if (obj.description !== undefined) {
7441
7461
  const obj_description = obj.description;
7442
7462
  const path_description = path + '.description';
@@ -7458,6 +7478,13 @@ function validate$9(obj, path = 'DecisionMatrixBasicRepresentation') {
7458
7478
  return new TypeError('Expected "string" but received "' + typeof obj_name + '" (at "' + path_name + '")');
7459
7479
  }
7460
7480
  }
7481
+ if (obj.usageType !== undefined) {
7482
+ const obj_usageType = obj.usageType;
7483
+ const path_usageType = path + '.usageType';
7484
+ if (typeof obj_usageType !== 'string') {
7485
+ return new TypeError('Expected "string" but received "' + typeof obj_usageType + '" (at "' + path_usageType + '")');
7486
+ }
7487
+ }
7461
7488
  })();
7462
7489
  return v_error === undefined ? null : v_error;
7463
7490
  }
@@ -8760,4 +8787,4 @@ withDefaultLuvio((luvio) => {
8760
8787
  });
8761
8788
 
8762
8789
  export { activateCalcProcedureVersion, createExpressionSet, createObjectAlias, deleteExpressionSet, getBusinessKnowledgeModel, getBusinessKnowledgeModel_imperative, getCalcProcDetails, getCalcProcDetails_imperative, getCalcProcVersionDetails, getCalcProcVersionDetailsNotifyChange, getCalcProcVersionDetails_imperative, getDecisionMatrixDetails, getDecisionMatrixDetailsNotifyChange, getDecisionMatrixDetails_imperative, getDecisionTableDetails, getDecisionTableDetails_imperative, getExplainabilityLogs, getExplainabilityLogs_imperative, getExpressionSet, getExpressionSetAliasMetaInfo, getExpressionSetAliasMetaInfo_imperative, getExpressionSetNotifyChange, getExpressionSet_imperative, getLookupTables, getLookupTables_imperative, getMessageTemplateDetail, getMessageTemplateDetail_imperative, getProcessType, getProcessType_imperative, getSimulationInputVariables, getSimulationInputVariables_imperative, getUsageTypes, getUsageTypes_imperative, postCalcProcVersionDetails, postInvokeExpressionSet, searchCalculationProcedure, searchCalculationProcedure_imperative, searchDecisionMatrixByName, searchDecisionMatrixByName_imperative, searchDecisionTableByName, searchDecisionTableByName_imperative, searchMessageTemplates, searchMessageTemplates_imperative, simulateEvaluationService, updateAliasField, updateExpressionSet };
8763
- // version: 1.246.0-3f6b4cf3f
8790
+ // version: 1.248.0-0a41f7ec3
package/src/raml/api.raml CHANGED
@@ -1718,6 +1718,14 @@ types:
1718
1718
  description: DecisionMatrixDetails api DecisionMatrix name
1719
1719
  type: string
1720
1720
  required: false
1721
+ createdDate:
1722
+ description: DecisionMatrixDetails api DecisionMatrix Created date
1723
+ type: string
1724
+ required: false
1725
+ usageType:
1726
+ description: DecisionMatrixDetails api DecisionMatrix Usage Type
1727
+ type: string
1728
+ required: false
1721
1729
  DecisionMatrixResultListRepresentation:
1722
1730
  description: Output represenation of Decision Matrix Details Get
1723
1731
  type: object
@@ -2076,6 +2084,11 @@ types:
2076
2084
  description: Output representation of explainability message for simulation
2077
2085
  type: object
2078
2086
  properties:
2087
+ contextTagMessages:
2088
+ description: Stores explainability messages of the step related to context tags
2089
+ type: array
2090
+ items:
2091
+ type: string
2079
2092
  message:
2080
2093
  description: stores explainability message of the step
2081
2094
  type: string
@@ -2406,6 +2419,10 @@ types:
2406
2419
  description: Usage Type
2407
2420
  type: string
2408
2421
  required: true
2422
+ businessKnowledgeModelName:
2423
+ description: Business Knowledge Model Name
2424
+ type: string
2425
+ required: false
2409
2426
  /omnistudio:
2410
2427
  /decision-tables:
2411
2428
  get:
@@ -165,7 +165,8 @@ types:
165
165
  {
166
166
  "searchKey": "DM1",
167
167
  "lookupTypes": "DecisionTable,DecisionMatrix",
168
- "usageType": "Bre"
168
+ "usageType": "Bre",
169
+ "businessKnowledgeModelName": "ManualDiscount"
169
170
  }
170
171
  /omnistudio:
171
172
  /decision-tables/{decisionTableId}: