@salesforce/lds-adapters-industries-energy-utilities 1.451.0-dev1 → 1.451.0-dev3

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.
@@ -891,7 +891,7 @@ function select(luvio, params) {
891
891
  return select$1();
892
892
  }
893
893
  function keyBuilder$1(luvio, params) {
894
- return keyPrefix + '::EUProductPricingDetailsOutput:(' + 'webStoreName:' + params.body.webStoreName + '::' + 'priceBookId:' + params.body.priceBookId + '::' + 'productId:' + params.body.productId + '::' + (params.body.weightingParameters === undefined ? undefined : ('[' + params.body.weightingParameters.map(element => (element.productCode === undefined ? 'weightingParameters.productCode' : 'weightingParameters.productCode:' + element.productCode) + '::' + (element.quantity === undefined ? 'weightingParameters.quantity' : 'weightingParameters.quantity:' + element.quantity) + '::' + (element.serviceType === undefined ? 'weightingParameters.serviceType' : 'weightingParameters.serviceType:' + element.serviceType)).join(',') + ']')) + '::' + '[' + params.body.consumptionList.map(element => (element.serviceType === undefined ? 'consumptionList.serviceType' : 'consumptionList.serviceType:' + element.serviceType) + '::' + (element.uom === undefined ? 'consumptionList.uom' : 'consumptionList.uom:' + element.uom) + '::' + (element.value === undefined ? 'consumptionList.value' : 'consumptionList.value:' + element.value) + '::' + (element.frequency === undefined ? 'consumptionList.frequency' : 'consumptionList.frequency:' + element.frequency)).join(',') + ']' + '::' + (params.body.attributeValList === undefined ? undefined : ('[' + params.body.attributeValList.map(element => (element.attributeApiName === undefined ? 'attributeValList.attributeApiName' : 'attributeValList.attributeApiName:' + element.attributeApiName) + '::' + (element.attributeValue === undefined ? 'attributeValList.attributeValue' : 'attributeValList.attributeValue:' + element.attributeValue) + '::' + (element.serviceType === undefined ? 'attributeValList.serviceType' : 'attributeValList.serviceType:' + element.serviceType)).join(',') + ']')) + ')';
894
+ return keyPrefix + '::EUProductPricingDetailsOutput:(' + 'priceBookId:' + params.body.priceBookId + '::' + 'productId:' + params.body.productId + '::' + (params.body.weightingParameters === undefined ? undefined : ('[' + params.body.weightingParameters.map(element => (element.productCode === undefined ? 'weightingParameters.productCode' : 'weightingParameters.productCode:' + element.productCode) + '::' + (element.quantity === undefined ? 'weightingParameters.quantity' : 'weightingParameters.quantity:' + element.quantity) + '::' + (element.serviceType === undefined ? 'weightingParameters.serviceType' : 'weightingParameters.serviceType:' + element.serviceType)).join(',') + ']')) + '::' + '[' + params.body.consumptionList.map(element => (element.serviceType === undefined ? 'consumptionList.serviceType' : 'consumptionList.serviceType:' + element.serviceType) + '::' + (element.uom === undefined ? 'consumptionList.uom' : 'consumptionList.uom:' + element.uom) + '::' + (element.value === undefined ? 'consumptionList.value' : 'consumptionList.value:' + element.value) + '::' + (element.frequency === undefined ? 'consumptionList.frequency' : 'consumptionList.frequency:' + element.frequency)).join(',') + ']' + '::' + (params.body.attributeValList === undefined ? undefined : ('[' + params.body.attributeValList.map(element => (element.attributeApiName === undefined ? 'attributeValList.attributeApiName' : 'attributeValList.attributeApiName:' + element.attributeApiName) + '::' + (element.attributeValue === undefined ? 'attributeValList.attributeValue' : 'attributeValList.attributeValue:' + element.attributeValue) + '::' + (element.serviceType === undefined ? 'attributeValList.serviceType' : 'attributeValList.serviceType:' + element.serviceType)).join(',') + ']')) + ')';
895
895
  }
896
896
  function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
897
897
  getTypeCacheKeys(storeKeyMap, luvio, response, () => keyBuilder$1(luvio, resourceParams));
