@salesforce/lds-adapters-platform-lightning-types 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.
Files changed (36) hide show
  1. package/LICENSE.txt +82 -0
  2. package/dist/es/es2018/platform-lightning-types.js +1887 -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/getLightningType.d.ts +32 -0
  5. package/dist/es/es2018/types/src/generated/adapters/getLightningTypes.d.ts +33 -0
  6. package/dist/es/es2018/types/src/generated/adapters/getTypes.d.ts +29 -0
  7. package/dist/es/es2018/types/src/generated/adapters/validateLightningModel.d.ts +32 -0
  8. package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +4 -0
  9. package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +9 -0
  10. package/dist/es/es2018/types/src/generated/resources/getConnectLightningTypes.d.ts +21 -0
  11. package/dist/es/es2018/types/src/generated/resources/getConnectLightningTypesByFullyQualifiedName.d.ts +22 -0
  12. package/dist/es/es2018/types/src/generated/resources/postConnectLightningModelTypes.d.ts +17 -0
  13. package/dist/es/es2018/types/src/generated/resources/postConnectLightningModelValidate.d.ts +20 -0
  14. package/dist/es/es2018/types/src/generated/types/LightningModelEditorConfigInputRepresentation.d.ts +37 -0
  15. package/dist/es/es2018/types/src/generated/types/LightningModelFilterConfigInputRepresentation.d.ts +28 -0
  16. package/dist/es/es2018/types/src/generated/types/LightningModelRendererConfigInputRepresentation.d.ts +37 -0
  17. package/dist/es/es2018/types/src/generated/types/LightningModelSchemaConfigInputRepresentation.d.ts +31 -0
  18. package/dist/es/es2018/types/src/generated/types/LightningModelSourceDescriptorInputRepresentation.d.ts +31 -0
  19. package/dist/es/es2018/types/src/generated/types/LightningModelTypesCollectionRepresentation.d.ts +30 -0
  20. package/dist/es/es2018/types/src/generated/types/LightningModelTypesConfigInputRepresentation.d.ts +44 -0
  21. package/dist/es/es2018/types/src/generated/types/LightningModelTypesErrorRepresentation.d.ts +31 -0
  22. package/dist/es/es2018/types/src/generated/types/LightningModelTypesInputRepresentation.d.ts +32 -0
  23. package/dist/es/es2018/types/src/generated/types/LightningModelTypesRepresentation.d.ts +59 -0
  24. package/dist/es/es2018/types/src/generated/types/LightningModelValidateFilterConfigInputRepresentation.d.ts +31 -0
  25. package/dist/es/es2018/types/src/generated/types/LightningModelValidateInputRepresentation.d.ts +39 -0
  26. package/dist/es/es2018/types/src/generated/types/LightningModelValidationErrorRepresentation.d.ts +47 -0
  27. package/dist/es/es2018/types/src/generated/types/LightningModelValidationResultRepresentation.d.ts +33 -0
  28. package/dist/es/es2018/types/src/generated/types/LightningTypeCollectionRepresentation.d.ts +51 -0
  29. package/dist/es/es2018/types/src/generated/types/LightningTypeDetailRepresentation.d.ts +54 -0
  30. package/dist/es/es2018/types/src/generated/types/LightningTypeSummaryRepresentation.d.ts +44 -0
  31. package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +32 -0
  32. package/package.json +66 -0
  33. package/sfdc/index.d.ts +1 -0
  34. package/sfdc/index.js +1956 -0
  35. package/src/raml/api.raml +561 -0
  36. package/src/raml/luvio.raml +98 -0
