@salesforce/lds-adapters-service-serviceplan 1.308.0-dev1 → 1.308.0-dev2

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.
Files changed (22) hide show
  1. package/dist/es/es2018/service-serviceplan.js +673 -286
  2. package/dist/es/es2018/types/src/generated/adapters/executeServicePlan.d.ts +4 -6
  3. package/dist/es/es2018/types/src/generated/adapters/generateSync.d.ts +3 -3
  4. package/dist/es/es2018/types/src/generated/resources/{getConnectServicePlanExecuteByGeneratedPlanId.d.ts → getConnectServicePlanExecuteByPlanOrStepId.d.ts} +1 -1
  5. package/dist/es/es2018/types/src/generated/resources/{postConnectServicePlanGenerateSyncByRecordId.d.ts → postConnectServicePlanGenerationRequests.d.ts} +2 -2
  6. package/dist/es/es2018/types/src/generated/resources/{putConnectServicePlanExecuteByGeneratedPlanId.d.ts → putConnectServicePlanExecuteByPlanOrStepId.d.ts} +2 -4
  7. package/dist/es/es2018/types/src/generated/types/ServicePlanDataInputRepresentation.d.ts +28 -0
  8. package/dist/es/es2018/types/src/generated/types/ServicePlanDataOutputRepresentation.d.ts +28 -0
  9. package/dist/es/es2018/types/src/generated/types/ServicePlanExecutionInputRepresentation.d.ts +4 -10
  10. package/dist/es/es2018/types/src/generated/types/ServicePlanExecutionOutputRepresentation.d.ts +11 -16
  11. package/dist/es/es2018/types/src/generated/types/ServicePlanExecutionSummaryRepresentation.d.ts +2 -11
  12. package/dist/es/es2018/types/src/generated/types/ServicePlanGenerationInputParamRepresentation.d.ts +2 -2
  13. package/dist/es/es2018/types/src/generated/types/ServicePlanGenerationSessionInformationOutputRepresentation.d.ts +13 -19
  14. package/dist/es/es2018/types/src/generated/types/ServicePlanGenerationSyncOutputRepresentation.d.ts +25 -7
  15. package/dist/es/es2018/types/src/generated/types/ServicePlanOutputRepresentation.d.ts +27 -20
  16. package/dist/es/es2018/types/src/generated/types/ServicePlanStepExecutionStatusRepresentation.d.ts +31 -0
  17. package/dist/es/es2018/types/src/generated/types/ServicePlanStepRepresentation.d.ts +14 -15
  18. package/package.json +3 -3
  19. package/sfdc/index.js +674 -287
  20. package/src/raml/api.raml +122 -90
  21. package/src/raml/luvio.raml +8 -4
  22. package/dist/es/es2018/types/src/generated/types/ServicePlanStepAttributeRepresentation.d.ts +0 -31
@@ -1,17 +1,15 @@
1
1
  import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
2
2
  import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
3
- import { ResourceRequestConfig as resources_putConnectServicePlanExecuteByGeneratedPlanId_ResourceRequestConfig } from '../resources/putConnectServicePlanExecuteByGeneratedPlanId';
3
+ import { ResourceRequestConfig as resources_putConnectServicePlanExecuteByPlanOrStepId_ResourceRequestConfig } from '../resources/putConnectServicePlanExecuteByPlanOrStepId';
4
4
  import { ServicePlanExecutionOutputRepresentation as types_ServicePlanExecutionOutputRepresentation_ServicePlanExecutionOutputRepresentation } from '../types/ServicePlanExecutionOutputRepresentation';
5
5
  export declare const adapterName = "executeServicePlan";
6
6
  export declare const executeServicePlan_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
7
  export declare const executeServicePlan_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
8
  export interface ExecuteServicePlanConfig {
9
- generatedPlanId: string;
10
- intent: string;
11
- planId: string;
12
- sessionId: string;
9
+ planOrStepId: string;
10
+ action: string;
13
11
  }
