@salesforce/lds-adapters-industries-serviceprocess 1.329.1 → 1.331.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.
@@ -120,20 +120,6 @@ function validate$5(obj, path = 'AttributeRepresentation') {
120
120
  if (typeof obj_dataType !== 'string') {
121
121
  return new TypeError('Expected "string" but received "' + typeof obj_dataType + '" (at "' + path_dataType + '")');
122
122
  }
123
- if (obj.referenceObjApiName !== undefined) {
124
- const obj_referenceObjApiName = obj.referenceObjApiName;
125
- const path_referenceObjApiName = path + '.referenceObjApiName';
126
- if (typeof obj_referenceObjApiName !== 'string') {
127
- return new TypeError('Expected "string" but received "' + typeof obj_referenceObjApiName + '" (at "' + path_referenceObjApiName + '")');
128
- }
129
- }
130
- if (obj.referenceObjNameFieldApiName !== undefined) {
131
- const obj_referenceObjNameFieldApiName = obj.referenceObjNameFieldApiName;
132
- const path_referenceObjNameFieldApiName = path + '.referenceObjNameFieldApiName';
133
- if (typeof obj_referenceObjNameFieldApiName !== 'string') {
134
- return new TypeError('Expected "string" but received "' + typeof obj_referenceObjNameFieldApiName + '" (at "' + path_referenceObjNameFieldApiName + '")');
135
- }
136
- }
137
123
  const obj_sortOrder = obj.sortOrder;
138
124
  const path_sortOrder = path + '.sortOrder';
139
125
  if (typeof obj_sortOrder !== 'string') {
@@ -538,7 +524,7 @@ function select(luvio, params) {
538
524
  return select$1();
539
525
  }
540
526
  function keyBuilder$1(luvio, params) {
541
- return keyPrefix + '::ServiceProcessRequestLayoutDataRepresentation:(' + 'Id:' + params.urlParams.Id + ')';
527
+ return keyPrefix + '::ServiceProcessRequestLayoutDataRepresentation:(' + 'showLookupAttributeDetails:' + params.queryParams.showLookupAttributeDetails + ',' + 'Id:' + params.urlParams.Id + ')';
542
528
  }
543
529
  function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
544
530
  getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
@@ -580,7 +566,7 @@ function createResourceRequest(config) {
580
566
  method: 'get',
581
567
  body: null,
582
568
  urlParams: config.urlParams,
583
- queryParams: {},
569
+ queryParams: config.queryParams,
584
570
  headers,
585
571
  priority: 'normal',
586
572
  };
@@ -589,6 +575,7 @@ function createResourceRequest(config) {
589
575
  const adapterName = 'getCaseServiceProcessLayoutData';
590
576
  const getCaseServiceProcessLayoutData_ConfigPropertyMetadata = [
591
577
  generateParamConfigMetadata('Id', true, 0 /* UrlParameter */, 0 /* String */),
578
+ generateParamConfigMetadata('showLookupAttributeDetails', false, 1 /* QueryParameter */, 1 /* Boolean */),
592
579
  ];
593
580
  const getCaseServiceProcessLayoutData_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getCaseServiceProcessLayoutData_ConfigPropertyMetadata);
594
581
  const createResourceParams = /*#__PURE__*/ createResourceParams$2(getCaseServiceProcessLayoutData_ConfigPropertyMetadata);
@@ -7,6 +7,7 @@ export declare const getCaseServiceProcessLayoutData_ConfigPropertyMetadata: $64
7
7
  export declare const getCaseServiceProcessLayoutData_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
8
  export interface GetCaseServiceProcessLayoutDataConfig {
9
9
  Id: string;
10
+ showLookupAttributeDetails?: boolean;
10
11
  }
11
12
  export declare const createResourceParams: (config: GetCaseServiceProcessLayoutDataConfig) => resources_getConnectServiceExcellenceServiceCatalogRequestLayoutDataCaseById_ResourceRequestConfig;
12
13
  export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetCaseServiceProcessLayoutDataConfig): string;
@@ -4,6 +4,9 @@ export interface ResourceRequestConfig {
4
4
  urlParams: {
5
5
  Id: string;
6
6
  };
7
+ queryParams: {
8
+ showLookupAttributeDetails?: boolean;
9
+ };
7
10
  }
8
11
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
9
12
  export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
@@ -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 = "b74ddac49d0349e082106ecd895ab39d";
2
+ export declare const VERSION = "10b841857be09fc35579a2967e4d8fae";
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: AttributeRepresentation, existing: AttributeRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): AttributeRepresentationNormalized;
@@ -24,10 +24,6 @@ export interface AttributeRepresentationNormalized {
24
24
  childAttributes: Array<AttributeRepresentation>;
25
25
  /** svc catalog item attribute data type */
26
26
  dataType: string;
27
- /** svc catalog item attribute's reference object api name */
28
- referenceObjApiName?: string;
29
- /** svc catalog item attribute's reference object name field api name */
30
- referenceObjNameFieldApiName?: string;
31
27
  /** svc catalog item attribute order */
32
28
  sortOrder: string;
33
29
  }
