@salesforce/lds-adapters-industries-serviceprocess 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.
Files changed (21) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/industries-serviceprocess.js +662 -0
  3. package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +62 -0
  4. package/dist/es/es2018/types/src/generated/adapters/fetchServiceProcessDefinition.d.ts +29 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getCaseServiceProcessLayoutData.d.ts +28 -0
  6. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +2 -0
  7. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +5 -0
  8. package/dist/es/es2018/types/src/generated/resources/getConnectServiceExcellenceServiceCatalogRequestLayoutDataCaseById.d.ts +18 -0
  9. package/dist/es/es2018/types/src/generated/resources/getConnectServiceExcellenceServiceProcessDefinition.d.ts +17 -0
  10. package/dist/es/es2018/types/src/generated/types/AttributeRepresentation.d.ts +43 -0
  11. package/dist/es/es2018/types/src/generated/types/GenericObjectOutput.d.ts +28 -0
  12. package/dist/es/es2018/types/src/generated/types/ServiceProcessDefinitionRepresentation.d.ts +38 -0
  13. package/dist/es/es2018/types/src/generated/types/ServiceProcessDependencyDetails.d.ts +32 -0
  14. package/dist/es/es2018/types/src/generated/types/ServiceProcessRequestLayoutDataRepresentation.d.ts +38 -0
  15. package/dist/es/es2018/types/src/generated/types/SvcCatalogItemGroupRepresentation.d.ts +41 -0
  16. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  17. package/package.json +71 -0
  18. package/sfdc/index.d.ts +1 -0
  19. package/sfdc/index.js +712 -0
  20. package/src/raml/api.raml +163 -0
  21. package/src/raml/luvio.raml +26 -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 = "serviceprocess";
