@salesforce/lds-adapters-platform-learning-content 1.134.7 → 1.134.8
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 +16 -21
- package/dist/es/es2018/types/src/generated/adapters/adapter-utils.d.ts +1 -7
- package/dist/es/es2018/types/src/generated/types/EvaluateLearningItemInputRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/EvaluateLearningItemInputWrapperRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/FeaturedItemRecommendedListRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/FeaturedItemRelatedListRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/FeaturedItemRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/FeedbackResultRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/LearningAssignmentInputRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/LearningAssignmentRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/LearningConfigRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/LearningItemAssignmentRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/LearningItemListRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/LearningItemProgressListRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/LearningItemProgressRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/LearningItemRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/LearningModelInputRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/LearningModelOutputRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/LearningPracticeRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/LearningSearchDescribeContentRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/LearningSearchDescribeRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/LearningSearchResultsRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/LearningTextLessonRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/LearningTextLessonSectionRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/SurveyQuestionResponseRepresetation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/TrailheadModuleRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/TrailheadModuleUnitRepresentation.d.ts +0 -1
- package/dist/es/es2018/types/src/generated/types/type-utils.d.ts +1 -8
- package/package.json +1 -1
- package/sfdc/index.js +17 -22
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey, StoreKeyMap } from '@luvio/engine';
|
|
7
|
+
import { serializeStructuredKey, StoreKeyMap, deepFreeze } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
|
-
const { keys: ObjectKeys$1,
|
|
10
|
+
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
11
11
|
const { isArray: ArrayIsArray$1 } = Array;
|
|
12
12
|
/**
|
|
13
13
|
* Validates an adapter config is well-formed.
|
|
@@ -50,7 +50,7 @@ const snapshotRefreshOptions = {
|
|
|
50
50
|
};
|
|
51
51
|
const keyPrefix = 'LearningContentPlatform';
|
|
52
52
|
|
|
53
|
-
const {
|
|
53
|
+
const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
|
|
54
54
|
const { isArray: ArrayIsArray } = Array;
|
|
55
55
|
const { stringify: JSONStringify } = JSON;
|
|
56
56
|
function equalsArray(a, b, equalsItem) {
|
|
@@ -85,24 +85,6 @@ function equalsObject(a, b, equalsProp) {
|
|
|
85
85
|
}
|
|
86
86
|
return true;
|
|
87
87
|
}
|
|
88
|
-
function deepFreeze(value) {
|
|
89
|
-
// No need to freeze primitives
|
|
90
|
-
if (typeof value !== 'object' || value === null) {
|
|
91
|
-
return;
|
|
92
|
-
}
|
|
93
|
-
if (ArrayIsArray(value)) {
|
|
94
|
-
for (let i = 0, len = value.length; i < len; i += 1) {
|
|
95
|
-
deepFreeze(value[i]);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
else {
|
|
99
|
-
const keys = ObjectKeys(value);
|
|
100
|
-
for (let i = 0, len = keys.length; i < len; i += 1) {
|
|
101
|
-
deepFreeze(value[keys[i]]);
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
ObjectFreeze(value);
|
|
105
|
-
}
|
|
106
88
|
function createLink(ref) {
|
|
107
89
|
return {
|
|
108
90
|
__ref: serializeStructuredKey(ref),
|
|
@@ -884,6 +866,7 @@ function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
884
866
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
885
867
|
}
|
|
886
868
|
}
|
|
869
|
+
deepFreeze(snapshot.data);
|
|
887
870
|
return snapshot;
|
|
888
871
|
}
|
|
889
872
|
function ingestError$b(luvio, params, error, snapshotRefresh) {
|
|
@@ -1156,6 +1139,7 @@ function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1156
1139
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1157
1140
|
}
|
|
1158
1141
|
}
|
|
1142
|
+
deepFreeze(snapshot.data);
|
|
1159
1143
|
return snapshot;
|
|
1160
1144
|
}
|
|
1161
1145
|
function ingestError$a(luvio, params, error, snapshotRefresh) {
|
|
@@ -1620,6 +1604,7 @@ function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1620
1604
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1621
1605
|
}
|
|
1622
1606
|
}
|
|
1607
|
+
deepFreeze(snapshot.data);
|
|
1623
1608
|
return snapshot;
|
|
1624
1609
|
}
|
|
1625
1610
|
function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
@@ -1999,6 +1984,7 @@ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1999
1984
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
2000
1985
|
}
|
|
2001
1986
|
}
|
|
1987
|
+
deepFreeze(snapshot.data);
|
|
2002
1988
|
return snapshot;
|
|
2003
1989
|
}
|
|
2004
1990
|
function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
@@ -2297,6 +2283,7 @@ function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2297
2283
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
2298
2284
|
}
|
|
2299
2285
|
}
|
|
2286
|
+
deepFreeze(snapshot.data);
|
|
2300
2287
|
return snapshot;
|
|
2301
2288
|
}
|
|
2302
2289
|
function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
@@ -2576,6 +2563,7 @@ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2576
2563
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
2577
2564
|
}
|
|
2578
2565
|
}
|
|
2566
|
+
deepFreeze(snapshot.data);
|
|
2579
2567
|
return snapshot;
|
|
2580
2568
|
}
|
|
2581
2569
|
function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
@@ -3306,6 +3294,7 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3306
3294
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
3307
3295
|
}
|
|
3308
3296
|
}
|
|
3297
|
+
deepFreeze(snapshot.data);
|
|
3309
3298
|
return snapshot;
|
|
3310
3299
|
}
|
|
3311
3300
|
function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
@@ -3756,6 +3745,7 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3756
3745
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
3757
3746
|
}
|
|
3758
3747
|
}
|
|
3748
|
+
deepFreeze(snapshot.data);
|
|
3759
3749
|
return snapshot;
|
|
3760
3750
|
}
|
|
3761
3751
|
function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
@@ -4741,6 +4731,7 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4741
4731
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
4742
4732
|
}
|
|
4743
4733
|
}
|
|
4734
|
+
deepFreeze(snapshot.data);
|
|
4744
4735
|
return snapshot;
|
|
4745
4736
|
}
|
|
4746
4737
|
function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
@@ -5474,6 +5465,7 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
5474
5465
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
5475
5466
|
}
|
|
5476
5467
|
}
|
|
5468
|
+
deepFreeze(snapshot.data);
|
|
5477
5469
|
return snapshot;
|
|
5478
5470
|
}
|
|
5479
5471
|
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
@@ -5782,6 +5774,7 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
5782
5774
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
5783
5775
|
}
|
|
5784
5776
|
}
|
|
5777
|
+
deepFreeze(snapshot.data);
|
|
5785
5778
|
return snapshot;
|
|
5786
5779
|
}
|
|
5787
5780
|
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
@@ -5968,6 +5961,7 @@ function ingestSuccess$1(luvio, resourceParams, response) {
|
|
|
5968
5961
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
5969
5962
|
}
|
|
5970
5963
|
}
|
|
5964
|
+
deepFreeze(snapshot.data);
|
|
5971
5965
|
return snapshot;
|
|
5972
5966
|
}
|
|
5973
5967
|
function createResourceRequest$1(config) {
|
|
@@ -6313,6 +6307,7 @@ function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
6313
6307
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
6314
6308
|
}
|
|
6315
6309
|
}
|
|
6310
|
+
deepFreeze(snapshot.data);
|
|
6316
6311
|
return snapshot;
|
|
6317
6312
|
}
|
|
6318
6313
|
function ingestError(luvio, params, error, snapshotRefresh) {
|
|
@@ -3,17 +3,11 @@ export declare const ObjectPrototypeHasOwnProperty: (v: PropertyKey) => boolean;
|
|
|
3
3
|
declare const ObjectKeys: {
|
|
4
4
|
(o: object): string[];
|
|
5
5
|
(o: {}): string[];
|
|
6
|
-
}, ObjectFreeze: {
|
|
7
|
-
<T extends Function>(f: T): T;
|
|
8
|
-
<T_1 extends {
|
|
9
|
-
[idx: string]: object | U | null | undefined;
|
|
10
|
-
}, U extends string | number | bigint | boolean | symbol>(o: T_1): Readonly<T_1>;
|
|
11
|
-
<T_2>(o: T_2): Readonly<T_2>;
|
|
12
6
|
}, ObjectCreate: {
|
|
13
7
|
(o: object | null): any;
|
|
14
8
|
(o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
|
|
15
9
|
};
|
|
16
|
-
export {
|
|
10
|
+
export { ObjectCreate, ObjectKeys };
|
|
17
11
|
export declare const ArrayIsArray: (arg: any) => arg is any[];
|
|
18
12
|
export declare const ArrayPrototypePush: (...items: any[]) => number;
|
|
19
13
|
export interface AdapterValidationConfig {
|
package/dist/es/es2018/types/src/generated/types/EvaluateLearningItemInputRepresentation.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ export declare const RepresentationType: string;
|
|
|
5
5
|
export declare function normalize(input: EvaluateLearningItemInputRepresentation, existing: EvaluateLearningItemInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EvaluateLearningItemInputRepresentationNormalized;
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: EvaluateLearningItemInputRepresentationNormalized, incoming: EvaluateLearningItemInputRepresentationNormalized): boolean;
|
|
8
|
-
export declare function deepFreeze(input: EvaluateLearningItemInputRepresentation): void;
|
|
9
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
9
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: EvaluateLearningItemInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
11
10
|
/**
|
package/dist/es/es2018/types/src/generated/types/EvaluateLearningItemInputWrapperRepresentation.d.ts
CHANGED
|
@@ -6,7 +6,6 @@ export declare const RepresentationType: string;
|
|
|
6
6
|
export declare function normalize(input: EvaluateLearningItemInputWrapperRepresentation, existing: EvaluateLearningItemInputWrapperRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): EvaluateLearningItemInputWrapperRepresentationNormalized;
|
|
7
7
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
8
|
export declare function equals(existing: EvaluateLearningItemInputWrapperRepresentationNormalized, incoming: EvaluateLearningItemInputWrapperRepresentationNormalized): boolean;
|
|
9
|
-
export declare function deepFreeze(input: EvaluateLearningItemInputWrapperRepresentation): void;
|
|
10
9
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
11
10
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: EvaluateLearningItemInputWrapperRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
12
11
|
/**
|
package/dist/es/es2018/types/src/generated/types/FeaturedItemRecommendedListRepresentation.d.ts
CHANGED
|
@@ -14,7 +14,6 @@ export interface DynamicSelectParams {
|
|
|
14
14
|
}
|
|
15
15
|
export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
|
|
16
16
|
export declare function equals(existing: FeaturedItemRecommendedListRepresentationNormalized, incoming: FeaturedItemRecommendedListRepresentationNormalized): boolean;
|
|
17
|
-
export declare function deepFreeze(input: FeaturedItemRecommendedListRepresentation): void;
|
|
18
17
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
19
18
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: FeaturedItemRecommendedListRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
20
19
|
export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$luvio_engine_ResourceIngest;
|
|
@@ -14,7 +14,6 @@ export interface DynamicSelectParams {
|
|
|
14
14
|
}
|
|
15
15
|
export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
|
|
16
16
|
export declare function equals(existing: FeaturedItemRelatedListRepresentationNormalized, incoming: FeaturedItemRelatedListRepresentationNormalized): boolean;
|
|
17
|
-
export declare function deepFreeze(input: FeaturedItemRelatedListRepresentation): void;
|
|
18
17
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
19
18
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: FeaturedItemRelatedListRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
20
19
|
export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$luvio_engine_ResourceIngest;
|
|
@@ -15,7 +15,6 @@ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine
|
|
|
15
15
|
export declare function normalize(input: FeaturedItemRepresentation, existing: FeaturedItemRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FeaturedItemRepresentationNormalized;
|
|
16
16
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
17
17
|
export declare function equals(existing: FeaturedItemRepresentationNormalized, incoming: FeaturedItemRepresentationNormalized): boolean;
|
|
18
|
-
export declare function deepFreeze(input: FeaturedItemRepresentation): void;
|
|
19
18
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
20
19
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: FeaturedItemRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
21
20
|
/**
|
|
@@ -16,7 +16,6 @@ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine
|
|
|
16
16
|
export declare function normalize(input: FeedbackResultRepresentation, existing: FeedbackResultRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): FeedbackResultRepresentationNormalized;
|
|
17
17
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
18
18
|
export declare function equals(existing: FeedbackResultRepresentationNormalized, incoming: FeedbackResultRepresentationNormalized): boolean;
|
|
19
|
-
export declare function deepFreeze(input: FeedbackResultRepresentation): void;
|
|
20
19
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
21
20
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: FeedbackResultRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
22
21
|
/**
|
|
@@ -5,7 +5,6 @@ export declare const RepresentationType: string;
|
|
|
5
5
|
export declare function normalize(input: LearningAssignmentInputRepresentation, existing: LearningAssignmentInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LearningAssignmentInputRepresentationNormalized;
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: LearningAssignmentInputRepresentationNormalized, incoming: LearningAssignmentInputRepresentationNormalized): boolean;
|
|
8
|
-
export declare function deepFreeze(input: LearningAssignmentInputRepresentation): void;
|
|
9
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
9
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: LearningAssignmentInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
11
10
|
/**
|
|
@@ -5,7 +5,6 @@ export declare const RepresentationType: string;
|
|
|
5
5
|
export declare function normalize(input: LearningAssignmentRepresentation, existing: LearningAssignmentRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LearningAssignmentRepresentationNormalized;
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: LearningAssignmentRepresentationNormalized, incoming: LearningAssignmentRepresentationNormalized): boolean;
|
|
8
|
-
export declare function deepFreeze(input: LearningAssignmentRepresentation): void;
|
|
9
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
9
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: LearningAssignmentRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
11
10
|
/**
|
|
@@ -5,7 +5,6 @@ export declare const RepresentationType: string;
|
|
|
5
5
|
export declare function normalize(input: LearningConfigRepresentation, existing: LearningConfigRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LearningConfigRepresentationNormalized;
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: LearningConfigRepresentationNormalized, incoming: LearningConfigRepresentationNormalized): boolean;
|
|
8
|
-
export declare function deepFreeze(input: LearningConfigRepresentation): void;
|
|
9
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
9
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: LearningConfigRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
11
10
|
/**
|
|
@@ -5,7 +5,6 @@ export declare const RepresentationType: string;
|
|
|
5
5
|
export declare function normalize(input: LearningItemAssignmentRepresentation, existing: LearningItemAssignmentRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LearningItemAssignmentRepresentationNormalized;
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: LearningItemAssignmentRepresentationNormalized, incoming: LearningItemAssignmentRepresentationNormalized): boolean;
|
|
8
|
-
export declare function deepFreeze(input: LearningItemAssignmentRepresentation): void;
|
|
9
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
9
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: LearningItemAssignmentRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
11
10
|
/**
|
|
@@ -14,7 +14,6 @@ export interface DynamicSelectParams {
|
|
|
14
14
|
}
|
|
15
15
|
export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
|
|
16
16
|
export declare function equals(existing: LearningItemListRepresentationNormalized, incoming: LearningItemListRepresentationNormalized): boolean;
|
|
17
|
-
export declare function deepFreeze(input: LearningItemListRepresentation): void;
|
|
18
17
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
19
18
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: LearningItemListRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
20
19
|
export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$luvio_engine_ResourceIngest;
|
package/dist/es/es2018/types/src/generated/types/LearningItemProgressListRepresentation.d.ts
CHANGED
|
@@ -14,7 +14,6 @@ export interface DynamicSelectParams {
|
|
|
14
14
|
}
|
|
15
15
|
export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
|
|
16
16
|
export declare function equals(existing: LearningItemProgressListRepresentationNormalized, incoming: LearningItemProgressListRepresentationNormalized): boolean;
|
|
17
|
-
export declare function deepFreeze(input: LearningItemProgressListRepresentation): void;
|
|
18
17
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
19
18
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: LearningItemProgressListRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
20
19
|
export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$luvio_engine_ResourceIngest;
|
|
@@ -15,7 +15,6 @@ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine
|
|
|
15
15
|
export declare function normalize(input: LearningItemProgressRepresentation, existing: LearningItemProgressRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LearningItemProgressRepresentationNormalized;
|
|
16
16
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
17
17
|
export declare function equals(existing: LearningItemProgressRepresentationNormalized, incoming: LearningItemProgressRepresentationNormalized): boolean;
|
|
18
|
-
export declare function deepFreeze(input: LearningItemProgressRepresentation): void;
|
|
19
18
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
20
19
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: LearningItemProgressRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
21
20
|
/**
|
|
@@ -15,7 +15,6 @@ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine
|
|
|
15
15
|
export declare function normalize(input: LearningItemRepresentation, existing: LearningItemRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LearningItemRepresentationNormalized;
|
|
16
16
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
17
17
|
export declare function equals(existing: LearningItemRepresentationNormalized, incoming: LearningItemRepresentationNormalized): boolean;
|
|
18
|
-
export declare function deepFreeze(input: LearningItemRepresentation): void;
|
|
19
18
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
20
19
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: LearningItemRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
21
20
|
/**
|
|
@@ -6,7 +6,6 @@ export declare const RepresentationType: string;
|
|
|
6
6
|
export declare function normalize(input: LearningModelInputRepresentation, existing: LearningModelInputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LearningModelInputRepresentationNormalized;
|
|
7
7
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
8
8
|
export declare function equals(existing: LearningModelInputRepresentationNormalized, incoming: LearningModelInputRepresentationNormalized): boolean;
|
|
9
|
-
export declare function deepFreeze(input: LearningModelInputRepresentation): void;
|
|
10
9
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
11
10
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: LearningModelInputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
12
11
|
/**
|
|
@@ -16,7 +16,6 @@ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine
|
|
|
16
16
|
export declare function normalize(input: LearningModelOutputRepresentation, existing: LearningModelOutputRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LearningModelOutputRepresentationNormalized;
|
|
17
17
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
18
18
|
export declare function equals(existing: LearningModelOutputRepresentationNormalized, incoming: LearningModelOutputRepresentationNormalized): boolean;
|
|
19
|
-
export declare function deepFreeze(input: LearningModelOutputRepresentation): void;
|
|
20
19
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
21
20
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: LearningModelOutputRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
22
21
|
/**
|
|
@@ -15,7 +15,6 @@ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine
|
|
|
15
15
|
export declare function normalize(input: LearningPracticeRepresentation, existing: LearningPracticeRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LearningPracticeRepresentationNormalized;
|
|
16
16
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
17
17
|
export declare function equals(existing: LearningPracticeRepresentationNormalized, incoming: LearningPracticeRepresentationNormalized): boolean;
|
|
18
|
-
export declare function deepFreeze(input: LearningPracticeRepresentation): void;
|
|
19
18
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
20
19
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: LearningPracticeRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
21
20
|
/**
|
package/dist/es/es2018/types/src/generated/types/LearningSearchDescribeContentRepresentation.d.ts
CHANGED
|
@@ -15,7 +15,6 @@ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine
|
|
|
15
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
16
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
17
17
|
export declare function equals(existing: LearningSearchDescribeContentRepresentationNormalized, incoming: LearningSearchDescribeContentRepresentationNormalized): boolean;
|
|
18
|
-
export declare function deepFreeze(input: LearningSearchDescribeContentRepresentation): void;
|
|
19
18
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
20
19
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: LearningSearchDescribeContentRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
21
20
|
/**
|
|
@@ -14,7 +14,6 @@ export interface DynamicSelectParams {
|
|
|
14
14
|
}
|
|
15
15
|
export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
|
|
16
16
|
export declare function equals(existing: LearningSearchDescribeRepresentationNormalized, incoming: LearningSearchDescribeRepresentationNormalized): boolean;
|
|
17
|
-
export declare function deepFreeze(input: LearningSearchDescribeRepresentation): void;
|
|
18
17
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
19
18
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: LearningSearchDescribeRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
20
19
|
export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$luvio_engine_ResourceIngest;
|
|
@@ -24,7 +24,6 @@ export interface DynamicSelectParams {
|
|
|
24
24
|
}
|
|
25
25
|
export declare const dynamicSelect: (params: DynamicSelectParams) => $64$luvio_engine_FragmentSelection;
|
|
26
26
|
export declare function equals(existing: LearningSearchResultsRepresentationNormalized, incoming: LearningSearchResultsRepresentationNormalized): boolean;
|
|
27
|
-
export declare function deepFreeze(input: LearningSearchResultsRepresentation): void;
|
|
28
27
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
29
28
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: LearningSearchResultsRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
30
29
|
export declare function dynamicIngest(ingestParams: DynamicIngestParams): $64$luvio_engine_ResourceIngest;
|
|
@@ -16,7 +16,6 @@ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine
|
|
|
16
16
|
export declare function normalize(input: LearningTextLessonRepresentation, existing: LearningTextLessonRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LearningTextLessonRepresentationNormalized;
|
|
17
17
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
18
18
|
export declare function equals(existing: LearningTextLessonRepresentationNormalized, incoming: LearningTextLessonRepresentationNormalized): boolean;
|
|
19
|
-
export declare function deepFreeze(input: LearningTextLessonRepresentation): void;
|
|
20
19
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
21
20
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: LearningTextLessonRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
22
21
|
/**
|
package/dist/es/es2018/types/src/generated/types/LearningTextLessonSectionRepresentation.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ export declare const RepresentationType: string;
|
|
|
5
5
|
export declare function normalize(input: LearningTextLessonSectionRepresentation, existing: LearningTextLessonSectionRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): LearningTextLessonSectionRepresentationNormalized;
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: LearningTextLessonSectionRepresentationNormalized, incoming: LearningTextLessonSectionRepresentationNormalized): boolean;
|
|
8
|
-
export declare function deepFreeze(input: LearningTextLessonSectionRepresentation): void;
|
|
9
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
9
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: LearningTextLessonSectionRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
11
10
|
/**
|
|
@@ -5,7 +5,6 @@ export declare const RepresentationType: string;
|
|
|
5
5
|
export declare function normalize(input: SurveyQuestionResponseRepresetation, existing: SurveyQuestionResponseRepresetationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): SurveyQuestionResponseRepresetationNormalized;
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: SurveyQuestionResponseRepresetationNormalized, incoming: SurveyQuestionResponseRepresetationNormalized): boolean;
|
|
8
|
-
export declare function deepFreeze(input: SurveyQuestionResponseRepresetation): void;
|
|
9
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
9
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: SurveyQuestionResponseRepresetation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
11
10
|
/**
|
|
@@ -16,7 +16,6 @@ export declare function keyBuilderFromType_StructuredKey(luvio: $64$luvio_engine
|
|
|
16
16
|
export declare function normalize(input: TrailheadModuleRepresentation, existing: TrailheadModuleRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): TrailheadModuleRepresentationNormalized;
|
|
17
17
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
18
18
|
export declare function equals(existing: TrailheadModuleRepresentationNormalized, incoming: TrailheadModuleRepresentationNormalized): boolean;
|
|
19
|
-
export declare function deepFreeze(input: TrailheadModuleRepresentation): void;
|
|
20
19
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
21
20
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: TrailheadModuleRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
22
21
|
/**
|
|
@@ -5,7 +5,6 @@ export declare const RepresentationType: string;
|
|
|
5
5
|
export declare function normalize(input: TrailheadModuleUnitRepresentation, existing: TrailheadModuleUnitRepresentationNormalized, path: $64$luvio_engine_IngestPath, luvio: $64$luvio_engine_Luvio, store: $64$luvio_engine_Store, timestamp: number): TrailheadModuleUnitRepresentationNormalized;
|
|
6
6
|
export declare const select: () => $64$luvio_engine_FragmentSelection;
|
|
7
7
|
export declare function equals(existing: TrailheadModuleUnitRepresentationNormalized, incoming: TrailheadModuleUnitRepresentationNormalized): boolean;
|
|
8
|
-
export declare function deepFreeze(input: TrailheadModuleUnitRepresentation): void;
|
|
9
8
|
export declare const ingest: $64$luvio_engine_ResourceIngest;
|
|
10
9
|
export declare function getTypeCacheKeys(luvio: $64$luvio_engine_Luvio, input: TrailheadModuleUnitRepresentation, fullPathFactory: () => string | $64$luvio_engine_NormalizedKeyMetadata): $64$luvio_engine_DurableStoreKeyMetadataMap;
|
|
11
10
|
/**
|
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import { NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata } from '@luvio/engine';
|
|
2
|
-
export declare const
|
|
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: {
|
|
2
|
+
export declare const ObjectKeys: {
|
|
9
3
|
(o: object): string[];
|
|
10
4
|
(o: {}): string[];
|
|
11
5
|
}, ObjectCreate: {
|
|
@@ -31,7 +25,6 @@ export declare function equalsArray<U, V extends U[]>(a: V, b: V, equalsItem: (i
|
|
|
31
25
|
export declare function equalsObject<U, V extends {
|
|
32
26
|
[key: string]: U;
|
|
33
27
|
}>(a: V, b: V, equalsProp: (propA: U, propB: U) => boolean | void): boolean;
|
|
34
|
-
export declare function deepFreeze(value: any): void;
|
|
35
28
|
export declare function createLink(ref: string | $64$luvio_engine_NormalizedKeyMetadata): {
|
|
36
29
|
__ref: string;
|
|
37
30
|
};
|
package/package.json
CHANGED
package/sfdc/index.js
CHANGED
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
/* proxy-compat-disable */
|
|
15
15
|
import { createInstrumentedAdapter, createLDSAdapter, createWireAdapterConstructor, createImperativeAdapter } from 'force/ldsBindings';
|
|
16
16
|
import { withDefaultLuvio } from 'force/ldsEngine';
|
|
17
|
-
import { serializeStructuredKey, StoreKeyMap } from 'force/luvioEngine';
|
|
17
|
+
import { serializeStructuredKey, StoreKeyMap, deepFreeze } from 'force/luvioEngine';
|
|
18
18
|
|
|
19
19
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
20
|
-
const { keys: ObjectKeys$1,
|
|
20
|
+
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
21
21
|
const { isArray: ArrayIsArray$1 } = Array;
|
|
22
22
|
/**
|
|
23
23
|
* Validates an adapter config is well-formed.
|
|
@@ -60,7 +60,7 @@ const snapshotRefreshOptions = {
|
|
|
60
60
|
};
|
|
61
61
|
const keyPrefix = 'LearningContentPlatform';
|
|
62
62
|
|
|
63
|
-
const {
|
|
63
|
+
const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
|
|
64
64
|
const { isArray: ArrayIsArray } = Array;
|
|
65
65
|
const { stringify: JSONStringify } = JSON;
|
|
66
66
|
function equalsArray(a, b, equalsItem) {
|
|
@@ -95,24 +95,6 @@ function equalsObject(a, b, equalsProp) {
|
|
|
95
95
|
}
|
|
96
96
|
return true;
|
|
97
97
|
}
|
|
98
|
-
function deepFreeze(value) {
|
|
99
|
-
// No need to freeze primitives
|
|
100
|
-
if (typeof value !== 'object' || value === null) {
|
|
101
|
-
return;
|
|
102
|
-
}
|
|
103
|
-
if (ArrayIsArray(value)) {
|
|
104
|
-
for (let i = 0, len = value.length; i < len; i += 1) {
|
|
105
|
-
deepFreeze(value[i]);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
else {
|
|
109
|
-
const keys = ObjectKeys(value);
|
|
110
|
-
for (let i = 0, len = keys.length; i < len; i += 1) {
|
|
111
|
-
deepFreeze(value[keys[i]]);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
ObjectFreeze(value);
|
|
115
|
-
}
|
|
116
98
|
function createLink(ref) {
|
|
117
99
|
return {
|
|
118
100
|
__ref: serializeStructuredKey(ref),
|
|
@@ -344,6 +326,7 @@ function ingestSuccess$c(luvio, resourceParams, response) {
|
|
|
344
326
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
345
327
|
}
|
|
346
328
|
}
|
|
329
|
+
deepFreeze(snapshot.data);
|
|
347
330
|
return snapshot;
|
|
348
331
|
}
|
|
349
332
|
function createResourceRequest$c(config) {
|
|
@@ -1197,6 +1180,7 @@ function ingestSuccess$b(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1197
1180
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1198
1181
|
}
|
|
1199
1182
|
}
|
|
1183
|
+
deepFreeze(snapshot.data);
|
|
1200
1184
|
return snapshot;
|
|
1201
1185
|
}
|
|
1202
1186
|
function ingestError$b(luvio, params, error, snapshotRefresh) {
|
|
@@ -1469,6 +1453,7 @@ function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1469
1453
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1470
1454
|
}
|
|
1471
1455
|
}
|
|
1456
|
+
deepFreeze(snapshot.data);
|
|
1472
1457
|
return snapshot;
|
|
1473
1458
|
}
|
|
1474
1459
|
function ingestError$a(luvio, params, error, snapshotRefresh) {
|
|
@@ -1933,6 +1918,7 @@ function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
1933
1918
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
1934
1919
|
}
|
|
1935
1920
|
}
|
|
1921
|
+
deepFreeze(snapshot.data);
|
|
1936
1922
|
return snapshot;
|
|
1937
1923
|
}
|
|
1938
1924
|
function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
@@ -2238,6 +2224,7 @@ function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2238
2224
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
2239
2225
|
}
|
|
2240
2226
|
}
|
|
2227
|
+
deepFreeze(snapshot.data);
|
|
2241
2228
|
return snapshot;
|
|
2242
2229
|
}
|
|
2243
2230
|
function ingestError$8(luvio, params, error, snapshotRefresh) {
|
|
@@ -2496,6 +2483,7 @@ function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
2496
2483
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
2497
2484
|
}
|
|
2498
2485
|
}
|
|
2486
|
+
deepFreeze(snapshot.data);
|
|
2499
2487
|
return snapshot;
|
|
2500
2488
|
}
|
|
2501
2489
|
function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
@@ -3243,6 +3231,7 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
3243
3231
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
3244
3232
|
}
|
|
3245
3233
|
}
|
|
3234
|
+
deepFreeze(snapshot.data);
|
|
3246
3235
|
return snapshot;
|
|
3247
3236
|
}
|
|
3248
3237
|
function ingestError$6(luvio, params, error, snapshotRefresh) {
|
|
@@ -4228,6 +4217,7 @@ function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4228
4217
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
4229
4218
|
}
|
|
4230
4219
|
}
|
|
4220
|
+
deepFreeze(snapshot.data);
|
|
4231
4221
|
return snapshot;
|
|
4232
4222
|
}
|
|
4233
4223
|
function ingestError$5(luvio, params, error, snapshotRefresh) {
|
|
@@ -4536,6 +4526,7 @@ function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4536
4526
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
4537
4527
|
}
|
|
4538
4528
|
}
|
|
4529
|
+
deepFreeze(snapshot.data);
|
|
4539
4530
|
return snapshot;
|
|
4540
4531
|
}
|
|
4541
4532
|
function ingestError$4(luvio, params, error, snapshotRefresh) {
|
|
@@ -4952,6 +4943,7 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
4952
4943
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
4953
4944
|
}
|
|
4954
4945
|
}
|
|
4946
|
+
deepFreeze(snapshot.data);
|
|
4955
4947
|
return snapshot;
|
|
4956
4948
|
}
|
|
4957
4949
|
function ingestError$3(luvio, params, error, snapshotRefresh) {
|
|
@@ -5250,6 +5242,7 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
5250
5242
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
5251
5243
|
}
|
|
5252
5244
|
}
|
|
5245
|
+
deepFreeze(snapshot.data);
|
|
5253
5246
|
return snapshot;
|
|
5254
5247
|
}
|
|
5255
5248
|
function ingestError$2(luvio, params, error, snapshotRefresh) {
|
|
@@ -6032,6 +6025,7 @@ function ingestSuccess$1(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
6032
6025
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
6033
6026
|
}
|
|
6034
6027
|
}
|
|
6028
|
+
deepFreeze(snapshot.data);
|
|
6035
6029
|
return snapshot;
|
|
6036
6030
|
}
|
|
6037
6031
|
function ingestError$1(luvio, params, error, snapshotRefresh) {
|
|
@@ -6472,6 +6466,7 @@ function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
6472
6466
|
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
6473
6467
|
}
|
|
6474
6468
|
}
|
|
6469
|
+
deepFreeze(snapshot.data);
|
|
6475
6470
|
return snapshot;
|
|
6476
6471
|
}
|
|
6477
6472
|
function ingestError(luvio, params, error, snapshotRefresh) {
|
|
@@ -6776,4 +6771,4 @@ withDefaultLuvio((luvio) => {
|
|
|
6776
6771
|
});
|
|
6777
6772
|
|
|
6778
6773
|
export { evaluateLearningItem, getFeaturedItemsRecommendedList, getFeaturedItemsRecommendedList_imperative, getFeaturedItemsRelatedList, getFeaturedItemsRelatedList_imperative, getFeedbackResult, getFeedbackResultNotifyChange, getFeedbackResult_imperative, getLearningConfig, getLearningConfig_imperative, getLearningItemProgress, getLearningItemProgress_imperative, getLearningItemsList, getLearningItemsList_imperative, getLearningModel, getLearningModel_imperative, getLearningPractice, getLearningPracticeNotifyChange, getLearningPractice_imperative, getLearningSearchDescribe, getLearningSearchDescribe_imperative, getLearningSearchResults, getLearningSearchResultsNotifyChange, getLearningSearchResults_imperative, getModule, getModuleNotifyChange, getModule_imperative, getTextLesson, getTextLessonNotifyChange, getTextLesson_imperative };
|
|
6779
|
-
// version: 1.134.
|
|
6774
|
+
// version: 1.134.8-c3d6d2cfc
|