@salesforce/lds-adapters-industries-epc 1.449.0 → 1.451.0-dev1

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.
@@ -1,9 +1,11 @@
1
+ import { SortRuleInputRepresentation as types_SortRuleInputRepresentation_SortRuleInputRepresentation } from '../types/SortRuleInputRepresentation';
1
2
  import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, FetchResponse as $64$luvio_engine_FetchResponse, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
2
3
  import { IndexConfigurationsUpdateOutputRepresentation as types_IndexConfigurationsUpdateOutputRepresentation_IndexConfigurationsUpdateOutputRepresentation } from '../types/IndexConfigurationsUpdateOutputRepresentation';
3
4
  export interface ResourceRequestConfig {
4
5
  body: {
5
6
  correlationId?: string;
6
7
  indexConfigurations?: Array<unknown>;
8
+ sortRules?: Array<types_SortRuleInputRepresentation_SortRuleInputRepresentation>;
7
9
  };
8
10
  }
9
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 = "11c41b712866ac241f0623b3f8e5fe80";
2
+ export declare const VERSION = "c35a249994f85f380c9b71991556af29";
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: FieldsInfoOutputRepresentation, existing: FieldsInfoOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FieldsInfoOutputRepresentationNormalized;
@@ -22,6 +22,8 @@ export interface FieldsInfoOutputRepresentationNormalized {
22
22
  isFacetableConfigurable?: boolean;
23
23
  /** isSearchableConfigurable */
24
24
  isSearchableConfigurable?: boolean;
25
+ /** isSortableConfigurable */
26
+ isSortableConfigurable?: boolean;
25
27
  /** label */
26
28
  label?: string;
27
29
  /** name */
@@ -40,6 +42,7 @@ export interface FieldsInfoOutputRepresentation {
40
42
  isConfigurable?: boolean;
41
43
  isFacetableConfigurable?: boolean;
42
44
  isSearchableConfigurable?: boolean;
45
+ isSortableConfigurable?: boolean;
43
46
  label?: string;
44
47
  name?: string;
45
48
  type?: string;
@@ -1,5 +1,6 @@
1
+ import { SortRuleInputRepresentation as SortRuleInputRepresentation_SortRuleInputRepresentation } from './SortRuleInputRepresentation';
1
2
  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 = "239955df85e1593260cb68b931704cb7";
3
+ export declare const VERSION = "4d5252125c62bcb5b282a296c82cdcc0";
3
4
  export declare function validate(obj: any, path?: string): TypeError | null;
4
5
  export declare const RepresentationType: string;
5
6
  export declare function normalize(input: IndexConfigurationCollectionInputRepresentation, existing: IndexConfigurationCollectionInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): IndexConfigurationCollectionInputRepresentationNormalized;
@@ -18,6 +19,8 @@ export interface IndexConfigurationCollectionInputRepresentationNormalized {
18
19
  correlationId?: string;
19
20
  /** indexConfigurations */
20
21
  indexConfigurations?: Array<unknown>;
22
+ /** sortRules */
23
+ sortRules?: Array<SortRuleInputRepresentation_SortRuleInputRepresentation>;
21
24
  }
22
25
  /**
23
26
  * Input Representation for collection of IndexConfigurations
@@ -28,4 +31,5 @@ export interface IndexConfigurationCollectionInputRepresentationNormalized {
28
31
  export interface IndexConfigurationCollectionInputRepresentation {
29
32
  correlationId?: string;
30
33
  indexConfigurations?: Array<unknown>;
34
+ sortRules?: Array<SortRuleInputRepresentation_SortRuleInputRepresentation>;
31
35
  }
@@ -1,9 +1,10 @@
1
1
  import { EpcErrorOutputRepresentation as EpcErrorOutputRepresentation_EpcErrorOutputRepresentation } from './EpcErrorOutputRepresentation';
2
2
  import { IndexConfigurationFieldOutputRepresentation as IndexConfigurationFieldOutputRepresentation_IndexConfigurationFieldOutputRepresentation } from './IndexConfigurationFieldOutputRepresentation';
3
3
  import { MetadataOutputRepresentation as MetadataOutputRepresentation_MetadataOutputRepresentation } from './MetadataOutputRepresentation';
4
+ import { SortRuleOutputRepresentation as SortRuleOutputRepresentation_SortRuleOutputRepresentation } from './SortRuleOutputRepresentation';
4
5
  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';
5
6
  export declare const TTL = 6000;
6
- export declare const VERSION = "61cfe23ab3d064d226af215df6681afc";
7
+ export declare const VERSION = "9bd54319c74dcb38555c4c75d6755ddc";
7
8
  export declare function validate(obj: any, path?: string): TypeError | null;
8
9
  export declare const RepresentationType: string;
9
10
  export declare function normalize(input: IndexConfigurationCollectionOutputRepresentation, existing: IndexConfigurationCollectionOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): IndexConfigurationCollectionOutputRepresentationNormalized;
@@ -25,6 +26,8 @@ export interface IndexConfigurationCollectionOutputRepresentationNormalized {
25
26
  /** index configurations */
26
27
  indexConfigurations?: Array<IndexConfigurationFieldOutputRepresentation_IndexConfigurationFieldOutputRepresentation>;
27
28
  metadata?: MetadataOutputRepresentation_MetadataOutputRepresentation;
29
+ /** sort rules for product search result ordering */
30
+ sortRules?: Array<SortRuleOutputRepresentation_SortRuleOutputRepresentation>;
28
31
  /** statusCode */
29
32
  statusCode?: string;
30
33
  }
@@ -39,5 +42,6 @@ export interface IndexConfigurationCollectionOutputRepresentation {
39
42
  errors?: Array<EpcErrorOutputRepresentation_EpcErrorOutputRepresentation>;
40
43
  indexConfigurations?: Array<IndexConfigurationFieldOutputRepresentation_IndexConfigurationFieldOutputRepresentation>;
41
44
  metadata?: MetadataOutputRepresentation_MetadataOutputRepresentation;
45
+ sortRules?: Array<SortRuleOutputRepresentation_SortRuleOutputRepresentation>;
42
46
  statusCode?: string;
43
47
  }
@@ -1,8 +1,9 @@
1
1
  import { EpcErrorOutputRepresentation as EpcErrorOutputRepresentation_EpcErrorOutputRepresentation } from './EpcErrorOutputRepresentation';
2
2
  import { IndexConfigurationFieldOutputRepresentation as IndexConfigurationFieldOutputRepresentation_IndexConfigurationFieldOutputRepresentation } from './IndexConfigurationFieldOutputRepresentation';
3
+ import { SortRuleOutputRepresentation as SortRuleOutputRepresentation_SortRuleOutputRepresentation } from './SortRuleOutputRepresentation';
3
4
  import { KeyMetadata as $64$luvio_engine_KeyMetadata, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Luvio as $64$luvio_engine_Luvio, IngestPath as $64$luvio_engine_IngestPath, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
4
5
  export declare const TTL = 6000;
5
- export declare const VERSION = "d8fe6f305d394e3ad9e8b064fd805a31";
6
+ export declare const VERSION = "00a23b86d5c84f19efaccb3d62fc4b49";
6
7
  export declare function validate(obj: any, path?: string): TypeError | null;
7
8
  export declare const RepresentationType: string;
8
9
  export interface KeyParams extends $64$luvio_engine_KeyMetadata {
@@ -32,6 +33,8 @@ export interface IndexConfigurationsUpdateOutputRepresentationNormalized {
32
33
  errors?: Array<EpcErrorOutputRepresentation_EpcErrorOutputRepresentation>;
33
34
  /** index configurations */
34
35
  indexConfigurations?: Array<IndexConfigurationFieldOutputRepresentation_IndexConfigurationFieldOutputRepresentation>;
36
+ /** sort rules for product search result ordering */
37
+ sortRules?: Array<SortRuleOutputRepresentation_SortRuleOutputRepresentation>;
35
38
  /** statusCode */
36
39
  statusCode: string;
37
40
  }
@@ -45,5 +48,6 @@ export interface IndexConfigurationsUpdateOutputRepresentation {
45
48
  correlationId?: string;
46
49
  errors?: Array<EpcErrorOutputRepresentation_EpcErrorOutputRepresentation>;
47
50
  indexConfigurations?: Array<IndexConfigurationFieldOutputRepresentation_IndexConfigurationFieldOutputRepresentation>;
51
+ sortRules?: Array<SortRuleOutputRepresentation_SortRuleOutputRepresentation>;
48
52
  statusCode: string;
49
53
  }
@@ -0,0 +1,43 @@
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 = "295c112aee977abf1a172679dce8e652";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: SortRuleInputRepresentation, existing: SortRuleInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SortRuleInputRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: SortRuleInputRepresentationNormalized, incoming: SortRuleInputRepresentationNormalized): boolean;
8
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: SortRuleInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Input representation for creating or updating a sort rule configuration
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface SortRuleInputRepresentationNormalized {
17
+ /** Custom field ID for PRODUCT2_BASED or CUSTOM sort rules */
18
+ sortCustomFieldId?: string;
19
+ /** Sort direction: ASCENDING, DESCENDING, or DEFAULT. Defaults applied based on sort rule type. */
20
+ sortDirection?: string;
21
+ /** Label suffix displayed in UI (e.g., LOWHIGH, HIGHLOW, ASCENDING). Defaults applied based on direction. */
22
+ sortLabelSuffix?: string;
23
+ /** Display rank/order of the sort rule. Must be sequential 1..N with no gaps. */
24
+ sortRuleRank?: number;
25
+ /** Type of sort rule: RELEVANCY, PRODUCT2_BASED, or CUSTOM */
26
+ sortRuleType?: string;
27
+ /** Standard Product2 field name for PRODUCT2_BASED sort rules (e.g., PRICE, NAME) */
28
+ standardField?: string;
29
+ }
30
+ /**
31
+ * Input representation for creating or updating a sort rule configuration
32
+ *
33
+ * Keys:
34
+ * (none)
35
+ */
36
+ export interface SortRuleInputRepresentation {
37
+ sortCustomFieldId?: string;
38
+ sortDirection?: string;
39
+ sortLabelSuffix?: string;
40
+ sortRuleRank?: number;
41
+ sortRuleType?: string;
42
+ standardField?: string;
43
+ }
@@ -0,0 +1,46 @@
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 = "a52da85d8a9b820e35d75ad0a862071e";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: SortRuleOutputRepresentation, existing: SortRuleOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SortRuleOutputRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: SortRuleOutputRepresentationNormalized, incoming: SortRuleOutputRepresentationNormalized): boolean;
8
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
9
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: SortRuleOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Sort rule configuration for product search results ordering
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface SortRuleOutputRepresentationNormalized {
17
+ /** Unique identifier for the sort rule */
18
+ id?: string;
19
+ /** Custom field ID for PRODUCT2_BASED or CUSTOM sort rules */
20
+ sortCustomFieldId?: string;
21
+ /** Sort direction: ASCENDING, DESCENDING, or DEFAULT */
22
+ sortDirection?: string;
23
+ /** Label suffix displayed in UI for the sort option */
24
+ sortLabelSuffix?: string;
25
+ /** Display rank/order of the sort rule (1-15) */
26
+ sortRuleRank?: number;
27
+ /** Type of sort rule: RELEVANCY, PRODUCT2_BASED, or CUSTOM */
28
+ sortRuleType?: string;
29
+ /** Standard Product2 field name for PRODUCT2_BASED sort rules */
30
+ standardField?: string;
31
+ }
32
+ /**
33
+ * Sort rule configuration for product search results ordering
34
+ *
35
+ * Keys:
36
+ * (none)
37
+ */
38
+ export interface SortRuleOutputRepresentation {
39
+ id?: string;
40
+ sortCustomFieldId?: string;
41
+ sortDirection?: string;
42
+ sortLabelSuffix?: string;
43
+ sortRuleRank?: number;
44
+ sortRuleType?: string;
45
+ standardField?: string;
46
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-epc",
3
- "version": "1.449.0",
3
+ "version": "1.451.0-dev1",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "APIs for EPCNext project",
6
6
  "main": "dist/es/es2018/industries-epc.js",
@@ -34,17 +34,16 @@
34
34
  "build": "yarn build:services",
35
35
  "build:raml": "luvio generate src/raml/luvio.raml src/generated -p '../lds-compiler-plugins'",
36
36
  "build:services": "rollup --bundleConfigAsCjs --config rollup.config.js",
37
- "clean": "rm -rf dist sfdc src/generated karma/dist",
37
+ "clean": "rm -rf dist sfdc src/generated",
38
38
  "release:core": "../../scripts/release/core.js --adapter=lds-adapters-industries-epc",
39
39
  "release:corejar": "yarn build && packages/core-build/scripts/core.js --adapter=lds-adapters-industries-epc",
40
40
  "test:unit": "jest --config=./jest.config.js"
41
41
  },
42
42
  "dependencies": {
43
- "@salesforce/lds-bindings": "^1.449.0"
43
+ "@salesforce/lds-bindings": "^1.451.0-dev1"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.449.0",
47
- "@salesforce/lds-karma": "^1.449.0"
46
+ "@salesforce/lds-compiler-plugins": "^1.451.0-dev1"
48
47
  },
49
48
  "nx": {
50
49
  "targets": {
@@ -58,11 +57,6 @@
58
57
  "outputs": [
59
58
  "{projectRoot}/src/generated"
60
59
  ]
61
- },
62
- "build:karma": {
63
- "outputs": [
64
- "{projectRoot}/karma/dist"
65
- ]
66
60
  }
67
61
  }
68
62
  },