14
- export declare const createResourceParams: (config: ExecuteServicePlanConfig) => resources_putConnectServicePlanExecuteByGeneratedPlanId_ResourceRequestConfig;
12
+ export declare const createResourceParams: (config: ExecuteServicePlanConfig) => resources_putConnectServicePlanExecuteByPlanOrStepId_ResourceRequestConfig;
15
13
  export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<ExecuteServicePlanConfig>): adapter$45$utils_Untrusted<ExecuteServicePlanConfig>;
16
14
  export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): ExecuteServicePlanConfig | null;
17
15
  export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: ExecuteServicePlanConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_ServicePlanExecutionOutputRepresentation_ServicePlanExecutionOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ServicePlanExecutionOutputRepresentation_ServicePlanExecutionOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_ServicePlanExecutionOutputRepresentation_ServicePlanExecutionOutputRepresentation, any>>;
@@ -1,19 +1,19 @@
1
1
  import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
2
2
  import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
3
- import { ResourceRequestConfig as resources_postConnectServicePlanGenerateSyncByRecordId_ResourceRequestConfig } from '../resources/postConnectServicePlanGenerateSyncByRecordId';
3
+ import { ResourceRequestConfig as resources_postConnectServicePlanGenerationRequests_ResourceRequestConfig } from '../resources/postConnectServicePlanGenerationRequests';
4
4
  import { ServicePlanGenerationSyncOutputRepresentation as types_ServicePlanGenerationSyncOutputRepresentation_ServicePlanGenerationSyncOutputRepresentation } from '../types/ServicePlanGenerationSyncOutputRepresentation';
5
5
  export declare const adapterName = "generateSync";
6
6
  export declare const generateSync_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
7
  export declare const generateSync_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
8
  export interface GenerateSyncConfig {
9
- recordId: string;
9
+ recordId?: string;
10
10
  additionalContext: {
11
11
  [key: string]: string;
12
12
  };
13
13
  mode: string;
14
14
  source: string;
15
15
  }
16
- export declare const createResourceParams: (config: GenerateSyncConfig) => resources_postConnectServicePlanGenerateSyncByRecordId_ResourceRequestConfig;
16
+ export declare const createResourceParams: (config: GenerateSyncConfig) => resources_postConnectServicePlanGenerationRequests_ResourceRequestConfig;
17
17
  export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GenerateSyncConfig>): adapter$45$utils_Untrusted<GenerateSyncConfig>;
18
18
  export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GenerateSyncConfig | null;
19
19
  export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GenerateSyncConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_ServicePlanGenerationSyncOutputRepresentation_ServicePlanGenerationSyncOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ServicePlanGenerationSyncOutputRepresentation_ServicePlanGenerationSyncOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_ServicePlanGenerationSyncOutputRepresentation_ServicePlanGenerationSyncOutputRepresentation, any>>;
@@ -2,7 +2,7 @@ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment,
2
2
  import { ServicePlanExecutionOutputRepresentation as types_ServicePlanExecutionOutputRepresentation_ServicePlanExecutionOutputRepresentation } from '../types/ServicePlanExecutionOutputRepresentation';
3
3
  export interface ResourceRequestConfig {
4
4
  urlParams: {
5
- generatedPlanId: string;
5
+ planOrStepId: string;
6
6
  };
7
7
  }
8
8
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
@@ -1,8 +1,8 @@
1
1
  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
2
  import { ServicePlanGenerationSyncOutputRepresentation as types_ServicePlanGenerationSyncOutputRepresentation_ServicePlanGenerationSyncOutputRepresentation } from '../types/ServicePlanGenerationSyncOutputRepresentation';
