@salesforce/lds-adapters-community-navigation-menu 0.131.0
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/community-navigation-menu.js +447 -0
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +66 -0
- package/dist/es/es2018/types/src/generated/adapters/getCommunityNavigationMenu.d.ts +33 -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 -0
- package/dist/es/es2018/types/src/generated/resources/getConnectCommunitiesNavigationMenuNavigationMenuItemsByCommunityId.d.ts +24 -0
- package/dist/es/es2018/types/src/generated/types/NavigationMenuItemCollectionRepresentation.d.ts +30 -0
- package/dist/es/es2018/types/src/generated/types/NavigationMenuItemRepresentation.d.ts +44 -0
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +39 -0
- package/package.json +53 -0
- package/sfdc/index.d.ts +1 -0
- package/sfdc/index.js +479 -0
- package/src/raml/api.raml +114 -0
- package/src/raml/luvio.raml +17 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, 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 { NavigationMenuItemCollectionRepresentation as types_NavigationMenuItemCollectionRepresentation_NavigationMenuItemCollectionRepresentation } from '../types/NavigationMenuItemCollectionRepresentation';
|
|
3
|
+
export interface ResourceRequestConfig {
|
|
4
|
+
urlParams: {
|
|
5
|
+
communityId: string;
|
|
6
|
+
};
|
|
7
|
+
queryParams: {
|
|
8
|
+
addHomeMenuItem?: boolean;
|
|
9
|
+
effectiveAccountId?: string;
|
|
10
|
+
includeImageUrl?: boolean;
|
|
11
|
+
menuItemTypesToSkip?: Array<string>;
|
|
12
|
+
navigationLinkSetDeveloperName?: string;
|
|
13
|
+
navigationLinkSetId?: string;
|
|
14
|
+
publishStatus?: string;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
18
|
+
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
19
|
+
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
20
|
+
export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_NavigationMenuItemCollectionRepresentation_NavigationMenuItemCollectionRepresentation): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
21
|
+
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_NavigationMenuItemCollectionRepresentation_NavigationMenuItemCollectionRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_NavigationMenuItemCollectionRepresentation_NavigationMenuItemCollectionRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_NavigationMenuItemCollectionRepresentation_NavigationMenuItemCollectionRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_NavigationMenuItemCollectionRepresentation_NavigationMenuItemCollectionRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_NavigationMenuItemCollectionRepresentation_NavigationMenuItemCollectionRepresentation, any>;
|
|
22
|
+
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_NavigationMenuItemCollectionRepresentation_NavigationMenuItemCollectionRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
23
|
+
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
24
|
+
export default createResourceRequest;
|
package/dist/es/es2018/types/src/generated/types/NavigationMenuItemCollectionRepresentation.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { NavigationMenuItemRepresentation as NavigationMenuItemRepresentation_NavigationMenuItemRepresentation } from './NavigationMenuItemRepresentation';
|
|
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, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
3
|
+
export declare const VERSION = "2c44fa1cf5686d4e00960baa7b9e6a1f";
|
|
4
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
+
export declare const RepresentationType: string;
|
|
6
|
+
export declare function normalize(input: NavigationMenuItemCollectionRepresentation, existing: NavigationMenuItemCollectionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): NavigationMenuItemCollectionRepresentationNormalized;
|
|
7
|
+
export declare const select: () => $64$luvio_engine_BaseFragment;
|
|
8
|
+
export declare function equals(existing: NavigationMenuItemCollectionRepresentationNormalized, incoming: NavigationMenuItemCollectionRepresentationNormalized): boolean;
|
|
9
|
+
export declare function deepFreeze(input: NavigationMenuItemCollectionRepresentation): void;
|
|
10
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
11
|
+
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: NavigationMenuItemCollectionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
12
|
+
/**
|
|
13
|
+
* Navigation Menu Item Collection
|
|
14
|
+
*
|
|
15
|
+
* Keys:
|
|
16
|
+
* (none)
|
|
17
|
+
*/
|
|
18
|
+
export interface NavigationMenuItemCollectionRepresentationNormalized {
|
|
19
|
+
/** Returns list of Navigation menu Items */
|
|
20
|
+
menuItems: Array<NavigationMenuItemRepresentation_NavigationMenuItemRepresentation>;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Navigation Menu Item Collection
|
|
24
|
+
*
|
|
25
|
+
* Keys:
|
|
26
|
+
* (none)
|
|
27
|
+
*/
|
|
28
|
+
export interface NavigationMenuItemCollectionRepresentation {
|
|
29
|
+
menuItems: Array<NavigationMenuItemRepresentation_NavigationMenuItemRepresentation>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
2
|
+
export declare const VERSION = "c33a98f8fe0360b99068afa4c494647a";
|
|
3
|
+
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
4
|
+
export declare const RepresentationType: string;
|
|
5
|
+
export declare function normalize(input: NavigationMenuItemRepresentation, existing: NavigationMenuItemRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): NavigationMenuItemRepresentationNormalized;
|
|
6
|
+
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
|
+
export declare function equals(existing: NavigationMenuItemRepresentationNormalized, incoming: NavigationMenuItemRepresentationNormalized): boolean;
|
|
8
|
+
export declare function deepFreeze(input: NavigationMenuItemRepresentation): void;
|
|
9
|
+
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
|
+
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: NavigationMenuItemRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
11
|
+
/**
|
|
12
|
+
* Navigation Menu Item Representation
|
|
13
|
+
*
|
|
14
|
+
* Keys:
|
|
15
|
+
* (none)
|
|
16
|
+
*/
|
|
17
|
+
export interface NavigationMenuItemRepresentationNormalized {
|
|
18
|
+
/** Returns the url type or Event of Navigation Menu Item */
|
|
19
|
+
actionType: string;
|
|
20
|
+
/** Returns the route url or event fqn for Navigation Menu item */
|
|
21
|
+
actionValue: string | null;
|
|
22
|
+
/** Returns the image url for Navigation Menu item */
|
|
23
|
+
imageUrl: string | null;
|
|
24
|
+
/** Returns the label for Navigation Menu item */
|
|
25
|
+
label: string;
|
|
26
|
+
/** Returns the sub-menu for Navigation Menu Item */
|
|
27
|
+
subMenu: Array<NavigationMenuItemRepresentation>;
|
|
28
|
+
/** Returns the target SameWindow/NewWindow for Navigation Menu item */
|
|
29
|
+
target: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Navigation Menu Item Representation
|
|
33
|
+
*
|
|
34
|
+
* Keys:
|
|
35
|
+
* (none)
|
|
36
|
+
*/
|
|
37
|
+
export interface NavigationMenuItemRepresentation {
|
|
38
|
+
actionType: string;
|
|
39
|
+
actionValue: string | null;
|
|
40
|
+
imageUrl: string | null;
|
|
41
|
+
label: string;
|
|
42
|
+
subMenu: Array<NavigationMenuItemRepresentation>;
|
|
43
|
+
target: string;
|
|
44
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
+
export declare const ObjectFreeze: {
|
|
3
|
+
<T extends Function>(f: T): T;
|
|
4
|
+
<T_1 extends {
|
|
5
|
+
[idx: string]: object | U | null | undefined;
|
|
6
|
+
}, U extends string | number | bigint | boolean | symbol>(o: T_1): Readonly<T_1>;
|
|
7
|
+
<T_2>(o: T_2): Readonly<T_2>;
|
|
8
|
+
}, ObjectKeys: {
|
|
9
|
+
(o: object): string[];
|
|
10
|
+
(o: {}): string[];
|
|
11
|
+
}, ObjectCreate: {
|
|
12
|
+
(o: object | null): any;
|
|
13
|
+
(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
|
|
14
|
+
}, ObjectAssign: {
|
|
15
|
+
<T extends {}, U>(target: T, source: U): T & U;
|
|
16
|
+
<T_1 extends {}, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
|
|
17
|
+
<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;
|
|
18
|
+
(target: object, ...sources: any[]): any;
|
|
19
|
+
};
|
|
20
|
+
export declare const ArrayIsArray: (arg: any) => arg is any[];
|
|
21
|
+
export declare const JSONStringify: {
|
|
22
|
+
(value: any, replacer?: ((this: any, key: string, value: any) => any) | undefined, space?: string | number | undefined): string;
|
|
23
|
+
(value: any, replacer?: (string | number)[] | null | undefined, space?: string | number | undefined): string;
|
|
24
|
+
};
|
|
25
|
+
type AllowedPrimitives = boolean | string | number | Date | null;
|
|
26
|
+
type Value<T> = T extends AllowedPrimitives ? T : RecursivePartial<T>;
|
|
27
|
+
export type RecursivePartial<T> = null | {
|
|
28
|
+
[P in keyof T]?: T[P] extends Array<infer U> ? Array<Value<U>> | null : Value<T[P]> | null;
|
|
29
|
+
};
|
|
30
|
+
export declare function equalsArray<U, V extends U[]>(a: V, b: V, equalsItem: (itemA: U, itemB: U) => boolean | void): boolean;
|
|
31
|
+
export declare function equalsObject<U, V extends {
|
|
32
|
+
[key: string]: U;
|
|
33
|
+
}>(a: V, b: V, equalsProp: (propA: U, propB: U) => boolean | void): boolean;
|
|
34
|
+
export declare function deepFreeze(value: any): void;
|
|
35
|
+
export declare function createLink(ref: string | $64$luvio_engine_NormalizedKeyMetadata): {
|
|
36
|
+
__ref: string;
|
|
37
|
+
};
|
|
38
|
+
export declare function assignMetadataLink(entry: any, metadataKey: string | $64$luvio_engine_NormalizedKeyMetadata): void;
|
|
39
|
+
export {};
|
package/package.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@salesforce/lds-adapters-community-navigation-menu",
|
|
3
|
+
"version": "0.131.0",
|
|
4
|
+
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
|
+
"description": "Wire adapters Community Navigation Menu",
|
|
6
|
+
"main": "dist/es/es2018/community-navigation-menu.js",
|
|
7
|
+
"module": "dist/es/es2018/community-navigation-menu.js",
|
|
8
|
+
"types": "dist/es/es2018/types/src/generated/artifacts/main.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"sfdc",
|
|
12
|
+
"src/raml/*"
|
|
13
|
+
],
|
|
14
|
+
"sfdc": {
|
|
15
|
+
"path": "forcelds/ldsAdaptersCommunityNavigationMenu/",
|
|
16
|
+
"namespace": "lightning",
|
|
17
|
+
"module": "communityNavigationMenuApi"
|
|
18
|
+
},
|
|
19
|
+
"scripts": {
|
|
20
|
+
"clean": "rm -rf dist sfdc src/generated karma/dist",
|
|
21
|
+
"build": "yarn build:raml && yarn build:services && yarn build:karma",
|
|
22
|
+
"build:karma": "rollup --config rollup.config.karma.js",
|
|
23
|
+
"build:raml": "luvio generate src/raml/luvio.raml src/generated -p '../lds-compiler-plugins'",
|
|
24
|
+
"build:services": "rollup --config rollup.config.js",
|
|
25
|
+
"start": "karma start",
|
|
26
|
+
"test": "karma start --single-run",
|
|
27
|
+
"test:compat": "karma start --single-run --compat",
|
|
28
|
+
"release:corejar": "yarn build && ../core-build/scripts/core.js --adapter=lds-adapters-community-navigation-menu",
|
|
29
|
+
"release:core": "../../scripts/release/core.js --adapter=lds-adapters-community-navigation-menu"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@salesforce/lds-bindings": "1.131.0-244.6"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@salesforce/lds-compiler-plugins": "1.131.0-244.6",
|
|
36
|
+
"@salesforce/lds-karma": "1.131.0-244.6"
|
|
37
|
+
},
|
|
38
|
+
"nx": {
|
|
39
|
+
"targets": {
|
|
40
|
+
"build": {
|
|
41
|
+
"outputs": [
|
|
42
|
+
"packages/lds-adapters-community-navigation-menu/dist",
|
|
43
|
+
"packages/lds-adapters-community-navigation-menu/karma/dist",
|
|
44
|
+
"packages/lds-adapters-community-navigation-menu/sfdc",
|
|
45
|
+
"packages/lds-adapters-community-navigation-menu/src/generated"
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"volta": {
|
|
51
|
+
"extends": "../../package.json"
|
|
52
|
+
}
|
|
53
|
+
}
|
package/sfdc/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/es/es2018/types/src/generated/artifacts/sfdc';
|