@@ -941,7 +941,6 @@ function createResourceRequest(config) {
941
941
 
942
942
  const adapterName = 'getProductPricingDetails';
943
943
  const getProductPricingDetails_ConfigPropertyMetadata = [
944
- generateParamConfigMetadata('webStoreName', true, 2 /* Body */, 0 /* String */),
945
944
  generateParamConfigMetadata('priceBookId', true, 2 /* Body */, 0 /* String */),
946
945
  generateParamConfigMetadata('productId', true, 2 /* Body */, 0 /* String */),
947
946
  generateParamConfigMetadata('weightingParameters', false, 2 /* Body */, 4 /* Unsupported */, true),
@@ -9,7 +9,6 @@ export declare const adapterName = "getProductPricingDetails";
9
9
  export declare const getProductPricingDetails_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
10
10
  export declare const getProductPricingDetails_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
11
11
  export interface GetProductPricingDetailsConfig {
12
- webStoreName: string;
13
12
  priceBookId: string;
14
13
  productId: string;
15
14
  weightingParameters?: Array<types_WeightingParameter_WeightingParameter>;
@@ -5,7 +5,6 @@ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment,
5
5
  import { EUProductPricingDetailsOutput as types_EUProductPricingDetailsOutput_EUProductPricingDetailsOutput } from '../types/EUProductPricingDetailsOutput';
6
6
  export interface ResourceRequestConfig {
7
7
  body: {
8
- webStoreName: string;
9
8
  priceBookId: string;
10
9
  productId: string;
11
10
  weightingParameters?: Array<types_WeightingParameter_WeightingParameter>;
@@ -2,7 +2,7 @@ import { ProductAttributeInput as ProductAttributeInput_ProductAttributeInput }
2
2
  import { EstimatedConsumption as EstimatedConsumption_EstimatedConsumption } from './EstimatedConsumption';
3
3
  import { WeightingParameter as WeightingParameter_WeightingParameter } from './WeightingParameter';
4
4
  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';
5
- export declare const VERSION = "9ddce45d4d44c30124c628aa3d66dfc0";
5
+ export declare const VERSION = "bdfb84d7ccb183c1fd1e19972e7787a2";
6
6
  export declare function validate(obj: any, path?: string): TypeError | null;
7
7
  export declare const RepresentationType: string;
8
8
  export declare function normalize(input: EUProductPricingDetailsInput, existing: EUProductPricingDetailsInputNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EUProductPricingDetailsInputNormalized;
@@ -25,8 +25,6 @@ export interface EUProductPricingDetailsInputNormalized {
25
25
  priceBookId: string;
26
26
  /** Product ID for which pricing details are fetched */
27
27
  productId: string;
28
- /** Web Store Name */
29
- webStoreName: string;
30
28
  /** List of weighting parameters for product configuration */
31
29
  weightingParameters?: Array<WeightingParameter_WeightingParameter>;
32
30
  }
@@ -41,6 +39,5 @@ export interface EUProductPricingDetailsInput {
41
39
  consumptionList: Array<EstimatedConsumption_EstimatedConsumption>;
42
40
  priceBookId: string;
43
41
  productId: string;
44
- webStoreName: string;
45
42
  weightingParameters?: Array<WeightingParameter_WeightingParameter>;
46
43
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-energy-utilities",
3
- "version": "1.451.0-dev1",
3
+ "version": "1.451.0-dev3",
4
4
  "description": "Energy & Utilities Cloud LDS Adapters",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/industries-energy-utilities.js",
@@ -40,10 +40,10 @@
40
40
  "test:unit": "jest"
41
41
  },
42
42
  "dependencies": {
43
- "@salesforce/lds-bindings": "^1.451.0-dev1"
43
+ "@salesforce/lds-bindings": "^1.451.0-dev3"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.451.0-dev1"
46
+ "@salesforce/lds-compiler-plugins": "^1.451.0-dev3"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {
package/sfdc/index.js CHANGED
@@ -508,7 +508,7 @@ function select$2(luvio, params) {
508
508
  return select$3();
509
509
  }
510
510
  function keyBuilder$3(luvio, params) {
511
- return keyPrefix + '::EUProductPricingDetailsOutput:(' + 'webStoreName:' + params.body.webStoreName + '::' + 'priceBookId:' + params.body.priceBookId + '::' + 'productId:' + params.body.productId + '::' + (params.body.weightingParameters === undefined ? undefined : ('[' + params.body.weightingParameters.map(element => (element.productCode === undefined ? 'weightingParameters.productCode' : 'weightingParameters.productCode:' + element.productCode) + '::' + (element.quantity === undefined ? 'weightingParameters.quantity' : 'weightingParameters.quantity:' + element.quantity) + '::' + (element.serviceType === undefined ? 'weightingParameters.serviceType' : 'weightingParameters.serviceType:' + element.serviceType)).join(',') + ']')) + '::' + '[' + params.body.consumptionList.map(element => (element.serviceType === undefined ? 'consumptionList.serviceType' : 'consumptionList.serviceType:' + element.serviceType) + '::' + (element.uom === undefined ? 'consumptionList.uom' : 'consumptionList.uom:' + element.uom) + '::' + (element.value === undefined ? 'consumptionList.value' : 'consumptionList.value:' + element.value) + '::' + (element.frequency === undefined ? 'consumptionList.frequency' : 'consumptionList.frequency:' + element.frequency)).join(',') + ']' + '::' + (params.body.attributeValList === undefined ? undefined : ('[' + params.body.attributeValList.map(element => (element.attributeApiName === undefined ? 'attributeValList.attributeApiName' : 'attributeValList.attributeApiName:' + element.attributeApiName) + '::' + (element.attributeValue === undefined ? 'attributeValList.attributeValue' : 'attributeValList.attributeValue:' + element.attributeValue) + '::' + (element.serviceType === undefined ? 'attributeValList.serviceType' : 'attributeValList.serviceType:' + element.serviceType)).join(',') + ']')) + ')';
511
+ return keyPrefix + '::EUProductPricingDetailsOutput:(' + 'priceBookId:' + params.body.priceBookId + '::' + 'productId:' + params.body.productId + '::' + (params.body.weightingParameters === undefined ? undefined : ('[' + params.body.weightingParameters.map(element => (element.productCode === undefined ? 'weightingParameters.productCode' : 'weightingParameters.productCode:' + element.productCode) + '::' + (element.quantity === undefined ? 'weightingParameters.quantity' : 'weightingParameters.quantity:' + element.quantity) + '::' + (element.serviceType === undefined ? 'weightingParameters.serviceType' : 'weightingParameters.serviceType:' + element.serviceType)).join(',') + ']')) + '::' + '[' + params.body.consumptionList.map(element => (element.serviceType === undefined ? 'consumptionList.serviceType' : 'consumptionList.serviceType:' + element.serviceType) + '::' + (element.uom === undefined ? 'consumptionList.uom' : 'consumptionList.uom:' + element.uom) + '::' + (element.value === undefined ? 'consumptionList.value' : 'consumptionList.value:' + element.value) + '::' + (element.frequency === undefined ? 'consumptionList.frequency' : 'consumptionList.frequency:' + element.frequency)).join(',') + ']' + '::' + (params.body.attributeValList === undefined ? undefined : ('[' + params.body.attributeValList.map(element => (element.attributeApiName === undefined ? 'attributeValList.attributeApiName' : 'attributeValList.attributeApiName:' + element.attributeApiName) + '::' + (element.attributeValue === undefined ? 'attributeValList.attributeValue' : 'attributeValList.attributeValue:' + element.attributeValue) + '::' + (element.serviceType === undefined ? 'attributeValList.serviceType' : 'attributeValList.serviceType:' + element.serviceType)).join(',') + ']')) + ')';
512
512
  }
513
513
  function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
514
514
  getTypeCacheKeys$1(storeKeyMap, luvio, response, () => keyBuilder$3(luvio, resourceParams));
@@ -558,7 +558,6 @@ function createResourceRequest$1(config) {
558
558
 
559
559
  const adapterName$1 = 'getProductPricingDetails';
560
560
  const getProductPricingDetails_ConfigPropertyMetadata = [
561
- generateParamConfigMetadata('webStoreName', true, 2 /* Body */, 0 /* String */),
562
561
  generateParamConfigMetadata('priceBookId', true, 2 /* Body */, 0 /* String */),
563
562
  generateParamConfigMetadata('productId', true, 2 /* Body */, 0 /* String */),
564
563
  generateParamConfigMetadata('weightingParameters', false, 2 /* Body */, 4 /* Unsupported */, true),
@@ -1116,4 +1115,4 @@ withDefaultLuvio((luvio) => {
1116
1115
  });
1117
1116
 
1118
1117
  export { getProductPricingDetails, getProductPricingDetails_imperative, getProgramApplications, getProgramApplications_imperative };
1119
- // version: 1.451.0-dev1-70d3966695
1118
+ // version: 1.451.0-dev3-5cd7743c69
package/src/raml/api.raml CHANGED
@@ -214,9 +214,6 @@ types:
214
214
  description: Input representation for fetching product pricing details
215
215
  type: object
216
216
  properties:
217
- webStoreName:
218
- type: string
219
- description: Web Store Name
220
217
  priceBookId:
221
218
  type: string
222
219
  description: Price book used for pricing