@salesforce/lds-adapters-platform-lightning-types 1.321.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.
Files changed (27) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/platform-lightning-types.js +698 -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/getLightningTypes.d.ts +32 -0
  5. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +1 -0
  6. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +3 -0
  7. package/dist/es/es2018/types/src/generated/resources/getConnectLightningTypes.d.ts +20 -0
  8. package/dist/es/es2018/types/src/generated/types/ExperienceModelDesignConfigInputRepresentation.d.ts +34 -0
  9. package/dist/es/es2018/types/src/generated/types/ExperienceModelFilterConfigInputRepresentation.d.ts +28 -0
  10. package/dist/es/es2018/types/src/generated/types/ExperienceModelFilterPropertyNamesListWrapper.d.ts +28 -0
  11. package/dist/es/es2018/types/src/generated/types/ExperienceModelRenditionConfigInputRepresentation.d.ts +34 -0
  12. package/dist/es/es2018/types/src/generated/types/ExperienceModelSchemaConfigInputRepresentation.d.ts +35 -0
  13. package/dist/es/es2018/types/src/generated/types/ExperienceModelSourceDescriptorInputRepresentation.d.ts +31 -0
  14. package/dist/es/es2018/types/src/generated/types/ExperienceModelTypesCollectionRepresentation.d.ts +29 -0
  15. package/dist/es/es2018/types/src/generated/types/ExperienceModelTypesConfigInputListWrapper.d.ts +32 -0
  16. package/dist/es/es2018/types/src/generated/types/ExperienceModelTypesConfigInputRepresentation.d.ts +56 -0
  17. package/dist/es/es2018/types/src/generated/types/ExperienceModelTypesErrorRepresentation.d.ts +31 -0
  18. package/dist/es/es2018/types/src/generated/types/ExperienceModelTypesInputRepresentation.d.ts +35 -0
  19. package/dist/es/es2018/types/src/generated/types/ExperienceModelTypesRepresentation.d.ts +78 -0
  20. package/dist/es/es2018/types/src/generated/types/LightningTypeCollectionRepresentation.d.ts +51 -0
  21. package/dist/es/es2018/types/src/generated/types/LightningTypeSummaryRepresentation.d.ts +53 -0
  22. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  23. package/package.json +66 -0
  24. package/sfdc/index.d.ts +1 -0
  25. package/sfdc/index.js +733 -0
  26. package/src/raml/api.raml +393 -0
  27. package/src/raml/luvio.raml +21 -0
