@salesforce/lds-adapters-uiapi 1.234.0 → 1.236.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/es2018/types/src/__performance__/utils/sqliteDurableStore.d.ts +3 -1
- package/dist/es/es2018/types/src/generated/adapters/getRelatedListRecordsBatch.d.ts +7 -7
- package/dist/es/es2018/types/src/generated/adapters/getRelatedListsActions.d.ts +7 -7
- package/dist/es/es2018/types/src/generated/fields/types/BatchRepresentation.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/fields/types/CompositeRelatedListRecordCollectionResultRepresentation.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/fields/types/KeywordSearchResultsRepresentation.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/fields/types/ListRecordCollectionRepresentation.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/fields/types/ListUiRepresentation.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/fields/types/LookupValuesRepresentation.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/fields/types/RecordCollectionRepresentation.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/fields/types/RelatedListRecordCollectionBatchRepresentation.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/fields/types/RelatedListRecordCollectionRepresentation.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/fields/types/SearchResultCollectionRepresentation.d.ts +12 -0
- package/dist/es/es2018/types/src/generated/graphql/types/type-util.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/resources/getUiApiActionsRecordRelatedListBatchByRecordIdsAndRelatedListIds.d.ts +1 -1
- package/dist/es/es2018/types/src/generated/resources/postUiApiActionsRecordRelatedListBatchByRecordIds.d.ts +5 -5
- package/dist/es/es2018/types/src/generated/resources/postUiApiRelatedListRecordsBatchByParentRecordId.d.ts +5 -5
- package/dist/es/es2018/types/src/generated/types/CompositeActionRelatedListsCollectionResultRepresentation.d.ts +10 -4
- package/dist/es/es2018/types/src/generated/types/CompositeRelatedListRecordCollectionResultRepresentation.d.ts +10 -4
- package/dist/es/es2018/types/src/main.d.ts +3 -2
- package/dist/es/es2018/types/src/overrides/resources/postUiApiRelatedListRecordsByParentRecordIdAndRelatedListId.d.ts +2 -2
- package/dist/es/es2018/types/src/raml-artifacts/adapters/getLookupRecords/validateAdapterConfig.d.ts +2 -1
- package/dist/es/es2018/types/src/wire/getListInfosByName/createChildResourceParams.d.ts +4 -0
- package/dist/es/es2018/types/src/wire/getLookupRecords/index.d.ts +2 -0
- package/dist/es/es2018/types/src/wire/getRelatedListRecordsBatch/createChildResourceParams.d.ts +4 -0
- package/dist/es/es2018/types/src/wire/getRelatedListsActions/createChildResourceParams.d.ts +4 -0
- package/dist/es/es2018/types/src/wire/graphqlBatch/index.d.ts +7 -8
- package/dist/es/es2018/types/src/{overrides/resources → wire/graphqlBatch}/postGraphqlBatch.d.ts +13 -6
- package/dist/es/es2018/uiapi-records-service.js +674 -645
- package/package.json +5 -4
- package/sfdc/graphqlAdapters.js +4 -5
- package/sfdc/index.js +637 -612
- package/sfdc/uiapi-static-functions.js +1 -1
- package/src/raml/api.raml +140 -572
- package/src/raml/luvio.raml +3 -22
- package/dist/es/es2018/types/src/generated/resources/deleteUiApiFavoritesByFavoriteId.d.ts +0 -11
- package/dist/es/es2018/types/src/generated/resources/deleteUiApiHealthCheck.d.ts +0 -8
- package/dist/es/es2018/types/src/generated/resources/getUiApiAggregateUi.d.ts +0 -16
- package/dist/es/es2018/types/src/generated/resources/getUiApiFavorites.d.ts +0 -12
- package/dist/es/es2018/types/src/generated/resources/getUiApiFavoritesByFavoriteId.d.ts +0 -15
- package/dist/es/es2018/types/src/generated/resources/getUiApiHealthCheck.d.ts +0 -12
- package/dist/es/es2018/types/src/generated/resources/getUiApiRelatedListRecordsBatchByParentRecordId.d.ts +0 -30
- package/dist/es/es2018/types/src/generated/resources/getUiApiRelatedListRecordsBatchByParentRecordIdAndRelatedListIds.d.ts +0 -23
- package/dist/es/es2018/types/src/generated/resources/patchUiApiFavoritesByFavoriteId.d.ts +0 -19
- package/dist/es/es2018/types/src/generated/resources/patchUiApiFavoritesUsageByFavoriteId.d.ts +0 -9
- package/dist/es/es2018/types/src/generated/resources/patchUiApiHealthCheck.d.ts +0 -6
- package/dist/es/es2018/types/src/generated/resources/postGraphqlBatch.d.ts +0 -12
- package/dist/es/es2018/types/src/generated/resources/postUiApiActionsRecordRelatedListBatchByRecordIdsAndRelatedListIds.d.ts +0 -17
- package/dist/es/es2018/types/src/generated/resources/postUiApiActionsRecordRelatedListByRecordIds.d.ts +0 -19
- package/dist/es/es2018/types/src/generated/resources/postUiApiAggregateUi.d.ts +0 -12
- package/dist/es/es2018/types/src/generated/resources/postUiApiFavorites.d.ts +0 -21
- package/dist/es/es2018/types/src/generated/resources/postUiApiHealthCheck.d.ts +0 -9
- package/dist/es/es2018/types/src/generated/resources/postUiApiRelatedListRecordsBatchByParentRecordIdAndRelatedListIds.d.ts +0 -17
- package/dist/es/es2018/types/src/generated/resources/putUiApiFavoritesBatch.d.ts +0 -9
- package/dist/es/es2018/types/src/generated/resources/putUiApiHealthCheck.d.ts +0 -6
- package/dist/es/es2018/types/src/generated/types/CompositeGraphQLResultRepresentation.d.ts +0 -31
- package/dist/es/es2018/types/src/generated/types/GraphQLBatchInputRepresentation.d.ts +0 -28
- package/dist/es/es2018/types/src/generated/types/GraphQLBatchRepresentation.d.ts +0 -29
- package/dist/es/es2018/types/src/generated/types/HealthCheckRepresentation.d.ts +0 -28
- package/dist/es/es2018/types/src/overrides/resources/getUiApiListInfoBatch.d.ts +0 -38
- package/dist/es/es2018/types/src/overrides/resources/postUiApiActionsRecordRelatedListBatchByRecordIds.d.ts +0 -14
- package/dist/es/es2018/types/src/overrides/resources/postUiApiRelatedListRecordsBatchByParentRecordId.d.ts +0 -16
|
@@ -574,7 +574,7 @@ function assignMetadataLink(entry, metadataKey) {
|
|
|
574
574
|
entry['__metadata'] = createLink$1(metadataKey);
|
|
575
575
|
}
|
|
576
576
|
|
|
577
|
-
const VERSION$
|
|
577
|
+
const VERSION$2t = "275ae22194003d1e53f548b81219c5cb";
|
|
578
578
|
function validate$1M(obj, path = 'ListColumnRepresentation') {
|
|
579
579
|
const v_error = (() => {
|
|
580
580
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -627,7 +627,7 @@ function validate$1M(obj, path = 'ListColumnRepresentation') {
|
|
|
627
627
|
const select$30 = function ListColumnRepresentationSelect() {
|
|
628
628
|
return {
|
|
629
629
|
kind: 'Fragment',
|
|
630
|
-
version: VERSION$
|
|
630
|
+
version: VERSION$2t,
|
|
631
631
|
private: [],
|
|
632
632
|
selections: [
|
|
633
633
|
{
|
|
@@ -650,7 +650,7 @@ const select$30 = function ListColumnRepresentationSelect() {
|
|
|
650
650
|
};
|
|
651
651
|
};
|
|
652
652
|
|
|
653
|
-
const VERSION$
|
|
653
|
+
const VERSION$2s = "623aa9ce3a11031e35faf5671a41746e";
|
|
654
654
|
function validate$1L(obj, path = 'ListFilterByInfoRepresentation') {
|
|
655
655
|
const v_error = (() => {
|
|
656
656
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -689,7 +689,7 @@ function validate$1L(obj, path = 'ListFilterByInfoRepresentation') {
|
|
|
689
689
|
const select$2$ = function ListFilterByInfoRepresentationSelect() {
|
|
690
690
|
return {
|
|
691
691
|
kind: 'Fragment',
|
|
692
|
-
version: VERSION$
|
|
692
|
+
version: VERSION$2s,
|
|
693
693
|
private: [],
|
|
694
694
|
selections: [
|
|
695
695
|
{
|
|
@@ -713,7 +713,7 @@ const select$2$ = function ListFilterByInfoRepresentationSelect() {
|
|
|
713
713
|
};
|
|
714
714
|
};
|
|
715
715
|
|
|
716
|
-
const VERSION$
|
|
716
|
+
const VERSION$2r = "76042ff4af603b2ac0ec69fa0bd12046";
|
|
717
717
|
function validate$1K(obj, path = 'ListReferenceRepresentation') {
|
|
718
718
|
const v_error = (() => {
|
|
719
719
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -787,7 +787,7 @@ function validate$1K(obj, path = 'ListReferenceRepresentation') {
|
|
|
787
787
|
const select$2_ = function ListReferenceRepresentationSelect() {
|
|
788
788
|
return {
|
|
789
789
|
kind: 'Fragment',
|
|
790
|
-
version: VERSION$
|
|
790
|
+
version: VERSION$2r,
|
|
791
791
|
private: [],
|
|
792
792
|
selections: [
|
|
793
793
|
{
|
|
@@ -833,7 +833,7 @@ function equals$13(existing, incoming) {
|
|
|
833
833
|
return true;
|
|
834
834
|
}
|
|
835
835
|
|
|
836
|
-
const VERSION$
|
|
836
|
+
const VERSION$2q = "32def9b631252c12b91a8209c1f49f5a";
|
|
837
837
|
function validate$1J(obj, path = 'ListOrderByInfoRepresentation') {
|
|
838
838
|
const v_error = (() => {
|
|
839
839
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -881,7 +881,7 @@ function validate$1J(obj, path = 'ListOrderByInfoRepresentation') {
|
|
|
881
881
|
const select$2Z = function ListOrderByInfoRepresentationSelect() {
|
|
882
882
|
return {
|
|
883
883
|
kind: 'Fragment',
|
|
884
|
-
version: VERSION$
|
|
884
|
+
version: VERSION$2q,
|
|
885
885
|
private: [],
|
|
886
886
|
selections: [
|
|
887
887
|
{
|
|
@@ -900,7 +900,7 @@ const select$2Z = function ListOrderByInfoRepresentationSelect() {
|
|
|
900
900
|
};
|
|
901
901
|
};
|
|
902
902
|
|
|
903
|
-
const VERSION$
|
|
903
|
+
const VERSION$2p = "2634258f216db34315c06d759a35676d";
|
|
904
904
|
function validate$1I(obj, path = 'ListScopeEntityRepresentation') {
|
|
905
905
|
const v_error = (() => {
|
|
906
906
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -922,7 +922,7 @@ function validate$1I(obj, path = 'ListScopeEntityRepresentation') {
|
|
|
922
922
|
const select$2Y = function ListScopeEntityRepresentationSelect() {
|
|
923
923
|
return {
|
|
924
924
|
kind: 'Fragment',
|
|
925
|
-
version: VERSION$
|
|
925
|
+
version: VERSION$2p,
|
|
926
926
|
private: [],
|
|
927
927
|
selections: [
|
|
928
928
|
{
|
|
@@ -937,7 +937,7 @@ const select$2Y = function ListScopeEntityRepresentationSelect() {
|
|
|
937
937
|
};
|
|
938
938
|
};
|
|
939
939
|
|
|
940
|
-
const VERSION$
|
|
940
|
+
const VERSION$2o = "3b85c5a08d50ce328481b9f8ab56127b";
|
|
941
941
|
function validate$1H(obj, path = 'ListScopeRelatedEntityRepresentation') {
|
|
942
942
|
const v_error = (() => {
|
|
943
943
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -964,7 +964,7 @@ function validate$1H(obj, path = 'ListScopeRelatedEntityRepresentation') {
|
|
|
964
964
|
const select$2X = function ListScopeRelatedEntityRepresentationSelect() {
|
|
965
965
|
return {
|
|
966
966
|
kind: 'Fragment',
|
|
967
|
-
version: VERSION$
|
|
967
|
+
version: VERSION$2o,
|
|
968
968
|
private: [],
|
|
969
969
|
selections: [
|
|
970
970
|
{
|
|
@@ -983,7 +983,7 @@ const select$2X = function ListScopeRelatedEntityRepresentationSelect() {
|
|
|
983
983
|
};
|
|
984
984
|
};
|
|
985
985
|
|
|
986
|
-
const VERSION$
|
|
986
|
+
const VERSION$2n = "a51de242c746e5500a833e84dfaa2170";
|
|
987
987
|
function validate$1G(obj, path = 'ListScopeRepresentation') {
|
|
988
988
|
const v_error = (() => {
|
|
989
989
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1065,7 +1065,7 @@ const select$2W = function ListScopeRepresentationSelect() {
|
|
|
1065
1065
|
const { selections: ListScopeRelatedEntityRepresentation__selections, opaque: ListScopeRelatedEntityRepresentation__opaque, } = select$2X();
|
|
1066
1066
|
return {
|
|
1067
1067
|
kind: 'Fragment',
|
|
1068
|
-
version: VERSION$
|
|
1068
|
+
version: VERSION$2n,
|
|
1069
1069
|
private: [],
|
|
1070
1070
|
selections: [
|
|
1071
1071
|
{
|
|
@@ -1092,7 +1092,7 @@ const select$2W = function ListScopeRepresentationSelect() {
|
|
|
1092
1092
|
};
|
|
1093
1093
|
};
|
|
1094
1094
|
|
|
1095
|
-
const VERSION$
|
|
1095
|
+
const VERSION$2m = "6506134f4d72fdfa349fe60ef1af2413";
|
|
1096
1096
|
function validate$1F(obj, path = 'ListUserPreferenceRepresentation') {
|
|
1097
1097
|
const v_error = (() => {
|
|
1098
1098
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1132,7 +1132,7 @@ function validate$1F(obj, path = 'ListUserPreferenceRepresentation') {
|
|
|
1132
1132
|
const select$2V = function ListUserPreferenceRepresentationSelect() {
|
|
1133
1133
|
return {
|
|
1134
1134
|
kind: 'Fragment',
|
|
1135
|
-
version: VERSION$
|
|
1135
|
+
version: VERSION$2m,
|
|
1136
1136
|
private: [],
|
|
1137
1137
|
selections: [
|
|
1138
1138
|
{
|
|
@@ -1150,7 +1150,7 @@ const select$2V = function ListUserPreferenceRepresentationSelect() {
|
|
|
1150
1150
|
};
|
|
1151
1151
|
|
|
1152
1152
|
const TTL$D = 900000;
|
|
1153
|
-
const VERSION$
|
|
1153
|
+
const VERSION$2l = "8b55d621d80c84ec2e331abc4e12fc56";
|
|
1154
1154
|
function validate$1E(obj, path = 'ListInfoRepresentation') {
|
|
1155
1155
|
const v_error = (() => {
|
|
1156
1156
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1353,7 +1353,7 @@ function validate$1E(obj, path = 'ListInfoRepresentation') {
|
|
|
1353
1353
|
return v_error === undefined ? null : v_error;
|
|
1354
1354
|
}
|
|
1355
1355
|
const RepresentationType$W = 'ListInfoRepresentation';
|
|
1356
|
-
function keyBuilder$
|
|
1356
|
+
function keyBuilder$36(luvio, config) {
|
|
1357
1357
|
return keyPrefix + '::' + RepresentationType$W + ':' + (config.listViewApiName === null ? '' : config.listViewApiName) + ':' + config.objectApiName + ':' + config.type;
|
|
1358
1358
|
}
|
|
1359
1359
|
function keyBuilderFromType$A(luvio, object) {
|
|
@@ -1362,7 +1362,7 @@ function keyBuilderFromType$A(luvio, object) {
|
|
|
1362
1362
|
objectApiName: object.listReference.objectApiName,
|
|
1363
1363
|
type: object.listReference.type
|
|
1364
1364
|
};
|
|
1365
|
-
return keyBuilder$
|
|
1365
|
+
return keyBuilder$36(luvio, keyParams);
|
|
1366
1366
|
}
|
|
1367
1367
|
function normalize$P(input, existing, path, luvio, store, timestamp) {
|
|
1368
1368
|
return input;
|
|
@@ -1376,7 +1376,7 @@ const select$2U = function ListInfoRepresentationSelect() {
|
|
|
1376
1376
|
const { selections: ListUserPreferenceRepresentation__selections, opaque: ListUserPreferenceRepresentation__opaque, } = select$2V();
|
|
1377
1377
|
return {
|
|
1378
1378
|
kind: 'Fragment',
|
|
1379
|
-
version: VERSION$
|
|
1379
|
+
version: VERSION$2l,
|
|
1380
1380
|
private: [
|
|
1381
1381
|
'eTag'
|
|
1382
1382
|
],
|
|
@@ -1472,7 +1472,7 @@ const ingest$1U = function ListInfoRepresentationIngest(input, path, luvio, stor
|
|
|
1472
1472
|
}
|
|
1473
1473
|
const key = keyBuilderFromType$A(luvio, input);
|
|
1474
1474
|
const ttlToUse = TTL$D;
|
|
1475
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$P, "UiApi", VERSION$
|
|
1475
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$P, "UiApi", VERSION$2l, RepresentationType$W, equals$12);
|
|
1476
1476
|
return createLink$1(key);
|
|
1477
1477
|
};
|
|
1478
1478
|
function getTypeCacheKeys$1X(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1494,7 +1494,7 @@ const notifyUpdateAvailableFactory$4 = (luvio) => {
|
|
|
1494
1494
|
}
|
|
1495
1495
|
});
|
|
1496
1496
|
}
|
|
1497
|
-
const keys = configs.map(c => keyBuilder$
|
|
1497
|
+
const keys = configs.map(c => keyBuilder$36(luvio, c));
|
|
1498
1498
|
return luvio.notifyStoreUpdateAvailable(keys);
|
|
1499
1499
|
};
|
|
1500
1500
|
};
|
|
@@ -1544,7 +1544,7 @@ function toSortedStringArray(value) {
|
|
|
1544
1544
|
return undefined;
|
|
1545
1545
|
}
|
|
1546
1546
|
|
|
1547
|
-
const VERSION$
|
|
1547
|
+
const VERSION$2k = "d1e589a127fb1060c89070cdb6f500b2";
|
|
1548
1548
|
function validate$1D(obj, path = 'RecordTypeInfoRepresentation') {
|
|
1549
1549
|
const v_error = (() => {
|
|
1550
1550
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1581,7 +1581,7 @@ function validate$1D(obj, path = 'RecordTypeInfoRepresentation') {
|
|
|
1581
1581
|
const select$2T = function RecordTypeInfoRepresentationSelect() {
|
|
1582
1582
|
return {
|
|
1583
1583
|
kind: 'Fragment',
|
|
1584
|
-
version: VERSION$
|
|
1584
|
+
version: VERSION$2k,
|
|
1585
1585
|
private: [],
|
|
1586
1586
|
selections: [
|
|
1587
1587
|
{
|
|
@@ -1636,7 +1636,7 @@ function equals$11(existing, incoming) {
|
|
|
1636
1636
|
return true;
|
|
1637
1637
|
}
|
|
1638
1638
|
|
|
1639
|
-
const VERSION$
|
|
1639
|
+
const VERSION$2j = "195d918987a35f45e1aa4dce9a11d8c5";
|
|
1640
1640
|
function validate$1C(obj, path = 'FieldValueRepresentation') {
|
|
1641
1641
|
const v_error = (() => {
|
|
1642
1642
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -1748,7 +1748,7 @@ function normalize$O(input, existing, path, luvio, store, timestamp) {
|
|
|
1748
1748
|
const select$2S = function FieldValueRepresentationSelect() {
|
|
1749
1749
|
return {
|
|
1750
1750
|
kind: 'Fragment',
|
|
1751
|
-
version: VERSION$
|
|
1751
|
+
version: VERSION$2j,
|
|
1752
1752
|
private: [],
|
|
1753
1753
|
selections: [
|
|
1754
1754
|
{
|
|
@@ -1791,7 +1791,7 @@ const ingest$1T = function FieldValueRepresentationIngest(input, path, luvio, st
|
|
|
1791
1791
|
}
|
|
1792
1792
|
const key = path.fullPath;
|
|
1793
1793
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
1794
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$O, "UiApi", VERSION$
|
|
1794
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$O, "UiApi", VERSION$2j, RepresentationType$V, equals$10);
|
|
1795
1795
|
return createLink$1(key);
|
|
1796
1796
|
};
|
|
1797
1797
|
function getTypeCacheKeys$1W(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -1834,7 +1834,7 @@ const getTypeCacheKeys$1V = (rootKeySet, luvio, input, _fullPathFactory) => {
|
|
|
1834
1834
|
};
|
|
1835
1835
|
|
|
1836
1836
|
const TTL$C = 120000;
|
|
1837
|
-
const VERSION$
|
|
1837
|
+
const VERSION$2i = "79cb5ac9f44542f683d00245fdfe500d";
|
|
1838
1838
|
function validate$1B(obj, path = 'RecordCollectionRepresentation') {
|
|
1839
1839
|
const v_error = (() => {
|
|
1840
1840
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -2018,7 +2018,7 @@ function normalize$N(input, existing, path, luvio, store, timestamp) {
|
|
|
2018
2018
|
const select$2R = function RecordCollectionRepresentationSelect() {
|
|
2019
2019
|
return {
|
|
2020
2020
|
kind: 'Fragment',
|
|
2021
|
-
version: VERSION$
|
|
2021
|
+
version: VERSION$2i,
|
|
2022
2022
|
private: [],
|
|
2023
2023
|
selections: [
|
|
2024
2024
|
{
|
|
@@ -2115,7 +2115,7 @@ const ingest$1S = function RecordCollectionRepresentationIngest(input, path, luv
|
|
|
2115
2115
|
}
|
|
2116
2116
|
const key = path.fullPath;
|
|
2117
2117
|
const ttlToUse = TTL$C;
|
|
2118
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$N, "UiApi", VERSION$
|
|
2118
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$N, "UiApi", VERSION$2i, RepresentationType$U, equals$$);
|
|
2119
2119
|
return createLink$1(key);
|
|
2120
2120
|
};
|
|
2121
2121
|
function getTypeCacheKeys$1U(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -2143,7 +2143,7 @@ const keyBuilderFromType$z = function RecordRepresentationKeyBuilderFromType(luv
|
|
|
2143
2143
|
};
|
|
2144
2144
|
|
|
2145
2145
|
const TTL$B = 30000;
|
|
2146
|
-
const VERSION$
|
|
2146
|
+
const VERSION$2h = "98c5b18512e48ca8d28727549507e4ba";
|
|
2147
2147
|
function validate$1A(obj, path = 'RecordRepresentation') {
|
|
2148
2148
|
const v_error = (() => {
|
|
2149
2149
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -2334,14 +2334,14 @@ function validate$1A(obj, path = 'RecordRepresentation') {
|
|
|
2334
2334
|
return v_error === undefined ? null : v_error;
|
|
2335
2335
|
}
|
|
2336
2336
|
const RepresentationType$T = 'RecordRepresentation';
|
|
2337
|
-
function keyBuilder$
|
|
2337
|
+
function keyBuilder$35(luvio, config) {
|
|
2338
2338
|
return keyPrefix + '::' + RepresentationType$T + ':' + config.recordId;
|
|
2339
2339
|
}
|
|
2340
2340
|
function keyBuilderFromType$y(luvio, object) {
|
|
2341
2341
|
const keyParams = {
|
|
2342
2342
|
recordId: object.id
|
|
2343
2343
|
};
|
|
2344
|
-
return keyBuilder$
|
|
2344
|
+
return keyBuilder$35(luvio, keyParams);
|
|
2345
2345
|
}
|
|
2346
2346
|
function dynamicNormalize$5(ingestParams) {
|
|
2347
2347
|
return function normalize_dynamic(input, existing, path, luvio, store, timestamp) {
|
|
@@ -2390,7 +2390,7 @@ const select$2Q = function RecordRepresentationSelect() {
|
|
|
2390
2390
|
const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$2T();
|
|
2391
2391
|
return {
|
|
2392
2392
|
kind: 'Fragment',
|
|
2393
|
-
version: VERSION$
|
|
2393
|
+
version: VERSION$2h,
|
|
2394
2394
|
private: [
|
|
2395
2395
|
'eTag',
|
|
2396
2396
|
'weakEtag'
|
|
@@ -2457,7 +2457,7 @@ const dynamicSelect$8 = function dynamicRecordRepresentationSelect(params) {
|
|
|
2457
2457
|
const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$2T();
|
|
2458
2458
|
return {
|
|
2459
2459
|
kind: 'Fragment',
|
|
2460
|
-
version: VERSION$
|
|
2460
|
+
version: VERSION$2h,
|
|
2461
2461
|
private: [
|
|
2462
2462
|
'eTag',
|
|
2463
2463
|
'weakEtag'
|
|
@@ -2602,7 +2602,7 @@ const notifyUpdateAvailableFactory$3 = (luvio) => {
|
|
|
2602
2602
|
}
|
|
2603
2603
|
});
|
|
2604
2604
|
}
|
|
2605
|
-
const keys = configs.map(c => keyBuilder$
|
|
2605
|
+
const keys = configs.map(c => keyBuilder$35(luvio, c));
|
|
2606
2606
|
return luvio.notifyStoreUpdateAvailable(keys);
|
|
2607
2607
|
};
|
|
2608
2608
|
};
|
|
@@ -3982,7 +3982,7 @@ function createPathSelection(propertyName, fieldDefinition) {
|
|
|
3982
3982
|
kind: 'Fragment',
|
|
3983
3983
|
private: ['eTag', 'weakEtag'],
|
|
3984
3984
|
selections: createRecordSelection(childFieldDefinition),
|
|
3985
|
-
version: VERSION$
|
|
3985
|
+
version: VERSION$2h,
|
|
3986
3986
|
},
|
|
3987
3987
|
};
|
|
3988
3988
|
}
|
|
@@ -3992,7 +3992,7 @@ function createPathSelection(propertyName, fieldDefinition) {
|
|
|
3992
3992
|
required: childFieldDefinition.optional === true ? false : undefined,
|
|
3993
3993
|
fragment: {
|
|
3994
3994
|
kind: 'Fragment',
|
|
3995
|
-
version: VERSION$
|
|
3995
|
+
version: VERSION$2j,
|
|
3996
3996
|
private: [],
|
|
3997
3997
|
selections: [DISPLAY_VALUE_SELECTION, fieldValueSelection],
|
|
3998
3998
|
},
|
|
@@ -4024,7 +4024,7 @@ function createPathSelectionFromValue(fields) {
|
|
|
4024
4024
|
kind: 'Fragment',
|
|
4025
4025
|
private: [],
|
|
4026
4026
|
selections: buildSelectionFromRecord(fieldValue),
|
|
4027
|
-
version: VERSION$
|
|
4027
|
+
version: VERSION$2h,
|
|
4028
4028
|
},
|
|
4029
4029
|
};
|
|
4030
4030
|
}
|
|
@@ -4034,7 +4034,7 @@ function createPathSelectionFromValue(fields) {
|
|
|
4034
4034
|
required: undefined,
|
|
4035
4035
|
fragment: {
|
|
4036
4036
|
kind: 'Fragment',
|
|
4037
|
-
version: VERSION$
|
|
4037
|
+
version: VERSION$2j,
|
|
4038
4038
|
private: [],
|
|
4039
4039
|
selections: [DISPLAY_VALUE_SELECTION, fieldValueSelection],
|
|
4040
4040
|
},
|
|
@@ -4774,7 +4774,7 @@ function mergeRecordConflict(luvio, incoming, existing, recordConflictMap) {
|
|
|
4774
4774
|
name: existing.apiName,
|
|
4775
4775
|
children: {},
|
|
4776
4776
|
};
|
|
4777
|
-
const recordKey = keyBuilder$
|
|
4777
|
+
const recordKey = keyBuilder$35(luvio, {
|
|
4778
4778
|
recordId: incoming.id,
|
|
4779
4779
|
});
|
|
4780
4780
|
const trackedFieldsConfig = {
|
|
@@ -5060,7 +5060,7 @@ const createRecordIngest = (fieldsTrie, optionalFieldsTrie, recordConflictMap) =
|
|
|
5060
5060
|
ttl: TTL$B,
|
|
5061
5061
|
representationName: RepresentationType$T,
|
|
5062
5062
|
namespace: keyPrefix,
|
|
5063
|
-
version: VERSION$
|
|
5063
|
+
version: VERSION$2h,
|
|
5064
5064
|
});
|
|
5065
5065
|
return createLink$1(key);
|
|
5066
5066
|
};
|
|
@@ -5156,8 +5156,8 @@ const createResourceRequest$16 = function getUiApiRecordsByRecordIdCreateResourc
|
|
|
5156
5156
|
};
|
|
5157
5157
|
};
|
|
5158
5158
|
|
|
5159
|
-
function keyBuilder$
|
|
5160
|
-
return keyBuilder$
|
|
5159
|
+
function keyBuilder$34(luvio, params) {
|
|
5160
|
+
return keyBuilder$35(luvio, {
|
|
5161
5161
|
recordId: params.urlParams.recordId
|
|
5162
5162
|
});
|
|
5163
5163
|
}
|
|
@@ -5224,12 +5224,12 @@ function validateAdapterConfig$15(untrustedConfig, configPropertyNames) {
|
|
|
5224
5224
|
// used by getUiApiRecordsBatchByRecordIds#selectChildResourceParams
|
|
5225
5225
|
function buildRecordSelector(luvio, recordId, fields, optionalFields) {
|
|
5226
5226
|
return {
|
|
5227
|
-
recordId: keyBuilder$
|
|
5227
|
+
recordId: keyBuilder$35(luvio, { recordId }),
|
|
5228
5228
|
node: {
|
|
5229
5229
|
kind: 'Fragment',
|
|
5230
5230
|
private: ['eTag', 'weakEtag'],
|
|
5231
5231
|
selections: buildSelectionFromFields(fields, optionalFields),
|
|
5232
|
-
version: VERSION$
|
|
5232
|
+
version: VERSION$2h,
|
|
5233
5233
|
},
|
|
5234
5234
|
variables: {},
|
|
5235
5235
|
};
|
|
@@ -5243,7 +5243,7 @@ function buildSnapshotRefresh$5(luvio, config) {
|
|
|
5243
5243
|
function prepareRequest$6(luvio, config) {
|
|
5244
5244
|
const { recordId, fields } = config;
|
|
5245
5245
|
// Should this go into the coersion logic?
|
|
5246
|
-
const key = keyBuilder$
|
|
5246
|
+
const key = keyBuilder$34(luvio, createResourceParams$Z(config));
|
|
5247
5247
|
const allTrackedFields = getTrackedFields(key, luvio.getNode(key), {
|
|
5248
5248
|
maxDepth: configurationForRestAdapters.getTrackedFieldDepthOnCacheMiss(),
|
|
5249
5249
|
onlyFetchLeafNodeIdAndName: configurationForRestAdapters.getTrackedFieldLeafNodeIdAndNameOnly(),
|
|
@@ -5347,17 +5347,17 @@ function isSingleBatchRecordResponse(response) {
|
|
|
5347
5347
|
response.results.length === 1);
|
|
5348
5348
|
}
|
|
5349
5349
|
|
|
5350
|
-
const VERSION$
|
|
5350
|
+
const VERSION$2g = "98cce53b8d13b1883d001bbdaab24383";
|
|
5351
5351
|
|
|
5352
|
-
const nonCachedErrors$
|
|
5353
|
-
function ingestSuccessChildResourceParams$
|
|
5352
|
+
const nonCachedErrors$8 = ObjectCreate$1(null);
|
|
5353
|
+
function ingestSuccessChildResourceParams$8(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount = 0) {
|
|
5354
5354
|
const childSnapshotDataResponses = [];
|
|
5355
5355
|
let seenRecords = new StoreKeySet();
|
|
5356
5356
|
let snapshotState = 'Fulfilled';
|
|
5357
5357
|
const now = Date.now();
|
|
5358
5358
|
for (let index = 0, len = childResourceParamsArray.length; index < len; index += 1) {
|
|
5359
5359
|
const childResourceParams = childResourceParamsArray[index];
|
|
5360
|
-
const childKey = keyBuilder$
|
|
5360
|
+
const childKey = keyBuilder$34(luvio, childResourceParams);
|
|
5361
5361
|
const result = childEnvelopes[index];
|
|
5362
5362
|
const { statusCode: childStatusCode, result: childBody } = result;
|
|
5363
5363
|
if (childStatusCode === 200) {
|
|
@@ -5412,14 +5412,14 @@ function ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, chi
|
|
|
5412
5412
|
}
|
|
5413
5413
|
// track non-cached responses so rebuilds work properly
|
|
5414
5414
|
if (childStatusCode !== 404 && childStatusCode !== 200) {
|
|
5415
|
-
nonCachedErrors$
|
|
5415
|
+
nonCachedErrors$8[childKey] = {
|
|
5416
5416
|
expiration: now + TTL$B,
|
|
5417
5417
|
response: childBody,
|
|
5418
5418
|
status: childStatusCode,
|
|
5419
5419
|
};
|
|
5420
5420
|
}
|
|
5421
5421
|
else {
|
|
5422
|
-
delete nonCachedErrors$
|
|
5422
|
+
delete nonCachedErrors$8[childKey];
|
|
5423
5423
|
}
|
|
5424
5424
|
}
|
|
5425
5425
|
const childSnapshotData = {
|
|
@@ -5433,7 +5433,7 @@ function ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, chi
|
|
|
5433
5433
|
};
|
|
5434
5434
|
}
|
|
5435
5435
|
|
|
5436
|
-
function selectChildResourceParams$
|
|
5436
|
+
function selectChildResourceParams$8(luvio, childResources, resourceParams) {
|
|
5437
5437
|
const envelopeBodyPath = 'result';
|
|
5438
5438
|
const envelopeStatusCodePath = 'statusCode';
|
|
5439
5439
|
const envelopePath = 'results';
|
|
@@ -5444,11 +5444,11 @@ function selectChildResourceParams$7(luvio, childResources, resourceParams) {
|
|
|
5444
5444
|
read: (reader) => {
|
|
5445
5445
|
// Top-level 404 lookup
|
|
5446
5446
|
const compositeSnapshot = luvio.storeLookup({
|
|
5447
|
-
recordId: keyBuilder$
|
|
5447
|
+
recordId: keyBuilder$33(luvio, resourceParams),
|
|
5448
5448
|
node: {
|
|
5449
5449
|
kind: 'Fragment',
|
|
5450
5450
|
private: [],
|
|
5451
|
-
version: VERSION$
|
|
5451
|
+
version: VERSION$2g,
|
|
5452
5452
|
},
|
|
5453
5453
|
variables: {},
|
|
5454
5454
|
});
|
|
@@ -5468,7 +5468,7 @@ function selectChildResourceParams$7(luvio, childResources, resourceParams) {
|
|
|
5468
5468
|
reader.enterPath(i);
|
|
5469
5469
|
reader.enterPath(envelopeBodyPath);
|
|
5470
5470
|
const childResource = childResources[i];
|
|
5471
|
-
const childKey = keyBuilder$
|
|
5471
|
+
const childKey = keyBuilder$34(luvio, childResource);
|
|
5472
5472
|
const isMissingDataBeforeChildRead = reader.getIsDataMissing();
|
|
5473
5473
|
const childSnapshot = reader.read(buildRecordSelector(luvio, childResource.urlParams.recordId, childResource.queryParams.fields || [], childResource.queryParams.optionalFields || []));
|
|
5474
5474
|
reader.exitPath();
|
|
@@ -5514,7 +5514,7 @@ function selectChildResourceParams$7(luvio, childResources, resourceParams) {
|
|
|
5514
5514
|
// has non-cached errors (since the top-level composite
|
|
5515
5515
|
// snapshot will look like an Unfulfilled snapshot
|
|
5516
5516
|
// instead of an error snapshot).
|
|
5517
|
-
const nonCachedError = nonCachedErrors$
|
|
5517
|
+
const nonCachedError = nonCachedErrors$8[childKey];
|
|
5518
5518
|
if (nonCachedError === undefined ||
|
|
5519
5519
|
nonCachedError.expiration < timestamp) {
|
|
5520
5520
|
reader.markMissingLink(childKey);
|
|
@@ -5552,8 +5552,8 @@ function selectChildResourceParams$7(luvio, childResources, resourceParams) {
|
|
|
5552
5552
|
}
|
|
5553
5553
|
|
|
5554
5554
|
ObjectCreate$1(null);
|
|
5555
|
-
function createChildResourceParams$
|
|
5556
|
-
|
|
5555
|
+
function createChildResourceParams$c(resourceParams) {
|
|
5556
|
+
let childConfigs = [];
|
|
5557
5557
|
for (let index = 0, len = resourceParams.urlParams.recordIds.length; index < len; index += 1) {
|
|
5558
5558
|
const item = resourceParams.urlParams.recordIds[index];
|
|
5559
5559
|
childConfigs.push({
|
|
@@ -5568,12 +5568,12 @@ function createChildResourceParams$9(resourceParams) {
|
|
|
5568
5568
|
}
|
|
5569
5569
|
return childConfigs;
|
|
5570
5570
|
}
|
|
5571
|
-
function keyBuilder$
|
|
5571
|
+
function keyBuilder$33(luvio, params) {
|
|
5572
5572
|
return keyPrefix + '::BatchRepresentation:(' + 'childRelationships:' + params.queryParams.childRelationships + ',' + 'fields:' + params.queryParams.fields + ',' + 'layoutTypes:' + params.queryParams.layoutTypes + ',' + 'modes:' + params.queryParams.modes + ',' + 'optionalFields:' + params.queryParams.optionalFields + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'updateMru:' + params.queryParams.updateMru + ',' + 'recordIds:' + params.urlParams.recordIds + ')';
|
|
5573
5573
|
}
|
|
5574
5574
|
function getResponseCacheKeys$Y(keys, luvio, resourceParams, response) {
|
|
5575
5575
|
const childEnvelopes = response.results;
|
|
5576
|
-
const childResourceParamsArray = createChildResourceParams$
|
|
5576
|
+
const childResourceParamsArray = createChildResourceParams$c(resourceParams);
|
|
5577
5577
|
if (process.env.NODE_ENV !== 'production') {
|
|
5578
5578
|
if (childResourceParamsArray.length !== childEnvelopes.length) {
|
|
5579
5579
|
throw new Error('Invalid composite resource response. Expected ' + childResourceParamsArray.length + ' items, received ' + childEnvelopes.length);
|
|
@@ -5588,7 +5588,7 @@ function getResponseCacheKeys$Y(keys, luvio, resourceParams, response) {
|
|
|
5588
5588
|
getResponseCacheKeys$Z(keys, luvio, childResourceParams, childBody);
|
|
5589
5589
|
}
|
|
5590
5590
|
else if (childStatusCode === 404) {
|
|
5591
|
-
const childKey = keyBuilder$
|
|
5591
|
+
const childKey = keyBuilder$34(luvio, childResourceParams);
|
|
5592
5592
|
keys.set(childKey, {
|
|
5593
5593
|
namespace: keyPrefix,
|
|
5594
5594
|
representationName: RepresentationType$T,
|
|
@@ -5598,7 +5598,7 @@ function getResponseCacheKeys$Y(keys, luvio, resourceParams, response) {
|
|
|
5598
5598
|
}
|
|
5599
5599
|
}
|
|
5600
5600
|
function ingestError$L(luvio, params, error, snapshotRefresh) {
|
|
5601
|
-
const key = keyBuilder$
|
|
5601
|
+
const key = keyBuilder$33(luvio, params);
|
|
5602
5602
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
5603
5603
|
luvio.storeIngestError(key, errorSnapshot);
|
|
5604
5604
|
return errorSnapshot;
|
|
@@ -5643,7 +5643,7 @@ function createResourceParams$Y(config) {
|
|
|
5643
5643
|
};
|
|
5644
5644
|
}
|
|
5645
5645
|
|
|
5646
|
-
function createChildResourceParams$
|
|
5646
|
+
function createChildResourceParams$b(config) {
|
|
5647
5647
|
const childResources = [];
|
|
5648
5648
|
const { records } = config;
|
|
5649
5649
|
for (let outerIdx = 0, numOfRecordBatches = records.length; outerIdx < numOfRecordBatches; outerIdx += 1) {
|
|
@@ -5670,14 +5670,14 @@ function createChildResourceParams$8(config) {
|
|
|
5670
5670
|
}
|
|
5671
5671
|
|
|
5672
5672
|
function adapterFragment$J(luvio, config) {
|
|
5673
|
-
const childResources = createChildResourceParams$
|
|
5673
|
+
const childResources = createChildResourceParams$b(config);
|
|
5674
5674
|
const resourceParams = createResourceParams$Y(config);
|
|
5675
|
-
return selectChildResourceParams$
|
|
5675
|
+
return selectChildResourceParams$8(luvio, childResources, resourceParams);
|
|
5676
5676
|
}
|
|
5677
5677
|
|
|
5678
5678
|
function onFetchResponseSuccess$N(luvio, config, resourceParams, response, serverRequestCount = 0) {
|
|
5679
5679
|
const childEnvelopes = response.body.results;
|
|
5680
|
-
const childResourceParamsArray = createChildResourceParams$
|
|
5680
|
+
const childResourceParamsArray = createChildResourceParams$b(config);
|
|
5681
5681
|
if (process.env.NODE_ENV !== 'production') {
|
|
5682
5682
|
if (childResourceParamsArray.length !== childEnvelopes.length) {
|
|
5683
5683
|
throw new Error('Invalid composite resource response. Expected ' +
|
|
@@ -5687,8 +5687,8 @@ function onFetchResponseSuccess$N(luvio, config, resourceParams, response, serve
|
|
|
5687
5687
|
}
|
|
5688
5688
|
}
|
|
5689
5689
|
const snapshotStateFulfilled = 'Fulfilled';
|
|
5690
|
-
const key = keyBuilder$
|
|
5691
|
-
const { childSnapshotData, seenRecords } = ingestSuccessChildResourceParams$
|
|
5690
|
+
const key = keyBuilder$33(luvio, resourceParams);
|
|
5691
|
+
const { childSnapshotData, seenRecords } = ingestSuccessChildResourceParams$8(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount);
|
|
5692
5692
|
const snapshot = {
|
|
5693
5693
|
recordId: key,
|
|
5694
5694
|
data: childSnapshotData,
|
|
@@ -5989,7 +5989,7 @@ function revertPaginationOptimization(variables) {
|
|
|
5989
5989
|
}
|
|
5990
5990
|
|
|
5991
5991
|
const TTL$A = 30000;
|
|
5992
|
-
const VERSION$
|
|
5992
|
+
const VERSION$2f = "614ef19823027c07fa6deb9a149619d2";
|
|
5993
5993
|
function validate$1z(obj, path = 'ListRecordCollectionRepresentation') {
|
|
5994
5994
|
const v_error = (() => {
|
|
5995
5995
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -6226,7 +6226,7 @@ function validate$1z(obj, path = 'ListRecordCollectionRepresentation') {
|
|
|
6226
6226
|
return v_error === undefined ? null : v_error;
|
|
6227
6227
|
}
|
|
6228
6228
|
const RepresentationType$S = 'ListRecordCollectionRepresentation';
|
|
6229
|
-
function keyBuilder$
|
|
6229
|
+
function keyBuilder$32(luvio, config) {
|
|
6230
6230
|
return keyPrefix + '::' + RepresentationType$S + ':' + (config.listViewId === null ? '' : config.listViewId) + ':' + (config.sortBy === null ? '' : '[' + config.sortBy.join(',') + ']') + ':' + config.objectApiName + ':' + (config.listViewApiName === null ? '' : config.listViewApiName);
|
|
6231
6231
|
}
|
|
6232
6232
|
function keyBuilderFromType$x(luvio, object) {
|
|
@@ -6236,10 +6236,10 @@ function keyBuilderFromType$x(luvio, object) {
|
|
|
6236
6236
|
objectApiName: object.listReference.objectApiName,
|
|
6237
6237
|
listViewApiName: object.listReference.listViewApiName
|
|
6238
6238
|
};
|
|
6239
|
-
return keyBuilder$
|
|
6239
|
+
return keyBuilder$32(luvio, keyParams);
|
|
6240
6240
|
}
|
|
6241
6241
|
function paginationKeyBuilder(luvio, config) {
|
|
6242
|
-
return keyBuilder$
|
|
6242
|
+
return keyBuilder$32(luvio, config) + '__pagination';
|
|
6243
6243
|
}
|
|
6244
6244
|
function normalize$L(input, existing, path, luvio, store, timestamp) {
|
|
6245
6245
|
const input_records = input.records;
|
|
@@ -6266,7 +6266,7 @@ const select$2P = function ListRecordCollectionRepresentationSelect(paginationPa
|
|
|
6266
6266
|
kind: 'Fragment',
|
|
6267
6267
|
reader: true,
|
|
6268
6268
|
synthetic: false,
|
|
6269
|
-
version: VERSION$
|
|
6269
|
+
version: VERSION$2f,
|
|
6270
6270
|
read: (source, reader) => {
|
|
6271
6271
|
const sink = {};
|
|
6272
6272
|
if (paginationParams === undefined) {
|
|
@@ -6312,7 +6312,7 @@ const select$2P = function ListRecordCollectionRepresentationSelect(paginationPa
|
|
|
6312
6312
|
reader.readScalar('count', metadataProperties, sink);
|
|
6313
6313
|
reader.exitPath();
|
|
6314
6314
|
reader.enterPath('fields');
|
|
6315
|
-
reader.readScalarPlural('fields', source, sink);
|
|
6315
|
+
reader.readScalarPlural('fields', source, sink, true);
|
|
6316
6316
|
reader.exitPath();
|
|
6317
6317
|
reader.enterPath('listInfoETag');
|
|
6318
6318
|
reader.readScalar('listInfoETag', source, sink);
|
|
@@ -6325,14 +6325,14 @@ const select$2P = function ListRecordCollectionRepresentationSelect(paginationPa
|
|
|
6325
6325
|
}, source, sink);
|
|
6326
6326
|
reader.exitPath();
|
|
6327
6327
|
reader.enterPath('optionalFields');
|
|
6328
|
-
reader.readScalarPlural('optionalFields', source, sink);
|
|
6328
|
+
reader.readScalarPlural('optionalFields', source, sink, true);
|
|
6329
6329
|
reader.exitPath();
|
|
6330
6330
|
reader.enterPath('sortBy');
|
|
6331
6331
|
if (source['sortBy'] === null) {
|
|
6332
6332
|
reader.readScalar('sortBy', source, sink);
|
|
6333
6333
|
}
|
|
6334
6334
|
else {
|
|
6335
|
-
reader.readScalarPlural('sortBy', source, sink);
|
|
6335
|
+
reader.readScalarPlural('sortBy', source, sink, true);
|
|
6336
6336
|
}
|
|
6337
6337
|
reader.exitPath();
|
|
6338
6338
|
return sink;
|
|
@@ -6380,7 +6380,7 @@ const dynamicSelect$7 = function dynamicListRecordCollectionRepresentationSelect
|
|
|
6380
6380
|
kind: 'Fragment',
|
|
6381
6381
|
reader: true,
|
|
6382
6382
|
synthetic: false,
|
|
6383
|
-
version: VERSION$
|
|
6383
|
+
version: VERSION$2f,
|
|
6384
6384
|
read: (source, reader) => {
|
|
6385
6385
|
const sink = {};
|
|
6386
6386
|
if (paginationParams === undefined) {
|
|
@@ -6422,7 +6422,7 @@ const dynamicSelect$7 = function dynamicListRecordCollectionRepresentationSelect
|
|
|
6422
6422
|
reader.readScalar('count', metadataProperties, sink);
|
|
6423
6423
|
reader.exitPath();
|
|
6424
6424
|
reader.enterPath('fields');
|
|
6425
|
-
reader.readScalarPlural('fields', source, sink);
|
|
6425
|
+
reader.readScalarPlural('fields', source, sink, true);
|
|
6426
6426
|
reader.exitPath();
|
|
6427
6427
|
reader.enterPath('listInfoETag');
|
|
6428
6428
|
reader.readScalar('listInfoETag', source, sink);
|
|
@@ -6435,14 +6435,14 @@ const dynamicSelect$7 = function dynamicListRecordCollectionRepresentationSelect
|
|
|
6435
6435
|
}, source, sink);
|
|
6436
6436
|
reader.exitPath();
|
|
6437
6437
|
reader.enterPath('optionalFields');
|
|
6438
|
-
reader.readScalarPlural('optionalFields', source, sink);
|
|
6438
|
+
reader.readScalarPlural('optionalFields', source, sink, true);
|
|
6439
6439
|
reader.exitPath();
|
|
6440
6440
|
reader.enterPath('sortBy');
|
|
6441
6441
|
if (source['sortBy'] === null) {
|
|
6442
6442
|
reader.readScalar('sortBy', source, sink);
|
|
6443
6443
|
}
|
|
6444
6444
|
else {
|
|
6445
|
-
reader.readScalarPlural('sortBy', source, sink);
|
|
6445
|
+
reader.readScalarPlural('sortBy', source, sink, true);
|
|
6446
6446
|
}
|
|
6447
6447
|
reader.exitPath();
|
|
6448
6448
|
return sink;
|
|
@@ -6617,7 +6617,7 @@ const ingest$1Q = function ListRecordCollectionRepresentationIngest(input, path,
|
|
|
6617
6617
|
const storeMetadataParams = {
|
|
6618
6618
|
ttl: ttlToUse,
|
|
6619
6619
|
namespace: "UiApi",
|
|
6620
|
-
version: VERSION$
|
|
6620
|
+
version: VERSION$2f,
|
|
6621
6621
|
representationName: RepresentationType$S,
|
|
6622
6622
|
};
|
|
6623
6623
|
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
@@ -6643,7 +6643,7 @@ function getTypeCacheKeys$1S(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
6643
6643
|
}
|
|
6644
6644
|
}
|
|
6645
6645
|
|
|
6646
|
-
const VERSION$
|
|
6646
|
+
const VERSION$2e = "cf8d2eb042188974da26ffe6618cfd07";
|
|
6647
6647
|
function validate$1y(obj, path = 'ListUiRepresentation') {
|
|
6648
6648
|
const v_error = (() => {
|
|
6649
6649
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -6668,7 +6668,7 @@ function validate$1y(obj, path = 'ListUiRepresentation') {
|
|
|
6668
6668
|
return v_error === undefined ? null : v_error;
|
|
6669
6669
|
}
|
|
6670
6670
|
const RepresentationType$R = 'ListUiRepresentation';
|
|
6671
|
-
function keyBuilder$
|
|
6671
|
+
function keyBuilder$31(luvio, config) {
|
|
6672
6672
|
return keyPrefix + '::' + RepresentationType$R + ':' + (config.listViewApiName === null ? '' : config.listViewApiName) + ':' + config.objectApiName + ':' + config.type + ':' + (config.sortBy === null ? '' : '[' + config.sortBy.join(',') + ']');
|
|
6673
6673
|
}
|
|
6674
6674
|
function keyBuilderFromType$w(luvio, object) {
|
|
@@ -6678,7 +6678,7 @@ function keyBuilderFromType$w(luvio, object) {
|
|
|
6678
6678
|
type: object.info.listReference.type,
|
|
6679
6679
|
sortBy: object.records.sortBy
|
|
6680
6680
|
};
|
|
6681
|
-
return keyBuilder$
|
|
6681
|
+
return keyBuilder$31(luvio, keyParams);
|
|
6682
6682
|
}
|
|
6683
6683
|
function normalize$K(input, existing, path, luvio, store, timestamp) {
|
|
6684
6684
|
const input_info = input.info;
|
|
@@ -6710,7 +6710,7 @@ function normalize$K(input, existing, path, luvio, store, timestamp) {
|
|
|
6710
6710
|
const select$2O = function ListUiRepresentationSelect(paginationParams) {
|
|
6711
6711
|
return {
|
|
6712
6712
|
kind: 'Fragment',
|
|
6713
|
-
version: VERSION$
|
|
6713
|
+
version: VERSION$2e,
|
|
6714
6714
|
private: [
|
|
6715
6715
|
'eTag'
|
|
6716
6716
|
],
|
|
@@ -6741,7 +6741,7 @@ const dynamicSelect$6 = function dynamicListUiRepresentationSelect(params, pagin
|
|
|
6741
6741
|
} : params.records;
|
|
6742
6742
|
return {
|
|
6743
6743
|
kind: 'Fragment',
|
|
6744
|
-
version: VERSION$
|
|
6744
|
+
version: VERSION$2e,
|
|
6745
6745
|
private: [
|
|
6746
6746
|
'eTag'
|
|
6747
6747
|
],
|
|
@@ -6778,7 +6778,7 @@ const ingest$1P = function ListUiRepresentationIngest(input, path, luvio, store,
|
|
|
6778
6778
|
}
|
|
6779
6779
|
const key = keyBuilderFromType$w(luvio, input);
|
|
6780
6780
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
6781
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$K, "UiApi", VERSION$
|
|
6781
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$K, "UiApi", VERSION$2e, RepresentationType$R, equals$Y);
|
|
6782
6782
|
return createLink$1(key);
|
|
6783
6783
|
};
|
|
6784
6784
|
function getTypeCacheKeys$1R(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -6804,8 +6804,8 @@ function select$2N(luvio, params) {
|
|
|
6804
6804
|
const paginationParams = createPaginationParams$5(params);
|
|
6805
6805
|
return select$2O(paginationParams);
|
|
6806
6806
|
}
|
|
6807
|
-
function keyBuilder$
|
|
6808
|
-
return keyBuilder$
|
|
6807
|
+
function keyBuilder$30(luvio, params) {
|
|
6808
|
+
return keyBuilder$31(luvio, {
|
|
6809
6809
|
listViewApiName: params.urlParams.listViewApiName,
|
|
6810
6810
|
objectApiName: params.urlParams.objectApiName,
|
|
6811
6811
|
type: "listView",
|
|
@@ -6817,7 +6817,7 @@ function getResponseCacheKeys$X(storeKeyMap, luvio, resourceParams, response) {
|
|
|
6817
6817
|
}
|
|
6818
6818
|
function ingestSuccess$O(luvio, resourceParams, response, snapshotRefresh) {
|
|
6819
6819
|
const { body } = response;
|
|
6820
|
-
const key = keyBuilder$
|
|
6820
|
+
const key = keyBuilder$30(luvio, resourceParams);
|
|
6821
6821
|
luvio.storeIngest(key, ingest$1P, body);
|
|
6822
6822
|
const snapshot = luvio.storeLookup({
|
|
6823
6823
|
recordId: key,
|
|
@@ -6833,7 +6833,7 @@ function ingestSuccess$O(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
6833
6833
|
return snapshot;
|
|
6834
6834
|
}
|
|
6835
6835
|
function ingestError$K(luvio, params, error, snapshotRefresh) {
|
|
6836
|
-
const key = keyBuilder$
|
|
6836
|
+
const key = keyBuilder$30(luvio, params);
|
|
6837
6837
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
6838
6838
|
luvio.storeIngestError(key, errorSnapshot);
|
|
6839
6839
|
return errorSnapshot;
|
|
@@ -6864,9 +6864,9 @@ const getListUiByApiName_ConfigPropertyMetadata = [
|
|
|
6864
6864
|
];
|
|
6865
6865
|
const getListUiByApiName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$T, getListUiByApiName_ConfigPropertyMetadata);
|
|
6866
6866
|
const createResourceParams$X = /*#__PURE__*/ createResourceParams$_(getListUiByApiName_ConfigPropertyMetadata);
|
|
6867
|
-
function keyBuilder$
|
|
6867
|
+
function keyBuilder$2$(luvio, config) {
|
|
6868
6868
|
const resourceParams = createResourceParams$X(config);
|
|
6869
|
-
return keyBuilder$
|
|
6869
|
+
return keyBuilder$30(luvio, resourceParams);
|
|
6870
6870
|
}
|
|
6871
6871
|
function typeCheckConfig$11(untrustedConfig) {
|
|
6872
6872
|
const config = {};
|
|
@@ -6925,7 +6925,7 @@ function buildNetworkSnapshotCachePolicy$P(context, coercedAdapterRequestContext
|
|
|
6925
6925
|
function buildCachedSnapshotCachePolicy$P(context, storeLookup) {
|
|
6926
6926
|
const { luvio, config } = context;
|
|
6927
6927
|
const selector = {
|
|
6928
|
-
recordId: keyBuilder$
|
|
6928
|
+
recordId: keyBuilder$2$(luvio, config),
|
|
6929
6929
|
node: adapterFragment$I(luvio, config),
|
|
6930
6930
|
variables: {},
|
|
6931
6931
|
};
|
|
@@ -6959,7 +6959,7 @@ function select$2M(luvio, params) {
|
|
|
6959
6959
|
const paginationParams = createPaginationParams$4(params);
|
|
6960
6960
|
return select$2O(paginationParams);
|
|
6961
6961
|
}
|
|
6962
|
-
function keyBuilder$
|
|
6962
|
+
function keyBuilder$2_(luvio, params) {
|
|
6963
6963
|
return keyPrefix + '::ListUiRepresentation:(' + 'fields:' + params.queryParams.fields + ',' + 'optionalFields:' + params.queryParams.optionalFields + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'pageToken:' + params.queryParams.pageToken + ',' + 'sortBy:' + params.queryParams.sortBy + ',' + 'listViewId:' + params.urlParams.listViewId + ')';
|
|
6964
6964
|
}
|
|
6965
6965
|
function getResponseCacheKeys$W(storeKeyMap, luvio, resourceParams, response) {
|
|
@@ -6967,7 +6967,7 @@ function getResponseCacheKeys$W(storeKeyMap, luvio, resourceParams, response) {
|
|
|
6967
6967
|
}
|
|
6968
6968
|
function ingestSuccess$N(luvio, resourceParams, response, snapshotRefresh) {
|
|
6969
6969
|
const { body } = response;
|
|
6970
|
-
const key = keyBuilder$
|
|
6970
|
+
const key = keyBuilder$2_(luvio, resourceParams);
|
|
6971
6971
|
luvio.storeIngest(key, ingest$1P, body);
|
|
6972
6972
|
const snapshot = luvio.storeLookup({
|
|
6973
6973
|
recordId: key,
|
|
@@ -6983,7 +6983,7 @@ function ingestSuccess$N(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
6983
6983
|
return snapshot;
|
|
6984
6984
|
}
|
|
6985
6985
|
function ingestError$J(luvio, params, error, snapshotRefresh) {
|
|
6986
|
-
const key = keyBuilder$
|
|
6986
|
+
const key = keyBuilder$2_(luvio, params);
|
|
6987
6987
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
6988
6988
|
luvio.storeIngestError(key, errorSnapshot);
|
|
6989
6989
|
return errorSnapshot;
|
|
@@ -7013,9 +7013,9 @@ const getListUiByListViewId_ConfigPropertyMetadata = [
|
|
|
7013
7013
|
];
|
|
7014
7014
|
const getListUiByListViewId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$S, getListUiByListViewId_ConfigPropertyMetadata);
|
|
7015
7015
|
const createResourceParams$W = /*#__PURE__*/ createResourceParams$_(getListUiByListViewId_ConfigPropertyMetadata);
|
|
7016
|
-
function keyBuilder$
|
|
7016
|
+
function keyBuilder$2Z(luvio, config) {
|
|
7017
7017
|
const resourceParams = createResourceParams$W(config);
|
|
7018
|
-
return keyBuilder$
|
|
7018
|
+
return keyBuilder$2_(luvio, resourceParams);
|
|
7019
7019
|
}
|
|
7020
7020
|
function typeCheckConfig$10(untrustedConfig) {
|
|
7021
7021
|
const config = {};
|
|
@@ -7074,7 +7074,7 @@ function buildNetworkSnapshotCachePolicy$O(context, coercedAdapterRequestContext
|
|
|
7074
7074
|
function buildCachedSnapshotCachePolicy$O(context, storeLookup) {
|
|
7075
7075
|
const { luvio, config } = context;
|
|
7076
7076
|
const selector = {
|
|
7077
|
-
recordId: keyBuilder$
|
|
7077
|
+
recordId: keyBuilder$2Z(luvio, config),
|
|
7078
7078
|
node: adapterFragment$H(luvio, config),
|
|
7079
7079
|
variables: {},
|
|
7080
7080
|
};
|
|
@@ -7171,14 +7171,14 @@ const LIST_INFO_SELECTIONS_ETAG = [
|
|
|
7171
7171
|
* @param luvio Luvio
|
|
7172
7172
|
*/
|
|
7173
7173
|
function getListInfo(luvio, listRef, storeLookup) {
|
|
7174
|
-
const key = keyBuilder$
|
|
7174
|
+
const key = keyBuilder$36(luvio, { ...listRef });
|
|
7175
7175
|
return storeLookup({
|
|
7176
7176
|
recordId: key,
|
|
7177
7177
|
node: {
|
|
7178
7178
|
kind: 'Fragment',
|
|
7179
7179
|
selections: LIST_INFO_SELECTIONS_ETAG,
|
|
7180
7180
|
private: [],
|
|
7181
|
-
version: VERSION$
|
|
7181
|
+
version: VERSION$2l,
|
|
7182
7182
|
},
|
|
7183
7183
|
variables: {},
|
|
7184
7184
|
});
|
|
@@ -7298,7 +7298,7 @@ function listFields(luvio, { fields = [], optionalFields = [], sortBy, }, listIn
|
|
|
7298
7298
|
addDefaultFields(qualifiedField, defaultFields_);
|
|
7299
7299
|
}
|
|
7300
7300
|
}
|
|
7301
|
-
const key = keyBuilder$
|
|
7301
|
+
const key = keyBuilder$32(luvio, {
|
|
7302
7302
|
listViewId: listInfo.eTag,
|
|
7303
7303
|
sortBy: sortBy || null,
|
|
7304
7304
|
objectApiName: listInfo.listReference.objectApiName,
|
|
@@ -7343,7 +7343,7 @@ let context$2;
|
|
|
7343
7343
|
function setContext$2(adapterContext) {
|
|
7344
7344
|
context$2 = adapterContext;
|
|
7345
7345
|
}
|
|
7346
|
-
function keyBuilder$
|
|
7346
|
+
function keyBuilder$2Y(luvio, params) {
|
|
7347
7347
|
const query = {
|
|
7348
7348
|
objectApiName: params.urlParams.objectApiName,
|
|
7349
7349
|
listViewApiName: params.urlParams.listViewApiName,
|
|
@@ -7354,7 +7354,7 @@ function keyBuilder$2Z(luvio, params) {
|
|
|
7354
7354
|
// Check and use any default values returned from the server (i.e. sortBy)
|
|
7355
7355
|
const config = { ...params.urlParams, ...params.queryParams };
|
|
7356
7356
|
const defaults = getServerDefaults(config, context$2);
|
|
7357
|
-
return keyBuilder$
|
|
7357
|
+
return keyBuilder$32(luvio, {
|
|
7358
7358
|
objectApiName: listReference.objectApiName,
|
|
7359
7359
|
listViewApiName: listReference.listViewApiName,
|
|
7360
7360
|
listViewId: listReference.id,
|
|
@@ -7363,7 +7363,7 @@ function keyBuilder$2Z(luvio, params) {
|
|
|
7363
7363
|
}
|
|
7364
7364
|
// If there are no matching entries in the store, then we haven't fetched any data for this list view yet.
|
|
7365
7365
|
// Assuming that listViewId is empty and continue on
|
|
7366
|
-
return keyBuilder$
|
|
7366
|
+
return keyBuilder$32(luvio, {
|
|
7367
7367
|
objectApiName: params.urlParams.objectApiName,
|
|
7368
7368
|
listViewApiName: params.urlParams.listViewApiName,
|
|
7369
7369
|
listViewId: '',
|
|
@@ -7381,14 +7381,14 @@ function select$2L(luvio, params) {
|
|
|
7381
7381
|
kind: 'Fragment',
|
|
7382
7382
|
private: ['eTag', 'weakEtag'],
|
|
7383
7383
|
selections: buildSelectionFromFields(fields, optionalFields),
|
|
7384
|
-
version: VERSION$
|
|
7384
|
+
version: VERSION$2h
|
|
7385
7385
|
},
|
|
7386
7386
|
},
|
|
7387
7387
|
}, createPaginationParams$3(params));
|
|
7388
7388
|
}
|
|
7389
7389
|
function ingestSuccess$M(luvio, resourceParams, response, snapshotRefresh) {
|
|
7390
7390
|
const { body } = response;
|
|
7391
|
-
const key = keyBuilder$
|
|
7391
|
+
const key = keyBuilder$2Y(luvio, resourceParams);
|
|
7392
7392
|
luvio.storeIngest(key, ingest$1Q, body);
|
|
7393
7393
|
const optionalFields = resourceParams.queryParams.optionalFields;
|
|
7394
7394
|
if (optionalFields && optionalFields.length > 0) {
|
|
@@ -7425,12 +7425,12 @@ function getResponseCacheKeys$V(storeKeyMap, luvio, resourceParams, response) {
|
|
|
7425
7425
|
getTypeCacheKeys$1S(storeKeyMap, luvio, response);
|
|
7426
7426
|
}
|
|
7427
7427
|
function ingestError$I(luvio, params, error, snapshotRefresh) {
|
|
7428
|
-
const key = keyBuilder$
|
|
7428
|
+
const key = keyBuilder$2Y(luvio, params);
|
|
7429
7429
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
7430
7430
|
const storeMetadataParams = {
|
|
7431
7431
|
ttl: TTL$A,
|
|
7432
7432
|
namespace: keyPrefix,
|
|
7433
|
-
version: VERSION$
|
|
7433
|
+
version: VERSION$2f,
|
|
7434
7434
|
representationName: RepresentationType$S
|
|
7435
7435
|
};
|
|
7436
7436
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -7503,7 +7503,7 @@ function isErrorSnapshot(snapshot) {
|
|
|
7503
7503
|
return snapshot.state === 'Error';
|
|
7504
7504
|
}
|
|
7505
7505
|
|
|
7506
|
-
const VERSION$
|
|
7506
|
+
const VERSION$2d = "3529c5f7d0eb2206c90a52c6d9f721d4";
|
|
7507
7507
|
function validate$1x(obj, path = 'ListViewSummaryRepresentation') {
|
|
7508
7508
|
const v_error = (() => {
|
|
7509
7509
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -7554,14 +7554,14 @@ function validate$1x(obj, path = 'ListViewSummaryRepresentation') {
|
|
|
7554
7554
|
return v_error === undefined ? null : v_error;
|
|
7555
7555
|
}
|
|
7556
7556
|
const RepresentationType$Q = 'ListViewSummaryRepresentation';
|
|
7557
|
-
function keyBuilder$
|
|
7557
|
+
function keyBuilder$2X(luvio, config) {
|
|
7558
7558
|
return keyPrefix + '::' + RepresentationType$Q + ':' + (config.id === null ? '' : config.id);
|
|
7559
7559
|
}
|
|
7560
7560
|
function keyBuilderFromType$v(luvio, object) {
|
|
7561
7561
|
const keyParams = {
|
|
7562
7562
|
id: object.id
|
|
7563
7563
|
};
|
|
7564
|
-
return keyBuilder$
|
|
7564
|
+
return keyBuilder$2X(luvio, keyParams);
|
|
7565
7565
|
}
|
|
7566
7566
|
function normalize$J(input, existing, path, luvio, store, timestamp) {
|
|
7567
7567
|
return input;
|
|
@@ -7569,7 +7569,7 @@ function normalize$J(input, existing, path, luvio, store, timestamp) {
|
|
|
7569
7569
|
const select$2K = function ListViewSummaryRepresentationSelect() {
|
|
7570
7570
|
return {
|
|
7571
7571
|
kind: 'Fragment',
|
|
7572
|
-
version: VERSION$
|
|
7572
|
+
version: VERSION$2d,
|
|
7573
7573
|
private: [],
|
|
7574
7574
|
selections: [
|
|
7575
7575
|
{
|
|
@@ -7623,7 +7623,7 @@ const ingest$1O = function ListViewSummaryRepresentationIngest(input, path, luvi
|
|
|
7623
7623
|
}
|
|
7624
7624
|
const key = keyBuilderFromType$v(luvio, input);
|
|
7625
7625
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
7626
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$J, "UiApi", VERSION$
|
|
7626
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$J, "UiApi", VERSION$2d, RepresentationType$Q, equals$X);
|
|
7627
7627
|
return createLink$1(key);
|
|
7628
7628
|
};
|
|
7629
7629
|
function getTypeCacheKeys$1Q(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -7636,7 +7636,7 @@ function getTypeCacheKeys$1Q(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
7636
7636
|
});
|
|
7637
7637
|
}
|
|
7638
7638
|
|
|
7639
|
-
const VERSION$
|
|
7639
|
+
const VERSION$2c = "f4c79fe066da3558499d5ee88c72abcd";
|
|
7640
7640
|
function validate$1w(obj, path = 'ListViewSummaryCollectionRepresentation') {
|
|
7641
7641
|
const v_error = (() => {
|
|
7642
7642
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -7823,7 +7823,7 @@ function validate$1w(obj, path = 'ListViewSummaryCollectionRepresentation') {
|
|
|
7823
7823
|
return v_error === undefined ? null : v_error;
|
|
7824
7824
|
}
|
|
7825
7825
|
const RepresentationType$P = 'ListViewSummaryCollectionRepresentation';
|
|
7826
|
-
function keyBuilder$
|
|
7826
|
+
function keyBuilder$2W(luvio, config) {
|
|
7827
7827
|
return keyPrefix + '::' + RepresentationType$P + ':' + config.objectApiName + ':' + (config.queryString === null ? '' : config.queryString) + ':' + config.recentListsOnly;
|
|
7828
7828
|
}
|
|
7829
7829
|
function keyBuilderFromType$u(luvio, object) {
|
|
@@ -7832,7 +7832,7 @@ function keyBuilderFromType$u(luvio, object) {
|
|
|
7832
7832
|
queryString: object.queryString,
|
|
7833
7833
|
recentListsOnly: object.recentListsOnly
|
|
7834
7834
|
};
|
|
7835
|
-
return keyBuilder$
|
|
7835
|
+
return keyBuilder$2W(luvio, keyParams);
|
|
7836
7836
|
}
|
|
7837
7837
|
function normalize$I(input, existing, path, luvio, store, timestamp) {
|
|
7838
7838
|
const input_lists = input.lists;
|
|
@@ -7858,7 +7858,7 @@ const select$2J = function ListViewSummaryCollectionRepresentationSelect(paginat
|
|
|
7858
7858
|
kind: 'Fragment',
|
|
7859
7859
|
reader: true,
|
|
7860
7860
|
synthetic: false,
|
|
7861
|
-
version: VERSION$
|
|
7861
|
+
version: VERSION$2c,
|
|
7862
7862
|
read: (source, reader) => {
|
|
7863
7863
|
const sink = {};
|
|
7864
7864
|
if (paginationParams === undefined) {
|
|
@@ -8087,7 +8087,7 @@ const ingest$1N = function ListViewSummaryCollectionRepresentationIngest(input,
|
|
|
8087
8087
|
const storeMetadataParams = {
|
|
8088
8088
|
ttl: ttlToUse,
|
|
8089
8089
|
namespace: "UiApi",
|
|
8090
|
-
version: VERSION$
|
|
8090
|
+
version: VERSION$2c,
|
|
8091
8091
|
representationName: RepresentationType$P,
|
|
8092
8092
|
};
|
|
8093
8093
|
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
@@ -8122,7 +8122,7 @@ const notifyUpdateAvailableFactory$2 = (luvio) => {
|
|
|
8122
8122
|
}
|
|
8123
8123
|
});
|
|
8124
8124
|
}
|
|
8125
|
-
const keys = configs.map(c => keyBuilder$
|
|
8125
|
+
const keys = configs.map(c => keyBuilder$2W(luvio, c));
|
|
8126
8126
|
return luvio.notifyStoreUpdateAvailable(keys);
|
|
8127
8127
|
};
|
|
8128
8128
|
};
|
|
@@ -8138,8 +8138,8 @@ function select$2I(luvio, params) {
|
|
|
8138
8138
|
const paginationParams = createPaginationParams$2(params);
|
|
8139
8139
|
return select$2J(paginationParams);
|
|
8140
8140
|
}
|
|
8141
|
-
function keyBuilder$
|
|
8142
|
-
return keyBuilder$
|
|
8141
|
+
function keyBuilder$2V(luvio, params) {
|
|
8142
|
+
return keyBuilder$2W(luvio, {
|
|
8143
8143
|
objectApiName: params.urlParams.objectApiName,
|
|
8144
8144
|
queryString: params.queryParams.q || null,
|
|
8145
8145
|
recentListsOnly: params.queryParams.recentListsOnly || false
|
|
@@ -8150,7 +8150,7 @@ function getResponseCacheKeys$U(storeKeyMap, luvio, resourceParams, response) {
|
|
|
8150
8150
|
}
|
|
8151
8151
|
function ingestSuccess$L(luvio, resourceParams, response, snapshotRefresh) {
|
|
8152
8152
|
const { body } = response;
|
|
8153
|
-
const key = keyBuilder$
|
|
8153
|
+
const key = keyBuilder$2V(luvio, resourceParams);
|
|
8154
8154
|
luvio.storeIngest(key, ingest$1N, body);
|
|
8155
8155
|
const snapshot = luvio.storeLookup({
|
|
8156
8156
|
recordId: key,
|
|
@@ -8166,7 +8166,7 @@ function ingestSuccess$L(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
8166
8166
|
return snapshot;
|
|
8167
8167
|
}
|
|
8168
8168
|
function ingestError$H(luvio, params, error, snapshotRefresh) {
|
|
8169
|
-
const key = keyBuilder$
|
|
8169
|
+
const key = keyBuilder$2V(luvio, params);
|
|
8170
8170
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
8171
8171
|
luvio.storeIngestError(key, errorSnapshot);
|
|
8172
8172
|
return errorSnapshot;
|
|
@@ -8195,9 +8195,9 @@ const getListViewSummaryCollection_ConfigPropertyMetadata = [
|
|
|
8195
8195
|
];
|
|
8196
8196
|
const getListViewSummaryCollection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$R, getListViewSummaryCollection_ConfigPropertyMetadata);
|
|
8197
8197
|
const createResourceParams$V = /*#__PURE__*/ createResourceParams$_(getListViewSummaryCollection_ConfigPropertyMetadata);
|
|
8198
|
-
function keyBuilder$
|
|
8198
|
+
function keyBuilder$2U(luvio, config) {
|
|
8199
8199
|
const resourceParams = createResourceParams$V(config);
|
|
8200
|
-
return keyBuilder$
|
|
8200
|
+
return keyBuilder$2V(luvio, resourceParams);
|
|
8201
8201
|
}
|
|
8202
8202
|
function typeCheckConfig$$(untrustedConfig) {
|
|
8203
8203
|
const config = {};
|
|
@@ -8283,12 +8283,12 @@ function getCachedItemsNumber$2(cacheSnapshot) {
|
|
|
8283
8283
|
return items.length;
|
|
8284
8284
|
}
|
|
8285
8285
|
function getPaginationMetadata$2(luvio, resourceParams) {
|
|
8286
|
-
const key = keyBuilder$
|
|
8286
|
+
const key = keyBuilder$2V(luvio, resourceParams);
|
|
8287
8287
|
const selector = {
|
|
8288
8288
|
recordId: key,
|
|
8289
8289
|
node: {
|
|
8290
8290
|
kind: 'Fragment',
|
|
8291
|
-
version: VERSION$
|
|
8291
|
+
version: VERSION$2c,
|
|
8292
8292
|
private: [],
|
|
8293
8293
|
selections: [
|
|
8294
8294
|
{
|
|
@@ -8331,7 +8331,7 @@ function buildNetworkSnapshotCachePolicy$N(context, coercedAdapterRequestContext
|
|
|
8331
8331
|
function buildCachedSnapshotCachePolicy$N(context, storeLookup) {
|
|
8332
8332
|
const { luvio, config } = context;
|
|
8333
8333
|
const selector = {
|
|
8334
|
-
recordId: keyBuilder$
|
|
8334
|
+
recordId: keyBuilder$2U(luvio, config),
|
|
8335
8335
|
node: adapterFragment$G(luvio, config),
|
|
8336
8336
|
variables: {},
|
|
8337
8337
|
};
|
|
@@ -8361,8 +8361,8 @@ function createPaginationParams$1(params) {
|
|
|
8361
8361
|
pageSize: queryParams.pageSize === undefined ? 50 : queryParams.pageSize
|
|
8362
8362
|
};
|
|
8363
8363
|
}
|
|
8364
|
-
function keyBuilder$
|
|
8365
|
-
return keyBuilder$
|
|
8364
|
+
function keyBuilder$2T(luvio, params) {
|
|
8365
|
+
return keyBuilder$31(luvio, {
|
|
8366
8366
|
listViewApiName: null,
|
|
8367
8367
|
objectApiName: params.urlParams.objectApiName,
|
|
8368
8368
|
type: "mru",
|
|
@@ -8478,7 +8478,7 @@ function buildListUiFragment$1(config, fields) {
|
|
|
8478
8478
|
kind: 'Fragment',
|
|
8479
8479
|
private: ['eTag', 'weakEtag'],
|
|
8480
8480
|
selections: buildSelectionFromFields(...fields.getRecordSelectionFieldSets()),
|
|
8481
|
-
version: VERSION$
|
|
8481
|
+
version: VERSION$2h,
|
|
8482
8482
|
},
|
|
8483
8483
|
},
|
|
8484
8484
|
};
|
|
@@ -8501,7 +8501,7 @@ function buildSnapshotRefresh_getMruListUi(luvio, config) {
|
|
|
8501
8501
|
function onResourceSuccess_getMruListUi(luvio, config, response) {
|
|
8502
8502
|
const { body } = response;
|
|
8503
8503
|
const listInfo = body.info;
|
|
8504
|
-
const listUiKey = keyBuilder$
|
|
8504
|
+
const listUiKey = keyBuilder$31(luvio, {
|
|
8505
8505
|
...listInfo.listReference,
|
|
8506
8506
|
sortBy: body.records.sortBy,
|
|
8507
8507
|
});
|
|
@@ -8525,7 +8525,7 @@ function buildCachedSnapshot$7(luvio, storeLookup, config, listInfo, fields) {
|
|
|
8525
8525
|
const listFields_ = fields || listFields(luvio, config, listInfo);
|
|
8526
8526
|
const resourceParams = createResourceParams$U(config);
|
|
8527
8527
|
const selector = {
|
|
8528
|
-
recordId: keyBuilder$
|
|
8528
|
+
recordId: keyBuilder$2T(luvio, resourceParams),
|
|
8529
8529
|
node: buildListUiFragment$1(config, listFields_),
|
|
8530
8530
|
variables: {},
|
|
8531
8531
|
};
|
|
@@ -8620,7 +8620,7 @@ function onResourceSuccess_getMruListRecords(luvio, config, listInfo, response)
|
|
|
8620
8620
|
const { body } = response;
|
|
8621
8621
|
const { listInfoETag } = body;
|
|
8622
8622
|
const fields = listFields(luvio, config, listInfo).processRecords(body.records);
|
|
8623
|
-
luvio.storeIngest(keyBuilder$
|
|
8623
|
+
luvio.storeIngest(keyBuilder$32(luvio, {
|
|
8624
8624
|
listViewId: listInfoETag,
|
|
8625
8625
|
sortBy: body.sortBy,
|
|
8626
8626
|
objectApiName: listInfo.listReference.objectApiName,
|
|
@@ -8631,7 +8631,7 @@ function onResourceSuccess_getMruListRecords(luvio, config, listInfo, response)
|
|
|
8631
8631
|
}
|
|
8632
8632
|
function onResourceError_getMruListRecords(luvio, config, listInfo, err) {
|
|
8633
8633
|
const errorSnapshot = luvio.errorSnapshot(err, buildSnapshotRefresh_getMruListUi(luvio, config));
|
|
8634
|
-
luvio.storeIngestError(keyBuilder$
|
|
8634
|
+
luvio.storeIngestError(keyBuilder$31(luvio, {
|
|
8635
8635
|
...listInfo.listReference,
|
|
8636
8636
|
sortBy: config.sortBy === undefined ? null : config.sortBy,
|
|
8637
8637
|
}), errorSnapshot);
|
|
@@ -8788,7 +8788,7 @@ function buildListUiFragment(config, context, fields) {
|
|
|
8788
8788
|
kind: 'Fragment',
|
|
8789
8789
|
private: ['eTag', 'weakEtag'],
|
|
8790
8790
|
selections: buildSelectionFromFields(...fields.getRecordSelectionFieldSets()),
|
|
8791
|
-
version: VERSION$
|
|
8791
|
+
version: VERSION$2h,
|
|
8792
8792
|
},
|
|
8793
8793
|
},
|
|
8794
8794
|
};
|
|
@@ -8803,7 +8803,7 @@ function buildListUiFragment(config, context, fields) {
|
|
|
8803
8803
|
return dynamicSelect$6(listRecordCollectionSelectParams, paginationParams);
|
|
8804
8804
|
}
|
|
8805
8805
|
function buildCachedSnapshot$6(luvio, storeLookup, context, config, listInfo, fields) {
|
|
8806
|
-
const listUiKey = keyBuilder$
|
|
8806
|
+
const listUiKey = keyBuilder$31(luvio, {
|
|
8807
8807
|
...listInfo.listReference,
|
|
8808
8808
|
sortBy: getSortBy(config, context),
|
|
8809
8809
|
});
|
|
@@ -8855,7 +8855,7 @@ function prepareRequest_getListUi(config) {
|
|
|
8855
8855
|
}
|
|
8856
8856
|
function onResourceSuccess_getListUi(luvio, context, config, response) {
|
|
8857
8857
|
const { body } = response, listInfo = body.info, { listReference } = listInfo;
|
|
8858
|
-
const listUiKey = keyBuilder$
|
|
8858
|
+
const listUiKey = keyBuilder$31(luvio, {
|
|
8859
8859
|
...listReference,
|
|
8860
8860
|
sortBy: body.records.sortBy,
|
|
8861
8861
|
});
|
|
@@ -8983,7 +8983,7 @@ function onResourceSuccess_getListRecords(luvio, context, config, listInfo, resp
|
|
|
8983
8983
|
const { body } = response;
|
|
8984
8984
|
const { listInfoETag } = body;
|
|
8985
8985
|
const fields = listFields(luvio, config, listInfo).processRecords(body.records);
|
|
8986
|
-
luvio.storeIngest(keyBuilder$
|
|
8986
|
+
luvio.storeIngest(keyBuilder$32(luvio, {
|
|
8987
8987
|
listViewId: listInfoETag,
|
|
8988
8988
|
sortBy: body.sortBy,
|
|
8989
8989
|
objectApiName: listInfo.listReference.objectApiName,
|
|
@@ -8994,7 +8994,7 @@ function onResourceSuccess_getListRecords(luvio, context, config, listInfo, resp
|
|
|
8994
8994
|
}
|
|
8995
8995
|
function onResourceError_getListRecords(luvio, context, config, listInfo, err) {
|
|
8996
8996
|
const errorSnapshot = luvio.errorSnapshot(err);
|
|
8997
|
-
luvio.storeIngestError(keyBuilder$
|
|
8997
|
+
luvio.storeIngestError(keyBuilder$31(luvio, {
|
|
8998
8998
|
...listInfo.listReference,
|
|
8999
8999
|
sortBy: getSortBy(config, context),
|
|
9000
9000
|
}), errorSnapshot);
|
|
@@ -9664,7 +9664,7 @@ function validate$1r(obj, path = 'ThemeInfoRepresentation') {
|
|
|
9664
9664
|
}
|
|
9665
9665
|
|
|
9666
9666
|
const TTL$z = 900000;
|
|
9667
|
-
const VERSION$
|
|
9667
|
+
const VERSION$2b = "ec9370a0cd56f4769fe9ec5cd942ff30";
|
|
9668
9668
|
function validate$1q(obj, path = 'ObjectInfoRepresentation') {
|
|
9669
9669
|
const v_error = (() => {
|
|
9670
9670
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -9947,14 +9947,14 @@ function validate$1q(obj, path = 'ObjectInfoRepresentation') {
|
|
|
9947
9947
|
return v_error === undefined ? null : v_error;
|
|
9948
9948
|
}
|
|
9949
9949
|
const RepresentationType$O = 'ObjectInfoRepresentation';
|
|
9950
|
-
function keyBuilder$
|
|
9950
|
+
function keyBuilder$2S(luvio, config) {
|
|
9951
9951
|
return keyPrefix + '::' + RepresentationType$O + ':' + config.apiName;
|
|
9952
9952
|
}
|
|
9953
9953
|
function keyBuilderFromType$t(luvio, object) {
|
|
9954
9954
|
const keyParams = {
|
|
9955
9955
|
apiName: object.apiName
|
|
9956
9956
|
};
|
|
9957
|
-
return keyBuilder$
|
|
9957
|
+
return keyBuilder$2S(luvio, keyParams);
|
|
9958
9958
|
}
|
|
9959
9959
|
function normalize$H(input, existing, path, luvio, store, timestamp) {
|
|
9960
9960
|
return input;
|
|
@@ -9962,7 +9962,7 @@ function normalize$H(input, existing, path, luvio, store, timestamp) {
|
|
|
9962
9962
|
const select$2H = function ObjectInfoRepresentationSelect() {
|
|
9963
9963
|
return {
|
|
9964
9964
|
kind: 'Fragment',
|
|
9965
|
-
version: VERSION$
|
|
9965
|
+
version: VERSION$2b,
|
|
9966
9966
|
private: [
|
|
9967
9967
|
'eTag'
|
|
9968
9968
|
],
|
|
@@ -10079,7 +10079,7 @@ const ingest$1M = function ObjectInfoRepresentationIngest(input, path, luvio, st
|
|
|
10079
10079
|
}
|
|
10080
10080
|
const key = keyBuilderFromType$t(luvio, input);
|
|
10081
10081
|
const ttlToUse = TTL$z;
|
|
10082
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$H, "UiApi", VERSION$
|
|
10082
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$H, "UiApi", VERSION$2b, RepresentationType$O, equals$V);
|
|
10083
10083
|
return createLink$1(key);
|
|
10084
10084
|
};
|
|
10085
10085
|
function getTypeCacheKeys$1O(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -10095,8 +10095,8 @@ function getTypeCacheKeys$1O(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
10095
10095
|
function select$2G(luvio, params) {
|
|
10096
10096
|
return select$2H();
|
|
10097
10097
|
}
|
|
10098
|
-
function keyBuilder$
|
|
10099
|
-
return keyBuilder$
|
|
10098
|
+
function keyBuilder$2R(luvio, params) {
|
|
10099
|
+
return keyBuilder$2S(luvio, {
|
|
10100
10100
|
apiName: params.urlParams.objectApiName
|
|
10101
10101
|
});
|
|
10102
10102
|
}
|
|
@@ -10105,7 +10105,7 @@ function getResponseCacheKeys$T(storeKeyMap, luvio, resourceParams, response) {
|
|
|
10105
10105
|
}
|
|
10106
10106
|
function ingestSuccess$K(luvio, resourceParams, response, snapshotRefresh) {
|
|
10107
10107
|
const { body } = response;
|
|
10108
|
-
const key = keyBuilder$
|
|
10108
|
+
const key = keyBuilder$2R(luvio, resourceParams);
|
|
10109
10109
|
luvio.storeIngest(key, ingest$1M, body);
|
|
10110
10110
|
const snapshot = luvio.storeLookup({
|
|
10111
10111
|
recordId: key,
|
|
@@ -10121,12 +10121,12 @@ function ingestSuccess$K(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
10121
10121
|
return snapshot;
|
|
10122
10122
|
}
|
|
10123
10123
|
function ingestError$G(luvio, params, error, snapshotRefresh) {
|
|
10124
|
-
const key = keyBuilder$
|
|
10124
|
+
const key = keyBuilder$2R(luvio, params);
|
|
10125
10125
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
10126
10126
|
const storeMetadataParams = {
|
|
10127
10127
|
ttl: TTL$z,
|
|
10128
10128
|
namespace: keyPrefix,
|
|
10129
|
-
version: VERSION$
|
|
10129
|
+
version: VERSION$2b,
|
|
10130
10130
|
representationName: RepresentationType$O
|
|
10131
10131
|
};
|
|
10132
10132
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -10152,9 +10152,9 @@ const getObjectInfo_ConfigPropertyMetadata = [
|
|
|
10152
10152
|
];
|
|
10153
10153
|
const getObjectInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$P, getObjectInfo_ConfigPropertyMetadata);
|
|
10154
10154
|
const createResourceParams$T = /*#__PURE__*/ createResourceParams$_(getObjectInfo_ConfigPropertyMetadata);
|
|
10155
|
-
function keyBuilder$
|
|
10155
|
+
function keyBuilder$2Q(luvio, config) {
|
|
10156
10156
|
const resourceParams = createResourceParams$T(config);
|
|
10157
|
-
return keyBuilder$
|
|
10157
|
+
return keyBuilder$2R(luvio, resourceParams);
|
|
10158
10158
|
}
|
|
10159
10159
|
function typeCheckConfig$Z(untrustedConfig) {
|
|
10160
10160
|
const config = {};
|
|
@@ -10213,7 +10213,7 @@ function buildNetworkSnapshotCachePolicy$M(context, coercedAdapterRequestContext
|
|
|
10213
10213
|
function buildCachedSnapshotCachePolicy$M(context, storeLookup) {
|
|
10214
10214
|
const { luvio, config } = context;
|
|
10215
10215
|
const selector = {
|
|
10216
|
-
recordId: keyBuilder$
|
|
10216
|
+
recordId: keyBuilder$2Q(luvio, config),
|
|
10217
10217
|
node: adapterFragment$F(luvio, config),
|
|
10218
10218
|
variables: {},
|
|
10219
10219
|
};
|
|
@@ -10517,7 +10517,7 @@ function validate$1l(obj, path = 'RecordLayoutSectionRepresentation') {
|
|
|
10517
10517
|
}
|
|
10518
10518
|
|
|
10519
10519
|
const TTL$y = 900000;
|
|
10520
|
-
const VERSION$
|
|
10520
|
+
const VERSION$2a = "fb515e25a89ca1ec154dc865e72b913a";
|
|
10521
10521
|
function validate$1k(obj, path = 'RecordLayoutRepresentation') {
|
|
10522
10522
|
const v_error = (() => {
|
|
10523
10523
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -10650,7 +10650,7 @@ function validate$1k(obj, path = 'RecordLayoutRepresentation') {
|
|
|
10650
10650
|
return v_error === undefined ? null : v_error;
|
|
10651
10651
|
}
|
|
10652
10652
|
const RepresentationType$N = 'RecordLayoutRepresentation';
|
|
10653
|
-
function keyBuilder$
|
|
10653
|
+
function keyBuilder$2P(luvio, config) {
|
|
10654
10654
|
return keyPrefix + '::' + RepresentationType$N + ':' + (config.recordTypeId === null ? '' : config.recordTypeId) + ':' + (config.objectApiName === null ? '' : config.objectApiName) + ':' + config.layoutType + ':' + config.mode;
|
|
10655
10655
|
}
|
|
10656
10656
|
function keyBuilderFromType$s(luvio, object) {
|
|
@@ -10660,7 +10660,7 @@ function keyBuilderFromType$s(luvio, object) {
|
|
|
10660
10660
|
layoutType: object.layoutType,
|
|
10661
10661
|
mode: object.mode
|
|
10662
10662
|
};
|
|
10663
|
-
return keyBuilder$
|
|
10663
|
+
return keyBuilder$2P(luvio, keyParams);
|
|
10664
10664
|
}
|
|
10665
10665
|
function normalize$G(input, existing, path, luvio, store, timestamp) {
|
|
10666
10666
|
return input;
|
|
@@ -10668,7 +10668,7 @@ function normalize$G(input, existing, path, luvio, store, timestamp) {
|
|
|
10668
10668
|
const select$2F = function RecordLayoutRepresentationSelect() {
|
|
10669
10669
|
return {
|
|
10670
10670
|
kind: 'Fragment',
|
|
10671
|
-
version: VERSION$
|
|
10671
|
+
version: VERSION$2a,
|
|
10672
10672
|
private: [
|
|
10673
10673
|
'eTag'
|
|
10674
10674
|
],
|
|
@@ -10721,7 +10721,7 @@ const ingest$1L = function RecordLayoutRepresentationIngest(input, path, luvio,
|
|
|
10721
10721
|
}
|
|
10722
10722
|
const key = keyBuilderFromType$s(luvio, input);
|
|
10723
10723
|
const ttlToUse = TTL$y;
|
|
10724
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$G, "UiApi", VERSION$
|
|
10724
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$G, "UiApi", VERSION$2a, RepresentationType$N, equals$U);
|
|
10725
10725
|
return createLink$1(key);
|
|
10726
10726
|
};
|
|
10727
10727
|
function getTypeCacheKeys$1N(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -10776,7 +10776,7 @@ function validate$1j(obj, path = 'RecordLayoutSectionUserStateRepresentation') {
|
|
|
10776
10776
|
}
|
|
10777
10777
|
|
|
10778
10778
|
const TTL$x = 900000;
|
|
10779
|
-
const VERSION$
|
|
10779
|
+
const VERSION$29 = "4ba42e1fa0fb00cf78fce86082da41c9";
|
|
10780
10780
|
function validate$1i(obj, path = 'RecordLayoutUserStateRepresentation') {
|
|
10781
10781
|
const v_error = (() => {
|
|
10782
10782
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -10828,7 +10828,7 @@ function validate$1i(obj, path = 'RecordLayoutUserStateRepresentation') {
|
|
|
10828
10828
|
return v_error === undefined ? null : v_error;
|
|
10829
10829
|
}
|
|
10830
10830
|
const RepresentationType$M = 'RecordLayoutUserStateRepresentation';
|
|
10831
|
-
function keyBuilder$
|
|
10831
|
+
function keyBuilder$2O(luvio, config) {
|
|
10832
10832
|
return keyPrefix + '::' + RepresentationType$M + ':' + config.recordTypeId + ':' + config.apiName + ':' + config.layoutType + ':' + config.mode;
|
|
10833
10833
|
}
|
|
10834
10834
|
function keyBuilderFromType$r(luvio, object) {
|
|
@@ -10838,7 +10838,7 @@ function keyBuilderFromType$r(luvio, object) {
|
|
|
10838
10838
|
layoutType: object.layoutType,
|
|
10839
10839
|
mode: object.mode
|
|
10840
10840
|
};
|
|
10841
|
-
return keyBuilder$
|
|
10841
|
+
return keyBuilder$2O(luvio, keyParams);
|
|
10842
10842
|
}
|
|
10843
10843
|
function normalize$F(input, existing, path, luvio, store, timestamp) {
|
|
10844
10844
|
return input;
|
|
@@ -10846,7 +10846,7 @@ function normalize$F(input, existing, path, luvio, store, timestamp) {
|
|
|
10846
10846
|
const select$2E = function RecordLayoutUserStateRepresentationSelect() {
|
|
10847
10847
|
return {
|
|
10848
10848
|
kind: 'Fragment',
|
|
10849
|
-
version: VERSION$
|
|
10849
|
+
version: VERSION$29,
|
|
10850
10850
|
private: [
|
|
10851
10851
|
'apiName',
|
|
10852
10852
|
'recordTypeId',
|
|
@@ -10881,7 +10881,7 @@ const ingest$1K = function RecordLayoutUserStateRepresentationIngest(input, path
|
|
|
10881
10881
|
}
|
|
10882
10882
|
const key = keyBuilderFromType$r(luvio, input);
|
|
10883
10883
|
const ttlToUse = TTL$x;
|
|
10884
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$F, "UiApi", VERSION$
|
|
10884
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$F, "UiApi", VERSION$29, RepresentationType$M, equals$T);
|
|
10885
10885
|
return createLink$1(key);
|
|
10886
10886
|
};
|
|
10887
10887
|
function getTypeCacheKeys$1M(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -10895,7 +10895,7 @@ function getTypeCacheKeys$1M(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
10895
10895
|
}
|
|
10896
10896
|
|
|
10897
10897
|
const TTL$w = 900000;
|
|
10898
|
-
const VERSION$
|
|
10898
|
+
const VERSION$28 = "49cdd4bc235a6094c3559cc7735b3b6d";
|
|
10899
10899
|
function validate$1h(obj, path = 'RecordUiRepresentation') {
|
|
10900
10900
|
const v_error = (() => {
|
|
10901
10901
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -11165,7 +11165,7 @@ const ingest$1J = function RecordUiRepresentationIngest(input, path, luvio, stor
|
|
|
11165
11165
|
}
|
|
11166
11166
|
const key = path.fullPath;
|
|
11167
11167
|
const ttlToUse = TTL$w;
|
|
11168
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$E, "UiApi", VERSION$
|
|
11168
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$E, "UiApi", VERSION$28, RepresentationType$L, equals$S);
|
|
11169
11169
|
return createLink$1(key);
|
|
11170
11170
|
};
|
|
11171
11171
|
|
|
@@ -11263,7 +11263,7 @@ function buildRecordUiSelector(recordDefs, layoutTypes, modes, recordOptionalFie
|
|
|
11263
11263
|
return {
|
|
11264
11264
|
kind: 'Fragment',
|
|
11265
11265
|
private: ['eTag'],
|
|
11266
|
-
version: VERSION$
|
|
11266
|
+
version: VERSION$28,
|
|
11267
11267
|
selections: [
|
|
11268
11268
|
{
|
|
11269
11269
|
kind: 'Link',
|
|
@@ -11464,7 +11464,7 @@ function collectRecordDefs(resp, recordIds) {
|
|
|
11464
11464
|
}
|
|
11465
11465
|
return recordDefs;
|
|
11466
11466
|
}
|
|
11467
|
-
function keyBuilder$
|
|
11467
|
+
function keyBuilder$2N(recordIds, layoutTypes, modes, optionalFields) {
|
|
11468
11468
|
const joinedRecordIds = recordIds.sort().join(',');
|
|
11469
11469
|
const joinedOptionalFields = optionalFields.sort().join(',');
|
|
11470
11470
|
const joinedLayoutTypes = layoutTypes.sort().join(',');
|
|
@@ -11498,7 +11498,7 @@ function markRecordUiOptionalFields(optionalFields, recordLookupFields, recordNo
|
|
|
11498
11498
|
}
|
|
11499
11499
|
function prepareRequest$4(luvio, config) {
|
|
11500
11500
|
const { recordIds, layoutTypes, modes, optionalFields } = config;
|
|
11501
|
-
const key = keyBuilder$
|
|
11501
|
+
const key = keyBuilder$2N(recordIds, layoutTypes, modes, optionalFields);
|
|
11502
11502
|
const selectorKey = buildCachedSelectorKey(key);
|
|
11503
11503
|
const resourceRequest = createResourceRequest$X({
|
|
11504
11504
|
urlParams: {
|
|
@@ -11591,7 +11591,7 @@ function onFetchResponseSuccess$I(luvio, config, selectorKey, key, responseBody)
|
|
|
11591
11591
|
const validRecordIds = [];
|
|
11592
11592
|
for (let i = 0, len = recordIds.length; i < len; i += 1) {
|
|
11593
11593
|
const recordId = recordIds[i];
|
|
11594
|
-
const recordKey = keyBuilder$
|
|
11594
|
+
const recordKey = keyBuilder$35(luvio, { recordId });
|
|
11595
11595
|
const node = luvio.getNode(recordKey);
|
|
11596
11596
|
if (isGraphNode(node)) {
|
|
11597
11597
|
recordNodes.push(node);
|
|
@@ -11662,7 +11662,7 @@ function publishDependencies(luvio, recordIds, depKeys) {
|
|
|
11662
11662
|
function buildCachedSelectorSnapshot(context, storeLookup) {
|
|
11663
11663
|
const { config } = context;
|
|
11664
11664
|
const { recordIds, layoutTypes, modes, optionalFields } = config;
|
|
11665
|
-
const key = keyBuilder$
|
|
11665
|
+
const key = keyBuilder$2N(recordIds, layoutTypes, modes, optionalFields);
|
|
11666
11666
|
const cachedSelectorKey = buildCachedSelectorKey(key);
|
|
11667
11667
|
return storeLookup({
|
|
11668
11668
|
recordId: cachedSelectorKey,
|
|
@@ -11765,7 +11765,7 @@ function refresh(luvio, config) {
|
|
|
11765
11765
|
return buildNetworkSnapshot$X(luvio, recordUiConfig).then((snapshot) => {
|
|
11766
11766
|
const refresh = buildSnapshotRefresh$3(luvio, config);
|
|
11767
11767
|
if (isErrorSnapshot(snapshot)) {
|
|
11768
|
-
var recordKey = keyBuilder$
|
|
11768
|
+
var recordKey = keyBuilder$35(luvio, { recordId });
|
|
11769
11769
|
luvio.storeIngestError(recordKey, snapshot);
|
|
11770
11770
|
return luvio.storeBroadcast().then(() => luvio.errorSnapshot(snapshot.error, refresh));
|
|
11771
11771
|
}
|
|
@@ -11936,14 +11936,14 @@ function buildRecordLayoutCachedSnapshot(context, storeLookup) {
|
|
|
11936
11936
|
const { config, luvio } = context;
|
|
11937
11937
|
// get cached copy of the record
|
|
11938
11938
|
const { recordId } = config;
|
|
11939
|
-
const storeKey = keyBuilder$
|
|
11939
|
+
const storeKey = keyBuilder$35(luvio, { recordId });
|
|
11940
11940
|
const recordSnapshot = storeLookup({
|
|
11941
11941
|
recordId: storeKey,
|
|
11942
11942
|
node: {
|
|
11943
11943
|
kind: 'Fragment',
|
|
11944
11944
|
private: [],
|
|
11945
11945
|
selections: recordLayoutFragmentSelector,
|
|
11946
|
-
version: VERSION$
|
|
11946
|
+
version: VERSION$2h,
|
|
11947
11947
|
},
|
|
11948
11948
|
variables: {},
|
|
11949
11949
|
});
|
|
@@ -11963,7 +11963,7 @@ const buildObjectInfoCacheSnapshot = (recordLayoutSnapshot) => (context, storeLo
|
|
|
11963
11963
|
};
|
|
11964
11964
|
const buildLayoutModeCacheSnapshot = (apiName, recordTypeId, layoutType, mode) => (context, storeLookup) => {
|
|
11965
11965
|
const { luvio } = context;
|
|
11966
|
-
const key = keyBuilder$
|
|
11966
|
+
const key = keyBuilder$2P(luvio, {
|
|
11967
11967
|
objectApiName: apiName,
|
|
11968
11968
|
recordTypeId,
|
|
11969
11969
|
layoutType,
|
|
@@ -12197,7 +12197,7 @@ function coerceKeyParams(config) {
|
|
|
12197
12197
|
}
|
|
12198
12198
|
const notifyChangeFactory = (luvio) => {
|
|
12199
12199
|
return function getUiApiRecordsByRecordIdNotifyChange(configs) {
|
|
12200
|
-
const keys = configs.map((c) => keyBuilder$
|
|
12200
|
+
const keys = configs.map((c) => keyBuilder$35(luvio, coerceKeyParams(c)));
|
|
12201
12201
|
luvio.getNotifyChangeStoreEntries(keys).then((entries) => {
|
|
12202
12202
|
const responsePromises = [];
|
|
12203
12203
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
@@ -12277,7 +12277,7 @@ const notifyUpdateAvailableFactory$1 = (luvio) => {
|
|
|
12277
12277
|
};
|
|
12278
12278
|
};
|
|
12279
12279
|
|
|
12280
|
-
const VERSION$
|
|
12280
|
+
const VERSION$27 = "7e00c51105cbf56a79ab8fcddf462c1e";
|
|
12281
12281
|
function validate$1g(obj, path = 'QuickActionExecutionRepresentation') {
|
|
12282
12282
|
const v_error = (() => {
|
|
12283
12283
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -12364,14 +12364,14 @@ function validate$1g(obj, path = 'QuickActionExecutionRepresentation') {
|
|
|
12364
12364
|
return v_error === undefined ? null : v_error;
|
|
12365
12365
|
}
|
|
12366
12366
|
const RepresentationType$K = 'QuickActionExecutionRepresentation';
|
|
12367
|
-
function keyBuilder$
|
|
12367
|
+
function keyBuilder$2M(luvio, config) {
|
|
12368
12368
|
return keyPrefix + '::' + RepresentationType$K + ':' + config.id;
|
|
12369
12369
|
}
|
|
12370
12370
|
function keyBuilderFromType$q(luvio, object) {
|
|
12371
12371
|
const keyParams = {
|
|
12372
12372
|
id: object.id
|
|
12373
12373
|
};
|
|
12374
|
-
return keyBuilder$
|
|
12374
|
+
return keyBuilder$2M(luvio, keyParams);
|
|
12375
12375
|
}
|
|
12376
12376
|
function normalize$D(input, existing, path, luvio, store, timestamp) {
|
|
12377
12377
|
return input;
|
|
@@ -12379,7 +12379,7 @@ function normalize$D(input, existing, path, luvio, store, timestamp) {
|
|
|
12379
12379
|
const select$2D = function QuickActionExecutionRepresentationSelect() {
|
|
12380
12380
|
return {
|
|
12381
12381
|
kind: 'Fragment',
|
|
12382
|
-
version: VERSION$
|
|
12382
|
+
version: VERSION$27,
|
|
12383
12383
|
private: [
|
|
12384
12384
|
'eTag'
|
|
12385
12385
|
],
|
|
@@ -12458,7 +12458,7 @@ const ingest$1I = function QuickActionExecutionRepresentationIngest(input, path,
|
|
|
12458
12458
|
}
|
|
12459
12459
|
const key = keyBuilderFromType$q(luvio, input);
|
|
12460
12460
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
12461
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$D, "UiApi", VERSION$
|
|
12461
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$D, "UiApi", VERSION$27, RepresentationType$K, equals$R);
|
|
12462
12462
|
return createLink$1(key);
|
|
12463
12463
|
};
|
|
12464
12464
|
function getTypeCacheKeys$1L(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -12472,7 +12472,7 @@ function getTypeCacheKeys$1L(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
12472
12472
|
}
|
|
12473
12473
|
|
|
12474
12474
|
const TTL$v = 900000;
|
|
12475
|
-
const VERSION$
|
|
12475
|
+
const VERSION$26 = "993b0a7bce6056c4f57ed300ec153d9c";
|
|
12476
12476
|
function validate$1f(obj, path = 'QuickActionDefaultsRepresentation') {
|
|
12477
12477
|
const v_error = (() => {
|
|
12478
12478
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -12511,14 +12511,14 @@ function validate$1f(obj, path = 'QuickActionDefaultsRepresentation') {
|
|
|
12511
12511
|
return v_error === undefined ? null : v_error;
|
|
12512
12512
|
}
|
|
12513
12513
|
const RepresentationType$J = 'QuickActionDefaultsRepresentation';
|
|
12514
|
-
function keyBuilder$
|
|
12514
|
+
function keyBuilder$2L(luvio, config) {
|
|
12515
12515
|
return keyPrefix + '::' + RepresentationType$J + ':' + config.actionApiName;
|
|
12516
12516
|
}
|
|
12517
12517
|
function keyBuilderFromType$p(luvio, object) {
|
|
12518
12518
|
const keyParams = {
|
|
12519
12519
|
actionApiName: object.actionApiName
|
|
12520
12520
|
};
|
|
12521
|
-
return keyBuilder$
|
|
12521
|
+
return keyBuilder$2L(luvio, keyParams);
|
|
12522
12522
|
}
|
|
12523
12523
|
function dynamicNormalize$4(ingestParams) {
|
|
12524
12524
|
return function normalize_dynamic(input, existing, path, luvio, store, timestamp) {
|
|
@@ -12553,7 +12553,7 @@ const dynamicSelect$5 = function dynamicQuickActionDefaultsRepresentationSelect(
|
|
|
12553
12553
|
} : params.fields;
|
|
12554
12554
|
return {
|
|
12555
12555
|
kind: 'Fragment',
|
|
12556
|
-
version: VERSION$
|
|
12556
|
+
version: VERSION$26,
|
|
12557
12557
|
private: [
|
|
12558
12558
|
'eTag'
|
|
12559
12559
|
],
|
|
@@ -12624,7 +12624,7 @@ const notifyUpdateAvailableFactory = (luvio) => {
|
|
|
12624
12624
|
}
|
|
12625
12625
|
});
|
|
12626
12626
|
}
|
|
12627
|
-
const keys = configs.map(c => keyBuilder$
|
|
12627
|
+
const keys = configs.map(c => keyBuilder$2L(luvio, c));
|
|
12628
12628
|
return luvio.notifyStoreUpdateAvailable(keys);
|
|
12629
12629
|
};
|
|
12630
12630
|
};
|
|
@@ -12651,7 +12651,7 @@ function coerceFormFactor(form) {
|
|
|
12651
12651
|
return undefined;
|
|
12652
12652
|
}
|
|
12653
12653
|
|
|
12654
|
-
const VERSION$
|
|
12654
|
+
const VERSION$25 = "3f49d751896cf66e6e29788d8880e2cc";
|
|
12655
12655
|
function validate$1e(obj, path = 'PlatformActionRepresentation') {
|
|
12656
12656
|
const v_error = (() => {
|
|
12657
12657
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -12987,7 +12987,7 @@ function validate$1e(obj, path = 'PlatformActionRepresentation') {
|
|
|
12987
12987
|
return v_error === undefined ? null : v_error;
|
|
12988
12988
|
}
|
|
12989
12989
|
const RepresentationType$I = 'PlatformActionRepresentation';
|
|
12990
|
-
function keyBuilder$
|
|
12990
|
+
function keyBuilder$2K(luvio, config) {
|
|
12991
12991
|
return keyPrefix + '::' + RepresentationType$I + ':' + config.externalId + ':' + (config.relatedSourceObject === null ? '' : config.relatedSourceObject) + ':' + (config.relatedListRecordId === null ? '' : config.relatedListRecordId);
|
|
12992
12992
|
}
|
|
12993
12993
|
function keyBuilderFromType$o(luvio, object) {
|
|
@@ -12996,7 +12996,7 @@ function keyBuilderFromType$o(luvio, object) {
|
|
|
12996
12996
|
relatedSourceObject: object.relatedSourceObject,
|
|
12997
12997
|
relatedListRecordId: object.relatedListRecordId
|
|
12998
12998
|
};
|
|
12999
|
-
return keyBuilder$
|
|
12999
|
+
return keyBuilder$2K(luvio, keyParams);
|
|
13000
13000
|
}
|
|
13001
13001
|
function normalize$C(input, existing, path, luvio, store, timestamp) {
|
|
13002
13002
|
return input;
|
|
@@ -13004,7 +13004,7 @@ function normalize$C(input, existing, path, luvio, store, timestamp) {
|
|
|
13004
13004
|
const select$2C = function PlatformActionRepresentationSelect() {
|
|
13005
13005
|
return {
|
|
13006
13006
|
kind: 'Fragment',
|
|
13007
|
-
version: VERSION$
|
|
13007
|
+
version: VERSION$25,
|
|
13008
13008
|
private: [
|
|
13009
13009
|
'id'
|
|
13010
13010
|
],
|
|
@@ -13191,7 +13191,7 @@ const ingest$1H = function PlatformActionRepresentationIngest(input, path, luvio
|
|
|
13191
13191
|
}
|
|
13192
13192
|
const key = keyBuilderFromType$o(luvio, input);
|
|
13193
13193
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
13194
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$C, "UiApi", VERSION$
|
|
13194
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$C, "UiApi", VERSION$25, RepresentationType$I, equals$P);
|
|
13195
13195
|
return createLink$1(key);
|
|
13196
13196
|
};
|
|
13197
13197
|
function getTypeCacheKeys$1J(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -13204,7 +13204,7 @@ function getTypeCacheKeys$1J(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
13204
13204
|
});
|
|
13205
13205
|
}
|
|
13206
13206
|
|
|
13207
|
-
const VERSION$
|
|
13207
|
+
const VERSION$24 = "378d506f563a4bd724b322d440df33d1";
|
|
13208
13208
|
function validate$1d(obj, path = 'EntityActionRepresentation') {
|
|
13209
13209
|
const v_error = (() => {
|
|
13210
13210
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -13243,14 +13243,14 @@ function validate$1d(obj, path = 'EntityActionRepresentation') {
|
|
|
13243
13243
|
return v_error === undefined ? null : v_error;
|
|
13244
13244
|
}
|
|
13245
13245
|
const RepresentationType$H = 'EntityActionRepresentation';
|
|
13246
|
-
function keyBuilder$
|
|
13246
|
+
function keyBuilder$2J(luvio, config) {
|
|
13247
13247
|
return keyPrefix + '::' + RepresentationType$H + ':' + config.url;
|
|
13248
13248
|
}
|
|
13249
13249
|
function keyBuilderFromType$n(luvio, object) {
|
|
13250
13250
|
const keyParams = {
|
|
13251
13251
|
url: object.url
|
|
13252
13252
|
};
|
|
13253
|
-
return keyBuilder$
|
|
13253
|
+
return keyBuilder$2J(luvio, keyParams);
|
|
13254
13254
|
}
|
|
13255
13255
|
function normalize$B(input, existing, path, luvio, store, timestamp) {
|
|
13256
13256
|
const input_actions = input.actions;
|
|
@@ -13274,7 +13274,7 @@ function normalize$B(input, existing, path, luvio, store, timestamp) {
|
|
|
13274
13274
|
const select$2B = function EntityActionRepresentationSelect() {
|
|
13275
13275
|
return {
|
|
13276
13276
|
kind: 'Fragment',
|
|
13277
|
-
version: VERSION$
|
|
13277
|
+
version: VERSION$24,
|
|
13278
13278
|
private: [
|
|
13279
13279
|
'links',
|
|
13280
13280
|
'url'
|
|
@@ -13326,7 +13326,7 @@ const ingest$1G = function EntityActionRepresentationIngest(input, path, luvio,
|
|
|
13326
13326
|
}
|
|
13327
13327
|
const key = keyBuilderFromType$n(luvio, input);
|
|
13328
13328
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
13329
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$B, "UiApi", VERSION$
|
|
13329
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$B, "UiApi", VERSION$24, RepresentationType$H, equals$O);
|
|
13330
13330
|
return createLink$1(key);
|
|
13331
13331
|
};
|
|
13332
13332
|
function getTypeCacheKeys$1I(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -13344,7 +13344,7 @@ function getTypeCacheKeys$1I(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
13344
13344
|
}
|
|
13345
13345
|
|
|
13346
13346
|
const TTL$u = 300000;
|
|
13347
|
-
const VERSION$
|
|
13347
|
+
const VERSION$23 = "e485d96c1402a9ca2f56e56485af0216";
|
|
13348
13348
|
function validate$1c(obj, path = 'ActionRepresentation') {
|
|
13349
13349
|
const v_error = (() => {
|
|
13350
13350
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -13403,7 +13403,7 @@ function normalize$A(input, existing, path, luvio, store, timestamp) {
|
|
|
13403
13403
|
const select$2A = function ActionRepresentationSelect() {
|
|
13404
13404
|
return {
|
|
13405
13405
|
kind: 'Fragment',
|
|
13406
|
-
version: VERSION$
|
|
13406
|
+
version: VERSION$23,
|
|
13407
13407
|
private: [
|
|
13408
13408
|
'eTag',
|
|
13409
13409
|
'url'
|
|
@@ -13450,7 +13450,7 @@ const ingest$1F = function ActionRepresentationIngest(input, path, luvio, store,
|
|
|
13450
13450
|
}
|
|
13451
13451
|
const key = path.fullPath;
|
|
13452
13452
|
const ttlToUse = TTL$u;
|
|
13453
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$A, "UiApi", VERSION$
|
|
13453
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$A, "UiApi", VERSION$23, RepresentationType$G, equals$N);
|
|
13454
13454
|
return createLink$1(key);
|
|
13455
13455
|
};
|
|
13456
13456
|
function getTypeCacheKeys$1H(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -13473,15 +13473,15 @@ function getTypeCacheKeys$1H(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
13473
13473
|
function select$2z(luvio, params) {
|
|
13474
13474
|
return select$2A();
|
|
13475
13475
|
}
|
|
13476
|
-
function keyBuilder$
|
|
13476
|
+
function keyBuilder$2I(luvio, params) {
|
|
13477
13477
|
return keyPrefix + '::ActionRepresentation:(' + 'actionTypes:' + params.queryParams.actionTypes + ',' + 'apiNames:' + params.queryParams.apiNames + ',' + 'formFactor:' + params.queryParams.formFactor + ',' + 'retrievalMode:' + params.queryParams.retrievalMode + ',' + 'sections:' + params.queryParams.sections + ')';
|
|
13478
13478
|
}
|
|
13479
13479
|
function getResponseCacheKeys$S(storeKeyMap, luvio, resourceParams, response) {
|
|
13480
|
-
getTypeCacheKeys$1H(storeKeyMap, luvio, response, () => keyBuilder$
|
|
13480
|
+
getTypeCacheKeys$1H(storeKeyMap, luvio, response, () => keyBuilder$2I(luvio, resourceParams));
|
|
13481
13481
|
}
|
|
13482
13482
|
function ingestSuccess$J(luvio, resourceParams, response, snapshotRefresh) {
|
|
13483
13483
|
const { body } = response;
|
|
13484
|
-
const key = keyBuilder$
|
|
13484
|
+
const key = keyBuilder$2I(luvio, resourceParams);
|
|
13485
13485
|
luvio.storeIngest(key, ingest$1F, body);
|
|
13486
13486
|
const snapshot = luvio.storeLookup({
|
|
13487
13487
|
recordId: key,
|
|
@@ -13497,12 +13497,12 @@ function ingestSuccess$J(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
13497
13497
|
return snapshot;
|
|
13498
13498
|
}
|
|
13499
13499
|
function ingestError$F(luvio, params, error, snapshotRefresh) {
|
|
13500
|
-
const key = keyBuilder$
|
|
13500
|
+
const key = keyBuilder$2I(luvio, params);
|
|
13501
13501
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
13502
13502
|
const storeMetadataParams = {
|
|
13503
13503
|
ttl: TTL$u,
|
|
13504
13504
|
namespace: keyPrefix,
|
|
13505
|
-
version: VERSION$
|
|
13505
|
+
version: VERSION$23,
|
|
13506
13506
|
representationName: RepresentationType$G
|
|
13507
13507
|
};
|
|
13508
13508
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -13532,9 +13532,9 @@ const getGlobalActions_ConfigPropertyMetadata = [
|
|
|
13532
13532
|
];
|
|
13533
13533
|
const getGlobalActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$O, getGlobalActions_ConfigPropertyMetadata);
|
|
13534
13534
|
const createResourceParams$S = /*#__PURE__*/ createResourceParams$_(getGlobalActions_ConfigPropertyMetadata);
|
|
13535
|
-
function keyBuilder$
|
|
13535
|
+
function keyBuilder$2H(luvio, config) {
|
|
13536
13536
|
const resourceParams = createResourceParams$S(config);
|
|
13537
|
-
return keyBuilder$
|
|
13537
|
+
return keyBuilder$2I(luvio, resourceParams);
|
|
13538
13538
|
}
|
|
13539
13539
|
function typeCheckConfig$X(untrustedConfig) {
|
|
13540
13540
|
const config = {};
|
|
@@ -13593,7 +13593,7 @@ function buildNetworkSnapshotCachePolicy$L(context, coercedAdapterRequestContext
|
|
|
13593
13593
|
function buildCachedSnapshotCachePolicy$L(context, storeLookup) {
|
|
13594
13594
|
const { luvio, config } = context;
|
|
13595
13595
|
const selector = {
|
|
13596
|
-
recordId: keyBuilder$
|
|
13596
|
+
recordId: keyBuilder$2H(luvio, config),
|
|
13597
13597
|
node: adapterFragment$E(luvio, config),
|
|
13598
13598
|
variables: {},
|
|
13599
13599
|
};
|
|
@@ -13614,7 +13614,7 @@ const getGlobalActionsAdapterFactory = (luvio) => function UiApi__getGlobalActio
|
|
|
13614
13614
|
};
|
|
13615
13615
|
|
|
13616
13616
|
const TTL$t = 900000;
|
|
13617
|
-
const VERSION$
|
|
13617
|
+
const VERSION$22 = "35f3eec8ce7f6001c6d5d17821b75bb9";
|
|
13618
13618
|
function validate$1b(obj, path = 'QuickActionLayoutRepresentation') {
|
|
13619
13619
|
const v_error = (() => {
|
|
13620
13620
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -13642,14 +13642,14 @@ function validate$1b(obj, path = 'QuickActionLayoutRepresentation') {
|
|
|
13642
13642
|
return v_error === undefined ? null : v_error;
|
|
13643
13643
|
}
|
|
13644
13644
|
const RepresentationType$F = 'QuickActionLayoutRepresentation';
|
|
13645
|
-
function keyBuilder$
|
|
13645
|
+
function keyBuilder$2G(luvio, config) {
|
|
13646
13646
|
return keyPrefix + '::' + RepresentationType$F + ':' + config.actionApiName;
|
|
13647
13647
|
}
|
|
13648
13648
|
function keyBuilderFromType$m(luvio, object) {
|
|
13649
13649
|
const keyParams = {
|
|
13650
13650
|
actionApiName: object.actionApiName
|
|
13651
13651
|
};
|
|
13652
|
-
return keyBuilder$
|
|
13652
|
+
return keyBuilder$2G(luvio, keyParams);
|
|
13653
13653
|
}
|
|
13654
13654
|
function normalize$z(input, existing, path, luvio, store, timestamp) {
|
|
13655
13655
|
return input;
|
|
@@ -13657,7 +13657,7 @@ function normalize$z(input, existing, path, luvio, store, timestamp) {
|
|
|
13657
13657
|
const select$2y = function QuickActionLayoutRepresentationSelect() {
|
|
13658
13658
|
return {
|
|
13659
13659
|
kind: 'Fragment',
|
|
13660
|
-
version: VERSION$
|
|
13660
|
+
version: VERSION$22,
|
|
13661
13661
|
private: [
|
|
13662
13662
|
'eTag'
|
|
13663
13663
|
],
|
|
@@ -13689,7 +13689,7 @@ const ingest$1E = function QuickActionLayoutRepresentationIngest(input, path, lu
|
|
|
13689
13689
|
}
|
|
13690
13690
|
const key = keyBuilderFromType$m(luvio, input);
|
|
13691
13691
|
const ttlToUse = TTL$t;
|
|
13692
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$z, "UiApi", VERSION$
|
|
13692
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$z, "UiApi", VERSION$22, RepresentationType$F, equals$M);
|
|
13693
13693
|
return createLink$1(key);
|
|
13694
13694
|
};
|
|
13695
13695
|
function getTypeCacheKeys$1G(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -13705,8 +13705,8 @@ function getTypeCacheKeys$1G(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
13705
13705
|
function select$2x(luvio, params) {
|
|
13706
13706
|
return select$2y();
|
|
13707
13707
|
}
|
|
13708
|
-
function keyBuilder$
|
|
13709
|
-
return keyBuilder$
|
|
13708
|
+
function keyBuilder$2F(luvio, params) {
|
|
13709
|
+
return keyBuilder$2G(luvio, {
|
|
13710
13710
|
actionApiName: params.urlParams.actionApiName
|
|
13711
13711
|
});
|
|
13712
13712
|
}
|
|
@@ -13715,7 +13715,7 @@ function getResponseCacheKeys$R(storeKeyMap, luvio, resourceParams, response) {
|
|
|
13715
13715
|
}
|
|
13716
13716
|
function ingestSuccess$I(luvio, resourceParams, response, snapshotRefresh) {
|
|
13717
13717
|
const { body } = response;
|
|
13718
|
-
const key = keyBuilder$
|
|
13718
|
+
const key = keyBuilder$2F(luvio, resourceParams);
|
|
13719
13719
|
luvio.storeIngest(key, ingest$1E, body);
|
|
13720
13720
|
const snapshot = luvio.storeLookup({
|
|
13721
13721
|
recordId: key,
|
|
@@ -13731,12 +13731,12 @@ function ingestSuccess$I(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
13731
13731
|
return snapshot;
|
|
13732
13732
|
}
|
|
13733
13733
|
function ingestError$E(luvio, params, error, snapshotRefresh) {
|
|
13734
|
-
const key = keyBuilder$
|
|
13734
|
+
const key = keyBuilder$2F(luvio, params);
|
|
13735
13735
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
13736
13736
|
const storeMetadataParams = {
|
|
13737
13737
|
ttl: TTL$t,
|
|
13738
13738
|
namespace: keyPrefix,
|
|
13739
|
-
version: VERSION$
|
|
13739
|
+
version: VERSION$22,
|
|
13740
13740
|
representationName: RepresentationType$F
|
|
13741
13741
|
};
|
|
13742
13742
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -13762,9 +13762,9 @@ const getQuickActionLayout_ConfigPropertyMetadata = [
|
|
|
13762
13762
|
];
|
|
13763
13763
|
const getQuickActionLayout_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$N, getQuickActionLayout_ConfigPropertyMetadata);
|
|
13764
13764
|
const createResourceParams$R = /*#__PURE__*/ createResourceParams$_(getQuickActionLayout_ConfigPropertyMetadata);
|
|
13765
|
-
function keyBuilder$
|
|
13765
|
+
function keyBuilder$2E(luvio, config) {
|
|
13766
13766
|
const resourceParams = createResourceParams$R(config);
|
|
13767
|
-
return keyBuilder$
|
|
13767
|
+
return keyBuilder$2F(luvio, resourceParams);
|
|
13768
13768
|
}
|
|
13769
13769
|
function typeCheckConfig$W(untrustedConfig) {
|
|
13770
13770
|
const config = {};
|
|
@@ -13822,7 +13822,7 @@ function buildNetworkSnapshotCachePolicy$K(context, coercedAdapterRequestContext
|
|
|
13822
13822
|
function buildCachedSnapshotCachePolicy$K(context, storeLookup) {
|
|
13823
13823
|
const { luvio, config } = context;
|
|
13824
13824
|
const selector = {
|
|
13825
|
-
recordId: keyBuilder$
|
|
13825
|
+
recordId: keyBuilder$2E(luvio, config),
|
|
13826
13826
|
node: adapterFragment$D(luvio, config),
|
|
13827
13827
|
variables: {},
|
|
13828
13828
|
};
|
|
@@ -13877,15 +13877,15 @@ function getSortedObjectApiNamesArray(value) {
|
|
|
13877
13877
|
function select$2w(luvio, params) {
|
|
13878
13878
|
return select$2A();
|
|
13879
13879
|
}
|
|
13880
|
-
function keyBuilder$
|
|
13880
|
+
function keyBuilder$2D(luvio, params) {
|
|
13881
13881
|
return keyPrefix + '::ActionRepresentation:(' + 'actionTypes:' + params.queryParams.actionTypes + ',' + 'formFactor:' + params.queryParams.formFactor + ',' + 'sections:' + params.queryParams.sections + ',' + 'objectApiNames:' + params.urlParams.objectApiNames + ')';
|
|
13882
13882
|
}
|
|
13883
13883
|
function getResponseCacheKeys$Q(storeKeyMap, luvio, resourceParams, response) {
|
|
13884
|
-
getTypeCacheKeys$1H(storeKeyMap, luvio, response, () => keyBuilder$
|
|
13884
|
+
getTypeCacheKeys$1H(storeKeyMap, luvio, response, () => keyBuilder$2D(luvio, resourceParams));
|
|
13885
13885
|
}
|
|
13886
13886
|
function ingestSuccess$H(luvio, resourceParams, response, snapshotRefresh) {
|
|
13887
13887
|
const { body } = response;
|
|
13888
|
-
const key = keyBuilder$
|
|
13888
|
+
const key = keyBuilder$2D(luvio, resourceParams);
|
|
13889
13889
|
luvio.storeIngest(key, ingest$1F, body);
|
|
13890
13890
|
const snapshot = luvio.storeLookup({
|
|
13891
13891
|
recordId: key,
|
|
@@ -13901,12 +13901,12 @@ function ingestSuccess$H(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
13901
13901
|
return snapshot;
|
|
13902
13902
|
}
|
|
13903
13903
|
function ingestError$D(luvio, params, error, snapshotRefresh) {
|
|
13904
|
-
const key = keyBuilder$
|
|
13904
|
+
const key = keyBuilder$2D(luvio, params);
|
|
13905
13905
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
13906
13906
|
const storeMetadataParams = {
|
|
13907
13907
|
ttl: TTL$u,
|
|
13908
13908
|
namespace: keyPrefix,
|
|
13909
|
-
version: VERSION$
|
|
13909
|
+
version: VERSION$23,
|
|
13910
13910
|
representationName: RepresentationType$G
|
|
13911
13911
|
};
|
|
13912
13912
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -13935,9 +13935,9 @@ const getLookupActions_ConfigPropertyMetadata = [
|
|
|
13935
13935
|
];
|
|
13936
13936
|
const getLookupActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$M, getLookupActions_ConfigPropertyMetadata);
|
|
13937
13937
|
const createResourceParams$Q = /*#__PURE__*/ createResourceParams$_(getLookupActions_ConfigPropertyMetadata);
|
|
13938
|
-
function keyBuilder$
|
|
13938
|
+
function keyBuilder$2C(luvio, config) {
|
|
13939
13939
|
const resourceParams = createResourceParams$Q(config);
|
|
13940
|
-
return keyBuilder$
|
|
13940
|
+
return keyBuilder$2D(luvio, resourceParams);
|
|
13941
13941
|
}
|
|
13942
13942
|
function typeCheckConfig$V(untrustedConfig) {
|
|
13943
13943
|
const config = {};
|
|
@@ -13996,7 +13996,7 @@ function buildNetworkSnapshotCachePolicy$J(context, coercedAdapterRequestContext
|
|
|
13996
13996
|
function buildCachedSnapshotCachePolicy$J(context, storeLookup) {
|
|
13997
13997
|
const { luvio, config } = context;
|
|
13998
13998
|
const selector = {
|
|
13999
|
-
recordId: keyBuilder$
|
|
13999
|
+
recordId: keyBuilder$2C(luvio, config),
|
|
14000
14000
|
node: adapterFragment$C(luvio, config),
|
|
14001
14001
|
variables: {},
|
|
14002
14002
|
};
|
|
@@ -14019,15 +14019,15 @@ const getLookupActionsAdapterFactory = (luvio) => function UiApi__getLookupActio
|
|
|
14019
14019
|
function select$2v(luvio, params) {
|
|
14020
14020
|
return select$2A();
|
|
14021
14021
|
}
|
|
14022
|
-
function keyBuilder$
|
|
14022
|
+
function keyBuilder$2B(luvio, params) {
|
|
14023
14023
|
return keyPrefix + '::ActionRepresentation:(' + 'actionTypes:' + params.queryParams.actionTypes + ',' + 'formFactor:' + params.queryParams.formFactor + ',' + 'sections:' + params.queryParams.sections + ',' + 'objectApiName:' + params.urlParams.objectApiName + ')';
|
|
14024
14024
|
}
|
|
14025
14025
|
function getResponseCacheKeys$P(storeKeyMap, luvio, resourceParams, response) {
|
|
14026
|
-
getTypeCacheKeys$1H(storeKeyMap, luvio, response, () => keyBuilder$
|
|
14026
|
+
getTypeCacheKeys$1H(storeKeyMap, luvio, response, () => keyBuilder$2B(luvio, resourceParams));
|
|
14027
14027
|
}
|
|
14028
14028
|
function ingestSuccess$G(luvio, resourceParams, response, snapshotRefresh) {
|
|
14029
14029
|
const { body } = response;
|
|
14030
|
-
const key = keyBuilder$
|
|
14030
|
+
const key = keyBuilder$2B(luvio, resourceParams);
|
|
14031
14031
|
luvio.storeIngest(key, ingest$1F, body);
|
|
14032
14032
|
const snapshot = luvio.storeLookup({
|
|
14033
14033
|
recordId: key,
|
|
@@ -14043,12 +14043,12 @@ function ingestSuccess$G(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
14043
14043
|
return snapshot;
|
|
14044
14044
|
}
|
|
14045
14045
|
function ingestError$C(luvio, params, error, snapshotRefresh) {
|
|
14046
|
-
const key = keyBuilder$
|
|
14046
|
+
const key = keyBuilder$2B(luvio, params);
|
|
14047
14047
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
14048
14048
|
const storeMetadataParams = {
|
|
14049
14049
|
ttl: TTL$u,
|
|
14050
14050
|
namespace: keyPrefix,
|
|
14051
|
-
version: VERSION$
|
|
14051
|
+
version: VERSION$23,
|
|
14052
14052
|
representationName: RepresentationType$G
|
|
14053
14053
|
};
|
|
14054
14054
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -14077,9 +14077,9 @@ const getObjectCreateActions_ConfigPropertyMetadata = [
|
|
|
14077
14077
|
];
|
|
14078
14078
|
const getObjectCreateActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$L, getObjectCreateActions_ConfigPropertyMetadata);
|
|
14079
14079
|
const createResourceParams$P = /*#__PURE__*/ createResourceParams$_(getObjectCreateActions_ConfigPropertyMetadata);
|
|
14080
|
-
function keyBuilder$
|
|
14080
|
+
function keyBuilder$2A(luvio, config) {
|
|
14081
14081
|
const resourceParams = createResourceParams$P(config);
|
|
14082
|
-
return keyBuilder$
|
|
14082
|
+
return keyBuilder$2B(luvio, resourceParams);
|
|
14083
14083
|
}
|
|
14084
14084
|
function typeCheckConfig$U(untrustedConfig) {
|
|
14085
14085
|
const config = {};
|
|
@@ -14138,7 +14138,7 @@ function buildNetworkSnapshotCachePolicy$I(context, coercedAdapterRequestContext
|
|
|
14138
14138
|
function buildCachedSnapshotCachePolicy$I(context, storeLookup) {
|
|
14139
14139
|
const { luvio, config } = context;
|
|
14140
14140
|
const selector = {
|
|
14141
|
-
recordId: keyBuilder$
|
|
14141
|
+
recordId: keyBuilder$2A(luvio, config),
|
|
14142
14142
|
node: adapterFragment$B(luvio, config),
|
|
14143
14143
|
variables: {},
|
|
14144
14144
|
};
|
|
@@ -14158,7 +14158,7 @@ const getObjectCreateActionsAdapterFactory = (luvio) => function UiApi__getObjec
|
|
|
14158
14158
|
buildCachedSnapshotCachePolicy$I, buildNetworkSnapshotCachePolicy$I);
|
|
14159
14159
|
};
|
|
14160
14160
|
|
|
14161
|
-
const VERSION$
|
|
14161
|
+
const VERSION$21 = "fecd80e9e24a1c1e75fd5395cd34ff2e";
|
|
14162
14162
|
function validate$1a(obj, path = 'ActionOverrideRepresentation') {
|
|
14163
14163
|
const v_error = (() => {
|
|
14164
14164
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -14179,7 +14179,7 @@ function normalize$y(input, existing, path, luvio, store, timestamp) {
|
|
|
14179
14179
|
const select$2u = function ActionOverrideRepresentationSelect() {
|
|
14180
14180
|
return {
|
|
14181
14181
|
kind: 'Fragment',
|
|
14182
|
-
version: VERSION$
|
|
14182
|
+
version: VERSION$21,
|
|
14183
14183
|
private: [],
|
|
14184
14184
|
opaque: true
|
|
14185
14185
|
};
|
|
@@ -14199,7 +14199,7 @@ const ingest$1D = function ActionOverrideRepresentationIngest(input, path, luvio
|
|
|
14199
14199
|
}
|
|
14200
14200
|
const key = path.fullPath;
|
|
14201
14201
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
14202
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$y, "UiApi", VERSION$
|
|
14202
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$y, "UiApi", VERSION$21, RepresentationType$E, equals$L);
|
|
14203
14203
|
return createLink$1(key);
|
|
14204
14204
|
};
|
|
14205
14205
|
function getTypeCacheKeys$1F(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -14215,15 +14215,15 @@ function getTypeCacheKeys$1F(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
14215
14215
|
function select$2t(luvio, params) {
|
|
14216
14216
|
return select$2u();
|
|
14217
14217
|
}
|
|
14218
|
-
function keyBuilder$
|
|
14218
|
+
function keyBuilder$2z(luvio, params) {
|
|
14219
14219
|
return keyPrefix + '::ActionOverrideRepresentation:(' + 'type:' + params.queryParams.type + ',' + 'objectApiName:' + params.urlParams.objectApiName + ')';
|
|
14220
14220
|
}
|
|
14221
14221
|
function getResponseCacheKeys$O(storeKeyMap, luvio, resourceParams, response) {
|
|
14222
|
-
getTypeCacheKeys$1F(storeKeyMap, luvio, response, () => keyBuilder$
|
|
14222
|
+
getTypeCacheKeys$1F(storeKeyMap, luvio, response, () => keyBuilder$2z(luvio, resourceParams));
|
|
14223
14223
|
}
|
|
14224
14224
|
function ingestSuccess$F(luvio, resourceParams, response, snapshotRefresh) {
|
|
14225
14225
|
const { body } = response;
|
|
14226
|
-
const key = keyBuilder$
|
|
14226
|
+
const key = keyBuilder$2z(luvio, resourceParams);
|
|
14227
14227
|
luvio.storeIngest(key, ingest$1D, body);
|
|
14228
14228
|
const snapshot = luvio.storeLookup({
|
|
14229
14229
|
recordId: key,
|
|
@@ -14239,7 +14239,7 @@ function ingestSuccess$F(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
14239
14239
|
return snapshot;
|
|
14240
14240
|
}
|
|
14241
14241
|
function ingestError$B(luvio, params, error, snapshotRefresh) {
|
|
14242
|
-
const key = keyBuilder$
|
|
14242
|
+
const key = keyBuilder$2z(luvio, params);
|
|
14243
14243
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
14244
14244
|
luvio.storeIngestError(key, errorSnapshot);
|
|
14245
14245
|
return errorSnapshot;
|
|
@@ -14265,9 +14265,9 @@ const getActionOverrides_ConfigPropertyMetadata = [
|
|
|
14265
14265
|
];
|
|
14266
14266
|
const getActionOverrides_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$K, getActionOverrides_ConfigPropertyMetadata);
|
|
14267
14267
|
const createResourceParams$O = /*#__PURE__*/ createResourceParams$_(getActionOverrides_ConfigPropertyMetadata);
|
|
14268
|
-
function keyBuilder$
|
|
14268
|
+
function keyBuilder$2y(luvio, config) {
|
|
14269
14269
|
const resourceParams = createResourceParams$O(config);
|
|
14270
|
-
return keyBuilder$
|
|
14270
|
+
return keyBuilder$2z(luvio, resourceParams);
|
|
14271
14271
|
}
|
|
14272
14272
|
function typeCheckConfig$T(untrustedConfig) {
|
|
14273
14273
|
const config = {};
|
|
@@ -14326,7 +14326,7 @@ function buildNetworkSnapshotCachePolicy$H(context, coercedAdapterRequestContext
|
|
|
14326
14326
|
function buildCachedSnapshotCachePolicy$H(context, storeLookup) {
|
|
14327
14327
|
const { luvio, config } = context;
|
|
14328
14328
|
const selector = {
|
|
14329
|
-
recordId: keyBuilder$
|
|
14329
|
+
recordId: keyBuilder$2y(luvio, config),
|
|
14330
14330
|
node: adapterFragment$A(luvio, config),
|
|
14331
14331
|
variables: {},
|
|
14332
14332
|
};
|
|
@@ -14350,7 +14350,7 @@ const QUICK_ACTION_DEFAULTS_STORE_METADATA_PARAMS = {
|
|
|
14350
14350
|
ttl: TTL$v,
|
|
14351
14351
|
namespace: keyPrefix,
|
|
14352
14352
|
representationName: RepresentationType$J,
|
|
14353
|
-
version: VERSION$
|
|
14353
|
+
version: VERSION$26,
|
|
14354
14354
|
};
|
|
14355
14355
|
function merge$1(existing, incoming) {
|
|
14356
14356
|
if (existing === undefined) {
|
|
@@ -14432,8 +14432,8 @@ function selectFields$6(luvio, params) {
|
|
|
14432
14432
|
return selectFields$7(trie);
|
|
14433
14433
|
}
|
|
14434
14434
|
|
|
14435
|
-
function keyBuilder$
|
|
14436
|
-
return keyBuilder$
|
|
14435
|
+
function keyBuilder$2x(luvio, params) {
|
|
14436
|
+
return keyBuilder$2L(luvio, {
|
|
14437
14437
|
actionApiName: params.urlParams.actionApiName
|
|
14438
14438
|
});
|
|
14439
14439
|
}
|
|
@@ -14441,12 +14441,12 @@ function getResponseCacheKeys$N(storeKeyMap, luvio, resourceParams, response) {
|
|
|
14441
14441
|
getTypeCacheKeys$1K(storeKeyMap, luvio, response);
|
|
14442
14442
|
}
|
|
14443
14443
|
function ingestError$A(luvio, params, error, snapshotRefresh) {
|
|
14444
|
-
const key = keyBuilder$
|
|
14444
|
+
const key = keyBuilder$2x(luvio, params);
|
|
14445
14445
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
14446
14446
|
const storeMetadataParams = {
|
|
14447
14447
|
ttl: TTL$v,
|
|
14448
14448
|
namespace: keyPrefix,
|
|
14449
|
-
version: VERSION$
|
|
14449
|
+
version: VERSION$26,
|
|
14450
14450
|
representationName: RepresentationType$J
|
|
14451
14451
|
};
|
|
14452
14452
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -14473,7 +14473,7 @@ function adapterFragment$z(luvio, config) {
|
|
|
14473
14473
|
function buildNetworkSnapshot$Q(luvio, config, options) {
|
|
14474
14474
|
const resourceParams = createResourceParams$N(config);
|
|
14475
14475
|
const request = createResourceRequest$R(resourceParams);
|
|
14476
|
-
const key = keyBuilder$
|
|
14476
|
+
const key = keyBuilder$2w(luvio, config);
|
|
14477
14477
|
const trackedFieldsConfig = {
|
|
14478
14478
|
maxDepth: configurationForRestAdapters.getTrackedFieldDepthOnCacheMiss(),
|
|
14479
14479
|
onlyFetchLeafNodeIdAndName: configurationForRestAdapters.getTrackedFieldLeafNodeIdAndNameOnly()
|
|
@@ -14516,9 +14516,9 @@ const getQuickActionDefaults_ConfigPropertyMetadata = [
|
|
|
14516
14516
|
];
|
|
14517
14517
|
const getQuickActionDefaults_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$J, getQuickActionDefaults_ConfigPropertyMetadata);
|
|
14518
14518
|
const createResourceParams$N = /*#__PURE__*/ createResourceParams$_(getQuickActionDefaults_ConfigPropertyMetadata);
|
|
14519
|
-
function keyBuilder$
|
|
14519
|
+
function keyBuilder$2w(luvio, config) {
|
|
14520
14520
|
const resourceParams = createResourceParams$N(config);
|
|
14521
|
-
return keyBuilder$
|
|
14521
|
+
return keyBuilder$2x(luvio, resourceParams);
|
|
14522
14522
|
}
|
|
14523
14523
|
function typeCheckConfig$S(untrustedConfig) {
|
|
14524
14524
|
const config = {};
|
|
@@ -14541,7 +14541,7 @@ function validateAdapterConfig$V(untrustedConfig, configPropertyNames) {
|
|
|
14541
14541
|
}
|
|
14542
14542
|
function buildCachedSnapshot$5(luvio, config) {
|
|
14543
14543
|
const selector = {
|
|
14544
|
-
recordId: keyBuilder$
|
|
14544
|
+
recordId: keyBuilder$2w(luvio, config),
|
|
14545
14545
|
node: adapterFragment$z(luvio, config),
|
|
14546
14546
|
variables: {},
|
|
14547
14547
|
};
|
|
@@ -14563,7 +14563,7 @@ function buildNetworkSnapshotCachePolicy$G(context, coercedAdapterRequestContext
|
|
|
14563
14563
|
function buildCachedSnapshotCachePolicy$G(context, storeLookup) {
|
|
14564
14564
|
const { luvio, config } = context;
|
|
14565
14565
|
const selector = {
|
|
14566
|
-
recordId: keyBuilder$
|
|
14566
|
+
recordId: keyBuilder$2w(luvio, config),
|
|
14567
14567
|
node: adapterFragment$z(luvio, config),
|
|
14568
14568
|
variables: {},
|
|
14569
14569
|
};
|
|
@@ -14586,15 +14586,15 @@ const getQuickActionDefaultsAdapterFactory = (luvio) => function UiApi__getQuick
|
|
|
14586
14586
|
function select$2s(luvio, params) {
|
|
14587
14587
|
return select$2A();
|
|
14588
14588
|
}
|
|
14589
|
-
function keyBuilder$
|
|
14589
|
+
function keyBuilder$2v(luvio, params) {
|
|
14590
14590
|
return keyPrefix + '::ActionRepresentation:(' + 'actionTypes:' + params.queryParams.actionTypes + ',' + 'apiNames:' + params.queryParams.apiNames + ',' + 'formFactor:' + params.queryParams.formFactor + ',' + 'retrievalMode:' + params.queryParams.retrievalMode + ',' + 'sections:' + params.queryParams.sections + ',' + 'recordIds:' + params.urlParams.recordIds + ')';
|
|
14591
14591
|
}
|
|
14592
14592
|
function getResponseCacheKeys$M(storeKeyMap, luvio, resourceParams, response) {
|
|
14593
|
-
getTypeCacheKeys$1H(storeKeyMap, luvio, response, () => keyBuilder$
|
|
14593
|
+
getTypeCacheKeys$1H(storeKeyMap, luvio, response, () => keyBuilder$2v(luvio, resourceParams));
|
|
14594
14594
|
}
|
|
14595
14595
|
function ingestSuccess$E(luvio, resourceParams, response, snapshotRefresh) {
|
|
14596
14596
|
const { body } = response;
|
|
14597
|
-
const key = keyBuilder$
|
|
14597
|
+
const key = keyBuilder$2v(luvio, resourceParams);
|
|
14598
14598
|
luvio.storeIngest(key, ingest$1F, body);
|
|
14599
14599
|
const snapshot = luvio.storeLookup({
|
|
14600
14600
|
recordId: key,
|
|
@@ -14610,12 +14610,12 @@ function ingestSuccess$E(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
14610
14610
|
return snapshot;
|
|
14611
14611
|
}
|
|
14612
14612
|
function ingestError$z(luvio, params, error, snapshotRefresh) {
|
|
14613
|
-
const key = keyBuilder$
|
|
14613
|
+
const key = keyBuilder$2v(luvio, params);
|
|
14614
14614
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
14615
14615
|
const storeMetadataParams = {
|
|
14616
14616
|
ttl: TTL$u,
|
|
14617
14617
|
namespace: keyPrefix,
|
|
14618
|
-
version: VERSION$
|
|
14618
|
+
version: VERSION$23,
|
|
14619
14619
|
representationName: RepresentationType$G
|
|
14620
14620
|
};
|
|
14621
14621
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -14650,9 +14650,9 @@ const getRecordActions_ConfigPropertyMetadata = [
|
|
|
14650
14650
|
];
|
|
14651
14651
|
const getRecordActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$I, getRecordActions_ConfigPropertyMetadata);
|
|
14652
14652
|
const createResourceParams$M = /*#__PURE__*/ createResourceParams$_(getRecordActions_ConfigPropertyMetadata);
|
|
14653
|
-
function keyBuilder$
|
|
14653
|
+
function keyBuilder$2u(luvio, config) {
|
|
14654
14654
|
const resourceParams = createResourceParams$M(config);
|
|
14655
|
-
return keyBuilder$
|
|
14655
|
+
return keyBuilder$2v(luvio, resourceParams);
|
|
14656
14656
|
}
|
|
14657
14657
|
function typeCheckConfig$R(untrustedConfig) {
|
|
14658
14658
|
const config = {};
|
|
@@ -14715,7 +14715,7 @@ function buildNetworkSnapshotCachePolicy$F(context, coercedAdapterRequestContext
|
|
|
14715
14715
|
function buildCachedSnapshotCachePolicy$F(context, storeLookup) {
|
|
14716
14716
|
const { luvio, config } = context;
|
|
14717
14717
|
const selector = {
|
|
14718
|
-
recordId: keyBuilder$
|
|
14718
|
+
recordId: keyBuilder$2u(luvio, config),
|
|
14719
14719
|
node: adapterFragment$y(luvio, config),
|
|
14720
14720
|
variables: {},
|
|
14721
14721
|
};
|
|
@@ -14738,15 +14738,15 @@ const getRecordActionsAdapterFactory = (luvio) => function UiApi__getRecordActio
|
|
|
14738
14738
|
function select$2r(luvio, params) {
|
|
14739
14739
|
return select$2A();
|
|
14740
14740
|
}
|
|
14741
|
-
function keyBuilder$
|
|
14741
|
+
function keyBuilder$2t(luvio, params) {
|
|
14742
14742
|
return keyPrefix + '::ActionRepresentation:(' + 'actionTypes:' + params.queryParams.actionTypes + ',' + 'formFactor:' + params.queryParams.formFactor + ',' + 'sections:' + params.queryParams.sections + ',' + 'recordIds:' + params.urlParams.recordIds + ')';
|
|
14743
14743
|
}
|
|
14744
14744
|
function getResponseCacheKeys$L(storeKeyMap, luvio, resourceParams, response) {
|
|
14745
|
-
getTypeCacheKeys$1H(storeKeyMap, luvio, response, () => keyBuilder$
|
|
14745
|
+
getTypeCacheKeys$1H(storeKeyMap, luvio, response, () => keyBuilder$2t(luvio, resourceParams));
|
|
14746
14746
|
}
|
|
14747
14747
|
function ingestSuccess$D(luvio, resourceParams, response, snapshotRefresh) {
|
|
14748
14748
|
const { body } = response;
|
|
14749
|
-
const key = keyBuilder$
|
|
14749
|
+
const key = keyBuilder$2t(luvio, resourceParams);
|
|
14750
14750
|
luvio.storeIngest(key, ingest$1F, body);
|
|
14751
14751
|
const snapshot = luvio.storeLookup({
|
|
14752
14752
|
recordId: key,
|
|
@@ -14762,12 +14762,12 @@ function ingestSuccess$D(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
14762
14762
|
return snapshot;
|
|
14763
14763
|
}
|
|
14764
14764
|
function ingestError$y(luvio, params, error, snapshotRefresh) {
|
|
14765
|
-
const key = keyBuilder$
|
|
14765
|
+
const key = keyBuilder$2t(luvio, params);
|
|
14766
14766
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
14767
14767
|
const storeMetadataParams = {
|
|
14768
14768
|
ttl: TTL$u,
|
|
14769
14769
|
namespace: keyPrefix,
|
|
14770
|
-
version: VERSION$
|
|
14770
|
+
version: VERSION$23,
|
|
14771
14771
|
representationName: RepresentationType$G
|
|
14772
14772
|
};
|
|
14773
14773
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -14796,9 +14796,9 @@ const getRecordEditActions_ConfigPropertyMetadata = [
|
|
|
14796
14796
|
];
|
|
14797
14797
|
const getRecordEditActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$H, getRecordEditActions_ConfigPropertyMetadata);
|
|
14798
14798
|
const createResourceParams$L = /*#__PURE__*/ createResourceParams$_(getRecordEditActions_ConfigPropertyMetadata);
|
|
14799
|
-
function keyBuilder$
|
|
14799
|
+
function keyBuilder$2s(luvio, config) {
|
|
14800
14800
|
const resourceParams = createResourceParams$L(config);
|
|
14801
|
-
return keyBuilder$
|
|
14801
|
+
return keyBuilder$2t(luvio, resourceParams);
|
|
14802
14802
|
}
|
|
14803
14803
|
function typeCheckConfig$Q(untrustedConfig) {
|
|
14804
14804
|
const config = {};
|
|
@@ -14857,7 +14857,7 @@ function buildNetworkSnapshotCachePolicy$E(context, coercedAdapterRequestContext
|
|
|
14857
14857
|
function buildCachedSnapshotCachePolicy$E(context, storeLookup) {
|
|
14858
14858
|
const { luvio, config } = context;
|
|
14859
14859
|
const selector = {
|
|
14860
|
-
recordId: keyBuilder$
|
|
14860
|
+
recordId: keyBuilder$2s(luvio, config),
|
|
14861
14861
|
node: adapterFragment$x(luvio, config),
|
|
14862
14862
|
variables: {},
|
|
14863
14863
|
};
|
|
@@ -14950,15 +14950,15 @@ function validate$19(obj, path = 'ActionRelatedListSingleBatchInputRepresentatio
|
|
|
14950
14950
|
function select$2q(luvio, params) {
|
|
14951
14951
|
return select$2A();
|
|
14952
14952
|
}
|
|
14953
|
-
function keyBuilder$
|
|
14953
|
+
function keyBuilder$2r(luvio, params) {
|
|
14954
14954
|
return keyPrefix + '::ActionRepresentation:(' + 'recordIds:' + params.urlParams.recordIds + ',' + 'relatedListId:' + params.urlParams.relatedListId + ',' + (params.body.actionTypes === undefined ? 'actionTypes' : 'actionTypes:' + params.body.actionTypes) + '::' + (params.body.apiNames === undefined ? 'apiNames' : 'apiNames:' + params.body.apiNames) + '::' + (params.body.formFactor === undefined ? 'formFactor' : 'formFactor:' + params.body.formFactor) + '::' + (params.body.retrievalMode === undefined ? 'retrievalMode' : 'retrievalMode:' + params.body.retrievalMode) + '::' + (params.body.sections === undefined ? 'sections' : 'sections:' + params.body.sections) + ')';
|
|
14955
14955
|
}
|
|
14956
14956
|
function getResponseCacheKeys$K(storeKeyMap, luvio, resourceParams, response) {
|
|
14957
|
-
getTypeCacheKeys$1H(storeKeyMap, luvio, response, () => keyBuilder$
|
|
14957
|
+
getTypeCacheKeys$1H(storeKeyMap, luvio, response, () => keyBuilder$2r(luvio, resourceParams));
|
|
14958
14958
|
}
|
|
14959
14959
|
function ingestSuccess$C(luvio, resourceParams, response, snapshotRefresh) {
|
|
14960
14960
|
const { body } = response;
|
|
14961
|
-
const key = keyBuilder$
|
|
14961
|
+
const key = keyBuilder$2r(luvio, resourceParams);
|
|
14962
14962
|
luvio.storeIngest(key, ingest$1F, body);
|
|
14963
14963
|
const snapshot = luvio.storeLookup({
|
|
14964
14964
|
recordId: key,
|
|
@@ -14974,12 +14974,12 @@ function ingestSuccess$C(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
14974
14974
|
return snapshot;
|
|
14975
14975
|
}
|
|
14976
14976
|
function ingestError$x(luvio, params, error, snapshotRefresh) {
|
|
14977
|
-
const key = keyBuilder$
|
|
14977
|
+
const key = keyBuilder$2r(luvio, params);
|
|
14978
14978
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
14979
14979
|
const storeMetadataParams = {
|
|
14980
14980
|
ttl: TTL$u,
|
|
14981
14981
|
namespace: keyPrefix,
|
|
14982
|
-
version: VERSION$
|
|
14982
|
+
version: VERSION$23,
|
|
14983
14983
|
representationName: RepresentationType$G
|
|
14984
14984
|
};
|
|
14985
14985
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -14999,7 +14999,7 @@ function createResourceRequest$O(config) {
|
|
|
14999
14999
|
};
|
|
15000
15000
|
}
|
|
15001
15001
|
|
|
15002
|
-
|
|
15002
|
+
function createChildResourceParams$a(resourceParams) {
|
|
15003
15003
|
const childConfigs = [];
|
|
15004
15004
|
for (let index = 0, len = resourceParams.body.relatedListsActionParameters.length; index < len; index += 1) {
|
|
15005
15005
|
let childConfig = {
|
|
@@ -15029,12 +15029,13 @@ const createChildResourceParams$7 = (resourceParams) => {
|
|
|
15029
15029
|
childConfigs.push(childConfig);
|
|
15030
15030
|
}
|
|
15031
15031
|
return childConfigs;
|
|
15032
|
-
}
|
|
15033
|
-
|
|
15034
|
-
|
|
15035
|
-
|
|
15036
|
-
|
|
15037
|
-
|
|
15032
|
+
}
|
|
15033
|
+
|
|
15034
|
+
const nonCachedErrors$7 = ObjectCreate$1(null);
|
|
15035
|
+
function createChildResourceParams$9(resourceParams) {
|
|
15036
|
+
return createChildResourceParams$a(resourceParams);
|
|
15037
|
+
}
|
|
15038
|
+
function selectChildResourceParams$7(luvio, childResources, resourceParams) {
|
|
15038
15039
|
const envelopeBodyPath = 'result';
|
|
15039
15040
|
const envelopeStatusCodePath = 'statusCode';
|
|
15040
15041
|
const envelopePath = 'results';
|
|
@@ -15043,21 +15044,36 @@ function select$2p(luvio, resourceParams) {
|
|
|
15043
15044
|
reader: true,
|
|
15044
15045
|
synthetic: true,
|
|
15045
15046
|
read: (reader) => {
|
|
15047
|
+
// Top-level 404 lookup
|
|
15048
|
+
const result = reader.storeLookup(keyBuilder$2q(luvio, resourceParams));
|
|
15049
|
+
if (result.state === reader.StoreResolveResultState.Error && result.value.status === 404) {
|
|
15050
|
+
return {
|
|
15051
|
+
state: 'Error',
|
|
15052
|
+
value: result.value,
|
|
15053
|
+
};
|
|
15054
|
+
}
|
|
15046
15055
|
const sink = {};
|
|
15047
15056
|
reader.enterPath(envelopePath);
|
|
15048
15057
|
const results = [];
|
|
15049
15058
|
for (let i = 0, len = childResources.length; i < len; i += 1) {
|
|
15050
15059
|
reader.enterPath(i);
|
|
15060
|
+
reader.enterPath(envelopeBodyPath);
|
|
15051
15061
|
const childResource = childResources[i];
|
|
15052
|
-
const childKey = keyBuilder$
|
|
15062
|
+
const childKey = keyBuilder$2r(luvio, childResource);
|
|
15053
15063
|
const childFragment = select$2q();
|
|
15064
|
+
const isMissingDataBeforeChildRead = reader.getIsDataMissing();
|
|
15054
15065
|
const childSnapshot = reader.read({
|
|
15055
15066
|
recordId: childKey,
|
|
15056
15067
|
node: childFragment,
|
|
15057
15068
|
variables: {},
|
|
15058
15069
|
});
|
|
15070
|
+
reader.exitPath();
|
|
15059
15071
|
const childSink = {};
|
|
15072
|
+
reader.markSeenId(childKey);
|
|
15060
15073
|
switch (childSnapshot.state) {
|
|
15074
|
+
case 'Stale':
|
|
15075
|
+
reader.markStale();
|
|
15076
|
+
// Stale needs envelope bodies filled in so don't break
|
|
15061
15077
|
case 'Fulfilled':
|
|
15062
15078
|
reader.enterPath(envelopeStatusCodePath);
|
|
15063
15079
|
reader.assignScalar(envelopeStatusCodePath, childSink, 200);
|
|
@@ -15067,7 +15083,6 @@ function select$2p(luvio, resourceParams) {
|
|
|
15067
15083
|
reader.exitPath();
|
|
15068
15084
|
break;
|
|
15069
15085
|
case 'Error':
|
|
15070
|
-
// eslint-disable-next-line no-case-declarations
|
|
15071
15086
|
const childSnapshotError = childSnapshot.error;
|
|
15072
15087
|
reader.enterPath(envelopeStatusCodePath);
|
|
15073
15088
|
reader.assignScalar(envelopeStatusCodePath, childSink, childSnapshotError.status);
|
|
@@ -15077,98 +15092,162 @@ function select$2p(luvio, resourceParams) {
|
|
|
15077
15092
|
reader.exitPath();
|
|
15078
15093
|
break;
|
|
15079
15094
|
case 'Unfulfilled':
|
|
15080
|
-
|
|
15095
|
+
// if child snapshot doesn't have any data then
|
|
15096
|
+
// that means the child record key is missing
|
|
15097
|
+
if (childSnapshot.data === undefined) {
|
|
15098
|
+
if (reader.isRebuilding() === false) {
|
|
15099
|
+
// not a rebuild, mark as missing and move on
|
|
15100
|
+
reader.markMissingLink(childKey);
|
|
15101
|
+
break;
|
|
15102
|
+
}
|
|
15103
|
+
// On rebuilds we have to check if there is a non-cached
|
|
15104
|
+
// error that we know about. If we don't do this then
|
|
15105
|
+
// rebuilds will go into endless refresh loop if a child
|
|
15106
|
+
// has non-cached errors (since the top-level composite
|
|
15107
|
+
// snapshot will look like an Unfulfilled snapshot
|
|
15108
|
+
// instead of an error snapshot).
|
|
15109
|
+
const nonCachedError = nonCachedErrors$7[childKey];
|
|
15110
|
+
if (nonCachedError === undefined || nonCachedError.expiration < reader.getTimeStamp()) {
|
|
15111
|
+
reader.markMissingLink(childKey);
|
|
15112
|
+
}
|
|
15113
|
+
else {
|
|
15114
|
+
// if this child error was the only reason the reader
|
|
15115
|
+
// is marked as missing then we want to undo that
|
|
15116
|
+
if (isMissingDataBeforeChildRead === false) {
|
|
15117
|
+
reader.unMarkMissing();
|
|
15118
|
+
}
|
|
15119
|
+
// put status code and body into reader path
|
|
15120
|
+
const { response: nonCachedBody, status: nonCachedStatus } = nonCachedError;
|
|
15121
|
+
reader.enterPath(envelopeStatusCodePath);
|
|
15122
|
+
reader.assignScalar(envelopeStatusCodePath, childSink, nonCachedStatus);
|
|
15123
|
+
reader.exitPath();
|
|
15124
|
+
reader.enterPath(envelopeBodyPath);
|
|
15125
|
+
reader.assignNonScalar(childSink, envelopeBodyPath, nonCachedBody);
|
|
15126
|
+
reader.exitPath();
|
|
15127
|
+
}
|
|
15128
|
+
}
|
|
15081
15129
|
break;
|
|
15082
15130
|
case 'Pending':
|
|
15083
15131
|
reader.markPending();
|
|
15084
15132
|
break;
|
|
15085
|
-
case 'Stale':
|
|
15086
|
-
reader.markStale();
|
|
15087
|
-
break;
|
|
15088
15133
|
}
|
|
15089
15134
|
ArrayPrototypePush.call(results, childSink);
|
|
15090
15135
|
reader.exitPath();
|
|
15091
15136
|
}
|
|
15092
15137
|
reader.assignNonScalar(sink, envelopePath, results);
|
|
15093
|
-
deepFreeze(sink);
|
|
15094
15138
|
reader.exitPath();
|
|
15095
15139
|
return sink;
|
|
15096
|
-
}
|
|
15140
|
+
}
|
|
15097
15141
|
};
|
|
15098
15142
|
}
|
|
15099
|
-
function
|
|
15100
|
-
|
|
15101
|
-
|
|
15102
|
-
'ActionRelatedListsCollectionBatchRepresentation(' +
|
|
15103
|
-
'relatedListsActionParameters:' +
|
|
15104
|
-
params.body.relatedListsActionParameters +
|
|
15105
|
-
')');
|
|
15143
|
+
function select$2p(luvio, resourceParams) {
|
|
15144
|
+
const childResources = createChildResourceParams$9(resourceParams);
|
|
15145
|
+
return selectChildResourceParams$7(luvio, childResources, resourceParams);
|
|
15106
15146
|
}
|
|
15107
|
-
function
|
|
15108
|
-
|
|
15109
|
-
|
|
15147
|
+
function keyBuilder$2q(luvio, params) {
|
|
15148
|
+
return keyPrefix + '::ActionRelatedListsCollectionBatchRepresentation:(' + 'recordIds:' + params.urlParams.recordIds + ',' + '[' + params.body.relatedListsActionParameters.map(element => (element.actionTypes === undefined ? 'relatedListsActionParameters.actionTypes' : 'relatedListsActionParameters.actionTypes:' + element.actionTypes) + '::' + (element.apiNames === undefined ? 'relatedListsActionParameters.apiNames' : 'relatedListsActionParameters.apiNames:' + element.apiNames) + '::' + (element.formFactor === undefined ? 'relatedListsActionParameters.formFactor' : 'relatedListsActionParameters.formFactor:' + element.formFactor) + '::' + 'relatedListsActionParameters.relatedListId:' + element.relatedListId + '::' + (element.retrievalMode === undefined ? 'relatedListsActionParameters.retrievalMode' : 'relatedListsActionParameters.retrievalMode:' + element.retrievalMode) + '::' + (element.sections === undefined ? 'relatedListsActionParameters.sections' : 'relatedListsActionParameters.sections:' + element.sections)).join(',') + ']' + ')';
|
|
15149
|
+
}
|
|
15150
|
+
function getResponseCacheKeys$J(keys, luvio, resourceParams, response) {
|
|
15151
|
+
const childEnvelopes = response.results;
|
|
15152
|
+
const childResourceParamsArray = createChildResourceParams$9(resourceParams);
|
|
15110
15153
|
if (process.env.NODE_ENV !== 'production') {
|
|
15111
15154
|
if (childResourceParamsArray.length !== childEnvelopes.length) {
|
|
15112
|
-
throw new Error('Invalid composite resource response. Expected ' +
|
|
15113
|
-
childResourceParamsArray.length +
|
|
15114
|
-
' items, received ' +
|
|
15115
|
-
childEnvelopes.length);
|
|
15155
|
+
throw new Error('Invalid composite resource response. Expected ' + childResourceParamsArray.length + ' items, received ' + childEnvelopes.length);
|
|
15116
15156
|
}
|
|
15117
15157
|
}
|
|
15118
|
-
|
|
15119
|
-
|
|
15158
|
+
// get children keys
|
|
15159
|
+
for (let index = 0, len = childResourceParamsArray.length; index < len; index++) {
|
|
15160
|
+
const childResourceParams = childResourceParamsArray[index];
|
|
15161
|
+
const childResult = childEnvelopes[index];
|
|
15162
|
+
const { statusCode: childStatusCode, result: childBody } = childResult;
|
|
15163
|
+
if (childStatusCode === 200) {
|
|
15164
|
+
getResponseCacheKeys$K(keys, luvio, childResourceParams, childBody);
|
|
15165
|
+
}
|
|
15166
|
+
else if (childStatusCode === 404) {
|
|
15167
|
+
const childKey = keyBuilder$2r(luvio, childResourceParams);
|
|
15168
|
+
keys.set(childKey, {
|
|
15169
|
+
namespace: keyPrefix,
|
|
15170
|
+
representationName: RepresentationType$G,
|
|
15171
|
+
mergeable: false
|
|
15172
|
+
});
|
|
15173
|
+
}
|
|
15174
|
+
}
|
|
15175
|
+
}
|
|
15176
|
+
function ingestSuccessChildResourceParams$7(luvio, childResourceParamsArray, childEnvelopes) {
|
|
15120
15177
|
const childSnapshotDataResponses = [];
|
|
15121
15178
|
let seenRecords = new StoreKeySet();
|
|
15179
|
+
let snapshotState = 'Fulfilled';
|
|
15180
|
+
const now = Date.now();
|
|
15122
15181
|
for (let index = 0, len = childResourceParamsArray.length; index < len; index += 1) {
|
|
15123
15182
|
const childResourceParams = childResourceParamsArray[index];
|
|
15183
|
+
const childKey = keyBuilder$2r(luvio, childResourceParams);
|
|
15124
15184
|
const result = childEnvelopes[index];
|
|
15125
|
-
const
|
|
15126
|
-
if (
|
|
15127
|
-
const { statusCode: childStatusCode, result: childBody } = result;
|
|
15185
|
+
const { statusCode: childStatusCode, result: childBody } = result;
|
|
15186
|
+
if (childStatusCode === 200) {
|
|
15128
15187
|
const childResponse = {
|
|
15129
|
-
status:
|
|
15188
|
+
status: 200,
|
|
15130
15189
|
body: childBody,
|
|
15131
15190
|
ok: true,
|
|
15132
|
-
statusText:
|
|
15191
|
+
statusText: 'OK',
|
|
15133
15192
|
headers: {},
|
|
15134
15193
|
};
|
|
15135
15194
|
const childSnapshot = ingestSuccess$C(luvio, childResourceParams, childResponse);
|
|
15195
|
+
if (childSnapshot.state === "Stale") {
|
|
15196
|
+
snapshotState = "Stale";
|
|
15197
|
+
}
|
|
15136
15198
|
seenRecords.merge(childSnapshot.seenRecords);
|
|
15137
15199
|
seenRecords.add(childSnapshot.recordId);
|
|
15138
|
-
if (childSnapshot.state === 'Pending') {
|
|
15139
|
-
snapshotState = 'Pending';
|
|
15140
|
-
break;
|
|
15141
|
-
}
|
|
15142
15200
|
const childValue = {
|
|
15143
|
-
statusCode:
|
|
15201
|
+
statusCode: 200,
|
|
15144
15202
|
result: childSnapshot.data,
|
|
15145
15203
|
};
|
|
15146
|
-
|
|
15204
|
+
deepFreeze(childValue);
|
|
15205
|
+
ArrayPrototypePush.call(childSnapshotDataResponses, childValue);
|
|
15147
15206
|
}
|
|
15148
15207
|
else {
|
|
15149
|
-
const
|
|
15208
|
+
const childStatusCodeText = getFetchResponseStatusText(result.statusCode);
|
|
15150
15209
|
const childResponse = {
|
|
15151
15210
|
status: childStatusCode,
|
|
15152
15211
|
body: childBody,
|
|
15153
15212
|
ok: false,
|
|
15154
15213
|
statusText: childStatusCodeText,
|
|
15155
15214
|
headers: {},
|
|
15156
|
-
errorType: 'fetchResponse'
|
|
15215
|
+
errorType: 'fetchResponse'
|
|
15157
15216
|
};
|
|
15158
15217
|
ingestError$x(luvio, childResourceParams, childResponse);
|
|
15159
|
-
seenRecords.add(
|
|
15218
|
+
seenRecords.add(childKey);
|
|
15160
15219
|
const childValue = {
|
|
15161
15220
|
statusCode: childStatusCode,
|
|
15162
15221
|
result: childBody,
|
|
15163
15222
|
};
|
|
15164
|
-
|
|
15223
|
+
deepFreeze(childValue);
|
|
15224
|
+
ArrayPrototypePush.call(childSnapshotDataResponses, childValue);
|
|
15225
|
+
}
|
|
15226
|
+
// track non-cached responses so rebuilds work properly
|
|
15227
|
+
if (childStatusCode !== 404 && childStatusCode !== 200) {
|
|
15228
|
+
nonCachedErrors$7[childKey] = { expiration: now + TTL$u, response: childBody, status: childStatusCode };
|
|
15229
|
+
}
|
|
15230
|
+
else {
|
|
15231
|
+
delete nonCachedErrors$7[childKey];
|
|
15165
15232
|
}
|
|
15166
15233
|
}
|
|
15167
15234
|
const childSnapshotData = {
|
|
15168
|
-
results: childSnapshotDataResponses
|
|
15235
|
+
results: childSnapshotDataResponses
|
|
15169
15236
|
};
|
|
15170
15237
|
deepFreeze(childSnapshotData);
|
|
15171
|
-
return {
|
|
15238
|
+
return { childSnapshotData: childSnapshotData, seenRecords, snapshotState };
|
|
15239
|
+
}
|
|
15240
|
+
function ingestSuccess$B(luvio, resourceParams, response, snapshotRefresh) {
|
|
15241
|
+
const childEnvelopes = response.body.results;
|
|
15242
|
+
const childResourceParamsArray = createChildResourceParams$9(resourceParams);
|
|
15243
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
15244
|
+
if (childResourceParamsArray.length !== childEnvelopes.length) {
|
|
15245
|
+
throw new Error('Invalid composite resource response. Expected ' + childResourceParamsArray.length + ' items, received ' + childEnvelopes.length);
|
|
15246
|
+
}
|
|
15247
|
+
}
|
|
15248
|
+
const key = keyBuilder$2q(luvio, resourceParams);
|
|
15249
|
+
const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$7(luvio, childResourceParamsArray, childEnvelopes);
|
|
15250
|
+
const syntheticSnapshot = {
|
|
15172
15251
|
recordId: key,
|
|
15173
15252
|
data: childSnapshotData,
|
|
15174
15253
|
state: snapshotState,
|
|
@@ -15178,44 +15257,19 @@ function ingestSuccess$B(luvio, resourceParams, response, _snapshotRefresh) {
|
|
|
15178
15257
|
node: select$2p(luvio, resourceParams),
|
|
15179
15258
|
variables: {},
|
|
15180
15259
|
},
|
|
15181
|
-
|
|
15260
|
+
refresh: snapshotRefresh,
|
|
15261
|
+
variables: {}
|
|
15182
15262
|
};
|
|
15263
|
+
// evict top level composite record from the store. This covers the case where a previous resource request returned a 404.
|
|
15264
|
+
luvio.storeEvict(key);
|
|
15265
|
+
return syntheticSnapshot;
|
|
15183
15266
|
}
|
|
15184
15267
|
function ingestError$w(luvio, params, error, snapshotRefresh) {
|
|
15185
|
-
const key = keyBuilder$
|
|
15268
|
+
const key = keyBuilder$2q(luvio, params);
|
|
15186
15269
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
15187
15270
|
luvio.storeIngestError(key, errorSnapshot);
|
|
15188
15271
|
return errorSnapshot;
|
|
15189
15272
|
}
|
|
15190
|
-
function getResponseCacheKeys$J(keys, luvio, resourceParams, response) {
|
|
15191
|
-
const childEnvelopes = response.results;
|
|
15192
|
-
const childResourceParamsArray = createChildResourceParams$7(resourceParams);
|
|
15193
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
15194
|
-
if (childResourceParamsArray.length !== childEnvelopes.length) {
|
|
15195
|
-
throw new Error('Invalid composite resource response. Expected ' +
|
|
15196
|
-
childResourceParamsArray.length +
|
|
15197
|
-
' items, received ' +
|
|
15198
|
-
childEnvelopes.length);
|
|
15199
|
-
}
|
|
15200
|
-
}
|
|
15201
|
-
// get children keys
|
|
15202
|
-
for (let index = 0, len = childResourceParamsArray.length; index < len; index++) {
|
|
15203
|
-
const childResourceParams = childResourceParamsArray[index];
|
|
15204
|
-
const childResult = childEnvelopes[index];
|
|
15205
|
-
const { statusCode: childStatusCode, result: childBody } = childResult;
|
|
15206
|
-
if (childStatusCode === 200) {
|
|
15207
|
-
getResponseCacheKeys$K(keys, luvio, childResourceParams, childBody);
|
|
15208
|
-
}
|
|
15209
|
-
else if (childStatusCode === 404) {
|
|
15210
|
-
const childKey = keyBuilder$2s(luvio, childResourceParams);
|
|
15211
|
-
keys.set(childKey, {
|
|
15212
|
-
namespace: keyPrefix,
|
|
15213
|
-
representationName: childKey.split('::')[1].split(':')[0],
|
|
15214
|
-
mergeable: false,
|
|
15215
|
-
});
|
|
15216
|
-
}
|
|
15217
|
-
}
|
|
15218
|
-
}
|
|
15219
15273
|
function createResourceRequest$N(config) {
|
|
15220
15274
|
const headers = {};
|
|
15221
15275
|
return {
|
|
@@ -15237,9 +15291,9 @@ const getRelatedListsActions_ConfigPropertyMetadata = [
|
|
|
15237
15291
|
];
|
|
15238
15292
|
const getRelatedListsActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$G, getRelatedListsActions_ConfigPropertyMetadata);
|
|
15239
15293
|
const createResourceParams$K = /*#__PURE__*/ createResourceParams$_(getRelatedListsActions_ConfigPropertyMetadata);
|
|
15240
|
-
function keyBuilder$
|
|
15294
|
+
function keyBuilder$2p(luvio, config) {
|
|
15241
15295
|
const resourceParams = createResourceParams$K(config);
|
|
15242
|
-
return keyBuilder$
|
|
15296
|
+
return keyBuilder$2q(luvio, resourceParams);
|
|
15243
15297
|
}
|
|
15244
15298
|
function typeCheckConfig$P(untrustedConfig) {
|
|
15245
15299
|
const config = {};
|
|
@@ -15277,7 +15331,10 @@ function adapterFragment$w(luvio, config) {
|
|
|
15277
15331
|
return select$2p(luvio, resourceParams);
|
|
15278
15332
|
}
|
|
15279
15333
|
function onFetchResponseSuccess$A(luvio, config, resourceParams, response) {
|
|
15280
|
-
const snapshot = ingestSuccess$B(luvio, resourceParams, response
|
|
15334
|
+
const snapshot = ingestSuccess$B(luvio, resourceParams, response, {
|
|
15335
|
+
config,
|
|
15336
|
+
resolve: () => buildNetworkSnapshot$N(luvio, config, snapshotRefreshOptions)
|
|
15337
|
+
});
|
|
15281
15338
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
15282
15339
|
}
|
|
15283
15340
|
function onFetchResponseError$A(luvio, config, resourceParams, response) {
|
|
@@ -15307,7 +15364,7 @@ function buildNetworkSnapshotCachePolicy$D(context, coercedAdapterRequestContext
|
|
|
15307
15364
|
function buildCachedSnapshotCachePolicy$D(context, storeLookup) {
|
|
15308
15365
|
const { luvio, config } = context;
|
|
15309
15366
|
const selector = {
|
|
15310
|
-
recordId: keyBuilder$
|
|
15367
|
+
recordId: keyBuilder$2p(luvio, config),
|
|
15311
15368
|
node: adapterFragment$w(luvio, config),
|
|
15312
15369
|
variables: {},
|
|
15313
15370
|
};
|
|
@@ -15339,9 +15396,9 @@ const getRelatedListActions_ConfigPropertyMetadata = [
|
|
|
15339
15396
|
];
|
|
15340
15397
|
const getRelatedListActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$F, getRelatedListActions_ConfigPropertyMetadata);
|
|
15341
15398
|
const createResourceParams$J = /*#__PURE__*/ createResourceParams$_(getRelatedListActions_ConfigPropertyMetadata);
|
|
15342
|
-
function keyBuilder$
|
|
15399
|
+
function keyBuilder$2o(luvio, config) {
|
|
15343
15400
|
const resourceParams = createResourceParams$J(config);
|
|
15344
|
-
return keyBuilder$
|
|
15401
|
+
return keyBuilder$2r(luvio, resourceParams);
|
|
15345
15402
|
}
|
|
15346
15403
|
function typeCheckConfig$O(untrustedConfig) {
|
|
15347
15404
|
const config = {};
|
|
@@ -15400,7 +15457,7 @@ function buildNetworkSnapshotCachePolicy$C(context, coercedAdapterRequestContext
|
|
|
15400
15457
|
function buildCachedSnapshotCachePolicy$C(context, storeLookup) {
|
|
15401
15458
|
const { luvio, config } = context;
|
|
15402
15459
|
const selector = {
|
|
15403
|
-
recordId: keyBuilder$
|
|
15460
|
+
recordId: keyBuilder$2o(luvio, config),
|
|
15404
15461
|
node: adapterFragment$v(luvio, config),
|
|
15405
15462
|
variables: {},
|
|
15406
15463
|
};
|
|
@@ -15423,15 +15480,15 @@ const getRelatedListActionsAdapterFactory = (luvio) => function UiApi__getRelate
|
|
|
15423
15480
|
function select$2o(luvio, params) {
|
|
15424
15481
|
return select$2A();
|
|
15425
15482
|
}
|
|
15426
|
-
function keyBuilder$
|
|
15483
|
+
function keyBuilder$2n(luvio, params) {
|
|
15427
15484
|
return keyPrefix + '::ActionRepresentation:(' + 'actionTypes:' + params.queryParams.actionTypes + ',' + 'formFactor:' + params.queryParams.formFactor + ',' + 'sections:' + params.queryParams.sections + ',' + 'recordIds:' + params.urlParams.recordIds + ',' + 'relatedListRecordIds:' + params.urlParams.relatedListRecordIds + ')';
|
|
15428
15485
|
}
|
|
15429
15486
|
function getResponseCacheKeys$I(storeKeyMap, luvio, resourceParams, response) {
|
|
15430
|
-
getTypeCacheKeys$1H(storeKeyMap, luvio, response, () => keyBuilder$
|
|
15487
|
+
getTypeCacheKeys$1H(storeKeyMap, luvio, response, () => keyBuilder$2n(luvio, resourceParams));
|
|
15431
15488
|
}
|
|
15432
15489
|
function ingestSuccess$A(luvio, resourceParams, response, snapshotRefresh) {
|
|
15433
15490
|
const { body } = response;
|
|
15434
|
-
const key = keyBuilder$
|
|
15491
|
+
const key = keyBuilder$2n(luvio, resourceParams);
|
|
15435
15492
|
luvio.storeIngest(key, ingest$1F, body);
|
|
15436
15493
|
const snapshot = luvio.storeLookup({
|
|
15437
15494
|
recordId: key,
|
|
@@ -15447,12 +15504,12 @@ function ingestSuccess$A(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
15447
15504
|
return snapshot;
|
|
15448
15505
|
}
|
|
15449
15506
|
function ingestError$v(luvio, params, error, snapshotRefresh) {
|
|
15450
|
-
const key = keyBuilder$
|
|
15507
|
+
const key = keyBuilder$2n(luvio, params);
|
|
15451
15508
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
15452
15509
|
const storeMetadataParams = {
|
|
15453
15510
|
ttl: TTL$u,
|
|
15454
15511
|
namespace: keyPrefix,
|
|
15455
|
-
version: VERSION$
|
|
15512
|
+
version: VERSION$23,
|
|
15456
15513
|
representationName: RepresentationType$G
|
|
15457
15514
|
};
|
|
15458
15515
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -15482,9 +15539,9 @@ const getRelatedListRecordActions_ConfigPropertyMetadata = [
|
|
|
15482
15539
|
];
|
|
15483
15540
|
const getRelatedListRecordActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$E, getRelatedListRecordActions_ConfigPropertyMetadata);
|
|
15484
15541
|
const createResourceParams$I = /*#__PURE__*/ createResourceParams$_(getRelatedListRecordActions_ConfigPropertyMetadata);
|
|
15485
|
-
function keyBuilder$
|
|
15542
|
+
function keyBuilder$2m(luvio, config) {
|
|
15486
15543
|
const resourceParams = createResourceParams$I(config);
|
|
15487
|
-
return keyBuilder$
|
|
15544
|
+
return keyBuilder$2n(luvio, resourceParams);
|
|
15488
15545
|
}
|
|
15489
15546
|
function typeCheckConfig$N(untrustedConfig) {
|
|
15490
15547
|
const config = {};
|
|
@@ -15543,7 +15600,7 @@ function buildNetworkSnapshotCachePolicy$B(context, coercedAdapterRequestContext
|
|
|
15543
15600
|
function buildCachedSnapshotCachePolicy$B(context, storeLookup) {
|
|
15544
15601
|
const { luvio, config } = context;
|
|
15545
15602
|
const selector = {
|
|
15546
|
-
recordId: keyBuilder$
|
|
15603
|
+
recordId: keyBuilder$2m(luvio, config),
|
|
15547
15604
|
node: adapterFragment$u(luvio, config),
|
|
15548
15605
|
variables: {},
|
|
15549
15606
|
};
|
|
@@ -15563,7 +15620,7 @@ const getRelatedListRecordActionsAdapterFactory = (luvio) => function UiApi__get
|
|
|
15563
15620
|
buildCachedSnapshotCachePolicy$B, buildNetworkSnapshotCachePolicy$B);
|
|
15564
15621
|
};
|
|
15565
15622
|
|
|
15566
|
-
const VERSION$
|
|
15623
|
+
const VERSION$20 = "a316b3bba367f54adc67d7552ed7d36d";
|
|
15567
15624
|
function validate$18(obj, path = 'PageReferenceRepresentation') {
|
|
15568
15625
|
const v_error = (() => {
|
|
15569
15626
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -15612,7 +15669,7 @@ function normalize$x(input, existing, path, luvio, store, timestamp) {
|
|
|
15612
15669
|
const select$2n = function PageReferenceRepresentationSelect() {
|
|
15613
15670
|
return {
|
|
15614
15671
|
kind: 'Fragment',
|
|
15615
|
-
version: VERSION$
|
|
15672
|
+
version: VERSION$20,
|
|
15616
15673
|
private: [],
|
|
15617
15674
|
opaque: true
|
|
15618
15675
|
};
|
|
@@ -15632,7 +15689,7 @@ const ingest$1C = function PageReferenceRepresentationIngest(input, path, luvio,
|
|
|
15632
15689
|
}
|
|
15633
15690
|
const key = path.fullPath;
|
|
15634
15691
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
15635
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$x, "UiApi", VERSION$
|
|
15692
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$x, "UiApi", VERSION$20, RepresentationType$D, equals$K);
|
|
15636
15693
|
return createLink$1(key);
|
|
15637
15694
|
};
|
|
15638
15695
|
function getTypeCacheKeys$1E(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -15646,7 +15703,7 @@ function getTypeCacheKeys$1E(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
15646
15703
|
}
|
|
15647
15704
|
|
|
15648
15705
|
const TTL$s = 120000;
|
|
15649
|
-
const VERSION$
|
|
15706
|
+
const VERSION$1$ = "09884ca5bf90ea4662092a4e48817081";
|
|
15650
15707
|
function validate$17(obj, path = 'NavItemRepresentation') {
|
|
15651
15708
|
const v_error = (() => {
|
|
15652
15709
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -15857,14 +15914,14 @@ function validate$17(obj, path = 'NavItemRepresentation') {
|
|
|
15857
15914
|
return v_error === undefined ? null : v_error;
|
|
15858
15915
|
}
|
|
15859
15916
|
const RepresentationType$C = 'NavItemRepresentation';
|
|
15860
|
-
function keyBuilder$
|
|
15917
|
+
function keyBuilder$2l(luvio, config) {
|
|
15861
15918
|
return keyPrefix + '::' + RepresentationType$C + ':' + config.developerName;
|
|
15862
15919
|
}
|
|
15863
15920
|
function keyBuilderFromType$l(luvio, object) {
|
|
15864
15921
|
const keyParams = {
|
|
15865
15922
|
developerName: object.developerName
|
|
15866
15923
|
};
|
|
15867
|
-
return keyBuilder$
|
|
15924
|
+
return keyBuilder$2l(luvio, keyParams);
|
|
15868
15925
|
}
|
|
15869
15926
|
function normalize$w(input, existing, path, luvio, store, timestamp) {
|
|
15870
15927
|
const input_pageReference = input.pageReference;
|
|
@@ -15886,7 +15943,7 @@ function normalize$w(input, existing, path, luvio, store, timestamp) {
|
|
|
15886
15943
|
const select$2m = function NavItemRepresentationSelect() {
|
|
15887
15944
|
return {
|
|
15888
15945
|
kind: 'Fragment',
|
|
15889
|
-
version: VERSION$
|
|
15946
|
+
version: VERSION$1$,
|
|
15890
15947
|
private: [],
|
|
15891
15948
|
selections: [
|
|
15892
15949
|
{
|
|
@@ -16046,7 +16103,7 @@ const ingest$1B = function NavItemRepresentationIngest(input, path, luvio, store
|
|
|
16046
16103
|
}
|
|
16047
16104
|
const key = keyBuilderFromType$l(luvio, input);
|
|
16048
16105
|
const ttlToUse = TTL$s;
|
|
16049
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$w, "UiApi", VERSION$
|
|
16106
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$w, "UiApi", VERSION$1$, RepresentationType$C, equals$J);
|
|
16050
16107
|
return createLink$1(key);
|
|
16051
16108
|
};
|
|
16052
16109
|
function getTypeCacheKeys$1D(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -16063,7 +16120,7 @@ function getTypeCacheKeys$1D(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
16063
16120
|
}
|
|
16064
16121
|
|
|
16065
16122
|
const TTL$r = 300000;
|
|
16066
|
-
const VERSION$
|
|
16123
|
+
const VERSION$1_ = "1781f2d3d4e413cf0c681774d82d02cd";
|
|
16067
16124
|
function validate$16(obj, path = 'AppRepresentation') {
|
|
16068
16125
|
const v_error = (() => {
|
|
16069
16126
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -16268,14 +16325,14 @@ function validate$16(obj, path = 'AppRepresentation') {
|
|
|
16268
16325
|
return v_error === undefined ? null : v_error;
|
|
16269
16326
|
}
|
|
16270
16327
|
const RepresentationType$B = 'AppRepresentation';
|
|
16271
|
-
function keyBuilder$
|
|
16328
|
+
function keyBuilder$2k(luvio, config) {
|
|
16272
16329
|
return keyPrefix + '::' + RepresentationType$B + ':' + (config.appId === null ? '' : config.appId);
|
|
16273
16330
|
}
|
|
16274
16331
|
function keyBuilderFromType$k(luvio, object) {
|
|
16275
16332
|
const keyParams = {
|
|
16276
16333
|
appId: object.appId
|
|
16277
16334
|
};
|
|
16278
|
-
return keyBuilder$
|
|
16335
|
+
return keyBuilder$2k(luvio, keyParams);
|
|
16279
16336
|
}
|
|
16280
16337
|
function normalize$v(input, existing, path, luvio, store, timestamp) {
|
|
16281
16338
|
const input_navItems = input.navItems;
|
|
@@ -16315,7 +16372,7 @@ function normalize$v(input, existing, path, luvio, store, timestamp) {
|
|
|
16315
16372
|
const select$2l = function AppRepresentationSelect() {
|
|
16316
16373
|
return {
|
|
16317
16374
|
kind: 'Fragment',
|
|
16318
|
-
version: VERSION$
|
|
16375
|
+
version: VERSION$1_,
|
|
16319
16376
|
private: [
|
|
16320
16377
|
'eTag'
|
|
16321
16378
|
],
|
|
@@ -16513,7 +16570,7 @@ const ingest$1A = function AppRepresentationIngest(input, path, luvio, store, ti
|
|
|
16513
16570
|
}
|
|
16514
16571
|
const key = keyBuilderFromType$k(luvio, input);
|
|
16515
16572
|
const ttlToUse = TTL$r;
|
|
16516
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$v, "UiApi", VERSION$
|
|
16573
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$v, "UiApi", VERSION$1_, RepresentationType$B, equals$I);
|
|
16517
16574
|
return createLink$1(key);
|
|
16518
16575
|
};
|
|
16519
16576
|
function getTypeCacheKeys$1C(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -16535,7 +16592,7 @@ function getTypeCacheKeys$1C(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
16535
16592
|
}
|
|
16536
16593
|
|
|
16537
16594
|
const TTL$q = 300000;
|
|
16538
|
-
const VERSION$
|
|
16595
|
+
const VERSION$1Z = "a254babf0b6414315db7808a157fd9fc";
|
|
16539
16596
|
function validate$15(obj, path = 'AppsRepresentation') {
|
|
16540
16597
|
const v_error = (() => {
|
|
16541
16598
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -16584,7 +16641,7 @@ function normalize$u(input, existing, path, luvio, store, timestamp) {
|
|
|
16584
16641
|
const select$2k = function AppsRepresentationSelect() {
|
|
16585
16642
|
return {
|
|
16586
16643
|
kind: 'Fragment',
|
|
16587
|
-
version: VERSION$
|
|
16644
|
+
version: VERSION$1Z,
|
|
16588
16645
|
private: [
|
|
16589
16646
|
'eTag'
|
|
16590
16647
|
],
|
|
@@ -16625,7 +16682,7 @@ const ingest$1z = function AppsRepresentationIngest(input, path, luvio, store, t
|
|
|
16625
16682
|
}
|
|
16626
16683
|
const key = path.fullPath;
|
|
16627
16684
|
const ttlToUse = TTL$q;
|
|
16628
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$u, "UiApi", VERSION$
|
|
16685
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$u, "UiApi", VERSION$1Z, RepresentationType$A, equals$H);
|
|
16629
16686
|
return createLink$1(key);
|
|
16630
16687
|
};
|
|
16631
16688
|
function getTypeCacheKeys$1B(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -16645,15 +16702,15 @@ function getTypeCacheKeys$1B(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
16645
16702
|
function select$2j(luvio, params) {
|
|
16646
16703
|
return select$2k();
|
|
16647
16704
|
}
|
|
16648
|
-
function keyBuilder$
|
|
16705
|
+
function keyBuilder$2j(luvio, params) {
|
|
16649
16706
|
return keyPrefix + '::AppsRepresentation:(' + 'formFactor:' + params.queryParams.formFactor + ',' + 'userCustomizations:' + params.queryParams.userCustomizations + ')';
|
|
16650
16707
|
}
|
|
16651
16708
|
function getResponseCacheKeys$H(storeKeyMap, luvio, resourceParams, response) {
|
|
16652
|
-
getTypeCacheKeys$1B(storeKeyMap, luvio, response, () => keyBuilder$
|
|
16709
|
+
getTypeCacheKeys$1B(storeKeyMap, luvio, response, () => keyBuilder$2j(luvio, resourceParams));
|
|
16653
16710
|
}
|
|
16654
16711
|
function ingestSuccess$z(luvio, resourceParams, response, snapshotRefresh) {
|
|
16655
16712
|
const { body } = response;
|
|
16656
|
-
const key = keyBuilder$
|
|
16713
|
+
const key = keyBuilder$2j(luvio, resourceParams);
|
|
16657
16714
|
luvio.storeIngest(key, ingest$1z, body);
|
|
16658
16715
|
const snapshot = luvio.storeLookup({
|
|
16659
16716
|
recordId: key,
|
|
@@ -16669,12 +16726,12 @@ function ingestSuccess$z(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
16669
16726
|
return snapshot;
|
|
16670
16727
|
}
|
|
16671
16728
|
function ingestError$u(luvio, params, error, snapshotRefresh) {
|
|
16672
|
-
const key = keyBuilder$
|
|
16729
|
+
const key = keyBuilder$2j(luvio, params);
|
|
16673
16730
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
16674
16731
|
const storeMetadataParams = {
|
|
16675
16732
|
ttl: TTL$q,
|
|
16676
16733
|
namespace: keyPrefix,
|
|
16677
|
-
version: VERSION$
|
|
16734
|
+
version: VERSION$1Z,
|
|
16678
16735
|
representationName: RepresentationType$A
|
|
16679
16736
|
};
|
|
16680
16737
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -16701,9 +16758,9 @@ const getAllApps_ConfigPropertyMetadata = [
|
|
|
16701
16758
|
];
|
|
16702
16759
|
const getAllApps_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$D, getAllApps_ConfigPropertyMetadata);
|
|
16703
16760
|
const createResourceParams$H = /*#__PURE__*/ createResourceParams$_(getAllApps_ConfigPropertyMetadata);
|
|
16704
|
-
function keyBuilder$
|
|
16761
|
+
function keyBuilder$2i(luvio, config) {
|
|
16705
16762
|
const resourceParams = createResourceParams$H(config);
|
|
16706
|
-
return keyBuilder$
|
|
16763
|
+
return keyBuilder$2j(luvio, resourceParams);
|
|
16707
16764
|
}
|
|
16708
16765
|
function typeCheckConfig$M(untrustedConfig) {
|
|
16709
16766
|
const config = {};
|
|
@@ -16762,7 +16819,7 @@ function buildNetworkSnapshotCachePolicy$A(context, coercedAdapterRequestContext
|
|
|
16762
16819
|
function buildCachedSnapshotCachePolicy$A(context, storeLookup) {
|
|
16763
16820
|
const { luvio, config } = context;
|
|
16764
16821
|
const selector = {
|
|
16765
|
-
recordId: keyBuilder$
|
|
16822
|
+
recordId: keyBuilder$2i(luvio, config),
|
|
16766
16823
|
node: adapterFragment$t(luvio, config),
|
|
16767
16824
|
variables: {},
|
|
16768
16825
|
};
|
|
@@ -16785,7 +16842,7 @@ const getAllAppsAdapterFactory = (luvio) => function UiApi__getAllApps(untrusted
|
|
|
16785
16842
|
function select$2i(luvio, params) {
|
|
16786
16843
|
return select$2l();
|
|
16787
16844
|
}
|
|
16788
|
-
function keyBuilder$
|
|
16845
|
+
function keyBuilder$2h(luvio, params) {
|
|
16789
16846
|
return keyPrefix + '::AppRepresentation:(' + 'formFactor:' + params.queryParams.formFactor + ',' + 'userCustomizations:' + params.queryParams.userCustomizations + ')';
|
|
16790
16847
|
}
|
|
16791
16848
|
function getResponseCacheKeys$G(storeKeyMap, luvio, resourceParams, response) {
|
|
@@ -16793,7 +16850,7 @@ function getResponseCacheKeys$G(storeKeyMap, luvio, resourceParams, response) {
|
|
|
16793
16850
|
}
|
|
16794
16851
|
function ingestSuccess$y(luvio, resourceParams, response, snapshotRefresh) {
|
|
16795
16852
|
const { body } = response;
|
|
16796
|
-
const key = keyBuilder$
|
|
16853
|
+
const key = keyBuilder$2h(luvio, resourceParams);
|
|
16797
16854
|
luvio.storeIngest(key, ingest$1A, body);
|
|
16798
16855
|
const snapshot = luvio.storeLookup({
|
|
16799
16856
|
recordId: key,
|
|
@@ -16809,12 +16866,12 @@ function ingestSuccess$y(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
16809
16866
|
return snapshot;
|
|
16810
16867
|
}
|
|
16811
16868
|
function ingestError$t(luvio, params, error, snapshotRefresh) {
|
|
16812
|
-
const key = keyBuilder$
|
|
16869
|
+
const key = keyBuilder$2h(luvio, params);
|
|
16813
16870
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
16814
16871
|
const storeMetadataParams = {
|
|
16815
16872
|
ttl: TTL$r,
|
|
16816
16873
|
namespace: keyPrefix,
|
|
16817
|
-
version: VERSION$
|
|
16874
|
+
version: VERSION$1_,
|
|
16818
16875
|
representationName: RepresentationType$B
|
|
16819
16876
|
};
|
|
16820
16877
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -16841,9 +16898,9 @@ const getSelectedApp_ConfigPropertyMetadata = [
|
|
|
16841
16898
|
];
|
|
16842
16899
|
const getSelectedApp_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$C, getSelectedApp_ConfigPropertyMetadata);
|
|
16843
16900
|
const createResourceParams$G = /*#__PURE__*/ createResourceParams$_(getSelectedApp_ConfigPropertyMetadata);
|
|
16844
|
-
function keyBuilder$
|
|
16901
|
+
function keyBuilder$2g(luvio, config) {
|
|
16845
16902
|
const resourceParams = createResourceParams$G(config);
|
|
16846
|
-
return keyBuilder$
|
|
16903
|
+
return keyBuilder$2h(luvio, resourceParams);
|
|
16847
16904
|
}
|
|
16848
16905
|
function typeCheckConfig$L(untrustedConfig) {
|
|
16849
16906
|
const config = {};
|
|
@@ -16901,7 +16958,7 @@ function buildNetworkSnapshotCachePolicy$z(context, coercedAdapterRequestContext
|
|
|
16901
16958
|
function buildCachedSnapshotCachePolicy$z(context, storeLookup) {
|
|
16902
16959
|
const { luvio, config } = context;
|
|
16903
16960
|
const selector = {
|
|
16904
|
-
recordId: keyBuilder$
|
|
16961
|
+
recordId: keyBuilder$2g(luvio, config),
|
|
16905
16962
|
node: adapterFragment$s(luvio, config),
|
|
16906
16963
|
variables: {},
|
|
16907
16964
|
};
|
|
@@ -16924,8 +16981,8 @@ const getSelectedAppAdapterFactory = (luvio) => function UiApi__getSelectedApp(u
|
|
|
16924
16981
|
function select$2h(luvio, params) {
|
|
16925
16982
|
return select$2l();
|
|
16926
16983
|
}
|
|
16927
|
-
function keyBuilder$
|
|
16928
|
-
return keyBuilder$
|
|
16984
|
+
function keyBuilder$2f(luvio, params) {
|
|
16985
|
+
return keyBuilder$2k(luvio, {
|
|
16929
16986
|
appId: params.urlParams.appId
|
|
16930
16987
|
});
|
|
16931
16988
|
}
|
|
@@ -16934,7 +16991,7 @@ function getResponseCacheKeys$F(storeKeyMap, luvio, resourceParams, response) {
|
|
|
16934
16991
|
}
|
|
16935
16992
|
function ingestSuccess$x(luvio, resourceParams, response, snapshotRefresh) {
|
|
16936
16993
|
const { body } = response;
|
|
16937
|
-
const key = keyBuilder$
|
|
16994
|
+
const key = keyBuilder$2f(luvio, resourceParams);
|
|
16938
16995
|
luvio.storeIngest(key, ingest$1A, body);
|
|
16939
16996
|
const snapshot = luvio.storeLookup({
|
|
16940
16997
|
recordId: key,
|
|
@@ -16950,12 +17007,12 @@ function ingestSuccess$x(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
16950
17007
|
return snapshot;
|
|
16951
17008
|
}
|
|
16952
17009
|
function ingestError$s(luvio, params, error, snapshotRefresh) {
|
|
16953
|
-
const key = keyBuilder$
|
|
17010
|
+
const key = keyBuilder$2f(luvio, params);
|
|
16954
17011
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
16955
17012
|
const storeMetadataParams = {
|
|
16956
17013
|
ttl: TTL$r,
|
|
16957
17014
|
namespace: keyPrefix,
|
|
16958
|
-
version: VERSION$
|
|
17015
|
+
version: VERSION$1_,
|
|
16959
17016
|
representationName: RepresentationType$B
|
|
16960
17017
|
};
|
|
16961
17018
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -16983,9 +17040,9 @@ const getAppDetails_ConfigPropertyMetadata = [
|
|
|
16983
17040
|
];
|
|
16984
17041
|
const getAppDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$B, getAppDetails_ConfigPropertyMetadata);
|
|
16985
17042
|
const createResourceParams$F = /*#__PURE__*/ createResourceParams$_(getAppDetails_ConfigPropertyMetadata);
|
|
16986
|
-
function keyBuilder$
|
|
17043
|
+
function keyBuilder$2e(luvio, config) {
|
|
16987
17044
|
const resourceParams = createResourceParams$F(config);
|
|
16988
|
-
return keyBuilder$
|
|
17045
|
+
return keyBuilder$2f(luvio, resourceParams);
|
|
16989
17046
|
}
|
|
16990
17047
|
function typeCheckConfig$K(untrustedConfig) {
|
|
16991
17048
|
const config = {};
|
|
@@ -17044,7 +17101,7 @@ function buildNetworkSnapshotCachePolicy$y(context, coercedAdapterRequestContext
|
|
|
17044
17101
|
function buildCachedSnapshotCachePolicy$y(context, storeLookup) {
|
|
17045
17102
|
const { luvio, config } = context;
|
|
17046
17103
|
const selector = {
|
|
17047
|
-
recordId: keyBuilder$
|
|
17104
|
+
recordId: keyBuilder$2e(luvio, config),
|
|
17048
17105
|
node: adapterFragment$r(luvio, config),
|
|
17049
17106
|
variables: {},
|
|
17050
17107
|
};
|
|
@@ -17064,7 +17121,7 @@ const getAppDetailsAdapterFactory = (luvio) => function UiApi__getAppDetails(unt
|
|
|
17064
17121
|
buildCachedSnapshotCachePolicy$y, buildNetworkSnapshotCachePolicy$y);
|
|
17065
17122
|
};
|
|
17066
17123
|
|
|
17067
|
-
const VERSION$
|
|
17124
|
+
const VERSION$1Y = "f43ef90ffde4d488414d6868e3aaefcb";
|
|
17068
17125
|
function validate$14(obj, path = 'DuplicateRuleFilterItemRepresentation') {
|
|
17069
17126
|
const v_error = (() => {
|
|
17070
17127
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -17101,7 +17158,7 @@ function validate$14(obj, path = 'DuplicateRuleFilterItemRepresentation') {
|
|
|
17101
17158
|
const select$2g = function DuplicateRuleFilterItemRepresentationSelect() {
|
|
17102
17159
|
return {
|
|
17103
17160
|
kind: 'Fragment',
|
|
17104
|
-
version: VERSION$
|
|
17161
|
+
version: VERSION$1Y,
|
|
17105
17162
|
private: [
|
|
17106
17163
|
'eTag'
|
|
17107
17164
|
],
|
|
@@ -17126,7 +17183,7 @@ const select$2g = function DuplicateRuleFilterItemRepresentationSelect() {
|
|
|
17126
17183
|
};
|
|
17127
17184
|
};
|
|
17128
17185
|
|
|
17129
|
-
const VERSION$
|
|
17186
|
+
const VERSION$1X = "320d7f254687278f2763d4b490dab3fb";
|
|
17130
17187
|
function validate$13(obj, path = 'DuplicateRuleFilterRepresentation') {
|
|
17131
17188
|
const v_error = (() => {
|
|
17132
17189
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -17169,7 +17226,7 @@ const select$2f = function DuplicateRuleFilterRepresentationSelect() {
|
|
|
17169
17226
|
const { selections: DuplicateRuleFilterItemRepresentation__selections, opaque: DuplicateRuleFilterItemRepresentation__opaque, } = select$2g();
|
|
17170
17227
|
return {
|
|
17171
17228
|
kind: 'Fragment',
|
|
17172
|
-
version: VERSION$
|
|
17229
|
+
version: VERSION$1X,
|
|
17173
17230
|
private: [
|
|
17174
17231
|
'eTag'
|
|
17175
17232
|
],
|
|
@@ -17192,7 +17249,7 @@ const select$2f = function DuplicateRuleFilterRepresentationSelect() {
|
|
|
17192
17249
|
};
|
|
17193
17250
|
};
|
|
17194
17251
|
|
|
17195
|
-
const VERSION$
|
|
17252
|
+
const VERSION$1W = "b47b44e260e5ce777beaf3da9088997c";
|
|
17196
17253
|
function validate$12(obj, path = 'MatchRuleRepresentation') {
|
|
17197
17254
|
const v_error = (() => {
|
|
17198
17255
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -17236,7 +17293,7 @@ function validate$12(obj, path = 'MatchRuleRepresentation') {
|
|
|
17236
17293
|
const select$2e = function MatchRuleRepresentationSelect() {
|
|
17237
17294
|
return {
|
|
17238
17295
|
kind: 'Fragment',
|
|
17239
|
-
version: VERSION$
|
|
17296
|
+
version: VERSION$1W,
|
|
17240
17297
|
private: [
|
|
17241
17298
|
'eTag'
|
|
17242
17299
|
],
|
|
@@ -17262,7 +17319,7 @@ const select$2e = function MatchRuleRepresentationSelect() {
|
|
|
17262
17319
|
};
|
|
17263
17320
|
};
|
|
17264
17321
|
|
|
17265
|
-
const VERSION$
|
|
17322
|
+
const VERSION$1V = "bb83d7210bb1d7861b6188bc5f552617";
|
|
17266
17323
|
function validate$11(obj, path = 'DuplicateRuleRepresentation') {
|
|
17267
17324
|
const v_error = (() => {
|
|
17268
17325
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -17355,7 +17412,7 @@ const select$2d = function DuplicateRuleRepresentationSelect() {
|
|
|
17355
17412
|
const { selections: MatchRuleRepresentation__selections, opaque: MatchRuleRepresentation__opaque, } = select$2e();
|
|
17356
17413
|
return {
|
|
17357
17414
|
kind: 'Fragment',
|
|
17358
|
-
version: VERSION$
|
|
17415
|
+
version: VERSION$1V,
|
|
17359
17416
|
private: [
|
|
17360
17417
|
'eTag'
|
|
17361
17418
|
],
|
|
@@ -17403,7 +17460,7 @@ const select$2d = function DuplicateRuleRepresentationSelect() {
|
|
|
17403
17460
|
};
|
|
17404
17461
|
|
|
17405
17462
|
const TTL$p = 900000;
|
|
17406
|
-
const VERSION$
|
|
17463
|
+
const VERSION$1U = "be27ee99dc0dc43a1f66b8fe98dc532c";
|
|
17407
17464
|
function validate$10(obj, path = 'DuplicatesConfigurationRepresentation') {
|
|
17408
17465
|
const v_error = (() => {
|
|
17409
17466
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -17467,7 +17524,7 @@ const select$2c = function DuplicatesConfigurationRepresentationSelect() {
|
|
|
17467
17524
|
const { selections: DuplicateRuleRepresentation__selections, opaque: DuplicateRuleRepresentation__opaque, } = select$2d();
|
|
17468
17525
|
return {
|
|
17469
17526
|
kind: 'Fragment',
|
|
17470
|
-
version: VERSION$
|
|
17527
|
+
version: VERSION$1U,
|
|
17471
17528
|
private: [
|
|
17472
17529
|
'eTag'
|
|
17473
17530
|
],
|
|
@@ -17513,7 +17570,7 @@ const ingest$1y = function DuplicatesConfigurationRepresentationIngest(input, pa
|
|
|
17513
17570
|
}
|
|
17514
17571
|
const key = path.fullPath;
|
|
17515
17572
|
const ttlToUse = TTL$p;
|
|
17516
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$t, "UiApi", VERSION$
|
|
17573
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$t, "UiApi", VERSION$1U, RepresentationType$z, equals$G);
|
|
17517
17574
|
return createLink$1(key);
|
|
17518
17575
|
};
|
|
17519
17576
|
function getTypeCacheKeys$1A(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -17529,15 +17586,15 @@ function getTypeCacheKeys$1A(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
17529
17586
|
function select$2b(luvio, params) {
|
|
17530
17587
|
return select$2c();
|
|
17531
17588
|
}
|
|
17532
|
-
function keyBuilder$
|
|
17589
|
+
function keyBuilder$2d(luvio, params) {
|
|
17533
17590
|
return keyPrefix + '::DuplicatesConfigurationRepresentation:(' + 'recordTypeId:' + params.queryParams.recordTypeId + ',' + 'objectApiName:' + params.urlParams.objectApiName + ')';
|
|
17534
17591
|
}
|
|
17535
17592
|
function getResponseCacheKeys$E(storeKeyMap, luvio, resourceParams, response) {
|
|
17536
|
-
getTypeCacheKeys$1A(storeKeyMap, luvio, response, () => keyBuilder$
|
|
17593
|
+
getTypeCacheKeys$1A(storeKeyMap, luvio, response, () => keyBuilder$2d(luvio, resourceParams));
|
|
17537
17594
|
}
|
|
17538
17595
|
function ingestSuccess$w(luvio, resourceParams, response, snapshotRefresh) {
|
|
17539
17596
|
const { body } = response;
|
|
17540
|
-
const key = keyBuilder$
|
|
17597
|
+
const key = keyBuilder$2d(luvio, resourceParams);
|
|
17541
17598
|
luvio.storeIngest(key, ingest$1y, body);
|
|
17542
17599
|
const snapshot = luvio.storeLookup({
|
|
17543
17600
|
recordId: key,
|
|
@@ -17553,12 +17610,12 @@ function ingestSuccess$w(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
17553
17610
|
return snapshot;
|
|
17554
17611
|
}
|
|
17555
17612
|
function ingestError$r(luvio, params, error, snapshotRefresh) {
|
|
17556
|
-
const key = keyBuilder$
|
|
17613
|
+
const key = keyBuilder$2d(luvio, params);
|
|
17557
17614
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
17558
17615
|
const storeMetadataParams = {
|
|
17559
17616
|
ttl: TTL$p,
|
|
17560
17617
|
namespace: keyPrefix,
|
|
17561
|
-
version: VERSION$
|
|
17618
|
+
version: VERSION$1U,
|
|
17562
17619
|
representationName: RepresentationType$z
|
|
17563
17620
|
};
|
|
17564
17621
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -17585,9 +17642,9 @@ const getDuplicateConfiguration_ConfigPropertyMetadata = [
|
|
|
17585
17642
|
];
|
|
17586
17643
|
const getDuplicateConfiguration_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$A, getDuplicateConfiguration_ConfigPropertyMetadata);
|
|
17587
17644
|
const createResourceParams$E = /*#__PURE__*/ createResourceParams$_(getDuplicateConfiguration_ConfigPropertyMetadata);
|
|
17588
|
-
function keyBuilder$
|
|
17645
|
+
function keyBuilder$2c(luvio, config) {
|
|
17589
17646
|
const resourceParams = createResourceParams$E(config);
|
|
17590
|
-
return keyBuilder$
|
|
17647
|
+
return keyBuilder$2d(luvio, resourceParams);
|
|
17591
17648
|
}
|
|
17592
17649
|
function typeCheckConfig$J(untrustedConfig) {
|
|
17593
17650
|
const config = {};
|
|
@@ -17645,7 +17702,7 @@ function buildNetworkSnapshotCachePolicy$x(context, coercedAdapterRequestContext
|
|
|
17645
17702
|
function buildCachedSnapshotCachePolicy$x(context, storeLookup) {
|
|
17646
17703
|
const { luvio, config } = context;
|
|
17647
17704
|
const selector = {
|
|
17648
|
-
recordId: keyBuilder$
|
|
17705
|
+
recordId: keyBuilder$2c(luvio, config),
|
|
17649
17706
|
node: adapterFragment$q(luvio, config),
|
|
17650
17707
|
variables: {},
|
|
17651
17708
|
};
|
|
@@ -17685,19 +17742,19 @@ function coerceLayoutMode(value) {
|
|
|
17685
17742
|
return undefined;
|
|
17686
17743
|
}
|
|
17687
17744
|
|
|
17688
|
-
function keyBuilder$
|
|
17745
|
+
function keyBuilder$2b(luvio, params) {
|
|
17689
17746
|
return keyPrefix + '::RecordLayoutRepresentation:(' + 'formFactor:' + params.queryParams.formFactor + ',' + 'layoutType:' + params.queryParams.layoutType + ',' + 'mode:' + params.queryParams.mode + ',' + 'recordTypeId:' + params.queryParams.recordTypeId + ',' + 'objectApiName:' + params.urlParams.objectApiName + ')';
|
|
17690
17747
|
}
|
|
17691
17748
|
function getResponseCacheKeys$D(storeKeyMap, luvio, resourceParams, response) {
|
|
17692
17749
|
getTypeCacheKeys$1N(storeKeyMap, luvio, response);
|
|
17693
17750
|
}
|
|
17694
17751
|
function ingestError$q(luvio, params, error, snapshotRefresh) {
|
|
17695
|
-
const key = keyBuilder$
|
|
17752
|
+
const key = keyBuilder$2b(luvio, params);
|
|
17696
17753
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
17697
17754
|
const storeMetadataParams = {
|
|
17698
17755
|
ttl: TTL$y,
|
|
17699
17756
|
namespace: keyPrefix,
|
|
17700
|
-
version: VERSION$
|
|
17757
|
+
version: VERSION$2a,
|
|
17701
17758
|
representationName: RepresentationType$N
|
|
17702
17759
|
};
|
|
17703
17760
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -17719,7 +17776,7 @@ function createResourceRequest$H(config) {
|
|
|
17719
17776
|
|
|
17720
17777
|
function onFetchResponseSuccess$t(luvio, config, resourceParams, response) {
|
|
17721
17778
|
const { body } = response;
|
|
17722
|
-
const key = keyBuilder$
|
|
17779
|
+
const key = keyBuilder$2P(luvio, config);
|
|
17723
17780
|
luvio.storeIngest(key, ingest$1L, body);
|
|
17724
17781
|
const snapshot = luvio.storeLookup({
|
|
17725
17782
|
recordId: key,
|
|
@@ -17768,7 +17825,7 @@ function validateAdapterConfig$L(untrustedConfig, _configPropertyNames) {
|
|
|
17768
17825
|
function buildCachedSnapshotCachePolicy$w(context, storeLookup) {
|
|
17769
17826
|
const { luvio, config } = context;
|
|
17770
17827
|
const selector = {
|
|
17771
|
-
recordId: keyBuilder$
|
|
17828
|
+
recordId: keyBuilder$2P(luvio, config),
|
|
17772
17829
|
node: select$2F(),
|
|
17773
17830
|
variables: {},
|
|
17774
17831
|
};
|
|
@@ -17858,7 +17915,7 @@ function createResourceRequest$G(config) {
|
|
|
17858
17915
|
|
|
17859
17916
|
function buildCachedSnapshot$4(luvio, config) {
|
|
17860
17917
|
const { objectApiName, recordTypeId, layoutType, mode } = config;
|
|
17861
|
-
const key = keyBuilder$
|
|
17918
|
+
const key = keyBuilder$2O(luvio, {
|
|
17862
17919
|
apiName: objectApiName,
|
|
17863
17920
|
recordTypeId,
|
|
17864
17921
|
layoutType,
|
|
@@ -17913,7 +17970,7 @@ function onFetchResponseError$s(luvio, config, key, error) {
|
|
|
17913
17970
|
}
|
|
17914
17971
|
function prepareRequest$3(luvio, config) {
|
|
17915
17972
|
const { recordTypeId, layoutType, mode, objectApiName } = config;
|
|
17916
|
-
const key = keyBuilder$
|
|
17973
|
+
const key = keyBuilder$2O(luvio, {
|
|
17917
17974
|
apiName: objectApiName,
|
|
17918
17975
|
recordTypeId,
|
|
17919
17976
|
layoutType,
|
|
@@ -17978,7 +18035,7 @@ function buildCachedSnapshotCachePolicy$v(context, storeLookup) {
|
|
|
17978
18035
|
const { config, luvio } = context;
|
|
17979
18036
|
const { objectApiName, recordTypeId, layoutType, mode } = config;
|
|
17980
18037
|
const selector = {
|
|
17981
|
-
recordId: keyBuilder$
|
|
18038
|
+
recordId: keyBuilder$2O(luvio, {
|
|
17982
18039
|
apiName: objectApiName,
|
|
17983
18040
|
recordTypeId,
|
|
17984
18041
|
layoutType,
|
|
@@ -18032,8 +18089,8 @@ const getLayoutUserStateAdapterFactory = (luvio) => function UiApi__getLayoutUse
|
|
|
18032
18089
|
buildCachedSnapshotCachePolicy$v, buildNetworkSnapshotCachePolicy$v);
|
|
18033
18090
|
};
|
|
18034
18091
|
|
|
18035
|
-
function keyBuilder$
|
|
18036
|
-
return keyBuilder$
|
|
18092
|
+
function keyBuilder$2a(luvio, params) {
|
|
18093
|
+
return keyBuilder$36(luvio, {
|
|
18037
18094
|
objectApiName: params.urlParams.objectApiName,
|
|
18038
18095
|
listViewApiName: params.urlParams.listViewApiName,
|
|
18039
18096
|
type: params.urlParams.listViewApiName === '__Recent' ? 'mru' : 'listView',
|
|
@@ -18043,19 +18100,12 @@ function keyBuilder$2b(luvio, params) {
|
|
|
18043
18100
|
function select$2a(luvio, params) {
|
|
18044
18101
|
return select$2U();
|
|
18045
18102
|
}
|
|
18046
|
-
function keyBuilder$2a(luvio, params) {
|
|
18047
|
-
return keyBuilder$37(luvio, {
|
|
18048
|
-
objectApiName: params.urlParams.objectApiName,
|
|
18049
|
-
listViewApiName: params.urlParams.listViewApiName,
|
|
18050
|
-
type: "listView"
|
|
18051
|
-
});
|
|
18052
|
-
}
|
|
18053
18103
|
function getResponseCacheKeys$B(storeKeyMap, luvio, resourceParams, response) {
|
|
18054
18104
|
getTypeCacheKeys$1X(storeKeyMap, luvio, response);
|
|
18055
18105
|
}
|
|
18056
18106
|
function ingestSuccess$v(luvio, resourceParams, response, snapshotRefresh) {
|
|
18057
18107
|
const { body } = response;
|
|
18058
|
-
const key = keyBuilder$
|
|
18108
|
+
const key = keyBuilder$2a(luvio, resourceParams);
|
|
18059
18109
|
luvio.storeIngest(key, ingest$1U, body);
|
|
18060
18110
|
const snapshot = luvio.storeLookup({
|
|
18061
18111
|
recordId: key,
|
|
@@ -18071,12 +18121,12 @@ function ingestSuccess$v(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
18071
18121
|
return snapshot;
|
|
18072
18122
|
}
|
|
18073
18123
|
function ingestError$p(luvio, params, error, snapshotRefresh) {
|
|
18074
|
-
const key = keyBuilder$
|
|
18124
|
+
const key = keyBuilder$2a(luvio, params);
|
|
18075
18125
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
18076
18126
|
const storeMetadataParams = {
|
|
18077
18127
|
ttl: TTL$D,
|
|
18078
18128
|
namespace: keyPrefix,
|
|
18079
|
-
version: VERSION$
|
|
18129
|
+
version: VERSION$2l,
|
|
18080
18130
|
representationName: RepresentationType$W
|
|
18081
18131
|
};
|
|
18082
18132
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -18096,10 +18146,7 @@ function createResourceRequest$F(config) {
|
|
|
18096
18146
|
};
|
|
18097
18147
|
}
|
|
18098
18148
|
|
|
18099
|
-
|
|
18100
|
-
|
|
18101
|
-
const nonCachedErrors$6 = ObjectCreate$1(null);
|
|
18102
|
-
function createChildResourceParams$6(resourceParams) {
|
|
18149
|
+
function createChildResourceParams$8(resourceParams) {
|
|
18103
18150
|
const childConfigs = [];
|
|
18104
18151
|
const { queryParams } = resourceParams;
|
|
18105
18152
|
const { names = [] } = queryParams;
|
|
@@ -18114,6 +18161,11 @@ function createChildResourceParams$6(resourceParams) {
|
|
|
18114
18161
|
}
|
|
18115
18162
|
return childConfigs;
|
|
18116
18163
|
}
|
|
18164
|
+
|
|
18165
|
+
const nonCachedErrors$6 = ObjectCreate$1(null);
|
|
18166
|
+
function createChildResourceParams$7(resourceParams) {
|
|
18167
|
+
return createChildResourceParams$8(resourceParams);
|
|
18168
|
+
}
|
|
18117
18169
|
function selectChildResourceParams$6(luvio, childResources, resourceParams) {
|
|
18118
18170
|
const envelopeBodyPath = 'result';
|
|
18119
18171
|
const envelopeStatusCodePath = 'statusCode';
|
|
@@ -18124,21 +18176,11 @@ function selectChildResourceParams$6(luvio, childResources, resourceParams) {
|
|
|
18124
18176
|
synthetic: true,
|
|
18125
18177
|
read: (reader) => {
|
|
18126
18178
|
// Top-level 404 lookup
|
|
18127
|
-
const
|
|
18128
|
-
|
|
18129
|
-
node: {
|
|
18130
|
-
kind: 'Fragment',
|
|
18131
|
-
private: [],
|
|
18132
|
-
version: VERSION$1U,
|
|
18133
|
-
},
|
|
18134
|
-
variables: {},
|
|
18135
|
-
});
|
|
18136
|
-
if (compositeSnapshot.state === 'Error' &&
|
|
18137
|
-
compositeSnapshot.error.errorType === 'fetchResponse' &&
|
|
18138
|
-
compositeSnapshot.error.status === 404) {
|
|
18179
|
+
const result = reader.storeLookup(keyBuilder$29(luvio, resourceParams));
|
|
18180
|
+
if (result.state === reader.StoreResolveResultState.Error && result.value.status === 404) {
|
|
18139
18181
|
return {
|
|
18140
|
-
state:
|
|
18141
|
-
value:
|
|
18182
|
+
state: 'Error',
|
|
18183
|
+
value: result.value,
|
|
18142
18184
|
};
|
|
18143
18185
|
}
|
|
18144
18186
|
const sink = {};
|
|
@@ -18163,7 +18205,6 @@ function selectChildResourceParams$6(luvio, childResources, resourceParams) {
|
|
|
18163
18205
|
case 'Stale':
|
|
18164
18206
|
reader.markStale();
|
|
18165
18207
|
// Stale needs envelope bodies filled in so don't break
|
|
18166
|
-
// eslint-disable-next-line no-fallthrough
|
|
18167
18208
|
case 'Fulfilled':
|
|
18168
18209
|
reader.enterPath(envelopeStatusCodePath);
|
|
18169
18210
|
reader.assignScalar(envelopeStatusCodePath, childSink, 200);
|
|
@@ -18173,7 +18214,6 @@ function selectChildResourceParams$6(luvio, childResources, resourceParams) {
|
|
|
18173
18214
|
reader.exitPath();
|
|
18174
18215
|
break;
|
|
18175
18216
|
case 'Error':
|
|
18176
|
-
// eslint-disable-next-line no-case-declarations
|
|
18177
18217
|
const childSnapshotError = childSnapshot.error;
|
|
18178
18218
|
reader.enterPath(envelopeStatusCodePath);
|
|
18179
18219
|
reader.assignScalar(envelopeStatusCodePath, childSink, childSnapshotError.status);
|
|
@@ -18198,8 +18238,7 @@ function selectChildResourceParams$6(luvio, childResources, resourceParams) {
|
|
|
18198
18238
|
// snapshot will look like an Unfulfilled snapshot
|
|
18199
18239
|
// instead of an error snapshot).
|
|
18200
18240
|
const nonCachedError = nonCachedErrors$6[childKey];
|
|
18201
|
-
if (nonCachedError === undefined ||
|
|
18202
|
-
nonCachedError.expiration < reader.getTimeStamp()) {
|
|
18241
|
+
if (nonCachedError === undefined || nonCachedError.expiration < reader.getTimeStamp()) {
|
|
18203
18242
|
reader.markMissingLink(childKey);
|
|
18204
18243
|
}
|
|
18205
18244
|
else {
|
|
@@ -18227,35 +18266,24 @@ function selectChildResourceParams$6(luvio, childResources, resourceParams) {
|
|
|
18227
18266
|
reader.exitPath();
|
|
18228
18267
|
}
|
|
18229
18268
|
reader.assignNonScalar(sink, envelopePath, results);
|
|
18230
|
-
deepFreeze(sink);
|
|
18231
18269
|
reader.exitPath();
|
|
18232
18270
|
return sink;
|
|
18233
|
-
}
|
|
18271
|
+
}
|
|
18234
18272
|
};
|
|
18235
18273
|
}
|
|
18236
18274
|
function select$29(luvio, resourceParams) {
|
|
18237
|
-
const childResources = createChildResourceParams$
|
|
18275
|
+
const childResources = createChildResourceParams$7(resourceParams);
|
|
18238
18276
|
return selectChildResourceParams$6(luvio, childResources, resourceParams);
|
|
18239
18277
|
}
|
|
18240
18278
|
function keyBuilder$29(luvio, params) {
|
|
18241
|
-
return
|
|
18242
|
-
'::ListInfoBatchRepresentation:(' +
|
|
18243
|
-
'ids:' +
|
|
18244
|
-
params.queryParams.ids +
|
|
18245
|
-
',' +
|
|
18246
|
-
'names:' +
|
|
18247
|
-
params.queryParams.names +
|
|
18248
|
-
')');
|
|
18279
|
+
return keyPrefix + '::ListInfoBatchRepresentation:(' + 'ids:' + params.queryParams.ids + ',' + 'names:' + params.queryParams.names + ')';
|
|
18249
18280
|
}
|
|
18250
18281
|
function getResponseCacheKeys$A(keys, luvio, resourceParams, response) {
|
|
18251
18282
|
const childEnvelopes = response.results;
|
|
18252
|
-
const childResourceParamsArray = createChildResourceParams$
|
|
18283
|
+
const childResourceParamsArray = createChildResourceParams$7(resourceParams);
|
|
18253
18284
|
if (process.env.NODE_ENV !== 'production') {
|
|
18254
18285
|
if (childResourceParamsArray.length !== childEnvelopes.length) {
|
|
18255
|
-
throw new Error('Invalid composite resource response. Expected ' +
|
|
18256
|
-
childResourceParamsArray.length +
|
|
18257
|
-
' items, received ' +
|
|
18258
|
-
childEnvelopes.length);
|
|
18286
|
+
throw new Error('Invalid composite resource response. Expected ' + childResourceParamsArray.length + ' items, received ' + childEnvelopes.length);
|
|
18259
18287
|
}
|
|
18260
18288
|
}
|
|
18261
18289
|
// get children keys
|
|
@@ -18270,13 +18298,13 @@ function getResponseCacheKeys$A(keys, luvio, resourceParams, response) {
|
|
|
18270
18298
|
const childKey = keyBuilder$2a(luvio, childResourceParams);
|
|
18271
18299
|
keys.set(childKey, {
|
|
18272
18300
|
namespace: keyPrefix,
|
|
18273
|
-
representationName:
|
|
18274
|
-
mergeable: false
|
|
18301
|
+
representationName: RepresentationType$W,
|
|
18302
|
+
mergeable: false
|
|
18275
18303
|
});
|
|
18276
18304
|
}
|
|
18277
18305
|
}
|
|
18278
18306
|
}
|
|
18279
|
-
function ingestSuccessChildResourceParams$
|
|
18307
|
+
function ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, childEnvelopes) {
|
|
18280
18308
|
const childSnapshotDataResponses = [];
|
|
18281
18309
|
let seenRecords = new StoreKeySet();
|
|
18282
18310
|
let snapshotState = 'Fulfilled';
|
|
@@ -18295,8 +18323,8 @@ function ingestSuccessChildResourceParams$5(luvio, childResourceParamsArray, chi
|
|
|
18295
18323
|
headers: {},
|
|
18296
18324
|
};
|
|
18297
18325
|
const childSnapshot = ingestSuccess$v(luvio, childResourceParams, childResponse);
|
|
18298
|
-
if (childSnapshot.state ===
|
|
18299
|
-
snapshotState =
|
|
18326
|
+
if (childSnapshot.state === "Stale") {
|
|
18327
|
+
snapshotState = "Stale";
|
|
18300
18328
|
}
|
|
18301
18329
|
seenRecords.merge(childSnapshot.seenRecords);
|
|
18302
18330
|
seenRecords.add(childSnapshot.recordId);
|
|
@@ -18304,6 +18332,7 @@ function ingestSuccessChildResourceParams$5(luvio, childResourceParamsArray, chi
|
|
|
18304
18332
|
statusCode: 200,
|
|
18305
18333
|
result: childSnapshot.data,
|
|
18306
18334
|
};
|
|
18335
|
+
deepFreeze(childValue);
|
|
18307
18336
|
ArrayPrototypePush.call(childSnapshotDataResponses, childValue);
|
|
18308
18337
|
}
|
|
18309
18338
|
else {
|
|
@@ -18314,7 +18343,7 @@ function ingestSuccessChildResourceParams$5(luvio, childResourceParamsArray, chi
|
|
|
18314
18343
|
ok: false,
|
|
18315
18344
|
statusText: childStatusCodeText,
|
|
18316
18345
|
headers: {},
|
|
18317
|
-
errorType: 'fetchResponse'
|
|
18346
|
+
errorType: 'fetchResponse'
|
|
18318
18347
|
};
|
|
18319
18348
|
ingestError$p(luvio, childResourceParams, childResponse);
|
|
18320
18349
|
seenRecords.add(childKey);
|
|
@@ -18322,39 +18351,33 @@ function ingestSuccessChildResourceParams$5(luvio, childResourceParamsArray, chi
|
|
|
18322
18351
|
statusCode: childStatusCode,
|
|
18323
18352
|
result: childBody,
|
|
18324
18353
|
};
|
|
18354
|
+
deepFreeze(childValue);
|
|
18325
18355
|
ArrayPrototypePush.call(childSnapshotDataResponses, childValue);
|
|
18326
18356
|
}
|
|
18327
18357
|
// track non-cached responses so rebuilds work properly
|
|
18328
18358
|
if (childStatusCode !== 404 && childStatusCode !== 200) {
|
|
18329
|
-
nonCachedErrors$6[childKey] = {
|
|
18330
|
-
expiration: now + TTL$D,
|
|
18331
|
-
response: childBody,
|
|
18332
|
-
status: childStatusCode,
|
|
18333
|
-
};
|
|
18359
|
+
nonCachedErrors$6[childKey] = { expiration: now + TTL$D, response: childBody, status: childStatusCode };
|
|
18334
18360
|
}
|
|
18335
18361
|
else {
|
|
18336
18362
|
delete nonCachedErrors$6[childKey];
|
|
18337
18363
|
}
|
|
18338
18364
|
}
|
|
18339
18365
|
const childSnapshotData = {
|
|
18340
|
-
results: childSnapshotDataResponses
|
|
18366
|
+
results: childSnapshotDataResponses
|
|
18341
18367
|
};
|
|
18342
18368
|
deepFreeze(childSnapshotData);
|
|
18343
18369
|
return { childSnapshotData: childSnapshotData, seenRecords, snapshotState };
|
|
18344
18370
|
}
|
|
18345
18371
|
function ingestSuccess$u(luvio, resourceParams, response, snapshotRefresh) {
|
|
18346
18372
|
const childEnvelopes = response.body.results;
|
|
18347
|
-
const childResourceParamsArray = createChildResourceParams$
|
|
18373
|
+
const childResourceParamsArray = createChildResourceParams$7(resourceParams);
|
|
18348
18374
|
if (process.env.NODE_ENV !== 'production') {
|
|
18349
18375
|
if (childResourceParamsArray.length !== childEnvelopes.length) {
|
|
18350
|
-
throw new Error('Invalid composite resource response. Expected ' +
|
|
18351
|
-
childResourceParamsArray.length +
|
|
18352
|
-
' items, received ' +
|
|
18353
|
-
childEnvelopes.length);
|
|
18376
|
+
throw new Error('Invalid composite resource response. Expected ' + childResourceParamsArray.length + ' items, received ' + childEnvelopes.length);
|
|
18354
18377
|
}
|
|
18355
18378
|
}
|
|
18356
18379
|
const key = keyBuilder$29(luvio, resourceParams);
|
|
18357
|
-
const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$
|
|
18380
|
+
const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, childEnvelopes);
|
|
18358
18381
|
const syntheticSnapshot = {
|
|
18359
18382
|
recordId: key,
|
|
18360
18383
|
data: childSnapshotData,
|
|
@@ -18366,7 +18389,7 @@ function ingestSuccess$u(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
18366
18389
|
variables: {},
|
|
18367
18390
|
},
|
|
18368
18391
|
refresh: snapshotRefresh,
|
|
18369
|
-
variables: {}
|
|
18392
|
+
variables: {}
|
|
18370
18393
|
};
|
|
18371
18394
|
// evict top level composite record from the store. This covers the case where a previous resource request returned a 404.
|
|
18372
18395
|
luvio.storeEvict(key);
|
|
@@ -18388,6 +18411,7 @@ function createResourceRequest$E(config) {
|
|
|
18388
18411
|
urlParams: {},
|
|
18389
18412
|
queryParams: config.queryParams,
|
|
18390
18413
|
headers,
|
|
18414
|
+
priority: 'normal',
|
|
18391
18415
|
};
|
|
18392
18416
|
}
|
|
18393
18417
|
|
|
@@ -18487,7 +18511,7 @@ const getListInfoByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidati
|
|
|
18487
18511
|
const createResourceParams$B = /*#__PURE__*/ createResourceParams$_(getListInfoByName_ConfigPropertyMetadata);
|
|
18488
18512
|
function keyBuilder$27(luvio, config) {
|
|
18489
18513
|
const resourceParams = createResourceParams$B(config);
|
|
18490
|
-
return keyBuilder$
|
|
18514
|
+
return keyBuilder$2a(luvio, resourceParams);
|
|
18491
18515
|
}
|
|
18492
18516
|
function typeCheckConfig$F(untrustedConfig) {
|
|
18493
18517
|
const config = {};
|
|
@@ -19522,8 +19546,8 @@ const getNavItemsAdapterFactory = (luvio) => function UiApi__getNavItems(untrust
|
|
|
19522
19546
|
};
|
|
19523
19547
|
|
|
19524
19548
|
const nonCachedErrors$5 = ObjectCreate$1(null);
|
|
19525
|
-
function createChildResourceParams$
|
|
19526
|
-
|
|
19549
|
+
function createChildResourceParams$6(resourceParams) {
|
|
19550
|
+
let childConfigs = [];
|
|
19527
19551
|
for (let index = 0, len = resourceParams.urlParams.objectApiNames.length; index < len; index += 1) {
|
|
19528
19552
|
const item = resourceParams.urlParams.objectApiNames[index];
|
|
19529
19553
|
childConfigs.push({
|
|
@@ -19558,7 +19582,7 @@ function selectChildResourceParams$5(luvio, childResources, resourceParams) {
|
|
|
19558
19582
|
reader.enterPath(i);
|
|
19559
19583
|
reader.enterPath(envelopeBodyPath);
|
|
19560
19584
|
const childResource = childResources[i];
|
|
19561
|
-
const childKey = keyBuilder$
|
|
19585
|
+
const childKey = keyBuilder$2R(luvio, childResource);
|
|
19562
19586
|
const childFragment = select$2G();
|
|
19563
19587
|
const isMissingDataBeforeChildRead = reader.getIsDataMissing();
|
|
19564
19588
|
const childSnapshot = reader.read({
|
|
@@ -19640,7 +19664,7 @@ function selectChildResourceParams$5(luvio, childResources, resourceParams) {
|
|
|
19640
19664
|
};
|
|
19641
19665
|
}
|
|
19642
19666
|
function select$21(luvio, resourceParams) {
|
|
19643
|
-
const childResources = createChildResourceParams$
|
|
19667
|
+
const childResources = createChildResourceParams$6(resourceParams);
|
|
19644
19668
|
return selectChildResourceParams$5(luvio, childResources, resourceParams);
|
|
19645
19669
|
}
|
|
19646
19670
|
function keyBuilder$21(luvio, params) {
|
|
@@ -19648,7 +19672,7 @@ function keyBuilder$21(luvio, params) {
|
|
|
19648
19672
|
}
|
|
19649
19673
|
function getResponseCacheKeys$w(keys, luvio, resourceParams, response) {
|
|
19650
19674
|
const childEnvelopes = response.results;
|
|
19651
|
-
const childResourceParamsArray = createChildResourceParams$
|
|
19675
|
+
const childResourceParamsArray = createChildResourceParams$6(resourceParams);
|
|
19652
19676
|
if (process.env.NODE_ENV !== 'production') {
|
|
19653
19677
|
if (childResourceParamsArray.length !== childEnvelopes.length) {
|
|
19654
19678
|
throw new Error('Invalid composite resource response. Expected ' + childResourceParamsArray.length + ' items, received ' + childEnvelopes.length);
|
|
@@ -19663,7 +19687,7 @@ function getResponseCacheKeys$w(keys, luvio, resourceParams, response) {
|
|
|
19663
19687
|
getResponseCacheKeys$T(keys, luvio, childResourceParams, childBody);
|
|
19664
19688
|
}
|
|
19665
19689
|
else if (childStatusCode === 404) {
|
|
19666
|
-
const childKey = keyBuilder$
|
|
19690
|
+
const childKey = keyBuilder$2R(luvio, childResourceParams);
|
|
19667
19691
|
keys.set(childKey, {
|
|
19668
19692
|
namespace: keyPrefix,
|
|
19669
19693
|
representationName: RepresentationType$O,
|
|
@@ -19672,14 +19696,14 @@ function getResponseCacheKeys$w(keys, luvio, resourceParams, response) {
|
|
|
19672
19696
|
}
|
|
19673
19697
|
}
|
|
19674
19698
|
}
|
|
19675
|
-
function ingestSuccessChildResourceParams$
|
|
19699
|
+
function ingestSuccessChildResourceParams$5(luvio, childResourceParamsArray, childEnvelopes) {
|
|
19676
19700
|
const childSnapshotDataResponses = [];
|
|
19677
19701
|
let seenRecords = new StoreKeySet();
|
|
19678
19702
|
let snapshotState = 'Fulfilled';
|
|
19679
19703
|
const now = Date.now();
|
|
19680
19704
|
for (let index = 0, len = childResourceParamsArray.length; index < len; index += 1) {
|
|
19681
19705
|
const childResourceParams = childResourceParamsArray[index];
|
|
19682
|
-
const childKey = keyBuilder$
|
|
19706
|
+
const childKey = keyBuilder$2R(luvio, childResourceParams);
|
|
19683
19707
|
const result = childEnvelopes[index];
|
|
19684
19708
|
const { statusCode: childStatusCode, result: childBody } = result;
|
|
19685
19709
|
if (childStatusCode === 200) {
|
|
@@ -19738,14 +19762,14 @@ function ingestSuccessChildResourceParams$4(luvio, childResourceParamsArray, chi
|
|
|
19738
19762
|
}
|
|
19739
19763
|
function ingestSuccess$q(luvio, resourceParams, response, snapshotRefresh) {
|
|
19740
19764
|
const childEnvelopes = response.body.results;
|
|
19741
|
-
const childResourceParamsArray = createChildResourceParams$
|
|
19765
|
+
const childResourceParamsArray = createChildResourceParams$6(resourceParams);
|
|
19742
19766
|
if (process.env.NODE_ENV !== 'production') {
|
|
19743
19767
|
if (childResourceParamsArray.length !== childEnvelopes.length) {
|
|
19744
19768
|
throw new Error('Invalid composite resource response. Expected ' + childResourceParamsArray.length + ' items, received ' + childEnvelopes.length);
|
|
19745
19769
|
}
|
|
19746
19770
|
}
|
|
19747
19771
|
const key = keyBuilder$21(luvio, resourceParams);
|
|
19748
|
-
const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$
|
|
19772
|
+
const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$5(luvio, childResourceParamsArray, childEnvelopes);
|
|
19749
19773
|
const syntheticSnapshot = {
|
|
19750
19774
|
recordId: key,
|
|
19751
19775
|
data: childSnapshotData,
|
|
@@ -22523,7 +22547,7 @@ const getRecords_ConfigPropertyNames = {
|
|
|
22523
22547
|
|
|
22524
22548
|
function keyBuilder$1U(luvio, config) {
|
|
22525
22549
|
const resourceParams = createResourceParams$Y(config);
|
|
22526
|
-
return keyBuilder$
|
|
22550
|
+
return keyBuilder$33(luvio, resourceParams);
|
|
22527
22551
|
}
|
|
22528
22552
|
function onFetchResponseError$j(luvio, config, resourceParams, response) {
|
|
22529
22553
|
const snapshot = ingestError$L(luvio, resourceParams, response, {
|
|
@@ -22998,8 +23022,8 @@ function createResourceRequest$v(config) {
|
|
|
22998
23022
|
}
|
|
22999
23023
|
|
|
23000
23024
|
const nonCachedErrors$4 = ObjectCreate$1(null);
|
|
23001
|
-
function createChildResourceParams$
|
|
23002
|
-
|
|
23025
|
+
function createChildResourceParams$5(resourceParams) {
|
|
23026
|
+
let childConfigs = [];
|
|
23003
23027
|
for (let index = 0, len = resourceParams.urlParams.relatedListNames.length; index < len; index += 1) {
|
|
23004
23028
|
const item = resourceParams.urlParams.relatedListNames[index];
|
|
23005
23029
|
childConfigs.push({
|
|
@@ -23120,7 +23144,7 @@ function selectChildResourceParams$4(luvio, childResources, resourceParams) {
|
|
|
23120
23144
|
};
|
|
23121
23145
|
}
|
|
23122
23146
|
function select$1F(luvio, resourceParams) {
|
|
23123
|
-
const childResources = createChildResourceParams$
|
|
23147
|
+
const childResources = createChildResourceParams$5(resourceParams);
|
|
23124
23148
|
return selectChildResourceParams$4(luvio, childResources, resourceParams);
|
|
23125
23149
|
}
|
|
23126
23150
|
function keyBuilder$1R(luvio, params) {
|
|
@@ -23128,7 +23152,7 @@ function keyBuilder$1R(luvio, params) {
|
|
|
23128
23152
|
}
|
|
23129
23153
|
function getResponseCacheKeys$q(keys, luvio, resourceParams, response) {
|
|
23130
23154
|
const childEnvelopes = response.results;
|
|
23131
|
-
const childResourceParamsArray = createChildResourceParams$
|
|
23155
|
+
const childResourceParamsArray = createChildResourceParams$5(resourceParams);
|
|
23132
23156
|
if (process.env.NODE_ENV !== 'production') {
|
|
23133
23157
|
if (childResourceParamsArray.length !== childEnvelopes.length) {
|
|
23134
23158
|
throw new Error('Invalid composite resource response. Expected ' + childResourceParamsArray.length + ' items, received ' + childEnvelopes.length);
|
|
@@ -23152,7 +23176,7 @@ function getResponseCacheKeys$q(keys, luvio, resourceParams, response) {
|
|
|
23152
23176
|
}
|
|
23153
23177
|
}
|
|
23154
23178
|
}
|
|
23155
|
-
function ingestSuccessChildResourceParams$
|
|
23179
|
+
function ingestSuccessChildResourceParams$4(luvio, childResourceParamsArray, childEnvelopes) {
|
|
23156
23180
|
const childSnapshotDataResponses = [];
|
|
23157
23181
|
let seenRecords = new StoreKeySet();
|
|
23158
23182
|
let snapshotState = 'Fulfilled';
|
|
@@ -23217,14 +23241,14 @@ function ingestSuccessChildResourceParams$3(luvio, childResourceParamsArray, chi
|
|
|
23217
23241
|
}
|
|
23218
23242
|
function ingestSuccess$l(luvio, resourceParams, response, snapshotRefresh) {
|
|
23219
23243
|
const childEnvelopes = response.body.results;
|
|
23220
|
-
const childResourceParamsArray = createChildResourceParams$
|
|
23244
|
+
const childResourceParamsArray = createChildResourceParams$5(resourceParams);
|
|
23221
23245
|
if (process.env.NODE_ENV !== 'production') {
|
|
23222
23246
|
if (childResourceParamsArray.length !== childEnvelopes.length) {
|
|
23223
23247
|
throw new Error('Invalid composite resource response. Expected ' + childResourceParamsArray.length + ' items, received ' + childEnvelopes.length);
|
|
23224
23248
|
}
|
|
23225
23249
|
}
|
|
23226
23250
|
const key = keyBuilder$1R(luvio, resourceParams);
|
|
23227
|
-
const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$
|
|
23251
|
+
const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$4(luvio, childResourceParamsArray, childEnvelopes);
|
|
23228
23252
|
const syntheticSnapshot = {
|
|
23229
23253
|
recordId: key,
|
|
23230
23254
|
data: childSnapshotData,
|
|
@@ -23955,7 +23979,7 @@ function createResourceRequest$t(config) {
|
|
|
23955
23979
|
};
|
|
23956
23980
|
}
|
|
23957
23981
|
|
|
23958
|
-
function createChildResourceParams$
|
|
23982
|
+
function createChildResourceParams$4(resourceParams) {
|
|
23959
23983
|
const childConfigs = [];
|
|
23960
23984
|
for (let index = 0, len = resourceParams.urlParams.relatedListNames.length; index < len; index += 1) {
|
|
23961
23985
|
const item = resourceParams.urlParams.relatedListNames[index];
|
|
@@ -24082,7 +24106,7 @@ function selectChildResourceParams$3(luvio, childResources, resourceParams) {
|
|
|
24082
24106
|
};
|
|
24083
24107
|
}
|
|
24084
24108
|
function select$1C(luvio, resourceParams) {
|
|
24085
|
-
const childResources = createChildResourceParams$
|
|
24109
|
+
const childResources = createChildResourceParams$4(resourceParams);
|
|
24086
24110
|
return selectChildResourceParams$3(luvio, childResources, resourceParams);
|
|
24087
24111
|
}
|
|
24088
24112
|
function keyBuilder$1M(luvio, params) {
|
|
@@ -24090,7 +24114,7 @@ function keyBuilder$1M(luvio, params) {
|
|
|
24090
24114
|
}
|
|
24091
24115
|
function getResponseCacheKeys$o(keys, luvio, resourceParams, response) {
|
|
24092
24116
|
const childEnvelopes = response.results;
|
|
24093
|
-
const childResourceParamsArray = createChildResourceParams$
|
|
24117
|
+
const childResourceParamsArray = createChildResourceParams$4(resourceParams);
|
|
24094
24118
|
if (process.env.NODE_ENV !== 'production') {
|
|
24095
24119
|
if (childResourceParamsArray.length !== childEnvelopes.length) {
|
|
24096
24120
|
throw new Error('Invalid composite resource response. Expected ' + childResourceParamsArray.length + ' items, received ' + childEnvelopes.length);
|
|
@@ -24114,7 +24138,7 @@ function getResponseCacheKeys$o(keys, luvio, resourceParams, response) {
|
|
|
24114
24138
|
}
|
|
24115
24139
|
}
|
|
24116
24140
|
}
|
|
24117
|
-
function ingestSuccessChildResourceParams$
|
|
24141
|
+
function ingestSuccessChildResourceParams$3(luvio, childResourceParamsArray, childEnvelopes) {
|
|
24118
24142
|
const childSnapshotDataResponses = [];
|
|
24119
24143
|
let seenRecords = new StoreKeySet();
|
|
24120
24144
|
let snapshotState = 'Fulfilled';
|
|
@@ -24180,14 +24204,14 @@ function ingestSuccessChildResourceParams$2(luvio, childResourceParamsArray, chi
|
|
|
24180
24204
|
}
|
|
24181
24205
|
function ingestSuccess$j(luvio, resourceParams, response, snapshotRefresh) {
|
|
24182
24206
|
const childEnvelopes = response.body.results;
|
|
24183
|
-
const childResourceParamsArray = createChildResourceParams$
|
|
24207
|
+
const childResourceParamsArray = createChildResourceParams$4(resourceParams);
|
|
24184
24208
|
if (process.env.NODE_ENV !== 'production') {
|
|
24185
24209
|
if (childResourceParamsArray.length !== childEnvelopes.length) {
|
|
24186
24210
|
throw new Error('Invalid composite resource response. Expected ' + childResourceParamsArray.length + ' items, received ' + childEnvelopes.length);
|
|
24187
24211
|
}
|
|
24188
24212
|
}
|
|
24189
24213
|
const key = keyBuilder$1M(luvio, resourceParams);
|
|
24190
|
-
const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$
|
|
24214
|
+
const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$3(luvio, childResourceParamsArray, childEnvelopes);
|
|
24191
24215
|
const syntheticSnapshot = {
|
|
24192
24216
|
recordId: key,
|
|
24193
24217
|
data: childSnapshotData,
|
|
@@ -25129,8 +25153,8 @@ function createResourceRequest$p(config) {
|
|
|
25129
25153
|
}
|
|
25130
25154
|
|
|
25131
25155
|
const nonCachedErrors$2 = ObjectCreate$1(null);
|
|
25132
|
-
function createChildResourceParams$
|
|
25133
|
-
|
|
25156
|
+
function createChildResourceParams$3(resourceParams) {
|
|
25157
|
+
let childConfigs = [];
|
|
25134
25158
|
for (let index = 0, len = resourceParams.urlParams.preferencesIds.length; index < len; index += 1) {
|
|
25135
25159
|
const item = resourceParams.urlParams.preferencesIds[index];
|
|
25136
25160
|
childConfigs.push({
|
|
@@ -25247,7 +25271,7 @@ function selectChildResourceParams$2(luvio, childResources, resourceParams) {
|
|
|
25247
25271
|
};
|
|
25248
25272
|
}
|
|
25249
25273
|
function select$1w(luvio, resourceParams) {
|
|
25250
|
-
const childResources = createChildResourceParams$
|
|
25274
|
+
const childResources = createChildResourceParams$3(resourceParams);
|
|
25251
25275
|
return selectChildResourceParams$2(luvio, childResources, resourceParams);
|
|
25252
25276
|
}
|
|
25253
25277
|
function keyBuilder$1E(luvio, params) {
|
|
@@ -25255,7 +25279,7 @@ function keyBuilder$1E(luvio, params) {
|
|
|
25255
25279
|
}
|
|
25256
25280
|
function getResponseCacheKeys$k(keys, luvio, resourceParams, response) {
|
|
25257
25281
|
const childEnvelopes = response.results;
|
|
25258
|
-
const childResourceParamsArray = createChildResourceParams$
|
|
25282
|
+
const childResourceParamsArray = createChildResourceParams$3(resourceParams);
|
|
25259
25283
|
if (process.env.NODE_ENV !== 'production') {
|
|
25260
25284
|
if (childResourceParamsArray.length !== childEnvelopes.length) {
|
|
25261
25285
|
throw new Error('Invalid composite resource response. Expected ' + childResourceParamsArray.length + ' items, received ' + childEnvelopes.length);
|
|
@@ -25279,7 +25303,7 @@ function getResponseCacheKeys$k(keys, luvio, resourceParams, response) {
|
|
|
25279
25303
|
}
|
|
25280
25304
|
}
|
|
25281
25305
|
}
|
|
25282
|
-
function ingestSuccessChildResourceParams$
|
|
25306
|
+
function ingestSuccessChildResourceParams$2(luvio, childResourceParamsArray, childEnvelopes) {
|
|
25283
25307
|
const childSnapshotDataResponses = [];
|
|
25284
25308
|
let seenRecords = new StoreKeySet();
|
|
25285
25309
|
let snapshotState = 'Fulfilled';
|
|
@@ -25345,14 +25369,14 @@ function ingestSuccessChildResourceParams$1(luvio, childResourceParamsArray, chi
|
|
|
25345
25369
|
}
|
|
25346
25370
|
function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
|
|
25347
25371
|
const childEnvelopes = response.body.results;
|
|
25348
|
-
const childResourceParamsArray = createChildResourceParams$
|
|
25372
|
+
const childResourceParamsArray = createChildResourceParams$3(resourceParams);
|
|
25349
25373
|
if (process.env.NODE_ENV !== 'production') {
|
|
25350
25374
|
if (childResourceParamsArray.length !== childEnvelopes.length) {
|
|
25351
25375
|
throw new Error('Invalid composite resource response. Expected ' + childResourceParamsArray.length + ' items, received ' + childEnvelopes.length);
|
|
25352
25376
|
}
|
|
25353
25377
|
}
|
|
25354
25378
|
const key = keyBuilder$1E(luvio, resourceParams);
|
|
25355
|
-
const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$
|
|
25379
|
+
const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$2(luvio, childResourceParamsArray, childEnvelopes);
|
|
25356
25380
|
const syntheticSnapshot = {
|
|
25357
25381
|
recordId: key,
|
|
25358
25382
|
data: childSnapshotData,
|
|
@@ -26321,7 +26345,7 @@ const dynamicSelect$4 = function dynamicRelatedListRecordCollectionRepresentatio
|
|
|
26321
26345
|
reader.readScalar('count', metadataProperties, sink);
|
|
26322
26346
|
reader.exitPath();
|
|
26323
26347
|
reader.enterPath('fields');
|
|
26324
|
-
reader.readScalarPlural('fields', source, sink);
|
|
26348
|
+
reader.readScalarPlural('fields', source, sink, true);
|
|
26325
26349
|
reader.exitPath();
|
|
26326
26350
|
reader.enterPath('listInfoETag');
|
|
26327
26351
|
reader.readScalar('listInfoETag', source, sink);
|
|
@@ -26334,10 +26358,10 @@ const dynamicSelect$4 = function dynamicRelatedListRecordCollectionRepresentatio
|
|
|
26334
26358
|
}, source, sink);
|
|
26335
26359
|
reader.exitPath();
|
|
26336
26360
|
reader.enterPath('optionalFields');
|
|
26337
|
-
reader.readScalarPlural('optionalFields', source, sink);
|
|
26361
|
+
reader.readScalarPlural('optionalFields', source, sink, true);
|
|
26338
26362
|
reader.exitPath();
|
|
26339
26363
|
reader.enterPath('sortBy');
|
|
26340
|
-
reader.readScalarPlural('sortBy', source, sink);
|
|
26364
|
+
reader.readScalarPlural('sortBy', source, sink, true);
|
|
26341
26365
|
reader.exitPath();
|
|
26342
26366
|
reader.enterPath('where');
|
|
26343
26367
|
reader.readScalar('where', source, sink);
|
|
@@ -26556,7 +26580,7 @@ function select$1u(luvio, params) {
|
|
|
26556
26580
|
kind: 'Fragment',
|
|
26557
26581
|
private: ['eTag', 'weakEtag'],
|
|
26558
26582
|
selections: buildSelectionFromFields(fields, optionalFields),
|
|
26559
|
-
version: VERSION$
|
|
26583
|
+
version: VERSION$2h
|
|
26560
26584
|
},
|
|
26561
26585
|
},
|
|
26562
26586
|
}, createPaginationParams(params));
|
|
@@ -26633,9 +26657,7 @@ function createResourceRequest$m(config) {
|
|
|
26633
26657
|
};
|
|
26634
26658
|
}
|
|
26635
26659
|
|
|
26636
|
-
|
|
26637
|
-
const nonCachedErrors$1 = ObjectCreate$1(null);
|
|
26638
|
-
const createChildResourceParams$1 = (resourceParams) => {
|
|
26660
|
+
function createChildResourceParams$2(resourceParams) {
|
|
26639
26661
|
const childConfigs = [];
|
|
26640
26662
|
for (let index = 0, len = resourceParams.body.relatedListParameters.length; index < len; index += 1) {
|
|
26641
26663
|
let childConfig = {
|
|
@@ -26665,10 +26687,12 @@ const createChildResourceParams$1 = (resourceParams) => {
|
|
|
26665
26687
|
childConfigs.push(childConfig);
|
|
26666
26688
|
}
|
|
26667
26689
|
return childConfigs;
|
|
26668
|
-
}
|
|
26669
|
-
|
|
26670
|
-
|
|
26671
|
-
|
|
26690
|
+
}
|
|
26691
|
+
|
|
26692
|
+
const nonCachedErrors$1 = ObjectCreate$1(null);
|
|
26693
|
+
function createChildResourceParams$1(resourceParams) {
|
|
26694
|
+
return createChildResourceParams$2(resourceParams);
|
|
26695
|
+
}
|
|
26672
26696
|
function selectChildResourceParams$1(luvio, childResources, resourceParams) {
|
|
26673
26697
|
const envelopeBodyPath = 'result';
|
|
26674
26698
|
const envelopeStatusCodePath = 'statusCode';
|
|
@@ -26680,8 +26704,7 @@ function selectChildResourceParams$1(luvio, childResources, resourceParams) {
|
|
|
26680
26704
|
read: (reader) => {
|
|
26681
26705
|
// Top-level 404 lookup
|
|
26682
26706
|
const result = reader.storeLookup(keyBuilder$1z(luvio, resourceParams));
|
|
26683
|
-
if (result.state === reader.StoreResolveResultState.Error &&
|
|
26684
|
-
result.value.status === 404) {
|
|
26707
|
+
if (result.state === reader.StoreResolveResultState.Error && result.value.status === 404) {
|
|
26685
26708
|
return {
|
|
26686
26709
|
state: 'Error',
|
|
26687
26710
|
value: result.value,
|
|
@@ -26709,7 +26732,6 @@ function selectChildResourceParams$1(luvio, childResources, resourceParams) {
|
|
|
26709
26732
|
case 'Stale':
|
|
26710
26733
|
reader.markStale();
|
|
26711
26734
|
// Stale needs envelope bodies filled in so don't break
|
|
26712
|
-
// eslint-disable-next-line no-fallthrough
|
|
26713
26735
|
case 'Fulfilled':
|
|
26714
26736
|
reader.enterPath(envelopeStatusCodePath);
|
|
26715
26737
|
reader.assignScalar(envelopeStatusCodePath, childSink, 200);
|
|
@@ -26719,7 +26741,6 @@ function selectChildResourceParams$1(luvio, childResources, resourceParams) {
|
|
|
26719
26741
|
reader.exitPath();
|
|
26720
26742
|
break;
|
|
26721
26743
|
case 'Error':
|
|
26722
|
-
// eslint-disable-next-line no-case-declarations
|
|
26723
26744
|
const childSnapshotError = childSnapshot.error;
|
|
26724
26745
|
reader.enterPath(envelopeStatusCodePath);
|
|
26725
26746
|
reader.assignScalar(envelopeStatusCodePath, childSink, childSnapshotError.status);
|
|
@@ -26744,8 +26765,7 @@ function selectChildResourceParams$1(luvio, childResources, resourceParams) {
|
|
|
26744
26765
|
// snapshot will look like an Unfulfilled snapshot
|
|
26745
26766
|
// instead of an error snapshot).
|
|
26746
26767
|
const nonCachedError = nonCachedErrors$1[childKey];
|
|
26747
|
-
if (nonCachedError === undefined ||
|
|
26748
|
-
nonCachedError.expiration < reader.getTimeStamp()) {
|
|
26768
|
+
if (nonCachedError === undefined || nonCachedError.expiration < reader.getTimeStamp()) {
|
|
26749
26769
|
reader.markMissingLink(childKey);
|
|
26750
26770
|
}
|
|
26751
26771
|
else {
|
|
@@ -26773,36 +26793,24 @@ function selectChildResourceParams$1(luvio, childResources, resourceParams) {
|
|
|
26773
26793
|
reader.exitPath();
|
|
26774
26794
|
}
|
|
26775
26795
|
reader.assignNonScalar(sink, envelopePath, results);
|
|
26776
|
-
deepFreeze(sink);
|
|
26777
26796
|
reader.exitPath();
|
|
26778
26797
|
return sink;
|
|
26779
|
-
}
|
|
26798
|
+
}
|
|
26780
26799
|
};
|
|
26781
26800
|
}
|
|
26782
|
-
// HUGE BLOCK OF COPY PASTED CODE:
|
|
26783
|
-
// WE NEED TO DO THIS SO THAT THE ADAPTER CAN USE ONLY OUR OVERRIDE FILE
|
|
26784
|
-
// PLEASE DO NOT CHANGE ANYTHING HERE...
|
|
26785
26801
|
function select$1t(luvio, resourceParams) {
|
|
26786
26802
|
const childResources = createChildResourceParams$1(resourceParams);
|
|
26787
26803
|
return selectChildResourceParams$1(luvio, childResources, resourceParams);
|
|
26788
26804
|
}
|
|
26789
26805
|
function keyBuilder$1z(luvio, params) {
|
|
26790
|
-
return
|
|
26791
|
-
'::' +
|
|
26792
|
-
'RelatedListRecordCollectionBatchRepresentation(' +
|
|
26793
|
-
'relatedListParameters:' +
|
|
26794
|
-
params.body.relatedListParameters +
|
|
26795
|
-
')');
|
|
26806
|
+
return keyPrefix + '::RelatedListRecordCollectionBatchRepresentation:(' + 'parentRecordId:' + params.urlParams.parentRecordId + ',' + '[' + params.body.relatedListParameters.map(element => (element.fields === undefined ? 'relatedListParameters.fields' : 'relatedListParameters.fields:' + element.fields) + '::' + (element.optionalFields === undefined ? 'relatedListParameters.optionalFields' : 'relatedListParameters.optionalFields:' + element.optionalFields) + '::' + (element.pageSize === undefined ? 'relatedListParameters.pageSize' : 'relatedListParameters.pageSize:' + element.pageSize) + '::' + 'relatedListParameters.relatedListId:' + element.relatedListId + '::' + (element.sortBy === undefined ? 'relatedListParameters.sortBy' : 'relatedListParameters.sortBy:' + element.sortBy) + '::' + (element.where === undefined ? 'relatedListParameters.where' : 'relatedListParameters.where:' + element.where)).join(',') + ']' + ')';
|
|
26796
26807
|
}
|
|
26797
26808
|
function getResponseCacheKeys$h(keys, luvio, resourceParams, response) {
|
|
26798
26809
|
const childEnvelopes = response.results;
|
|
26799
26810
|
const childResourceParamsArray = createChildResourceParams$1(resourceParams);
|
|
26800
26811
|
if (process.env.NODE_ENV !== 'production') {
|
|
26801
26812
|
if (childResourceParamsArray.length !== childEnvelopes.length) {
|
|
26802
|
-
throw new Error('Invalid composite resource response. Expected ' +
|
|
26803
|
-
childResourceParamsArray.length +
|
|
26804
|
-
' items, received ' +
|
|
26805
|
-
childEnvelopes.length);
|
|
26813
|
+
throw new Error('Invalid composite resource response. Expected ' + childResourceParamsArray.length + ' items, received ' + childEnvelopes.length);
|
|
26806
26814
|
}
|
|
26807
26815
|
}
|
|
26808
26816
|
// get children keys
|
|
@@ -26817,77 +26825,87 @@ function getResponseCacheKeys$h(keys, luvio, resourceParams, response) {
|
|
|
26817
26825
|
const childKey = keyBuilder$1A(luvio, childResourceParams);
|
|
26818
26826
|
keys.set(childKey, {
|
|
26819
26827
|
namespace: keyPrefix,
|
|
26820
|
-
representationName:
|
|
26821
|
-
mergeable: false
|
|
26828
|
+
representationName: RepresentationType$i,
|
|
26829
|
+
mergeable: false
|
|
26822
26830
|
});
|
|
26823
26831
|
}
|
|
26824
26832
|
}
|
|
26825
26833
|
}
|
|
26826
|
-
function
|
|
26827
|
-
const childEnvelopes = response.body.results;
|
|
26828
|
-
const childResourceParamsArray = createChildResourceParams$1(resourceParams);
|
|
26829
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
26830
|
-
if (childResourceParamsArray.length !== childEnvelopes.length) {
|
|
26831
|
-
throw new Error('Invalid composite resource response. Expected ' +
|
|
26832
|
-
childResourceParamsArray.length +
|
|
26833
|
-
' items, received ' +
|
|
26834
|
-
childEnvelopes.length);
|
|
26835
|
-
}
|
|
26836
|
-
}
|
|
26837
|
-
let snapshotState = 'Fulfilled';
|
|
26838
|
-
const key = keyBuilder$1z(luvio, resourceParams);
|
|
26834
|
+
function ingestSuccessChildResourceParams$1(luvio, childResourceParamsArray, childEnvelopes) {
|
|
26839
26835
|
const childSnapshotDataResponses = [];
|
|
26840
26836
|
let seenRecords = new StoreKeySet();
|
|
26837
|
+
let snapshotState = 'Fulfilled';
|
|
26838
|
+
const now = Date.now();
|
|
26841
26839
|
for (let index = 0, len = childResourceParamsArray.length; index < len; index += 1) {
|
|
26842
26840
|
const childResourceParams = childResourceParamsArray[index];
|
|
26841
|
+
const childKey = keyBuilder$1A(luvio, childResourceParams);
|
|
26843
26842
|
const result = childEnvelopes[index];
|
|
26844
|
-
const
|
|
26845
|
-
if (
|
|
26846
|
-
const { statusCode: childStatusCode, result: childBody } = result;
|
|
26843
|
+
const { statusCode: childStatusCode, result: childBody } = result;
|
|
26844
|
+
if (childStatusCode === 200) {
|
|
26847
26845
|
const childResponse = {
|
|
26848
|
-
status:
|
|
26846
|
+
status: 200,
|
|
26849
26847
|
body: childBody,
|
|
26850
26848
|
ok: true,
|
|
26851
|
-
statusText:
|
|
26849
|
+
statusText: 'OK',
|
|
26852
26850
|
headers: {},
|
|
26853
26851
|
};
|
|
26854
26852
|
const childSnapshot = ingestSuccess$d(luvio, childResourceParams, childResponse);
|
|
26853
|
+
if (childSnapshot.state === "Stale") {
|
|
26854
|
+
snapshotState = "Stale";
|
|
26855
|
+
}
|
|
26855
26856
|
seenRecords.merge(childSnapshot.seenRecords);
|
|
26856
26857
|
seenRecords.add(childSnapshot.recordId);
|
|
26857
|
-
if (childSnapshot.state === 'Pending') {
|
|
26858
|
-
snapshotState = 'Pending';
|
|
26859
|
-
break;
|
|
26860
|
-
}
|
|
26861
26858
|
const childValue = {
|
|
26862
|
-
statusCode:
|
|
26859
|
+
statusCode: 200,
|
|
26863
26860
|
result: childSnapshot.data,
|
|
26864
26861
|
};
|
|
26865
|
-
|
|
26862
|
+
deepFreeze(childValue);
|
|
26863
|
+
ArrayPrototypePush.call(childSnapshotDataResponses, childValue);
|
|
26866
26864
|
}
|
|
26867
26865
|
else {
|
|
26868
|
-
const
|
|
26866
|
+
const childStatusCodeText = getFetchResponseStatusText(result.statusCode);
|
|
26869
26867
|
const childResponse = {
|
|
26870
26868
|
status: childStatusCode,
|
|
26871
26869
|
body: childBody,
|
|
26872
26870
|
ok: false,
|
|
26873
26871
|
statusText: childStatusCodeText,
|
|
26874
26872
|
headers: {},
|
|
26875
|
-
errorType: 'fetchResponse'
|
|
26873
|
+
errorType: 'fetchResponse'
|
|
26876
26874
|
};
|
|
26877
26875
|
ingestError$a(luvio, childResourceParams, childResponse);
|
|
26878
|
-
seenRecords.add(
|
|
26876
|
+
seenRecords.add(childKey);
|
|
26879
26877
|
const childValue = {
|
|
26880
26878
|
statusCode: childStatusCode,
|
|
26881
26879
|
result: childBody,
|
|
26882
26880
|
};
|
|
26883
|
-
|
|
26881
|
+
deepFreeze(childValue);
|
|
26882
|
+
ArrayPrototypePush.call(childSnapshotDataResponses, childValue);
|
|
26883
|
+
}
|
|
26884
|
+
// track non-cached responses so rebuilds work properly
|
|
26885
|
+
if (childStatusCode !== 404 && childStatusCode !== 200) {
|
|
26886
|
+
nonCachedErrors$1[childKey] = { expiration: now + TTL$f, response: childBody, status: childStatusCode };
|
|
26887
|
+
}
|
|
26888
|
+
else {
|
|
26889
|
+
delete nonCachedErrors$1[childKey];
|
|
26884
26890
|
}
|
|
26885
26891
|
}
|
|
26886
26892
|
const childSnapshotData = {
|
|
26887
|
-
results: childSnapshotDataResponses
|
|
26893
|
+
results: childSnapshotDataResponses
|
|
26888
26894
|
};
|
|
26889
26895
|
deepFreeze(childSnapshotData);
|
|
26890
|
-
return {
|
|
26896
|
+
return { childSnapshotData: childSnapshotData, seenRecords, snapshotState };
|
|
26897
|
+
}
|
|
26898
|
+
function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
|
|
26899
|
+
const childEnvelopes = response.body.results;
|
|
26900
|
+
const childResourceParamsArray = createChildResourceParams$1(resourceParams);
|
|
26901
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
26902
|
+
if (childResourceParamsArray.length !== childEnvelopes.length) {
|
|
26903
|
+
throw new Error('Invalid composite resource response. Expected ' + childResourceParamsArray.length + ' items, received ' + childEnvelopes.length);
|
|
26904
|
+
}
|
|
26905
|
+
}
|
|
26906
|
+
const key = keyBuilder$1z(luvio, resourceParams);
|
|
26907
|
+
const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$1(luvio, childResourceParamsArray, childEnvelopes);
|
|
26908
|
+
const syntheticSnapshot = {
|
|
26891
26909
|
recordId: key,
|
|
26892
26910
|
data: childSnapshotData,
|
|
26893
26911
|
state: snapshotState,
|
|
@@ -26897,8 +26915,12 @@ function ingestSuccess$c(luvio, resourceParams, response, _snapshotRefresh) {
|
|
|
26897
26915
|
node: select$1t(luvio, resourceParams),
|
|
26898
26916
|
variables: {},
|
|
26899
26917
|
},
|
|
26900
|
-
|
|
26918
|
+
refresh: snapshotRefresh,
|
|
26919
|
+
variables: {}
|
|
26901
26920
|
};
|
|
26921
|
+
// evict top level composite record from the store. This covers the case where a previous resource request returned a 404.
|
|
26922
|
+
luvio.storeEvict(key);
|
|
26923
|
+
return syntheticSnapshot;
|
|
26902
26924
|
}
|
|
26903
26925
|
function ingestError$9(luvio, params, error, snapshotRefresh) {
|
|
26904
26926
|
const key = keyBuilder$1z(luvio, params);
|
|
@@ -26912,11 +26934,11 @@ function createResourceRequest$l(config) {
|
|
|
26912
26934
|
baseUri: '/services/data/v60.0',
|
|
26913
26935
|
basePath: '/ui-api/related-list-records/batch/' + config.urlParams.parentRecordId + '',
|
|
26914
26936
|
method: 'post',
|
|
26915
|
-
priority: 'normal',
|
|
26916
26937
|
body: config.body,
|
|
26917
26938
|
urlParams: config.urlParams,
|
|
26918
26939
|
queryParams: {},
|
|
26919
26940
|
headers,
|
|
26941
|
+
priority: 'normal',
|
|
26920
26942
|
};
|
|
26921
26943
|
}
|
|
26922
26944
|
|
|
@@ -26966,7 +26988,10 @@ function adapterFragment$b(luvio, config) {
|
|
|
26966
26988
|
return select$1t(luvio, resourceParams);
|
|
26967
26989
|
}
|
|
26968
26990
|
function onFetchResponseSuccess$c(luvio, config, resourceParams, response) {
|
|
26969
|
-
const snapshot = ingestSuccess$c(luvio, resourceParams, response
|
|
26991
|
+
const snapshot = ingestSuccess$c(luvio, resourceParams, response, {
|
|
26992
|
+
config,
|
|
26993
|
+
resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
|
|
26994
|
+
});
|
|
26970
26995
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
26971
26996
|
}
|
|
26972
26997
|
function onFetchResponseError$b(luvio, config, resourceParams, response) {
|
|
@@ -41732,7 +41757,7 @@ function readFieldValueAndConvertToGQL(reader, fieldData, hasFormat, hasLabel, _
|
|
|
41732
41757
|
kind: 'Fragment',
|
|
41733
41758
|
private: [],
|
|
41734
41759
|
opaque: true,
|
|
41735
|
-
version: VERSION$
|
|
41760
|
+
version: VERSION$2j,
|
|
41736
41761
|
},
|
|
41737
41762
|
variables: {},
|
|
41738
41763
|
});
|
|
@@ -43704,7 +43729,7 @@ function selectType$6(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
43704
43729
|
kind: 'Fragment',
|
|
43705
43730
|
private: [],
|
|
43706
43731
|
opaque: true,
|
|
43707
|
-
version: VERSION$
|
|
43732
|
+
version: VERSION$2j,
|
|
43708
43733
|
},
|
|
43709
43734
|
variables: {},
|
|
43710
43735
|
});
|
|
@@ -43810,7 +43835,7 @@ function attachMappedData(source, reader) {
|
|
|
43810
43835
|
kind: 'Fragment',
|
|
43811
43836
|
private: [],
|
|
43812
43837
|
opaque: true,
|
|
43813
|
-
version: VERSION$
|
|
43838
|
+
version: VERSION$2h,
|
|
43814
43839
|
},
|
|
43815
43840
|
variables: {},
|
|
43816
43841
|
});
|
|
@@ -45972,9 +45997,7 @@ function onFetchResponseError$4(luvio, config, resourceParams, response) {
|
|
|
45972
45997
|
function buildNetworkSnapshot$d(luvio, config, options) {
|
|
45973
45998
|
const resourceParams = createResourceParams$d(transformConfiguration$1(config));
|
|
45974
45999
|
const request = createResourceRequest$d(resourceParams);
|
|
45975
|
-
return luvio
|
|
45976
|
-
.dispatchResourceRequest(request, options)
|
|
45977
|
-
.then((response) => {
|
|
46000
|
+
return luvio.dispatchResourceRequest(request, options).then((response) => {
|
|
45978
46001
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
|
|
45979
46002
|
const cache = new StoreKeyMap();
|
|
45980
46003
|
getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
|
|
@@ -46566,7 +46589,7 @@ const factory$b = (luvio) => {
|
|
|
46566
46589
|
recordTypeId,
|
|
46567
46590
|
},
|
|
46568
46591
|
});
|
|
46569
|
-
const key = keyBuilder$
|
|
46592
|
+
const key = keyBuilder$2O(luvio, {
|
|
46570
46593
|
apiName: objectApiName,
|
|
46571
46594
|
recordTypeId,
|
|
46572
46595
|
layoutType,
|
|
@@ -46620,7 +46643,7 @@ const getListRecordsByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValid
|
|
|
46620
46643
|
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$_(getListRecordsByName_ConfigPropertyMetadata);
|
|
46621
46644
|
function keyBuilder$a(luvio, config) {
|
|
46622
46645
|
const resourceParams = createResourceParams$9(config);
|
|
46623
|
-
return keyBuilder$
|
|
46646
|
+
return keyBuilder$2Y(luvio, resourceParams);
|
|
46624
46647
|
}
|
|
46625
46648
|
function typeCheckConfig$b(untrustedConfig) {
|
|
46626
46649
|
const config = {};
|
|
@@ -46705,12 +46728,12 @@ function getCachedItemsNumber(cacheSnapshot) {
|
|
|
46705
46728
|
return items.length;
|
|
46706
46729
|
}
|
|
46707
46730
|
function getPaginationMetadata(luvio, resourceParams) {
|
|
46708
|
-
const key = keyBuilder$
|
|
46731
|
+
const key = keyBuilder$2Y(luvio, resourceParams);
|
|
46709
46732
|
const selector = {
|
|
46710
46733
|
recordId: key,
|
|
46711
46734
|
node: {
|
|
46712
46735
|
kind: 'Fragment',
|
|
46713
|
-
version: VERSION$
|
|
46736
|
+
version: VERSION$2f,
|
|
46714
46737
|
private: [],
|
|
46715
46738
|
selections: [
|
|
46716
46739
|
{
|
|
@@ -47146,13 +47169,6 @@ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
|
47146
47169
|
return cacheSnapshot;
|
|
47147
47170
|
}
|
|
47148
47171
|
|
|
47149
|
-
const paramNames = {
|
|
47150
|
-
displayName: 'getLookupRecords',
|
|
47151
|
-
parameters: {
|
|
47152
|
-
required: ['fieldApiName'],
|
|
47153
|
-
optional: ['requestParams'],
|
|
47154
|
-
},
|
|
47155
|
-
};
|
|
47156
47172
|
function coerceRequestParams(untrusted) {
|
|
47157
47173
|
if (!untrustedIsObject(untrusted)) {
|
|
47158
47174
|
return {};
|
|
@@ -47189,8 +47205,8 @@ function coerceRequestParams(untrusted) {
|
|
|
47189
47205
|
}
|
|
47190
47206
|
return coercedConfig;
|
|
47191
47207
|
}
|
|
47192
|
-
function validateAdapterConfig$8(untrustedConfig) {
|
|
47193
|
-
const config = validateAdapterConfig$9(untrustedConfig,
|
|
47208
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
47209
|
+
const config = validateAdapterConfig$9(untrustedConfig, configPropertyNames);
|
|
47194
47210
|
if (config === null) {
|
|
47195
47211
|
return config;
|
|
47196
47212
|
}
|
|
@@ -47205,9 +47221,16 @@ function validateAdapterConfig$8(untrustedConfig) {
|
|
|
47205
47221
|
}
|
|
47206
47222
|
|
|
47207
47223
|
const contextId$3 = `${keyPrefix}__${adapterName$6}`;
|
|
47224
|
+
const paramNames = {
|
|
47225
|
+
displayName: 'getLookupRecords',
|
|
47226
|
+
parameters: {
|
|
47227
|
+
required: ['fieldApiName'],
|
|
47228
|
+
optional: ['requestParams'],
|
|
47229
|
+
},
|
|
47230
|
+
};
|
|
47208
47231
|
const factory$9 = (luvio) => {
|
|
47209
47232
|
return luvio.withContext((untrustedConfig, adapterContext, requestContext) => {
|
|
47210
|
-
const config = validateAdapterConfig$8(untrustedConfig);
|
|
47233
|
+
const config = validateAdapterConfig$8(untrustedConfig, paramNames);
|
|
47211
47234
|
// Invalid or incomplete config
|
|
47212
47235
|
if (config === null) {
|
|
47213
47236
|
return null;
|
|
@@ -49327,7 +49350,7 @@ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$_(createRecord
|
|
|
49327
49350
|
function onResponseSuccess$1(luvio, response, recordIngest, conflictMap) {
|
|
49328
49351
|
const { body } = response;
|
|
49329
49352
|
const selections = buildSelectionFromRecord(body);
|
|
49330
|
-
const key = keyBuilder$
|
|
49353
|
+
const key = keyBuilder$35(luvio, {
|
|
49331
49354
|
recordId: body.id,
|
|
49332
49355
|
});
|
|
49333
49356
|
luvio.storeIngest(key, recordIngest, body);
|
|
@@ -49338,7 +49361,7 @@ function onResponseSuccess$1(luvio, response, recordIngest, conflictMap) {
|
|
|
49338
49361
|
kind: 'Fragment',
|
|
49339
49362
|
private: [],
|
|
49340
49363
|
selections,
|
|
49341
|
-
version: VERSION$
|
|
49364
|
+
version: VERSION$2h,
|
|
49342
49365
|
},
|
|
49343
49366
|
variables: {},
|
|
49344
49367
|
});
|
|
@@ -49377,7 +49400,7 @@ const factory$4 = (luvio) => {
|
|
|
49377
49400
|
};
|
|
49378
49401
|
|
|
49379
49402
|
function keyBuilder$1(luvio, params) {
|
|
49380
|
-
return keyBuilder$
|
|
49403
|
+
return keyBuilder$35(luvio, {
|
|
49381
49404
|
recordId: params.urlParams.recordId
|
|
49382
49405
|
});
|
|
49383
49406
|
}
|
|
@@ -49571,7 +49594,7 @@ function getHeaders(clientOptions) {
|
|
|
49571
49594
|
function onResponseSuccess(luvio, response, recordId, recordIngest, conflictMap) {
|
|
49572
49595
|
const { body } = response;
|
|
49573
49596
|
const sel = buildSelectionFromRecord(body);
|
|
49574
|
-
const key = keyBuilder$
|
|
49597
|
+
const key = keyBuilder$35(luvio, {
|
|
49575
49598
|
recordId,
|
|
49576
49599
|
});
|
|
49577
49600
|
luvio.storeIngest(key, recordIngest, body);
|
|
@@ -49582,7 +49605,7 @@ function onResponseSuccess(luvio, response, recordId, recordIngest, conflictMap)
|
|
|
49582
49605
|
kind: 'Fragment',
|
|
49583
49606
|
private: [],
|
|
49584
49607
|
selections: sel,
|
|
49585
|
-
version: VERSION$
|
|
49608
|
+
version: VERSION$2h,
|
|
49586
49609
|
},
|
|
49587
49610
|
variables: {},
|
|
49588
49611
|
});
|
|
@@ -49826,7 +49849,7 @@ const select = function ContentDocumentCompositeRepresentationSelect(body) {
|
|
|
49826
49849
|
fragment: {
|
|
49827
49850
|
kind: 'Fragment',
|
|
49828
49851
|
private: [],
|
|
49829
|
-
version: VERSION$
|
|
49852
|
+
version: VERSION$2h,
|
|
49830
49853
|
selections: buildSelectionFromRecord(body.contentDocument),
|
|
49831
49854
|
},
|
|
49832
49855
|
},
|
|
@@ -49837,7 +49860,7 @@ const select = function ContentDocumentCompositeRepresentationSelect(body) {
|
|
|
49837
49860
|
fragment: {
|
|
49838
49861
|
kind: 'Fragment',
|
|
49839
49862
|
private: [],
|
|
49840
|
-
version: VERSION$
|
|
49863
|
+
version: VERSION$2h,
|
|
49841
49864
|
selections: buildSelectionFromRecord(body.contentDocumentLinks[0] || { fields: {} }),
|
|
49842
49865
|
},
|
|
49843
49866
|
},
|
|
@@ -49847,7 +49870,7 @@ const select = function ContentDocumentCompositeRepresentationSelect(body) {
|
|
|
49847
49870
|
fragment: {
|
|
49848
49871
|
kind: 'Fragment',
|
|
49849
49872
|
private: [],
|
|
49850
|
-
version: VERSION$
|
|
49873
|
+
version: VERSION$2h,
|
|
49851
49874
|
selections: buildSelectionFromRecord(body.contentVersion),
|
|
49852
49875
|
},
|
|
49853
49876
|
},
|
|
@@ -50259,16 +50282,22 @@ const ingest$2 = function RelatedListInfoBatchRepresentationIngest(input, path,
|
|
|
50259
50282
|
const VERSION$1 = "f8c453eff2fc60fe7c449ce772d0fa16";
|
|
50260
50283
|
function validate$1(obj, path = 'CompositeRelatedListRecordCollectionResultRepresentation') {
|
|
50261
50284
|
const v_error = (() => {
|
|
50262
|
-
|
|
50263
|
-
|
|
50264
|
-
}
|
|
50265
|
-
const obj_result = obj.result;
|
|
50285
|
+
const path_statusCode = path + '.statusCode';
|
|
50286
|
+
const obj_statusCode = obj.statusCode;
|
|
50266
50287
|
const path_result = path + '.result';
|
|
50267
|
-
|
|
50268
|
-
|
|
50288
|
+
const obj_result = obj.result;
|
|
50289
|
+
switch (obj_statusCode) {
|
|
50290
|
+
case 200: {
|
|
50291
|
+
if (typeof obj_result !== 'object') {
|
|
50292
|
+
return new TypeError('Expected "object" but received "' + typeof obj_result + '" (at "' + path_result + '")');
|
|
50293
|
+
}
|
|
50294
|
+
}
|
|
50295
|
+
default: {
|
|
50296
|
+
if (obj_result === undefined) {
|
|
50297
|
+
return new TypeError('Expected "' + path_result + '" to be present but received "undefined" (at "' + path_result + '")');
|
|
50298
|
+
}
|
|
50299
|
+
}
|
|
50269
50300
|
}
|
|
50270
|
-
const obj_statusCode = obj.statusCode;
|
|
50271
|
-
const path_statusCode = path + '.statusCode';
|
|
50272
50301
|
if (typeof obj_statusCode !== 'number') {
|
|
50273
50302
|
return new TypeError('Expected "number" but received "' + typeof obj_statusCode + '" (at "' + path_statusCode + '")');
|
|
50274
50303
|
}
|
|
@@ -50423,4 +50452,4 @@ ensureRegisteredOnce({
|
|
|
50423
50452
|
instrument,
|
|
50424
50453
|
});
|
|
50425
50454
|
|
|
50426
|
-
export { notifyChangeFactory as GetRecordNotifyChange, InMemoryRecordRepresentationQueryEvaluator, MRU, notifyUpdateAvailableFactory$1 as NotifyListInfoUpdateAvailable, notifyUpdateAvailableFactory$2 as NotifyListViewSummaryUpdateAvailable, notifyUpdateAvailableFactory as NotifyQuickActionDefaultsUpdateAvailable, notifyUpdateAvailableFactory$3 as NotifyRecordUpdateAvailable, RepresentationType$O as ObjectInfoRepresentationType, RepresentationType$T as RecordRepresentationRepresentationType, TTL$B as RecordRepresentationTTL, RepresentationType$T as RecordRepresentationType, VERSION$
|
|
50455
|
+
export { notifyChangeFactory as GetRecordNotifyChange, InMemoryRecordRepresentationQueryEvaluator, MRU, notifyUpdateAvailableFactory$1 as NotifyListInfoUpdateAvailable, notifyUpdateAvailableFactory$2 as NotifyListViewSummaryUpdateAvailable, notifyUpdateAvailableFactory as NotifyQuickActionDefaultsUpdateAvailable, notifyUpdateAvailableFactory$3 as NotifyRecordUpdateAvailable, RepresentationType$O as ObjectInfoRepresentationType, RepresentationType$T as RecordRepresentationRepresentationType, TTL$B as RecordRepresentationTTL, RepresentationType$T as RecordRepresentationType, VERSION$2h as RecordRepresentationVersion, keyPrefix as UiApiNamespace, buildSelectionFromFields, buildSelectionFromRecord, configuration, factory$1 as createContentDocumentAndVersionAdapterFactory, factory as createContentVersionAdapterFactory, createIngestRecordWithFields, factory$4 as createRecordAdapterFactory, createRecordInputFilteredByEditedFields, factory$3 as deleteRecordAdapterFactory, generateRecordInputForCreate, generateRecordInputForUpdate, getActionOverridesAdapterFactory, getAllAppsAdapterFactory, getAppDetailsAdapterFactory, getDuplicateConfigurationAdapterFactory, getDuplicatesAdapterFactory, getFieldDisplayValue$1 as getFieldDisplayValue, getFieldValue, getGlobalActionsAdapterFactory, getKeywordSearchResultsAdapterFactory, getLayoutAdapterFactory, getLayoutUserStateAdapterFactory, getListInfoByNameAdapterFactory, getListInfosByNameAdapterFactory, getListObjectInfoAdapterFactory, factory$a as getListRecordsByNameAdapterFactory, factory$i as getListUiAdapterFactory, getListUiByApiNameAdapterFactory, getListUiByListViewIdAdapterFactory, getListViewSummaryCollectionAdapterFactory, getLookupActionsAdapterFactory, getLookupMetadataAdapterFactory, factory$9 as getLookupRecordsAdapterFactory, factory$j as getMruListUiAdapterFactory, getNavItemsAdapterFactory, getObjectCreateActionsAdapterFactory, getObjectInfoAdapterFactory, getObjectInfosAdapterFactory, getPicklistValuesAdapterFactory, getPicklistValuesByRecordTypeAdapterFactory, getQuickActionDefaultsAdapterFactory, getQuickActionLayoutAdapterFactory, getRecordActionsAdapterFactory, factory$g as getRecordAdapterFactory, getRecordAvatarsAdapterFactory, factory$7 as getRecordCreateDefaultsAdapterFactory, getRecordEditActionsAdapterFactory, getRecordId18, getRecordInput, createFieldsIngestSuccess$3 as getRecordResourceIngest, factory$6 as getRecordTemplateCloneAdapterFactory, factory$5 as getRecordTemplateCreateAdapterFactory, factory$h as getRecordUiAdapterFactory, getRecordsAdapterFactory, getRelatedListActionsAdapterFactory, getRelatedListCountAdapterFactory, getRelatedListInfoAdapterFactory, getRelatedListInfoBatchAdapterFactory, getRelatedListPreferencesAdapterFactory, getRelatedListPreferencesBatchAdapterFactory, getRelatedListRecordActionsAdapterFactory, getRelatedListRecordsAdapterFactory, getRelatedListRecordsBatchAdapterFactory, getRelatedListsActionsAdapterFactory, getRelatedListsCountAdapterFactory, getRelatedListsInfoAdapterFactory, getResponseCacheKeys as getResponseCacheKeysContentDocumentCompositeRepresentation, getSearchFilterMetadataAdapterFactory, getSearchFilterOptionsAdapterFactory, getSearchResultsAdapterFactory, getSelectedAppAdapterFactory, getTypeCacheKeys$1V as getTypeCacheKeysRecord, factory$e as graphqlAdapterFactory, factory$f as graphqlBatchAdapterFactory, ingest$4 as ingestContentDocumentCompositeRepresentation, ingest$1y as ingestDuplicateConfiguration, ingest$1t as ingestDuplicatesRepresentation, ingest$1U as ingestListInfo, ingest$1Q as ingestListRecords, ingest$1M as ingestObjectInfo, ingest$1I as ingestQuickActionExecutionRepresentation, ingest$1R as ingestRecord, ingest$1J as ingestRecordUi, ingest$1l as ingestRelatedListInfo, ingest$2 as ingestRelatedListInfoBatch, ingest$1i as ingestRelatedListRecords, ingest as ingestRelatedListRecordsBatch, ingest$1k as ingestRelatedListSummaryInfoCollection, ingest$8 as ingestUiApiGraphql, instrument, keyBuilder as keyBuilderContentDocumentCompositeRepresentation, keyBuilderFromType as keyBuilderFromTypeContentDocumentCompositeRepresentation, keyBuilderFromType$y as keyBuilderFromTypeRecordRepresentation, keyBuilder$2S as keyBuilderObjectInfo, keyBuilder$2M as keyBuilderQuickActionExecutionRepresentation, keyBuilder$35 as keyBuilderRecord, factory$c as performQuickActionAdapterFactory, factory$d as performUpdateRecordQuickActionAdapterFactory, untrustedIsObject, factory$b as updateLayoutUserStateAdapterFactory, updateListInfoByNameAdapterFactory, factory$2 as updateRecordAdapterFactory, factory$8 as updateRecordAvatarAdapterFactory, updateRelatedListInfoAdapterFactory, updateRelatedListPreferencesAdapterFactory };
|