@salesforce/lds-adapters-platform-interaction-orchestrator 1.391.0 → 1.393.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.
@@ -1404,7 +1404,7 @@ function select(luvio, params) {
1404
1404
  return select$1();
1405
1405
  }
1406
1406
  function keyBuilder$1(luvio, params) {
1407
- return keyPrefix + '::FlowOrchestrationInstanceCollectionRepresentation:(' + 'contextRecordId:' + params.queryParams.contextRecordId + ',' + 'relatedRecordId:' + params.queryParams.relatedRecordId + ')';
1407
+ return keyPrefix + '::FlowOrchestrationInstanceCollectionRepresentation:(' + 'contextRecordId:' + params.queryParams.contextRecordId + ',' + 'relatedRecordId:' + params.queryParams.relatedRecordId + ',' + 'relatedOrchestrationId:' + params.queryParams.relatedOrchestrationId + ')';
1408
1408
  }
1409
1409
  function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
1410
1410
  getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
@@ -1454,11 +1454,13 @@ function createResourceRequest(config) {
1454
1454
 
1455
1455
  const adapterName = 'getOrchestrationInstanceCollection';
1456
1456
  const oneOfConfigPropertiesIdentifier = [
1457
- 'relatedRecordId'
1457
+ 'relatedRecordId',
1458
+ 'relatedOrchestrationId'
1458
1459
  ];
1459
1460
  const getOrchestrationInstanceCollection_ConfigPropertyMetadata = [
1460
1461
  generateParamConfigMetadata('contextRecordId', false, 1 /* QueryParameter */, 0 /* String */),
1461
1462
  generateParamConfigMetadata('relatedRecordId', false, 1 /* QueryParameter */, 0 /* String */),
1463
+ generateParamConfigMetadata('relatedOrchestrationId', false, 1 /* QueryParameter */, 0 /* String */),
1462
1464
  ];
1463
1465
  const getOrchestrationInstanceCollection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getOrchestrationInstanceCollection_ConfigPropertyMetadata);
1464
1466
  const createResourceParams = /*#__PURE__*/ createResourceParams$2(getOrchestrationInstanceCollection_ConfigPropertyMetadata);
@@ -1482,7 +1484,8 @@ function validateAdapterConfig(untrustedConfig, configPropertyNames) {
1482
1484
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1483
1485
  return null;
1484
1486
  }
1485
- if (config.relatedRecordId === undefined) {
1487
+ if (config.relatedRecordId === undefined &&
1488
+ config.relatedOrchestrationId === undefined) {
1486
1489
  return null;
1487
1490
  }
1488
1491
  return config;
@@ -8,6 +8,7 @@ export declare const getOrchestrationInstanceCollection_ConfigPropertyNames: ada
8
8
  export interface GetOrchestrationInstanceCollectionConfig {
9
9
  contextRecordId?: string;
10
10
  relatedRecordId?: string;
11
+ relatedOrchestrationId?: string;
11
12
  }
12
13
  export declare const createResourceParams: (config: GetOrchestrationInstanceCollectionConfig) => resources_getConnectInteractionOrchestrationInstances_ResourceRequestConfig;
13
14
  export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetOrchestrationInstanceCollectionConfig): string;
@@ -4,6 +4,7 @@ export interface ResourceRequestConfig {
4
4
  queryParams: {
5
5
  contextRecordId?: string;
6
6
  relatedRecordId?: string;
7
+ relatedOrchestrationId?: string;
7
8
  };
8
9
  }
9
10
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-platform-interaction-orchestrator",
3
- "version": "1.391.0",
3
+ "version": "1.393.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "Interaction Orchestrator APIs",
6
6
  "main": "dist/es/es2018/platform-interaction-orchestrator.js",
@@ -40,11 +40,11 @@
40
40
  "release:core": "../../scripts/release/core.js --adapter=lds-adapters-platform-interaction-orchestrator"