@@ -43,7 +39,5 @@ export interface AttributeRepresentation {
43
39
  attributeName: string;
44
40
  childAttributes: Array<AttributeRepresentation>;
45
41
  dataType: string;
46
- referenceObjApiName?: string;
47
- referenceObjNameFieldApiName?: string;
48
42
  sortOrder: string;
49
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-serviceprocess",
3
- "version": "1.329.1",
3
+ "version": "1.331.0",
4
4
  "description": "Connect apis for fetching and updating service processes",
5
5
  "license": "MIT",
6
6
  "main": "dist/es/es2018/industries-serviceprocess.js",
@@ -39,11 +39,11 @@
39
39
  "test:unit": "jest --config=./jest.config.js"
40
40
  },
41
41
  "dependencies": {
42
- "@salesforce/lds-bindings": "^1.329.1"
42
+ "@salesforce/lds-bindings": "^1.331.0"
43
43
  },
44
44
  "devDependencies": {
45
- "@salesforce/lds-compiler-plugins": "^1.329.1",
46
- "@salesforce/lds-karma": "^1.329.1"
45
+ "@salesforce/lds-compiler-plugins": "^1.331.0",
46
+ "@salesforce/lds-karma": "^1.331.0"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -130,20 +130,6 @@ function validate$5(obj, path = 'AttributeRepresentation') {
130
130
  if (typeof obj_dataType !== 'string') {
131
131
  return new TypeError('Expected "string" but received "' + typeof obj_dataType + '" (at "' + path_dataType + '")');
132
132
  }
133
- if (obj.referenceObjApiName !== undefined) {
134
- const obj_referenceObjApiName = obj.referenceObjApiName;
135
- const path_referenceObjApiName = path + '.referenceObjApiName';
136
- if (typeof obj_referenceObjApiName !== 'string') {
137
- return new TypeError('Expected "string" but received "' + typeof obj_referenceObjApiName + '" (at "' + path_referenceObjApiName + '")');
138
- }
139
- }
140
- if (obj.referenceObjNameFieldApiName !== undefined) {
141
- const obj_referenceObjNameFieldApiName = obj.referenceObjNameFieldApiName;
142
- const path_referenceObjNameFieldApiName = path + '.referenceObjNameFieldApiName';
143
- if (typeof obj_referenceObjNameFieldApiName !== 'string') {
144
- return new TypeError('Expected "string" but received "' + typeof obj_referenceObjNameFieldApiName + '" (at "' + path_referenceObjNameFieldApiName + '")');
145
- }
146
- }
147
133
  const obj_sortOrder = obj.sortOrder;
148
134
  const path_sortOrder = path + '.sortOrder';
149
135
  if (typeof obj_sortOrder !== 'string') {
@@ -548,7 +534,7 @@ function select(luvio, params) {
548
534
  return select$1();
549
535
  }
550
536
  function keyBuilder$1(luvio, params) {
551
- return keyPrefix + '::ServiceProcessRequestLayoutDataRepresentation:(' + 'Id:' + params.urlParams.Id + ')';
537
+ return keyPrefix + '::ServiceProcessRequestLayoutDataRepresentation:(' + 'showLookupAttributeDetails:' + params.queryParams.showLookupAttributeDetails + ',' + 'Id:' + params.urlParams.Id + ')';
552
538
  }
553
539
  function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
554
540
  getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
@@ -590,7 +576,7 @@ function createResourceRequest(config) {
590
576
  method: 'get',
591
577
  body: null,
592
578
  urlParams: config.urlParams,
593
- queryParams: {},
579
+ queryParams: config.queryParams,
594
580
  headers,
595
581
  priority: 'normal',
596
582
  };
@@ -599,6 +585,7 @@ function createResourceRequest(config) {
599
585
  const adapterName = 'getCaseServiceProcessLayoutData';
600
586
  const getCaseServiceProcessLayoutData_ConfigPropertyMetadata = [
601
587
  generateParamConfigMetadata('Id', true, 0 /* UrlParameter */, 0 /* String */),
588
+ generateParamConfigMetadata('showLookupAttributeDetails', false, 1 /* QueryParameter */, 1 /* Boolean */),
602
589
  ];
603
590
  const getCaseServiceProcessLayoutData_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName, getCaseServiceProcessLayoutData_ConfigPropertyMetadata);
604
591
  const createResourceParams = /*#__PURE__*/ createResourceParams$2(getCaseServiceProcessLayoutData_ConfigPropertyMetadata);
@@ -722,4 +709,4 @@ withDefaultLuvio((luvio) => {
722
709
  });
723
710
 
724
711
  export { fetchServiceProcessDefinition, fetchServiceProcessDefinition_imperative, getCaseServiceProcessLayoutData, getCaseServiceProcessLayoutData_imperative };
725
- // version: 1.329.1-c9b166ef17
712
+ // version: 1.331.0-e9c482e8ab
package/src/raml/api.raml CHANGED
@@ -46,14 +46,6 @@ types:
46
46
  dataType:
47
47
  description: svc catalog item attribute data type
48
48
  type: string
49
- referenceObjApiName:
50
- description: svc catalog item attribute's reference object api name
51
- type: string
52
- required: false
53
- referenceObjNameFieldApiName:
54
- description: svc catalog item attribute's reference object name field api name
55
- type: string
56
- required: false
57
49
  sortOrder:
58
50
  description: svc catalog item attribute order
59
51
  type: string
@@ -160,6 +152,11 @@ types:
160
152
  body:
161
153
  application/json:
162
154
  type: ServiceProcessRequestLayoutDataRepresentation
155
+ queryParameters:
156
+ showLookupAttributeDetails:
157
+ type: boolean
158
+ required: false
159
+ default: false
163
160
  uriParameters:
164
161
  Id:
165
162
  type: string