@@ -0,0 +1,32 @@
1
+ import { LightningModelTypesConfigInputRepresentation as LightningModelTypesConfigInputRepresentation_LightningModelTypesConfigInputRepresentation } from './LightningModelTypesConfigInputRepresentation';
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 = "f1f4b5997d759b1076bba7422a28c149";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: LightningModelTypesInputRepresentation, existing: LightningModelTypesInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LightningModelTypesInputRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: LightningModelTypesInputRepresentationNormalized, incoming: LightningModelTypesInputRepresentationNormalized): 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: LightningModelTypesInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Input Representation for Lightning Model types
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface LightningModelTypesInputRepresentationNormalized {
18
+ /** The language/locale code. e.g., es or en_US. To retrieve the title and description in a particular language. If not provided, the logged-in user’s language is used. The fallback language is ENGLISH in case translations don't exist. */
19
+ language: string;
20
+ /** The list of Lightning Model Types Configuration */
21
+ typeConfigs: Array<LightningModelTypesConfigInputRepresentation_LightningModelTypesConfigInputRepresentation>;
22
+ }
23
+ /**
24
+ * Input Representation for Lightning Model types
25
+ *
26
+ * Keys:
27
+ * (none)
28
+ */
29
+ export interface LightningModelTypesInputRepresentation {
30
+ language: string;
31
+ typeConfigs: Array<LightningModelTypesConfigInputRepresentation_LightningModelTypesConfigInputRepresentation>;
32
+ }
@@ -0,0 +1,59 @@
1
+ import { LightningModelTypesErrorRepresentation as LightningModelTypesErrorRepresentation_LightningModelTypesErrorRepresentation } from './LightningModelTypesErrorRepresentation';
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, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
+ export declare const TTL = 3600000;
4
+ export declare const VERSION = "0e28b2ee243c783ef4a339cc5c2e67c0";
5
+ export declare function validate(obj: any, path?: string): TypeError | null;
6
+ export declare const RepresentationType: string;
7
+ export declare function normalize(input: LightningModelTypesRepresentation, existing: LightningModelTypesRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LightningModelTypesRepresentationNormalized;
8
+ export declare const select: () => $64$luvio_engine_BaseFragment;
9
+ export declare function equals(existing: LightningModelTypesRepresentationNormalized, incoming: LightningModelTypesRepresentationNormalized): boolean;
10
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
11
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: LightningModelTypesRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
12
+ /**
13
+ * Represents the details about Types.
14
+ *
15
+ * Keys:
16
+ * (none)
17
+ */
18
+ export interface LightningModelTypesRepresentationNormalized {
19
+ /** The description of the Type that was given in its schema.json. */
20
+ description?: string;
21
+ /** The type descriptor of the Type that was given in query params. */
22
+ descriptor: string;
23
+ /** The developer name (aka apiName) of the Type. */
24
+ developerName: string;
25
+ /** The editor configuration for the specified target. */
26
+ editorConfig?: unknown;
27
+ errorDetails?: LightningModelTypesErrorRepresentation_LightningModelTypesErrorRepresentation;
28
+ /** The 18-char String ID of the Type. This is returned for the DB-Based (Custom) Types only. */
29
+ id?: string;
30
+ /** The namespace prefix that is associated with the Type. Refer to a Type using the namespacePrefix__developerName notation (aka fullyQualifiedName). */
31
+ namespacePrefix: string;
32
+ /** The renderer configuration for the specified target. */
33
+ rendererConfig?: unknown;
34
+ /** The JSON Schema definition (schema.json) of the Type */
35
+ schema?: unknown;
36
+ /** The source descriptor of the Type that was given in query params. */
37
+ sourceDescriptor?: unknown;
38
+ /** The title of the Type that was given in its schema.json. */
39
+ title?: string;
40
+ }
41
+ /**
42
+ * Represents the details about Types.
43
+ *
44
+ * Keys:
45
+ * (none)
46
+ */
47
+ export interface LightningModelTypesRepresentation {
48
+ description?: string;
49
+ descriptor: string;
50
+ developerName: string;
51
+ editorConfig?: unknown;
52
+ errorDetails?: LightningModelTypesErrorRepresentation_LightningModelTypesErrorRepresentation;
53
+ id?: string;
54
+ namespacePrefix: string;
55
+ rendererConfig?: unknown;
56
+ schema?: unknown;
57
+ sourceDescriptor?: unknown;
58
+ title?: string;
59
+ }
@@ -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 = "8783e5799b22272c70a92c487a609272";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: LightningModelValidateFilterConfigInputRepresentation, existing: LightningModelValidateFilterConfigInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LightningModelValidateFilterConfigInputRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: LightningModelValidateFilterConfigInputRepresentationNormalized, incoming: LightningModelValidateFilterConfigInputRepresentationNormalized): 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: LightningModelValidateFilterConfigInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Represents the filter config input parameters for /connect/lightning-model/validate
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface LightningModelValidateFilterConfigInputRepresentationNormalized {
17
+ /** Localization filter value for validation */
18
+ localization?: boolean;
19
+ /** ReadOnly filter value for validation */
20
+ readOnly?: boolean;
21
+ }
22
+ /**
23
+ * Represents the filter config input parameters for /connect/lightning-model/validate
24
+ *
25
+ * Keys:
26
+ * (none)
27
+ */
28
+ export interface LightningModelValidateFilterConfigInputRepresentation {
29
+ localization?: boolean;
30
+ readOnly?: boolean;
31
+ }
@@ -0,0 +1,39 @@
1
+ import { LightningModelValidateFilterConfigInputRepresentation as LightningModelValidateFilterConfigInputRepresentation_LightningModelValidateFilterConfigInputRepresentation } from './LightningModelValidateFilterConfigInputRepresentation';
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 = "19230fd20969e3e5f1a94418bccca563";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: LightningModelValidateInputRepresentation, existing: LightningModelValidateInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LightningModelValidateInputRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
8
+ export declare function equals(existing: LightningModelValidateInputRepresentationNormalized, incoming: LightningModelValidateInputRepresentationNormalized): 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: LightningModelValidateInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Represents the input parameters for /connect/lightning-model/validate
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface LightningModelValidateInputRepresentationNormalized {
18
+ /** A descriptor of format <Bundle Type>/<Fully Qualified Name of Type>. Examples include "propertyType/lightning__emailType" or "metaschema/sfdc_cms__propertyType" */
19
+ descriptor: string;
20
+ /** Optional filtering configuration for validation */
21
+ filterConfig?: LightningModelValidateFilterConfigInputRepresentation_LightningModelValidateFilterConfigInputRepresentation;
22
+ /** JSON data to be validated */
23
+ payload: {
24
+ [key: string]: unknown;
25
+ };
26
+ }
27
+ /**
28
+ * Represents the input parameters for /connect/lightning-model/validate
29
+ *
30
+ * Keys:
31
+ * (none)
32
+ */
33
+ export interface LightningModelValidateInputRepresentation {
34
+ descriptor: string;
35
+ filterConfig?: LightningModelValidateFilterConfigInputRepresentation_LightningModelValidateFilterConfigInputRepresentation;
36
+ payload: {
37
+ [key: string]: unknown;
38
+ };
39
+ }
@@ -0,0 +1,47 @@
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 = "c7337d0447b0ed291a59f306015a8f6b";
3
+ export declare function validate(obj: any, path?: string): TypeError | null;
4
+ export declare const RepresentationType: string;
5
+ export declare function normalize(input: LightningModelValidationErrorRepresentation, existing: LightningModelValidationErrorRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LightningModelValidationErrorRepresentationNormalized;
6
+ export declare const select: () => $64$luvio_engine_FragmentSelection;
7
+ export declare function equals(existing: LightningModelValidationErrorRepresentationNormalized, incoming: LightningModelValidationErrorRepresentationNormalized): 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: LightningModelValidationErrorRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
10
+ /**
11
+ * Represents the errors output
12
+ *
13
+ * Keys:
14
+ * (none)
15
+ */
16
+ export interface LightningModelValidationErrorRepresentationNormalized {
17
+ /** Arguments of the error */
18
+ arguments: Array<unknown>;
19
+ /** Code representing the validation error */
20
+ code: string;
21
+ /** Details of the error */
22
+ details: {
23
+ [key: string]: {};
24
+ };
25
+ /** Human-readable error message */
26
+ message: string;
27
+ /** Path to the field where the error occurred */
28
+ path: string;
29
+ /** Type of the validation rule that failed */
30
+ type: string;
31
+ }
32
+ /**
33
+ * Represents the errors output
34
+ *
35
+ * Keys:
36
+ * (none)
37
+ */
38
+ export interface LightningModelValidationErrorRepresentation {
39
+ arguments: Array<unknown>;
40
+ code: string;
41
+ details: {
42
+ [key: string]: {};
43
+ };
44
+ message: string;
45
+ path: string;
46
+ type: string;
47
+ }
@@ -0,0 +1,33 @@
1
+ import { LightningModelValidationErrorRepresentation as LightningModelValidationErrorRepresentation_LightningModelValidationErrorRepresentation } from './LightningModelValidationErrorRepresentation';
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, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
3
+ export declare const TTL = 1000;
4
+ export declare const VERSION = "f5f69ac25a1ed5895dbdb2d040fee2ba";
5
+ export declare function validate(obj: any, path?: string): TypeError | null;
6
+ export declare const RepresentationType: string;
7
+ export declare function normalize(input: LightningModelValidationResultRepresentation, existing: LightningModelValidationResultRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LightningModelValidationResultRepresentationNormalized;
8
+ export declare const select: () => $64$luvio_engine_BaseFragment;
9
+ export declare function equals(existing: LightningModelValidationResultRepresentationNormalized, incoming: LightningModelValidationResultRepresentationNormalized): boolean;
10
+ export declare const ingest: $64$luvio_engine_ResourceIngest;
11
+ export declare function getTypeCacheKeys(rootKeySet: $64$luvio_engine_DurableStoreKeyMetadataMap, luvio: $64$luvio_engine_Luvio, input: LightningModelValidationResultRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
12
+ /**
13
+ * Represents the validation output
14
+ *
15
+ * Keys:
16
+ * (none)
17
+ */
18
+ export interface LightningModelValidationResultRepresentationNormalized {
19
+ /** List of validation errors encountered */
20
+ errors: Array<LightningModelValidationErrorRepresentation_LightningModelValidationErrorRepresentation>;
21
+ /** Indicates whether the validation was successful */
22
+ success: boolean;
23
+ }
24
+ /**
25
+ * Represents the validation output
26
+ *
27
+ * Keys:
28
+ * (none)
29
+ */
30
+ export interface LightningModelValidationResultRepresentation {
31
+ errors: Array<LightningModelValidationErrorRepresentation_LightningModelValidationErrorRepresentation>;
32
+ success: boolean;
33
+ }
@@ -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,54 @@
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 = 100;
3
+ export declare const VERSION = "ec107620eea2293ec74a88bdcac66085";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ export declare function normalize(input: LightningTypeDetailRepresentation, existing: LightningTypeDetailRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LightningTypeDetailRepresentationNormalized;
7
+ export declare const select: () => $64$luvio_engine_BaseFragment;
8
+ export declare function equals(existing: LightningTypeDetailRepresentationNormalized, incoming: LightningTypeDetailRepresentationNormalized): 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: LightningTypeDetailRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Represents the full/detailed information about a Lightning Type.
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface LightningTypeDetailRepresentationNormalized {
18
+ /** The description of the Type that was given in its schema.json. */
19
+ description?: string | null;
20
+ /** The developer name (aka apiName) of the Type. */
21
+ developerName: string;
22
+ /** The editor configuration for the specified target. */
23
+ editorConfig?: unknown;
24
+ /** The 18-char String ID of the Type. This is returned for the DB-Based (Custom) Types only. */
25
+ id?: string | null;
26
+ /** The namespace prefix that is associated with the Type. Refer to a Type using the namespacePrefix__developerName notation (aka fullyQualifiedName). */
27
+ namespacePrefix: string;
28
+ /** The renderer configuration for the specified target. */
29
+ rendererConfig?: unknown;
30
+ /** The JSON Schema definition (schema.json) of the Type */
31
+ schema: {
32
+ [key: string]: unknown;
33
+ };
34
+ /** The title of the Type that was given in its schema.json. */
35
+ title?: string | null;
36
+ }
37
+ /**
38
+ * Represents the full/detailed information about a Lightning Type.
39
+ *
40
+ * Keys:
41
+ * (none)
42
+ */
43
+ export interface LightningTypeDetailRepresentation {
44
+ description?: string | null;
45
+ developerName: string;
46
+ editorConfig?: unknown;
47
+ id?: string | null;
48
+ namespacePrefix: string;
49
+ rendererConfig?: unknown;
50
+ schema: {
51
+ [key: string]: unknown;
52
+ };
53
+ title?: string | null;
54
+ }
@@ -0,0 +1,44 @@
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 = 100;
3
+ export declare const VERSION = "0041e3158f20c73cba96d196c285c20f";
4
+ export declare function validate(obj: any, path?: string): TypeError | null;
5
+ export declare const RepresentationType: string;
6
+ 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;
7
+ export declare const select: () => $64$luvio_engine_BaseFragment;
8
+ export declare function equals(existing: LightningTypeSummaryRepresentationNormalized, incoming: LightningTypeSummaryRepresentationNormalized): 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: LightningTypeSummaryRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): void;
11
+ /**
12
+ * Summary Representation of a Lightning type.A collection of this is returned in the list endpoints.
13
+ *
14
+ * Keys:
15
+ * (none)
16
+ */
17
+ export interface LightningTypeSummaryRepresentationNormalized {
18
+ /** The description of the Type that was given in its schema.json. */
19
+ description?: string | null;
20
+ /** The individual detail resource URL to get the full/detailed information about the Type. */
21
+ detailUrl?: string | null;
22
+ /** The developer name (aka apiName) of the Type. */
23
+ developerName: string | null;
24
+ /** The 18-char String ID of the Type. This is returned for the DB-Based (Custom) Types only. */
25
+ id?: string | null;
26
+ /** The namespace prefix that is associated with the Type. Refer to a Type using the namespacePrefix__developerName notation (aka fullyQualifiedName). */
27
+ namespacePrefix: string | null;
28
+ /** The title of the Type that was given in its schema.json. */
29
+ title?: string | null;
30
+ }
31
+ /**
32
+ * Summary Representation of a Lightning type.A collection of this is returned in the list endpoints.
33
+ *
34
+ * Keys:
35
+ * (none)
36
+ */
37
+ export interface LightningTypeSummaryRepresentation {
38
+ description?: string | null;
39
+ detailUrl?: string | null;
40
+ developerName: string | null;
41
+ id?: string | null;
42
+ namespacePrefix: string | null;
43
+ title?: string | null;
44
+ }
@@ -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": "0.1.0-dev1",
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": "^0.1.0-dev1"
44
+ },
45
+ "devDependencies": {
46
+ "@salesforce/lds-compiler-plugins": "^0.1.0-dev1"
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';