@salesforce/lds-adapters-service-ecm 1.388.0 → 1.389.1
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/dist/es/es2018/service-ecm.js +594 -391
- package/dist/es/es2018/types/src/generated/adapters/downloadServiceProcessTemplate.d.ts +27 -0
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/resources/getConnectServiceAutomationServiceProcessDownloadByProductId.d.ts +15 -0
- package/dist/es/es2018/types/src/generated/types/ServiceProcessTemplateDownloadOutputRepresentation.d.ts +35 -0
- package/package.json +3 -3
- package/sfdc/index.js +552 -337
- package/src/raml/api.raml +28 -0
- package/src/raml/luvio.raml +7 -0
|
@@ -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_getConnectServiceAutomationServiceProcessDownloadByProductId_ResourceRequestConfig } from '../resources/getConnectServiceAutomationServiceProcessDownloadByProductId';
|
|
4
|
+
import { ServiceProcessTemplateDownloadOutputRepresentation as types_ServiceProcessTemplateDownloadOutputRepresentation_ServiceProcessTemplateDownloadOutputRepresentation } from '../types/ServiceProcessTemplateDownloadOutputRepresentation';
|
|
5
|
+
export declare const adapterName = "downloadServiceProcessTemplate";
|
|
6
|
+
export declare const downloadServiceProcessTemplate_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
7
|
+
export declare const downloadServiceProcessTemplate_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
8
|
+
export interface DownloadServiceProcessTemplateConfig {
|
|
9
|
+
productId: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const createResourceParams: (config: DownloadServiceProcessTemplateConfig) => resources_getConnectServiceAutomationServiceProcessDownloadByProductId_ResourceRequestConfig;
|
|
12
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: DownloadServiceProcessTemplateConfig): string;
|
|
13
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: DownloadServiceProcessTemplateConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
14
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<DownloadServiceProcessTemplateConfig>): adapter$45$utils_Untrusted<DownloadServiceProcessTemplateConfig>;
|
|
15
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): DownloadServiceProcessTemplateConfig | null;
|
|
16
|
+
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: DownloadServiceProcessTemplateConfig): $64$luvio_engine_Fragment;
|
|
17
|
+
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: DownloadServiceProcessTemplateConfig): $64$luvio_engine_Snapshot<types_ServiceProcessTemplateDownloadOutputRepresentation_ServiceProcessTemplateDownloadOutputRepresentation, any>;
|
|
18
|
+
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: DownloadServiceProcessTemplateConfig, resourceParams: resources_getConnectServiceAutomationServiceProcessDownloadByProductId_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ServiceProcessTemplateDownloadOutputRepresentation_ServiceProcessTemplateDownloadOutputRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_ServiceProcessTemplateDownloadOutputRepresentation_ServiceProcessTemplateDownloadOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_ServiceProcessTemplateDownloadOutputRepresentation_ServiceProcessTemplateDownloadOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_ServiceProcessTemplateDownloadOutputRepresentation_ServiceProcessTemplateDownloadOutputRepresentation, any>>;
|
|
19
|
+
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: DownloadServiceProcessTemplateConfig, resourceParams: resources_getConnectServiceAutomationServiceProcessDownloadByProductId_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
20
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: DownloadServiceProcessTemplateConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_ServiceProcessTemplateDownloadOutputRepresentation_ServiceProcessTemplateDownloadOutputRepresentation, any>>;
|
|
21
|
+
export type BuildSnapshotContext = {
|
|
22
|
+
luvio: $64$luvio_engine_Luvio;
|
|
23
|
+
config: DownloadServiceProcessTemplateConfig;
|
|
24
|
+
};
|
|
25
|
+
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_ServiceProcessTemplateDownloadOutputRepresentation_ServiceProcessTemplateDownloadOutputRepresentation, any>>;
|
|
26
|
+
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_ServiceProcessTemplateDownloadOutputRepresentation_ServiceProcessTemplateDownloadOutputRepresentation>): $64$luvio_engine_Snapshot<types_ServiceProcessTemplateDownloadOutputRepresentation_ServiceProcessTemplateDownloadOutputRepresentation, any>;
|
|
27
|
+
export declare const downloadServiceProcessTemplateAdapterFactory: $64$luvio_engine_AdapterFactory<DownloadServiceProcessTemplateConfig, types_ServiceProcessTemplateDownloadOutputRepresentation_ServiceProcessTemplateDownloadOutputRepresentation>;
|
|
@@ -4,6 +4,7 @@ export { updateCatalogItemAdapterFactory } from '../adapters/updateCatalogItem';
|
|
|
4
4
|
export { updateEpcCategoriesAdapterFactory } from '../adapters/updateEpcCategories';
|
|
5
5
|
export { getAllServiceAutomationDepAdapterFactory } from '../adapters/getAllServiceAutomationDep';
|
|
6
6
|
export { getAllServiceProcessTemplateAdapterFactory } from '../adapters/getAllServiceProcessTemplate';
|
|
7
|
+
export { downloadServiceProcessTemplateAdapterFactory } from '../adapters/downloadServiceProcessTemplate';
|
|
7
8
|
export { getAgentActionsAdapterFactory } from '../adapters/getAgentActions';
|
|
8
9
|
export { createAgentActionAdapterFactory } from '../adapters/createAgentAction';
|
|
9
10
|
export { createAgentFlowAdapterFactory } from '../adapters/createAgentFlow';
|
|
@@ -2,6 +2,7 @@ declare let createAgentAction: any;
|
|
|
2
2
|
declare let createAgentFlow: any;
|
|
3
3
|
declare let createCatalogItem: any;
|
|
4
4
|
declare let deployTemplate: any;
|
|
5
|
+
declare let downloadServiceProcessTemplate: any;
|
|
5
6
|
declare let generateIntakeForm: any;
|
|
6
7
|
declare let generateOmniScript: any;
|
|
7
8
|
declare let getAgentActions: any;
|
|
@@ -11,9 +12,10 @@ declare let getCatalogItem: any;
|
|
|
11
12
|
declare let getServiceRequest: any;
|
|
12
13
|
declare let updateCatalogItem: any;
|
|
13
14
|
declare let updateEpcCategories: any;
|
|
15
|
+
declare let downloadServiceProcessTemplate_imperative: any;
|
|
14
16
|
declare let getAgentActions_imperative: any;
|
|
15
17
|
declare let getAllServiceAutomationDep_imperative: any;
|
|
16
18
|
declare let getAllServiceProcessTemplate_imperative: any;
|
|
17
19
|
declare let getCatalogItem_imperative: any;
|
|
18
20
|
declare let getServiceRequest_imperative: any;
|
|
19
|
-
export { createAgentAction, createAgentFlow, createCatalogItem, deployTemplate, generateIntakeForm, generateOmniScript, getAgentActions, getAllServiceAutomationDep, getAllServiceProcessTemplate, getCatalogItem, getServiceRequest, updateCatalogItem, updateEpcCategories, getAgentActions_imperative, getAllServiceAutomationDep_imperative, getAllServiceProcessTemplate_imperative, getCatalogItem_imperative, getServiceRequest_imperative, };
|
|
21
|
+
export { createAgentAction, createAgentFlow, createCatalogItem, deployTemplate, downloadServiceProcessTemplate, generateIntakeForm, generateOmniScript, getAgentActions, getAllServiceAutomationDep, getAllServiceProcessTemplate, getCatalogItem, getServiceRequest, updateCatalogItem, updateEpcCategories, downloadServiceProcessTemplate_imperative, getAgentActions_imperative, getAllServiceAutomationDep_imperative, getAllServiceProcessTemplate_imperative, getCatalogItem_imperative, getServiceRequest_imperative, };
|
|
@@ -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 { ServiceProcessTemplateDownloadOutputRepresentation as types_ServiceProcessTemplateDownloadOutputRepresentation_ServiceProcessTemplateDownloadOutputRepresentation } from '../types/ServiceProcessTemplateDownloadOutputRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
urlParams: {
|
|
5
|
+
productId: 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_ServiceProcessTemplateDownloadOutputRepresentation_ServiceProcessTemplateDownloadOutputRepresentation): void;
|
|
12
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_ServiceProcessTemplateDownloadOutputRepresentation_ServiceProcessTemplateDownloadOutputRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ServiceProcessTemplateDownloadOutputRepresentation_ServiceProcessTemplateDownloadOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_ServiceProcessTemplateDownloadOutputRepresentation_ServiceProcessTemplateDownloadOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_ServiceProcessTemplateDownloadOutputRepresentation_ServiceProcessTemplateDownloadOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_ServiceProcessTemplateDownloadOutputRepresentation_ServiceProcessTemplateDownloadOutputRepresentation, any>;
|
|
13
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_ServiceProcessTemplateDownloadOutputRepresentation_ServiceProcessTemplateDownloadOutputRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
14
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
15
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const TTL = 6000;
|
|
3
|
+
export declare const VERSION = "2ae2759347becfbc75aebc8851b6d848";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: ServiceProcessTemplateDownloadOutputRepresentation, existing: ServiceProcessTemplateDownloadOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): ServiceProcessTemplateDownloadOutputRepresentationNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_BaseFragment;
|
|
8
|
+
export declare function equals(existing: ServiceProcessTemplateDownloadOutputRepresentationNormalized, incoming: ServiceProcessTemplateDownloadOutputRepresentationNormalized): 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: ServiceProcessTemplateDownloadOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* Output Representation of Service Process Template Download
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface ServiceProcessTemplateDownloadOutputRepresentationNormalized {
|
|
18
|
+
/** Content Document ID for the downloaded file */
|
|
19
|
+
contentDocId: string;
|
|
20
|
+
/** Download URL for the file */
|
|
21
|
+
downloadUrl: string;
|
|
22
|
+
/** File name of the downloaded template */
|
|
23
|
+
fileName: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Output Representation of Service Process Template Download
|
|
27
|
+
*
|
|
28
|
+
* Keys:
|
|
29
|
+
* (none)
|
|
30
|
+
*/
|
|
31
|
+
export interface ServiceProcessTemplateDownloadOutputRepresentation {
|
|
32
|
+
contentDocId: string;
|
|
33
|
+
downloadUrl: string;
|
|
34
|
+
fileName: string;
|
|
35
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-service-ecm",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.389.1",
|
|
4
4
|
"description": "Service Automation Request",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "dist/es/es2018/service-ecm.js",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"test:unit": "jest"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@salesforce/lds-bindings": "^1.
|
|
43
|
+
"@salesforce/lds-bindings": "^1.389.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.389.1"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|