@salesforce/lds-adapters-platform-learning-content 1.149.0 → 1.150.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/platform-learning-content.js +141 -831
- package/dist/es/es2018/types/src/generated/artifacts/main.d.ts +0 -2
- package/dist/es/es2018/types/src/generated/artifacts/sfdc.d.ts +1 -6
- package/package.json +1 -1
- package/sfdc/index.js +528 -1275
- package/src/raml/api.raml +0 -68
- package/src/raml/luvio.raml +0 -19
- package/dist/es/es2018/types/src/generated/adapters/getLearningSearchDescribe.d.ts +0 -25
- package/dist/es/es2018/types/src/generated/adapters/getLearningSearchResults.d.ts +0 -29
- package/dist/es/es2018/types/src/generated/resources/getLearningContentPlatformLearningSearchDescribe.d.ts +0 -12
- package/dist/es/es2018/types/src/generated/resources/getLearningContentPlatformLearningSearchTypeByContentType.d.ts +0 -20
- package/dist/es/es2018/types/src/generated/types/LearningSearchDescribeContentRepresentation.d.ts +0 -41
- package/dist/es/es2018/types/src/generated/types/LearningSearchDescribeRepresentation.d.ts +0 -38
- package/dist/es/es2018/types/src/generated/types/LearningSearchResultsRepresentation.d.ts +0 -54
package/src/raml/api.raml
CHANGED
|
@@ -449,44 +449,6 @@ types:
|
|
|
449
449
|
title:
|
|
450
450
|
description: Title of the learning practice
|
|
451
451
|
type: string
|
|
452
|
-
LearningSearchDescribeContentRepresentation:
|
|
453
|
-
description: This representation will be used to represent a specific searchable
|
|
454
|
-
content types
|
|
455
|
-
type: object
|
|
456
|
-
properties:
|
|
457
|
-
title:
|
|
458
|
-
description: Represents the localized label of the searchable content type
|
|
459
|
-
type: string
|
|
460
|
-
type:
|
|
461
|
-
description: Represents the enum value of the searchable content type
|
|
462
|
-
type: string
|
|
463
|
-
LearningSearchDescribeRepresentation:
|
|
464
|
-
description: This representation will be used to represent a list of all searchable
|
|
465
|
-
content types
|
|
466
|
-
type: object
|
|
467
|
-
properties:
|
|
468
|
-
contentTypes:
|
|
469
|
-
description: Represents the list of all searchable content types that the
|
|
470
|
-
org and users have access to
|
|
471
|
-
type: array
|
|
472
|
-
items:
|
|
473
|
-
type: LearningSearchDescribeContentRepresentation
|
|
474
|
-
LearningSearchResultsRepresentation:
|
|
475
|
-
description: This representation will be used to represent the search results
|
|
476
|
-
type: object
|
|
477
|
-
properties:
|
|
478
|
-
results:
|
|
479
|
-
description: Represents the list of search results
|
|
480
|
-
type: array
|
|
481
|
-
items:
|
|
482
|
-
type: FeaturedItemRepresentation
|
|
483
|
-
totalResults:
|
|
484
|
-
description: Represents the number of total search results
|
|
485
|
-
type: integer
|
|
486
|
-
type:
|
|
487
|
-
description: Represents the searchable content type for which this search
|
|
488
|
-
result is returned
|
|
489
|
-
type: string
|
|
490
452
|
LearningTextLessonRepresentation:
|
|
491
453
|
description: This representation maps to the LearningTextView class and is used
|
|
492
454
|
to represent Text Lessons
|
|
@@ -651,36 +613,6 @@ types:
|
|
|
651
613
|
type: string
|
|
652
614
|
required: true
|
|
653
615
|
/learning:
|
|
654
|
-
/search:
|
|
655
|
-
/describe:
|
|
656
|
-
get:
|
|
657
|
-
description: Returns a list of searchable content types
|
|
658
|
-
responses:
|
|
659
|
-
'200':
|
|
660
|
-
description: Success
|
|
661
|
-
body:
|
|
662
|
-
application/json:
|
|
663
|
-
type: LearningSearchDescribeRepresentation
|
|
664
|
-
/type/{contentType}:
|
|
665
|
-
get:
|
|
666
|
-
description: Returns a list of search results for a given content type
|
|
667
|
-
responses:
|
|
668
|
-
'200':
|
|
669
|
-
description: Success
|
|
670
|
-
body:
|
|
671
|
-
application/json:
|
|
672
|
-
type: LearningSearchResultsRepresentation
|
|
673
|
-
queryParameters:
|
|
674
|
-
limit:
|
|
675
|
-
type: integer
|
|
676
|
-
required: true
|
|
677
|
-
q:
|
|
678
|
-
type: string
|
|
679
|
-
required: true
|
|
680
|
-
uriParameters:
|
|
681
|
-
contentType:
|
|
682
|
-
type: string
|
|
683
|
-
required: true
|
|
684
616
|
/config:
|
|
685
617
|
get:
|
|
686
618
|
description: Returns a config object for Learning Home
|
package/src/raml/luvio.raml
CHANGED
|
@@ -15,14 +15,6 @@ types:
|
|
|
15
15
|
(luvio.ttl): 15000 # 15 seconds
|
|
16
16
|
(luvio.key):
|
|
17
17
|
id: id
|
|
18
|
-
LearningSearchDescribeContentRepresentation:
|
|
19
|
-
(luvio.ttl): 21600000 # 6 hours
|
|
20
|
-
(luvio.key):
|
|
21
|
-
type: type
|
|
22
|
-
LearningSearchResultsRepresentation:
|
|
23
|
-
(luvio.ttl): 21600000 # 6 hours
|
|
24
|
-
(luvio.key):
|
|
25
|
-
type: type
|
|
26
18
|
LearningItemRepresentation:
|
|
27
19
|
(luvio.ttl): 60000 # 60 seconds
|
|
28
20
|
(luvio.key):
|
|
@@ -59,17 +51,6 @@ types:
|
|
|
59
51
|
(luvio.adapter):
|
|
60
52
|
name: getFeaturedItemsRecommendedList
|
|
61
53
|
/learning:
|
|
62
|
-
/search:
|
|
63
|
-
/describe:
|
|
64
|
-
get:
|
|
65
|
-
(luvio.adapter):
|
|
66
|
-
name: getLearningSearchDescribe
|
|
67
|
-
/type/{contentType}:
|
|
68
|
-
get:
|
|
69
|
-
(luvio.adapter):
|
|
70
|
-
name: getLearningSearchResults
|
|
71
|
-
(luvio.key):
|
|
72
|
-
type: urlParams.contentType
|
|
73
54
|
/config:
|
|
74
55
|
get:
|
|
75
56
|
(luvio.adapter):
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig, Untrusted as adapter$45$utils_Untrusted } from './adapter-utils';
|
|
2
|
-
import { ResourceRequestConfig as resources_getLearningContentPlatformLearningSearchDescribe_ResourceRequestConfig } from '../resources/getLearningContentPlatformLearningSearchDescribe';
|
|
3
|
-
import { Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
4
|
-
import { LearningSearchDescribeRepresentation as types_LearningSearchDescribeRepresentation_LearningSearchDescribeRepresentation } from '../types/LearningSearchDescribeRepresentation';
|
|
5
|
-
export declare const adapterName = "getLearningSearchDescribe";
|
|
6
|
-
export declare const getLearningSearchDescribe_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
|
-
export interface GetLearningSearchDescribeConfig {
|
|
8
|
-
}
|
|
9
|
-
export declare function createResourceParams(config: GetLearningSearchDescribeConfig): resources_getLearningContentPlatformLearningSearchDescribe_ResourceRequestConfig;
|
|
10
|
-
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetLearningSearchDescribeConfig): string;
|
|
11
|
-
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetLearningSearchDescribeConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
12
|
-
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetLearningSearchDescribeConfig>): adapter$45$utils_Untrusted<GetLearningSearchDescribeConfig>;
|
|
13
|
-
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetLearningSearchDescribeConfig | null;
|
|
14
|
-
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetLearningSearchDescribeConfig): $64$luvio_engine_Fragment;
|
|
15
|
-
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetLearningSearchDescribeConfig): $64$luvio_engine_Snapshot<types_LearningSearchDescribeRepresentation_LearningSearchDescribeRepresentation, any>;
|
|
16
|
-
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetLearningSearchDescribeConfig, resourceParams: resources_getLearningContentPlatformLearningSearchDescribe_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_LearningSearchDescribeRepresentation_LearningSearchDescribeRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_LearningSearchDescribeRepresentation_LearningSearchDescribeRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_LearningSearchDescribeRepresentation_LearningSearchDescribeRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_LearningSearchDescribeRepresentation_LearningSearchDescribeRepresentation, any>>;
|
|
17
|
-
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetLearningSearchDescribeConfig, resourceParams: resources_getLearningContentPlatformLearningSearchDescribe_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
18
|
-
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetLearningSearchDescribeConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_LearningSearchDescribeRepresentation_LearningSearchDescribeRepresentation, any>>;
|
|
19
|
-
export type BuildSnapshotContext = {
|
|
20
|
-
luvio: $64$luvio_engine_Luvio;
|
|
21
|
-
config: GetLearningSearchDescribeConfig;
|
|
22
|
-
};
|
|
23
|
-
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_LearningSearchDescribeRepresentation_LearningSearchDescribeRepresentation, any>>;
|
|
24
|
-
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_LearningSearchDescribeRepresentation_LearningSearchDescribeRepresentation>): $64$luvio_engine_Snapshot<types_LearningSearchDescribeRepresentation_LearningSearchDescribeRepresentation, any>;
|
|
25
|
-
export declare const getLearningSearchDescribeAdapterFactory: $64$luvio_engine_AdapterFactory<GetLearningSearchDescribeConfig, types_LearningSearchDescribeRepresentation_LearningSearchDescribeRepresentation>;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { AdapterValidationConfig as adapter$45$utils_AdapterValidationConfig, Untrusted as adapter$45$utils_Untrusted, UncoercedConfiguration as adapter$45$utils_UncoercedConfiguration } from './adapter-utils';
|
|
2
|
-
import { ResourceRequestConfig as resources_getLearningContentPlatformLearningSearchTypeByContentType_ResourceRequestConfig } from '../resources/getLearningContentPlatformLearningSearchTypeByContentType';
|
|
3
|
-
import { Luvio as $64$luvio_engine_Luvio, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, Fragment as $64$luvio_engine_Fragment, Snapshot as $64$luvio_engine_Snapshot, FetchResponse as $64$luvio_engine_FetchResponse, ErrorResponse as $64$luvio_engine_ErrorResponse, DispatchResourceRequestContext as $64$luvio_engine_DispatchResourceRequestContext, CoercedAdapterRequestContext as $64$luvio_engine_CoercedAdapterRequestContext, StoreLookup as $64$luvio_engine_StoreLookup, AdapterFactory as $64$luvio_engine_AdapterFactory } from '@luvio/engine';
|
|
4
|
-
import { LearningSearchResultsRepresentation as types_LearningSearchResultsRepresentation_LearningSearchResultsRepresentation, KeyParams as types_LearningSearchResultsRepresentation_KeyParams } from '../types/LearningSearchResultsRepresentation';
|
|
5
|
-
export declare const adapterName = "getLearningSearchResults";
|
|
6
|
-
export declare const getLearningSearchResults_ConfigPropertyNames: adapter$45$utils_AdapterValidationConfig;
|
|
7
|
-
export interface GetLearningSearchResultsConfig {
|
|
8
|
-
contentType: string;
|
|
9
|
-
limit: number;
|
|
10
|
-
q: string;
|
|
11
|
-
}
|
|
12
|
-
export declare function createResourceParams(config: GetLearningSearchResultsConfig): resources_getLearningContentPlatformLearningSearchTypeByContentType_ResourceRequestConfig;
|
|
13
|
-
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, config: GetLearningSearchResultsConfig): string;
|
|
14
|
-
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, config: GetLearningSearchResultsConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
|
-
export declare function typeCheckConfig(untrustedConfig: adapter$45$utils_Untrusted<GetLearningSearchResultsConfig>): adapter$45$utils_Untrusted<GetLearningSearchResultsConfig>;
|
|
16
|
-
export declare function validateAdapterConfig(untrustedConfig: unknown, configPropertyNames: adapter$45$utils_AdapterValidationConfig): GetLearningSearchResultsConfig | null;
|
|
17
|
-
export declare function adapterFragment(luvio: $64$luvio_engine_Luvio, config: GetLearningSearchResultsConfig): $64$luvio_engine_Fragment;
|
|
18
|
-
export declare function buildCachedSnapshot(luvio: $64$luvio_engine_Luvio, config: GetLearningSearchResultsConfig): $64$luvio_engine_Snapshot<types_LearningSearchResultsRepresentation_LearningSearchResultsRepresentation, any>;
|
|
19
|
-
export declare function onFetchResponseSuccess(luvio: $64$luvio_engine_Luvio, config: GetLearningSearchResultsConfig, resourceParams: resources_getLearningContentPlatformLearningSearchTypeByContentType_ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_LearningSearchResultsRepresentation_LearningSearchResultsRepresentation>): Promise<import("@luvio/engine").FulfilledSnapshot<types_LearningSearchResultsRepresentation_LearningSearchResultsRepresentation, {}> | import("@luvio/engine").StaleSnapshot<types_LearningSearchResultsRepresentation_LearningSearchResultsRepresentation, {}> | import("@luvio/engine").PendingSnapshot<types_LearningSearchResultsRepresentation_LearningSearchResultsRepresentation, any>>;
|
|
20
|
-
export declare function onFetchResponseError(luvio: $64$luvio_engine_Luvio, config: GetLearningSearchResultsConfig, resourceParams: resources_getLearningContentPlatformLearningSearchTypeByContentType_ResourceRequestConfig, response: $64$luvio_engine_ErrorResponse): Promise<import("@luvio/engine").ErrorSnapshot>;
|
|
21
|
-
export declare function buildNetworkSnapshot(luvio: $64$luvio_engine_Luvio, config: GetLearningSearchResultsConfig, options?: $64$luvio_engine_DispatchResourceRequestContext): Promise<$64$luvio_engine_Snapshot<types_LearningSearchResultsRepresentation_LearningSearchResultsRepresentation, any>>;
|
|
22
|
-
export type BuildSnapshotContext = {
|
|
23
|
-
luvio: $64$luvio_engine_Luvio;
|
|
24
|
-
config: GetLearningSearchResultsConfig;
|
|
25
|
-
};
|
|
26
|
-
export declare function buildNetworkSnapshotCachePolicy(context: BuildSnapshotContext, coercedAdapterRequestContext: $64$luvio_engine_CoercedAdapterRequestContext): Promise<$64$luvio_engine_Snapshot<types_LearningSearchResultsRepresentation_LearningSearchResultsRepresentation, any>>;
|
|
27
|
-
export declare function buildCachedSnapshotCachePolicy(context: BuildSnapshotContext, storeLookup: $64$luvio_engine_StoreLookup<types_LearningSearchResultsRepresentation_LearningSearchResultsRepresentation>): $64$luvio_engine_Snapshot<types_LearningSearchResultsRepresentation_LearningSearchResultsRepresentation, any>;
|
|
28
|
-
export declare const getLearningSearchResultsAdapterFactory: $64$luvio_engine_AdapterFactory<GetLearningSearchResultsConfig, types_LearningSearchResultsRepresentation_LearningSearchResultsRepresentation>;
|
|
29
|
-
export declare const notifyChangeFactory: (luvio: $64$luvio_engine_Luvio, options?: $64$luvio_engine_DispatchResourceRequestContext) => (configs: adapter$45$utils_UncoercedConfiguration<types_LearningSearchResultsRepresentation_KeyParams, any>[]) => void;
|
|
@@ -1,12 +0,0 @@
|
|
|
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 { LearningSearchDescribeRepresentation as types_LearningSearchDescribeRepresentation_LearningSearchDescribeRepresentation } from '../types/LearningSearchDescribeRepresentation';
|
|
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(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_LearningSearchDescribeRepresentation_LearningSearchDescribeRepresentation): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
9
|
-
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_LearningSearchDescribeRepresentation_LearningSearchDescribeRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_LearningSearchDescribeRepresentation_LearningSearchDescribeRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_LearningSearchDescribeRepresentation_LearningSearchDescribeRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_LearningSearchDescribeRepresentation_LearningSearchDescribeRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_LearningSearchDescribeRepresentation_LearningSearchDescribeRepresentation, any>;
|
|
10
|
-
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_LearningSearchDescribeRepresentation_LearningSearchDescribeRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
11
|
-
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
12
|
-
export default createResourceRequest;
|
|
@@ -1,20 +0,0 @@
|
|
|
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 { LearningSearchResultsRepresentation as types_LearningSearchResultsRepresentation_LearningSearchResultsRepresentation } from '../types/LearningSearchResultsRepresentation';
|
|
3
|
-
export interface ResourceRequestConfig {
|
|
4
|
-
urlParams: {
|
|
5
|
-
contentType: string;
|
|
6
|
-
};
|
|
7
|
-
queryParams: {
|
|
8
|
-
limit: number;
|
|
9
|
-
q: string;
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
13
|
-
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
14
|
-
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
|
-
export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_LearningSearchResultsRepresentation_LearningSearchResultsRepresentation): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
16
|
-
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_LearningSearchResultsRepresentation_LearningSearchResultsRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_LearningSearchResultsRepresentation_LearningSearchResultsRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_LearningSearchResultsRepresentation_LearningSearchResultsRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_LearningSearchResultsRepresentation_LearningSearchResultsRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_LearningSearchResultsRepresentation_LearningSearchResultsRepresentation, any>;
|
|
17
|
-
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_LearningSearchResultsRepresentation_LearningSearchResultsRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
18
|
-
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
19
|
-
export default createResourceRequest;
|
|
20
|
-
export declare function createResourceRequestFromRepresentation(representation: types_LearningSearchResultsRepresentation_LearningSearchResultsRepresentation): $64$luvio_engine_ResourceRequest;
|
package/dist/es/es2018/types/src/generated/types/LearningSearchDescribeContentRepresentation.d.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
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 TTL = 21600000;
|
|
3
|
-
export declare const VERSION = "c365cdb9357c26a64f8a92d93a07daea";
|
|
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
|
-
type: string;
|
|
8
|
-
}
|
|
9
|
-
export type LearningSearchDescribeContentRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
10
|
-
export type PartialLearningSearchDescribeContentRepresentationNormalizedKeyMetadata = 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): LearningSearchDescribeContentRepresentationNormalizedKeyMetadata;
|
|
13
|
-
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: LearningSearchDescribeContentRepresentation): string;
|
|
14
|
-
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: LearningSearchDescribeContentRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
|
|
15
|
-
export declare function normalize(input: LearningSearchDescribeContentRepresentation, existing: LearningSearchDescribeContentRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LearningSearchDescribeContentRepresentationNormalized;
|
|
16
|
-
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
17
|
-
export declare function equals(existing: LearningSearchDescribeContentRepresentationNormalized, incoming: LearningSearchDescribeContentRepresentationNormalized): boolean;
|
|
18
|
-
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
19
|
-
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: LearningSearchDescribeContentRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
20
|
-
/**
|
|
21
|
-
* This representation will be used to represent a specific searchable content types
|
|
22
|
-
*
|
|
23
|
-
* Keys:
|
|
24
|
-
* type (string): type
|
|
25
|
-
*/
|
|
26
|
-
export interface LearningSearchDescribeContentRepresentationNormalized {
|
|
27
|
-
/** Represents the localized label of the searchable content type */
|
|
28
|
-
title: string;
|
|
29
|
-
/** Represents the enum value of the searchable content type */
|
|
30
|
-
type: string;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* This representation will be used to represent a specific searchable content types
|
|
34
|
-
*
|
|
35
|
-
* Keys:
|
|
36
|
-
* type (string): type
|
|
37
|
-
*/
|
|
38
|
-
export interface LearningSearchDescribeContentRepresentation {
|
|
39
|
-
title: string;
|
|
40
|
-
type: string;
|
|
41
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
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, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, DurableStoreKeyMetadataMap as $64$luvio_engine_DurableStoreKeyMetadataMap } from '@luvio/engine';
|
|
2
|
-
import { LearningSearchDescribeContentRepresentation as LearningSearchDescribeContentRepresentation_LearningSearchDescribeContentRepresentation } from './LearningSearchDescribeContentRepresentation';
|
|
3
|
-
export declare const VERSION = "efe7f2c47826ec8055be54360b646e19";
|
|
4
|
-
export declare function validate(obj: any, path?: string): TypeError | null;
|
|
5
|
-
export declare const RepresentationType: string;
|
|
6
|
-
export declare function normalize(input: LearningSearchDescribeRepresentation, existing: LearningSearchDescribeRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LearningSearchDescribeRepresentationNormalized;
|
|
7
|
-
export interface DynamicIngestParams {
|
|
8
|
-
contentTypes: $64$luvio_engine_ResourceIngest;
|
|
9
|
-
}
|
|
10
|
-
export declare function dynamicNormalize(ingestParams: DynamicIngestParams): (input: LearningSearchDescribeRepresentation, existing: LearningSearchDescribeRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number) => LearningSearchDescribeRepresentationNormalized;
|
|
11
|
-
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
12
|
-
export interface DynamicSelectParams {
|
|
13
|
-
contentTypes?: $64$luvio_engine_LinkSelection;
|
|
14
|
-
}
|
|
15
|
-
export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
|
|
16
|
-
export declare function equals(existing: LearningSearchDescribeRepresentationNormalized, incoming: LearningSearchDescribeRepresentationNormalized): boolean;
|
|
17
|
-
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
18
|
-
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: LearningSearchDescribeRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
19
|
-
export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$luvio_engine_ResourceIngest;
|
|
20
|
-
/**
|
|
21
|
-
* This representation will be used to represent a list of all searchable content types
|
|
22
|
-
*
|
|
23
|
-
* Keys:
|
|
24
|
-
* (none)
|
|
25
|
-
*/
|
|
26
|
-
export interface LearningSearchDescribeRepresentationNormalized {
|
|
27
|
-
/** Represents the list of all searchable content types that the org and users have access to */
|
|
28
|
-
contentTypes: Array<$64$luvio_engine_StoreLink>;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* This representation will be used to represent a list of all searchable content types
|
|
32
|
-
*
|
|
33
|
-
* Keys:
|
|
34
|
-
* (none)
|
|
35
|
-
*/
|
|
36
|
-
export interface LearningSearchDescribeRepresentation {
|
|
37
|
-
contentTypes: Array<LearningSearchDescribeContentRepresentation_LearningSearchDescribeContentRepresentation>;
|
|
38
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
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, 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 } from '@luvio/engine';
|
|
2
|
-
import { FeaturedItemRepresentation as FeaturedItemRepresentation_FeaturedItemRepresentation } from './FeaturedItemRepresentation';
|
|
3
|
-
export declare const TTL = 21600000;
|
|
4
|
-
export declare const VERSION = "6f068b7b81d41fa29feab5d1ac9f9cb8";
|
|
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
|
-
type: string;
|
|
9
|
-
}
|
|
10
|
-
export type LearningSearchResultsRepresentationNormalizedKeyMetadata = KeyParams & $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
-
export type PartialLearningSearchResultsRepresentationNormalizedKeyMetadata = 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): LearningSearchResultsRepresentationNormalizedKeyMetadata;
|
|
14
|
-
export declare function keyBuilderFromType(luvio: $64$luvio_engine_Luvio, object: LearningSearchResultsRepresentation): string;
|
|
15
|
-
export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine_Luvio, object: LearningSearchResultsRepresentation): $64$luvio_engine_NormalizedKeyMetadata;
|
|
16
|
-
export declare function normalize(input: LearningSearchResultsRepresentation, existing: LearningSearchResultsRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LearningSearchResultsRepresentationNormalized;
|
|
17
|
-
export interface DynamicIngestParams {
|
|
18
|
-
results: $64$luvio_engine_ResourceIngest;
|
|
19
|
-
}
|
|
20
|
-
export declare function dynamicNormalize(ingestParams: DynamicIngestParams): (input: LearningSearchResultsRepresentation, existing: LearningSearchResultsRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number) => LearningSearchResultsRepresentationNormalized;
|
|
21
|
-
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
22
|
-
export interface DynamicSelectParams {
|
|
23
|
-
results?: $64$luvio_engine_LinkSelection;
|
|
24
|
-
}
|
|
25
|
-
export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
|
|
26
|
-
export declare function equals(existing: LearningSearchResultsRepresentationNormalized, incoming: LearningSearchResultsRepresentationNormalized): boolean;
|
|
27
|
-
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
28
|
-
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: LearningSearchResultsRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
29
|
-
export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$luvio_engine_ResourceIngest;
|
|
30
|
-
/**
|
|
31
|
-
* This representation will be used to represent the search results
|
|
32
|
-
*
|
|
33
|
-
* Keys:
|
|
34
|
-
* type (string): type
|
|
35
|
-
*/
|
|
36
|
-
export interface LearningSearchResultsRepresentationNormalized {
|
|
37
|
-
/** Represents the list of search results */
|
|
38
|
-
results: Array<$64$luvio_engine_StoreLink>;
|
|
39
|
-
/** Represents the number of total search results */
|
|
40
|
-
totalResults: number;
|
|
41
|
-
/** Represents the searchable content type for which this search result is returned */
|
|
42
|
-
type: string;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* This representation will be used to represent the search results
|
|
46
|
-
*
|
|
47
|
-
* Keys:
|
|
48
|
-
* type (string): type
|
|
49
|
-
*/
|
|
50
|
-
export interface LearningSearchResultsRepresentation {
|
|
51
|
-
results: Array<FeaturedItemRepresentation_FeaturedItemRepresentation>;
|
|
52
|
-
totalResults: number;
|
|
53
|
-
type: string;
|
|
54
|
-
}
|