3
3
  export interface ResourceRequestConfig {
4
- urlParams: {
5
- recordId: string;
4
+ queryParams: {
5
+ recordId?: string;
6
6
  };
7
7
  body: {
8
8
  additionalContext: {
@@ -2,12 +2,10 @@ import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment,
2
2
  import { ServicePlanExecutionOutputRepresentation as types_ServicePlanExecutionOutputRepresentation_ServicePlanExecutionOutputRepresentation } from '../types/ServicePlanExecutionOutputRepresentation';
3
3
  export interface ResourceRequestConfig {
4
4
  urlParams: {
5
- generatedPlanId: string;
5
+ planOrStepId: string;
6
6
  };
7
7
  body: {
8
- intent: string;
9
- planId: string;
10
- sessionId: string;
8
+ action: string;
11
9
  };
12
10
  }
13
11
  export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
@@ -0,0 +1,28 @@
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 = "b1045d5ac0f4c630bf641233be756c5b";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: ServicePlanDataInputRepresentation, existing: ServicePlanDataInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ServicePlanDataInputRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: ServicePlanDataInputRepresentationNormalized, incoming: ServicePlanDataInputRepresentationNormalized): 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: ServicePlanDataInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Represents the Input for gathering the record details required to generate the Service Plan
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface ServicePlanDataInputRepresentationNormalized {
17
+ /** Record ID */
18
+ recordId: string;
19
+ }
20
+ /**
21
+ * Represents the Input for gathering the record details required to generate the Service Plan
22
+ *
23
+ * Keys:
24
+ * (none)
25
+ */
26
+ export interface ServicePlanDataInputRepresentation {
27
+ recordId: string;
28
+ }
@@ -0,0 +1,28 @@
1
+ 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';
2
+ export declare const VERSION = "c273e66a21ed6eb76371941fa0c58cc6";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: ServicePlanDataOutputRepresentation, existing: ServicePlanDataOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ServicePlanDataOutputRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_BaseFragment;
7
+ export declare function equals(existing: ServicePlanDataOutputRepresentationNormalized, incoming: ServicePlanDataOutputRepresentationNormalized): 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: ServicePlanDataOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Represent the service plan data
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface ServicePlanDataOutputRepresentationNormalized {
17
+ /** The Record details */
18
+ recordDetails: string;
19
+ }
20
+ /**
21
+ * Represent the service plan data
22
+ *
23
+ * Keys:
24
+ * (none)
25
+ */
26
+ export interface ServicePlanDataOutputRepresentation {
27
+ recordDetails: string;
28
+ }
@@ -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 = "6243c03d8abfe2f4e8e84087d3a5caa4";
2
+ export declare const VERSION = "ff8e0a870a89909f3b39d342a8f6a1cd";
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: ServicePlanExecutionInputRepresentation, existing: ServicePlanExecutionInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ServicePlanExecutionInputRepresentationNormalized;
@@ -14,12 +14,8 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
14
14
  * (none)
15
15
  */
16
16
  export interface ServicePlanExecutionInputRepresentationNormalized {
17
- /** Intent */
18
- intent: string;
19
- /** Copilot planId */
20
- planId: string;
21
- /** Copilot SessionId */
22
- sessionId: string;
17
+ /** Action to be performed by the API */
18
+ action: string;
23
19
  }
24
20
  /**
25
21
  * Represents a generated service plan input context required for service plan execution
@@ -28,7 +24,5 @@ export interface ServicePlanExecutionInputRepresentationNormalized {
28
24
  * (none)
29
25
  */
30
26
  export interface ServicePlanExecutionInputRepresentation {
31
- intent: string;
32
- planId: string;
33
- sessionId: string;
27
+ action: string;
34
28
  }
@@ -1,6 +1,6 @@
1
1
  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, ResourceIngest as $64$luvio_engine_ResourceIngest, FragmentSelection as $64$luvio_engine_FragmentSelection, LinkSelection as $64$luvio_engine_LinkSelection, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
2
- import { ServicePlanExecutionSummaryRepresentation as ServicePlanExecutionSummaryRepresentation_ServicePlanExecutionSummaryRepresentation } from './ServicePlanExecutionSummaryRepresentation';
3
- export declare const VERSION = "7fa20e4b8a4c0391c7b39e1465f0b813";
2
+ import { ServicePlanStepExecutionStatusRepresentation as ServicePlanStepExecutionStatusRepresentation_ServicePlanStepExecutionStatusRepresentation } from './ServicePlanStepExecutionStatusRepresentation';
3
+ export declare const VERSION = "f3a6de28bf56634adca757ba07accf43";
4
4
  export declare function validate(obj: any, path?: string): TypeError | null;
5
5
  export declare const RepresentationType: string;
6
6
  export interface KeyParams extends $64$luvio_engine_KeyMetadata {
@@ -14,12 +14,12 @@ export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object
14
14
  export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: ServicePlanExecutionOutputRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
15
15
  export declare function normalize(input: ServicePlanExecutionOutputRepresentation, existing: ServicePlanExecutionOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ServicePlanExecutionOutputRepresentationNormalized;
16
16
  export interface DynamicIngestParams {
17
- servicePlan: $64$luvio_engine_ResourceIngest;
17
+ planSteps: $64$luvio_engine_ResourceIngest;
18
18
  }
19
19
  export declare function dynamicNormalize(ingestParams: DynamicIngestParams): (input: ServicePlanExecutionOutputRepresentation, existing: ServicePlanExecutionOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number) => ServicePlanExecutionOutputRepresentationNormalized;
20
20
  export declare const select: () => $64$luvio_engine_FragmentSelection;
21
21
  export interface DynamicSelectParams {
22
- servicePlan?: $64$luvio_engine_LinkSelection;
22
+ planSteps?: $64$luvio_engine_LinkSelection;
23
23
  }
24
24
  export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
25
25
  export declare function equals(existing: ServicePlanExecutionOutputRepresentationNormalized, incoming: ServicePlanExecutionOutputRepresentationNormalized): boolean;
@@ -30,26 +30,21 @@ export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$lu
30
30
  * Represent the service plan execution result
31
31
  *
32
32
  * Keys:
33
- * id (string): reason
33
+ * id (string): executionStatus
34
34
  */
35
35
  export interface ServicePlanExecutionOutputRepresentationNormalized {
36
- /** The reason of the service plan execution request job failure */
37
- reason: string;
38
- /** The details of the service plan execution request job failure */
39
- reasonDetails: string;
40
- servicePlan: $64$luvio_engine_StoreLink;
41
36
  /** The Status of the service plan execution request job */
42
- status: string;
37
+ executionStatus: string;
38
+ /** All the step status */
39
+ planSteps: Array<$64$luvio_engine_StoreLink>;
43
40
  }
44
41
  /**
45
42
  * Represent the service plan execution result
46
43
  *
47
44
  * Keys:
48
- * id (string): reason
45
+ * id (string): executionStatus
49
46
  */
50
47
  export interface ServicePlanExecutionOutputRepresentation {
51
- reason: string;
52
- reasonDetails: string;
53
- servicePlan: ServicePlanExecutionSummaryRepresentation_ServicePlanExecutionSummaryRepresentation;
54
- status: string;
48
+ executionStatus: string;
49
+ planSteps: Array<ServicePlanStepExecutionStatusRepresentation_ServicePlanStepExecutionStatusRepresentation>;
55
50
  }
@@ -1,22 +1,13 @@
1
- import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, ResourceIngest as $64$luvio_engine_ResourceIngest, FragmentSelection as $64$luvio_engine_FragmentSelection, LinkSelection as $64$luvio_engine_LinkSelection, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
1
  import { ServicePlanStepExecutionSummaryRepresentation as ServicePlanStepExecutionSummaryRepresentation_ServicePlanStepExecutionSummaryRepresentation } from './ServicePlanStepExecutionSummaryRepresentation';
2
+ 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, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
3
  export declare const VERSION = "a662e9bd461c05a065cae3077b4084a7";
4
4
  export declare function validate(obj: any, path?: string): TypeError | null;
5
5
  export declare const RepresentationType: string;
6
6
  export declare function normalize(input: ServicePlanExecutionSummaryRepresentation, existing: ServicePlanExecutionSummaryRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ServicePlanExecutionSummaryRepresentationNormalized;
7
- export interface DynamicIngestParams {
8
- steps: $64$luvio_engine_ResourceIngest;
9
- }
10
- export declare function dynamicNormalize(ingestParams: DynamicIngestParams): (input: ServicePlanExecutionSummaryRepresentation, existing: ServicePlanExecutionSummaryRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number) => ServicePlanExecutionSummaryRepresentationNormalized;
11
- export declare const select: () => $64$luvio_engine_FragmentSelection;
12
- export interface DynamicSelectParams {
13
- steps?: $64$luvio_engine_LinkSelection;
14
- }
15
- export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
7
+ export declare const select: () => $64$luvio_engine_BaseFragment;
16
8
  export declare function equals(existing: ServicePlanExecutionSummaryRepresentationNormalized, incoming: ServicePlanExecutionSummaryRepresentationNormalized): boolean;
17
9
  export declare const ingest: $64$luvio_engine_ResourceIngest;
18
10
  export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ServicePlanExecutionSummaryRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
19
- export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$luvio_engine_ResourceIngest;
20
11
  /**
21
12
  * Represents the execution summary of a Service Plan
22
13
  *
@@ -1,9 +1,9 @@
1
- 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';
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
2
  export declare const VERSION = "a7d2c323117124a2042614fe073adde7";
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: ServicePlanGenerationInputParamRepresentation, existing: ServicePlanGenerationInputParamRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ServicePlanGenerationInputParamRepresentationNormalized;
6
- export declare const select: () => $64$luvio_engine_BaseFragment;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
7
  export declare function equals(existing: ServicePlanGenerationInputParamRepresentationNormalized, incoming: ServicePlanGenerationInputParamRepresentationNormalized): boolean;
8
8
  export declare const ingest: $64$luvio_engine_ResourceIngest;
9
9
  export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ServicePlanGenerationInputParamRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
@@ -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, 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';
2
- export declare const VERSION = "a9e14aa8a6de4f249435bead28f3d214";
2
+ export declare const VERSION = "51303030abd63b4357f7716a23518ffb";
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: ServicePlanGenerationSessionInformationOutputRepresentation, existing: ServicePlanGenerationSessionInformationOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ServicePlanGenerationSessionInformationOutputRepresentationNormalized;
@@ -14,18 +14,14 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
14
14
  * (none)
15
15
  */
16
16
  export interface ServicePlanGenerationSessionInformationOutputRepresentationNormalized {
17
- /** Bot id used for invoking the planner service */
18
- botId: string;
19
- /** Bot id used for invoking the planner service */
20
- botVersionId: string;
21
- /** Client Feature Id used for feedback on the plan generation */
22
- clientFeatureId: string;
23
- /** Generations Id used for feedback on the plan generation */
24
- generationsId: string;
25
- /** Plan id used for plan execution or plan modification */
26
- planId: string;
27
- /** Session id used for plan execution or plan modification */
28
- sessionId: string;
17
+ /** Client Feature Key used for feedback on the plan generation */
18
+ clientFeatureKey: string | null;
19
+ /** Feedback Key used for feedback on the plan generation */
20
+ feedbackKey: string | null;
21
+ /** Plan Key used for plan execution or plan modification */
22
+ planKey: string | null;
23
+ /** Session Key used to communicate with LLM */
24
+ sessionKey: string | null;
29
25
  }
30
26
  /**
31
27
  * Represent the session information of a Service Plan Generation
@@ -34,10 +30,8 @@ export interface ServicePlanGenerationSessionInformationOutputRepresentationNorm
34
30
  * (none)
35
31
  */
36
32
  export interface ServicePlanGenerationSessionInformationOutputRepresentation {
37
- botId: string;
38
- botVersionId: string;
39
- clientFeatureId: string;
40
- generationsId: string;
41
- planId: string;
42
- sessionId: string;
33
+ clientFeatureKey: string | null;
34
+ feedbackKey: string | null;
35
+ planKey: string | null;
36
+ sessionKey: string | null;
43
37
  }
@@ -1,7 +1,7 @@
1
1
  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, ResourceIngest as $64$luvio_engine_ResourceIngest, FragmentSelection as $64$luvio_engine_FragmentSelection, LinkSelection as $64$luvio_engine_LinkSelection, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
2
2
  import { ServicePlanOutputRepresentation as ServicePlanOutputRepresentation_ServicePlanOutputRepresentation } from './ServicePlanOutputRepresentation';
3
3
  export declare const TTL = 1000;
4
- export declare const VERSION = "1abaf86bec8ec96b264ca95686a8d77f";
4
+ export declare const VERSION = "e8180e1000b0af7a1bd8c7016fbb8ac2";
5
5
  export declare function validate(obj: any, path?: string): TypeError | null;
6
6
  export declare const RepresentationType: string;
7
7
  export interface KeyParams extends $64$luvio_engine_KeyMetadata {
@@ -15,12 +15,12 @@ export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object
15
15
  export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: ServicePlanGenerationSyncOutputRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
16
16
  export declare function normalize(input: ServicePlanGenerationSyncOutputRepresentation, existing: ServicePlanGenerationSyncOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ServicePlanGenerationSyncOutputRepresentationNormalized;
17
17
  export interface DynamicIngestParams {
18
- servicePlan: $64$luvio_engine_ResourceIngest;
18
+ plan: $64$luvio_engine_ResourceIngest;
19
19
  }
20
20
  export declare function dynamicNormalize(ingestParams: DynamicIngestParams): (input: ServicePlanGenerationSyncOutputRepresentation, existing: ServicePlanGenerationSyncOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number) => ServicePlanGenerationSyncOutputRepresentationNormalized;
21
21
  export declare const select: () => $64$luvio_engine_FragmentSelection;
22
22
  export interface DynamicSelectParams {
23
- servicePlan?: $64$luvio_engine_LinkSelection;
23
+ plan?: $64$luvio_engine_LinkSelection;
24
24
  }
25
25
  export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
26
26
  export declare function equals(existing: ServicePlanGenerationSyncOutputRepresentationNormalized, incoming: ServicePlanGenerationSyncOutputRepresentationNormalized): boolean;
@@ -34,13 +34,25 @@ export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$lu
34
34
  * id (string): reason
35
35
  */
36
36
  export interface ServicePlanGenerationSyncOutputRepresentationNormalized {
37
+ /** The Copilot used for this service plan generation request */
38
+ copilotId: string | null;
39
+ /** Name of the Copilot used for this service plan generation request */
40
+ copilotName: string | null;
41
+ /** Details related to the Error Reason, if any */
42
+ errorMessage: string | null;
43
+ /** The generated request ID */
44
+ id: string | null;
45
+ plan: $64$luvio_engine_StoreLink;
37
46
  /** The reason of the service plan creation request job failure */
38
47
  reason: string;
39
48
  /** The details of the service plan creation request job failure */
40
- reasonDetails: string;
41
- servicePlan: $64$luvio_engine_StoreLink;
49
+ reasonDetails: string | null;
50
+ /** The record this plan generation was requested for */
51
+ recordId: string;
42
52
  /** The Status of the service plan creation request job */
43
53
  status: string;
54
+ /** Service Plan generation request type */
55
+ type: string;
44
56
  }
45
57
  /**
46
58
  * Represent the service plan generation result
@@ -49,8 +61,14 @@ export interface ServicePlanGenerationSyncOutputRepresentationNormalized {
49
61
  * id (string): reason
50
62
  */
51
63
  export interface ServicePlanGenerationSyncOutputRepresentation {
64
+ copilotId: string | null;
65
+ copilotName: string | null;
66
+ errorMessage: string | null;
67
+ id: string | null;
68
+ plan: ServicePlanOutputRepresentation_ServicePlanOutputRepresentation;
52
69
  reason: string;
53
- reasonDetails: string;
54
- servicePlan: ServicePlanOutputRepresentation_ServicePlanOutputRepresentation;
70
+ reasonDetails: string | null;
71
+ recordId: string;
55
72
  status: string;
73
+ type: string;
56
74
  }
@@ -1,6 +1,7 @@
1
1
  import { ServicePlanGenerationSessionInformationOutputRepresentation as ServicePlanGenerationSessionInformationOutputRepresentation_ServicePlanGenerationSessionInformationOutputRepresentation } from './ServicePlanGenerationSessionInformationOutputRepresentation';
2
+ import { ServicePlanStepRepresentation as ServicePlanStepRepresentation_ServicePlanStepRepresentation } from './ServicePlanStepRepresentation';
2
3
  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, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
- export declare const VERSION = "62b4abcd5c780a0219ce54573c8187b5";
4
+ export declare const VERSION = "4c0fefe9caa169c4221be369e384ee56";
4
5
  export declare function validate(obj: any, path?: string): TypeError | null;
5
6
  export declare const RepresentationType: string;
6
7
  export declare function normalize(input: ServicePlanOutputRepresentation, existing: ServicePlanOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ServicePlanOutputRepresentationNormalized;
@@ -15,22 +16,26 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
15
16
  * (none)
16
17
  */
17
18
  export interface ServicePlanOutputRepresentationNormalized {
18
- /** The copilot used to generate the service plan */
19
- copilot: string;
19
+ /** The session information related to the copilot generating the plan */
20
+ copilotSessionInfo: $64$luvio_engine_StoreLink | null;
20
21
  /** The created date of the service plan */
21
- createdDate: string;
22
+ createdDate: string | null;
22
23
  /** The Id of the plan record */
23
- generatedPlanId: string;
24
+ id: string | null;
25
+ /** The intent detected for this Service Plan generation request */
26
+ intent: string | null;
24
27
  /** The raw plan generated by the copilot */
25
- rawPlan: string;
26
- /** The session information related to the copilot generating the plan */
27
- sessionInformation: $64$luvio_engine_StoreLink;
28
+ plan: string | null;
28
29
  /** The steps of the service plan */
29
- steps: Array<{}>;
30
- /** The topic identified when generating the service plan */
31
- topic: string;
30
+ steps: Array<$64$luvio_engine_StoreLink>;
32
31
  /** The description of topic identified when generating the service plan */
33
- topicDescription: string;
32
+ topicDescription: string | null;
33
+ /** The topic identified when generating the service plan */
34
+ topicId: string | null;
35
+ /** Name of the topic identified when generating the service plan */
36
+ topicName: string | null;
37
+ /** Type of the Generated Plan */
38
+ type: string | null;
34
39
  }
35
40
  /**
36
41
  * Represent the generated Service Plan
@@ -39,12 +44,14 @@ export interface ServicePlanOutputRepresentationNormalized {
39
44
  * (none)
40
45
  */
41
46
  export interface ServicePlanOutputRepresentation {
42
- copilot: string;
43
- createdDate: string;
44
- generatedPlanId: string;
45
- rawPlan: string;
46
- sessionInformation: ServicePlanGenerationSessionInformationOutputRepresentation_ServicePlanGenerationSessionInformationOutputRepresentation;
47
- steps: Array<{}>;
48
- topic: string;
49
- topicDescription: string;
47
+ copilotSessionInfo: ServicePlanGenerationSessionInformationOutputRepresentation_ServicePlanGenerationSessionInformationOutputRepresentation | null;
48
+ createdDate: string | null;
49
+ id: string | null;
50
+ intent: string | null;
51
+ plan: string | null;
52
+ steps: Array<ServicePlanStepRepresentation_ServicePlanStepRepresentation>;
53
+ topicDescription: string | null;
54
+ topicId: string | null;
55
+ topicName: string | null;
56
+ type: string | null;
50
57
  }
@@ -0,0 +1,31 @@
1
+ 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';
2
+ export declare const VERSION = "de8249c0171ece44729fbb33b422a074";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: ServicePlanStepExecutionStatusRepresentation, existing: ServicePlanStepExecutionStatusRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ServicePlanStepExecutionStatusRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_BaseFragment;
7
+ export declare function equals(existing: ServicePlanStepExecutionStatusRepresentationNormalized, incoming: ServicePlanStepExecutionStatusRepresentationNormalized): 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: ServicePlanStepExecutionStatusRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Represents the execution status of a Service Plan Step
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface ServicePlanStepExecutionStatusRepresentationNormalized {
17
+ /** executionStatus */
18
+ executionStatus: string;
19
+ /** stepId */
20
+ stepId: string | null;
21
+ }
22
+ /**
23
+ * Represents the execution status of a Service Plan Step
24
+ *
25
+ * Keys:
26
+ * (none)
27
+ */
28
+ export interface ServicePlanStepExecutionStatusRepresentation {
29
+ executionStatus: string;
30
+ stepId: string | null;
31
+ }
@@ -1,6 +1,5 @@
1
- import { ServicePlanStepAttributeRepresentation as ServicePlanStepAttributeRepresentation_ServicePlanStepAttributeRepresentation } from './ServicePlanStepAttributeRepresentation';
2
- 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, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
- export declare const VERSION = "494f65b8fc81aaafa6f8447da2eef258";
1
+ 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';
2
+ export declare const VERSION = "1ef9cea6db5317915c38d18145d430c1";
4
3
  export declare function validate(obj: any, path?: string): TypeError | null;
5
4
  export declare const RepresentationType: string;
6
5
  export declare function normalize(input: ServicePlanStepRepresentation, existing: ServicePlanStepRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ServicePlanStepRepresentationNormalized;
@@ -15,16 +14,16 @@ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableSto
15
14
  * (none)
16
15
  */
17
16
  export interface ServicePlanStepRepresentationNormalized {
18
- /** The description of the service plan step */
19
- description: string;
17
+ /** Order in which this action will be executed */
18
+ actionOrder: number;
20
19
  /** The name of the service plan step */
21
20
  functionName: string;
22
- /** The list of inputs of the service plan step */
23
- inputs: Array<$64$luvio_engine_StoreLink>;
24
- /** The output collection of the service plan step */
25
- outputCollection: string;
26
- /** The output variable of the service plan step */
27
- outputVariable: string;
21
+ /** Generated Plan Step ID */
22
+ id: string;
23
+ /** ID of the action related to this generated plan step */
24
+ relatedActionId: string;
25
+ /** The description of the service plan step */
26
+ summary: string;
28
27
  }
29
28
  /**
30
29
  * Represent a step of a generated Service Plan
@@ -33,9 +32,9 @@ export interface ServicePlanStepRepresentationNormalized {
33
32
  * (none)
34
33
  */
35
34
  export interface ServicePlanStepRepresentation {
36
- description: string;
35
+ actionOrder: number;
37
36
  functionName: string;
38
- inputs: Array<ServicePlanStepAttributeRepresentation_ServicePlanStepAttributeRepresentation>;
39
- outputCollection: string;
40
- outputVariable: string;
37
+ id: string;
38
+ relatedActionId: string;
39
+ summary: string;
41
40
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-adapters-service-serviceplan",
3
- "version": "1.308.0-dev1",
3
+ "version": "1.308.0-dev2",
4
4
  "description": "collectionof service plan apis",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "dist/es/es2018/service-serviceplan.js",
@@ -40,10 +40,10 @@
40
40
  "test:unit": "jest"
41
41
  },
42
42
  "dependencies": {
43
- "@salesforce/lds-bindings": "^1.308.0-dev1"
43
+ "@salesforce/lds-bindings": "^1.308.0-dev2"
44
44
  },
45
45
  "devDependencies": {
46
- "@salesforce/lds-compiler-plugins": "^1.308.0-dev1"
46
+ "@salesforce/lds-compiler-plugins": "^1.308.0-dev2"
47
47
  },
48
48
  "nx": {
49
49
  "targets": {