@salesforce/lds-adapters-industries-epc 1.265.0 → 1.266.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.
@@ -0,0 +1,29 @@
1
+ import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
2
+ import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
3
+ import { ResourceRequestConfig as resources_getConnectPcmConfigurationRuleConfigRuleMetadataByUsageTypeAndUsageSubType_ResourceRequestConfig } from '../resources/getConnectPcmConfigurationRuleConfigRuleMetadataByUsageTypeAndUsageSubType';
4
+ import { ConfigRuleMetadataOutputRepresentation as types_ConfigRuleMetadataOutputRepresentation_ConfigRuleMetadataOutputRepresentation } from '../types/ConfigRuleMetadataOutputRepresentation';
5
+ export declare const adapterName = "getConfigRuleMetadata";
6
+ export declare const getConfigRuleMetadata_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
+ export declare const getConfigRuleMetadata_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
+ export interface GetConfigRuleMetadataConfig {
9
+ usageType: string;
10
+ usageSubType: string;
11
+ correlationId?: string;
12
+ }
13
+ export declare const createResourceParams: (config: GetConfigRuleMetadataConfig) => resources_getConnectPcmConfigurationRuleConfigRuleMetadataByUsageTypeAndUsageSubType_ResourceRequestConfig;
14
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetConfigRuleMetadataConfig): string;
15
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetConfigRuleMetadataConfig): $64$luvio_engine_NormalizedKeyMetadata;
16
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetConfigRuleMetadataConfig>): adapter$45$utils_Untrusted<GetConfigRuleMetadataConfig>;
17
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetConfigRuleMetadataConfig | null;
18
+ export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetConfigRuleMetadataConfig): $64$luvio_engine_Fragment;
19
+ export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetConfigRuleMetadataConfig): $64$luvio_engine_Snapshot<types_ConfigRuleMetadataOutputRepresentation_ConfigRuleMetadataOutputRepresentation, any>;
20
+ export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetConfigRuleMetadataConfig, resourceParams: resources_getConnectPcmConfigurationRuleConfigRuleMetadataByUsageTypeAndUsageSubType_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ConfigRuleMetadataOutputRepresentation_ConfigRuleMetadataOutputRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_ConfigRuleMetadataOutputRepresentation_ConfigRuleMetadataOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ConfigRuleMetadataOutputRepresentation_ConfigRuleMetadataOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_ConfigRuleMetadataOutputRepresentation_ConfigRuleMetadataOutputRepresentation, any>>;
21
+ export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetConfigRuleMetadataConfig, resourceParams: resources_getConnectPcmConfigurationRuleConfigRuleMetadataByUsageTypeAndUsageSubType_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
22
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetConfigRuleMetadataConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_ConfigRuleMetadataOutputRepresentation_ConfigRuleMetadataOutputRepresentation, any>>;
23
+ export type BuildSnapshotContext = {
24
+ luvio: $64$luvio_engine_Luvio;
25
+ config: GetConfigRuleMetadataConfig;
26
+ };
27
+ export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_ConfigRuleMetadataOutputRepresentation_ConfigRuleMetadataOutputRepresentation, any>>;
28
+ export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_ConfigRuleMetadataOutputRepresentation_ConfigRuleMetadataOutputRepresentation>): $64$luvio_engine_Snapshot<types_ConfigRuleMetadataOutputRepresentation_ConfigRuleMetadataOutputRepresentation, any>;
29
+ export declare const getConfigRuleMetadataAdapterFactory: $64$luvio_engine_AdapterFactory<GetConfigRuleMetadataConfig, types_ConfigRuleMetadataOutputRepresentation_ConfigRuleMetadataOutputRepresentation>;
@@ -4,3 +4,4 @@ export { getProductFlowByProductIdAdapterFactory } from '../adapters/getProductF
4
4
  export { getProductAttributesByProductIdAdapterFactory } from '../adapters/getProductAttributesByProductId';
5
5
  export { getProductByIdAdapterFactory } from '../adapters/getProductById';
6
6
  export { getContextDefinitionInfoByIdAdapterFactory } from '../adapters/getContextDefinitionInfoById';
7
+ export { getConfigRuleMetadataAdapterFactory } from '../adapters/getConfigRuleMetadata';
@@ -1,11 +1,13 @@
1
1
  declare let createProductAttributeDefinition: any;
2
2
  declare let deactivate: any;
3
+ declare let getConfigRuleMetadata: any;
3
4
  declare let getContextDefinitionInfoById: any;
4
5
  declare let getProductAttributesByProductId: any;
5
6
  declare let getProductById: any;
6
7
  declare let getProductFlowByProductId: any;
8
+ declare let getConfigRuleMetadata_imperative: any;
7
9
  declare let getContextDefinitionInfoById_imperative: any;