41
41
  },
42
42
  "dependencies": {
43
- "@salesforce/lds-bindings": "^1.391.0"
43
+ "@salesforce/lds-bindings": "^1.393.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.391.0",
47
- "@salesforce/lds-karma": "^1.391.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.393.0",
47
+ "@salesforce/lds-karma": "^1.393.0"
48
48
  },
49
49
  "nx": {
50
50
  "targets": {
package/sfdc/index.js CHANGED
@@ -1414,7 +1414,7 @@ function select(luvio, params) {
1414
1414
  return select$1();
1415
1415
  }
1416
1416
  function keyBuilder$1(luvio, params) {
1417
- return keyPrefix + '::FlowOrchestrationInstanceCollectionRepresentation:(' + 'contextRecordId:' + params.queryParams.contextRecordId + ',' + 'relatedRecordId:' + params.queryParams.relatedRecordId + ')';
1417
+ return keyPrefix + '::FlowOrchestrationInstanceCollectionRepresentation:(' + 'contextRecordId:' + params.queryParams.contextRecordId + ',' + 'relatedRecordId:' + params.queryParams.relatedRecordId + ',' + 'relatedOrchestrationId:' + params.queryParams.relatedOrchestrationId + ')';
1418
1418
  }
1419
1419
  function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
1420
1420
  getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
@@ -1464,11 +1464,13 @@ function createResourceRequest(config) {
1464
1464
 
1465
1465
  const adapterName = 'getOrchestrationInstanceCollection';
1466
1466
  const oneOfConfigPropertiesIdentifier = [
1467
- 'relatedRecordId'
1467
+ 'relatedRecordId',
1468
+ 'relatedOrchestrationId'
1468
1469
  ];
1469
1470
  const getOrchestrationInstanceCollection_ConfigPropertyMetadata = [
1470
1471
  generateParamConfigMetadata('contextRecordId', false, 1 /* QueryParameter */, 0 /* String */),
1471
1472
  generateParamConfigMetadata('relatedRecordId', false, 1 /* QueryParameter */, 0 /* String */),
1473
+ generateParamConfigMetadata('relatedOrchestrationId', false, 1 /* QueryParameter */, 0 /* String */),
1472
1474
  ];
1473
1475
  const getOrchestrationInstanceCollection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getOrchestrationInstanceCollection_ConfigPropertyMetadata);
1474
1476
  const createResourceParams = /*#__PURE__*/ createResourceParams$2(getOrchestrationInstanceCollection_ConfigPropertyMetadata);
@@ -1492,7 +1494,8 @@ function validateAdapterConfig(untrustedConfig, configPropertyNames) {
1492
1494
  if (!areRequiredParametersPresent(config, configPropertyNames)) {
1493
1495
  return null;
1494
1496
  }
1495
- if (config.relatedRecordId === undefined) {
1497
+ if (config.relatedRecordId === undefined &&
1498
+ config.relatedOrchestrationId === undefined) {
1496
1499
  return null;
1497
1500
  }
1498
1501
  return config;
@@ -1595,4 +1598,4 @@ withDefaultLuvio((luvio) => {
1595
1598
  });
1596
1599
 
1597
1600
  export { getOrchestrationInstance, getOrchestrationInstanceCollection, getOrchestrationInstanceCollection_imperative, getOrchestrationInstance_imperative };
1598
- // version: 1.391.0-763f006296
1601
+ // version: 1.393.0-94e6d2aef3
package/src/raml/api.raml CHANGED
@@ -242,3 +242,6 @@ types:
242
242
  relatedRecordId:
243
243
  type: string
244
244
  required: false
245
+ relatedOrchestrationId:
246
+ type: string
247
+ required: false
@@ -27,3 +27,4 @@ types:
27
27
  oneOfParams:
28
28
  - relatedRecordId
29
29
  #in 234 add optional params here
30
+ - relatedOrchestrationId