@salesforce/lds-adapters-platform-learning-content 1.170.0 → 1.170.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 +87 -71
- package/dist/es/es2018/types/src/generated/resources/getLearningContentPlatformFeaturedItemListRecommended.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/resources/getLearningContentPlatformFeaturedItemListRelated.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/resources/getLearningContentPlatformLearningConfig.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/resources/getLearningContentPlatformLearningItemList.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/resources/getLearningContentPlatformLearningItemProgress.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/resources/getLearningContentPlatformLearningModelByLearningItemId.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/resources/getLearningContentPlatformLearningModuleByModuleId.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/resources/getLearningContentPlatformLearningPracticeByLearningItemId.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/resources/getLearningContentPlatformLearningTextlessonByLearningItemId.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/resources/postLearningContentPlatformLearningEvaluate.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/EvaluateLearningItemInputRepresentation.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/EvaluateLearningItemInputWrapperRepresentation.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/FeaturedItemRecommendedListRepresentation.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/FeaturedItemRelatedListRepresentation.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/FeaturedItemRepresentation.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/types/LearningAssignmentInputRepresentation.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/LearningAssignmentRepresentation.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/LearningConfigRepresentation.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/LearningItemAssignmentRepresentation.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/LearningItemListRepresentation.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/LearningItemProgressListRepresentation.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/LearningItemProgressRepresentation.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/types/LearningItemRepresentation.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/types/LearningModelInputRepresentation.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/LearningModelOutputRepresentation.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/types/LearningPracticeRepresentation.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/types/LearningTextLessonRepresentation.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/types/LearningTextLessonSectionRepresentation.d.ts +2 -2
- package/dist/es/es2018/types/src/generated/types/TrailheadModuleRepresentation.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/types/TrailheadModuleUnitRepresentation.d.ts +2 -2
- package/package.json +1 -1
- package/sfdc/index.js +103 -75
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For full license text, see the LICENSE.txt file
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { serializeStructuredKey,
|
|
7
|
+
import { serializeStructuredKey, deepFreeze, StoreKeyMap } from '@luvio/engine';
|
|
8
8
|
|
|
9
9
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
10
10
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
@@ -716,8 +716,7 @@ const ingest$b = function FeaturedItemRepresentationIngest(input, path, luvio, s
|
|
|
716
716
|
}
|
|
717
717
|
return createLink(key);
|
|
718
718
|
};
|
|
719
|
-
function getTypeCacheKeys$b(luvio, input, fullPathFactory) {
|
|
720
|
-
const rootKeySet = new StoreKeyMap();
|
|
719
|
+
function getTypeCacheKeys$b(rootKeySet, luvio, input, fullPathFactory) {
|
|
721
720
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
722
721
|
const rootKey = keyBuilderFromType$6(luvio, input);
|
|
723
722
|
rootKeySet.set(rootKey, {
|
|
@@ -725,7 +724,6 @@ function getTypeCacheKeys$b(luvio, input, fullPathFactory) {
|
|
|
725
724
|
representationName: RepresentationType$b,
|
|
726
725
|
mergeable: false
|
|
727
726
|
});
|
|
728
|
-
return rootKeySet;
|
|
729
727
|
}
|
|
730
728
|
|
|
731
729
|
const VERSION$d = "94c7194d9578589364c6efd021226634";
|
|
@@ -827,8 +825,7 @@ const ingest$a = function FeaturedItemRecommendedListRepresentationIngest(input,
|
|
|
827
825
|
}
|
|
828
826
|
return createLink(key);
|
|
829
827
|
};
|
|
830
|
-
function getTypeCacheKeys$a(luvio, input, fullPathFactory) {
|
|
831
|
-
const rootKeySet = new StoreKeyMap();
|
|
828
|
+
function getTypeCacheKeys$a(rootKeySet, luvio, input, fullPathFactory) {
|
|
832
829
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
833
830
|
const rootKey = fullPathFactory();
|
|
834
831
|
rootKeySet.set(rootKey, {
|
|
@@ -838,9 +835,8 @@ function getTypeCacheKeys$a(luvio, input, fullPathFactory) {
|
|
|
838
835
|
});
|
|
839
836
|
const input_recommendedList_length = input.recommendedList.length;
|
|
840
837
|
for (let i = 0; i < input_recommendedList_length; i++) {
|
|
841
|
-
|
|
838
|
+
getTypeCacheKeys$b(rootKeySet, luvio, input.recommendedList[i]);
|
|
842
839
|
}
|
|
843
|
-
return rootKeySet;
|
|
844
840
|
}
|
|
845
841
|
|
|
846
842
|
function select$m(luvio, params) {
|
|
@@ -849,8 +845,8 @@ function select$m(luvio, params) {
|
|
|
849
845
|
function keyBuilder$n(luvio, params) {
|
|
850
846
|
return keyPrefix + '::FeaturedItemRecommendedListRepresentation:(' + 'appId:' + params.queryParams.appId + ',' + 'context:' + params.queryParams.context + ')';
|
|
851
847
|
}
|
|
852
|
-
function getResponseCacheKeys$9(luvio, resourceParams, response) {
|
|
853
|
-
|
|
848
|
+
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
849
|
+
getTypeCacheKeys$a(storeKeyMap, luvio, response, () => keyBuilder$n(luvio, resourceParams));
|
|
854
850
|
}
|
|
855
851
|
function ingestSuccess$9(luvio, resourceParams, response, snapshotRefresh) {
|
|
856
852
|
const { body } = response;
|
|
@@ -956,7 +952,11 @@ function buildNetworkSnapshot$9(luvio, config, options) {
|
|
|
956
952
|
const request = createResourceRequest$9(resourceParams);
|
|
957
953
|
return luvio.dispatchResourceRequest(request, options)
|
|
958
954
|
.then((response) => {
|
|
959
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () =>
|
|
955
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$8(luvio, config, resourceParams, response), () => {
|
|
956
|
+
const cache = new StoreKeyMap();
|
|
957
|
+
getResponseCacheKeys$9(cache, luvio, resourceParams, response.body);
|
|
958
|
+
return cache;
|
|
959
|
+
});
|
|
960
960
|
}, (response) => {
|
|
961
961
|
return luvio.handleErrorResponse(() => onFetchResponseError$8(luvio, config, resourceParams, response));
|
|
962
962
|
});
|
|
@@ -1100,8 +1100,7 @@ const ingest$9 = function FeaturedItemRelatedListRepresentationIngest(input, pat
|
|
|
1100
1100
|
}
|
|
1101
1101
|
return createLink(key);
|
|
1102
1102
|
};
|
|
1103
|
-
function getTypeCacheKeys$9(luvio, input, fullPathFactory) {
|
|
1104
|
-
const rootKeySet = new StoreKeyMap();
|
|
1103
|
+
function getTypeCacheKeys$9(rootKeySet, luvio, input, fullPathFactory) {
|
|
1105
1104
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1106
1105
|
const rootKey = fullPathFactory();
|
|
1107
1106
|
rootKeySet.set(rootKey, {
|
|
@@ -1111,9 +1110,8 @@ function getTypeCacheKeys$9(luvio, input, fullPathFactory) {
|
|
|
1111
1110
|
});
|
|
1112
1111
|
const input_relatedList_length = input.relatedList.length;
|
|
1113
1112
|
for (let i = 0; i < input_relatedList_length; i++) {
|
|
1114
|
-
|
|
1113
|
+
getTypeCacheKeys$b(rootKeySet, luvio, input.relatedList[i]);
|
|
1115
1114
|
}
|
|
1116
|
-
return rootKeySet;
|
|
1117
1115
|
}
|
|
1118
1116
|
|
|
1119
1117
|
function select$k(luvio, params) {
|
|
@@ -1122,8 +1120,8 @@ function select$k(luvio, params) {
|
|
|
1122
1120
|
function keyBuilder$l(luvio, params) {
|
|
1123
1121
|
return keyPrefix + '::FeaturedItemRelatedListRepresentation:(' + 'appId:' + params.queryParams.appId + ',' + 'pageRef:' + params.queryParams.pageRef + ')';
|
|
1124
1122
|
}
|
|
1125
|
-
function getResponseCacheKeys$8(luvio, resourceParams, response) {
|
|
1126
|
-
|
|
1123
|
+
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
1124
|
+
getTypeCacheKeys$9(storeKeyMap, luvio, response, () => keyBuilder$l(luvio, resourceParams));
|
|
1127
1125
|
}
|
|
1128
1126
|
function ingestSuccess$8(luvio, resourceParams, response, snapshotRefresh) {
|
|
1129
1127
|
const { body } = response;
|
|
@@ -1229,7 +1227,11 @@ function buildNetworkSnapshot$8(luvio, config, options) {
|
|
|
1229
1227
|
const request = createResourceRequest$8(resourceParams);
|
|
1230
1228
|
return luvio.dispatchResourceRequest(request, options)
|
|
1231
1229
|
.then((response) => {
|
|
1232
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () =>
|
|
1230
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$7(luvio, config, resourceParams, response), () => {
|
|
1231
|
+
const cache = new StoreKeyMap();
|
|
1232
|
+
getResponseCacheKeys$8(cache, luvio, resourceParams, response.body);
|
|
1233
|
+
return cache;
|
|
1234
|
+
});
|
|
1233
1235
|
}, (response) => {
|
|
1234
1236
|
return luvio.handleErrorResponse(() => onFetchResponseError$7(luvio, config, resourceParams, response));
|
|
1235
1237
|
});
|
|
@@ -1371,8 +1373,7 @@ const ingest$8 = function LearningConfigRepresentationIngest(input, path, luvio,
|
|
|
1371
1373
|
}
|
|
1372
1374
|
return createLink(key);
|
|
1373
1375
|
};
|
|
1374
|
-
function getTypeCacheKeys$8(luvio, input, fullPathFactory) {
|
|
1375
|
-
const rootKeySet = new StoreKeyMap();
|
|
1376
|
+
function getTypeCacheKeys$8(rootKeySet, luvio, input, fullPathFactory) {
|
|
1376
1377
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1377
1378
|
const rootKey = fullPathFactory();
|
|
1378
1379
|
rootKeySet.set(rootKey, {
|
|
@@ -1380,7 +1381,6 @@ function getTypeCacheKeys$8(luvio, input, fullPathFactory) {
|
|
|
1380
1381
|
representationName: RepresentationType$8,
|
|
1381
1382
|
mergeable: false
|
|
1382
1383
|
});
|
|
1383
|
-
return rootKeySet;
|
|
1384
1384
|
}
|
|
1385
1385
|
|
|
1386
1386
|
function select$i(luvio, params) {
|
|
@@ -1389,8 +1389,8 @@ function select$i(luvio, params) {
|
|
|
1389
1389
|
function keyBuilder$j(luvio, params) {
|
|
1390
1390
|
return keyPrefix + '::LearningConfigRepresentation:(' + ')';
|
|
1391
1391
|
}
|
|
1392
|
-
function getResponseCacheKeys$7(luvio, resourceParams, response) {
|
|
1393
|
-
|
|
1392
|
+
function getResponseCacheKeys$7(storeKeyMap, luvio, resourceParams, response) {
|
|
1393
|
+
getTypeCacheKeys$8(storeKeyMap, luvio, response, () => keyBuilder$j());
|
|
1394
1394
|
}
|
|
1395
1395
|
function ingestSuccess$7(luvio, resourceParams, response, snapshotRefresh) {
|
|
1396
1396
|
const { body } = response;
|
|
@@ -1482,7 +1482,11 @@ function buildNetworkSnapshot$7(luvio, config, options) {
|
|
|
1482
1482
|
const request = createResourceRequest$7();
|
|
1483
1483
|
return luvio.dispatchResourceRequest(request, options)
|
|
1484
1484
|
.then((response) => {
|
|
1485
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () =>
|
|
1485
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$6(luvio, config, resourceParams, response), () => {
|
|
1486
|
+
const cache = new StoreKeyMap();
|
|
1487
|
+
getResponseCacheKeys$7(cache, luvio, resourceParams, response.body);
|
|
1488
|
+
return cache;
|
|
1489
|
+
});
|
|
1486
1490
|
}, (response) => {
|
|
1487
1491
|
return luvio.handleErrorResponse(() => onFetchResponseError$6(luvio, config, resourceParams, response));
|
|
1488
1492
|
});
|
|
@@ -1987,8 +1991,7 @@ const ingest$7 = function LearningItemRepresentationIngest(input, path, luvio, s
|
|
|
1987
1991
|
}
|
|
1988
1992
|
return createLink(key);
|
|
1989
1993
|
};
|
|
1990
|
-
function getTypeCacheKeys$7(luvio, input, fullPathFactory) {
|
|
1991
|
-
const rootKeySet = new StoreKeyMap();
|
|
1994
|
+
function getTypeCacheKeys$7(rootKeySet, luvio, input, fullPathFactory) {
|
|
1992
1995
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
1993
1996
|
const rootKey = keyBuilderFromType$5(luvio, input);
|
|
1994
1997
|
rootKeySet.set(rootKey, {
|
|
@@ -1996,7 +1999,6 @@ function getTypeCacheKeys$7(luvio, input, fullPathFactory) {
|
|
|
1996
1999
|
representationName: RepresentationType$7,
|
|
1997
2000
|
mergeable: false
|
|
1998
2001
|
});
|
|
1999
|
-
return rootKeySet;
|
|
2000
2002
|
}
|
|
2001
2003
|
|
|
2002
2004
|
const VERSION$9 = "cd4c27f064c3139aef14a6ef22627c0f";
|
|
@@ -2098,8 +2100,7 @@ const ingest$6 = function LearningItemListRepresentationIngest(input, path, luvi
|
|
|
2098
2100
|
}
|
|
2099
2101
|
return createLink(key);
|
|
2100
2102
|
};
|
|
2101
|
-
function getTypeCacheKeys$6(luvio, input, fullPathFactory) {
|
|
2102
|
-
const rootKeySet = new StoreKeyMap();
|
|
2103
|
+
function getTypeCacheKeys$6(rootKeySet, luvio, input, fullPathFactory) {
|
|
2103
2104
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2104
2105
|
const rootKey = fullPathFactory();
|
|
2105
2106
|
rootKeySet.set(rootKey, {
|
|
@@ -2109,9 +2110,8 @@ function getTypeCacheKeys$6(luvio, input, fullPathFactory) {
|
|
|
2109
2110
|
});
|
|
2110
2111
|
const input_list_length = input.list.length;
|
|
2111
2112
|
for (let i = 0; i < input_list_length; i++) {
|
|
2112
|
-
|
|
2113
|
+
getTypeCacheKeys$7(rootKeySet, luvio, input.list[i]);
|
|
2113
2114
|
}
|
|
2114
|
-
return rootKeySet;
|
|
2115
2115
|
}
|
|
2116
2116
|
|
|
2117
2117
|
function select$f(luvio, params) {
|
|
@@ -2120,8 +2120,8 @@ function select$f(luvio, params) {
|
|
|
2120
2120
|
function keyBuilder$g(luvio, params) {
|
|
2121
2121
|
return keyPrefix + '::LearningItemListRepresentation:(' + 'learningItemIds:' + params.queryParams.learningItemIds + ')';
|
|
2122
2122
|
}
|
|
2123
|
-
function getResponseCacheKeys$6(luvio, resourceParams, response) {
|
|
2124
|
-
|
|
2123
|
+
function getResponseCacheKeys$6(storeKeyMap, luvio, resourceParams, response) {
|
|
2124
|
+
getTypeCacheKeys$6(storeKeyMap, luvio, response, () => keyBuilder$g(luvio, resourceParams));
|
|
2125
2125
|
}
|
|
2126
2126
|
function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
|
|
2127
2127
|
const { body } = response;
|
|
@@ -2230,7 +2230,11 @@ function buildNetworkSnapshot$6(luvio, config, options) {
|
|
|
2230
2230
|
const request = createResourceRequest$6(resourceParams);
|
|
2231
2231
|
return luvio.dispatchResourceRequest(request, options)
|
|
2232
2232
|
.then((response) => {
|
|
2233
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () =>
|
|
2233
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
|
|
2234
|
+
const cache = new StoreKeyMap();
|
|
2235
|
+
getResponseCacheKeys$6(cache, luvio, resourceParams, response.body);
|
|
2236
|
+
return cache;
|
|
2237
|
+
});
|
|
2234
2238
|
}, (response) => {
|
|
2235
2239
|
return luvio.handleErrorResponse(() => onFetchResponseError$5(luvio, config, resourceParams, response));
|
|
2236
2240
|
});
|
|
@@ -2438,8 +2442,7 @@ const ingest$5 = function LearningItemProgressRepresentationIngest(input, path,
|
|
|
2438
2442
|
}
|
|
2439
2443
|
return createLink(key);
|
|
2440
2444
|
};
|
|
2441
|
-
function getTypeCacheKeys$5(luvio, input, fullPathFactory) {
|
|
2442
|
-
const rootKeySet = new StoreKeyMap();
|
|
2445
|
+
function getTypeCacheKeys$5(rootKeySet, luvio, input, fullPathFactory) {
|
|
2443
2446
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2444
2447
|
const rootKey = keyBuilderFromType$4(luvio, input);
|
|
2445
2448
|
rootKeySet.set(rootKey, {
|
|
@@ -2447,7 +2450,6 @@ function getTypeCacheKeys$5(luvio, input, fullPathFactory) {
|
|
|
2447
2450
|
representationName: RepresentationType$5,
|
|
2448
2451
|
mergeable: false
|
|
2449
2452
|
});
|
|
2450
|
-
return rootKeySet;
|
|
2451
2453
|
}
|
|
2452
2454
|
|
|
2453
2455
|
const VERSION$7 = "1292f1a549c777c6586cca649e823737";
|
|
@@ -2549,8 +2551,7 @@ const ingest$4 = function LearningItemProgressListRepresentationIngest(input, pa
|
|
|
2549
2551
|
}
|
|
2550
2552
|
return createLink(key);
|
|
2551
2553
|
};
|
|
2552
|
-
function getTypeCacheKeys$4(luvio, input, fullPathFactory) {
|
|
2553
|
-
const rootKeySet = new StoreKeyMap();
|
|
2554
|
+
function getTypeCacheKeys$4(rootKeySet, luvio, input, fullPathFactory) {
|
|
2554
2555
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
2555
2556
|
const rootKey = fullPathFactory();
|
|
2556
2557
|
rootKeySet.set(rootKey, {
|
|
@@ -2560,9 +2561,8 @@ function getTypeCacheKeys$4(luvio, input, fullPathFactory) {
|
|
|
2560
2561
|
});
|
|
2561
2562
|
const input_list_length = input.list.length;
|
|
2562
2563
|
for (let i = 0; i < input_list_length; i++) {
|
|
2563
|
-
|
|
2564
|
+
getTypeCacheKeys$5(rootKeySet, luvio, input.list[i]);
|
|
2564
2565
|
}
|
|
2565
|
-
return rootKeySet;
|
|
2566
2566
|
}
|
|
2567
2567
|
|
|
2568
2568
|
function select$c(luvio, params) {
|
|
@@ -2571,8 +2571,8 @@ function select$c(luvio, params) {
|
|
|
2571
2571
|
function keyBuilder$d(luvio, params) {
|
|
2572
2572
|
return keyPrefix + '::LearningItemProgressListRepresentation:(' + 'learningItemIds:' + params.queryParams.learningItemIds + ')';
|
|
2573
2573
|
}
|
|
2574
|
-
function getResponseCacheKeys$5(luvio, resourceParams, response) {
|
|
2575
|
-
|
|
2574
|
+
function getResponseCacheKeys$5(storeKeyMap, luvio, resourceParams, response) {
|
|
2575
|
+
getTypeCacheKeys$4(storeKeyMap, luvio, response, () => keyBuilder$d(luvio, resourceParams));
|
|
2576
2576
|
}
|
|
2577
2577
|
function ingestSuccess$5(luvio, resourceParams, response, snapshotRefresh) {
|
|
2578
2578
|
const { body } = response;
|
|
@@ -2681,7 +2681,11 @@ function buildNetworkSnapshot$5(luvio, config, options) {
|
|
|
2681
2681
|
const request = createResourceRequest$5(resourceParams);
|
|
2682
2682
|
return luvio.dispatchResourceRequest(request, options)
|
|
2683
2683
|
.then((response) => {
|
|
2684
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () =>
|
|
2684
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$4(luvio, config, resourceParams, response), () => {
|
|
2685
|
+
const cache = new StoreKeyMap();
|
|
2686
|
+
getResponseCacheKeys$5(cache, luvio, resourceParams, response.body);
|
|
2687
|
+
return cache;
|
|
2688
|
+
});
|
|
2685
2689
|
}, (response) => {
|
|
2686
2690
|
return luvio.handleErrorResponse(() => onFetchResponseError$4(luvio, config, resourceParams, response));
|
|
2687
2691
|
});
|
|
@@ -3537,8 +3541,7 @@ const ingest$3 = function LearningModelOutputRepresentationIngest(input, path, l
|
|
|
3537
3541
|
}
|
|
3538
3542
|
return createLink(key);
|
|
3539
3543
|
};
|
|
3540
|
-
function getTypeCacheKeys$3(luvio, input, fullPathFactory) {
|
|
3541
|
-
const rootKeySet = new StoreKeyMap();
|
|
3544
|
+
function getTypeCacheKeys$3(rootKeySet, luvio, input, fullPathFactory) {
|
|
3542
3545
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
3543
3546
|
const rootKey = keyBuilderFromType$3(luvio, input);
|
|
3544
3547
|
rootKeySet.set(rootKey, {
|
|
@@ -3546,7 +3549,6 @@ function getTypeCacheKeys$3(luvio, input, fullPathFactory) {
|
|
|
3546
3549
|
representationName: RepresentationType$3,
|
|
3547
3550
|
mergeable: false
|
|
3548
3551
|
});
|
|
3549
|
-
return rootKeySet;
|
|
3550
3552
|
}
|
|
3551
3553
|
|
|
3552
3554
|
function select$9(luvio, params) {
|
|
@@ -3557,8 +3559,8 @@ function keyBuilder$a(luvio, params) {
|
|
|
3557
3559
|
learning_item_id: params.urlParams.learningItemId
|
|
3558
3560
|
});
|
|
3559
3561
|
}
|
|
3560
|
-
function getResponseCacheKeys$4(luvio, resourceParams, response) {
|
|
3561
|
-
|
|
3562
|
+
function getResponseCacheKeys$4(storeKeyMap, luvio, resourceParams, response) {
|
|
3563
|
+
getTypeCacheKeys$3(storeKeyMap, luvio, response);
|
|
3562
3564
|
}
|
|
3563
3565
|
function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
|
|
3564
3566
|
const { body } = response;
|
|
@@ -3666,7 +3668,11 @@ function buildNetworkSnapshot$4(luvio, config, options) {
|
|
|
3666
3668
|
const request = createResourceRequest$4(resourceParams);
|
|
3667
3669
|
return luvio.dispatchResourceRequest(request, options)
|
|
3668
3670
|
.then((response) => {
|
|
3669
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () =>
|
|
3671
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$3(luvio, config, resourceParams, response), () => {
|
|
3672
|
+
const cache = new StoreKeyMap();
|
|
3673
|
+
getResponseCacheKeys$4(cache, luvio, resourceParams, response.body);
|
|
3674
|
+
return cache;
|
|
3675
|
+
});
|
|
3670
3676
|
}, (response) => {
|
|
3671
3677
|
return luvio.handleErrorResponse(() => onFetchResponseError$3(luvio, config, resourceParams, response));
|
|
3672
3678
|
});
|
|
@@ -4271,8 +4277,7 @@ const ingest$2 = function TrailheadModuleRepresentationIngest(input, path, luvio
|
|
|
4271
4277
|
}
|
|
4272
4278
|
return createLink(key);
|
|
4273
4279
|
};
|
|
4274
|
-
function getTypeCacheKeys$2(luvio, input, fullPathFactory) {
|
|
4275
|
-
const rootKeySet = new StoreKeyMap();
|
|
4280
|
+
function getTypeCacheKeys$2(rootKeySet, luvio, input, fullPathFactory) {
|
|
4276
4281
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4277
4282
|
const rootKey = keyBuilderFromType$2(luvio, input);
|
|
4278
4283
|
rootKeySet.set(rootKey, {
|
|
@@ -4280,7 +4285,6 @@ function getTypeCacheKeys$2(luvio, input, fullPathFactory) {
|
|
|
4280
4285
|
representationName: RepresentationType$2,
|
|
4281
4286
|
mergeable: false
|
|
4282
4287
|
});
|
|
4283
|
-
return rootKeySet;
|
|
4284
4288
|
}
|
|
4285
4289
|
|
|
4286
4290
|
function select$6(luvio, params) {
|
|
@@ -4291,8 +4295,8 @@ function keyBuilder$7(luvio, params) {
|
|
|
4291
4295
|
relatedId: params.urlParams.moduleId
|
|
4292
4296
|
});
|
|
4293
4297
|
}
|
|
4294
|
-
function getResponseCacheKeys$3(luvio, resourceParams, response) {
|
|
4295
|
-
|
|
4298
|
+
function getResponseCacheKeys$3(storeKeyMap, luvio, resourceParams, response) {
|
|
4299
|
+
getTypeCacheKeys$2(storeKeyMap, luvio, response);
|
|
4296
4300
|
}
|
|
4297
4301
|
function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
|
|
4298
4302
|
const { body } = response;
|
|
@@ -4400,7 +4404,11 @@ function buildNetworkSnapshot$3(luvio, config, options) {
|
|
|
4400
4404
|
const request = createResourceRequest$3(resourceParams);
|
|
4401
4405
|
return luvio.dispatchResourceRequest(request, options)
|
|
4402
4406
|
.then((response) => {
|
|
4403
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () =>
|
|
4407
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
4408
|
+
const cache = new StoreKeyMap();
|
|
4409
|
+
getResponseCacheKeys$3(cache, luvio, resourceParams, response.body);
|
|
4410
|
+
return cache;
|
|
4411
|
+
});
|
|
4404
4412
|
}, (response) => {
|
|
4405
4413
|
return luvio.handleErrorResponse(() => onFetchResponseError$2(luvio, config, resourceParams, response));
|
|
4406
4414
|
});
|
|
@@ -4580,8 +4588,7 @@ const ingest$1 = function LearningPracticeRepresentationIngest(input, path, luvi
|
|
|
4580
4588
|
}
|
|
4581
4589
|
return createLink(key);
|
|
4582
4590
|
};
|
|
4583
|
-
function getTypeCacheKeys$1(luvio, input, fullPathFactory) {
|
|
4584
|
-
const rootKeySet = new StoreKeyMap();
|
|
4591
|
+
function getTypeCacheKeys$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
4585
4592
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
4586
4593
|
const rootKey = keyBuilderFromType$1(luvio, input);
|
|
4587
4594
|
rootKeySet.set(rootKey, {
|
|
@@ -4589,7 +4596,6 @@ function getTypeCacheKeys$1(luvio, input, fullPathFactory) {
|
|
|
4589
4596
|
representationName: RepresentationType$1,
|
|
4590
4597
|
mergeable: false
|
|
4591
4598
|
});
|
|
4592
|
-
return rootKeySet;
|
|
4593
4599
|
}
|
|
4594
4600
|
|
|
4595
4601
|
function select$4(luvio, params) {
|
|
@@ -4600,8 +4606,8 @@ function keyBuilder$4(luvio, params) {
|
|
|
4600
4606
|
learning_item_id: params.urlParams.learningItemId
|
|
4601
4607
|
});
|
|
4602
4608
|
}
|
|
4603
|
-
function getResponseCacheKeys$2(luvio, resourceParams, response) {
|
|
4604
|
-
|
|
4609
|
+
function getResponseCacheKeys$2(storeKeyMap, luvio, resourceParams, response) {
|
|
4610
|
+
getTypeCacheKeys$1(storeKeyMap, luvio, response);
|
|
4605
4611
|
}
|
|
4606
4612
|
function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
|
|
4607
4613
|
const { body } = response;
|
|
@@ -4709,7 +4715,11 @@ function buildNetworkSnapshot$2(luvio, config, options) {
|
|
|
4709
4715
|
const request = createResourceRequest$2(resourceParams);
|
|
4710
4716
|
return luvio.dispatchResourceRequest(request, options)
|
|
4711
4717
|
.then((response) => {
|
|
4712
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () =>
|
|
4718
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
4719
|
+
const cache = new StoreKeyMap();
|
|
4720
|
+
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
4721
|
+
return cache;
|
|
4722
|
+
});
|
|
4713
4723
|
}, (response) => {
|
|
4714
4724
|
return luvio.handleErrorResponse(() => onFetchResponseError$1(luvio, config, resourceParams, response));
|
|
4715
4725
|
});
|
|
@@ -4787,8 +4797,8 @@ function validate$2(obj, path = 'EvaluateLearningItemInputRepresentation') {
|
|
|
4787
4797
|
function select$3(luvio, params) {
|
|
4788
4798
|
return select$e();
|
|
4789
4799
|
}
|
|
4790
|
-
function getResponseCacheKeys$1(luvio, resourceParams, response) {
|
|
4791
|
-
|
|
4800
|
+
function getResponseCacheKeys$1(storeKeyMap, luvio, resourceParams, response) {
|
|
4801
|
+
getTypeCacheKeys$5(storeKeyMap, luvio, response);
|
|
4792
4802
|
}
|
|
4793
4803
|
function ingestSuccess$1(luvio, resourceParams, response) {
|
|
4794
4804
|
const { body } = response;
|
|
@@ -4866,7 +4876,11 @@ function buildNetworkSnapshot$1(luvio, config, options) {
|
|
|
4866
4876
|
return luvio.handleSuccessResponse(() => {
|
|
4867
4877
|
const snapshot = ingestSuccess$1(luvio, resourceParams, response);
|
|
4868
4878
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
4869
|
-
}, () =>
|
|
4879
|
+
}, () => {
|
|
4880
|
+
const cache = new StoreKeyMap();
|
|
4881
|
+
getResponseCacheKeys$1(cache, luvio, resourceParams, response.body);
|
|
4882
|
+
return cache;
|
|
4883
|
+
});
|
|
4870
4884
|
}, (response) => {
|
|
4871
4885
|
deepFreeze(response);
|
|
4872
4886
|
throw response;
|
|
@@ -5113,8 +5127,7 @@ const ingest = function LearningTextLessonRepresentationIngest(input, path, luvi
|
|
|
5113
5127
|
}
|
|
5114
5128
|
return createLink(key);
|
|
5115
5129
|
};
|
|
5116
|
-
function getTypeCacheKeys(luvio, input, fullPathFactory) {
|
|
5117
|
-
const rootKeySet = new StoreKeyMap();
|
|
5130
|
+
function getTypeCacheKeys(rootKeySet, luvio, input, fullPathFactory) {
|
|
5118
5131
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5119
5132
|
const rootKey = keyBuilderFromType(luvio, input);
|
|
5120
5133
|
rootKeySet.set(rootKey, {
|
|
@@ -5122,7 +5135,6 @@ function getTypeCacheKeys(luvio, input, fullPathFactory) {
|
|
|
5122
5135
|
representationName: RepresentationType,
|
|
5123
5136
|
mergeable: false
|
|
5124
5137
|
});
|
|
5125
|
-
return rootKeySet;
|
|
5126
5138
|
}
|
|
5127
5139
|
|
|
5128
5140
|
function select(luvio, params) {
|
|
@@ -5133,8 +5145,8 @@ function keyBuilder$1(luvio, params) {
|
|
|
5133
5145
|
learning_item_id: params.urlParams.learningItemId
|
|
5134
5146
|
});
|
|
5135
5147
|
}
|
|
5136
|
-
function getResponseCacheKeys(luvio, resourceParams, response) {
|
|
5137
|
-
|
|
5148
|
+
function getResponseCacheKeys(storeKeyMap, luvio, resourceParams, response) {
|
|
5149
|
+
getTypeCacheKeys(storeKeyMap, luvio, response);
|
|
5138
5150
|
}
|
|
5139
5151
|
function ingestSuccess(luvio, resourceParams, response, snapshotRefresh) {
|
|
5140
5152
|
const { body } = response;
|
|
@@ -5242,7 +5254,11 @@ function buildNetworkSnapshot(luvio, config, options) {
|
|
|
5242
5254
|
const request = createResourceRequest(resourceParams);
|
|
5243
5255
|
return luvio.dispatchResourceRequest(request, options)
|
|
5244
5256
|
.then((response) => {
|
|
5245
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () =>
|
|
5257
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess(luvio, config, resourceParams, response), () => {
|
|
5258
|
+
const cache = new StoreKeyMap();
|
|
5259
|
+
getResponseCacheKeys(cache, luvio, resourceParams, response.body);
|
|
5260
|
+
return cache;
|
|
5261
|
+
});
|
|
5246
5262
|
}, (response) => {
|
|
5247
5263
|
return luvio.handleErrorResponse(() => onFetchResponseError(luvio, config, resourceParams, response));
|
|
5248
5264
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata,
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, 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
2
|
import { FeaturedItemRecommendedListRepresentation as types_FeaturedItemRecommendedListRepresentation_FeaturedItemRecommendedListRepresentation } from '../types/FeaturedItemRecommendedListRepresentation';
|
|
3
3
|
export interface ResourceRequestConfig {
|
|
4
4
|
queryParams: {
|
|
@@ -9,7 +9,7 @@ export interface ResourceRequestConfig {
|
|
|
9
9
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
10
10
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
11
11
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
12
|
-
export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_FeaturedItemRecommendedListRepresentation_FeaturedItemRecommendedListRepresentation):
|
|
12
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_FeaturedItemRecommendedListRepresentation_FeaturedItemRecommendedListRepresentation): void;
|
|
13
13
|
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_FeaturedItemRecommendedListRepresentation_FeaturedItemRecommendedListRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_FeaturedItemRecommendedListRepresentation_FeaturedItemRecommendedListRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_FeaturedItemRecommendedListRepresentation_FeaturedItemRecommendedListRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_FeaturedItemRecommendedListRepresentation_FeaturedItemRecommendedListRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_FeaturedItemRecommendedListRepresentation_FeaturedItemRecommendedListRepresentation, any>;
|
|
14
14
|
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_FeaturedItemRecommendedListRepresentation_FeaturedItemRecommendedListRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
15
15
|
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata,
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, 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
2
|
import { FeaturedItemRelatedListRepresentation as types_FeaturedItemRelatedListRepresentation_FeaturedItemRelatedListRepresentation } from '../types/FeaturedItemRelatedListRepresentation';
|
|
3
3
|
export interface ResourceRequestConfig {
|
|
4
4
|
queryParams: {
|
|
@@ -9,7 +9,7 @@ export interface ResourceRequestConfig {
|
|
|
9
9
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
10
10
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
11
11
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
12
|
-
export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_FeaturedItemRelatedListRepresentation_FeaturedItemRelatedListRepresentation):
|
|
12
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_FeaturedItemRelatedListRepresentation_FeaturedItemRelatedListRepresentation): void;
|
|
13
13
|
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_FeaturedItemRelatedListRepresentation_FeaturedItemRelatedListRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_FeaturedItemRelatedListRepresentation_FeaturedItemRelatedListRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_FeaturedItemRelatedListRepresentation_FeaturedItemRelatedListRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_FeaturedItemRelatedListRepresentation_FeaturedItemRelatedListRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_FeaturedItemRelatedListRepresentation_FeaturedItemRelatedListRepresentation, any>;
|
|
14
14
|
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_FeaturedItemRelatedListRepresentation_FeaturedItemRelatedListRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
15
15
|
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
package/dist/es/es2018/types/src/generated/resources/getLearningContentPlatformLearningConfig.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata,
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, 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
2
|
import { LearningConfigRepresentation as types_LearningConfigRepresentation_LearningConfigRepresentation } from '../types/LearningConfigRepresentation';
|
|
3
3
|
export interface ResourceRequestConfig {
|
|
4
4
|
}
|
|
5
5
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
6
6
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
7
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_LearningConfigRepresentation_LearningConfigRepresentation):
|
|
8
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_LearningConfigRepresentation_LearningConfigRepresentation): void;
|
|
9
9
|
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_LearningConfigRepresentation_LearningConfigRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_LearningConfigRepresentation_LearningConfigRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_LearningConfigRepresentation_LearningConfigRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_LearningConfigRepresentation_LearningConfigRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_LearningConfigRepresentation_LearningConfigRepresentation, any>;
|
|
10
10
|
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_LearningConfigRepresentation_LearningConfigRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
11
11
|
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
package/dist/es/es2018/types/src/generated/resources/getLearningContentPlatformLearningItemList.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata,
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, 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
2
|
import { LearningItemListRepresentation as types_LearningItemListRepresentation_LearningItemListRepresentation } from '../types/LearningItemListRepresentation';
|
|
3
3
|
export interface ResourceRequestConfig {
|
|
4
4
|
queryParams: {
|
|
@@ -8,7 +8,7 @@ export interface ResourceRequestConfig {
|
|
|
8
8
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
9
9
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
10
10
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
-
export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_LearningItemListRepresentation_LearningItemListRepresentation):
|
|
11
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_LearningItemListRepresentation_LearningItemListRepresentation): void;
|
|
12
12
|
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_LearningItemListRepresentation_LearningItemListRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_LearningItemListRepresentation_LearningItemListRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_LearningItemListRepresentation_LearningItemListRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_LearningItemListRepresentation_LearningItemListRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_LearningItemListRepresentation_LearningItemListRepresentation, any>;
|
|
13
13
|
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_LearningItemListRepresentation_LearningItemListRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
14
14
|
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata,
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, 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
2
|
import { LearningItemProgressListRepresentation as types_LearningItemProgressListRepresentation_LearningItemProgressListRepresentation } from '../types/LearningItemProgressListRepresentation';
|
|
3
3
|
export interface ResourceRequestConfig {
|
|
4
4
|
queryParams: {
|
|
@@ -8,7 +8,7 @@ export interface ResourceRequestConfig {
|
|
|
8
8
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
9
9
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
10
10
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
-
export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_LearningItemProgressListRepresentation_LearningItemProgressListRepresentation):
|
|
11
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_LearningItemProgressListRepresentation_LearningItemProgressListRepresentation): void;
|
|
12
12
|
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_LearningItemProgressListRepresentation_LearningItemProgressListRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_LearningItemProgressListRepresentation_LearningItemProgressListRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_LearningItemProgressListRepresentation_LearningItemProgressListRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_LearningItemProgressListRepresentation_LearningItemProgressListRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_LearningItemProgressListRepresentation_LearningItemProgressListRepresentation, any>;
|
|
13
13
|
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_LearningItemProgressListRepresentation_LearningItemProgressListRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
14
14
|
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata,
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, 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
2
|
import { LearningModelOutputRepresentation as types_LearningModelOutputRepresentation_LearningModelOutputRepresentation } from '../types/LearningModelOutputRepresentation';
|
|
3
3
|
export interface ResourceRequestConfig {
|
|
4
4
|
urlParams: {
|
|
@@ -8,7 +8,7 @@ export interface ResourceRequestConfig {
|
|
|
8
8
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
9
9
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
10
10
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
-
export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_LearningModelOutputRepresentation_LearningModelOutputRepresentation):
|
|
11
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_LearningModelOutputRepresentation_LearningModelOutputRepresentation): void;
|
|
12
12
|
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_LearningModelOutputRepresentation_LearningModelOutputRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_LearningModelOutputRepresentation_LearningModelOutputRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_LearningModelOutputRepresentation_LearningModelOutputRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_LearningModelOutputRepresentation_LearningModelOutputRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_LearningModelOutputRepresentation_LearningModelOutputRepresentation, any>;
|
|
13
13
|
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_LearningModelOutputRepresentation_LearningModelOutputRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
14
14
|
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata,
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, 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
2
|
import { TrailheadModuleRepresentation as types_TrailheadModuleRepresentation_TrailheadModuleRepresentation } from '../types/TrailheadModuleRepresentation';
|
|
3
3
|
export interface ResourceRequestConfig {
|
|
4
4
|
urlParams: {
|
|
@@ -8,7 +8,7 @@ export interface ResourceRequestConfig {
|
|
|
8
8
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
9
9
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
10
10
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
-
export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_TrailheadModuleRepresentation_TrailheadModuleRepresentation):
|
|
11
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_TrailheadModuleRepresentation_TrailheadModuleRepresentation): void;
|
|
12
12
|
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_TrailheadModuleRepresentation_TrailheadModuleRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_TrailheadModuleRepresentation_TrailheadModuleRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_TrailheadModuleRepresentation_TrailheadModuleRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_TrailheadModuleRepresentation_TrailheadModuleRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_TrailheadModuleRepresentation_TrailheadModuleRepresentation, any>;
|
|
13
13
|
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_TrailheadModuleRepresentation_TrailheadModuleRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
14
14
|
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata,
|
|
1
|
+
import { Luvio as $64$luvio_engine_Luvio, Fragment as $64$luvio_engine_Fragment, NormalizedKeyMetadata as $64$luvio_engine_NormalizedKeyMetadata, 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
2
|
import { LearningPracticeRepresentation as types_LearningPracticeRepresentation_LearningPracticeRepresentation } from '../types/LearningPracticeRepresentation';
|
|
3
3
|
export interface ResourceRequestConfig {
|
|
4
4
|
urlParams: {
|
|
@@ -8,7 +8,7 @@ export interface ResourceRequestConfig {
|
|
|
8
8
|
export declare function select(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_Fragment;
|
|
9
9
|
export declare function keyBuilder(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): string;
|
|
10
10
|
export declare function keyBuilder_StructuredKey(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig): $64$luvio_engine_NormalizedKeyMetadata;
|
|
11
|
-
export declare function getResponseCacheKeys(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_LearningPracticeRepresentation_LearningPracticeRepresentation):
|
|
11
|
+
export declare function getResponseCacheKeys(storeKeyMap: any, luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: types_LearningPracticeRepresentation_LearningPracticeRepresentation): void;
|
|
12
12
|
export declare function ingestSuccess(luvio: $64$luvio_engine_Luvio, resourceParams: ResourceRequestConfig, response: $64$luvio_engine_FetchResponse<types_LearningPracticeRepresentation_LearningPracticeRepresentation>, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_LearningPracticeRepresentation_LearningPracticeRepresentation>): $64$luvio_engine_FulfilledSnapshot<types_LearningPracticeRepresentation_LearningPracticeRepresentation, {}> | $64$luvio_engine_StaleSnapshot<types_LearningPracticeRepresentation_LearningPracticeRepresentation, {}> | $64$luvio_engine_PendingSnapshot<types_LearningPracticeRepresentation_LearningPracticeRepresentation, any>;
|
|
13
13
|
export declare function ingestError(luvio: $64$luvio_engine_Luvio, params: ResourceRequestConfig, error: $64$luvio_engine_ErrorResponse, snapshotRefresh?: $64$luvio_engine_SnapshotRefresh<types_LearningPracticeRepresentation_LearningPracticeRepresentation>): $64$luvio_engine_ErrorSnapshot;
|
|
14
14
|
export declare function createResourceRequest(config: ResourceRequestConfig): $64$luvio_engine_ResourceRequest;
|