@salesforce/lds-adapters-service-ecm 1.328.0 → 1.329.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 +360 -128
- package/dist/es/es2018/types/src/generated/adapters/updateEpcCategories.d.ts +17 -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 +2 -1
- package/dist/es/es2018/types/src/generated/resources/patchConnectCatalogCategoriesByCatalogId.d.ts +16 -0
- package/dist/es/es2018/types/src/generated/types/CategoriesInputRepresentation.d.ts +29 -0
- package/dist/es/es2018/types/src/generated/types/CategoryAndParentErrorOutputRepresentation.d.ts +28 -0
- package/dist/es/es2018/types/src/generated/types/CategoryAndParentOutputRepresentation.d.ts +48 -0
- package/dist/es/es2018/types/src/generated/types/CategoryInput.d.ts +31 -0
- package/package.json +3 -3
- package/sfdc/index.js +424 -189
- package/src/raml/api.raml +66 -0
- package/src/raml/luvio.raml +9 -0
|
@@ -0,0 +1,17 @@
|
|
|
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 { CategoryInput as types_CategoryInput_CategoryInput } from '../types/CategoryInput';
|
|
4
|
+
import { ResourceRequestConfig as resources_patchConnectCatalogCategoriesByCatalogId_ResourceRequestConfig } from '../resources/patchConnectCatalogCategoriesByCatalogId';
|
|
5
|
+
import { CategoryAndParentOutputRepresentation as types_CategoryAndParentOutputRepresentation_CategoryAndParentOutputRepresentation } from '../types/CategoryAndParentOutputRepresentation';
|
|
6
|
+
export declare const adapterName = "updateEpcCategories";
|
|
7
|
+
export declare const updateEpcCategories_ConfigPropertyMetadata: $64$luvio_engine_AdapterConfigMetadata[];
|
|
8
|
+
export declare const updateEpcCategories_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
9
|
+
export interface UpdateEpcCategoriesConfig {
|
|
10
|
+
catalogId: string;
|
|
11
|
+
categories: Array<types_CategoryInput_CategoryInput>;
|
|
12
|
+
}
|
|
13
|
+
export declare const createResourceParams: (config: UpdateEpcCategoriesConfig) => resources_patchConnectCatalogCategoriesByCatalogId_ResourceRequestConfig;
|
|
14
|
+
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<UpdateEpcCategoriesConfig>): adapter$45$utils_Untrusted<UpdateEpcCategoriesConfig>;
|
|
15
|
+
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): UpdateEpcCategoriesConfig | null;
|
|
16
|
+
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: UpdateEpcCategoriesConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<import("@luvio/engine").FulfilledSnapshot<types_CategoryAndParentOutputRepresentation_CategoryAndParentOutputRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_CategoryAndParentOutputRepresentation_CategoryAndParentOutputRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_CategoryAndParentOutputRepresentation_CategoryAndParentOutputRepresentation, any>>;
|
|
17
|
+
export declare const updateEpcCategoriesAdapterFactory: $64$luvio_engine_AdapterFactory<UpdateEpcCategoriesConfig, types_CategoryAndParentOutputRepresentation_CategoryAndParentOutputRepresentation>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { createCatalogItemAdapterFactory } from '../adapters/createCatalogItem';
|
|
2
2
|
export { getCatalogItemAdapterFactory } from '../adapters/getCatalogItem';
|
|
3
3
|
export { updateCatalogItemAdapterFactory } from '../adapters/updateCatalogItem';
|
|
4
|
+
export { updateEpcCategoriesAdapterFactory } from '../adapters/updateEpcCategories';
|
|
4
5
|
export { getAllServiceAutomationDepAdapterFactory } from '../adapters/getAllServiceAutomationDep';
|
|
@@ -3,6 +3,7 @@ declare let getAllServiceAutomationDep: any;
|
|
|
3
3
|
declare let getCatalogItem: any;
|
|
4
4
|
declare let getCatalogItemNotifyChange: any;
|
|
5
5
|
declare let updateCatalogItem: any;
|
|
6
|
+
declare let updateEpcCategories: any;
|
|
6
7
|
declare let getAllServiceAutomationDep_imperative: any;
|
|
7
8
|
declare let getCatalogItem_imperative: any;
|
|
8
|
-
export { createCatalogItem, getAllServiceAutomationDep, getCatalogItem, getCatalogItemNotifyChange, updateCatalogItem, getAllServiceAutomationDep_imperative, getCatalogItem_imperative, };
|
|
9
|
+
export { createCatalogItem, getAllServiceAutomationDep, getCatalogItem, getCatalogItemNotifyChange, updateCatalogItem, updateEpcCategories, getAllServiceAutomationDep_imperative, getCatalogItem_imperative, };
|
package/dist/es/es2018/types/src/generated/resources/patchConnectCatalogCategoriesByCatalogId.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CategoryInput as types_CategoryInput_CategoryInput } from '../types/CategoryInput';
|
|
2
|
+
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';
|
|
3
|
+
import { CategoryAndParentOutputRepresentation as types_CategoryAndParentOutputRepresentation_CategoryAndParentOutputRepresentation } from '../types/CategoryAndParentOutputRepresentation';
|
|
4
|
+
export interface ResourceRequestConfig {
|
|
5
|
+
urlParams: {
|
|
6
|
+
catalogId: string;
|
|
7
|
+
};
|
|
8
|
+
body: {
|
|
9
|
+
categories: Array<types_CategoryInput_CategoryInput>;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
13
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_CategoryAndParentOutputRepresentation_CategoryAndParentOutputRepresentation): void;
|
|
14
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_CategoryAndParentOutputRepresentation_CategoryAndParentOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_CategoryAndParentOutputRepresentation_CategoryAndParentOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_CategoryAndParentOutputRepresentation_CategoryAndParentOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_CategoryAndParentOutputRepresentation_CategoryAndParentOutputRepresentation, any>;
|
|
15
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
16
|
+
export default createResourceRequest;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { CategoryInput as CategoryInput_CategoryInput } from './CategoryInput';
|
|
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 = "b34c3b8ea435c1f1c9684e610ad269f4";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: CategoriesInputRepresentation, existing: CategoriesInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CategoriesInputRepresentationNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
|
+
export declare function equals(existing: CategoriesInputRepresentationNormalized, incoming: CategoriesInputRepresentationNormalized): 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: CategoriesInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
11
|
+
/**
|
|
12
|
+
* Category and Parent api input representation
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface CategoriesInputRepresentationNormalized {
|
|
18
|
+
/** List of Category ID and Parent ID */
|
|
19
|
+
categories: Array<CategoryInput_CategoryInput>;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Category and Parent api input representation
|
|
23
|
+
*
|
|
24
|
+
* Keys:
|
|
25
|
+
* (none)
|
|
26
|
+
*/
|
|
27
|
+
export interface CategoriesInputRepresentation {
|
|
28
|
+
categories: Array<CategoryInput_CategoryInput>;
|
|
29
|
+
}
|
package/dist/es/es2018/types/src/generated/types/CategoryAndParentErrorOutputRepresentation.d.ts
ADDED
|
@@ -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 = "5fca2f2620a171dad57b573bb5e19ae4";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: CategoryAndParentErrorOutputRepresentation, existing: CategoryAndParentErrorOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CategoryAndParentErrorOutputRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: CategoryAndParentErrorOutputRepresentationNormalized, incoming: CategoryAndParentErrorOutputRepresentationNormalized): 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: CategoryAndParentErrorOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Output representation for errors during update of Categories
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface CategoryAndParentErrorOutputRepresentationNormalized {
|
|
17
|
+
/** Error list during the update of categories */
|
|
18
|
+
errorMessageList: Array<string>;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Output representation for errors during update of Categories
|
|
22
|
+
*
|
|
23
|
+
* Keys:
|
|
24
|
+
* (none)
|
|
25
|
+
*/
|
|
26
|
+
export interface CategoryAndParentErrorOutputRepresentation {
|
|
27
|
+
errorMessageList: Array<string>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { CategoryAndParentErrorOutputRepresentation as CategoryAndParentErrorOutputRepresentation_CategoryAndParentErrorOutputRepresentation } from './CategoryAndParentErrorOutputRepresentation';
|
|
2
|
+
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, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
3
|
+
export declare const TTL = 6000;
|
|
4
|
+
export declare const VERSION = "fe841039450a703d6b90e94658dd230f";
|
|
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 CategoryAndParentOutputRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
+
export type PartialCategoryAndParentOutputRepresentationNormalizedKeyMetadata = 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): CategoryAndParentOutputRepresentationNormalizedKeyMetadata;
|
|
14
|
+
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: CategoryAndParentOutputRepresentation): string;
|
|
15
|
+
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: CategoryAndParentOutputRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
|
|
16
|
+
export declare function normalize(input: CategoryAndParentOutputRepresentation, existing: CategoryAndParentOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CategoryAndParentOutputRepresentationNormalized;
|
|
17
|
+
export declare const select: () => $64$luvio_engine_BaseFragment;
|
|
18
|
+
export declare function equals(existing: CategoryAndParentOutputRepresentationNormalized, incoming: CategoryAndParentOutputRepresentationNormalized): boolean;
|
|
19
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
20
|
+
export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: CategoryAndParentOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
21
|
+
/**
|
|
22
|
+
* Category And Parent
|
|
23
|
+
*
|
|
24
|
+
* Keys:
|
|
25
|
+
* id (string): catalogId
|
|
26
|
+
*/
|
|
27
|
+
export interface CategoryAndParentOutputRepresentationNormalized {
|
|
28
|
+
/** Catalog ID */
|
|
29
|
+
catalogId: string;
|
|
30
|
+
/** Error list for categories realignment */
|
|
31
|
+
errors: Array<CategoryAndParentErrorOutputRepresentation_CategoryAndParentErrorOutputRepresentation>;
|
|
32
|
+
/** Output message */
|
|
33
|
+
message: string;
|
|
34
|
+
/** Output status code */
|
|
35
|
+
status: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Category And Parent
|
|
39
|
+
*
|
|
40
|
+
* Keys:
|
|
41
|
+
* id (string): catalogId
|
|
42
|
+
*/
|
|
43
|
+
export interface CategoryAndParentOutputRepresentation {
|
|
44
|
+
catalogId: string;
|
|
45
|
+
errors: Array<CategoryAndParentErrorOutputRepresentation_CategoryAndParentErrorOutputRepresentation>;
|
|
46
|
+
message: string;
|
|
47
|
+
status: string;
|
|
48
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, FragmentSelection as $64$luvio_engine_FragmentSelection, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const VERSION = "152225dd93c6d2c80730d773395fe8dc";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: CategoryInput, existing: CategoryInputNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): CategoryInputNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: CategoryInputNormalized, incoming: CategoryInputNormalized): 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: CategoryInput, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
10
|
+
/**
|
|
11
|
+
* Category and Parent api input payload representation
|
|
12
|
+
*
|
|
13
|
+
* Keys:
|
|
14
|
+
* (none)
|
|
15
|
+
*/
|
|
16
|
+
export interface CategoryInputNormalized {
|
|
17
|
+
/** Specifies Category ID */
|
|
18
|
+
categoryId: string;
|
|
19
|
+
/** Specifies Parent Category ID */
|
|
20
|
+
parentCategoryId: string;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Category and Parent api input payload representation
|
|
24
|
+
*
|
|
25
|
+
* Keys:
|
|
26
|
+
* (none)
|
|
27
|
+
*/
|
|
28
|
+
export interface CategoryInput {
|
|
29
|
+
categoryId: string;
|
|
30
|
+
parentCategoryId: string;
|
|
31
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-adapters-service-ecm",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.329.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.329.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@salesforce/lds-compiler-plugins": "^1.
|
|
46
|
+
"@salesforce/lds-compiler-plugins": "^1.329.1"
|
|
47
47
|
},
|
|
48
48
|
"nx": {
|
|
49
49
|
"targets": {
|