@salesforce/lds-adapters-service-servicecatalogcategory 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.
@@ -0,0 +1,12 @@
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 { SvcCatalogCategoryOutputRepresentation as types_SvcCatalogCategoryOutputRepresentation_SvcCatalogCategoryOutputRepresentation } from '../types/SvcCatalogCategoryOutputRepresentation';
3
+ export interface ResourceRequestConfig {
4
+ }
5
+ export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
6
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
7
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
8
+ export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_SvcCatalogCategoryOutputRepresentation_SvcCatalogCategoryOutputRepresentation): void;
9
+ export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_SvcCatalogCategoryOutputRepresentation_SvcCatalogCategoryOutputRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_SvcCatalogCategoryOutputRepresentation_SvcCatalogCategoryOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_SvcCatalogCategoryOutputRepresentation_SvcCatalogCategoryOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_SvcCatalogCategoryOutputRepresentation_SvcCatalogCategoryOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_SvcCatalogCategoryOutputRepresentation_SvcCatalogCategoryOutputRepresentation, any>;
10
+ export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_SvcCatalogCategoryOutputRepresentation_SvcCatalogCategoryOutputRepresentation>): $64$luvio_engine_ErrorSnapshot;
11
+ export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
12
+ export default createResourceRequest;
@@ -0,0 +1,46 @@
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 VERSION = "b9310dc0f51e25349574116e9d25e3eb";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export interface KeyParams extends $64$luvio_engine_KeyMetadata {
6
+ name: string;
7
+ }
8
+ export type SvcCatalogCategoryDetailOutputRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
9
+ export type PartialSvcCatalogCategoryDetailOutputRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
10
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
11
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): SvcCatalogCategoryDetailOutputRepresentationNormalizedKeyMetadata;
12
+ export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: SvcCatalogCategoryDetailOutputRepresentation): string;
13
+ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: SvcCatalogCategoryDetailOutputRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
14
+ export declare function normalize(input: SvcCatalogCategoryDetailOutputRepresentation, existing: SvcCatalogCategoryDetailOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SvcCatalogCategoryDetailOutputRepresentationNormalized;
15
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
16
+ export declare function equals(existing: SvcCatalogCategoryDetailOutputRepresentationNormalized, incoming: SvcCatalogCategoryDetailOutputRepresentationNormalized): boolean;
17
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
18
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: SvcCatalogCategoryDetailOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
19
+ /**
20
+ * Represents a category detail
21
+ *
22
+ * Keys:
23
+ * name (string): name
24
+ */
25
+ export interface SvcCatalogCategoryDetailOutputRepresentationNormalized {
26
+ /** The list of child categories */
27
+ childCategories: Array<unknown>;
28
+ /** The label of the category */
29
+ label: string;
30
+ /** The name of the category */
31
+ name: string;
32
+ /** The order of the category relatively to siblings */
33
+ sortOrder: number;
34
+ }
35
+ /**
36
+ * Represents a category detail
37
+ *
38
+ * Keys:
39
+ * name (string): name
40
+ */
41
+ export interface SvcCatalogCategoryDetailOutputRepresentation {
42
+ childCategories: Array<unknown>;
43
+ label: string;
44
+ name: string;
45
+ sortOrder: number;
46
+ }
@@ -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 = "0c90894d50304b5803a39c61891825ad";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: SvcCatalogCategoryHeaderOutputRepresentation, existing: SvcCatalogCategoryHeaderOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SvcCatalogCategoryHeaderOutputRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: SvcCatalogCategoryHeaderOutputRepresentationNormalized, incoming: SvcCatalogCategoryHeaderOutputRepresentationNormalized): 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: SvcCatalogCategoryHeaderOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Represents the configuration information for catalog categories of an org
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface SvcCatalogCategoryHeaderOutputRepresentationNormalized {
17
+ /** Flag to indicate if the categories are sourced from Data Categories or Service Catalog Categories */
18
+ useDataCategory: boolean;
19
+ }
20
+ /**
21
+ * Represents the configuration information for catalog categories of an org
22
+ *
23
+ * Keys:
24
+ * (none)
25
+ */
26
+ export interface SvcCatalogCategoryHeaderOutputRepresentation {
27
+ useDataCategory: boolean;
28
+ }
@@ -0,0 +1,42 @@
1
+ import { SvcCatalogCategoryHeaderOutputRepresentation as SvcCatalogCategoryHeaderOutputRepresentation_SvcCatalogCategoryHeaderOutputRepresentation } from './SvcCatalogCategoryHeaderOutputRepresentation';
2
+ import { IngestPath as $64$luvio_engine_IngestPath, Luvio as $64$luvio_engine_Luvio, Store as $64$luvio_engine_Store, ResourceIngest as $64$luvio_engine_ResourceIngest, FragmentSelection as $64$luvio_engine_FragmentSelection, LinkSelection as $64$luvio_engine_LinkSelection, StoreLink as $64$luvio_engine_StoreLink, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
+ import { SvcCatalogCategoryDetailOutputRepresentation as SvcCatalogCategoryDetailOutputRepresentation_SvcCatalogCategoryDetailOutputRepresentation } from './SvcCatalogCategoryDetailOutputRepresentation';
4
+ export declare const VERSION = "a4ab1912141e7143ca0bb2de3af49bc5";
5
+ export declare function validate(obj: any, path?: string): TypeError | null;
6
+ export declare const RepresentationType: string;
7
+ export declare function normalize(input: SvcCatalogCategoryOutputRepresentation, existing: SvcCatalogCategoryOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SvcCatalogCategoryOutputRepresentationNormalized;
8
+ export interface DynamicIngestParams {
9
+ categories: $64$luvio_engine_ResourceIngest;
10
+ }
11
+ export declare function dynamicNormalize(ingestParams: DynamicIngestParams): (input: SvcCatalogCategoryOutputRepresentation, existing: SvcCatalogCategoryOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number) => SvcCatalogCategoryOutputRepresentationNormalized;
12
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
13
+ export interface DynamicSelectParams {
14
+ categories?: $64$luvio_engine_LinkSelection;
15
+ }
16
+ export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
17
+ export declare function equals(existing: SvcCatalogCategoryOutputRepresentationNormalized, incoming: SvcCatalogCategoryOutputRepresentationNormalized): 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: SvcCatalogCategoryOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
20
+ export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$luvio_engine_ResourceIngest;
21
+ /**
22
+ * Represents the category configuration and details of an org
23
+ *
24
+ * Keys:
25
+ * (none)
26
+ */
27
+ export interface SvcCatalogCategoryOutputRepresentationNormalized {
28
+ /** The list of categories retrieved from the org */
29
+ categories: Array<$64$luvio_engine_StoreLink>;
30
+ /** The header information for category configuration in the org */
31
+ header: SvcCatalogCategoryHeaderOutputRepresentation_SvcCatalogCategoryHeaderOutputRepresentation;
32
+ }
33
+ /**
34
+ * Represents the category configuration and details of an org
35
+ *
36
+ * Keys:
37
+ * (none)
38
+ */
39
+ export interface SvcCatalogCategoryOutputRepresentation {
40
+ categories: Array<SvcCatalogCategoryDetailOutputRepresentation_SvcCatalogCategoryDetailOutputRepresentation>;
41
+ header: SvcCatalogCategoryHeaderOutputRepresentation_SvcCatalogCategoryHeaderOutputRepresentation;
42
+ }
@@ -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,67 @@
1
+ {
2
+ "name": "@salesforce/lds-adapters-service-servicecatalogcategory",
3
+ "version": "0.1.0-dev1",
4
+ "description": "Work with categories according to you Service Catalog categorization selection",
5
+ "license": "SEE LICENSE IN LICENSE.txt",
6
+ "main": "dist/es/es2018/service-servicecatalogcategory.js",
7
+ "module": "dist/es/es2018/service-servicecatalogcategory.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/service-servicecatalogcategory.js",
18
+ "require": "./dist/es/es2018/service-servicecatalogcategory.js"
19
+ },
20
+ "./sfdc": {
21
+ "types": "./sfdc/index.d.ts",
22
+ "import": "./sfdc/index.js",
23
+ "default": "./sfdc/index.js"
24
+ }
25
+ },
26
+ "sfdc": {
27
+ "namespace": "lightning",
28
+ "module": "serviceServicecatalogcategoryApi"
29
+ },
30
+ "contributors": [
31
+ "bbozou@salesforce.com"
32
+ ],
33
+ "scripts": {
34
+ "build": "yarn build:services",
35
+ "build:raml": "luvio generate src/raml/luvio.raml src/generated -p '../lds-compiler-plugins'",
36
+ "build:services": "rollup --bundleConfigAsCjs --config rollup.config.js",
37
+ "clean": "rm -rf dist sfdc src/generated",
38
+ "release:core": "../../scripts/release/core.js --adapter=lds-adapters-service-servicecatalogcategory",
39
+ "release:corejar": "yarn build && ../core-build/scripts/core.js --adapter=lds-adapters-service-servicecatalogcategory",
40
+ "test:unit": "jest"
41
+ },
42
+ "dependencies": {
43
+ "@salesforce/lds-bindings": "^0.1.0-dev1"
44
+ },
45
+ "devDependencies": {
46
+ "@salesforce/lds-compiler-plugins": "^0.1.0-dev1",
47
+ "@salesforce/lds-karma": "^0.1.0-dev1"
48
+ },
49
+ "nx": {
50
+ "targets": {
51
+ "build": {
52
+ "outputs": [
53
+ "{projectRoot}/dist",
54
+ "{projectRoot}/sfdc"
55
+ ]
56
+ },
57
+ "build:raml": {
58
+ "outputs": [
59
+ "{projectRoot}/src/generated"
60
+ ]
61
+ }
62
+ }
63
+ },
64
+ "volta": {
65
+ "extends": "../../package.json"
66
+ }
67
+ }
@@ -0,0 +1 @@
1
+ export * from '../dist/es/es2018/types/src/generated/artifacts/sfdc';