@@ -0,0 +1,51 @@
1
+ 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';
2
+ import { LightningTypeSummaryRepresentation as LightningTypeSummaryRepresentation_LightningTypeSummaryRepresentation } from './LightningTypeSummaryRepresentation';
3
+ export declare const TTL = 100;
4
+ export declare const VERSION = "c66a5dd98fb4b617c447b5ec059204fd";
5
+ export declare function validate(obj: any, path?: string): TypeError | null;
6
+ export declare const RepresentationType: string;
7
+ export declare function normalize(input: LightningTypeCollectionRepresentation, existing: LightningTypeCollectionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LightningTypeCollectionRepresentationNormalized;
8
+ export interface DynamicIngestParams {
9
+ lightningTypes: $64$luvio_engine_ResourceIngest;
10
+ }
11
+ export declare function dynamicNormalize(ingestParams: DynamicIngestParams): (input: LightningTypeCollectionRepresentation, existing: LightningTypeCollectionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number) => LightningTypeCollectionRepresentationNormalized;
12
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
13
+ export interface DynamicSelectParams {
14
+ lightningTypes?: $64$luvio_engine_LinkSelection;
15
+ }
16
+ export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
17
+ export declare function equals(existing: LightningTypeCollectionRepresentationNormalized, incoming: LightningTypeCollectionRepresentationNormalized): 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: LightningTypeCollectionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
20
+ export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$luvio_engine_ResourceIngest;
21
+ /**
22
+ * Represents a list/collection of Lightning Types.
23
+ *
24
+ * Keys:
25
+ * (none)
26
+ */
27
+ export interface LightningTypeCollectionRepresentationNormalized {
28
+ /** The number of Types returned. */
29
+ count: number;
30
+ /** URL to this page of the Types. */
31
+ currentPageUrl: string | null;
32
+ /** The list of Lightning Types ordered alphabetically by title. */
33
+ lightningTypes: Array<$64$luvio_engine_StoreLink>;
34
+ /** URL to the next page of the Types. */
35
+ nextPageUrl?: string | null;
36
+ /** URL to the previous page of the Types. */
37
+ previousPageUrl?: string | null;
38
+ }
39
+ /**
40
+ * Represents a list/collection of Lightning Types.
41
+ *
42
+ * Keys:
43
+ * (none)
44
+ */
45
+ export interface LightningTypeCollectionRepresentation {
46
+ count: number;
47
+ currentPageUrl: string | null;
48
+ lightningTypes: Array<LightningTypeSummaryRepresentation_LightningTypeSummaryRepresentation>;
49
+ nextPageUrl?: string | null;
50
+ previousPageUrl?: string | null;
51
+ }
@@ -0,0 +1,53 @@
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, BaseFragment as $64$luvio_engine_BaseFragment, ResourceIngest as $64$luvio_engine_ResourceIngest, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
2
+ export declare const TTL = 100;
3
+ export declare const VERSION = "4895529fcf8796413981df590ff3c2e9";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export interface KeyParams extends $64$luvio_engine_KeyMetadata {
7
+ id: string | null;
8
+ }
9
+ export type LightningTypeSummaryRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
10
+ export type PartialLightningTypeSummaryRepresentationNormalizedKeyMetadata = Partial<KeyParams> & $64$luvio_engine_NormalizedKeyMetadata;
11
+ export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: KeyParams): string;
12
+ export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: KeyParams): LightningTypeSummaryRepresentationNormalizedKeyMetadata;
13
+ export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: LightningTypeSummaryRepresentation): string;
14
+ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: LightningTypeSummaryRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
15
+ export declare function normalize(input: LightningTypeSummaryRepresentation, existing: LightningTypeSummaryRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LightningTypeSummaryRepresentationNormalized;
16
+ export declare const select: () => $64$luvio_engine_BaseFragment;
17
+ export declare function equals(existing: LightningTypeSummaryRepresentationNormalized, incoming: LightningTypeSummaryRepresentationNormalized): 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: LightningTypeSummaryRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
20
+ /**
21
+ * Summary Representation of a Lightning type.A collection of this is returned in the list endpoints.
22
+ *
23
+ * Keys:
24
+ * id (string | null): developerName
25
+ */
26
+ export interface LightningTypeSummaryRepresentationNormalized {
27
+ /** The description of the Type that was given in its schema.json. */
28
+ description?: string | null;
29
+ /** The individual detail resource URL to get the full/detailed information about the Type. */
30
+ detailUrl?: string | null;
31
+ /** The developer name (aka apiName) of the Type. */
32
+ developerName: string | null;
33
+ /** The 18-char String ID of the Type. This is returned for the DB-Based (Custom) Types only. */
34
+ id?: string | null;
35
+ /** The namespace prefix that is associated with the Type. Refer to a Type using the namespacePrefix__developerName notation (aka fullyQualifiedName). */
36
+ namespacePrefix: string | null;
37
+ /** The title of the Type that was given in its schema.json. */
38
+ title?: string | null;
39
+ }
40
+ /**
41
+ * Summary Representation of a Lightning type.A collection of this is returned in the list endpoints.
42
+ *
43
+ * Keys:
44
+ * id (string | null): developerName
45
+ */
46
+ export interface LightningTypeSummaryRepresentation {
47
+ description?: string | null;
48
+ detailUrl?: string | null;
49
+ developerName: string | null;
50
+ id?: string | null;
51
+ namespacePrefix: string | null;
52
+ title?: string | null;
53
+ }
@@ -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,66 @@
1
+ {
2
+ "name": "@salesforce/lds-adapters-platform-lightning-types",
3
+ "version": "1.321.0",
4
+ "description": "wire adapter for lightning types",
5
+ "license": "SEE LICENSE IN LICENSE.txt",
6
+ "main": "dist/es/es2018/platform-lightning-types.js",
7
+ "module": "dist/es/es2018/platform-lightning-types.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/platform-lightning-types.js",
18
+ "require": "./dist/es/es2018/platform-lightning-types.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": "platformLightningTypesApi"
29
+ },
30
+ "contributors": [
31
+ "ptripathy@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-platform-lightning-types",
39
+ "release:corejar": "yarn build && ../core-build/scripts/core.js --adapter=lds-adapters-platform-lightning-types",
40
+ "test:unit": "jest"
41
+ },
42
+ "dependencies": {
43
+ "@salesforce/lds-bindings": "^1.321.0"
44
+ },
45
+ "devDependencies": {
46
+ "@salesforce/lds-compiler-plugins": "^1.321.0"
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
+ }
62
+ },
63
+ "volta": {
64
+ "extends": "../../package.json"
65
+ }
66
+ }
@@ -0,0 +1 @@
1
+ export * from '../dist/es/es2018/types/src/generated/artifacts/sfdc';