@@ -0,0 +1,29 @@
1
+ import { AdapterConfigMetadata as $64$luvio_engine_AdapterConfigMetadata, Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
2
+ import { Untrusted as adapter$45$utils_Untrusted, AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig } from './adapter-utils';
3
+ import { ResourceRequestConfig as resources_getConnectServiceExcellenceServiceProcessDefinition_ResourceRequestConfig } from '../resources/getConnectServiceExcellenceServiceProcessDefinition';
4
+ import { ServiceProcessDefinitionRepresentation as types_ServiceProcessDefinitionRepresentation_ServiceProcessDefinitionRepresentation } from '../types/ServiceProcessDefinitionRepresentation';
5
+ export declare const adapterName = "fetchServiceProcessDefinition";
6
+ export declare const fetchServiceProcessDefinition_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
+ export declare const fetchServiceProcessDefinition_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
+ export interface FetchServiceProcessDefinitionConfig {
9
+ includeAttributes?: boolean;
10
+ productId?: string;
11
+ serviceProcessDefinitionId?: string;
12
+ }
13
+ export declare const createResourceParams: (config: FetchServiceProcessDefinitionConfig) => resources_getConnectServiceExcellenceServiceProcessDefinition_ResourceRequestConfig;
14
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: FetchServiceProcessDefinitionConfig): string;
15
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: FetchServiceProcessDefinitionConfig): $64$luvio_engine_NormalizedKeyMetadata;
16
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<FetchServiceProcessDefinitionConfig>): adapter$45$utils_Untrusted<FetchServiceProcessDefinitionConfig>;
17
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): FetchServiceProcessDefinitionConfig | null;
18
+ export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: FetchServiceProcessDefinitionConfig): $64$luvio_engine_Fragment;
19
+ export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: FetchServiceProcessDefinitionConfig): $64$luvio_engine_Snapshot<types_ServiceProcessDefinitionRepresentation_ServiceProcessDefinitionRepresentation, any>;
20
+ export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: FetchServiceProcessDefinitionConfig, resourceParams: resources_getConnectServiceExcellenceServiceProcessDefinition_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ServiceProcessDefinitionRepresentation_ServiceProcessDefinitionRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_ServiceProcessDefinitionRepresentation_ServiceProcessDefinitionRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ServiceProcessDefinitionRepresentation_ServiceProcessDefinitionRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_ServiceProcessDefinitionRepresentation_ServiceProcessDefinitionRepresentation, any>>;
21
+ export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: FetchServiceProcessDefinitionConfig, resourceParams: resources_getConnectServiceExcellenceServiceProcessDefinition_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
22
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: FetchServiceProcessDefinitionConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_ServiceProcessDefinitionRepresentation_ServiceProcessDefinitionRepresentation, any>>;
23
+ export type BuildSnapshotContext = {
24
+ luvio: $64$luvio_engine_Luvio;
25
+ config: FetchServiceProcessDefinitionConfig;
26
+ };
27
+ export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_ServiceProcessDefinitionRepresentation_ServiceProcessDefinitionRepresentation, any>>;
28
+ export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_ServiceProcessDefinitionRepresentation_ServiceProcessDefinitionRepresentation>): $64$luvio_engine_Snapshot<types_ServiceProcessDefinitionRepresentation_ServiceProcessDefinitionRepresentation, any>;
29
+ export declare const fetchServiceProcessDefinitionAdapterFactory: $64$luvio_engine_AdapterFactory<FetchServiceProcessDefinitionConfig, types_ServiceProcessDefinitionRepresentation_ServiceProcessDefinitionRepresentation>;
@@ -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 } from './adapter-utils';
3
+ import { ResourceRequestConfig as resources_getConnectServiceExcellenceServiceCatalogRequestLayoutDataCaseById_ResourceRequestConfig } from '../resources/getConnectServiceExcellenceServiceCatalogRequestLayoutDataCaseById';
4
+ import { ServiceProcessRequestLayoutDataRepresentation as types_ServiceProcessRequestLayoutDataRepresentation_ServiceProcessRequestLayoutDataRepresentation } from '../types/ServiceProcessRequestLayoutDataRepresentation';
5
+ export declare const adapterName = "getCaseServiceProcessLayoutData";
6
+ export declare const getCaseServiceProcessLayoutData_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
7
+ export declare const getCaseServiceProcessLayoutData_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
8
+ export interface GetCaseServiceProcessLayoutDataConfig {
9
+ Id: string;
10
+ showLookupAttributeDetails?: boolean;
11
+ }
12
+ export declare const createResourceParams: (config: GetCaseServiceProcessLayoutDataConfig) => resources_getConnectServiceExcellenceServiceCatalogRequestLayoutDataCaseById_ResourceRequestConfig;
13
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetCaseServiceProcessLayoutDataConfig): string;
14
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetCaseServiceProcessLayoutDataConfig): $64$luvio_engine_NormalizedKeyMetadata;
15
+ export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetCaseServiceProcessLayoutDataConfig>): adapter$45$utils_Untrusted<GetCaseServiceProcessLayoutDataConfig>;
16
+ export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetCaseServiceProcessLayoutDataConfig | null;
17
+ export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetCaseServiceProcessLayoutDataConfig): $64$luvio_engine_Fragment;
18
+ export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetCaseServiceProcessLayoutDataConfig): $64$luvio_engine_Snapshot<types_ServiceProcessRequestLayoutDataRepresentation_ServiceProcessRequestLayoutDataRepresentation, any>;
19
+ export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetCaseServiceProcessLayoutDataConfig, resourceParams: resources_getConnectServiceExcellenceServiceCatalogRequestLayoutDataCaseById_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ServiceProcessRequestLayoutDataRepresentation_ServiceProcessRequestLayoutDataRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_ServiceProcessRequestLayoutDataRepresentation_ServiceProcessRequestLayoutDataRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ServiceProcessRequestLayoutDataRepresentation_ServiceProcessRequestLayoutDataRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_ServiceProcessRequestLayoutDataRepresentation_ServiceProcessRequestLayoutDataRepresentation, any>>;
20
+ export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetCaseServiceProcessLayoutDataConfig, resourceParams: resources_getConnectServiceExcellenceServiceCatalogRequestLayoutDataCaseById_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
21
+ export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetCaseServiceProcessLayoutDataConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_ServiceProcessRequestLayoutDataRepresentation_ServiceProcessRequestLayoutDataRepresentation, any>>;
22
+ export type BuildSnapshotContext = {
23
+ luvio: $64$luvio_engine_Luvio;
24
+ config: GetCaseServiceProcessLayoutDataConfig;
25
+ };
26
+ export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_ServiceProcessRequestLayoutDataRepresentation_ServiceProcessRequestLayoutDataRepresentation, any>>;
27
+ export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_ServiceProcessRequestLayoutDataRepresentation_ServiceProcessRequestLayoutDataRepresentation>): $64$luvio_engine_Snapshot<types_ServiceProcessRequestLayoutDataRepresentation_ServiceProcessRequestLayoutDataRepresentation, any>;
28
+ export declare const getCaseServiceProcessLayoutDataAdapterFactory: $64$luvio_engine_AdapterFactory<GetCaseServiceProcessLayoutDataConfig, types_ServiceProcessRequestLayoutDataRepresentation_ServiceProcessRequestLayoutDataRepresentation>;
@@ -0,0 +1,2 @@
1
+ export { fetchServiceProcessDefinitionAdapterFactory } from '../adapters/fetchServiceProcessDefinition';
2
+ export { getCaseServiceProcessLayoutDataAdapterFactory } from '../adapters/getCaseServiceProcessLayoutData';
@@ -0,0 +1,5 @@
1
+ declare let fetchServiceProcessDefinition: any;
2
+ declare let getCaseServiceProcessLayoutData: any;
3
+ declare let fetchServiceProcessDefinition_imperative: any;
4
+ declare let getCaseServiceProcessLayoutData_imperative: any;
5
+ export { fetchServiceProcessDefinition, getCaseServiceProcessLayoutData, fetchServiceProcessDefinition_imperative, getCaseServiceProcessLayoutData_imperative, };
@@ -0,0 +1,18 @@
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 { ServiceProcessRequestLayoutDataRepresentation as types_ServiceProcessRequestLayoutDataRepresentation_ServiceProcessRequestLayoutDataRepresentation } from '../types/ServiceProcessRequestLayoutDataRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ urlParams: {
5
+ Id: string;
6
+ };
7
+ queryParams: {
8
+ showLookupAttributeDetails?: boolean;
9
+ };
10
+ }
11
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
12
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
13
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
14
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ServiceProcessRequestLayoutDataRepresentation_ServiceProcessRequestLayoutDataRepresentation): void;
15
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ServiceProcessRequestLayoutDataRepresentation_ServiceProcessRequestLayoutDataRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ServiceProcessRequestLayoutDataRepresentation_ServiceProcessRequestLayoutDataRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ServiceProcessRequestLayoutDataRepresentation_ServiceProcessRequestLayoutDataRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ServiceProcessRequestLayoutDataRepresentation_ServiceProcessRequestLayoutDataRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ServiceProcessRequestLayoutDataRepresentation_ServiceProcessRequestLayoutDataRepresentation, any>;
16
+ export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ServiceProcessRequestLayoutDataRepresentation_ServiceProcessRequestLayoutDataRepresentation>): $64$luvio_engine_ErrorSnapshot;
17
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
18
+ export default createResourceRequest;
@@ -0,0 +1,17 @@
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 { ServiceProcessDefinitionRepresentation as types_ServiceProcessDefinitionRepresentation_ServiceProcessDefinitionRepresentation } from '../types/ServiceProcessDefinitionRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ queryParams: {
5
+ includeAttributes?: boolean;
6
+ productId?: string;
7
+ serviceProcessDefinitionId?: string;
8
+ };
9
+ }
10
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
11
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
12
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
13
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_ServiceProcessDefinitionRepresentation_ServiceProcessDefinitionRepresentation): void;
14
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ServiceProcessDefinitionRepresentation_ServiceProcessDefinitionRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ServiceProcessDefinitionRepresentation_ServiceProcessDefinitionRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ServiceProcessDefinitionRepresentation_ServiceProcessDefinitionRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ServiceProcessDefinitionRepresentation_ServiceProcessDefinitionRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ServiceProcessDefinitionRepresentation_ServiceProcessDefinitionRepresentation, any>;
15
+ export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ServiceProcessDefinitionRepresentation_ServiceProcessDefinitionRepresentation>): $64$luvio_engine_ErrorSnapshot;
16
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
17
+ export default createResourceRequest;
@@ -0,0 +1,43 @@
1
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const VERSION = "10b841857be09fc35579a2967e4d8fae";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: AttributeRepresentation, existing: AttributeRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): AttributeRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: AttributeRepresentationNormalized, incoming: AttributeRepresentationNormalized): 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: AttributeRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Service process attribute representation
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface AttributeRepresentationNormalized {
17
+ /** svc catalog item attribute api name */
18
+ apiName: string;
19
+ /** svc catalog item attribute id */
20
+ attributeId: string;
21
+ /** svc catalog item attribute name */
22
+ attributeName: string;
23
+ /** svc catalog item attribute's child attributes */
24
+ childAttributes: Array<AttributeRepresentation>;
25
+ /** svc catalog item attribute data type */
26
+ dataType: string;
27
+ /** svc catalog item attribute order */
28
+ sortOrder: string;
29
+ }
30
+ /**
31
+ * Service process attribute representation
32
+ *
33
+ * Keys:
34
+ * (none)
35
+ */
36
+ export interface AttributeRepresentation {
37
+ apiName: string;
38
+ attributeId: string;
39
+ attributeName: string;
40
+ childAttributes: Array<AttributeRepresentation>;
41
+ dataType: string;
42
+ sortOrder: string;
43
+ }
@@ -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 = "1157c477435de6315d7bcb346341ac87";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: GenericObjectOutput, existing: GenericObjectOutputNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): GenericObjectOutputNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: GenericObjectOutputNormalized, incoming: GenericObjectOutputNormalized): 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: GenericObjectOutput, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Generic attributes value object
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface GenericObjectOutputNormalized {
17
+ /** Value */
18
+ value: unknown;
19
+ }
20
+ /**
21
+ * Generic attributes value object
22
+ *
23
+ * Keys:
24
+ * (none)
25
+ */
26
+ export interface GenericObjectOutput {
27
+ value: unknown;
28
+ }
@@ -0,0 +1,38 @@
1
+ import { AttributeRepresentation as AttributeRepresentation_AttributeRepresentation } from './AttributeRepresentation';
2
+ import { ServiceProcessDependencyDetails as ServiceProcessDependencyDetails_ServiceProcessDependencyDetails } from './ServiceProcessDependencyDetails';
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, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
4
+ export declare const TTL = 300000;
5
+ export declare const VERSION = "33ba038f6b7bf9bf829de107f3cb7bfd";
6
+ export declare function validate(obj: any, path?: string): TypeError | null;
7
+ export declare const RepresentationType: string;
8
+ export declare function normalize(input: ServiceProcessDefinitionRepresentation, existing: ServiceProcessDefinitionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ServiceProcessDefinitionRepresentationNormalized;
9
+ export declare const select: () => $64$luvio_engine_BaseFragment;
10
+ export declare function equals(existing: ServiceProcessDefinitionRepresentationNormalized, incoming: ServiceProcessDefinitionRepresentationNormalized): boolean;
11
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
12
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ServiceProcessDefinitionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
13
+ /**
14
+ * Service Process Definition representation
15
+ *
16
+ * Keys:
17
+ * (none)
18
+ */
19
+ export interface ServiceProcessDefinitionRepresentationNormalized {
20
+ /** get service process attributes */
21
+ attributes: Array<AttributeRepresentation_AttributeRepresentation>;
22
+ /** service process dependency details */
23
+ serviceProcessDefinitionMap: {
24
+ [key: string]: Array<ServiceProcessDependencyDetails_ServiceProcessDependencyDetails>;
25
+ };
26
+ }
27
+ /**
28
+ * Service Process Definition representation
29
+ *
30
+ * Keys:
31
+ * (none)
32
+ */
33
+ export interface ServiceProcessDefinitionRepresentation {
34
+ attributes: Array<AttributeRepresentation_AttributeRepresentation>;
35
+ serviceProcessDefinitionMap: {
36
+ [key: string]: Array<ServiceProcessDependencyDetails_ServiceProcessDependencyDetails>;
37
+ };
38
+ }
@@ -0,0 +1,32 @@
1
+ import { GenericObjectOutput as GenericObjectOutput_GenericObjectOutput } from './GenericObjectOutput';
2
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
+ export declare const VERSION = "ec4bff13cf4da5d6d15c0209df7265fe";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: ServiceProcessDependencyDetails, existing: ServiceProcessDependencyDetailsNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ServiceProcessDependencyDetailsNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: ServiceProcessDependencyDetailsNormalized, incoming: ServiceProcessDependencyDetailsNormalized): 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: ServiceProcessDependencyDetails, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Service catalog Dependency representation
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface ServiceProcessDependencyDetailsNormalized {
18
+ /** service process dependency details */
19
+ details: GenericObjectOutput_GenericObjectOutput;
20
+ /** service process dependency type */
21
+ type: string;
22
+ }
23
+ /**
24
+ * Service catalog Dependency representation
25
+ *
26
+ * Keys:
27
+ * (none)
28
+ */
29
+ export interface ServiceProcessDependencyDetails {
30
+ details: GenericObjectOutput_GenericObjectOutput;
31
+ type: string;
32
+ }
@@ -0,0 +1,38 @@
1
+ import { GenericObjectOutput as GenericObjectOutput_GenericObjectOutput } from './GenericObjectOutput';
2
+ import { SvcCatalogItemGroupRepresentation as SvcCatalogItemGroupRepresentation_SvcCatalogItemGroupRepresentation } from './SvcCatalogItemGroupRepresentation';
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, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
4
+ export declare const TTL = 60000;
5
+ export declare const VERSION = "3c93758e60084dd8896588d82c17fbbe";
6
+ export declare function validate(obj: any, path?: string): TypeError | null;
7
+ export declare const RepresentationType: string;
8
+ export declare function normalize(input: ServiceProcessRequestLayoutDataRepresentation, existing: ServiceProcessRequestLayoutDataRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ServiceProcessRequestLayoutDataRepresentationNormalized;
9
+ export declare const select: () => $64$luvio_engine_BaseFragment;
10
+ export declare function equals(existing: ServiceProcessRequestLayoutDataRepresentationNormalized, incoming: ServiceProcessRequestLayoutDataRepresentationNormalized): boolean;
11
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
12
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: ServiceProcessRequestLayoutDataRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
13
+ /**
14
+ * Service process layout data output representation
15
+ *
16
+ * Keys:
17
+ * (none)
18
+ */
19
+ export interface ServiceProcessRequestLayoutDataRepresentationNormalized {
20
+ /** svc catalog request */
21
+ data: {
22
+ [key: string]: GenericObjectOutput_GenericObjectOutput;
23
+ };
24
+ /** svc catalog item groups */
25
+ groups: Array<SvcCatalogItemGroupRepresentation_SvcCatalogItemGroupRepresentation>;
26
+ }
27
+ /**
28
+ * Service process layout data output representation
29
+ *
30
+ * Keys:
31
+ * (none)
32
+ */
33
+ export interface ServiceProcessRequestLayoutDataRepresentation {
34
+ data: {
35
+ [key: string]: GenericObjectOutput_GenericObjectOutput;
36
+ };
37
+ groups: Array<SvcCatalogItemGroupRepresentation_SvcCatalogItemGroupRepresentation>;
38
+ }
@@ -0,0 +1,41 @@
1
+ import { AttributeRepresentation as AttributeRepresentation_AttributeRepresentation } from './AttributeRepresentation';
2
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
+ export declare const VERSION = "1fc0d88f4020d3f13b6a209245e775dd";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: SvcCatalogItemGroupRepresentation, existing: SvcCatalogItemGroupRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SvcCatalogItemGroupRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: SvcCatalogItemGroupRepresentationNormalized, incoming: SvcCatalogItemGroupRepresentationNormalized): 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: SvcCatalogItemGroupRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Service process group representation
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface SvcCatalogItemGroupRepresentationNormalized {
18
+ /** svc catalog item group api name */
19
+ apiName: string;
20
+ /** svc catalog item group attributes */
21
+ attributes: Array<AttributeRepresentation_AttributeRepresentation>;
22
+ /** svc catalog item group id */
23
+ groupId: string;
24
+ /** svc catalog item group name */
25
+ groupName: string;
26
+ /** svc catalog item group order */
27
+ sortOrder: string;
28
+ }
29
+ /**
30
+ * Service process group representation
31
+ *
32
+ * Keys:
33
+ * (none)
34
+ */
35
+ export interface SvcCatalogItemGroupRepresentation {
36
+ apiName: string;
37
+ attributes: Array<AttributeRepresentation_AttributeRepresentation>;
38
+ groupId: string;
39
+ groupName: string;
40
+ sortOrder: string;
41
+ }
@@ -0,0 +1,32 @@
1
+ import { NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
2
+ export declare const ObjectKeys: {
3
+ (o: object): string[];
4
+ (o: {}): string[];
5
+ }, ObjectCreate: {
6
+ (o: object | null): any;
7
+ (o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
8
+ }, ObjectAssign: {
9
+ <T extends {}, U>(target: T, source: U): T & U;
10
+ <T_1 extends {}, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
11
+ <T_2 extends {}, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W;
12
+ (target: object, ...sources: any[]): any;
13
+ };
14
+ export declare const ArrayIsArray: (arg: any) => arg is any[];
15
+ export declare const JSONStringify: {
16
+ (value: any, replacer?: ((this: any, key: string, value: any) => any) | undefined, space?: string | number | undefined): string;
17
+ (value: any, replacer?: (string | number)[] | null | undefined, space?: string | number | undefined): string;
18
+ };
19
+ type AllowedPrimitives = boolean | string | number | Date | null;
20
+ type Value<T> = T extends AllowedPrimitives ? T : RecursivePartial<T>;
21
+ export type RecursivePartial<T> = null | {
22
+ [P in keyof T]?: T[P] extends Array<infer U> ? Array<Value<U>> | null : Value<T[P]> | null;
23
+ };
24
+ export declare function equalsArray<U, V extends U[]>(a: V, b: V, equalsItem: (itemA: U, itemB: U) => boolean | void): boolean;
25
+ export declare function equalsObject<U, V extends {
26
+ [key: string]: U;
27
+ }>(a: V, b: V, equalsProp: (propA: U, propB: U) => boolean | void): boolean;
28
+ export declare function createLink(ref: string | $64$luvio_engine_NormalizedKeyMetadata): {
29
+ __ref: string;
30
+ };
31
+ export declare function assignMetadataLink(entry: any, metadataKey: string | $64$luvio_engine_NormalizedKeyMetadata): void;
32
+ export {};
package/package.json ADDED
@@ -0,0 +1,71 @@
1
+ {
2
+ "name": "@salesforce/lds-adapters-industries-serviceprocess",
3
+ "version": "0.1.0-dev1",
4
+ "description": "Connect apis for fetching and updating service processes",
5
+ "license": "MIT",
6
+ "main": "dist/es/es2018/industries-serviceprocess.js",
7
+ "module": "dist/es/es2018/industries-serviceprocess.js",
8
+ "types": "dist/es/es2018/types/src/generated/artifacts/main.d.ts",
9
+ "files": [
10
+ "dist",
11
+ "sfdc",
12
+ "src/raml/*"
13
+ ],
14
+ "exports": {
15
+ ".": {
16
+ "types": "./dist/es/es2018/types/src/generated/artifacts/main.d.ts",
17
+ "import": "./dist/es/es2018/industries-serviceprocess.js",
18
+ "require": "./dist/es/es2018/industries-serviceprocess.js"
19
+ },
20
+ "./sfdc": {
21
+ "types": "./sfdc/index.d.ts",
22
+ "import": "./sfdc/index.js",
23
+ "default": "./sfdc/index.js"
24
+ }
25
+ },
26
+ "contributors": [
27
+ "saksham.bhayana@salesforce.com"
28
+ ],
29
+ "scripts": {
30
+ "build": "yarn build:raml && yarn build:services",
31
+ "build:karma": "rollup --bundleConfigAsCjs --config rollup.config.karma.js",
32
+ "build:raml": "luvio generate src/raml/luvio.raml src/generated -p '../lds-compiler-plugins'",
33
+ "build:services": "rollup --bundleConfigAsCjs --config rollup.config.js",
34
+ "clean": "rm -rf dist sfdc src/generated karma/dist",
35
+ "release:core": "../../scripts/release/core.js --adapter=lds-adapters-industries-serviceprocess",
36
+ "release:corejar": "yarn build && packages/core-build/scripts/core.js --adapter=lds-adapters-industries-serviceprocess",
37
+ "start": "nx build:karma && karma start",
38
+ "test": "nx build:karma && karma start --single-run",
39
+ "test:unit": "jest --config=./jest.config.js"
40
+ },
41
+ "dependencies": {
42
+ "@salesforce/lds-bindings": "^0.1.0-dev1"
43
+ },
44
+ "devDependencies": {
45
+ "@salesforce/lds-compiler-plugins": "^0.1.0-dev1",
46
+ "@salesforce/lds-karma": "^0.1.0-dev1"
47
+ },
48
+ "nx": {
49
+ "targets": {
50
+ "build": {
51
+ "outputs": [
52
+ "{projectRoot}/dist",
53
+ "{projectRoot}/sfdc"
54
+ ]
55
+ },
56
+ "build:raml": {
57
+ "outputs": [
58
+ "{projectRoot}/src/generated"
59
+ ]
60
+ },
61
+ "build:karma": {
62
+ "outputs": [
63
+ "{projectRoot}/karma/dist"
64
+ ]
65
+ }
66
+ }
67
+ },
68
+ "volta": {
69
+ "extends": "../../package.json"
70
+ }
71
+ }
@@ -0,0 +1 @@
1
+ export * from '../dist/es/es2018/types/src/generated/artifacts/sfdc';