@salesforce/lds-adapters-service-serviceplan 0.1.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.
- package/LICENSE.txt +82 -0
- package/dist/es/es2018/service-serviceplan.js +1647 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
- package/dist/es/es2018/types/src/generated/adapters/executeServicePlan.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/adapters/generateServicePlan.d.ts +23 -0
- package/dist/es/es2018/types/src/generated/adapters/getGenerationRequest.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/adapters/getServicePlan.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +6 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +11 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectServicePlanGenerationRequestsByRequestId.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectServicePlanServicePlanDetailsByRecordId.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/resources/postConnectServicePlanGenerationRequests.d.ts +22 -0
- package/dist/es/es2018/types/src/generated/resources/putConnectServicePlanExecuteByPlanOrStepId.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/types/ServicePlanDetailsOutputRepresentation.d.ts +60 -0
- package/dist/es/es2018/types/src/generated/types/ServicePlanDetailsRepresentation.d.ts +53 -0
- package/dist/es/es2018/types/src/generated/types/ServicePlanExecutionInputRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/ServicePlanExecutionOutputRepresentation.d.ts +50 -0
- package/dist/es/es2018/types/src/generated/types/ServicePlanGenerationInputMapRepresentation.d.ts +32 -0
- package/dist/es/es2018/types/src/generated/types/ServicePlanGenerationInputParamRepresentation.d.ts +38 -0
- package/dist/es/es2018/types/src/generated/types/ServicePlanGenerationOutputRepresentation.d.ts +57 -0
- package/dist/es/es2018/types/src/generated/types/ServicePlanReferenceDetailsRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/ServicePlanStepCitationSourceRepresentation.d.ts +34 -0
- package/dist/es/es2018/types/src/generated/types/ServicePlanStepDetailsRepresentation.d.ts +54 -0
- package/dist/es/es2018/types/src/generated/types/ServicePlanStepExecutionStatusRepresentation.d.ts +31 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
- package/package.json +66 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +1752 -0
- package/src/raml/api.raml +351 -0
- package/src/raml/luvio.raml +57 -0
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { Adapter as $64$luvio_engine_Adapter, Snapshot as $64$luvio_engine_Snapshot, UnfulfilledSnapshot as $64$luvio_engine_UnfulfilledSnapshot, AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const ObjectPrototypeHasOwnProperty: (v: PropertyKey) => boolean;
|
|
3
|
+
declare const ObjectKeys: {
|
|
4
|
+
(o: object): string[];
|
|
5
|
+
(o: {}): string[];
|
|
6
|
+
}, ObjectCreate: {
|
|
7
|
+
(o: object | null): any;
|
|
8
|
+
(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
|
|
9
|
+
};
|
|
10
|
+
export { ObjectCreate, ObjectKeys };
|
|
11
|
+
export declare const ArrayIsArray: (arg: any) => arg is any[];
|
|
12
|
+
export declare const ArrayPrototypePush: (...items: any[]) => number;
|
|
13
|
+
export interface AdapterValidationConfig {
|
|
14
|
+
displayName: string;
|
|
15
|
+
parameters: {
|
|
16
|
+
required: string[];
|
|
17
|
+
optional: string[];
|
|
18
|
+
unsupported?: string[];
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Validates an adapter config is well-formed.
|
|
23
|
+
* @param config The config to validate.
|
|
24
|
+
* @param adapter The adapter validation configuration.
|
|
25
|
+
* @param oneOf The keys the config must contain at least one of.
|
|
26
|
+
* @throws A TypeError if config doesn't satisfy the adapter's config validation.
|
|
27
|
+
*/
|
|
28
|
+
export declare function validateConfig<T>(config: Untrusted<T>, adapter: AdapterValidationConfig, oneOf?: string[]): void;
|
|
29
|
+
export declare function untrustedIsObject<Base>(untrusted: unknown): untrusted is Untrusted<Base>;
|
|
30
|
+
export type UncoercedConfiguration<Base, Options extends {
|
|
31
|
+
[key in keyof Base]?: any;
|
|
32
|
+
}> = {
|
|
33
|
+
[Key in keyof Base]?: Base[Key] | Options[Key];
|
|
34
|
+
};
|
|
35
|
+
export type Untrusted<Base> = Partial<Base>;
|
|
36
|
+
export declare function areRequiredParametersPresent<T>(config: any, configPropertyNames: AdapterValidationConfig): config is T;
|
|
37
|
+
export declare function refreshable<C, D, R>(adapter: $64$luvio_engine_Adapter<C, D>, resolve: (config: unknown) => Promise<$64$luvio_engine_Snapshot<R>>): $64$luvio_engine_Adapter<C, D>;
|
|
38
|
+
export declare const SNAPSHOT_STATE_FULFILLED = "Fulfilled";
|
|
39
|
+
export declare const SNAPSHOT_STATE_UNFULFILLED = "Unfulfilled";
|
|
40
|
+
export declare const snapshotRefreshOptions: {
|
|
41
|
+
overrides: {
|
|
42
|
+
headers: {
|
|
43
|
+
'Cache-Control': string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* A deterministic JSON stringify implementation. Heavily adapted from https://github.com/epoberezkin/fast-json-stable-stringify.
|
|
49
|
+
* This is needed because insertion order for JSON.stringify(object) affects output:
|
|
50
|
+
* JSON.stringify({a: 1, b: 2})
|
|
51
|
+
* "{"a":1,"b":2}"
|
|
52
|
+
* JSON.stringify({b: 2, a: 1})
|
|
53
|
+
* "{"b":2,"a":1}"
|
|
54
|
+
* @param data Data to be JSON-stringified.
|
|
55
|
+
* @returns JSON.stringified value with consistent ordering of keys.
|
|
56
|
+
*/
|
|
57
|
+
export declare function stableJSONStringify(node: any): string | undefined;
|
|
58
|
+
export declare function getFetchResponseStatusText(status: number): string;
|
|
59
|
+
export declare function isUnfulfilledSnapshot<T, U>(snapshot: $64$luvio_engine_Snapshot<T, U>): snapshot is $64$luvio_engine_UnfulfilledSnapshot<T, U>;
|
|
60
|
+
export declare function generateParamConfigMetadata(name: string, required: boolean, resourceType: $64$luvio_engine_AdapterConfigMetadata['resourceType'], typeCheckShape: $64$luvio_engine_AdapterConfigMetadata['typeCheckShape'], isArrayShape?: boolean, coerceFn?: (v: unknown) => unknown): $64$luvio_engine_AdapterConfigMetadata;
|
|
61
|
+
export declare function buildAdapterValidationConfig(displayName: string, paramsMeta: $64$luvio_engine_AdapterConfigMetadata[]): AdapterValidationConfig;
|
|
62
|
+
export declare const keyPrefix = "ServicePlan";
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
|
+
import { ResourceRequestConfig as resources_putConnectServicePlanExecuteByPlanOrStepId_ResourceRequestConfig } from '../resources/putConnectServicePlanExecuteByPlanOrStepId';
|
|
4
|
+
import { ServicePlanExecutionOutputRepresentation as types_ServicePlanExecutionOutputRepresentation_ServicePlanExecutionOutputRepresentation } from '../types/ServicePlanExecutionOutputRepresentation';
|
|
5
|
+
export declare const adapterName = "executeServicePlan";
|
|
6
|
+
export declare const executeServicePlan_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const executeServicePlan_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface ExecuteServicePlanConfig {
|
|
9
|
+
planOrStepId: string;
|
|
10
|
+
action: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const createResourceParams: (config: ExecuteServicePlanConfig) => resources_putConnectServicePlanExecuteByPlanOrStepId_ResourceRequestConfig;
|
|
13
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<ExecuteServicePlanConfig>): adapter$45$utils_Untrusted<ExecuteServicePlanConfig>;
|
|
14
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): ExecuteServicePlanConfig | null;
|
|
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>>;
|
|
16
|
+
export declare const executeServicePlanAdapterFactory: $64$luvio_engine_AdapterFactory<ExecuteServicePlanConfig, types_ServicePlanExecutionOutputRepresentation_ServicePlanExecutionOutputRepresentation>;
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
|
|
3
|
+
import { ResourceRequestConfig as resources_postConnectServicePlanGenerationRequests_ResourceRequestConfig } from '../resources/postConnectServicePlanGenerationRequests';
|
|
4
|
+
import { ServicePlanGenerationOutputRepresentation as types_ServicePlanGenerationOutputRepresentation_ServicePlanGenerationOutputRepresentation } from '../types/ServicePlanGenerationOutputRepresentation';
|
|
5
|
+
export declare const adapterName = "generateServicePlan";
|
|
6
|
+
export declare const generateServicePlan_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const generateServicePlan_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface GenerateServicePlanConfig {
|
|
9
|
+
processingMode?: string;
|
|
10
|
+
recordId?: string;
|
|
11
|
+
regenerate?: boolean;
|
|
12
|
+
useCase?: string;
|
|
13
|
+
additionalContext: {
|
|
14
|
+
[key: string]: string;
|
|
15
|
+
};
|
|
16
|
+
generationMode: string;
|
|
17
|
+
source: string;
|
|
18
|
+
}
|
|
19
|
+
export declare const createResourceParams: (config: GenerateServicePlanConfig) => resources_postConnectServicePlanGenerationRequests_ResourceRequestConfig;
|
|
20
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GenerateServicePlanConfig>): adapter$45$utils_Untrusted<GenerateServicePlanConfig>;
|
|
21
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GenerateServicePlanConfig | null;
|
|
22
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GenerateServicePlanConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_ServicePlanGenerationOutputRepresentation_ServicePlanGenerationOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ServicePlanGenerationOutputRepresentation_ServicePlanGenerationOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_ServicePlanGenerationOutputRepresentation_ServicePlanGenerationOutputRepresentation, any>>;
|
|
23
|
+
export declare const generateServicePlanAdapterFactory: $64$luvio_engine_AdapterFactory<GenerateServicePlanConfig, types_ServicePlanGenerationOutputRepresentation_ServicePlanGenerationOutputRepresentation>;
|
|
@@ -0,0 +1,27 @@
|
|
|
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_getConnectServicePlanGenerationRequestsByRequestId_ResourceRequestConfig } from '../resources/getConnectServicePlanGenerationRequestsByRequestId';
|
|
4
|
+
import { ServicePlanGenerationOutputRepresentation as types_ServicePlanGenerationOutputRepresentation_ServicePlanGenerationOutputRepresentation } from '../types/ServicePlanGenerationOutputRepresentation';
|
|
5
|
+
export declare const adapterName = "getGenerationRequest";
|
|
6
|
+
export declare const getGenerationRequest_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const getGenerationRequest_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface GetGenerationRequestConfig {
|
|
9
|
+
requestId: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const createResourceParams: (config: GetGenerationRequestConfig) => resources_getConnectServicePlanGenerationRequestsByRequestId_ResourceRequestConfig;
|
|
12
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetGenerationRequestConfig): string;
|
|
13
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetGenerationRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetGenerationRequestConfig>): adapter$45$utils_Untrusted<GetGenerationRequestConfig>;
|
|
15
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetGenerationRequestConfig | null;
|
|
16
|
+
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetGenerationRequestConfig): $64$luvio_engine_Fragment;
|
|
17
|
+
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetGenerationRequestConfig): $64$luvio_engine_Snapshot<types_ServicePlanGenerationOutputRepresentation_ServicePlanGenerationOutputRepresentation, any>;
|
|
18
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetGenerationRequestConfig, resourceParams: resources_getConnectServicePlanGenerationRequestsByRequestId_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ServicePlanGenerationOutputRepresentation_ServicePlanGenerationOutputRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_ServicePlanGenerationOutputRepresentation_ServicePlanGenerationOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ServicePlanGenerationOutputRepresentation_ServicePlanGenerationOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_ServicePlanGenerationOutputRepresentation_ServicePlanGenerationOutputRepresentation, any>>;
|
|
19
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetGenerationRequestConfig, resourceParams: resources_getConnectServicePlanGenerationRequestsByRequestId_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
20
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetGenerationRequestConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_ServicePlanGenerationOutputRepresentation_ServicePlanGenerationOutputRepresentation, any>>;
|
|
21
|
+
export type BuildSnapshotContext = {
|
|
22
|
+
luvio: $64$luvio_engine_Luvio;
|
|
23
|
+
config: GetGenerationRequestConfig;
|
|
24
|
+
};
|
|
25
|
+
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_ServicePlanGenerationOutputRepresentation_ServicePlanGenerationOutputRepresentation, any>>;
|
|
26
|
+
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_ServicePlanGenerationOutputRepresentation_ServicePlanGenerationOutputRepresentation>): $64$luvio_engine_Snapshot<types_ServicePlanGenerationOutputRepresentation_ServicePlanGenerationOutputRepresentation, any>;
|
|
27
|
+
export declare const getGenerationRequestAdapterFactory: $64$luvio_engine_AdapterFactory<GetGenerationRequestConfig, types_ServicePlanGenerationOutputRepresentation_ServicePlanGenerationOutputRepresentation>;
|
|
@@ -0,0 +1,28 @@
|
|
|
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, UncoercedConfiguration as adapter$45$utils_UncoercedConfiguration } from './adapter-utils';
|
|
3
|
+
import { ResourceRequestConfig as resources_getConnectServicePlanServicePlanDetailsByRecordId_ResourceRequestConfig } from '../resources/getConnectServicePlanServicePlanDetailsByRecordId';
|
|
4
|
+
import { ServicePlanDetailsOutputRepresentation as types_ServicePlanDetailsOutputRepresentation_ServicePlanDetailsOutputRepresentation, KeyParams as types_ServicePlanDetailsOutputRepresentation_KeyParams } from '../types/ServicePlanDetailsOutputRepresentation';
|
|
5
|
+
export declare const adapterName = "getServicePlan";
|
|
6
|
+
export declare const getServicePlan_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const getServicePlan_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface GetServicePlanConfig {
|
|
9
|
+
recordId: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const createResourceParams: (config: GetServicePlanConfig) => resources_getConnectServicePlanServicePlanDetailsByRecordId_ResourceRequestConfig;
|
|
12
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetServicePlanConfig): string;
|
|
13
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetServicePlanConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetServicePlanConfig>): adapter$45$utils_Untrusted<GetServicePlanConfig>;
|
|
15
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetServicePlanConfig | null;
|
|
16
|
+
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetServicePlanConfig): $64$luvio_engine_Fragment;
|
|
17
|
+
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetServicePlanConfig): $64$luvio_engine_Snapshot<types_ServicePlanDetailsOutputRepresentation_ServicePlanDetailsOutputRepresentation, any>;
|
|
18
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetServicePlanConfig, resourceParams: resources_getConnectServicePlanServicePlanDetailsByRecordId_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ServicePlanDetailsOutputRepresentation_ServicePlanDetailsOutputRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_ServicePlanDetailsOutputRepresentation_ServicePlanDetailsOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ServicePlanDetailsOutputRepresentation_ServicePlanDetailsOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_ServicePlanDetailsOutputRepresentation_ServicePlanDetailsOutputRepresentation, any>>;
|
|
19
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetServicePlanConfig, resourceParams: resources_getConnectServicePlanServicePlanDetailsByRecordId_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
20
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetServicePlanConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_ServicePlanDetailsOutputRepresentation_ServicePlanDetailsOutputRepresentation, any>>;
|
|
21
|
+
export type BuildSnapshotContext = {
|
|
22
|
+
luvio: $64$luvio_engine_Luvio;
|
|
23
|
+
config: GetServicePlanConfig;
|
|
24
|
+
};
|
|
25
|
+
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_ServicePlanDetailsOutputRepresentation_ServicePlanDetailsOutputRepresentation, any>>;
|
|
26
|
+
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_ServicePlanDetailsOutputRepresentation_ServicePlanDetailsOutputRepresentation>): $64$luvio_engine_Snapshot<types_ServicePlanDetailsOutputRepresentation_ServicePlanDetailsOutputRepresentation, any>;
|
|
27
|
+
export declare const getServicePlanAdapterFactory: $64$luvio_engine_AdapterFactory<GetServicePlanConfig, types_ServicePlanDetailsOutputRepresentation_ServicePlanDetailsOutputRepresentation>;
|
|
28
|
+
export declare const notifyChangeFactory: (luvio: $64$luvio_engine_Luvio, options?: $64$luvio_engine_DispatchResourceRequestContext) => (configs: adapter$45$utils_UncoercedConfiguration<types_ServicePlanDetailsOutputRepresentation_KeyParams, any>[]) => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { executeServicePlanAdapterFactory } from '../adapters/executeServicePlan';
|
|
2
|
+
export { generateServicePlanAdapterFactory } from '../adapters/generateServicePlan';
|
|
3
|
+
export { getGenerationRequestAdapterFactory } from '../adapters/getGenerationRequest';
|
|
4
|
+
export { getServicePlanAdapterFactory } from '../adapters/getServicePlan';
|
|
5
|
+
export { notifyUpdateAvailableFactory as notifyServicePlanDetailsUpdateAvailableFactory } from '../types/ServicePlanDetailsOutputRepresentation';
|
|
6
|
+
export { notifyUpdateAvailableFactory as notifyServicePlanGenerationUpdateAvailableFactory } from '../types/ServicePlanGenerationOutputRepresentation';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare let executeServicePlan: any;
|
|
2
|
+
declare let generateServicePlan: any;
|
|
3
|
+
declare let getGenerationRequest: any;
|
|
4
|
+
declare let getServicePlan: any;
|
|
5
|
+
declare let getServicePlanNotifyChange: any;
|
|
6
|
+
declare let getGenerationRequest_imperative: any;
|
|
7
|
+
declare let getServicePlan_imperative: any;
|
|
8
|
+
declare let notifyServicePlanDetailsUpdateAvailable: any;
|
|
9
|
+
declare let notifyServicePlanGenerationUpdateAvailable: any;
|
|
10
|
+
export { executeServicePlan, generateServicePlan, getGenerationRequest, getServicePlan, getServicePlanNotifyChange, getGenerationRequest_imperative, getServicePlan_imperative, };
|
|
11
|
+
export { notifyServicePlanDetailsUpdateAvailable, notifyServicePlanGenerationUpdateAvailable };
|
|
@@ -0,0 +1,15 @@
|
|
|
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 { ServicePlanGenerationOutputRepresentation as types_ServicePlanGenerationOutputRepresentation_ServicePlanGenerationOutputRepresentation } from '../types/ServicePlanGenerationOutputRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
urlParams: {
|
|
5
|
+
requestId: string;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
9
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
10
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ServicePlanGenerationOutputRepresentation_ServicePlanGenerationOutputRepresentation): void;
|
|
12
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ServicePlanGenerationOutputRepresentation_ServicePlanGenerationOutputRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ServicePlanGenerationOutputRepresentation_ServicePlanGenerationOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ServicePlanGenerationOutputRepresentation_ServicePlanGenerationOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ServicePlanGenerationOutputRepresentation_ServicePlanGenerationOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ServicePlanGenerationOutputRepresentation_ServicePlanGenerationOutputRepresentation, any>;
|
|
13
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ServicePlanGenerationOutputRepresentation_ServicePlanGenerationOutputRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
14
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
15
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,16 @@
|
|
|
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 { ServicePlanDetailsOutputRepresentation as types_ServicePlanDetailsOutputRepresentation_ServicePlanDetailsOutputRepresentation } from '../types/ServicePlanDetailsOutputRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
urlParams: {
|
|
5
|
+
recordId: string;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
9
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
10
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ServicePlanDetailsOutputRepresentation_ServicePlanDetailsOutputRepresentation): void;
|
|
12
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ServicePlanDetailsOutputRepresentation_ServicePlanDetailsOutputRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ServicePlanDetailsOutputRepresentation_ServicePlanDetailsOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ServicePlanDetailsOutputRepresentation_ServicePlanDetailsOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ServicePlanDetailsOutputRepresentation_ServicePlanDetailsOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ServicePlanDetailsOutputRepresentation_ServicePlanDetailsOutputRepresentation, any>;
|
|
13
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ServicePlanDetailsOutputRepresentation_ServicePlanDetailsOutputRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
14
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
15
|
+
export default createResourceRequest;
|
|
16
|
+
export declare function createResourceRequestFromRepresentation(representation: types_ServicePlanDetailsOutputRepresentation_ServicePlanDetailsOutputRepresentation): $64$luvio_engine_ResourceRequest;
|
package/dist/es/es2018/types/src/generated/resources/postConnectServicePlanGenerationRequests.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
import { ServicePlanGenerationOutputRepresentation as types_ServicePlanGenerationOutputRepresentation_ServicePlanGenerationOutputRepresentation } from '../types/ServicePlanGenerationOutputRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
queryParams: {
|
|
5
|
+
processingMode?: string;
|
|
6
|
+
recordId?: string;
|
|
7
|
+
regenerate?: boolean;
|
|
8
|
+
useCase?: string;
|
|
9
|
+
};
|
|
10
|
+
body: {
|
|
11
|
+
additionalContext: {
|
|
12
|
+
[key: string]: string;
|
|
13
|
+
};
|
|
14
|
+
generationMode: string;
|
|
15
|
+
source: string;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
19
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ServicePlanGenerationOutputRepresentation_ServicePlanGenerationOutputRepresentation): void;
|
|
20
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ServicePlanGenerationOutputRepresentation_ServicePlanGenerationOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ServicePlanGenerationOutputRepresentation_ServicePlanGenerationOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ServicePlanGenerationOutputRepresentation_ServicePlanGenerationOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ServicePlanGenerationOutputRepresentation_ServicePlanGenerationOutputRepresentation, any>;
|
|
21
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
22
|
+
export default createResourceRequest;
|
package/dist/es/es2018/types/src/generated/resources/putConnectServicePlanExecuteByPlanOrStepId.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
import { ServicePlanExecutionOutputRepresentation as types_ServicePlanExecutionOutputRepresentation_ServicePlanExecutionOutputRepresentation } from '../types/ServicePlanExecutionOutputRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
urlParams: {
|
|
5
|
+
planOrStepId: string;
|
|
6
|
+
};
|
|
7
|
+
body: {
|
|
8
|
+
action: string;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
12
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ServicePlanExecutionOutputRepresentation_ServicePlanExecutionOutputRepresentation): void;
|
|
13
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ServicePlanExecutionOutputRepresentation_ServicePlanExecutionOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ServicePlanExecutionOutputRepresentation_ServicePlanExecutionOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ServicePlanExecutionOutputRepresentation_ServicePlanExecutionOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ServicePlanExecutionOutputRepresentation_ServicePlanExecutionOutputRepresentation, any>;
|
|
14
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
15
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,60 @@
|
|
|
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 { ServicePlanDetailsRepresentation as ServicePlanDetailsRepresentation_ServicePlanDetailsRepresentation } from './ServicePlanDetailsRepresentation';
|
|
3
|
+
export declare const TTL = 1000;
|
|
4
|
+
export declare const VERSION = "2dd60cd6c267351cb563fcc04cb5cb56";
|
|
5
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
6
|
+
export declare const RepresentationType: string;
|
|
7
|
+
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
8
|
+
id: string;
|
|
9
|
+
}
|
|
10
|
+
export type ServicePlanDetailsOutputRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
+
export type PartialServicePlanDetailsOutputRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
|
|
12
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
|
|
13
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): ServicePlanDetailsOutputRepresentationNormalizedKeyMetadata;
|
|
14
|
+
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: ServicePlanDetailsOutputRepresentation): string;
|
|
15
|
+
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: ServicePlanDetailsOutputRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
|
|
16
|
+
export declare function normalize(input: ServicePlanDetailsOutputRepresentation, existing: ServicePlanDetailsOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ServicePlanDetailsOutputRepresentationNormalized;
|
|
17
|
+
export interface DynamicIngestParams {
|
|
18
|
+
plan: $64$luvio_engine_ResourceIngest;
|
|
19
|
+
}
|
|
20
|
+
export declare function dynamicNormalize(ingestParams: DynamicIngestParams): (input: ServicePlanDetailsOutputRepresentation, existing: ServicePlanDetailsOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number) => ServicePlanDetailsOutputRepresentationNormalized;
|
|
21
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
22
|
+
export interface DynamicSelectParams {
|
|
23
|
+
plan?: $64$luvio_engine_LinkSelection;
|
|
24
|
+
}
|
|
25
|
+
export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
|
|
26
|
+
export declare function equals(existing: ServicePlanDetailsOutputRepresentationNormalized, incoming: ServicePlanDetailsOutputRepresentationNormalized): boolean;
|
|
27
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
28
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ServicePlanDetailsOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
29
|
+
export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$luvio_engine_ResourceIngest;
|
|
30
|
+
/**
|
|
31
|
+
* Represent the service plan details
|
|
32
|
+
*
|
|
33
|
+
* Keys:
|
|
34
|
+
* id (string): planRequestId
|
|
35
|
+
*/
|
|
36
|
+
export interface ServicePlanDetailsOutputRepresentationNormalized {
|
|
37
|
+
plan: $64$luvio_engine_StoreLink;
|
|
38
|
+
/** The record ID of plan request passed to this Connect API */
|
|
39
|
+
planRequestId: string;
|
|
40
|
+
/** The reason of the Service Plan Details */
|
|
41
|
+
reason: string;
|
|
42
|
+
/** The reason details of the Service Plan Details */
|
|
43
|
+
reasonDetails: string | null;
|
|
44
|
+
/** The status of the Service Plan Details */
|
|
45
|
+
status: string;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Represent the service plan details
|
|
49
|
+
*
|
|
50
|
+
* Keys:
|
|
51
|
+
* id (string): planRequestId
|
|
52
|
+
*/
|
|
53
|
+
export interface ServicePlanDetailsOutputRepresentation {
|
|
54
|
+
plan: ServicePlanDetailsRepresentation_ServicePlanDetailsRepresentation;
|
|
55
|
+
planRequestId: string;
|
|
56
|
+
reason: string;
|
|
57
|
+
reasonDetails: string | null;
|
|
58
|
+
status: string;
|
|
59
|
+
}
|
|
60
|
+
export declare const notifyUpdateAvailableFactory: (luvio: $64$luvio_engine_Luvio) => (configs: Partial<KeyParams>[]) => Promise<void>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { ServicePlanStepDetailsRepresentation as ServicePlanStepDetailsRepresentation_ServicePlanStepDetailsRepresentation } from './ServicePlanStepDetailsRepresentation';
|
|
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 = "caa4875ebe47f9738944b0542d09f7ef";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: ServicePlanDetailsRepresentation, existing: ServicePlanDetailsRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ServicePlanDetailsRepresentationNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_BaseFragment;
|
|
8
|
+
export declare function equals(existing: ServicePlanDetailsRepresentationNormalized, incoming: ServicePlanDetailsRepresentationNormalized): 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: ServicePlanDetailsRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* Service Plan representation
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface ServicePlanDetailsRepresentationNormalized {
|
|
18
|
+
/** ClientFeature ID */
|
|
19
|
+
clientFeatureId: string | null;
|
|
20
|
+
/** Created Date */
|
|
21
|
+
createdDate: string | null;
|
|
22
|
+
/** Execution Status */
|
|
23
|
+
executionStatus: string | null;
|
|
24
|
+
/** Feedback ID */
|
|
25
|
+
feedbackId: string | null;
|
|
26
|
+
/** Has Context Changed */
|
|
27
|
+
hasContextChanged: boolean;
|
|
28
|
+
/** PlanHeader */
|
|
29
|
+
planHeader: string | null;
|
|
30
|
+
/** Plan ID */
|
|
31
|
+
planId: string | null;
|
|
32
|
+
/** Service Plan Steps */
|
|
33
|
+
servicePlanSteps: Array<$64$luvio_engine_StoreLink>;
|
|
34
|
+
/** Topic */
|
|
35
|
+
topic: string | null;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Service Plan representation
|
|
39
|
+
*
|
|
40
|
+
* Keys:
|
|
41
|
+
* (none)
|
|
42
|
+
*/
|
|
43
|
+
export interface ServicePlanDetailsRepresentation {
|
|
44
|
+
clientFeatureId: string | null;
|
|
45
|
+
createdDate: string | null;
|
|
46
|
+
executionStatus: string | null;
|
|
47
|
+
feedbackId: string | null;
|
|
48
|
+
hasContextChanged: boolean;
|
|
49
|
+
planHeader: string | null;
|
|
50
|
+
planId: string | null;
|
|
51
|
+
servicePlanSteps: Array<ServicePlanStepDetailsRepresentation_ServicePlanStepDetailsRepresentation>;
|
|
52
|
+
topic: string | null;
|
|
53
|
+
}
|
|
@@ -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 = "ff8e0a870a89909f3b39d342a8f6a1cd";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
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;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: ServicePlanExecutionInputRepresentationNormalized, incoming: ServicePlanExecutionInputRepresentationNormalized): 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: ServicePlanExecutionInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Represents a generated service plan input context required for service plan execution
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface ServicePlanExecutionInputRepresentationNormalized {
|
|
17
|
+
/** Action to be performed by the API */
|
|
18
|
+
action: string;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Represents a generated service plan input context required for service plan execution
|
|
22
|
+
*
|
|
23
|
+
* Keys:
|
|
24
|
+
* (none)
|
|
25
|
+
*/
|
|
26
|
+
export interface ServicePlanExecutionInputRepresentation {
|
|
27
|
+
action: string;
|
|
28
|
+
}
|
package/dist/es/es2018/types/src/generated/types/ServicePlanExecutionOutputRepresentation.d.ts
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
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 { ServicePlanStepExecutionStatusRepresentation as ServicePlanStepExecutionStatusRepresentation_ServicePlanStepExecutionStatusRepresentation } from './ServicePlanStepExecutionStatusRepresentation';
|
|
3
|
+
export declare const VERSION = "f3a6de28bf56634adca757ba07accf43";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
7
|
+
id: string;
|
|
8
|
+
}
|
|
9
|
+
export type ServicePlanExecutionOutputRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
10
|
+
export type PartialServicePlanExecutionOutputRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
|
|
12
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): ServicePlanExecutionOutputRepresentationNormalizedKeyMetadata;
|
|
13
|
+
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: ServicePlanExecutionOutputRepresentation): string;
|
|
14
|
+
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: ServicePlanExecutionOutputRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
|
|
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
|
+
export interface DynamicIngestParams {
|
|
17
|
+
planSteps: $64$luvio_engine_ResourceIngest;
|
|
18
|
+
}
|
|
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
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
21
|
+
export interface DynamicSelectParams {
|
|
22
|
+
planSteps?: $64$luvio_engine_LinkSelection;
|
|
23
|
+
}
|
|
24
|
+
export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
|
|
25
|
+
export declare function equals(existing: ServicePlanExecutionOutputRepresentationNormalized, incoming: ServicePlanExecutionOutputRepresentationNormalized): boolean;
|
|
26
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
27
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ServicePlanExecutionOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
28
|
+
export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$luvio_engine_ResourceIngest;
|
|
29
|
+
/**
|
|
30
|
+
* Represent the service plan execution result
|
|
31
|
+
*
|
|
32
|
+
* Keys:
|
|
33
|
+
* id (string): executionStatus
|
|
34
|
+
*/
|
|
35
|
+
export interface ServicePlanExecutionOutputRepresentationNormalized {
|
|
36
|
+
/** The Status of the service plan execution request job */
|
|
37
|
+
executionStatus: string;
|
|
38
|
+
/** All the step status */
|
|
39
|
+
planSteps: Array<$64$luvio_engine_StoreLink>;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Represent the service plan execution result
|
|
43
|
+
*
|
|
44
|
+
* Keys:
|
|
45
|
+
* id (string): executionStatus
|
|
46
|
+
*/
|
|
47
|
+
export interface ServicePlanExecutionOutputRepresentation {
|
|
48
|
+
executionStatus: string;
|
|
49
|
+
planSteps: Array<ServicePlanStepExecutionStatusRepresentation_ServicePlanStepExecutionStatusRepresentation>;
|
|
50
|
+
}
|
package/dist/es/es2018/types/src/generated/types/ServicePlanGenerationInputMapRepresentation.d.ts
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
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 = "3844e6ebdf973ccebedb290520042c11";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: ServicePlanGenerationInputMapRepresentation, existing: ServicePlanGenerationInputMapRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ServicePlanGenerationInputMapRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: ServicePlanGenerationInputMapRepresentationNormalized, incoming: ServicePlanGenerationInputMapRepresentationNormalized): 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: ServicePlanGenerationInputMapRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Represents a request for generating a service plan
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface ServicePlanGenerationInputMapRepresentationNormalized {
|
|
17
|
+
/** Additional context for the plan generation request */
|
|
18
|
+
map: {
|
|
19
|
+
[key: string]: string;
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Represents a request for generating a service plan
|
|
24
|
+
*
|
|
25
|
+
* Keys:
|
|
26
|
+
* (none)
|
|
27
|
+
*/
|
|
28
|
+
export interface ServicePlanGenerationInputMapRepresentation {
|
|
29
|
+
map: {
|
|
30
|
+
[key: string]: string;
|
|
31
|
+
};
|
|
32
|
+
}
|
package/dist/es/es2018/types/src/generated/types/ServicePlanGenerationInputParamRepresentation.d.ts
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
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 = "1b14b78cea1609723279d543c9c4ebf6";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
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_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: ServicePlanGenerationInputParamRepresentationNormalized, incoming: ServicePlanGenerationInputParamRepresentationNormalized): 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: ServicePlanGenerationInputParamRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Represents a request for generating a service plan
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface ServicePlanGenerationInputParamRepresentationNormalized {
|
|
17
|
+
/** Additional context for the plan generation request */
|
|
18
|
+
additionalContext: {
|
|
19
|
+
[key: string]: string;
|
|
20
|
+
};
|
|
21
|
+
/** Plan generation mode */
|
|
22
|
+
generationMode: string;
|
|
23
|
+
/** Origin for the plan generation request */
|
|
24
|
+
source: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Represents a request for generating a service plan
|
|
28
|
+
*
|
|
29
|
+
* Keys:
|
|
30
|
+
* (none)
|
|
31
|
+
*/
|
|
32
|
+
export interface ServicePlanGenerationInputParamRepresentation {
|
|
33
|
+
additionalContext: {
|
|
34
|
+
[key: string]: string;
|
|
35
|
+
};
|
|
36
|
+
generationMode: string;
|
|
37
|
+
source: string;
|
|
38
|
+
}
|
package/dist/es/es2018/types/src/generated/types/ServicePlanGenerationOutputRepresentation.d.ts
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
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, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
2
|
+
export declare const TTL = 1000;
|
|
3
|
+
export declare const VERSION = "e7b90a0cede064026bfdd02757e2d945";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export interface KeyParams extends $64$luvio_engine_KeyMetadata {
|
|
7
|
+
id: string | null;
|
|
8
|
+
}
|
|
9
|
+
export type ServicePlanGenerationOutputRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
10
|
+
export type PartialServicePlanGenerationOutputRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
|
|
12
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): ServicePlanGenerationOutputRepresentationNormalizedKeyMetadata;
|
|
13
|
+
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: ServicePlanGenerationOutputRepresentation): string;
|
|
14
|
+
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: ServicePlanGenerationOutputRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
|
+
export declare function normalize(input: ServicePlanGenerationOutputRepresentation, existing: ServicePlanGenerationOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ServicePlanGenerationOutputRepresentationNormalized;
|
|
16
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
17
|
+
export declare function equals(existing: ServicePlanGenerationOutputRepresentationNormalized, incoming: ServicePlanGenerationOutputRepresentationNormalized): boolean;
|
|
18
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
19
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ServicePlanGenerationOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
20
|
+
/**
|
|
21
|
+
* Represent the service plan generation result
|
|
22
|
+
*
|
|
23
|
+
* Keys:
|
|
24
|
+
* id (string | null): id
|
|
25
|
+
*/
|
|
26
|
+
export interface ServicePlanGenerationOutputRepresentationNormalized {
|
|
27
|
+
/** Error code to identify the error */
|
|
28
|
+
errorCode: string | null;
|
|
29
|
+
/** Details related to the Error Reason, if any */
|
|
30
|
+
errorMessage: string | null;
|
|
31
|
+
/** The generated request ID */
|
|
32
|
+
id: string | null;
|
|
33
|
+
/** The reason of the service plan creation request job failure */
|
|
34
|
+
reason: string;
|
|
35
|
+
/** The record this plan generation was requested for */
|
|
36
|
+
recordId: string;
|
|
37
|
+
/** The Status of the service plan creation request job */
|
|
38
|
+
status: string;
|
|
39
|
+
/** Service Plan generation request type */
|
|
40
|
+
type: string;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Represent the service plan generation result
|
|
44
|
+
*
|
|
45
|
+
* Keys:
|
|
46
|
+
* id (string | null): id
|
|
47
|
+
*/
|
|
48
|
+
export interface ServicePlanGenerationOutputRepresentation {
|
|
49
|
+
errorCode: string | null;
|
|
50
|
+
errorMessage: string | null;
|
|
51
|
+
id: string | null;
|
|
52
|
+
reason: string;
|
|
53
|
+
recordId: string;
|
|
54
|
+
status: string;
|
|
55
|
+
type: string;
|
|
56
|
+
}
|
|
57
|
+
export declare const notifyUpdateAvailableFactory: (luvio: $64$luvio_engine_Luvio) => (configs: Partial<KeyParams>[]) => Promise<void>;
|