@salesforce/lds-adapters-industries-timeline 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.
@@ -1107,7 +1107,7 @@ function select$2(luvio, params) {
1107
1107
  return select$3();
1108
1108
  }
1109
1109
  function keyBuilder$3(luvio, params) {
1110
- return keyPrefix + '::CdpMetadataOutputRepresentation:(' + 'objectCategory:' + params.queryParams.objectCategory + ')';
1110
+ return keyPrefix + '::CdpMetadataOutputRepresentation:(' + 'dataSpaceApiName:' + params.queryParams.dataSpaceApiName + ',' + 'objectCategory:' + params.queryParams.objectCategory + ')';
1111
1111
  }
1112
1112
  function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
1113
1113
  getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
@@ -1157,6 +1157,7 @@ function createResourceRequest$1(config) {
1157
1157
 
1158
1158
  const adapterName$1 = 'getDataModelObjects';
1159
1159
  const getDataModelObjects_ConfigPropertyMetadata = [
1160
+ generateParamConfigMetadata('dataSpaceApiName', false, 1 /* QueryParameter */, 0 /* String */),
1160
1161
  generateParamConfigMetadata('objectCategory', false, 1 /* QueryParameter */, 0 /* String */),
1161
1162
  ];
1162
1163
  const getDataModelObjects_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$1, getDataModelObjects_ConfigPropertyMetadata);
@@ -6,6 +6,7 @@ export declare const adapterName = "getDataModelObjects";
6
6
  export declare const getDataModelObjects_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
7
  export declare const getDataModelObjects_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
8
  export interface GetDataModelObjectsConfig {
9
+ dataSpaceApiName?: string;
9
10
  objectCategory?: string;
10
11
  }
11
12
  export declare const createResourceParams: (config: GetDataModelObjectsConfig) => resources_getConnectTimelineCustDataPfrmDataModelObjects_ResourceRequestConfig;
@@ -2,6 +2,7 @@ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment,
2
2
  import { CdpMetadataOutputRepresentation as types_CdpMetadataOutputRepresentation_CdpMetadataOutputRepresentation } from '../types/CdpMetadataOutputRepresentation';
3
3
  export interface ResourceRequestConfig {
4
4
  queryParams: {
5
+ dataSpaceApiName?: string;
5
6
  objectCategory?: string;
6
7
  };
7
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-timeline",
3
- "version": "1.246.0",
3
+ "version": "1.248.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": " GET Resource to get the Timeline Data",
6
6
  "main": "dist/es/es2018/industries-timeline.js",
@@ -27,16 +27,16 @@
27
27
  "pmalepati@salesforce.com"
28
28
  ],
29
29
  "scripts": {
30
- "build": "yarn build:services && yarn build:karma",
30
+ "build": "yarn build:services",
31
31
  "build:karma": "rollup --bundleConfigAsCjs --config rollup.config.karma.js",
32
32
  "build:raml": "luvio generate src/raml/luvio.raml src/generated -p '../lds-compiler-plugins'",
33
33
  "build:services": "rollup --bundleConfigAsCjs --config rollup.config.js",
34
34
  "clean": "rm -rf dist sfdc src/generated karma/dist",
35
35
  "release:core": "../../scripts/release/core.js --adapter=lds-adapters-industries-timeline",
36
36
  "release:corejar": "yarn build && packages/core-build/scripts/core.js --adapter=lds-adapters-industries-timeline",
37
- "start": "karma start",
38
- "test": "karma start --single-run",
39
- "test:compat": "karma start --single-run --compat",
37
+ "start": "nx build:karma && karma start",
38
+ "test": "nx build:karma && karma start --single-run",
39
+ "test:compat": "nx build:karma && karma start --single-run --compat",
40
40
  "test:unit": "jest"
41
41
  },
42
42
  "dependencies": {
@@ -51,7 +51,6 @@
51
51
  "build": {
52
52
  "outputs": [
53
53
  "{projectRoot}/dist",
54
- "{projectRoot}/karma/dist",
55
54
  "{projectRoot}/sfdc"
56
55
  ]
57
56
  },
@@ -59,6 +58,11 @@
59
58
  "outputs": [
60
59
  "{projectRoot}/src/generated"
61
60
  ]
61
+ },
62
+ "build:karma": {
63
+ "outputs": [
64
+ "{projectRoot}/karma/dist"
65
+ ]
62
66
  }
63
67
  }
64
68
  },
package/sfdc/index.js CHANGED
@@ -280,7 +280,7 @@ function select$6(luvio, params) {
280
280
  return select$7();
281
281
  }
282
282
  function keyBuilder$7(luvio, params) {
283
- return keyPrefix + '::CdpMetadataOutputRepresentation:(' + 'objectCategory:' + params.queryParams.objectCategory + ')';
283
+ return keyPrefix + '::CdpMetadataOutputRepresentation:(' + 'dataSpaceApiName:' + params.queryParams.dataSpaceApiName + ',' + 'objectCategory:' + params.queryParams.objectCategory + ')';
284
284
  }
285
285
  function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
286
286
  getTypeCacheKeys$3(storeKeyMap, luvio, response, () => keyBuilder$7(luvio, resourceParams));
@@ -330,6 +330,7 @@ function createResourceRequest$3(config) {
330
330
 
331
331
  const adapterName$3 = 'getDataModelObjects';
332
332
  const getDataModelObjects_ConfigPropertyMetadata = [
333
+ generateParamConfigMetadata('dataSpaceApiName', false, 1 /* QueryParameter */, 0 /* String */),
333
334
  generateParamConfigMetadata('objectCategory', false, 1 /* QueryParameter */, 0 /* String */),
334
335
  ];
335
336
  const getDataModelObjects_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$3, getDataModelObjects_ConfigPropertyMetadata);
@@ -2034,4 +2035,4 @@ withDefaultLuvio((luvio) => {
2034
2035
  });
2035
2036
 
2036
2037
  export { getDataModelObjects, getDataModelObjects_imperative, getEngagementEvents, getEngagementEvents_imperative, getTimelineData, getTimelineData_imperative, getTimelineMetadata, getTimelineMetadata_imperative };
2037
- // version: 1.246.0-3f6b4cf3f
2038
+ // version: 1.248.0-0a41f7ec3
package/src/raml/api.raml CHANGED
@@ -385,6 +385,9 @@ types:
385
385
  application/json:
386
386
  type: CdpMetadataOutputRepresentation
387
387
  queryParameters:
388
+ dataSpaceApiName:
389
+ type: string
390
+ required: false
388
391
  objectCategory:
389
392
  type: string
390
393
  required: false
@@ -37,9 +37,13 @@ types:
37
37
  {}
38
38
  - |
39
39
  {
40
+ "dataSpaceApiName": "default",
40
41
  "objectCategory": "Engagement"
41
42
  }
42
43
  queryParameters:
44
+ dataSpaceApiName:
45
+ examples:
46
+ validResponse: 'default'
43
47
  objectCategory:
44
48
  examples:
45
49
  validResponse: 'Engagement'