8
10
  declare let getProductAttributesByProductId_imperative: any;
9
11
  declare let getProductById_imperative: any;
10
12
  declare let getProductFlowByProductId_imperative: any;
11
- export { createProductAttributeDefinition, deactivate, getContextDefinitionInfoById, getProductAttributesByProductId, getProductById, getProductFlowByProductId, getContextDefinitionInfoById_imperative, getProductAttributesByProductId_imperative, getProductById_imperative, getProductFlowByProductId_imperative, };
13
+ export { createProductAttributeDefinition, deactivate, getConfigRuleMetadata, getContextDefinitionInfoById, getProductAttributesByProductId, getProductById, getProductFlowByProductId, getConfigRuleMetadata_imperative, getContextDefinitionInfoById_imperative, getProductAttributesByProductId_imperative, getProductById_imperative, getProductFlowByProductId_imperative, };
@@ -0,0 +1,19 @@
1
+ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, FetchResponse as $64$luvio_engine_FetchResponse, SnapshotRefresh as $64$luvio_engine_SnapshotRefresh, FulfilledSnapshot as $64$luvio_engine_FulfilledSnapshot, StaleSnapshot as $64$luvio_engine_StaleSnapshot, PendingSnapshot as $64$luvio_engine_PendingSnapshot, ErrorResponse as $64$luvio_engine_ErrorResponse, ErrorSnapshot as $64$luvio_engine_ErrorSnapshot, ResourceRequest as $64$luvio_engine_ResourceRequest } from '@luvio/engine';
2
+ import { ConfigRuleMetadataOutputRepresentation as types_ConfigRuleMetadataOutputRepresentation_ConfigRuleMetadataOutputRepresentation } from '../types/ConfigRuleMetadataOutputRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ urlParams: {
5
+ usageType: string;
6
+ usageSubType: string;
7
+ };
8
+ queryParams: {
9
+ correlationId?: string;
10
+ };
11
+ }
12
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
13
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
14
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
15
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ConfigRuleMetadataOutputRepresentation_ConfigRuleMetadataOutputRepresentation): void;
16
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ConfigRuleMetadataOutputRepresentation_ConfigRuleMetadataOutputRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ConfigRuleMetadataOutputRepresentation_ConfigRuleMetadataOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ConfigRuleMetadataOutputRepresentation_ConfigRuleMetadataOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ConfigRuleMetadataOutputRepresentation_ConfigRuleMetadataOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ConfigRuleMetadataOutputRepresentation_ConfigRuleMetadataOutputRepresentation, any>;
17
+ export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ConfigRuleMetadataOutputRepresentation_ConfigRuleMetadataOutputRepresentation>): $64$luvio_engine_ErrorSnapshot;
18
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
19
+ export default createResourceRequest;
@@ -0,0 +1,31 @@
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 = "40e49422fe2ac0e51a2199f3f0785255";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: ConfigRuleHashColumnInfoOutputRepresentation, existing: ConfigRuleHashColumnInfoOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ConfigRuleHashColumnInfoOutputRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: ConfigRuleHashColumnInfoOutputRepresentationNormalized, incoming: ConfigRuleHashColumnInfoOutputRepresentationNormalized): 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: ConfigRuleHashColumnInfoOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Response Model for the config rule hash column details
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface ConfigRuleHashColumnInfoOutputRepresentationNormalized {
17
+ /** Config Rule Hash Column Datatype */
18
+ datatype?: string;
19
+ /** Config Rule Hash Column Title */
20
+ title?: string;
21
+ }
22
+ /**
23
+ * Response Model for the config rule hash column details
24
+ *
25
+ * Keys:
26
+ * (none)
27
+ */
28
+ export interface ConfigRuleHashColumnInfoOutputRepresentation {
29
+ datatype?: string;
30
+ title?: string;
31
+ }
@@ -0,0 +1,29 @@
1
+ import { ConfigRuleHashColumnInfoOutputRepresentation as ConfigRuleHashColumnInfoOutputRepresentation_ConfigRuleHashColumnInfoOutputRepresentation } from './ConfigRuleHashColumnInfoOutputRepresentation';
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';
3
+ export declare const VERSION = "0fba68b8478d95507f178963a7c3ae29";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: ConfigRuleHashColumnsInfoOutputRepresentation, existing: ConfigRuleHashColumnsInfoOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ConfigRuleHashColumnsInfoOutputRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: ConfigRuleHashColumnsInfoOutputRepresentationNormalized, incoming: ConfigRuleHashColumnsInfoOutputRepresentationNormalized): boolean;
9
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
10
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ConfigRuleHashColumnsInfoOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Response Model for the list of Config Rule HashColumns
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface ConfigRuleHashColumnsInfoOutputRepresentationNormalized {
18
+ /** Config Rule Hash Column List */
19
+ configRuleHashColumnsInfo: Array<ConfigRuleHashColumnInfoOutputRepresentation_ConfigRuleHashColumnInfoOutputRepresentation>;
20
+ }
21
+ /**
22
+ * Response Model for the list of Config Rule HashColumns
23
+ *
24
+ * Keys:
25
+ * (none)
26
+ */
27
+ export interface ConfigRuleHashColumnsInfoOutputRepresentation {
28
+ configRuleHashColumnsInfo: Array<ConfigRuleHashColumnInfoOutputRepresentation_ConfigRuleHashColumnInfoOutputRepresentation>;
29
+ }
@@ -0,0 +1,46 @@
1
+ import { ConfigRuleHashColumnsInfoOutputRepresentation as ConfigRuleHashColumnsInfoOutputRepresentation_ConfigRuleHashColumnsInfoOutputRepresentation } from './ConfigRuleHashColumnsInfoOutputRepresentation';
2
+ import { ContextNodesInfoOutputRepresentation as ContextNodesInfoOutputRepresentation_ContextNodesInfoOutputRepresentation } from './ContextNodesInfoOutputRepresentation';
3
+ import { Status as Status_Status } from './Status';
4
+ 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
+ export declare const TTL = 6000;
6
+ export declare const VERSION = "a6f17b790f912a982a35bff584a89eb6";
7
+ export declare function validate(obj: any, path?: string): TypeError | null;
8
+ export declare const RepresentationType: string;
9
+ export declare function normalize(input: ConfigRuleMetadataOutputRepresentation, existing: ConfigRuleMetadataOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ConfigRuleMetadataOutputRepresentationNormalized;
10
+ export declare const select: () => $64$luvio_engine_BaseFragment;
11
+ export declare function equals(existing: ConfigRuleMetadataOutputRepresentationNormalized, incoming: ConfigRuleMetadataOutputRepresentationNormalized): boolean;
12
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
13
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ConfigRuleMetadataOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
14
+ /**
15
+ * Response Model for the Context Definition API
16
+ *
17
+ * Keys:
18
+ * (none)
19
+ */
20
+ export interface ConfigRuleMetadataOutputRepresentationNormalized {
21
+ /** Config Rule Hash Columns */
22
+ configRuleHashColumns?: ConfigRuleHashColumnsInfoOutputRepresentation_ConfigRuleHashColumnsInfoOutputRepresentation;
23
+ /** Context Definition Id */
24
+ contextDefinitionId?: string;
25
+ /** Context Definition Name */
26
+ contextDefinitionName?: string;
27
+ contextNodes?: ContextNodesInfoOutputRepresentation_ContextNodesInfoOutputRepresentation;
28
+ /** Correlation ID associated to the request */
29
+ correlationId?: string;
30
+ /** API result status */
31
+ status?: Status_Status;
32
+ }
33
+ /**
34
+ * Response Model for the Context Definition API
35
+ *
36
+ * Keys:
37
+ * (none)
38
+ */
39
+ export interface ConfigRuleMetadataOutputRepresentation {
40
+ configRuleHashColumns?: ConfigRuleHashColumnsInfoOutputRepresentation_ConfigRuleHashColumnsInfoOutputRepresentation;
41
+ contextDefinitionId?: string;
42
+ contextDefinitionName?: string;
43
+ contextNodes?: ContextNodesInfoOutputRepresentation_ContextNodesInfoOutputRepresentation;
44
+ correlationId?: string;
45
+ status?: Status_Status;
46
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-industries-epc",
3
- "version": "1.265.0",
3
+ "version": "1.266.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",
@@ -39,14 +39,15 @@
39
39
  "release:core": "../../scripts/release/core.js --adapter=lds-adapters-industries-epc",
40
40
  "release:corejar": "yarn build && packages/core-build/scripts/core.js --adapter=lds-adapters-industries-epc",
41
41
  "start": "nx build:karma && karma start",
42
- "test": "nx build:karma && karma start --single-run"
42
+ "test": "nx build:karma && karma start --single-run",
43
+ "test:unit": "jest --config=./jest.config.js"
43
44
  },
44
45
  "dependencies": {
45
- "@salesforce/lds-bindings": "^1.265.0"
46
+ "@salesforce/lds-bindings": "^1.266.0-dev1"
46
47
  },
47
48
  "devDependencies": {
48
- "@salesforce/lds-compiler-plugins": "^1.265.0",
49
- "@salesforce/lds-karma": "^1.265.0"
49
+ "@salesforce/lds-compiler-plugins": "^1.266.0-dev1",
50
+ "@salesforce/lds-karma": "^1.266.0-dev1"
50
51
  },
51
52
  "nx": {
52
53
  "targets": {