@salesforce/lwc-adapters-uiapi 1.235.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.
Files changed (2) hide show
  1. package/dist/main.js +643 -1417
  2. package/package.json +3 -3
package/dist/main.js CHANGED
@@ -533,12 +533,13 @@ function createResourceParamsImpl(config, configMetadata) {
533
533
  }
534
534
  return resourceParams;
535
535
  }
536
- // engine version: 0.147.1-bc3a8b47
536
+ // engine version: 0.148.1-b9169b45
537
537
 
538
538
  /**
539
539
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
540
540
  * otherwise returns false.
541
541
  */
542
+ // eslint-disable-next-line no-redeclare
542
543
 
543
544
  function _typeof$4(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof$4 = function _typeof(obj) { return typeof obj; }; } else { _typeof$4 = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof$4(obj); }
544
545
 
@@ -5184,9 +5185,6 @@ function argsToArgsConfig(args) {
5184
5185
  };
5185
5186
  });
5186
5187
  }
5187
- function isRequiredArgument(arg) {
5188
- return isNonNullType(arg.type) && arg.defaultValue === undefined;
5189
- }
5190
5188
 
5191
5189
  /**
5192
5190
  * Interface Type Definition
@@ -6767,7 +6765,7 @@ defineInspect(GraphQLDirective);
6767
6765
  /**
6768
6766
  * Used to conditionally include fields or fragments.
6769
6767
  */
6770
- var GraphQLIncludeDirective = new GraphQLDirective({
6768
+ new GraphQLDirective({
6771
6769
  name: 'include',
6772
6770
  description: 'Directs the executor to include this field or fragment only when the `if` argument is true.',
6773
6771
  locations: [DirectiveLocation.FIELD, DirectiveLocation.FRAGMENT_SPREAD, DirectiveLocation.INLINE_FRAGMENT],
@@ -6782,7 +6780,7 @@ var GraphQLIncludeDirective = new GraphQLDirective({
6782
6780
  * Used to conditionally skip (exclude) fields or fragments.
6783
6781
  */
6784
6782
 
6785
- var GraphQLSkipDirective = new GraphQLDirective({
6783
+ new GraphQLDirective({
6786
6784
  name: 'skip',
6787
6785
  description: 'Directs the executor to skip this field or fragment when the `if` argument is true.',
6788
6786
  locations: [DirectiveLocation.FIELD, DirectiveLocation.FRAGMENT_SPREAD, DirectiveLocation.INLINE_FRAGMENT],
@@ -6802,7 +6800,7 @@ var DEFAULT_DEPRECATION_REASON = 'No longer supported';
6802
6800
  * Used to declare element of a GraphQL schema as deprecated.
6803
6801
  */
6804
6802
 
6805
- var GraphQLDeprecatedDirective = new GraphQLDirective({
6803
+ new GraphQLDirective({
6806
6804
  name: 'deprecated',
6807
6805
  description: 'Marks an element of a GraphQL schema as no longer supported.',
6808
6806
  locations: [DirectiveLocation.FIELD_DEFINITION, DirectiveLocation.ARGUMENT_DEFINITION, DirectiveLocation.INPUT_FIELD_DEFINITION, DirectiveLocation.ENUM_VALUE],
@@ -6818,7 +6816,7 @@ var GraphQLDeprecatedDirective = new GraphQLDirective({
6818
6816
  * Used to provide a URL for specifying the behaviour of custom scalar definitions.
6819
6817
  */
6820
6818
 
6821
- var GraphQLSpecifiedByDirective = new GraphQLDirective({
6819
+ new GraphQLDirective({
6822
6820
  name: 'specifiedBy',
6823
6821
  description: 'Exposes a URL that specifies the behaviour of this scalar.',
6824
6822
  locations: [DirectiveLocation.SCALAR],
@@ -6829,810 +6827,14 @@ var GraphQLSpecifiedByDirective = new GraphQLDirective({
6829
6827
  }
6830
6828
  }
6831
6829
  });
6832
- /**
6833
- * The full list of specified directives.
6834
- */
6835
-
6836
- var specifiedDirectives = Object.freeze([GraphQLIncludeDirective, GraphQLSkipDirective, GraphQLDeprecatedDirective, GraphQLSpecifiedByDirective]);
6837
-
6838
- function isTypeSystemDefinitionNode(node) {
6839
- return node.kind === Kind.SCHEMA_DEFINITION || isTypeDefinitionNode(node) || node.kind === Kind.DIRECTIVE_DEFINITION;
6840
- }
6841
- function isTypeDefinitionNode(node) {
6842
- return node.kind === Kind.SCALAR_TYPE_DEFINITION || node.kind === Kind.OBJECT_TYPE_DEFINITION || node.kind === Kind.INTERFACE_TYPE_DEFINITION || node.kind === Kind.UNION_TYPE_DEFINITION || node.kind === Kind.ENUM_TYPE_DEFINITION || node.kind === Kind.INPUT_OBJECT_TYPE_DEFINITION;
6843
- }
6844
- function isTypeSystemExtensionNode(node) {
6845
- return node.kind === Kind.SCHEMA_EXTENSION || isTypeExtensionNode(node);
6846
- }
6847
- function isTypeExtensionNode(node) {
6848
- return node.kind === Kind.SCALAR_TYPE_EXTENSION || node.kind === Kind.OBJECT_TYPE_EXTENSION || node.kind === Kind.INTERFACE_TYPE_EXTENSION || node.kind === Kind.UNION_TYPE_EXTENSION || node.kind === Kind.ENUM_TYPE_EXTENSION || node.kind === Kind.INPUT_OBJECT_TYPE_EXTENSION;
6849
- }
6850
-
6851
- /**
6852
- * Known type names
6853
- *
6854
- * A GraphQL document is only valid if referenced types (specifically
6855
- * variable definitions and fragment conditions) are defined by the type schema.
6856
- */
6857
- function KnownTypeNamesRule(context) {
6858
- var schema = context.getSchema();
6859
- var existingTypesMap = schema ? schema.getTypeMap() : Object.create(null);
6860
- var definedTypes = Object.create(null);
6861
-
6862
- for (var _i2 = 0, _context$getDocument$2 = context.getDocument().definitions; _i2 < _context$getDocument$2.length; _i2++) {
6863
- var def = _context$getDocument$2[_i2];
6864
-
6865
- if (isTypeDefinitionNode(def)) {
6866
- definedTypes[def.name.value] = true;
6867
- }
6868
- }
6869
-
6870
- var typeNames = Object.keys(existingTypesMap).concat(Object.keys(definedTypes));
6871
- return {
6872
- NamedType: function NamedType(node, _1, parent, _2, ancestors) {
6873
- var typeName = node.name.value;
6874
-
6875
- if (!existingTypesMap[typeName] && !definedTypes[typeName]) {
6876
- var _ancestors$;
6877
-
6878
- var definitionNode = (_ancestors$ = ancestors[2]) !== null && _ancestors$ !== void 0 ? _ancestors$ : parent;
6879
- var isSDL = definitionNode != null && isSDLNode(definitionNode);
6880
-
6881
- if (isSDL && isStandardTypeName(typeName)) {
6882
- return;
6883
- }
6884
-
6885
- var suggestedTypes = suggestionList(typeName, isSDL ? standardTypeNames.concat(typeNames) : typeNames);
6886
- context.reportError(new GraphQLError("Unknown type \"".concat(typeName, "\".") + didYouMean(suggestedTypes), node));
6887
- }
6888
- }
6889
- };
6890
- }
6891
- var standardTypeNames = [].concat(specifiedScalarTypes, introspectionTypes).map(function (type) {
6830
+ [].concat(specifiedScalarTypes, introspectionTypes).map(function (type) {
6892
6831
  return type.name;
6893
6832
  });
6894
6833
 
6895
- function isStandardTypeName(typeName) {
6896
- return standardTypeNames.indexOf(typeName) !== -1;
6897
- }
6898
-
6899
- function isSDLNode(value) {
6900
- return !Array.isArray(value) && (isTypeSystemDefinitionNode(value) || isTypeSystemExtensionNode(value));
6901
- }
6902
-
6903
- /**
6904
- * Known directives
6905
- *
6906
- * A GraphQL document is only valid if all `@directives` are known by the
6907
- * schema and legally positioned.
6908
- */
6909
- function KnownDirectivesRule(context) {
6910
- var locationsMap = Object.create(null);
6911
- var schema = context.getSchema();
6912
- var definedDirectives = schema ? schema.getDirectives() : specifiedDirectives;
6913
-
6914
- for (var _i2 = 0; _i2 < definedDirectives.length; _i2++) {
6915
- var directive = definedDirectives[_i2];
6916
- locationsMap[directive.name] = directive.locations;
6917
- }
6918
-
6919
- var astDefinitions = context.getDocument().definitions;
6920
-
6921
- for (var _i4 = 0; _i4 < astDefinitions.length; _i4++) {
6922
- var def = astDefinitions[_i4];
6923
-
6924
- if (def.kind === Kind.DIRECTIVE_DEFINITION) {
6925
- locationsMap[def.name.value] = def.locations.map(function (name) {
6926
- return name.value;
6927
- });
6928
- }
6929
- }
6930
-
6931
- return {
6932
- Directive: function Directive(node, _key, _parent, _path, ancestors) {
6933
- var name = node.name.value;
6934
- var locations = locationsMap[name];
6935
-
6936
- if (!locations) {
6937
- context.reportError(new GraphQLError("Unknown directive \"@".concat(name, "\"."), node));
6938
- return;
6939
- }
6940
-
6941
- var candidateLocation = getDirectiveLocationForASTPath(ancestors);
6942
-
6943
- if (candidateLocation && locations.indexOf(candidateLocation) === -1) {
6944
- context.reportError(new GraphQLError("Directive \"@".concat(name, "\" may not be used on ").concat(candidateLocation, "."), node));
6945
- }
6946
- }
6947
- };
6948
- }
6949
-
6950
- function getDirectiveLocationForASTPath(ancestors) {
6951
- var appliedTo = ancestors[ancestors.length - 1];
6952
- !Array.isArray(appliedTo) || invariant(0);
6953
-
6954
- switch (appliedTo.kind) {
6955
- case Kind.OPERATION_DEFINITION:
6956
- return getDirectiveLocationForOperation(appliedTo.operation);
6957
-
6958
- case Kind.FIELD:
6959
- return DirectiveLocation.FIELD;
6960
-
6961
- case Kind.FRAGMENT_SPREAD:
6962
- return DirectiveLocation.FRAGMENT_SPREAD;
6963
-
6964
- case Kind.INLINE_FRAGMENT:
6965
- return DirectiveLocation.INLINE_FRAGMENT;
6966
-
6967
- case Kind.FRAGMENT_DEFINITION:
6968
- return DirectiveLocation.FRAGMENT_DEFINITION;
6969
-
6970
- case Kind.VARIABLE_DEFINITION:
6971
- return DirectiveLocation.VARIABLE_DEFINITION;
6972
-
6973
- case Kind.SCHEMA_DEFINITION:
6974
- case Kind.SCHEMA_EXTENSION:
6975
- return DirectiveLocation.SCHEMA;
6976
-
6977
- case Kind.SCALAR_TYPE_DEFINITION:
6978
- case Kind.SCALAR_TYPE_EXTENSION:
6979
- return DirectiveLocation.SCALAR;
6980
-
6981
- case Kind.OBJECT_TYPE_DEFINITION:
6982
- case Kind.OBJECT_TYPE_EXTENSION:
6983
- return DirectiveLocation.OBJECT;
6984
-
6985
- case Kind.FIELD_DEFINITION:
6986
- return DirectiveLocation.FIELD_DEFINITION;
6987
-
6988
- case Kind.INTERFACE_TYPE_DEFINITION:
6989
- case Kind.INTERFACE_TYPE_EXTENSION:
6990
- return DirectiveLocation.INTERFACE;
6991
-
6992
- case Kind.UNION_TYPE_DEFINITION:
6993
- case Kind.UNION_TYPE_EXTENSION:
6994
- return DirectiveLocation.UNION;
6995
-
6996
- case Kind.ENUM_TYPE_DEFINITION:
6997
- case Kind.ENUM_TYPE_EXTENSION:
6998
- return DirectiveLocation.ENUM;
6999
-
7000
- case Kind.ENUM_VALUE_DEFINITION:
7001
- return DirectiveLocation.ENUM_VALUE;
7002
-
7003
- case Kind.INPUT_OBJECT_TYPE_DEFINITION:
7004
- case Kind.INPUT_OBJECT_TYPE_EXTENSION:
7005
- return DirectiveLocation.INPUT_OBJECT;
7006
-
7007
- case Kind.INPUT_VALUE_DEFINITION:
7008
- {
7009
- var parentNode = ancestors[ancestors.length - 3];
7010
- return parentNode.kind === Kind.INPUT_OBJECT_TYPE_DEFINITION ? DirectiveLocation.INPUT_FIELD_DEFINITION : DirectiveLocation.ARGUMENT_DEFINITION;
7011
- }
7012
- }
7013
- }
7014
-
7015
- function getDirectiveLocationForOperation(operation) {
7016
- switch (operation) {
7017
- case 'query':
7018
- return DirectiveLocation.QUERY;
7019
-
7020
- case 'mutation':
7021
- return DirectiveLocation.MUTATION;
7022
-
7023
- case 'subscription':
7024
- return DirectiveLocation.SUBSCRIPTION;
7025
- } // istanbul ignore next (Not reachable. All possible types have been considered)
7026
-
7027
-
7028
- invariant(0, 'Unexpected operation: ' + inspect(operation));
7029
- }
7030
-
7031
- /**
7032
- * Unique directive names per location
7033
- *
7034
- * A GraphQL document is only valid if all non-repeatable directives at
7035
- * a given location are uniquely named.
7036
- */
7037
- function UniqueDirectivesPerLocationRule(context) {
7038
- var uniqueDirectiveMap = Object.create(null);
7039
- var schema = context.getSchema();
7040
- var definedDirectives = schema ? schema.getDirectives() : specifiedDirectives;
7041
-
7042
- for (var _i2 = 0; _i2 < definedDirectives.length; _i2++) {
7043
- var directive = definedDirectives[_i2];
7044
- uniqueDirectiveMap[directive.name] = !directive.isRepeatable;
7045
- }
7046
-
7047
- var astDefinitions = context.getDocument().definitions;
7048
-
7049
- for (var _i4 = 0; _i4 < astDefinitions.length; _i4++) {
7050
- var def = astDefinitions[_i4];
7051
-
7052
- if (def.kind === Kind.DIRECTIVE_DEFINITION) {
7053
- uniqueDirectiveMap[def.name.value] = !def.repeatable;
7054
- }
7055
- }
7056
-
7057
- var schemaDirectives = Object.create(null);
7058
- var typeDirectivesMap = Object.create(null);
7059
- return {
7060
- // Many different AST nodes may contain directives. Rather than listing
7061
- // them all, just listen for entering any node, and check to see if it
7062
- // defines any directives.
7063
- enter: function enter(node) {
7064
- if (node.directives == null) {
7065
- return;
7066
- }
7067
-
7068
- var seenDirectives;
7069
-
7070
- if (node.kind === Kind.SCHEMA_DEFINITION || node.kind === Kind.SCHEMA_EXTENSION) {
7071
- seenDirectives = schemaDirectives;
7072
- } else if (isTypeDefinitionNode(node) || isTypeExtensionNode(node)) {
7073
- var typeName = node.name.value;
7074
- seenDirectives = typeDirectivesMap[typeName];
7075
-
7076
- if (seenDirectives === undefined) {
7077
- typeDirectivesMap[typeName] = seenDirectives = Object.create(null);
7078
- }
7079
- } else {
7080
- seenDirectives = Object.create(null);
7081
- }
7082
-
7083
- for (var _i6 = 0, _node$directives2 = node.directives; _i6 < _node$directives2.length; _i6++) {
7084
- var _directive = _node$directives2[_i6];
7085
- var directiveName = _directive.name.value;
7086
-
7087
- if (uniqueDirectiveMap[directiveName]) {
7088
- if (seenDirectives[directiveName]) {
7089
- context.reportError(new GraphQLError("The directive \"@".concat(directiveName, "\" can only be used once at this location."), [seenDirectives[directiveName], _directive]));
7090
- } else {
7091
- seenDirectives[directiveName] = _directive;
7092
- }
7093
- }
7094
- }
7095
- }
7096
- };
7097
- }
7098
-
7099
- /**
7100
- * @internal
7101
- */
7102
-
7103
- function KnownArgumentNamesOnDirectivesRule(context) {
7104
- var directiveArgs = Object.create(null);
7105
- var schema = context.getSchema();
7106
- var definedDirectives = schema ? schema.getDirectives() : specifiedDirectives;
7107
-
7108
- for (var _i2 = 0; _i2 < definedDirectives.length; _i2++) {
7109
- var directive = definedDirectives[_i2];
7110
- directiveArgs[directive.name] = directive.args.map(function (arg) {
7111
- return arg.name;
7112
- });
7113
- }
7114
-
7115
- var astDefinitions = context.getDocument().definitions;
7116
-
7117
- for (var _i4 = 0; _i4 < astDefinitions.length; _i4++) {
7118
- var def = astDefinitions[_i4];
7119
-
7120
- if (def.kind === Kind.DIRECTIVE_DEFINITION) {
7121
- var _def$arguments;
7122
-
7123
- // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2203')
7124
- var argsNodes = (_def$arguments = def.arguments) !== null && _def$arguments !== void 0 ? _def$arguments : [];
7125
- directiveArgs[def.name.value] = argsNodes.map(function (arg) {
7126
- return arg.name.value;
7127
- });
7128
- }
7129
- }
7130
-
7131
- return {
7132
- Directive: function Directive(directiveNode) {
7133
- var directiveName = directiveNode.name.value;
7134
- var knownArgs = directiveArgs[directiveName];
7135
-
7136
- if (directiveNode.arguments && knownArgs) {
7137
- for (var _i6 = 0, _directiveNode$argume2 = directiveNode.arguments; _i6 < _directiveNode$argume2.length; _i6++) {
7138
- var argNode = _directiveNode$argume2[_i6];
7139
- var argName = argNode.name.value;
7140
-
7141
- if (knownArgs.indexOf(argName) === -1) {
7142
- var suggestions = suggestionList(argName, knownArgs);
7143
- context.reportError(new GraphQLError("Unknown argument \"".concat(argName, "\" on directive \"@").concat(directiveName, "\".") + didYouMean(suggestions), argNode));
7144
- }
7145
- }
7146
- }
7147
-
7148
- return false;
7149
- }
7150
- };
7151
- }
7152
-
7153
- /**
7154
- * Unique argument names
7155
- *
7156
- * A GraphQL field or directive is only valid if all supplied arguments are
7157
- * uniquely named.
7158
- */
7159
- function UniqueArgumentNamesRule(context) {
7160
- var knownArgNames = Object.create(null);
7161
- return {
7162
- Field: function Field() {
7163
- knownArgNames = Object.create(null);
7164
- },
7165
- Directive: function Directive() {
7166
- knownArgNames = Object.create(null);
7167
- },
7168
- Argument: function Argument(node) {
7169
- var argName = node.name.value;
7170
-
7171
- if (knownArgNames[argName]) {
7172
- context.reportError(new GraphQLError("There can be only one argument named \"".concat(argName, "\"."), [knownArgNames[argName], node.name]));
7173
- } else {
7174
- knownArgNames[argName] = node.name;
7175
- }
7176
-
7177
- return false;
7178
- }
7179
- };
7180
- }
7181
-
7182
- /**
7183
- * @internal
7184
- */
7185
-
7186
- function ProvidedRequiredArgumentsOnDirectivesRule(context) {
7187
- var requiredArgsMap = Object.create(null);
7188
- var schema = context.getSchema();
7189
- var definedDirectives = schema ? schema.getDirectives() : specifiedDirectives;
7190
-
7191
- for (var _i4 = 0; _i4 < definedDirectives.length; _i4++) {
7192
- var directive = definedDirectives[_i4];
7193
- requiredArgsMap[directive.name] = keyMap(directive.args.filter(isRequiredArgument), function (arg) {
7194
- return arg.name;
7195
- });
7196
- }
7197
-
7198
- var astDefinitions = context.getDocument().definitions;
7199
-
7200
- for (var _i6 = 0; _i6 < astDefinitions.length; _i6++) {
7201
- var def = astDefinitions[_i6];
7202
-
7203
- if (def.kind === Kind.DIRECTIVE_DEFINITION) {
7204
- var _def$arguments;
7205
-
7206
- // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2203')
7207
- var argNodes = (_def$arguments = def.arguments) !== null && _def$arguments !== void 0 ? _def$arguments : [];
7208
- requiredArgsMap[def.name.value] = keyMap(argNodes.filter(isRequiredArgumentNode), function (arg) {
7209
- return arg.name.value;
7210
- });
7211
- }
7212
- }
7213
-
7214
- return {
7215
- Directive: {
7216
- // Validate on leave to allow for deeper errors to appear first.
7217
- leave: function leave(directiveNode) {
7218
- var directiveName = directiveNode.name.value;
7219
- var requiredArgs = requiredArgsMap[directiveName];
7220
-
7221
- if (requiredArgs) {
7222
- var _directiveNode$argume;
7223
-
7224
- // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2203')
7225
- var _argNodes = (_directiveNode$argume = directiveNode.arguments) !== null && _directiveNode$argume !== void 0 ? _directiveNode$argume : [];
7226
-
7227
- var argNodeMap = keyMap(_argNodes, function (arg) {
7228
- return arg.name.value;
7229
- });
7230
-
7231
- for (var _i8 = 0, _Object$keys2 = Object.keys(requiredArgs); _i8 < _Object$keys2.length; _i8++) {
7232
- var argName = _Object$keys2[_i8];
7233
-
7234
- if (!argNodeMap[argName]) {
7235
- var argType = requiredArgs[argName].type;
7236
- var argTypeStr = isType(argType) ? inspect(argType) : print(argType);
7237
- context.reportError(new GraphQLError("Directive \"@".concat(directiveName, "\" argument \"").concat(argName, "\" of type \"").concat(argTypeStr, "\" is required, but it was not provided."), directiveNode));
7238
- }
7239
- }
7240
- }
7241
- }
7242
- }
7243
- };
7244
- }
7245
-
7246
- function isRequiredArgumentNode(arg) {
7247
- return arg.type.kind === Kind.NON_NULL_TYPE && arg.defaultValue == null;
7248
- }
7249
-
7250
- /**
7251
- * Unique input field names
7252
- *
7253
- * A GraphQL input object value is only valid if all supplied fields are
7254
- * uniquely named.
7255
- */
7256
- function UniqueInputFieldNamesRule(context) {
7257
- var knownNameStack = [];
7258
- var knownNames = Object.create(null);
7259
- return {
7260
- ObjectValue: {
7261
- enter: function enter() {
7262
- knownNameStack.push(knownNames);
7263
- knownNames = Object.create(null);
7264
- },
7265
- leave: function leave() {
7266
- knownNames = knownNameStack.pop();
7267
- }
7268
- },
7269
- ObjectField: function ObjectField(node) {
7270
- var fieldName = node.name.value;
7271
-
7272
- if (knownNames[fieldName]) {
7273
- context.reportError(new GraphQLError("There can be only one input field named \"".concat(fieldName, "\"."), [knownNames[fieldName], node.name]));
7274
- } else {
7275
- knownNames[fieldName] = node.name;
7276
- }
7277
- }
7278
- };
7279
- }
7280
-
7281
- /**
7282
- * Lone Schema definition
7283
- *
7284
- * A GraphQL document is only valid if it contains only one schema definition.
7285
- */
7286
- function LoneSchemaDefinitionRule(context) {
7287
- var _ref, _ref2, _oldSchema$astNode;
7288
-
7289
- var oldSchema = context.getSchema();
7290
- var alreadyDefined = (_ref = (_ref2 = (_oldSchema$astNode = oldSchema === null || oldSchema === void 0 ? void 0 : oldSchema.astNode) !== null && _oldSchema$astNode !== void 0 ? _oldSchema$astNode : oldSchema === null || oldSchema === void 0 ? void 0 : oldSchema.getQueryType()) !== null && _ref2 !== void 0 ? _ref2 : oldSchema === null || oldSchema === void 0 ? void 0 : oldSchema.getMutationType()) !== null && _ref !== void 0 ? _ref : oldSchema === null || oldSchema === void 0 ? void 0 : oldSchema.getSubscriptionType();
7291
- var schemaDefinitionsCount = 0;
7292
- return {
7293
- SchemaDefinition: function SchemaDefinition(node) {
7294
- if (alreadyDefined) {
7295
- context.reportError(new GraphQLError('Cannot define a new schema within a schema extension.', node));
7296
- return;
7297
- }
7298
-
7299
- if (schemaDefinitionsCount > 0) {
7300
- context.reportError(new GraphQLError('Must provide only one schema definition.', node));
7301
- }
7302
-
7303
- ++schemaDefinitionsCount;
7304
- }
7305
- };
7306
- }
7307
-
7308
- /**
7309
- * Unique operation types
7310
- *
7311
- * A GraphQL document is only valid if it has only one type per operation.
7312
- */
7313
- function UniqueOperationTypesRule(context) {
7314
- var schema = context.getSchema();
7315
- var definedOperationTypes = Object.create(null);
7316
- var existingOperationTypes = schema ? {
7317
- query: schema.getQueryType(),
7318
- mutation: schema.getMutationType(),
7319
- subscription: schema.getSubscriptionType()
7320
- } : {};
7321
- return {
7322
- SchemaDefinition: checkOperationTypes,
7323
- SchemaExtension: checkOperationTypes
7324
- };
7325
-
7326
- function checkOperationTypes(node) {
7327
- var _node$operationTypes;
7328
-
7329
- // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2203')
7330
- var operationTypesNodes = (_node$operationTypes = node.operationTypes) !== null && _node$operationTypes !== void 0 ? _node$operationTypes : [];
7331
-
7332
- for (var _i2 = 0; _i2 < operationTypesNodes.length; _i2++) {
7333
- var operationType = operationTypesNodes[_i2];
7334
- var operation = operationType.operation;
7335
- var alreadyDefinedOperationType = definedOperationTypes[operation];
7336
-
7337
- if (existingOperationTypes[operation]) {
7338
- context.reportError(new GraphQLError("Type for ".concat(operation, " already defined in the schema. It cannot be redefined."), operationType));
7339
- } else if (alreadyDefinedOperationType) {
7340
- context.reportError(new GraphQLError("There can be only one ".concat(operation, " type in schema."), [alreadyDefinedOperationType, operationType]));
7341
- } else {
7342
- definedOperationTypes[operation] = operationType;
7343
- }
7344
- }
7345
-
7346
- return false;
7347
- }
7348
- }
7349
-
7350
- /**
7351
- * Unique type names
7352
- *
7353
- * A GraphQL document is only valid if all defined types have unique names.
7354
- */
7355
- function UniqueTypeNamesRule(context) {
7356
- var knownTypeNames = Object.create(null);
7357
- var schema = context.getSchema();
7358
- return {
7359
- ScalarTypeDefinition: checkTypeName,
7360
- ObjectTypeDefinition: checkTypeName,
7361
- InterfaceTypeDefinition: checkTypeName,
7362
- UnionTypeDefinition: checkTypeName,
7363
- EnumTypeDefinition: checkTypeName,
7364
- InputObjectTypeDefinition: checkTypeName
7365
- };
7366
-
7367
- function checkTypeName(node) {
7368
- var typeName = node.name.value;
7369
-
7370
- if (schema !== null && schema !== void 0 && schema.getType(typeName)) {
7371
- context.reportError(new GraphQLError("Type \"".concat(typeName, "\" already exists in the schema. It cannot also be defined in this type definition."), node.name));
7372
- return;
7373
- }
7374
-
7375
- if (knownTypeNames[typeName]) {
7376
- context.reportError(new GraphQLError("There can be only one type named \"".concat(typeName, "\"."), [knownTypeNames[typeName], node.name]));
7377
- } else {
7378
- knownTypeNames[typeName] = node.name;
7379
- }
7380
-
7381
- return false;
7382
- }
7383
- }
7384
-
7385
- /**
7386
- * Unique enum value names
7387
- *
7388
- * A GraphQL enum type is only valid if all its values are uniquely named.
7389
- */
7390
- function UniqueEnumValueNamesRule(context) {
7391
- var schema = context.getSchema();
7392
- var existingTypeMap = schema ? schema.getTypeMap() : Object.create(null);
7393
- var knownValueNames = Object.create(null);
7394
- return {
7395
- EnumTypeDefinition: checkValueUniqueness,
7396
- EnumTypeExtension: checkValueUniqueness
7397
- };
7398
-
7399
- function checkValueUniqueness(node) {
7400
- var _node$values;
7401
-
7402
- var typeName = node.name.value;
7403
-
7404
- if (!knownValueNames[typeName]) {
7405
- knownValueNames[typeName] = Object.create(null);
7406
- } // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2203')
7407
-
7408
-
7409
- var valueNodes = (_node$values = node.values) !== null && _node$values !== void 0 ? _node$values : [];
7410
- var valueNames = knownValueNames[typeName];
7411
-
7412
- for (var _i2 = 0; _i2 < valueNodes.length; _i2++) {
7413
- var valueDef = valueNodes[_i2];
7414
- var valueName = valueDef.name.value;
7415
- var existingType = existingTypeMap[typeName];
7416
-
7417
- if (isEnumType(existingType) && existingType.getValue(valueName)) {
7418
- context.reportError(new GraphQLError("Enum value \"".concat(typeName, ".").concat(valueName, "\" already exists in the schema. It cannot also be defined in this type extension."), valueDef.name));
7419
- } else if (valueNames[valueName]) {
7420
- context.reportError(new GraphQLError("Enum value \"".concat(typeName, ".").concat(valueName, "\" can only be defined once."), [valueNames[valueName], valueDef.name]));
7421
- } else {
7422
- valueNames[valueName] = valueDef.name;
7423
- }
7424
- }
7425
-
7426
- return false;
7427
- }
7428
- }
7429
-
7430
- /**
7431
- * Unique field definition names
7432
- *
7433
- * A GraphQL complex type is only valid if all its fields are uniquely named.
7434
- */
7435
- function UniqueFieldDefinitionNamesRule(context) {
7436
- var schema = context.getSchema();
7437
- var existingTypeMap = schema ? schema.getTypeMap() : Object.create(null);
7438
- var knownFieldNames = Object.create(null);
7439
- return {
7440
- InputObjectTypeDefinition: checkFieldUniqueness,
7441
- InputObjectTypeExtension: checkFieldUniqueness,
7442
- InterfaceTypeDefinition: checkFieldUniqueness,
7443
- InterfaceTypeExtension: checkFieldUniqueness,
7444
- ObjectTypeDefinition: checkFieldUniqueness,
7445
- ObjectTypeExtension: checkFieldUniqueness
7446
- };
7447
-
7448
- function checkFieldUniqueness(node) {
7449
- var _node$fields;
7450
-
7451
- var typeName = node.name.value;
7452
-
7453
- if (!knownFieldNames[typeName]) {
7454
- knownFieldNames[typeName] = Object.create(null);
7455
- } // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2203')
7456
-
7457
-
7458
- var fieldNodes = (_node$fields = node.fields) !== null && _node$fields !== void 0 ? _node$fields : [];
7459
- var fieldNames = knownFieldNames[typeName];
7460
-
7461
- for (var _i2 = 0; _i2 < fieldNodes.length; _i2++) {
7462
- var fieldDef = fieldNodes[_i2];
7463
- var fieldName = fieldDef.name.value;
7464
-
7465
- if (hasField(existingTypeMap[typeName], fieldName)) {
7466
- context.reportError(new GraphQLError("Field \"".concat(typeName, ".").concat(fieldName, "\" already exists in the schema. It cannot also be defined in this type extension."), fieldDef.name));
7467
- } else if (fieldNames[fieldName]) {
7468
- context.reportError(new GraphQLError("Field \"".concat(typeName, ".").concat(fieldName, "\" can only be defined once."), [fieldNames[fieldName], fieldDef.name]));
7469
- } else {
7470
- fieldNames[fieldName] = fieldDef.name;
7471
- }
7472
- }
7473
-
7474
- return false;
7475
- }
7476
- }
7477
-
7478
- function hasField(type, fieldName) {
7479
- if (isObjectType(type) || isInterfaceType(type) || isInputObjectType(type)) {
7480
- return type.getFields()[fieldName] != null;
7481
- }
7482
-
7483
- return false;
7484
- }
7485
-
7486
- /**
7487
- * Unique directive names
7488
- *
7489
- * A GraphQL document is only valid if all defined directives have unique names.
7490
- */
7491
- function UniqueDirectiveNamesRule(context) {
7492
- var knownDirectiveNames = Object.create(null);
7493
- var schema = context.getSchema();
7494
- return {
7495
- DirectiveDefinition: function DirectiveDefinition(node) {
7496
- var directiveName = node.name.value;
7497
-
7498
- if (schema !== null && schema !== void 0 && schema.getDirective(directiveName)) {
7499
- context.reportError(new GraphQLError("Directive \"@".concat(directiveName, "\" already exists in the schema. It cannot be redefined."), node.name));
7500
- return;
7501
- }
7502
-
7503
- if (knownDirectiveNames[directiveName]) {
7504
- context.reportError(new GraphQLError("There can be only one directive named \"@".concat(directiveName, "\"."), [knownDirectiveNames[directiveName], node.name]));
7505
- } else {
7506
- knownDirectiveNames[directiveName] = node.name;
7507
- }
7508
-
7509
- return false;
7510
- }
7511
- };
7512
- }
7513
-
7514
6834
  var _defKindToExtKind;
7515
6835
 
7516
6836
  function _defineProperty$1(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
7517
-
7518
- /**
7519
- * Possible type extension
7520
- *
7521
- * A type extension is only valid if the type is defined and has the same kind.
7522
- */
7523
- function PossibleTypeExtensionsRule(context) {
7524
- var schema = context.getSchema();
7525
- var definedTypes = Object.create(null);
7526
-
7527
- for (var _i2 = 0, _context$getDocument$2 = context.getDocument().definitions; _i2 < _context$getDocument$2.length; _i2++) {
7528
- var def = _context$getDocument$2[_i2];
7529
-
7530
- if (isTypeDefinitionNode(def)) {
7531
- definedTypes[def.name.value] = def;
7532
- }
7533
- }
7534
-
7535
- return {
7536
- ScalarTypeExtension: checkExtension,
7537
- ObjectTypeExtension: checkExtension,
7538
- InterfaceTypeExtension: checkExtension,
7539
- UnionTypeExtension: checkExtension,
7540
- EnumTypeExtension: checkExtension,
7541
- InputObjectTypeExtension: checkExtension
7542
- };
7543
-
7544
- function checkExtension(node) {
7545
- var typeName = node.name.value;
7546
- var defNode = definedTypes[typeName];
7547
- var existingType = schema === null || schema === void 0 ? void 0 : schema.getType(typeName);
7548
- var expectedKind;
7549
-
7550
- if (defNode) {
7551
- expectedKind = defKindToExtKind[defNode.kind];
7552
- } else if (existingType) {
7553
- expectedKind = typeToExtKind(existingType);
7554
- }
7555
-
7556
- if (expectedKind) {
7557
- if (expectedKind !== node.kind) {
7558
- var kindStr = extensionKindToTypeName(node.kind);
7559
- context.reportError(new GraphQLError("Cannot extend non-".concat(kindStr, " type \"").concat(typeName, "\"."), defNode ? [defNode, node] : node));
7560
- }
7561
- } else {
7562
- var allTypeNames = Object.keys(definedTypes);
7563
-
7564
- if (schema) {
7565
- allTypeNames = allTypeNames.concat(Object.keys(schema.getTypeMap()));
7566
- }
7567
-
7568
- var suggestedTypes = suggestionList(typeName, allTypeNames);
7569
- context.reportError(new GraphQLError("Cannot extend type \"".concat(typeName, "\" because it is not defined.") + didYouMean(suggestedTypes), node.name));
7570
- }
7571
- }
7572
- }
7573
- var defKindToExtKind = (_defKindToExtKind = {}, _defineProperty$1(_defKindToExtKind, Kind.SCALAR_TYPE_DEFINITION, Kind.SCALAR_TYPE_EXTENSION), _defineProperty$1(_defKindToExtKind, Kind.OBJECT_TYPE_DEFINITION, Kind.OBJECT_TYPE_EXTENSION), _defineProperty$1(_defKindToExtKind, Kind.INTERFACE_TYPE_DEFINITION, Kind.INTERFACE_TYPE_EXTENSION), _defineProperty$1(_defKindToExtKind, Kind.UNION_TYPE_DEFINITION, Kind.UNION_TYPE_EXTENSION), _defineProperty$1(_defKindToExtKind, Kind.ENUM_TYPE_DEFINITION, Kind.ENUM_TYPE_EXTENSION), _defineProperty$1(_defKindToExtKind, Kind.INPUT_OBJECT_TYPE_DEFINITION, Kind.INPUT_OBJECT_TYPE_EXTENSION), _defKindToExtKind);
7574
-
7575
- function typeToExtKind(type) {
7576
- if (isScalarType(type)) {
7577
- return Kind.SCALAR_TYPE_EXTENSION;
7578
- }
7579
-
7580
- if (isObjectType(type)) {
7581
- return Kind.OBJECT_TYPE_EXTENSION;
7582
- }
7583
-
7584
- if (isInterfaceType(type)) {
7585
- return Kind.INTERFACE_TYPE_EXTENSION;
7586
- }
7587
-
7588
- if (isUnionType(type)) {
7589
- return Kind.UNION_TYPE_EXTENSION;
7590
- }
7591
-
7592
- if (isEnumType(type)) {
7593
- return Kind.ENUM_TYPE_EXTENSION;
7594
- } // istanbul ignore else (See: 'https://github.com/graphql/graphql-js/issues/2618')
7595
-
7596
-
7597
- if (isInputObjectType(type)) {
7598
- return Kind.INPUT_OBJECT_TYPE_EXTENSION;
7599
- } // istanbul ignore next (Not reachable. All possible types have been considered)
7600
-
7601
-
7602
- invariant(0, 'Unexpected type: ' + inspect(type));
7603
- }
7604
-
7605
- function extensionKindToTypeName(kind) {
7606
- switch (kind) {
7607
- case Kind.SCALAR_TYPE_EXTENSION:
7608
- return 'scalar';
7609
-
7610
- case Kind.OBJECT_TYPE_EXTENSION:
7611
- return 'object';
7612
-
7613
- case Kind.INTERFACE_TYPE_EXTENSION:
7614
- return 'interface';
7615
-
7616
- case Kind.UNION_TYPE_EXTENSION:
7617
- return 'union';
7618
-
7619
- case Kind.ENUM_TYPE_EXTENSION:
7620
- return 'enum';
7621
-
7622
- case Kind.INPUT_OBJECT_TYPE_EXTENSION:
7623
- return 'input object';
7624
- } // istanbul ignore next (Not reachable. All possible types have been considered)
7625
-
7626
-
7627
- invariant(0, 'Unexpected kind: ' + inspect(kind));
7628
- }
7629
-
7630
- // Spec Section: "Executable Definitions"
7631
- /**
7632
- * @internal
7633
- */
7634
-
7635
- Object.freeze([LoneSchemaDefinitionRule, UniqueOperationTypesRule, UniqueTypeNamesRule, UniqueEnumValueNamesRule, UniqueFieldDefinitionNamesRule, UniqueDirectiveNamesRule, KnownTypeNamesRule, KnownDirectivesRule, UniqueDirectivesPerLocationRule, PossibleTypeExtensionsRule, KnownArgumentNamesOnDirectivesRule, UniqueArgumentNamesRule, UniqueInputFieldNamesRule, ProvidedRequiredArgumentsOnDirectivesRule]);
6837
+ (_defKindToExtKind = {}, _defineProperty$1(_defKindToExtKind, Kind.SCALAR_TYPE_DEFINITION, Kind.SCALAR_TYPE_EXTENSION), _defineProperty$1(_defKindToExtKind, Kind.OBJECT_TYPE_DEFINITION, Kind.OBJECT_TYPE_EXTENSION), _defineProperty$1(_defKindToExtKind, Kind.INTERFACE_TYPE_DEFINITION, Kind.INTERFACE_TYPE_EXTENSION), _defineProperty$1(_defKindToExtKind, Kind.UNION_TYPE_DEFINITION, Kind.UNION_TYPE_EXTENSION), _defineProperty$1(_defKindToExtKind, Kind.ENUM_TYPE_DEFINITION, Kind.ENUM_TYPE_EXTENSION), _defineProperty$1(_defKindToExtKind, Kind.INPUT_OBJECT_TYPE_DEFINITION, Kind.INPUT_OBJECT_TYPE_EXTENSION), _defKindToExtKind);
7636
6838
  keyMap(specifiedScalarTypes.concat(introspectionTypes), function (type) {
7637
6839
  return type.name;
7638
6840
  });
@@ -8052,6 +7254,7 @@ function deepMerge(target, ...sources) {
8052
7254
  * For full license text, see the LICENSE.txt file
8053
7255
  */
8054
7256
 
7257
+
8055
7258
  /**
8056
7259
  * Defines configuration for the module with a default value which can be overridden by the runtime environment.
8057
7260
  */
@@ -8617,7 +7820,7 @@ function assignMetadataLink(entry, metadataKey) {
8617
7820
  entry['__metadata'] = createLink$1(metadataKey);
8618
7821
  }
8619
7822
 
8620
- const VERSION$2u = "275ae22194003d1e53f548b81219c5cb";
7823
+ const VERSION$2t = "275ae22194003d1e53f548b81219c5cb";
8621
7824
  function validate$1M(obj, path = 'ListColumnRepresentation') {
8622
7825
  const v_error = (() => {
8623
7826
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -8670,7 +7873,7 @@ function validate$1M(obj, path = 'ListColumnRepresentation') {
8670
7873
  const select$30 = function ListColumnRepresentationSelect() {
8671
7874
  return {
8672
7875
  kind: 'Fragment',
8673
- version: VERSION$2u,
7876
+ version: VERSION$2t,
8674
7877
  private: [],
8675
7878
  selections: [
8676
7879
  {
@@ -8693,7 +7896,7 @@ const select$30 = function ListColumnRepresentationSelect() {
8693
7896
  };
8694
7897
  };
8695
7898
 
8696
- const VERSION$2t = "623aa9ce3a11031e35faf5671a41746e";
7899
+ const VERSION$2s = "623aa9ce3a11031e35faf5671a41746e";
8697
7900
  function validate$1L(obj, path = 'ListFilterByInfoRepresentation') {
8698
7901
  const v_error = (() => {
8699
7902
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -8732,7 +7935,7 @@ function validate$1L(obj, path = 'ListFilterByInfoRepresentation') {
8732
7935
  const select$2$ = function ListFilterByInfoRepresentationSelect() {
8733
7936
  return {
8734
7937
  kind: 'Fragment',
8735
- version: VERSION$2t,
7938
+ version: VERSION$2s,
8736
7939
  private: [],
8737
7940
  selections: [
8738
7941
  {
@@ -8756,7 +7959,7 @@ const select$2$ = function ListFilterByInfoRepresentationSelect() {
8756
7959
  };
8757
7960
  };
8758
7961
 
8759
- const VERSION$2s = "76042ff4af603b2ac0ec69fa0bd12046";
7962
+ const VERSION$2r = "76042ff4af603b2ac0ec69fa0bd12046";
8760
7963
  function validate$1K(obj, path = 'ListReferenceRepresentation') {
8761
7964
  const v_error = (() => {
8762
7965
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -8830,7 +8033,7 @@ function validate$1K(obj, path = 'ListReferenceRepresentation') {
8830
8033
  const select$2_ = function ListReferenceRepresentationSelect() {
8831
8034
  return {
8832
8035
  kind: 'Fragment',
8833
- version: VERSION$2s,
8036
+ version: VERSION$2r,
8834
8037
  private: [],
8835
8038
  selections: [
8836
8039
  {
@@ -8876,7 +8079,7 @@ function equals$13(existing, incoming) {
8876
8079
  return true;
8877
8080
  }
8878
8081
 
8879
- const VERSION$2r = "32def9b631252c12b91a8209c1f49f5a";
8082
+ const VERSION$2q = "32def9b631252c12b91a8209c1f49f5a";
8880
8083
  function validate$1J(obj, path = 'ListOrderByInfoRepresentation') {
8881
8084
  const v_error = (() => {
8882
8085
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -8924,7 +8127,7 @@ function validate$1J(obj, path = 'ListOrderByInfoRepresentation') {
8924
8127
  const select$2Z = function ListOrderByInfoRepresentationSelect() {
8925
8128
  return {
8926
8129
  kind: 'Fragment',
8927
- version: VERSION$2r,
8130
+ version: VERSION$2q,
8928
8131
  private: [],
8929
8132
  selections: [
8930
8133
  {
@@ -8943,7 +8146,7 @@ const select$2Z = function ListOrderByInfoRepresentationSelect() {
8943
8146
  };
8944
8147
  };
8945
8148
 
8946
- const VERSION$2q = "2634258f216db34315c06d759a35676d";
8149
+ const VERSION$2p = "2634258f216db34315c06d759a35676d";
8947
8150
  function validate$1I(obj, path = 'ListScopeEntityRepresentation') {
8948
8151
  const v_error = (() => {
8949
8152
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -8965,7 +8168,7 @@ function validate$1I(obj, path = 'ListScopeEntityRepresentation') {
8965
8168
  const select$2Y = function ListScopeEntityRepresentationSelect() {
8966
8169
  return {
8967
8170
  kind: 'Fragment',
8968
- version: VERSION$2q,
8171
+ version: VERSION$2p,
8969
8172
  private: [],
8970
8173
  selections: [
8971
8174
  {
@@ -8980,7 +8183,7 @@ const select$2Y = function ListScopeEntityRepresentationSelect() {
8980
8183
  };
8981
8184
  };
8982
8185
 
8983
- const VERSION$2p = "3b85c5a08d50ce328481b9f8ab56127b";
8186
+ const VERSION$2o = "3b85c5a08d50ce328481b9f8ab56127b";
8984
8187
  function validate$1H(obj, path = 'ListScopeRelatedEntityRepresentation') {
8985
8188
  const v_error = (() => {
8986
8189
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -9007,7 +8210,7 @@ function validate$1H(obj, path = 'ListScopeRelatedEntityRepresentation') {
9007
8210
  const select$2X = function ListScopeRelatedEntityRepresentationSelect() {
9008
8211
  return {
9009
8212
  kind: 'Fragment',
9010
- version: VERSION$2p,
8213
+ version: VERSION$2o,
9011
8214
  private: [],
9012
8215
  selections: [
9013
8216
  {
@@ -9026,7 +8229,7 @@ const select$2X = function ListScopeRelatedEntityRepresentationSelect() {
9026
8229
  };
9027
8230
  };
9028
8231
 
9029
- const VERSION$2o = "a51de242c746e5500a833e84dfaa2170";
8232
+ const VERSION$2n = "a51de242c746e5500a833e84dfaa2170";
9030
8233
  function validate$1G(obj, path = 'ListScopeRepresentation') {
9031
8234
  const v_error = (() => {
9032
8235
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -9108,7 +8311,7 @@ const select$2W = function ListScopeRepresentationSelect() {
9108
8311
  const { selections: ListScopeRelatedEntityRepresentation__selections, opaque: ListScopeRelatedEntityRepresentation__opaque, } = select$2X();
9109
8312
  return {
9110
8313
  kind: 'Fragment',
9111
- version: VERSION$2o,
8314
+ version: VERSION$2n,
9112
8315
  private: [],
9113
8316
  selections: [
9114
8317
  {
@@ -9135,7 +8338,7 @@ const select$2W = function ListScopeRepresentationSelect() {
9135
8338
  };
9136
8339
  };
9137
8340
 
9138
- const VERSION$2n = "6506134f4d72fdfa349fe60ef1af2413";
8341
+ const VERSION$2m = "6506134f4d72fdfa349fe60ef1af2413";
9139
8342
  function validate$1F(obj, path = 'ListUserPreferenceRepresentation') {
9140
8343
  const v_error = (() => {
9141
8344
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -9175,7 +8378,7 @@ function validate$1F(obj, path = 'ListUserPreferenceRepresentation') {
9175
8378
  const select$2V = function ListUserPreferenceRepresentationSelect() {
9176
8379
  return {
9177
8380
  kind: 'Fragment',
9178
- version: VERSION$2n,
8381
+ version: VERSION$2m,
9179
8382
  private: [],
9180
8383
  selections: [
9181
8384
  {
@@ -9193,7 +8396,7 @@ const select$2V = function ListUserPreferenceRepresentationSelect() {
9193
8396
  };
9194
8397
 
9195
8398
  const TTL$D = 900000;
9196
- const VERSION$2m = "8b55d621d80c84ec2e331abc4e12fc56";
8399
+ const VERSION$2l = "8b55d621d80c84ec2e331abc4e12fc56";
9197
8400
  function validate$1E(obj, path = 'ListInfoRepresentation') {
9198
8401
  const v_error = (() => {
9199
8402
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -9396,7 +8599,7 @@ function validate$1E(obj, path = 'ListInfoRepresentation') {
9396
8599
  return v_error === undefined ? null : v_error;
9397
8600
  }
9398
8601
  const RepresentationType$W = 'ListInfoRepresentation';
9399
- function keyBuilder$37(luvio, config) {
8602
+ function keyBuilder$36(luvio, config) {
9400
8603
  return keyPrefix + '::' + RepresentationType$W + ':' + (config.listViewApiName === null ? '' : config.listViewApiName) + ':' + config.objectApiName + ':' + config.type;
9401
8604
  }
9402
8605
  function keyBuilderFromType$A(luvio, object) {
@@ -9405,7 +8608,7 @@ function keyBuilderFromType$A(luvio, object) {
9405
8608
  objectApiName: object.listReference.objectApiName,
9406
8609
  type: object.listReference.type
9407
8610
  };
9408
- return keyBuilder$37(luvio, keyParams);
8611
+ return keyBuilder$36(luvio, keyParams);
9409
8612
  }
9410
8613
  function normalize$P(input, existing, path, luvio, store, timestamp) {
9411
8614
  return input;
@@ -9419,7 +8622,7 @@ const select$2U = function ListInfoRepresentationSelect() {
9419
8622
  const { selections: ListUserPreferenceRepresentation__selections, opaque: ListUserPreferenceRepresentation__opaque, } = select$2V();
9420
8623
  return {
9421
8624
  kind: 'Fragment',
9422
- version: VERSION$2m,
8625
+ version: VERSION$2l,
9423
8626
  private: [
9424
8627
  'eTag'
9425
8628
  ],
@@ -9515,7 +8718,7 @@ const ingest$1U = function ListInfoRepresentationIngest(input, path, luvio, stor
9515
8718
  }
9516
8719
  const key = keyBuilderFromType$A(luvio, input);
9517
8720
  const ttlToUse = TTL$D;
9518
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$P, "UiApi", VERSION$2m, RepresentationType$W, equals$12);
8721
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$P, "UiApi", VERSION$2l, RepresentationType$W, equals$12);
9519
8722
  return createLink$1(key);
9520
8723
  };
9521
8724
  function getTypeCacheKeys$1X(rootKeySet, luvio, input, fullPathFactory) {
@@ -9573,7 +8776,7 @@ function toSortedStringArray(value) {
9573
8776
  return undefined;
9574
8777
  }
9575
8778
 
9576
- const VERSION$2l = "d1e589a127fb1060c89070cdb6f500b2";
8779
+ const VERSION$2k = "d1e589a127fb1060c89070cdb6f500b2";
9577
8780
  function validate$1D(obj, path = 'RecordTypeInfoRepresentation') {
9578
8781
  const v_error = (() => {
9579
8782
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -9610,7 +8813,7 @@ function validate$1D(obj, path = 'RecordTypeInfoRepresentation') {
9610
8813
  const select$2T = function RecordTypeInfoRepresentationSelect() {
9611
8814
  return {
9612
8815
  kind: 'Fragment',
9613
- version: VERSION$2l,
8816
+ version: VERSION$2k,
9614
8817
  private: [],
9615
8818
  selections: [
9616
8819
  {
@@ -9665,7 +8868,7 @@ function equals$11(existing, incoming) {
9665
8868
  return true;
9666
8869
  }
9667
8870
 
9668
- const VERSION$2k = "195d918987a35f45e1aa4dce9a11d8c5";
8871
+ const VERSION$2j = "195d918987a35f45e1aa4dce9a11d8c5";
9669
8872
  function validate$1C(obj, path = 'FieldValueRepresentation') {
9670
8873
  const v_error = (() => {
9671
8874
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -9777,7 +8980,7 @@ function normalize$O(input, existing, path, luvio, store, timestamp) {
9777
8980
  const select$2S = function FieldValueRepresentationSelect() {
9778
8981
  return {
9779
8982
  kind: 'Fragment',
9780
- version: VERSION$2k,
8983
+ version: VERSION$2j,
9781
8984
  private: [],
9782
8985
  selections: [
9783
8986
  {
@@ -9820,7 +9023,7 @@ const ingest$1T = function FieldValueRepresentationIngest(input, path, luvio, st
9820
9023
  }
9821
9024
  const key = path.fullPath;
9822
9025
  const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
9823
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$O, "UiApi", VERSION$2k, RepresentationType$V, equals$10);
9026
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$O, "UiApi", VERSION$2j, RepresentationType$V, equals$10);
9824
9027
  return createLink$1(key);
9825
9028
  };
9826
9029
  function getTypeCacheKeys$1W(rootKeySet, luvio, input, fullPathFactory) {
@@ -9863,7 +9066,7 @@ const getTypeCacheKeys$1V = (rootKeySet, luvio, input, _fullPathFactory) => {
9863
9066
  };
9864
9067
 
9865
9068
  const TTL$C = 120000;
9866
- const VERSION$2j = "79cb5ac9f44542f683d00245fdfe500d";
9069
+ const VERSION$2i = "79cb5ac9f44542f683d00245fdfe500d";
9867
9070
  function validate$1B(obj, path = 'RecordCollectionRepresentation') {
9868
9071
  const v_error = (() => {
9869
9072
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -10047,7 +9250,7 @@ function normalize$N(input, existing, path, luvio, store, timestamp) {
10047
9250
  const select$2R = function RecordCollectionRepresentationSelect() {
10048
9251
  return {
10049
9252
  kind: 'Fragment',
10050
- version: VERSION$2j,
9253
+ version: VERSION$2i,
10051
9254
  private: [],
10052
9255
  selections: [
10053
9256
  {
@@ -10144,7 +9347,7 @@ const ingest$1S = function RecordCollectionRepresentationIngest(input, path, luv
10144
9347
  }
10145
9348
  const key = path.fullPath;
10146
9349
  const ttlToUse = TTL$C;
10147
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$N, "UiApi", VERSION$2j, RepresentationType$U, equals$$);
9350
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$N, "UiApi", VERSION$2i, RepresentationType$U, equals$$);
10148
9351
  return createLink$1(key);
10149
9352
  };
10150
9353
  function getTypeCacheKeys$1U(rootKeySet, luvio, input, fullPathFactory) {
@@ -10172,7 +9375,7 @@ const keyBuilderFromType$z = function RecordRepresentationKeyBuilderFromType(luv
10172
9375
  };
10173
9376
 
10174
9377
  const TTL$B = 30000;
10175
- const VERSION$2i = "98c5b18512e48ca8d28727549507e4ba";
9378
+ const VERSION$2h = "98c5b18512e48ca8d28727549507e4ba";
10176
9379
  function validate$1A(obj, path = 'RecordRepresentation') {
10177
9380
  const v_error = (() => {
10178
9381
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -10363,14 +9566,14 @@ function validate$1A(obj, path = 'RecordRepresentation') {
10363
9566
  return v_error === undefined ? null : v_error;
10364
9567
  }
10365
9568
  const RepresentationType$T = 'RecordRepresentation';
10366
- function keyBuilder$36(luvio, config) {
9569
+ function keyBuilder$35(luvio, config) {
10367
9570
  return keyPrefix + '::' + RepresentationType$T + ':' + config.recordId;
10368
9571
  }
10369
9572
  function keyBuilderFromType$y(luvio, object) {
10370
9573
  const keyParams = {
10371
9574
  recordId: object.id
10372
9575
  };
10373
- return keyBuilder$36(luvio, keyParams);
9576
+ return keyBuilder$35(luvio, keyParams);
10374
9577
  }
10375
9578
  function dynamicNormalize$5(ingestParams) {
10376
9579
  return function normalize_dynamic(input, existing, path, luvio, store, timestamp) {
@@ -10419,7 +9622,7 @@ const select$2Q = function RecordRepresentationSelect() {
10419
9622
  const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$2T();
10420
9623
  return {
10421
9624
  kind: 'Fragment',
10422
- version: VERSION$2i,
9625
+ version: VERSION$2h,
10423
9626
  private: [
10424
9627
  'eTag',
10425
9628
  'weakEtag'
@@ -10486,7 +9689,7 @@ const dynamicSelect$8 = function dynamicRecordRepresentationSelect(params) {
10486
9689
  const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$2T();
10487
9690
  return {
10488
9691
  kind: 'Fragment',
10489
- version: VERSION$2i,
9692
+ version: VERSION$2h,
10490
9693
  private: [
10491
9694
  'eTag',
10492
9695
  'weakEtag'
@@ -10631,7 +9834,7 @@ const notifyUpdateAvailableFactory$3 = (luvio) => {
10631
9834
  }
10632
9835
  });
10633
9836
  }
10634
- const keys = configs.map(c => keyBuilder$36(luvio, c));
9837
+ const keys = configs.map(c => keyBuilder$35(luvio, c));
10635
9838
  return luvio.notifyStoreUpdateAvailable(keys);
10636
9839
  };
10637
9840
  };
@@ -12011,7 +11214,7 @@ function createPathSelection(propertyName, fieldDefinition) {
12011
11214
  kind: 'Fragment',
12012
11215
  private: ['eTag', 'weakEtag'],
12013
11216
  selections: createRecordSelection(childFieldDefinition),
12014
- version: VERSION$2i,
11217
+ version: VERSION$2h,
12015
11218
  },
12016
11219
  };
12017
11220
  }
@@ -12021,7 +11224,7 @@ function createPathSelection(propertyName, fieldDefinition) {
12021
11224
  required: childFieldDefinition.optional === true ? false : undefined,
12022
11225
  fragment: {
12023
11226
  kind: 'Fragment',
12024
- version: VERSION$2k,
11227
+ version: VERSION$2j,
12025
11228
  private: [],
12026
11229
  selections: [DISPLAY_VALUE_SELECTION, fieldValueSelection],
12027
11230
  },
@@ -12053,7 +11256,7 @@ function createPathSelectionFromValue(fields) {
12053
11256
  kind: 'Fragment',
12054
11257
  private: [],
12055
11258
  selections: buildSelectionFromRecord(fieldValue),
12056
- version: VERSION$2i,
11259
+ version: VERSION$2h,
12057
11260
  },
12058
11261
  };
12059
11262
  }
@@ -12063,7 +11266,7 @@ function createPathSelectionFromValue(fields) {
12063
11266
  required: undefined,
12064
11267
  fragment: {
12065
11268
  kind: 'Fragment',
12066
- version: VERSION$2k,
11269
+ version: VERSION$2j,
12067
11270
  private: [],
12068
11271
  selections: [DISPLAY_VALUE_SELECTION, fieldValueSelection],
12069
11272
  },
@@ -12803,7 +12006,7 @@ function mergeRecordConflict(luvio, incoming, existing, recordConflictMap) {
12803
12006
  name: existing.apiName,
12804
12007
  children: {},
12805
12008
  };
12806
- const recordKey = keyBuilder$36(luvio, {
12009
+ const recordKey = keyBuilder$35(luvio, {
12807
12010
  recordId: incoming.id,
12808
12011
  });
12809
12012
  const trackedFieldsConfig = {
@@ -13089,7 +12292,7 @@ const createRecordIngest = (fieldsTrie, optionalFieldsTrie, recordConflictMap) =
13089
12292
  ttl: TTL$B,
13090
12293
  representationName: RepresentationType$T,
13091
12294
  namespace: keyPrefix,
13092
- version: VERSION$2i,
12295
+ version: VERSION$2h,
13093
12296
  });
13094
12297
  return createLink$1(key);
13095
12298
  };
@@ -13185,8 +12388,8 @@ const createResourceRequest$16 = function getUiApiRecordsByRecordIdCreateResourc
13185
12388
  };
13186
12389
  };
13187
12390
 
13188
- function keyBuilder$35(luvio, params) {
13189
- return keyBuilder$36(luvio, {
12391
+ function keyBuilder$34(luvio, params) {
12392
+ return keyBuilder$35(luvio, {
13190
12393
  recordId: params.urlParams.recordId
13191
12394
  });
13192
12395
  }
@@ -13253,12 +12456,12 @@ function validateAdapterConfig$15(untrustedConfig, configPropertyNames) {
13253
12456
  // used by getUiApiRecordsBatchByRecordIds#selectChildResourceParams
13254
12457
  function buildRecordSelector(luvio, recordId, fields, optionalFields) {
13255
12458
  return {
13256
- recordId: keyBuilder$36(luvio, { recordId }),
12459
+ recordId: keyBuilder$35(luvio, { recordId }),
13257
12460
  node: {
13258
12461
  kind: 'Fragment',
13259
12462
  private: ['eTag', 'weakEtag'],
13260
12463
  selections: buildSelectionFromFields(fields, optionalFields),
13261
- version: VERSION$2i,
12464
+ version: VERSION$2h,
13262
12465
  },
13263
12466
  variables: {},
13264
12467
  };
@@ -13272,7 +12475,7 @@ function buildSnapshotRefresh$5(luvio, config) {
13272
12475
  function prepareRequest$6(luvio, config) {
13273
12476
  const { recordId, fields } = config;
13274
12477
  // Should this go into the coersion logic?
13275
- const key = keyBuilder$35(luvio, createResourceParams$Z(config));
12478
+ const key = keyBuilder$34(luvio, createResourceParams$Z(config));
13276
12479
  const allTrackedFields = getTrackedFields(key, luvio.getNode(key), {
13277
12480
  maxDepth: configurationForRestAdapters.getTrackedFieldDepthOnCacheMiss(),
13278
12481
  onlyFetchLeafNodeIdAndName: configurationForRestAdapters.getTrackedFieldLeafNodeIdAndNameOnly(),
@@ -13376,17 +12579,17 @@ function isSingleBatchRecordResponse(response) {
13376
12579
  response.results.length === 1);
13377
12580
  }
13378
12581
 
13379
- const VERSION$2h = "98cce53b8d13b1883d001bbdaab24383";
12582
+ const VERSION$2g = "98cce53b8d13b1883d001bbdaab24383";
13380
12583
 
13381
- const nonCachedErrors$7 = ObjectCreate$1(null);
13382
- function ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount = 0) {
12584
+ const nonCachedErrors$8 = ObjectCreate$1(null);
12585
+ function ingestSuccessChildResourceParams$8(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount = 0) {
13383
12586
  const childSnapshotDataResponses = [];
13384
12587
  let seenRecords = new StoreKeySet();
13385
12588
  let snapshotState = 'Fulfilled';
13386
12589
  const now = Date.now();
13387
12590
  for (let index = 0, len = childResourceParamsArray.length; index < len; index += 1) {
13388
12591
  const childResourceParams = childResourceParamsArray[index];
13389
- const childKey = keyBuilder$35(luvio, childResourceParams);
12592
+ const childKey = keyBuilder$34(luvio, childResourceParams);
13390
12593
  const result = childEnvelopes[index];
13391
12594
  const { statusCode: childStatusCode, result: childBody } = result;
13392
12595
  if (childStatusCode === 200) {
@@ -13441,14 +12644,14 @@ function ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, chi
13441
12644
  }
13442
12645
  // track non-cached responses so rebuilds work properly
13443
12646
  if (childStatusCode !== 404 && childStatusCode !== 200) {
13444
- nonCachedErrors$7[childKey] = {
12647
+ nonCachedErrors$8[childKey] = {
13445
12648
  expiration: now + TTL$B,
13446
12649
  response: childBody,
13447
12650
  status: childStatusCode,
13448
12651
  };
13449
12652
  }
13450
12653
  else {
13451
- delete nonCachedErrors$7[childKey];
12654
+ delete nonCachedErrors$8[childKey];
13452
12655
  }
13453
12656
  }
13454
12657
  const childSnapshotData = {
@@ -13462,7 +12665,7 @@ function ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, chi
13462
12665
  };
13463
12666
  }
13464
12667
 
13465
- function selectChildResourceParams$7(luvio, childResources, resourceParams) {
12668
+ function selectChildResourceParams$8(luvio, childResources, resourceParams) {
13466
12669
  const envelopeBodyPath = 'result';
13467
12670
  const envelopeStatusCodePath = 'statusCode';
13468
12671
  const envelopePath = 'results';
@@ -13473,11 +12676,11 @@ function selectChildResourceParams$7(luvio, childResources, resourceParams) {
13473
12676
  read: (reader) => {
13474
12677
  // Top-level 404 lookup
13475
12678
  const compositeSnapshot = luvio.storeLookup({
13476
- recordId: keyBuilder$34(luvio, resourceParams),
12679
+ recordId: keyBuilder$33(luvio, resourceParams),
13477
12680
  node: {
13478
12681
  kind: 'Fragment',
13479
12682
  private: [],
13480
- version: VERSION$2h,
12683
+ version: VERSION$2g,
13481
12684
  },
13482
12685
  variables: {},
13483
12686
  });
@@ -13497,7 +12700,7 @@ function selectChildResourceParams$7(luvio, childResources, resourceParams) {
13497
12700
  reader.enterPath(i);
13498
12701
  reader.enterPath(envelopeBodyPath);
13499
12702
  const childResource = childResources[i];
13500
- const childKey = keyBuilder$35(luvio, childResource);
12703
+ const childKey = keyBuilder$34(luvio, childResource);
13501
12704
  const isMissingDataBeforeChildRead = reader.getIsDataMissing();
13502
12705
  const childSnapshot = reader.read(buildRecordSelector(luvio, childResource.urlParams.recordId, childResource.queryParams.fields || [], childResource.queryParams.optionalFields || []));
13503
12706
  reader.exitPath();
@@ -13543,7 +12746,7 @@ function selectChildResourceParams$7(luvio, childResources, resourceParams) {
13543
12746
  // has non-cached errors (since the top-level composite
13544
12747
  // snapshot will look like an Unfulfilled snapshot
13545
12748
  // instead of an error snapshot).
13546
- const nonCachedError = nonCachedErrors$7[childKey];
12749
+ const nonCachedError = nonCachedErrors$8[childKey];
13547
12750
  if (nonCachedError === undefined ||
13548
12751
  nonCachedError.expiration < timestamp) {
13549
12752
  reader.markMissingLink(childKey);
@@ -13581,8 +12784,8 @@ function selectChildResourceParams$7(luvio, childResources, resourceParams) {
13581
12784
  }
13582
12785
 
13583
12786
  ObjectCreate$1(null);
13584
- function createChildResourceParams$9(resourceParams) {
13585
- const childConfigs = [];
12787
+ function createChildResourceParams$c(resourceParams) {
12788
+ let childConfigs = [];
13586
12789
  for (let index = 0, len = resourceParams.urlParams.recordIds.length; index < len; index += 1) {
13587
12790
  const item = resourceParams.urlParams.recordIds[index];
13588
12791
  childConfigs.push({
@@ -13597,12 +12800,12 @@ function createChildResourceParams$9(resourceParams) {
13597
12800
  }
13598
12801
  return childConfigs;
13599
12802
  }
13600
- function keyBuilder$34(luvio, params) {
12803
+ function keyBuilder$33(luvio, params) {
13601
12804
  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 + ')';
13602
12805
  }
13603
12806
  function getResponseCacheKeys$Y(keys, luvio, resourceParams, response) {
13604
12807
  const childEnvelopes = response.results;
13605
- const childResourceParamsArray = createChildResourceParams$9(resourceParams);
12808
+ const childResourceParamsArray = createChildResourceParams$c(resourceParams);
13606
12809
  if (process.env.NODE_ENV !== 'production') {
13607
12810
  if (childResourceParamsArray.length !== childEnvelopes.length) {
13608
12811
  throw new Error('Invalid composite resource response. Expected ' + childResourceParamsArray.length + ' items, received ' + childEnvelopes.length);
@@ -13617,7 +12820,7 @@ function getResponseCacheKeys$Y(keys, luvio, resourceParams, response) {
13617
12820
  getResponseCacheKeys$Z(keys, luvio, childResourceParams, childBody);
13618
12821
  }
13619
12822
  else if (childStatusCode === 404) {
13620
- const childKey = keyBuilder$35(luvio, childResourceParams);
12823
+ const childKey = keyBuilder$34(luvio, childResourceParams);
13621
12824
  keys.set(childKey, {
13622
12825
  namespace: keyPrefix,
13623
12826
  representationName: RepresentationType$T,
@@ -13627,7 +12830,7 @@ function getResponseCacheKeys$Y(keys, luvio, resourceParams, response) {
13627
12830
  }
13628
12831
  }
13629
12832
  function ingestError$L(luvio, params, error, snapshotRefresh) {
13630
- const key = keyBuilder$34(luvio, params);
12833
+ const key = keyBuilder$33(luvio, params);
13631
12834
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
13632
12835
  luvio.storeIngestError(key, errorSnapshot);
13633
12836
  return errorSnapshot;
@@ -13672,7 +12875,7 @@ function createResourceParams$Y(config) {
13672
12875
  };
13673
12876
  }
13674
12877
 
13675
- function createChildResourceParams$8(config) {
12878
+ function createChildResourceParams$b(config) {
13676
12879
  const childResources = [];
13677
12880
  const { records } = config;
13678
12881
  for (let outerIdx = 0, numOfRecordBatches = records.length; outerIdx < numOfRecordBatches; outerIdx += 1) {
@@ -13699,14 +12902,14 @@ function createChildResourceParams$8(config) {
13699
12902
  }
13700
12903
 
13701
12904
  function adapterFragment$J(luvio, config) {
13702
- const childResources = createChildResourceParams$8(config);
12905
+ const childResources = createChildResourceParams$b(config);
13703
12906
  const resourceParams = createResourceParams$Y(config);
13704
- return selectChildResourceParams$7(luvio, childResources, resourceParams);
12907
+ return selectChildResourceParams$8(luvio, childResources, resourceParams);
13705
12908
  }
13706
12909
 
13707
12910
  function onFetchResponseSuccess$N(luvio, config, resourceParams, response, serverRequestCount = 0) {
13708
12911
  const childEnvelopes = response.body.results;
13709
- const childResourceParamsArray = createChildResourceParams$8(config);
12912
+ const childResourceParamsArray = createChildResourceParams$b(config);
13710
12913
  if (process.env.NODE_ENV !== 'production') {
13711
12914
  if (childResourceParamsArray.length !== childEnvelopes.length) {
13712
12915
  throw new Error('Invalid composite resource response. Expected ' +
@@ -13716,8 +12919,8 @@ function onFetchResponseSuccess$N(luvio, config, resourceParams, response, serve
13716
12919
  }
13717
12920
  }
13718
12921
  const snapshotStateFulfilled = 'Fulfilled';
13719
- const key = keyBuilder$34(luvio, resourceParams);
13720
- const { childSnapshotData, seenRecords } = ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount);
12922
+ const key = keyBuilder$33(luvio, resourceParams);
12923
+ const { childSnapshotData, seenRecords } = ingestSuccessChildResourceParams$8(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount);
13721
12924
  const snapshot = {
13722
12925
  recordId: key,
13723
12926
  data: childSnapshotData,
@@ -14018,7 +13221,7 @@ function revertPaginationOptimization(variables) {
14018
13221
  }
14019
13222
 
14020
13223
  const TTL$A = 30000;
14021
- const VERSION$2g = "614ef19823027c07fa6deb9a149619d2";
13224
+ const VERSION$2f = "614ef19823027c07fa6deb9a149619d2";
14022
13225
  function validate$1z(obj, path = 'ListRecordCollectionRepresentation') {
14023
13226
  const v_error = (() => {
14024
13227
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -14255,7 +13458,7 @@ function validate$1z(obj, path = 'ListRecordCollectionRepresentation') {
14255
13458
  return v_error === undefined ? null : v_error;
14256
13459
  }
14257
13460
  const RepresentationType$S = 'ListRecordCollectionRepresentation';
14258
- function keyBuilder$33(luvio, config) {
13461
+ function keyBuilder$32(luvio, config) {
14259
13462
  return keyPrefix + '::' + RepresentationType$S + ':' + (config.listViewId === null ? '' : config.listViewId) + ':' + (config.sortBy === null ? '' : '[' + config.sortBy.join(',') + ']') + ':' + config.objectApiName + ':' + (config.listViewApiName === null ? '' : config.listViewApiName);
14260
13463
  }
14261
13464
  function keyBuilderFromType$x(luvio, object) {
@@ -14265,10 +13468,10 @@ function keyBuilderFromType$x(luvio, object) {
14265
13468
  objectApiName: object.listReference.objectApiName,
14266
13469
  listViewApiName: object.listReference.listViewApiName
14267
13470
  };
14268
- return keyBuilder$33(luvio, keyParams);
13471
+ return keyBuilder$32(luvio, keyParams);
14269
13472
  }
14270
13473
  function paginationKeyBuilder(luvio, config) {
14271
- return keyBuilder$33(luvio, config) + '__pagination';
13474
+ return keyBuilder$32(luvio, config) + '__pagination';
14272
13475
  }
14273
13476
  function normalize$L(input, existing, path, luvio, store, timestamp) {
14274
13477
  const input_records = input.records;
@@ -14295,7 +13498,7 @@ const select$2P = function ListRecordCollectionRepresentationSelect(paginationPa
14295
13498
  kind: 'Fragment',
14296
13499
  reader: true,
14297
13500
  synthetic: false,
14298
- version: VERSION$2g,
13501
+ version: VERSION$2f,
14299
13502
  read: (source, reader) => {
14300
13503
  const sink = {};
14301
13504
  if (paginationParams === undefined) {
@@ -14341,7 +13544,7 @@ const select$2P = function ListRecordCollectionRepresentationSelect(paginationPa
14341
13544
  reader.readScalar('count', metadataProperties, sink);
14342
13545
  reader.exitPath();
14343
13546
  reader.enterPath('fields');
14344
- reader.readScalarPlural('fields', source, sink);
13547
+ reader.readScalarPlural('fields', source, sink, true);
14345
13548
  reader.exitPath();
14346
13549
  reader.enterPath('listInfoETag');
14347
13550
  reader.readScalar('listInfoETag', source, sink);
@@ -14354,14 +13557,14 @@ const select$2P = function ListRecordCollectionRepresentationSelect(paginationPa
14354
13557
  }, source, sink);
14355
13558
  reader.exitPath();
14356
13559
  reader.enterPath('optionalFields');
14357
- reader.readScalarPlural('optionalFields', source, sink);
13560
+ reader.readScalarPlural('optionalFields', source, sink, true);
14358
13561
  reader.exitPath();
14359
13562
  reader.enterPath('sortBy');
14360
13563
  if (source['sortBy'] === null) {
14361
13564
  reader.readScalar('sortBy', source, sink);
14362
13565
  }
14363
13566
  else {
14364
- reader.readScalarPlural('sortBy', source, sink);
13567
+ reader.readScalarPlural('sortBy', source, sink, true);
14365
13568
  }
14366
13569
  reader.exitPath();
14367
13570
  return sink;
@@ -14409,7 +13612,7 @@ const dynamicSelect$7 = function dynamicListRecordCollectionRepresentationSelect
14409
13612
  kind: 'Fragment',
14410
13613
  reader: true,
14411
13614
  synthetic: false,
14412
- version: VERSION$2g,
13615
+ version: VERSION$2f,
14413
13616
  read: (source, reader) => {
14414
13617
  const sink = {};
14415
13618
  if (paginationParams === undefined) {
@@ -14451,7 +13654,7 @@ const dynamicSelect$7 = function dynamicListRecordCollectionRepresentationSelect
14451
13654
  reader.readScalar('count', metadataProperties, sink);
14452
13655
  reader.exitPath();
14453
13656
  reader.enterPath('fields');
14454
- reader.readScalarPlural('fields', source, sink);
13657
+ reader.readScalarPlural('fields', source, sink, true);
14455
13658
  reader.exitPath();
14456
13659
  reader.enterPath('listInfoETag');
14457
13660
  reader.readScalar('listInfoETag', source, sink);
@@ -14464,14 +13667,14 @@ const dynamicSelect$7 = function dynamicListRecordCollectionRepresentationSelect
14464
13667
  }, source, sink);
14465
13668
  reader.exitPath();
14466
13669
  reader.enterPath('optionalFields');
14467
- reader.readScalarPlural('optionalFields', source, sink);
13670
+ reader.readScalarPlural('optionalFields', source, sink, true);
14468
13671
  reader.exitPath();
14469
13672
  reader.enterPath('sortBy');
14470
13673
  if (source['sortBy'] === null) {
14471
13674
  reader.readScalar('sortBy', source, sink);
14472
13675
  }
14473
13676
  else {
14474
- reader.readScalarPlural('sortBy', source, sink);
13677
+ reader.readScalarPlural('sortBy', source, sink, true);
14475
13678
  }
14476
13679
  reader.exitPath();
14477
13680
  return sink;
@@ -14646,7 +13849,7 @@ const ingest$1Q = function ListRecordCollectionRepresentationIngest(input, path,
14646
13849
  const storeMetadataParams = {
14647
13850
  ttl: ttlToUse,
14648
13851
  namespace: "UiApi",
14649
- version: VERSION$2g,
13852
+ version: VERSION$2f,
14650
13853
  representationName: RepresentationType$S,
14651
13854
  };
14652
13855
  luvio.publishStoreMetadata(key, storeMetadataParams);
@@ -14672,7 +13875,7 @@ function getTypeCacheKeys$1S(rootKeySet, luvio, input, fullPathFactory) {
14672
13875
  }
14673
13876
  }
14674
13877
 
14675
- const VERSION$2f = "cf8d2eb042188974da26ffe6618cfd07";
13878
+ const VERSION$2e = "cf8d2eb042188974da26ffe6618cfd07";
14676
13879
  function validate$1y(obj, path = 'ListUiRepresentation') {
14677
13880
  const v_error = (() => {
14678
13881
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -14697,7 +13900,7 @@ function validate$1y(obj, path = 'ListUiRepresentation') {
14697
13900
  return v_error === undefined ? null : v_error;
14698
13901
  }
14699
13902
  const RepresentationType$R = 'ListUiRepresentation';
14700
- function keyBuilder$32(luvio, config) {
13903
+ function keyBuilder$31(luvio, config) {
14701
13904
  return keyPrefix + '::' + RepresentationType$R + ':' + (config.listViewApiName === null ? '' : config.listViewApiName) + ':' + config.objectApiName + ':' + config.type + ':' + (config.sortBy === null ? '' : '[' + config.sortBy.join(',') + ']');
14702
13905
  }
14703
13906
  function keyBuilderFromType$w(luvio, object) {
@@ -14707,7 +13910,7 @@ function keyBuilderFromType$w(luvio, object) {
14707
13910
  type: object.info.listReference.type,
14708
13911
  sortBy: object.records.sortBy
14709
13912
  };
14710
- return keyBuilder$32(luvio, keyParams);
13913
+ return keyBuilder$31(luvio, keyParams);
14711
13914
  }
14712
13915
  function normalize$K(input, existing, path, luvio, store, timestamp) {
14713
13916
  const input_info = input.info;
@@ -14749,7 +13952,7 @@ const dynamicSelect$6 = function dynamicListUiRepresentationSelect(params, pagin
14749
13952
  } : params.records;
14750
13953
  return {
14751
13954
  kind: 'Fragment',
14752
- version: VERSION$2f,
13955
+ version: VERSION$2e,
14753
13956
  private: [
14754
13957
  'eTag'
14755
13958
  ],
@@ -14786,7 +13989,7 @@ const ingest$1P = function ListUiRepresentationIngest(input, path, luvio, store,
14786
13989
  }
14787
13990
  const key = keyBuilderFromType$w(luvio, input);
14788
13991
  const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
14789
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$K, "UiApi", VERSION$2f, RepresentationType$R, equals$Y);
13992
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$K, "UiApi", VERSION$2e, RepresentationType$R, equals$Y);
14790
13993
  return createLink$1(key);
14791
13994
  };
14792
13995
  function getTypeCacheKeys$1R(rootKeySet, luvio, input, fullPathFactory) {
@@ -14980,14 +14183,14 @@ const LIST_INFO_SELECTIONS_ETAG = [
14980
14183
  * @param luvio Luvio
14981
14184
  */
14982
14185
  function getListInfo(luvio, listRef, storeLookup) {
14983
- const key = keyBuilder$37(luvio, { ...listRef });
14186
+ const key = keyBuilder$36(luvio, { ...listRef });
14984
14187
  return storeLookup({
14985
14188
  recordId: key,
14986
14189
  node: {
14987
14190
  kind: 'Fragment',
14988
14191
  selections: LIST_INFO_SELECTIONS_ETAG,
14989
14192
  private: [],
14990
- version: VERSION$2m,
14193
+ version: VERSION$2l,
14991
14194
  },
14992
14195
  variables: {},
14993
14196
  });
@@ -15107,7 +14310,7 @@ function listFields(luvio, { fields = [], optionalFields = [], sortBy, }, listIn
15107
14310
  addDefaultFields(qualifiedField, defaultFields_);
15108
14311
  }
15109
14312
  }
15110
- const key = keyBuilder$33(luvio, {
14313
+ const key = keyBuilder$32(luvio, {
15111
14314
  listViewId: listInfo.eTag,
15112
14315
  sortBy: sortBy || null,
15113
14316
  objectApiName: listInfo.listReference.objectApiName,
@@ -15152,7 +14355,7 @@ let context$2;
15152
14355
  function setContext$2(adapterContext) {
15153
14356
  context$2 = adapterContext;
15154
14357
  }
15155
- function keyBuilder$2Z(luvio, params) {
14358
+ function keyBuilder$2Y(luvio, params) {
15156
14359
  const query = {
15157
14360
  objectApiName: params.urlParams.objectApiName,
15158
14361
  listViewApiName: params.urlParams.listViewApiName,
@@ -15163,7 +14366,7 @@ function keyBuilder$2Z(luvio, params) {
15163
14366
  // Check and use any default values returned from the server (i.e. sortBy)
15164
14367
  const config = { ...params.urlParams, ...params.queryParams };
15165
14368
  const defaults = getServerDefaults(config, context$2);
15166
- return keyBuilder$33(luvio, {
14369
+ return keyBuilder$32(luvio, {
15167
14370
  objectApiName: listReference.objectApiName,
15168
14371
  listViewApiName: listReference.listViewApiName,
15169
14372
  listViewId: listReference.id,
@@ -15172,7 +14375,7 @@ function keyBuilder$2Z(luvio, params) {
15172
14375
  }
15173
14376
  // If there are no matching entries in the store, then we haven't fetched any data for this list view yet.
15174
14377
  // Assuming that listViewId is empty and continue on
15175
- return keyBuilder$33(luvio, {
14378
+ return keyBuilder$32(luvio, {
15176
14379
  objectApiName: params.urlParams.objectApiName,
15177
14380
  listViewApiName: params.urlParams.listViewApiName,
15178
14381
  listViewId: '',
@@ -15190,14 +14393,14 @@ function select$2L(luvio, params) {
15190
14393
  kind: 'Fragment',
15191
14394
  private: ['eTag', 'weakEtag'],
15192
14395
  selections: buildSelectionFromFields(fields, optionalFields),
15193
- version: VERSION$2i
14396
+ version: VERSION$2h
15194
14397
  },
15195
14398
  },
15196
14399
  }, createPaginationParams$3(params));
15197
14400
  }
15198
14401
  function ingestSuccess$M(luvio, resourceParams, response, snapshotRefresh) {
15199
14402
  const { body } = response;
15200
- const key = keyBuilder$2Z(luvio, resourceParams);
14403
+ const key = keyBuilder$2Y(luvio, resourceParams);
15201
14404
  luvio.storeIngest(key, ingest$1Q, body);
15202
14405
  const optionalFields = resourceParams.queryParams.optionalFields;
15203
14406
  if (optionalFields && optionalFields.length > 0) {
@@ -15234,12 +14437,12 @@ function getResponseCacheKeys$V(storeKeyMap, luvio, resourceParams, response) {
15234
14437
  getTypeCacheKeys$1S(storeKeyMap, luvio, response);
15235
14438
  }
15236
14439
  function ingestError$I(luvio, params, error, snapshotRefresh) {
15237
- const key = keyBuilder$2Z(luvio, params);
14440
+ const key = keyBuilder$2Y(luvio, params);
15238
14441
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
15239
14442
  const storeMetadataParams = {
15240
14443
  ttl: TTL$A,
15241
14444
  namespace: keyPrefix,
15242
- version: VERSION$2g,
14445
+ version: VERSION$2f,
15243
14446
  representationName: RepresentationType$S
15244
14447
  };
15245
14448
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -15312,7 +14515,7 @@ function isErrorSnapshot(snapshot) {
15312
14515
  return snapshot.state === 'Error';
15313
14516
  }
15314
14517
 
15315
- const VERSION$2e = "3529c5f7d0eb2206c90a52c6d9f721d4";
14518
+ const VERSION$2d = "3529c5f7d0eb2206c90a52c6d9f721d4";
15316
14519
  function validate$1x(obj, path = 'ListViewSummaryRepresentation') {
15317
14520
  const v_error = (() => {
15318
14521
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -15363,14 +14566,14 @@ function validate$1x(obj, path = 'ListViewSummaryRepresentation') {
15363
14566
  return v_error === undefined ? null : v_error;
15364
14567
  }
15365
14568
  const RepresentationType$Q = 'ListViewSummaryRepresentation';
15366
- function keyBuilder$2Y(luvio, config) {
14569
+ function keyBuilder$2X(luvio, config) {
15367
14570
  return keyPrefix + '::' + RepresentationType$Q + ':' + (config.id === null ? '' : config.id);
15368
14571
  }
15369
14572
  function keyBuilderFromType$v(luvio, object) {
15370
14573
  const keyParams = {
15371
14574
  id: object.id
15372
14575
  };
15373
- return keyBuilder$2Y(luvio, keyParams);
14576
+ return keyBuilder$2X(luvio, keyParams);
15374
14577
  }
15375
14578
  function normalize$J(input, existing, path, luvio, store, timestamp) {
15376
14579
  return input;
@@ -15378,7 +14581,7 @@ function normalize$J(input, existing, path, luvio, store, timestamp) {
15378
14581
  const select$2K = function ListViewSummaryRepresentationSelect() {
15379
14582
  return {
15380
14583
  kind: 'Fragment',
15381
- version: VERSION$2e,
14584
+ version: VERSION$2d,
15382
14585
  private: [],
15383
14586
  selections: [
15384
14587
  {
@@ -15432,7 +14635,7 @@ const ingest$1O = function ListViewSummaryRepresentationIngest(input, path, luvi
15432
14635
  }
15433
14636
  const key = keyBuilderFromType$v(luvio, input);
15434
14637
  const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
15435
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$J, "UiApi", VERSION$2e, RepresentationType$Q, equals$X);
14638
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$J, "UiApi", VERSION$2d, RepresentationType$Q, equals$X);
15436
14639
  return createLink$1(key);
15437
14640
  };
15438
14641
  function getTypeCacheKeys$1Q(rootKeySet, luvio, input, fullPathFactory) {
@@ -15445,7 +14648,7 @@ function getTypeCacheKeys$1Q(rootKeySet, luvio, input, fullPathFactory) {
15445
14648
  });
15446
14649
  }
15447
14650
 
15448
- const VERSION$2d = "f4c79fe066da3558499d5ee88c72abcd";
14651
+ const VERSION$2c = "f4c79fe066da3558499d5ee88c72abcd";
15449
14652
  function validate$1w(obj, path = 'ListViewSummaryCollectionRepresentation') {
15450
14653
  const v_error = (() => {
15451
14654
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -15632,7 +14835,7 @@ function validate$1w(obj, path = 'ListViewSummaryCollectionRepresentation') {
15632
14835
  return v_error === undefined ? null : v_error;
15633
14836
  }
15634
14837
  const RepresentationType$P = 'ListViewSummaryCollectionRepresentation';
15635
- function keyBuilder$2X(luvio, config) {
14838
+ function keyBuilder$2W(luvio, config) {
15636
14839
  return keyPrefix + '::' + RepresentationType$P + ':' + config.objectApiName + ':' + (config.queryString === null ? '' : config.queryString) + ':' + config.recentListsOnly;
15637
14840
  }
15638
14841
  function keyBuilderFromType$u(luvio, object) {
@@ -15641,7 +14844,7 @@ function keyBuilderFromType$u(luvio, object) {
15641
14844
  queryString: object.queryString,
15642
14845
  recentListsOnly: object.recentListsOnly
15643
14846
  };
15644
- return keyBuilder$2X(luvio, keyParams);
14847
+ return keyBuilder$2W(luvio, keyParams);
15645
14848
  }
15646
14849
  function normalize$I(input, existing, path, luvio, store, timestamp) {
15647
14850
  const input_lists = input.lists;
@@ -15667,7 +14870,7 @@ const select$2J = function ListViewSummaryCollectionRepresentationSelect(paginat
15667
14870
  kind: 'Fragment',
15668
14871
  reader: true,
15669
14872
  synthetic: false,
15670
- version: VERSION$2d,
14873
+ version: VERSION$2c,
15671
14874
  read: (source, reader) => {
15672
14875
  const sink = {};
15673
14876
  if (paginationParams === undefined) {
@@ -15896,7 +15099,7 @@ const ingest$1N = function ListViewSummaryCollectionRepresentationIngest(input,
15896
15099
  const storeMetadataParams = {
15897
15100
  ttl: ttlToUse,
15898
15101
  namespace: "UiApi",
15899
- version: VERSION$2d,
15102
+ version: VERSION$2c,
15900
15103
  representationName: RepresentationType$P,
15901
15104
  };
15902
15105
  luvio.publishStoreMetadata(key, storeMetadataParams);
@@ -15933,8 +15136,8 @@ function select$2I(luvio, params) {
15933
15136
  const paginationParams = createPaginationParams$2(params);
15934
15137
  return select$2J(paginationParams);
15935
15138
  }
15936
- function keyBuilder$2W(luvio, params) {
15937
- return keyBuilder$2X(luvio, {
15139
+ function keyBuilder$2V(luvio, params) {
15140
+ return keyBuilder$2W(luvio, {
15938
15141
  objectApiName: params.urlParams.objectApiName,
15939
15142
  queryString: params.queryParams.q || null,
15940
15143
  recentListsOnly: params.queryParams.recentListsOnly || false
@@ -15945,7 +15148,7 @@ function getResponseCacheKeys$U(storeKeyMap, luvio, resourceParams, response) {
15945
15148
  }
15946
15149
  function ingestSuccess$L(luvio, resourceParams, response, snapshotRefresh) {
15947
15150
  const { body } = response;
15948
- const key = keyBuilder$2W(luvio, resourceParams);
15151
+ const key = keyBuilder$2V(luvio, resourceParams);
15949
15152
  luvio.storeIngest(key, ingest$1N, body);
15950
15153
  const snapshot = luvio.storeLookup({
15951
15154
  recordId: key,
@@ -15961,7 +15164,7 @@ function ingestSuccess$L(luvio, resourceParams, response, snapshotRefresh) {
15961
15164
  return snapshot;
15962
15165
  }
15963
15166
  function ingestError$H(luvio, params, error, snapshotRefresh) {
15964
- const key = keyBuilder$2W(luvio, params);
15167
+ const key = keyBuilder$2V(luvio, params);
15965
15168
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
15966
15169
  luvio.storeIngestError(key, errorSnapshot);
15967
15170
  return errorSnapshot;
@@ -15990,9 +15193,9 @@ const getListViewSummaryCollection_ConfigPropertyMetadata = [
15990
15193
  ];
15991
15194
  const getListViewSummaryCollection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$R, getListViewSummaryCollection_ConfigPropertyMetadata);
15992
15195
  const createResourceParams$V = /*#__PURE__*/ createResourceParams$l(getListViewSummaryCollection_ConfigPropertyMetadata);
15993
- function keyBuilder$2V(luvio, config) {
15196
+ function keyBuilder$2U(luvio, config) {
15994
15197
  const resourceParams = createResourceParams$V(config);
15995
- return keyBuilder$2W(luvio, resourceParams);
15198
+ return keyBuilder$2V(luvio, resourceParams);
15996
15199
  }
15997
15200
  function typeCheckConfig$$(untrustedConfig) {
15998
15201
  const config = {};
@@ -16078,12 +15281,12 @@ function getCachedItemsNumber$2(cacheSnapshot) {
16078
15281
  return items.length;
16079
15282
  }
16080
15283
  function getPaginationMetadata$2(luvio, resourceParams) {
16081
- const key = keyBuilder$2W(luvio, resourceParams);
15284
+ const key = keyBuilder$2V(luvio, resourceParams);
16082
15285
  const selector = {
16083
15286
  recordId: key,
16084
15287
  node: {
16085
15288
  kind: 'Fragment',
16086
- version: VERSION$2d,
15289
+ version: VERSION$2c,
16087
15290
  private: [],
16088
15291
  selections: [
16089
15292
  {
@@ -16126,7 +15329,7 @@ function buildNetworkSnapshotCachePolicy$N(context, coercedAdapterRequestContext
16126
15329
  function buildCachedSnapshotCachePolicy$N(context, storeLookup) {
16127
15330
  const { luvio, config } = context;
16128
15331
  const selector = {
16129
- recordId: keyBuilder$2V(luvio, config),
15332
+ recordId: keyBuilder$2U(luvio, config),
16130
15333
  node: adapterFragment$G(luvio, config),
16131
15334
  variables: {},
16132
15335
  };
@@ -16156,8 +15359,8 @@ function createPaginationParams$1(params) {
16156
15359
  pageSize: queryParams.pageSize === undefined ? 50 : queryParams.pageSize
16157
15360
  };
16158
15361
  }
16159
- function keyBuilder$2U(luvio, params) {
16160
- return keyBuilder$32(luvio, {
15362
+ function keyBuilder$2T(luvio, params) {
15363
+ return keyBuilder$31(luvio, {
16161
15364
  listViewApiName: null,
16162
15365
  objectApiName: params.urlParams.objectApiName,
16163
15366
  type: "mru",
@@ -16273,7 +15476,7 @@ function buildListUiFragment$1(config, fields) {
16273
15476
  kind: 'Fragment',
16274
15477
  private: ['eTag', 'weakEtag'],
16275
15478
  selections: buildSelectionFromFields(...fields.getRecordSelectionFieldSets()),
16276
- version: VERSION$2i,
15479
+ version: VERSION$2h,
16277
15480
  },
16278
15481
  },
16279
15482
  };
@@ -16296,7 +15499,7 @@ function buildSnapshotRefresh_getMruListUi(luvio, config) {
16296
15499
  function onResourceSuccess_getMruListUi(luvio, config, response) {
16297
15500
  const { body } = response;
16298
15501
  const listInfo = body.info;
16299
- const listUiKey = keyBuilder$32(luvio, {
15502
+ const listUiKey = keyBuilder$31(luvio, {
16300
15503
  ...listInfo.listReference,
16301
15504
  sortBy: body.records.sortBy,
16302
15505
  });
@@ -16320,7 +15523,7 @@ function buildCachedSnapshot$7(luvio, storeLookup, config, listInfo, fields) {
16320
15523
  const listFields_ = fields || listFields(luvio, config, listInfo);
16321
15524
  const resourceParams = createResourceParams$U(config);
16322
15525
  const selector = {
16323
- recordId: keyBuilder$2U(luvio, resourceParams),
15526
+ recordId: keyBuilder$2T(luvio, resourceParams),
16324
15527
  node: buildListUiFragment$1(config, listFields_),
16325
15528
  variables: {},
16326
15529
  };
@@ -16415,7 +15618,7 @@ function onResourceSuccess_getMruListRecords(luvio, config, listInfo, response)
16415
15618
  const { body } = response;
16416
15619
  const { listInfoETag } = body;
16417
15620
  const fields = listFields(luvio, config, listInfo).processRecords(body.records);
16418
- luvio.storeIngest(keyBuilder$33(luvio, {
15621
+ luvio.storeIngest(keyBuilder$32(luvio, {
16419
15622
  listViewId: listInfoETag,
16420
15623
  sortBy: body.sortBy,
16421
15624
  objectApiName: listInfo.listReference.objectApiName,
@@ -16426,7 +15629,7 @@ function onResourceSuccess_getMruListRecords(luvio, config, listInfo, response)
16426
15629
  }
16427
15630
  function onResourceError_getMruListRecords(luvio, config, listInfo, err) {
16428
15631
  const errorSnapshot = luvio.errorSnapshot(err, buildSnapshotRefresh_getMruListUi(luvio, config));
16429
- luvio.storeIngestError(keyBuilder$32(luvio, {
15632
+ luvio.storeIngestError(keyBuilder$31(luvio, {
16430
15633
  ...listInfo.listReference,
16431
15634
  sortBy: config.sortBy === undefined ? null : config.sortBy,
16432
15635
  }), errorSnapshot);
@@ -16583,7 +15786,7 @@ function buildListUiFragment(config, context, fields) {
16583
15786
  kind: 'Fragment',
16584
15787
  private: ['eTag', 'weakEtag'],
16585
15788
  selections: buildSelectionFromFields(...fields.getRecordSelectionFieldSets()),
16586
- version: VERSION$2i,
15789
+ version: VERSION$2h,
16587
15790
  },
16588
15791
  },
16589
15792
  };
@@ -16598,7 +15801,7 @@ function buildListUiFragment(config, context, fields) {
16598
15801
  return dynamicSelect$6(listRecordCollectionSelectParams, paginationParams);
16599
15802
  }
16600
15803
  function buildCachedSnapshot$6(luvio, storeLookup, context, config, listInfo, fields) {
16601
- const listUiKey = keyBuilder$32(luvio, {
15804
+ const listUiKey = keyBuilder$31(luvio, {
16602
15805
  ...listInfo.listReference,
16603
15806
  sortBy: getSortBy(config, context),
16604
15807
  });
@@ -16650,7 +15853,7 @@ function prepareRequest_getListUi(config) {
16650
15853
  }
16651
15854
  function onResourceSuccess_getListUi(luvio, context, config, response) {
16652
15855
  const { body } = response, listInfo = body.info, { listReference } = listInfo;
16653
- const listUiKey = keyBuilder$32(luvio, {
15856
+ const listUiKey = keyBuilder$31(luvio, {
16654
15857
  ...listReference,
16655
15858
  sortBy: body.records.sortBy,
16656
15859
  });
@@ -16778,7 +15981,7 @@ function onResourceSuccess_getListRecords(luvio, context, config, listInfo, resp
16778
15981
  const { body } = response;
16779
15982
  const { listInfoETag } = body;
16780
15983
  const fields = listFields(luvio, config, listInfo).processRecords(body.records);
16781
- luvio.storeIngest(keyBuilder$33(luvio, {
15984
+ luvio.storeIngest(keyBuilder$32(luvio, {
16782
15985
  listViewId: listInfoETag,
16783
15986
  sortBy: body.sortBy,
16784
15987
  objectApiName: listInfo.listReference.objectApiName,
@@ -16789,7 +15992,7 @@ function onResourceSuccess_getListRecords(luvio, context, config, listInfo, resp
16789
15992
  }
16790
15993
  function onResourceError_getListRecords(luvio, context, config, listInfo, err) {
16791
15994
  const errorSnapshot = luvio.errorSnapshot(err);
16792
- luvio.storeIngestError(keyBuilder$32(luvio, {
15995
+ luvio.storeIngestError(keyBuilder$31(luvio, {
16793
15996
  ...listInfo.listReference,
16794
15997
  sortBy: getSortBy(config, context),
16795
15998
  }), errorSnapshot);
@@ -17459,7 +16662,7 @@ function validate$1r(obj, path = 'ThemeInfoRepresentation') {
17459
16662
  }
17460
16663
 
17461
16664
  const TTL$z = 900000;
17462
- const VERSION$2c = "ec9370a0cd56f4769fe9ec5cd942ff30";
16665
+ const VERSION$2b = "ec9370a0cd56f4769fe9ec5cd942ff30";
17463
16666
  function validate$1q(obj, path = 'ObjectInfoRepresentation') {
17464
16667
  const v_error = (() => {
17465
16668
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -17742,14 +16945,14 @@ function validate$1q(obj, path = 'ObjectInfoRepresentation') {
17742
16945
  return v_error === undefined ? null : v_error;
17743
16946
  }
17744
16947
  const RepresentationType$O = 'ObjectInfoRepresentation';
17745
- function keyBuilder$2T(luvio, config) {
16948
+ function keyBuilder$2S(luvio, config) {
17746
16949
  return keyPrefix + '::' + RepresentationType$O + ':' + config.apiName;
17747
16950
  }
17748
16951
  function keyBuilderFromType$t(luvio, object) {
17749
16952
  const keyParams = {
17750
16953
  apiName: object.apiName
17751
16954
  };
17752
- return keyBuilder$2T(luvio, keyParams);
16955
+ return keyBuilder$2S(luvio, keyParams);
17753
16956
  }
17754
16957
  function normalize$H(input, existing, path, luvio, store, timestamp) {
17755
16958
  return input;
@@ -17757,7 +16960,7 @@ function normalize$H(input, existing, path, luvio, store, timestamp) {
17757
16960
  const select$2H = function ObjectInfoRepresentationSelect() {
17758
16961
  return {
17759
16962
  kind: 'Fragment',
17760
- version: VERSION$2c,
16963
+ version: VERSION$2b,
17761
16964
  private: [
17762
16965
  'eTag'
17763
16966
  ],
@@ -17874,7 +17077,7 @@ const ingest$1M = function ObjectInfoRepresentationIngest(input, path, luvio, st
17874
17077
  }
17875
17078
  const key = keyBuilderFromType$t(luvio, input);
17876
17079
  const ttlToUse = TTL$z;
17877
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$H, "UiApi", VERSION$2c, RepresentationType$O, equals$V);
17080
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$H, "UiApi", VERSION$2b, RepresentationType$O, equals$V);
17878
17081
  return createLink$1(key);
17879
17082
  };
17880
17083
  function getTypeCacheKeys$1O(rootKeySet, luvio, input, fullPathFactory) {
@@ -17890,8 +17093,8 @@ function getTypeCacheKeys$1O(rootKeySet, luvio, input, fullPathFactory) {
17890
17093
  function select$2G(luvio, params) {
17891
17094
  return select$2H();
17892
17095
  }
17893
- function keyBuilder$2S(luvio, params) {
17894
- return keyBuilder$2T(luvio, {
17096
+ function keyBuilder$2R(luvio, params) {
17097
+ return keyBuilder$2S(luvio, {
17895
17098
  apiName: params.urlParams.objectApiName
17896
17099
  });
17897
17100
  }
@@ -17900,7 +17103,7 @@ function getResponseCacheKeys$T(storeKeyMap, luvio, resourceParams, response) {
17900
17103
  }
17901
17104
  function ingestSuccess$K(luvio, resourceParams, response, snapshotRefresh) {
17902
17105
  const { body } = response;
17903
- const key = keyBuilder$2S(luvio, resourceParams);
17106
+ const key = keyBuilder$2R(luvio, resourceParams);
17904
17107
  luvio.storeIngest(key, ingest$1M, body);
17905
17108
  const snapshot = luvio.storeLookup({
17906
17109
  recordId: key,
@@ -17916,12 +17119,12 @@ function ingestSuccess$K(luvio, resourceParams, response, snapshotRefresh) {
17916
17119
  return snapshot;
17917
17120
  }
17918
17121
  function ingestError$G(luvio, params, error, snapshotRefresh) {
17919
- const key = keyBuilder$2S(luvio, params);
17122
+ const key = keyBuilder$2R(luvio, params);
17920
17123
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
17921
17124
  const storeMetadataParams = {
17922
17125
  ttl: TTL$z,
17923
17126
  namespace: keyPrefix,
17924
- version: VERSION$2c,
17127
+ version: VERSION$2b,
17925
17128
  representationName: RepresentationType$O
17926
17129
  };
17927
17130
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -17947,9 +17150,9 @@ const getObjectInfo_ConfigPropertyMetadata = [
17947
17150
  ];
17948
17151
  const getObjectInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$P, getObjectInfo_ConfigPropertyMetadata);
17949
17152
  const createResourceParams$T = /*#__PURE__*/ createResourceParams$l(getObjectInfo_ConfigPropertyMetadata);
17950
- function keyBuilder$2R(luvio, config) {
17153
+ function keyBuilder$2Q(luvio, config) {
17951
17154
  const resourceParams = createResourceParams$T(config);
17952
- return keyBuilder$2S(luvio, resourceParams);
17155
+ return keyBuilder$2R(luvio, resourceParams);
17953
17156
  }
17954
17157
  function typeCheckConfig$Z(untrustedConfig) {
17955
17158
  const config = {};
@@ -18008,7 +17211,7 @@ function buildNetworkSnapshotCachePolicy$M(context, coercedAdapterRequestContext
18008
17211
  function buildCachedSnapshotCachePolicy$M(context, storeLookup) {
18009
17212
  const { luvio, config } = context;
18010
17213
  const selector = {
18011
- recordId: keyBuilder$2R(luvio, config),
17214
+ recordId: keyBuilder$2Q(luvio, config),
18012
17215
  node: adapterFragment$F(luvio, config),
18013
17216
  variables: {},
18014
17217
  };
@@ -18312,7 +17515,7 @@ function validate$1l(obj, path = 'RecordLayoutSectionRepresentation') {
18312
17515
  }
18313
17516
 
18314
17517
  const TTL$y = 900000;
18315
- const VERSION$2b = "fb515e25a89ca1ec154dc865e72b913a";
17518
+ const VERSION$2a = "fb515e25a89ca1ec154dc865e72b913a";
18316
17519
  function validate$1k(obj, path = 'RecordLayoutRepresentation') {
18317
17520
  const v_error = (() => {
18318
17521
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -18445,7 +17648,7 @@ function validate$1k(obj, path = 'RecordLayoutRepresentation') {
18445
17648
  return v_error === undefined ? null : v_error;
18446
17649
  }
18447
17650
  const RepresentationType$N = 'RecordLayoutRepresentation';
18448
- function keyBuilder$2Q(luvio, config) {
17651
+ function keyBuilder$2P(luvio, config) {
18449
17652
  return keyPrefix + '::' + RepresentationType$N + ':' + (config.recordTypeId === null ? '' : config.recordTypeId) + ':' + (config.objectApiName === null ? '' : config.objectApiName) + ':' + config.layoutType + ':' + config.mode;
18450
17653
  }
18451
17654
  function keyBuilderFromType$s(luvio, object) {
@@ -18455,7 +17658,7 @@ function keyBuilderFromType$s(luvio, object) {
18455
17658
  layoutType: object.layoutType,
18456
17659
  mode: object.mode
18457
17660
  };
18458
- return keyBuilder$2Q(luvio, keyParams);
17661
+ return keyBuilder$2P(luvio, keyParams);
18459
17662
  }
18460
17663
  function normalize$G(input, existing, path, luvio, store, timestamp) {
18461
17664
  return input;
@@ -18463,7 +17666,7 @@ function normalize$G(input, existing, path, luvio, store, timestamp) {
18463
17666
  const select$2F = function RecordLayoutRepresentationSelect() {
18464
17667
  return {
18465
17668
  kind: 'Fragment',
18466
- version: VERSION$2b,
17669
+ version: VERSION$2a,
18467
17670
  private: [
18468
17671
  'eTag'
18469
17672
  ],
@@ -18516,7 +17719,7 @@ const ingest$1L = function RecordLayoutRepresentationIngest(input, path, luvio,
18516
17719
  }
18517
17720
  const key = keyBuilderFromType$s(luvio, input);
18518
17721
  const ttlToUse = TTL$y;
18519
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$G, "UiApi", VERSION$2b, RepresentationType$N, equals$U);
17722
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$G, "UiApi", VERSION$2a, RepresentationType$N, equals$U);
18520
17723
  return createLink$1(key);
18521
17724
  };
18522
17725
  function getTypeCacheKeys$1N(rootKeySet, luvio, input, fullPathFactory) {
@@ -18571,7 +17774,7 @@ function validate$1j(obj, path = 'RecordLayoutSectionUserStateRepresentation') {
18571
17774
  }
18572
17775
 
18573
17776
  const TTL$x = 900000;
18574
- const VERSION$2a = "4ba42e1fa0fb00cf78fce86082da41c9";
17777
+ const VERSION$29 = "4ba42e1fa0fb00cf78fce86082da41c9";
18575
17778
  function validate$1i(obj, path = 'RecordLayoutUserStateRepresentation') {
18576
17779
  const v_error = (() => {
18577
17780
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -18623,7 +17826,7 @@ function validate$1i(obj, path = 'RecordLayoutUserStateRepresentation') {
18623
17826
  return v_error === undefined ? null : v_error;
18624
17827
  }
18625
17828
  const RepresentationType$M = 'RecordLayoutUserStateRepresentation';
18626
- function keyBuilder$2P(luvio, config) {
17829
+ function keyBuilder$2O(luvio, config) {
18627
17830
  return keyPrefix + '::' + RepresentationType$M + ':' + config.recordTypeId + ':' + config.apiName + ':' + config.layoutType + ':' + config.mode;
18628
17831
  }
18629
17832
  function keyBuilderFromType$r(luvio, object) {
@@ -18633,7 +17836,7 @@ function keyBuilderFromType$r(luvio, object) {
18633
17836
  layoutType: object.layoutType,
18634
17837
  mode: object.mode
18635
17838
  };
18636
- return keyBuilder$2P(luvio, keyParams);
17839
+ return keyBuilder$2O(luvio, keyParams);
18637
17840
  }
18638
17841
  function normalize$F(input, existing, path, luvio, store, timestamp) {
18639
17842
  return input;
@@ -18641,7 +17844,7 @@ function normalize$F(input, existing, path, luvio, store, timestamp) {
18641
17844
  const select$2E = function RecordLayoutUserStateRepresentationSelect() {
18642
17845
  return {
18643
17846
  kind: 'Fragment',
18644
- version: VERSION$2a,
17847
+ version: VERSION$29,
18645
17848
  private: [
18646
17849
  'apiName',
18647
17850
  'recordTypeId',
@@ -18676,7 +17879,7 @@ const ingest$1K = function RecordLayoutUserStateRepresentationIngest(input, path
18676
17879
  }
18677
17880
  const key = keyBuilderFromType$r(luvio, input);
18678
17881
  const ttlToUse = TTL$x;
18679
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$F, "UiApi", VERSION$2a, RepresentationType$M, equals$T);
17882
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$F, "UiApi", VERSION$29, RepresentationType$M, equals$T);
18680
17883
  return createLink$1(key);
18681
17884
  };
18682
17885
  function getTypeCacheKeys$1M(rootKeySet, luvio, input, fullPathFactory) {
@@ -18690,7 +17893,7 @@ function getTypeCacheKeys$1M(rootKeySet, luvio, input, fullPathFactory) {
18690
17893
  }
18691
17894
 
18692
17895
  const TTL$w = 900000;
18693
- const VERSION$29 = "49cdd4bc235a6094c3559cc7735b3b6d";
17896
+ const VERSION$28 = "49cdd4bc235a6094c3559cc7735b3b6d";
18694
17897
  function validate$1h(obj, path = 'RecordUiRepresentation') {
18695
17898
  const v_error = (() => {
18696
17899
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -18960,7 +18163,7 @@ const ingest$1J = function RecordUiRepresentationIngest(input, path, luvio, stor
18960
18163
  }
18961
18164
  const key = path.fullPath;
18962
18165
  const ttlToUse = TTL$w;
18963
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$E, "UiApi", VERSION$29, RepresentationType$L, equals$S);
18166
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$E, "UiApi", VERSION$28, RepresentationType$L, equals$S);
18964
18167
  return createLink$1(key);
18965
18168
  };
18966
18169
 
@@ -19058,7 +18261,7 @@ function buildRecordUiSelector(recordDefs, layoutTypes, modes, recordOptionalFie
19058
18261
  return {
19059
18262
  kind: 'Fragment',
19060
18263
  private: ['eTag'],
19061
- version: VERSION$29,
18264
+ version: VERSION$28,
19062
18265
  selections: [
19063
18266
  {
19064
18267
  kind: 'Link',
@@ -19259,7 +18462,7 @@ function collectRecordDefs(resp, recordIds) {
19259
18462
  }
19260
18463
  return recordDefs;
19261
18464
  }
19262
- function keyBuilder$2O(recordIds, layoutTypes, modes, optionalFields) {
18465
+ function keyBuilder$2N(recordIds, layoutTypes, modes, optionalFields) {
19263
18466
  const joinedRecordIds = recordIds.sort().join(',');
19264
18467
  const joinedOptionalFields = optionalFields.sort().join(',');
19265
18468
  const joinedLayoutTypes = layoutTypes.sort().join(',');
@@ -19293,7 +18496,7 @@ function markRecordUiOptionalFields(optionalFields, recordLookupFields, recordNo
19293
18496
  }
19294
18497
  function prepareRequest$4(luvio, config) {
19295
18498
  const { recordIds, layoutTypes, modes, optionalFields } = config;
19296
- const key = keyBuilder$2O(recordIds, layoutTypes, modes, optionalFields);
18499
+ const key = keyBuilder$2N(recordIds, layoutTypes, modes, optionalFields);
19297
18500
  const selectorKey = buildCachedSelectorKey(key);
19298
18501
  const resourceRequest = createResourceRequest$X({
19299
18502
  urlParams: {
@@ -19386,7 +18589,7 @@ function onFetchResponseSuccess$I(luvio, config, selectorKey, key, responseBody)
19386
18589
  const validRecordIds = [];
19387
18590
  for (let i = 0, len = recordIds.length; i < len; i += 1) {
19388
18591
  const recordId = recordIds[i];
19389
- const recordKey = keyBuilder$36(luvio, { recordId });
18592
+ const recordKey = keyBuilder$35(luvio, { recordId });
19390
18593
  const node = luvio.getNode(recordKey);
19391
18594
  if (isGraphNode(node)) {
19392
18595
  recordNodes.push(node);
@@ -19457,7 +18660,7 @@ function publishDependencies(luvio, recordIds, depKeys) {
19457
18660
  function buildCachedSelectorSnapshot(context, storeLookup) {
19458
18661
  const { config } = context;
19459
18662
  const { recordIds, layoutTypes, modes, optionalFields } = config;
19460
- const key = keyBuilder$2O(recordIds, layoutTypes, modes, optionalFields);
18663
+ const key = keyBuilder$2N(recordIds, layoutTypes, modes, optionalFields);
19461
18664
  const cachedSelectorKey = buildCachedSelectorKey(key);
19462
18665
  return storeLookup({
19463
18666
  recordId: cachedSelectorKey,
@@ -19560,7 +18763,7 @@ function refresh$1(luvio, config) {
19560
18763
  return buildNetworkSnapshot$X(luvio, recordUiConfig).then((snapshot) => {
19561
18764
  const refresh = buildSnapshotRefresh$3(luvio, config);
19562
18765
  if (isErrorSnapshot(snapshot)) {
19563
- var recordKey = keyBuilder$36(luvio, { recordId });
18766
+ var recordKey = keyBuilder$35(luvio, { recordId });
19564
18767
  luvio.storeIngestError(recordKey, snapshot);
19565
18768
  return luvio.storeBroadcast().then(() => luvio.errorSnapshot(snapshot.error, refresh));
19566
18769
  }
@@ -19731,14 +18934,14 @@ function buildRecordLayoutCachedSnapshot(context, storeLookup) {
19731
18934
  const { config, luvio } = context;
19732
18935
  // get cached copy of the record
19733
18936
  const { recordId } = config;
19734
- const storeKey = keyBuilder$36(luvio, { recordId });
18937
+ const storeKey = keyBuilder$35(luvio, { recordId });
19735
18938
  const recordSnapshot = storeLookup({
19736
18939
  recordId: storeKey,
19737
18940
  node: {
19738
18941
  kind: 'Fragment',
19739
18942
  private: [],
19740
18943
  selections: recordLayoutFragmentSelector,
19741
- version: VERSION$2i,
18944
+ version: VERSION$2h,
19742
18945
  },
19743
18946
  variables: {},
19744
18947
  });
@@ -19758,7 +18961,7 @@ const buildObjectInfoCacheSnapshot = (recordLayoutSnapshot) => (context, storeLo
19758
18961
  };
19759
18962
  const buildLayoutModeCacheSnapshot = (apiName, recordTypeId, layoutType, mode) => (context, storeLookup) => {
19760
18963
  const { luvio } = context;
19761
- const key = keyBuilder$2Q(luvio, {
18964
+ const key = keyBuilder$2P(luvio, {
19762
18965
  objectApiName: apiName,
19763
18966
  recordTypeId,
19764
18967
  layoutType,
@@ -19992,7 +19195,7 @@ function coerceKeyParams(config) {
19992
19195
  }
19993
19196
  const notifyChangeFactory = (luvio) => {
19994
19197
  return function getUiApiRecordsByRecordIdNotifyChange(configs) {
19995
- const keys = configs.map((c) => keyBuilder$36(luvio, coerceKeyParams(c)));
19198
+ const keys = configs.map((c) => keyBuilder$35(luvio, coerceKeyParams(c)));
19996
19199
  luvio.getNotifyChangeStoreEntries(keys).then((entries) => {
19997
19200
  const responsePromises = [];
19998
19201
  for (let i = 0, len = entries.length; i < len; i++) {
@@ -20057,7 +19260,7 @@ const factory$g = (luvio) => {
20057
19260
  }, { contextId: contextId$5 });
20058
19261
  };
20059
19262
 
20060
- const VERSION$28 = "7e00c51105cbf56a79ab8fcddf462c1e";
19263
+ const VERSION$27 = "7e00c51105cbf56a79ab8fcddf462c1e";
20061
19264
  function validate$1g(obj, path = 'QuickActionExecutionRepresentation') {
20062
19265
  const v_error = (() => {
20063
19266
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -20144,14 +19347,14 @@ function validate$1g(obj, path = 'QuickActionExecutionRepresentation') {
20144
19347
  return v_error === undefined ? null : v_error;
20145
19348
  }
20146
19349
  const RepresentationType$K = 'QuickActionExecutionRepresentation';
20147
- function keyBuilder$2N(luvio, config) {
19350
+ function keyBuilder$2M(luvio, config) {
20148
19351
  return keyPrefix + '::' + RepresentationType$K + ':' + config.id;
20149
19352
  }
20150
19353
  function keyBuilderFromType$q(luvio, object) {
20151
19354
  const keyParams = {
20152
19355
  id: object.id
20153
19356
  };
20154
- return keyBuilder$2N(luvio, keyParams);
19357
+ return keyBuilder$2M(luvio, keyParams);
20155
19358
  }
20156
19359
  function normalize$D(input, existing, path, luvio, store, timestamp) {
20157
19360
  return input;
@@ -20159,7 +19362,7 @@ function normalize$D(input, existing, path, luvio, store, timestamp) {
20159
19362
  const select$2D = function QuickActionExecutionRepresentationSelect() {
20160
19363
  return {
20161
19364
  kind: 'Fragment',
20162
- version: VERSION$28,
19365
+ version: VERSION$27,
20163
19366
  private: [
20164
19367
  'eTag'
20165
19368
  ],
@@ -20238,7 +19441,7 @@ const ingest$1I = function QuickActionExecutionRepresentationIngest(input, path,
20238
19441
  }
20239
19442
  const key = keyBuilderFromType$q(luvio, input);
20240
19443
  const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
20241
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$D, "UiApi", VERSION$28, RepresentationType$K, equals$R);
19444
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$D, "UiApi", VERSION$27, RepresentationType$K, equals$R);
20242
19445
  return createLink$1(key);
20243
19446
  };
20244
19447
  function getTypeCacheKeys$1L(rootKeySet, luvio, input, fullPathFactory) {
@@ -20252,7 +19455,7 @@ function getTypeCacheKeys$1L(rootKeySet, luvio, input, fullPathFactory) {
20252
19455
  }
20253
19456
 
20254
19457
  const TTL$v = 900000;
20255
- const VERSION$27 = "993b0a7bce6056c4f57ed300ec153d9c";
19458
+ const VERSION$26 = "993b0a7bce6056c4f57ed300ec153d9c";
20256
19459
  function validate$1f(obj, path = 'QuickActionDefaultsRepresentation') {
20257
19460
  const v_error = (() => {
20258
19461
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -20291,14 +19494,14 @@ function validate$1f(obj, path = 'QuickActionDefaultsRepresentation') {
20291
19494
  return v_error === undefined ? null : v_error;
20292
19495
  }
20293
19496
  const RepresentationType$J = 'QuickActionDefaultsRepresentation';
20294
- function keyBuilder$2M(luvio, config) {
19497
+ function keyBuilder$2L(luvio, config) {
20295
19498
  return keyPrefix + '::' + RepresentationType$J + ':' + config.actionApiName;
20296
19499
  }
20297
19500
  function keyBuilderFromType$p(luvio, object) {
20298
19501
  const keyParams = {
20299
19502
  actionApiName: object.actionApiName
20300
19503
  };
20301
- return keyBuilder$2M(luvio, keyParams);
19504
+ return keyBuilder$2L(luvio, keyParams);
20302
19505
  }
20303
19506
  function dynamicNormalize$4(ingestParams) {
20304
19507
  return function normalize_dynamic(input, existing, path, luvio, store, timestamp) {
@@ -20333,7 +19536,7 @@ const dynamicSelect$5 = function dynamicQuickActionDefaultsRepresentationSelect(
20333
19536
  } : params.fields;
20334
19537
  return {
20335
19538
  kind: 'Fragment',
20336
- version: VERSION$27,
19539
+ version: VERSION$26,
20337
19540
  private: [
20338
19541
  'eTag'
20339
19542
  ],
@@ -20417,7 +19620,7 @@ function coerceFormFactor(form) {
20417
19620
  return undefined;
20418
19621
  }
20419
19622
 
20420
- const VERSION$26 = "3f49d751896cf66e6e29788d8880e2cc";
19623
+ const VERSION$25 = "3f49d751896cf66e6e29788d8880e2cc";
20421
19624
  function validate$1e(obj, path = 'PlatformActionRepresentation') {
20422
19625
  const v_error = (() => {
20423
19626
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -20753,7 +19956,7 @@ function validate$1e(obj, path = 'PlatformActionRepresentation') {
20753
19956
  return v_error === undefined ? null : v_error;
20754
19957
  }
20755
19958
  const RepresentationType$I = 'PlatformActionRepresentation';
20756
- function keyBuilder$2L(luvio, config) {
19959
+ function keyBuilder$2K(luvio, config) {
20757
19960
  return keyPrefix + '::' + RepresentationType$I + ':' + config.externalId + ':' + (config.relatedSourceObject === null ? '' : config.relatedSourceObject) + ':' + (config.relatedListRecordId === null ? '' : config.relatedListRecordId);
20758
19961
  }
20759
19962
  function keyBuilderFromType$o(luvio, object) {
@@ -20762,7 +19965,7 @@ function keyBuilderFromType$o(luvio, object) {
20762
19965
  relatedSourceObject: object.relatedSourceObject,
20763
19966
  relatedListRecordId: object.relatedListRecordId
20764
19967
  };
20765
- return keyBuilder$2L(luvio, keyParams);
19968
+ return keyBuilder$2K(luvio, keyParams);
20766
19969
  }
20767
19970
  function normalize$C(input, existing, path, luvio, store, timestamp) {
20768
19971
  return input;
@@ -20770,7 +19973,7 @@ function normalize$C(input, existing, path, luvio, store, timestamp) {
20770
19973
  const select$2C = function PlatformActionRepresentationSelect() {
20771
19974
  return {
20772
19975
  kind: 'Fragment',
20773
- version: VERSION$26,
19976
+ version: VERSION$25,
20774
19977
  private: [
20775
19978
  'id'
20776
19979
  ],
@@ -20957,7 +20160,7 @@ const ingest$1H = function PlatformActionRepresentationIngest(input, path, luvio
20957
20160
  }
20958
20161
  const key = keyBuilderFromType$o(luvio, input);
20959
20162
  const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
20960
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$C, "UiApi", VERSION$26, RepresentationType$I, equals$P);
20163
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$C, "UiApi", VERSION$25, RepresentationType$I, equals$P);
20961
20164
  return createLink$1(key);
20962
20165
  };
20963
20166
  function getTypeCacheKeys$1J(rootKeySet, luvio, input, fullPathFactory) {
@@ -20970,7 +20173,7 @@ function getTypeCacheKeys$1J(rootKeySet, luvio, input, fullPathFactory) {
20970
20173
  });
20971
20174
  }
20972
20175
 
20973
- const VERSION$25 = "378d506f563a4bd724b322d440df33d1";
20176
+ const VERSION$24 = "378d506f563a4bd724b322d440df33d1";
20974
20177
  function validate$1d(obj, path = 'EntityActionRepresentation') {
20975
20178
  const v_error = (() => {
20976
20179
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -21009,14 +20212,14 @@ function validate$1d(obj, path = 'EntityActionRepresentation') {
21009
20212
  return v_error === undefined ? null : v_error;
21010
20213
  }
21011
20214
  const RepresentationType$H = 'EntityActionRepresentation';
21012
- function keyBuilder$2K(luvio, config) {
20215
+ function keyBuilder$2J(luvio, config) {
21013
20216
  return keyPrefix + '::' + RepresentationType$H + ':' + config.url;
21014
20217
  }
21015
20218
  function keyBuilderFromType$n(luvio, object) {
21016
20219
  const keyParams = {
21017
20220
  url: object.url
21018
20221
  };
21019
- return keyBuilder$2K(luvio, keyParams);
20222
+ return keyBuilder$2J(luvio, keyParams);
21020
20223
  }
21021
20224
  function normalize$B(input, existing, path, luvio, store, timestamp) {
21022
20225
  const input_actions = input.actions;
@@ -21040,7 +20243,7 @@ function normalize$B(input, existing, path, luvio, store, timestamp) {
21040
20243
  const select$2B = function EntityActionRepresentationSelect() {
21041
20244
  return {
21042
20245
  kind: 'Fragment',
21043
- version: VERSION$25,
20246
+ version: VERSION$24,
21044
20247
  private: [
21045
20248
  'links',
21046
20249
  'url'
@@ -21092,7 +20295,7 @@ const ingest$1G = function EntityActionRepresentationIngest(input, path, luvio,
21092
20295
  }
21093
20296
  const key = keyBuilderFromType$n(luvio, input);
21094
20297
  const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
21095
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$B, "UiApi", VERSION$25, RepresentationType$H, equals$O);
20298
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$B, "UiApi", VERSION$24, RepresentationType$H, equals$O);
21096
20299
  return createLink$1(key);
21097
20300
  };
21098
20301
  function getTypeCacheKeys$1I(rootKeySet, luvio, input, fullPathFactory) {
@@ -21110,7 +20313,7 @@ function getTypeCacheKeys$1I(rootKeySet, luvio, input, fullPathFactory) {
21110
20313
  }
21111
20314
 
21112
20315
  const TTL$u = 300000;
21113
- const VERSION$24 = "e485d96c1402a9ca2f56e56485af0216";
20316
+ const VERSION$23 = "e485d96c1402a9ca2f56e56485af0216";
21114
20317
  function validate$1c(obj, path = 'ActionRepresentation') {
21115
20318
  const v_error = (() => {
21116
20319
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -21169,7 +20372,7 @@ function normalize$A(input, existing, path, luvio, store, timestamp) {
21169
20372
  const select$2A = function ActionRepresentationSelect() {
21170
20373
  return {
21171
20374
  kind: 'Fragment',
21172
- version: VERSION$24,
20375
+ version: VERSION$23,
21173
20376
  private: [
21174
20377
  'eTag',
21175
20378
  'url'
@@ -21216,7 +20419,7 @@ const ingest$1F = function ActionRepresentationIngest(input, path, luvio, store,
21216
20419
  }
21217
20420
  const key = path.fullPath;
21218
20421
  const ttlToUse = TTL$u;
21219
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$A, "UiApi", VERSION$24, RepresentationType$G, equals$N);
20422
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$A, "UiApi", VERSION$23, RepresentationType$G, equals$N);
21220
20423
  return createLink$1(key);
21221
20424
  };
21222
20425
  function getTypeCacheKeys$1H(rootKeySet, luvio, input, fullPathFactory) {
@@ -21239,15 +20442,15 @@ function getTypeCacheKeys$1H(rootKeySet, luvio, input, fullPathFactory) {
21239
20442
  function select$2z(luvio, params) {
21240
20443
  return select$2A();
21241
20444
  }
21242
- function keyBuilder$2J(luvio, params) {
20445
+ function keyBuilder$2I(luvio, params) {
21243
20446
  return keyPrefix + '::ActionRepresentation:(' + 'actionTypes:' + params.queryParams.actionTypes + ',' + 'apiNames:' + params.queryParams.apiNames + ',' + 'formFactor:' + params.queryParams.formFactor + ',' + 'retrievalMode:' + params.queryParams.retrievalMode + ',' + 'sections:' + params.queryParams.sections + ')';
21244
20447
  }
21245
20448
  function getResponseCacheKeys$S(storeKeyMap, luvio, resourceParams, response) {
21246
- getTypeCacheKeys$1H(storeKeyMap, luvio, response, () => keyBuilder$2J(luvio, resourceParams));
20449
+ getTypeCacheKeys$1H(storeKeyMap, luvio, response, () => keyBuilder$2I(luvio, resourceParams));
21247
20450
  }
21248
20451
  function ingestSuccess$J(luvio, resourceParams, response, snapshotRefresh) {
21249
20452
  const { body } = response;
21250
- const key = keyBuilder$2J(luvio, resourceParams);
20453
+ const key = keyBuilder$2I(luvio, resourceParams);
21251
20454
  luvio.storeIngest(key, ingest$1F, body);
21252
20455
  const snapshot = luvio.storeLookup({
21253
20456
  recordId: key,
@@ -21263,12 +20466,12 @@ function ingestSuccess$J(luvio, resourceParams, response, snapshotRefresh) {
21263
20466
  return snapshot;
21264
20467
  }
21265
20468
  function ingestError$F(luvio, params, error, snapshotRefresh) {
21266
- const key = keyBuilder$2J(luvio, params);
20469
+ const key = keyBuilder$2I(luvio, params);
21267
20470
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
21268
20471
  const storeMetadataParams = {
21269
20472
  ttl: TTL$u,
21270
20473
  namespace: keyPrefix,
21271
- version: VERSION$24,
20474
+ version: VERSION$23,
21272
20475
  representationName: RepresentationType$G
21273
20476
  };
21274
20477
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -21298,9 +20501,9 @@ const getGlobalActions_ConfigPropertyMetadata = [
21298
20501
  ];
21299
20502
  const getGlobalActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$O, getGlobalActions_ConfigPropertyMetadata);
21300
20503
  const createResourceParams$S = /*#__PURE__*/ createResourceParams$l(getGlobalActions_ConfigPropertyMetadata);
21301
- function keyBuilder$2I(luvio, config) {
20504
+ function keyBuilder$2H(luvio, config) {
21302
20505
  const resourceParams = createResourceParams$S(config);
21303
- return keyBuilder$2J(luvio, resourceParams);
20506
+ return keyBuilder$2I(luvio, resourceParams);
21304
20507
  }
21305
20508
  function typeCheckConfig$X(untrustedConfig) {
21306
20509
  const config = {};
@@ -21359,7 +20562,7 @@ function buildNetworkSnapshotCachePolicy$L(context, coercedAdapterRequestContext
21359
20562
  function buildCachedSnapshotCachePolicy$L(context, storeLookup) {
21360
20563
  const { luvio, config } = context;
21361
20564
  const selector = {
21362
- recordId: keyBuilder$2I(luvio, config),
20565
+ recordId: keyBuilder$2H(luvio, config),
21363
20566
  node: adapterFragment$E(luvio, config),
21364
20567
  variables: {},
21365
20568
  };
@@ -21380,7 +20583,7 @@ const getGlobalActionsAdapterFactory = (luvio) => function UiApi__getGlobalActio
21380
20583
  };
21381
20584
 
21382
20585
  const TTL$t = 900000;
21383
- const VERSION$23 = "35f3eec8ce7f6001c6d5d17821b75bb9";
20586
+ const VERSION$22 = "35f3eec8ce7f6001c6d5d17821b75bb9";
21384
20587
  function validate$1b(obj, path = 'QuickActionLayoutRepresentation') {
21385
20588
  const v_error = (() => {
21386
20589
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -21408,14 +20611,14 @@ function validate$1b(obj, path = 'QuickActionLayoutRepresentation') {
21408
20611
  return v_error === undefined ? null : v_error;
21409
20612
  }
21410
20613
  const RepresentationType$F = 'QuickActionLayoutRepresentation';
21411
- function keyBuilder$2H(luvio, config) {
20614
+ function keyBuilder$2G(luvio, config) {
21412
20615
  return keyPrefix + '::' + RepresentationType$F + ':' + config.actionApiName;
21413
20616
  }
21414
20617
  function keyBuilderFromType$m(luvio, object) {
21415
20618
  const keyParams = {
21416
20619
  actionApiName: object.actionApiName
21417
20620
  };
21418
- return keyBuilder$2H(luvio, keyParams);
20621
+ return keyBuilder$2G(luvio, keyParams);
21419
20622
  }
21420
20623
  function normalize$z(input, existing, path, luvio, store, timestamp) {
21421
20624
  return input;
@@ -21423,7 +20626,7 @@ function normalize$z(input, existing, path, luvio, store, timestamp) {
21423
20626
  const select$2y = function QuickActionLayoutRepresentationSelect() {
21424
20627
  return {
21425
20628
  kind: 'Fragment',
21426
- version: VERSION$23,
20629
+ version: VERSION$22,
21427
20630
  private: [
21428
20631
  'eTag'
21429
20632
  ],
@@ -21455,7 +20658,7 @@ const ingest$1E = function QuickActionLayoutRepresentationIngest(input, path, lu
21455
20658
  }
21456
20659
  const key = keyBuilderFromType$m(luvio, input);
21457
20660
  const ttlToUse = TTL$t;
21458
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$z, "UiApi", VERSION$23, RepresentationType$F, equals$M);
20661
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$z, "UiApi", VERSION$22, RepresentationType$F, equals$M);
21459
20662
  return createLink$1(key);
21460
20663
  };
21461
20664
  function getTypeCacheKeys$1G(rootKeySet, luvio, input, fullPathFactory) {
@@ -21471,8 +20674,8 @@ function getTypeCacheKeys$1G(rootKeySet, luvio, input, fullPathFactory) {
21471
20674
  function select$2x(luvio, params) {
21472
20675
  return select$2y();
21473
20676
  }
21474
- function keyBuilder$2G(luvio, params) {
21475
- return keyBuilder$2H(luvio, {
20677
+ function keyBuilder$2F(luvio, params) {
20678
+ return keyBuilder$2G(luvio, {
21476
20679
  actionApiName: params.urlParams.actionApiName
21477
20680
  });
21478
20681
  }
@@ -21481,7 +20684,7 @@ function getResponseCacheKeys$R(storeKeyMap, luvio, resourceParams, response) {
21481
20684
  }
21482
20685
  function ingestSuccess$I(luvio, resourceParams, response, snapshotRefresh) {
21483
20686
  const { body } = response;
21484
- const key = keyBuilder$2G(luvio, resourceParams);
20687
+ const key = keyBuilder$2F(luvio, resourceParams);
21485
20688
  luvio.storeIngest(key, ingest$1E, body);
21486
20689
  const snapshot = luvio.storeLookup({
21487
20690
  recordId: key,
@@ -21497,12 +20700,12 @@ function ingestSuccess$I(luvio, resourceParams, response, snapshotRefresh) {
21497
20700
  return snapshot;
21498
20701
  }
21499
20702
  function ingestError$E(luvio, params, error, snapshotRefresh) {
21500
- const key = keyBuilder$2G(luvio, params);
20703
+ const key = keyBuilder$2F(luvio, params);
21501
20704
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
21502
20705
  const storeMetadataParams = {
21503
20706
  ttl: TTL$t,
21504
20707
  namespace: keyPrefix,
21505
- version: VERSION$23,
20708
+ version: VERSION$22,
21506
20709
  representationName: RepresentationType$F
21507
20710
  };
21508
20711
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -21528,9 +20731,9 @@ const getQuickActionLayout_ConfigPropertyMetadata = [
21528
20731
  ];
21529
20732
  const getQuickActionLayout_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$N, getQuickActionLayout_ConfigPropertyMetadata);
21530
20733
  const createResourceParams$R = /*#__PURE__*/ createResourceParams$l(getQuickActionLayout_ConfigPropertyMetadata);
21531
- function keyBuilder$2F(luvio, config) {
20734
+ function keyBuilder$2E(luvio, config) {
21532
20735
  const resourceParams = createResourceParams$R(config);
21533
- return keyBuilder$2G(luvio, resourceParams);
20736
+ return keyBuilder$2F(luvio, resourceParams);
21534
20737
  }
21535
20738
  function typeCheckConfig$W(untrustedConfig) {
21536
20739
  const config = {};
@@ -21588,7 +20791,7 @@ function buildNetworkSnapshotCachePolicy$K(context, coercedAdapterRequestContext
21588
20791
  function buildCachedSnapshotCachePolicy$K(context, storeLookup) {
21589
20792
  const { luvio, config } = context;
21590
20793
  const selector = {
21591
- recordId: keyBuilder$2F(luvio, config),
20794
+ recordId: keyBuilder$2E(luvio, config),
21592
20795
  node: adapterFragment$D(luvio, config),
21593
20796
  variables: {},
21594
20797
  };
@@ -21643,15 +20846,15 @@ function getSortedObjectApiNamesArray(value) {
21643
20846
  function select$2w(luvio, params) {
21644
20847
  return select$2A();
21645
20848
  }
21646
- function keyBuilder$2E(luvio, params) {
20849
+ function keyBuilder$2D(luvio, params) {
21647
20850
  return keyPrefix + '::ActionRepresentation:(' + 'actionTypes:' + params.queryParams.actionTypes + ',' + 'formFactor:' + params.queryParams.formFactor + ',' + 'sections:' + params.queryParams.sections + ',' + 'objectApiNames:' + params.urlParams.objectApiNames + ')';
21648
20851
  }
21649
20852
  function getResponseCacheKeys$Q(storeKeyMap, luvio, resourceParams, response) {
21650
- getTypeCacheKeys$1H(storeKeyMap, luvio, response, () => keyBuilder$2E(luvio, resourceParams));
20853
+ getTypeCacheKeys$1H(storeKeyMap, luvio, response, () => keyBuilder$2D(luvio, resourceParams));
21651
20854
  }
21652
20855
  function ingestSuccess$H(luvio, resourceParams, response, snapshotRefresh) {
21653
20856
  const { body } = response;
21654
- const key = keyBuilder$2E(luvio, resourceParams);
20857
+ const key = keyBuilder$2D(luvio, resourceParams);
21655
20858
  luvio.storeIngest(key, ingest$1F, body);
21656
20859
  const snapshot = luvio.storeLookup({
21657
20860
  recordId: key,
@@ -21667,12 +20870,12 @@ function ingestSuccess$H(luvio, resourceParams, response, snapshotRefresh) {
21667
20870
  return snapshot;
21668
20871
  }
21669
20872
  function ingestError$D(luvio, params, error, snapshotRefresh) {
21670
- const key = keyBuilder$2E(luvio, params);
20873
+ const key = keyBuilder$2D(luvio, params);
21671
20874
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
21672
20875
  const storeMetadataParams = {
21673
20876
  ttl: TTL$u,
21674
20877
  namespace: keyPrefix,
21675
- version: VERSION$24,
20878
+ version: VERSION$23,
21676
20879
  representationName: RepresentationType$G
21677
20880
  };
21678
20881
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -21701,9 +20904,9 @@ const getLookupActions_ConfigPropertyMetadata = [
21701
20904
  ];
21702
20905
  const getLookupActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$M, getLookupActions_ConfigPropertyMetadata);
21703
20906
  const createResourceParams$Q = /*#__PURE__*/ createResourceParams$l(getLookupActions_ConfigPropertyMetadata);
21704
- function keyBuilder$2D(luvio, config) {
20907
+ function keyBuilder$2C(luvio, config) {
21705
20908
  const resourceParams = createResourceParams$Q(config);
21706
- return keyBuilder$2E(luvio, resourceParams);
20909
+ return keyBuilder$2D(luvio, resourceParams);
21707
20910
  }
21708
20911
  function typeCheckConfig$V(untrustedConfig) {
21709
20912
  const config = {};
@@ -21762,7 +20965,7 @@ function buildNetworkSnapshotCachePolicy$J(context, coercedAdapterRequestContext
21762
20965
  function buildCachedSnapshotCachePolicy$J(context, storeLookup) {
21763
20966
  const { luvio, config } = context;
21764
20967
  const selector = {
21765
- recordId: keyBuilder$2D(luvio, config),
20968
+ recordId: keyBuilder$2C(luvio, config),
21766
20969
  node: adapterFragment$C(luvio, config),
21767
20970
  variables: {},
21768
20971
  };
@@ -21785,15 +20988,15 @@ const getLookupActionsAdapterFactory = (luvio) => function UiApi__getLookupActio
21785
20988
  function select$2v(luvio, params) {
21786
20989
  return select$2A();
21787
20990
  }
21788
- function keyBuilder$2C(luvio, params) {
20991
+ function keyBuilder$2B(luvio, params) {
21789
20992
  return keyPrefix + '::ActionRepresentation:(' + 'actionTypes:' + params.queryParams.actionTypes + ',' + 'formFactor:' + params.queryParams.formFactor + ',' + 'sections:' + params.queryParams.sections + ',' + 'objectApiName:' + params.urlParams.objectApiName + ')';
21790
20993
  }
21791
20994
  function getResponseCacheKeys$P(storeKeyMap, luvio, resourceParams, response) {
21792
- getTypeCacheKeys$1H(storeKeyMap, luvio, response, () => keyBuilder$2C(luvio, resourceParams));
20995
+ getTypeCacheKeys$1H(storeKeyMap, luvio, response, () => keyBuilder$2B(luvio, resourceParams));
21793
20996
  }
21794
20997
  function ingestSuccess$G(luvio, resourceParams, response, snapshotRefresh) {
21795
20998
  const { body } = response;
21796
- const key = keyBuilder$2C(luvio, resourceParams);
20999
+ const key = keyBuilder$2B(luvio, resourceParams);
21797
21000
  luvio.storeIngest(key, ingest$1F, body);
21798
21001
  const snapshot = luvio.storeLookup({
21799
21002
  recordId: key,
@@ -21809,12 +21012,12 @@ function ingestSuccess$G(luvio, resourceParams, response, snapshotRefresh) {
21809
21012
  return snapshot;
21810
21013
  }
21811
21014
  function ingestError$C(luvio, params, error, snapshotRefresh) {
21812
- const key = keyBuilder$2C(luvio, params);
21015
+ const key = keyBuilder$2B(luvio, params);
21813
21016
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
21814
21017
  const storeMetadataParams = {
21815
21018
  ttl: TTL$u,
21816
21019
  namespace: keyPrefix,
21817
- version: VERSION$24,
21020
+ version: VERSION$23,
21818
21021
  representationName: RepresentationType$G
21819
21022
  };
21820
21023
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -21843,9 +21046,9 @@ const getObjectCreateActions_ConfigPropertyMetadata = [
21843
21046
  ];
21844
21047
  const getObjectCreateActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$L, getObjectCreateActions_ConfigPropertyMetadata);
21845
21048
  const createResourceParams$P = /*#__PURE__*/ createResourceParams$l(getObjectCreateActions_ConfigPropertyMetadata);
21846
- function keyBuilder$2B(luvio, config) {
21049
+ function keyBuilder$2A(luvio, config) {
21847
21050
  const resourceParams = createResourceParams$P(config);
21848
- return keyBuilder$2C(luvio, resourceParams);
21051
+ return keyBuilder$2B(luvio, resourceParams);
21849
21052
  }
21850
21053
  function typeCheckConfig$U(untrustedConfig) {
21851
21054
  const config = {};
@@ -21904,7 +21107,7 @@ function buildNetworkSnapshotCachePolicy$I(context, coercedAdapterRequestContext
21904
21107
  function buildCachedSnapshotCachePolicy$I(context, storeLookup) {
21905
21108
  const { luvio, config } = context;
21906
21109
  const selector = {
21907
- recordId: keyBuilder$2B(luvio, config),
21110
+ recordId: keyBuilder$2A(luvio, config),
21908
21111
  node: adapterFragment$B(luvio, config),
21909
21112
  variables: {},
21910
21113
  };
@@ -21924,7 +21127,7 @@ const getObjectCreateActionsAdapterFactory = (luvio) => function UiApi__getObjec
21924
21127
  buildCachedSnapshotCachePolicy$I, buildNetworkSnapshotCachePolicy$I);
21925
21128
  };
21926
21129
 
21927
- const VERSION$22 = "fecd80e9e24a1c1e75fd5395cd34ff2e";
21130
+ const VERSION$21 = "fecd80e9e24a1c1e75fd5395cd34ff2e";
21928
21131
  function validate$1a(obj, path = 'ActionOverrideRepresentation') {
21929
21132
  const v_error = (() => {
21930
21133
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -21945,7 +21148,7 @@ function normalize$y(input, existing, path, luvio, store, timestamp) {
21945
21148
  const select$2u = function ActionOverrideRepresentationSelect() {
21946
21149
  return {
21947
21150
  kind: 'Fragment',
21948
- version: VERSION$22,
21151
+ version: VERSION$21,
21949
21152
  private: [],
21950
21153
  opaque: true
21951
21154
  };
@@ -21965,7 +21168,7 @@ const ingest$1D = function ActionOverrideRepresentationIngest(input, path, luvio
21965
21168
  }
21966
21169
  const key = path.fullPath;
21967
21170
  const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
21968
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$y, "UiApi", VERSION$22, RepresentationType$E, equals$L);
21171
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$y, "UiApi", VERSION$21, RepresentationType$E, equals$L);
21969
21172
  return createLink$1(key);
21970
21173
  };
21971
21174
  function getTypeCacheKeys$1F(rootKeySet, luvio, input, fullPathFactory) {
@@ -21981,15 +21184,15 @@ function getTypeCacheKeys$1F(rootKeySet, luvio, input, fullPathFactory) {
21981
21184
  function select$2t(luvio, params) {
21982
21185
  return select$2u();
21983
21186
  }
21984
- function keyBuilder$2A(luvio, params) {
21187
+ function keyBuilder$2z(luvio, params) {
21985
21188
  return keyPrefix + '::ActionOverrideRepresentation:(' + 'type:' + params.queryParams.type + ',' + 'objectApiName:' + params.urlParams.objectApiName + ')';
21986
21189
  }
21987
21190
  function getResponseCacheKeys$O(storeKeyMap, luvio, resourceParams, response) {
21988
- getTypeCacheKeys$1F(storeKeyMap, luvio, response, () => keyBuilder$2A(luvio, resourceParams));
21191
+ getTypeCacheKeys$1F(storeKeyMap, luvio, response, () => keyBuilder$2z(luvio, resourceParams));
21989
21192
  }
21990
21193
  function ingestSuccess$F(luvio, resourceParams, response, snapshotRefresh) {
21991
21194
  const { body } = response;
21992
- const key = keyBuilder$2A(luvio, resourceParams);
21195
+ const key = keyBuilder$2z(luvio, resourceParams);
21993
21196
  luvio.storeIngest(key, ingest$1D, body);
21994
21197
  const snapshot = luvio.storeLookup({
21995
21198
  recordId: key,
@@ -22005,7 +21208,7 @@ function ingestSuccess$F(luvio, resourceParams, response, snapshotRefresh) {
22005
21208
  return snapshot;
22006
21209
  }
22007
21210
  function ingestError$B(luvio, params, error, snapshotRefresh) {
22008
- const key = keyBuilder$2A(luvio, params);
21211
+ const key = keyBuilder$2z(luvio, params);
22009
21212
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
22010
21213
  luvio.storeIngestError(key, errorSnapshot);
22011
21214
  return errorSnapshot;
@@ -22031,9 +21234,9 @@ const getActionOverrides_ConfigPropertyMetadata = [
22031
21234
  ];
22032
21235
  const getActionOverrides_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$K, getActionOverrides_ConfigPropertyMetadata);
22033
21236
  const createResourceParams$O = /*#__PURE__*/ createResourceParams$l(getActionOverrides_ConfigPropertyMetadata);
22034
- function keyBuilder$2z(luvio, config) {
21237
+ function keyBuilder$2y(luvio, config) {
22035
21238
  const resourceParams = createResourceParams$O(config);
22036
- return keyBuilder$2A(luvio, resourceParams);
21239
+ return keyBuilder$2z(luvio, resourceParams);
22037
21240
  }
22038
21241
  function typeCheckConfig$T(untrustedConfig) {
22039
21242
  const config = {};
@@ -22092,7 +21295,7 @@ function buildNetworkSnapshotCachePolicy$H(context, coercedAdapterRequestContext
22092
21295
  function buildCachedSnapshotCachePolicy$H(context, storeLookup) {
22093
21296
  const { luvio, config } = context;
22094
21297
  const selector = {
22095
- recordId: keyBuilder$2z(luvio, config),
21298
+ recordId: keyBuilder$2y(luvio, config),
22096
21299
  node: adapterFragment$A(luvio, config),
22097
21300
  variables: {},
22098
21301
  };
@@ -22116,7 +21319,7 @@ const QUICK_ACTION_DEFAULTS_STORE_METADATA_PARAMS = {
22116
21319
  ttl: TTL$v,
22117
21320
  namespace: keyPrefix,
22118
21321
  representationName: RepresentationType$J,
22119
- version: VERSION$27,
21322
+ version: VERSION$26,
22120
21323
  };
22121
21324
  function merge$1(existing, incoming) {
22122
21325
  if (existing === undefined) {
@@ -22198,8 +21401,8 @@ function selectFields$6(luvio, params) {
22198
21401
  return selectFields$7(trie);
22199
21402
  }
22200
21403
 
22201
- function keyBuilder$2y(luvio, params) {
22202
- return keyBuilder$2M(luvio, {
21404
+ function keyBuilder$2x(luvio, params) {
21405
+ return keyBuilder$2L(luvio, {
22203
21406
  actionApiName: params.urlParams.actionApiName
22204
21407
  });
22205
21408
  }
@@ -22207,12 +21410,12 @@ function getResponseCacheKeys$N(storeKeyMap, luvio, resourceParams, response) {
22207
21410
  getTypeCacheKeys$1K(storeKeyMap, luvio, response);
22208
21411
  }
22209
21412
  function ingestError$A(luvio, params, error, snapshotRefresh) {
22210
- const key = keyBuilder$2y(luvio, params);
21413
+ const key = keyBuilder$2x(luvio, params);
22211
21414
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
22212
21415
  const storeMetadataParams = {
22213
21416
  ttl: TTL$v,
22214
21417
  namespace: keyPrefix,
22215
- version: VERSION$27,
21418
+ version: VERSION$26,
22216
21419
  representationName: RepresentationType$J
22217
21420
  };
22218
21421
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -22239,7 +21442,7 @@ function adapterFragment$z(luvio, config) {
22239
21442
  function buildNetworkSnapshot$Q(luvio, config, options) {
22240
21443
  const resourceParams = createResourceParams$N(config);
22241
21444
  const request = createResourceRequest$R(resourceParams);
22242
- const key = keyBuilder$2x(luvio, config);
21445
+ const key = keyBuilder$2w(luvio, config);
22243
21446
  const trackedFieldsConfig = {
22244
21447
  maxDepth: configurationForRestAdapters.getTrackedFieldDepthOnCacheMiss(),
22245
21448
  onlyFetchLeafNodeIdAndName: configurationForRestAdapters.getTrackedFieldLeafNodeIdAndNameOnly()
@@ -22282,9 +21485,9 @@ const getQuickActionDefaults_ConfigPropertyMetadata = [
22282
21485
  ];
22283
21486
  const getQuickActionDefaults_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$J, getQuickActionDefaults_ConfigPropertyMetadata);
22284
21487
  const createResourceParams$N = /*#__PURE__*/ createResourceParams$l(getQuickActionDefaults_ConfigPropertyMetadata);
22285
- function keyBuilder$2x(luvio, config) {
21488
+ function keyBuilder$2w(luvio, config) {
22286
21489
  const resourceParams = createResourceParams$N(config);
22287
- return keyBuilder$2y(luvio, resourceParams);
21490
+ return keyBuilder$2x(luvio, resourceParams);
22288
21491
  }
22289
21492
  function typeCheckConfig$S(untrustedConfig) {
22290
21493
  const config = {};
@@ -22307,7 +21510,7 @@ function validateAdapterConfig$V(untrustedConfig, configPropertyNames) {
22307
21510
  }
22308
21511
  function buildCachedSnapshot$5(luvio, config) {
22309
21512
  const selector = {
22310
- recordId: keyBuilder$2x(luvio, config),
21513
+ recordId: keyBuilder$2w(luvio, config),
22311
21514
  node: adapterFragment$z(luvio, config),
22312
21515
  variables: {},
22313
21516
  };
@@ -22329,7 +21532,7 @@ function buildNetworkSnapshotCachePolicy$G(context, coercedAdapterRequestContext
22329
21532
  function buildCachedSnapshotCachePolicy$G(context, storeLookup) {
22330
21533
  const { luvio, config } = context;
22331
21534
  const selector = {
22332
- recordId: keyBuilder$2x(luvio, config),
21535
+ recordId: keyBuilder$2w(luvio, config),
22333
21536
  node: adapterFragment$z(luvio, config),
22334
21537
  variables: {},
22335
21538
  };
@@ -22352,15 +21555,15 @@ const getQuickActionDefaultsAdapterFactory = (luvio) => function UiApi__getQuick
22352
21555
  function select$2s(luvio, params) {
22353
21556
  return select$2A();
22354
21557
  }
22355
- function keyBuilder$2w(luvio, params) {
21558
+ function keyBuilder$2v(luvio, params) {
22356
21559
  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 + ')';
22357
21560
  }
22358
21561
  function getResponseCacheKeys$M(storeKeyMap, luvio, resourceParams, response) {
22359
- getTypeCacheKeys$1H(storeKeyMap, luvio, response, () => keyBuilder$2w(luvio, resourceParams));
21562
+ getTypeCacheKeys$1H(storeKeyMap, luvio, response, () => keyBuilder$2v(luvio, resourceParams));
22360
21563
  }
22361
21564
  function ingestSuccess$E(luvio, resourceParams, response, snapshotRefresh) {
22362
21565
  const { body } = response;
22363
- const key = keyBuilder$2w(luvio, resourceParams);
21566
+ const key = keyBuilder$2v(luvio, resourceParams);
22364
21567
  luvio.storeIngest(key, ingest$1F, body);
22365
21568
  const snapshot = luvio.storeLookup({
22366
21569
  recordId: key,
@@ -22376,12 +21579,12 @@ function ingestSuccess$E(luvio, resourceParams, response, snapshotRefresh) {
22376
21579
  return snapshot;
22377
21580
  }
22378
21581
  function ingestError$z(luvio, params, error, snapshotRefresh) {
22379
- const key = keyBuilder$2w(luvio, params);
21582
+ const key = keyBuilder$2v(luvio, params);
22380
21583
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
22381
21584
  const storeMetadataParams = {
22382
21585
  ttl: TTL$u,
22383
21586
  namespace: keyPrefix,
22384
- version: VERSION$24,
21587
+ version: VERSION$23,
22385
21588
  representationName: RepresentationType$G
22386
21589
  };
22387
21590
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -22416,9 +21619,9 @@ const getRecordActions_ConfigPropertyMetadata = [
22416
21619
  ];
22417
21620
  const getRecordActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$I, getRecordActions_ConfigPropertyMetadata);
22418
21621
  const createResourceParams$M = /*#__PURE__*/ createResourceParams$l(getRecordActions_ConfigPropertyMetadata);
22419
- function keyBuilder$2v(luvio, config) {
21622
+ function keyBuilder$2u(luvio, config) {
22420
21623
  const resourceParams = createResourceParams$M(config);
22421
- return keyBuilder$2w(luvio, resourceParams);
21624
+ return keyBuilder$2v(luvio, resourceParams);
22422
21625
  }
22423
21626
  function typeCheckConfig$R(untrustedConfig) {
22424
21627
  const config = {};
@@ -22481,7 +21684,7 @@ function buildNetworkSnapshotCachePolicy$F(context, coercedAdapterRequestContext
22481
21684
  function buildCachedSnapshotCachePolicy$F(context, storeLookup) {
22482
21685
  const { luvio, config } = context;
22483
21686
  const selector = {
22484
- recordId: keyBuilder$2v(luvio, config),
21687
+ recordId: keyBuilder$2u(luvio, config),
22485
21688
  node: adapterFragment$y(luvio, config),
22486
21689
  variables: {},
22487
21690
  };
@@ -22504,15 +21707,15 @@ const getRecordActionsAdapterFactory = (luvio) => function UiApi__getRecordActio
22504
21707
  function select$2r(luvio, params) {
22505
21708
  return select$2A();
22506
21709
  }
22507
- function keyBuilder$2u(luvio, params) {
21710
+ function keyBuilder$2t(luvio, params) {
22508
21711
  return keyPrefix + '::ActionRepresentation:(' + 'actionTypes:' + params.queryParams.actionTypes + ',' + 'formFactor:' + params.queryParams.formFactor + ',' + 'sections:' + params.queryParams.sections + ',' + 'recordIds:' + params.urlParams.recordIds + ')';
22509
21712
  }
22510
21713
  function getResponseCacheKeys$L(storeKeyMap, luvio, resourceParams, response) {
22511
- getTypeCacheKeys$1H(storeKeyMap, luvio, response, () => keyBuilder$2u(luvio, resourceParams));
21714
+ getTypeCacheKeys$1H(storeKeyMap, luvio, response, () => keyBuilder$2t(luvio, resourceParams));
22512
21715
  }
22513
21716
  function ingestSuccess$D(luvio, resourceParams, response, snapshotRefresh) {
22514
21717
  const { body } = response;
22515
- const key = keyBuilder$2u(luvio, resourceParams);
21718
+ const key = keyBuilder$2t(luvio, resourceParams);
22516
21719
  luvio.storeIngest(key, ingest$1F, body);
22517
21720
  const snapshot = luvio.storeLookup({
22518
21721
  recordId: key,
@@ -22528,12 +21731,12 @@ function ingestSuccess$D(luvio, resourceParams, response, snapshotRefresh) {
22528
21731
  return snapshot;
22529
21732
  }
22530
21733
  function ingestError$y(luvio, params, error, snapshotRefresh) {
22531
- const key = keyBuilder$2u(luvio, params);
21734
+ const key = keyBuilder$2t(luvio, params);
22532
21735
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
22533
21736
  const storeMetadataParams = {
22534
21737
  ttl: TTL$u,
22535
21738
  namespace: keyPrefix,
22536
- version: VERSION$24,
21739
+ version: VERSION$23,
22537
21740
  representationName: RepresentationType$G
22538
21741
  };
22539
21742
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -22562,9 +21765,9 @@ const getRecordEditActions_ConfigPropertyMetadata = [
22562
21765
  ];
22563
21766
  const getRecordEditActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$H, getRecordEditActions_ConfigPropertyMetadata);
22564
21767
  const createResourceParams$L = /*#__PURE__*/ createResourceParams$l(getRecordEditActions_ConfigPropertyMetadata);
22565
- function keyBuilder$2t(luvio, config) {
21768
+ function keyBuilder$2s(luvio, config) {
22566
21769
  const resourceParams = createResourceParams$L(config);
22567
- return keyBuilder$2u(luvio, resourceParams);
21770
+ return keyBuilder$2t(luvio, resourceParams);
22568
21771
  }
22569
21772
  function typeCheckConfig$Q(untrustedConfig) {
22570
21773
  const config = {};
@@ -22623,7 +21826,7 @@ function buildNetworkSnapshotCachePolicy$E(context, coercedAdapterRequestContext
22623
21826
  function buildCachedSnapshotCachePolicy$E(context, storeLookup) {
22624
21827
  const { luvio, config } = context;
22625
21828
  const selector = {
22626
- recordId: keyBuilder$2t(luvio, config),
21829
+ recordId: keyBuilder$2s(luvio, config),
22627
21830
  node: adapterFragment$x(luvio, config),
22628
21831
  variables: {},
22629
21832
  };
@@ -22716,15 +21919,15 @@ function validate$19(obj, path = 'ActionRelatedListSingleBatchInputRepresentatio
22716
21919
  function select$2q(luvio, params) {
22717
21920
  return select$2A();
22718
21921
  }
22719
- function keyBuilder$2s(luvio, params) {
21922
+ function keyBuilder$2r(luvio, params) {
22720
21923
  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) + ')';
22721
21924
  }
22722
21925
  function getResponseCacheKeys$K(storeKeyMap, luvio, resourceParams, response) {
22723
- getTypeCacheKeys$1H(storeKeyMap, luvio, response, () => keyBuilder$2s(luvio, resourceParams));
21926
+ getTypeCacheKeys$1H(storeKeyMap, luvio, response, () => keyBuilder$2r(luvio, resourceParams));
22724
21927
  }
22725
21928
  function ingestSuccess$C(luvio, resourceParams, response, snapshotRefresh) {
22726
21929
  const { body } = response;
22727
- const key = keyBuilder$2s(luvio, resourceParams);
21930
+ const key = keyBuilder$2r(luvio, resourceParams);
22728
21931
  luvio.storeIngest(key, ingest$1F, body);
22729
21932
  const snapshot = luvio.storeLookup({
22730
21933
  recordId: key,
@@ -22740,12 +21943,12 @@ function ingestSuccess$C(luvio, resourceParams, response, snapshotRefresh) {
22740
21943
  return snapshot;
22741
21944
  }
22742
21945
  function ingestError$x(luvio, params, error, snapshotRefresh) {
22743
- const key = keyBuilder$2s(luvio, params);
21946
+ const key = keyBuilder$2r(luvio, params);
22744
21947
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
22745
21948
  const storeMetadataParams = {
22746
21949
  ttl: TTL$u,
22747
21950
  namespace: keyPrefix,
22748
- version: VERSION$24,
21951
+ version: VERSION$23,
22749
21952
  representationName: RepresentationType$G
22750
21953
  };
22751
21954
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -22765,7 +21968,7 @@ function createResourceRequest$O(config) {
22765
21968
  };
22766
21969
  }
22767
21970
 
22768
- const createChildResourceParams$7 = (resourceParams) => {
21971
+ function createChildResourceParams$a(resourceParams) {
22769
21972
  const childConfigs = [];
22770
21973
  for (let index = 0, len = resourceParams.body.relatedListsActionParameters.length; index < len; index += 1) {
22771
21974
  let childConfig = {
@@ -22795,12 +21998,13 @@ const createChildResourceParams$7 = (resourceParams) => {
22795
21998
  childConfigs.push(childConfig);
22796
21999
  }
22797
22000
  return childConfigs;
22798
- };
22799
- // HUGE BLOCK OF COPY PASTED CODE:
22800
- // WE NEED TO DO THIS SO THAT THE ADAPTER CAN USE ONLY OUR OVERRIDE FILE
22801
- // PLEASE DO NOT CHANGE ANYTHING HERE...
22802
- function select$2p(luvio, resourceParams) {
22803
- const childResources = createChildResourceParams$7(resourceParams);
22001
+ }
22002
+
22003
+ const nonCachedErrors$7 = ObjectCreate$1(null);
22004
+ function createChildResourceParams$9(resourceParams) {
22005
+ return createChildResourceParams$a(resourceParams);
22006
+ }
22007
+ function selectChildResourceParams$7(luvio, childResources, resourceParams) {
22804
22008
  const envelopeBodyPath = 'result';
22805
22009
  const envelopeStatusCodePath = 'statusCode';
22806
22010
  const envelopePath = 'results';
@@ -22809,21 +22013,36 @@ function select$2p(luvio, resourceParams) {
22809
22013
  reader: true,
22810
22014
  synthetic: true,
22811
22015
  read: (reader) => {
22016
+ // Top-level 404 lookup
22017
+ const result = reader.storeLookup(keyBuilder$2q(luvio, resourceParams));
22018
+ if (result.state === reader.StoreResolveResultState.Error && result.value.status === 404) {
22019
+ return {
22020
+ state: 'Error',
22021
+ value: result.value,
22022
+ };
22023
+ }
22812
22024
  const sink = {};
22813
22025
  reader.enterPath(envelopePath);
22814
22026
  const results = [];
22815
22027
  for (let i = 0, len = childResources.length; i < len; i += 1) {
22816
22028
  reader.enterPath(i);
22029
+ reader.enterPath(envelopeBodyPath);
22817
22030
  const childResource = childResources[i];
22818
- const childKey = keyBuilder$2s(luvio, childResource);
22031
+ const childKey = keyBuilder$2r(luvio, childResource);
22819
22032
  const childFragment = select$2q();
22033
+ const isMissingDataBeforeChildRead = reader.getIsDataMissing();
22820
22034
  const childSnapshot = reader.read({
22821
22035
  recordId: childKey,
22822
22036
  node: childFragment,
22823
22037
  variables: {},
22824
22038
  });
22039
+ reader.exitPath();
22825
22040
  const childSink = {};
22041
+ reader.markSeenId(childKey);
22826
22042
  switch (childSnapshot.state) {
22043
+ case 'Stale':
22044
+ reader.markStale();
22045
+ // Stale needs envelope bodies filled in so don't break
22827
22046
  case 'Fulfilled':
22828
22047
  reader.enterPath(envelopeStatusCodePath);
22829
22048
  reader.assignScalar(envelopeStatusCodePath, childSink, 200);
@@ -22833,7 +22052,6 @@ function select$2p(luvio, resourceParams) {
22833
22052
  reader.exitPath();
22834
22053
  break;
22835
22054
  case 'Error':
22836
- // eslint-disable-next-line no-case-declarations
22837
22055
  const childSnapshotError = childSnapshot.error;
22838
22056
  reader.enterPath(envelopeStatusCodePath);
22839
22057
  reader.assignScalar(envelopeStatusCodePath, childSink, childSnapshotError.status);
@@ -22843,98 +22061,162 @@ function select$2p(luvio, resourceParams) {
22843
22061
  reader.exitPath();
22844
22062
  break;
22845
22063
  case 'Unfulfilled':
22846
- reader.markMissing();
22064
+ // if child snapshot doesn't have any data then
22065
+ // that means the child record key is missing
22066
+ if (childSnapshot.data === undefined) {
22067
+ if (reader.isRebuilding() === false) {
22068
+ // not a rebuild, mark as missing and move on
22069
+ reader.markMissingLink(childKey);
22070
+ break;
22071
+ }
22072
+ // On rebuilds we have to check if there is a non-cached
22073
+ // error that we know about. If we don't do this then
22074
+ // rebuilds will go into endless refresh loop if a child
22075
+ // has non-cached errors (since the top-level composite
22076
+ // snapshot will look like an Unfulfilled snapshot
22077
+ // instead of an error snapshot).
22078
+ const nonCachedError = nonCachedErrors$7[childKey];
22079
+ if (nonCachedError === undefined || nonCachedError.expiration < reader.getTimeStamp()) {
22080
+ reader.markMissingLink(childKey);
22081
+ }
22082
+ else {
22083
+ // if this child error was the only reason the reader
22084
+ // is marked as missing then we want to undo that
22085
+ if (isMissingDataBeforeChildRead === false) {
22086
+ reader.unMarkMissing();
22087
+ }
22088
+ // put status code and body into reader path
22089
+ const { response: nonCachedBody, status: nonCachedStatus } = nonCachedError;
22090
+ reader.enterPath(envelopeStatusCodePath);
22091
+ reader.assignScalar(envelopeStatusCodePath, childSink, nonCachedStatus);
22092
+ reader.exitPath();
22093
+ reader.enterPath(envelopeBodyPath);
22094
+ reader.assignNonScalar(childSink, envelopeBodyPath, nonCachedBody);
22095
+ reader.exitPath();
22096
+ }
22097
+ }
22847
22098
  break;
22848
22099
  case 'Pending':
22849
22100
  reader.markPending();
22850
22101
  break;
22851
- case 'Stale':
22852
- reader.markStale();
22853
- break;
22854
22102
  }
22855
22103
  ArrayPrototypePush.call(results, childSink);
22856
22104
  reader.exitPath();
22857
22105
  }
22858
22106
  reader.assignNonScalar(sink, envelopePath, results);
22859
- deepFreeze(sink);
22860
22107
  reader.exitPath();
22861
22108
  return sink;
22862
- },
22109
+ }
22863
22110
  };
22864
22111
  }
22865
- function keyBuilder$2r(luvio, params) {
22866
- return (keyPrefix +
22867
- '::' +
22868
- 'ActionRelatedListsCollectionBatchRepresentation(' +
22869
- 'relatedListsActionParameters:' +
22870
- params.body.relatedListsActionParameters +
22871
- ')');
22112
+ function select$2p(luvio, resourceParams) {
22113
+ const childResources = createChildResourceParams$9(resourceParams);
22114
+ return selectChildResourceParams$7(luvio, childResources, resourceParams);
22872
22115
  }
22873
- function ingestSuccess$B(luvio, resourceParams, response, _snapshotRefresh) {
22874
- const childEnvelopes = response.body.results;
22875
- const childResourceParamsArray = createChildResourceParams$7(resourceParams);
22116
+ function keyBuilder$2q(luvio, params) {
22117
+ 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(',') + ']' + ')';
22118
+ }
22119
+ function getResponseCacheKeys$J(keys, luvio, resourceParams, response) {
22120
+ const childEnvelopes = response.results;
22121
+ const childResourceParamsArray = createChildResourceParams$9(resourceParams);
22876
22122
  if (process.env.NODE_ENV !== 'production') {
22877
22123
  if (childResourceParamsArray.length !== childEnvelopes.length) {
22878
- throw new Error('Invalid composite resource response. Expected ' +
22879
- childResourceParamsArray.length +
22880
- ' items, received ' +
22881
- childEnvelopes.length);
22124
+ throw new Error('Invalid composite resource response. Expected ' + childResourceParamsArray.length + ' items, received ' + childEnvelopes.length);
22882
22125
  }
22883
22126
  }
22884
- let snapshotState = 'Fulfilled';
22885
- const key = keyBuilder$2r(luvio, resourceParams);
22127
+ // get children keys
22128
+ for (let index = 0, len = childResourceParamsArray.length; index < len; index++) {
22129
+ const childResourceParams = childResourceParamsArray[index];
22130
+ const childResult = childEnvelopes[index];
22131
+ const { statusCode: childStatusCode, result: childBody } = childResult;
22132
+ if (childStatusCode === 200) {
22133
+ getResponseCacheKeys$K(keys, luvio, childResourceParams, childBody);
22134
+ }
22135
+ else if (childStatusCode === 404) {
22136
+ const childKey = keyBuilder$2r(luvio, childResourceParams);
22137
+ keys.set(childKey, {
22138
+ namespace: keyPrefix,
22139
+ representationName: RepresentationType$G,
22140
+ mergeable: false
22141
+ });
22142
+ }
22143
+ }
22144
+ }
22145
+ function ingestSuccessChildResourceParams$7(luvio, childResourceParamsArray, childEnvelopes) {
22886
22146
  const childSnapshotDataResponses = [];
22887
22147
  let seenRecords = new StoreKeySet();
22148
+ let snapshotState = 'Fulfilled';
22149
+ const now = Date.now();
22888
22150
  for (let index = 0, len = childResourceParamsArray.length; index < len; index += 1) {
22889
22151
  const childResourceParams = childResourceParamsArray[index];
22152
+ const childKey = keyBuilder$2r(luvio, childResourceParams);
22890
22153
  const result = childEnvelopes[index];
22891
- const childStatusCodeText = getFetchResponseStatusText(result.statusCode);
22892
- if (result.statusCode === 200) {
22893
- const { statusCode: childStatusCode, result: childBody } = result;
22154
+ const { statusCode: childStatusCode, result: childBody } = result;
22155
+ if (childStatusCode === 200) {
22894
22156
  const childResponse = {
22895
- status: childStatusCode,
22157
+ status: 200,
22896
22158
  body: childBody,
22897
22159
  ok: true,
22898
- statusText: childStatusCodeText,
22160
+ statusText: 'OK',
22899
22161
  headers: {},
22900
22162
  };
22901
22163
  const childSnapshot = ingestSuccess$C(luvio, childResourceParams, childResponse);
22164
+ if (childSnapshot.state === "Stale") {
22165
+ snapshotState = "Stale";
22166
+ }
22902
22167
  seenRecords.merge(childSnapshot.seenRecords);
22903
22168
  seenRecords.add(childSnapshot.recordId);
22904
- if (childSnapshot.state === 'Pending') {
22905
- snapshotState = 'Pending';
22906
- break;
22907
- }
22908
22169
  const childValue = {
22909
- statusCode: childStatusCode,
22170
+ statusCode: 200,
22910
22171
  result: childSnapshot.data,
22911
22172
  };
22912
- childSnapshotDataResponses.push(childValue);
22173
+ deepFreeze(childValue);
22174
+ ArrayPrototypePush.call(childSnapshotDataResponses, childValue);
22913
22175
  }
22914
22176
  else {
22915
- const { statusCode: childStatusCode, result: childBody } = result;
22177
+ const childStatusCodeText = getFetchResponseStatusText(result.statusCode);
22916
22178
  const childResponse = {
22917
22179
  status: childStatusCode,
22918
22180
  body: childBody,
22919
22181
  ok: false,
22920
22182
  statusText: childStatusCodeText,
22921
22183
  headers: {},
22922
- errorType: 'fetchResponse',
22184
+ errorType: 'fetchResponse'
22923
22185
  };
22924
22186
  ingestError$x(luvio, childResourceParams, childResponse);
22925
- seenRecords.add(keyBuilder$2s(luvio, childResourceParams));
22187
+ seenRecords.add(childKey);
22926
22188
  const childValue = {
22927
22189
  statusCode: childStatusCode,
22928
22190
  result: childBody,
22929
22191
  };
22930
- childSnapshotDataResponses.push(childValue);
22192
+ deepFreeze(childValue);
22193
+ ArrayPrototypePush.call(childSnapshotDataResponses, childValue);
22194
+ }
22195
+ // track non-cached responses so rebuilds work properly
22196
+ if (childStatusCode !== 404 && childStatusCode !== 200) {
22197
+ nonCachedErrors$7[childKey] = { expiration: now + TTL$u, response: childBody, status: childStatusCode };
22198
+ }
22199
+ else {
22200
+ delete nonCachedErrors$7[childKey];
22931
22201
  }
22932
22202
  }
22933
22203
  const childSnapshotData = {
22934
- results: childSnapshotDataResponses,
22204
+ results: childSnapshotDataResponses
22935
22205
  };
22936
22206
  deepFreeze(childSnapshotData);
22937
- return {
22207
+ return { childSnapshotData: childSnapshotData, seenRecords, snapshotState };
22208
+ }
22209
+ function ingestSuccess$B(luvio, resourceParams, response, snapshotRefresh) {
22210
+ const childEnvelopes = response.body.results;
22211
+ const childResourceParamsArray = createChildResourceParams$9(resourceParams);
22212
+ if (process.env.NODE_ENV !== 'production') {
22213
+ if (childResourceParamsArray.length !== childEnvelopes.length) {
22214
+ throw new Error('Invalid composite resource response. Expected ' + childResourceParamsArray.length + ' items, received ' + childEnvelopes.length);
22215
+ }
22216
+ }
22217
+ const key = keyBuilder$2q(luvio, resourceParams);
22218
+ const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$7(luvio, childResourceParamsArray, childEnvelopes);
22219
+ const syntheticSnapshot = {
22938
22220
  recordId: key,
22939
22221
  data: childSnapshotData,
22940
22222
  state: snapshotState,
@@ -22944,44 +22226,19 @@ function ingestSuccess$B(luvio, resourceParams, response, _snapshotRefresh) {
22944
22226
  node: select$2p(luvio, resourceParams),
22945
22227
  variables: {},
22946
22228
  },
22947
- variables: {},
22229
+ refresh: snapshotRefresh,
22230
+ variables: {}
22948
22231
  };
22232
+ // evict top level composite record from the store. This covers the case where a previous resource request returned a 404.
22233
+ luvio.storeEvict(key);
22234
+ return syntheticSnapshot;
22949
22235
  }
22950
22236
  function ingestError$w(luvio, params, error, snapshotRefresh) {
22951
- const key = keyBuilder$2r(luvio, params);
22237
+ const key = keyBuilder$2q(luvio, params);
22952
22238
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
22953
22239
  luvio.storeIngestError(key, errorSnapshot);
22954
22240
  return errorSnapshot;
22955
22241
  }
22956
- function getResponseCacheKeys$J(keys, luvio, resourceParams, response) {
22957
- const childEnvelopes = response.results;
22958
- const childResourceParamsArray = createChildResourceParams$7(resourceParams);
22959
- if (process.env.NODE_ENV !== 'production') {
22960
- if (childResourceParamsArray.length !== childEnvelopes.length) {
22961
- throw new Error('Invalid composite resource response. Expected ' +
22962
- childResourceParamsArray.length +
22963
- ' items, received ' +
22964
- childEnvelopes.length);
22965
- }
22966
- }
22967
- // get children keys
22968
- for (let index = 0, len = childResourceParamsArray.length; index < len; index++) {
22969
- const childResourceParams = childResourceParamsArray[index];
22970
- const childResult = childEnvelopes[index];
22971
- const { statusCode: childStatusCode, result: childBody } = childResult;
22972
- if (childStatusCode === 200) {
22973
- getResponseCacheKeys$K(keys, luvio, childResourceParams, childBody);
22974
- }
22975
- else if (childStatusCode === 404) {
22976
- const childKey = keyBuilder$2s(luvio, childResourceParams);
22977
- keys.set(childKey, {
22978
- namespace: keyPrefix,
22979
- representationName: childKey.split('::')[1].split(':')[0],
22980
- mergeable: false,
22981
- });
22982
- }
22983
- }
22984
- }
22985
22242
  function createResourceRequest$N(config) {
22986
22243
  const headers = {};
22987
22244
  return {
@@ -23003,9 +22260,9 @@ const getRelatedListsActions_ConfigPropertyMetadata = [
23003
22260
  ];
23004
22261
  const getRelatedListsActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$G, getRelatedListsActions_ConfigPropertyMetadata);
23005
22262
  const createResourceParams$K = /*#__PURE__*/ createResourceParams$l(getRelatedListsActions_ConfigPropertyMetadata);
23006
- function keyBuilder$2q(luvio, config) {
22263
+ function keyBuilder$2p(luvio, config) {
23007
22264
  const resourceParams = createResourceParams$K(config);
23008
- return keyBuilder$2r(luvio, resourceParams);
22265
+ return keyBuilder$2q(luvio, resourceParams);
23009
22266
  }
23010
22267
  function typeCheckConfig$P(untrustedConfig) {
23011
22268
  const config = {};
@@ -23043,7 +22300,10 @@ function adapterFragment$w(luvio, config) {
23043
22300
  return select$2p(luvio, resourceParams);
23044
22301
  }
23045
22302
  function onFetchResponseSuccess$A(luvio, config, resourceParams, response) {
23046
- const snapshot = ingestSuccess$B(luvio, resourceParams, response);
22303
+ const snapshot = ingestSuccess$B(luvio, resourceParams, response, {
22304
+ config,
22305
+ resolve: () => buildNetworkSnapshot$N(luvio, config, snapshotRefreshOptions)
22306
+ });
23047
22307
  return luvio.storeBroadcast().then(() => snapshot);
23048
22308
  }
23049
22309
  function onFetchResponseError$A(luvio, config, resourceParams, response) {
@@ -23073,7 +22333,7 @@ function buildNetworkSnapshotCachePolicy$D(context, coercedAdapterRequestContext
23073
22333
  function buildCachedSnapshotCachePolicy$D(context, storeLookup) {
23074
22334
  const { luvio, config } = context;
23075
22335
  const selector = {
23076
- recordId: keyBuilder$2q(luvio, config),
22336
+ recordId: keyBuilder$2p(luvio, config),
23077
22337
  node: adapterFragment$w(luvio, config),
23078
22338
  variables: {},
23079
22339
  };
@@ -23105,9 +22365,9 @@ const getRelatedListActions_ConfigPropertyMetadata = [
23105
22365
  ];
23106
22366
  const getRelatedListActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$F, getRelatedListActions_ConfigPropertyMetadata);
23107
22367
  const createResourceParams$J = /*#__PURE__*/ createResourceParams$l(getRelatedListActions_ConfigPropertyMetadata);
23108
- function keyBuilder$2p(luvio, config) {
22368
+ function keyBuilder$2o(luvio, config) {
23109
22369
  const resourceParams = createResourceParams$J(config);
23110
- return keyBuilder$2s(luvio, resourceParams);
22370
+ return keyBuilder$2r(luvio, resourceParams);
23111
22371
  }
23112
22372
  function typeCheckConfig$O(untrustedConfig) {
23113
22373
  const config = {};
@@ -23166,7 +22426,7 @@ function buildNetworkSnapshotCachePolicy$C(context, coercedAdapterRequestContext
23166
22426
  function buildCachedSnapshotCachePolicy$C(context, storeLookup) {
23167
22427
  const { luvio, config } = context;
23168
22428
  const selector = {
23169
- recordId: keyBuilder$2p(luvio, config),
22429
+ recordId: keyBuilder$2o(luvio, config),
23170
22430
  node: adapterFragment$v(luvio, config),
23171
22431
  variables: {},
23172
22432
  };
@@ -23189,15 +22449,15 @@ const getRelatedListActionsAdapterFactory = (luvio) => function UiApi__getRelate
23189
22449
  function select$2o(luvio, params) {
23190
22450
  return select$2A();
23191
22451
  }
23192
- function keyBuilder$2o(luvio, params) {
22452
+ function keyBuilder$2n(luvio, params) {
23193
22453
  return keyPrefix + '::ActionRepresentation:(' + 'actionTypes:' + params.queryParams.actionTypes + ',' + 'formFactor:' + params.queryParams.formFactor + ',' + 'sections:' + params.queryParams.sections + ',' + 'recordIds:' + params.urlParams.recordIds + ',' + 'relatedListRecordIds:' + params.urlParams.relatedListRecordIds + ')';
23194
22454
  }
23195
22455
  function getResponseCacheKeys$I(storeKeyMap, luvio, resourceParams, response) {
23196
- getTypeCacheKeys$1H(storeKeyMap, luvio, response, () => keyBuilder$2o(luvio, resourceParams));
22456
+ getTypeCacheKeys$1H(storeKeyMap, luvio, response, () => keyBuilder$2n(luvio, resourceParams));
23197
22457
  }
23198
22458
  function ingestSuccess$A(luvio, resourceParams, response, snapshotRefresh) {
23199
22459
  const { body } = response;
23200
- const key = keyBuilder$2o(luvio, resourceParams);
22460
+ const key = keyBuilder$2n(luvio, resourceParams);
23201
22461
  luvio.storeIngest(key, ingest$1F, body);
23202
22462
  const snapshot = luvio.storeLookup({
23203
22463
  recordId: key,
@@ -23213,12 +22473,12 @@ function ingestSuccess$A(luvio, resourceParams, response, snapshotRefresh) {
23213
22473
  return snapshot;
23214
22474
  }
23215
22475
  function ingestError$v(luvio, params, error, snapshotRefresh) {
23216
- const key = keyBuilder$2o(luvio, params);
22476
+ const key = keyBuilder$2n(luvio, params);
23217
22477
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
23218
22478
  const storeMetadataParams = {
23219
22479
  ttl: TTL$u,
23220
22480
  namespace: keyPrefix,
23221
- version: VERSION$24,
22481
+ version: VERSION$23,
23222
22482
  representationName: RepresentationType$G
23223
22483
  };
23224
22484
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -23248,9 +22508,9 @@ const getRelatedListRecordActions_ConfigPropertyMetadata = [
23248
22508
  ];
23249
22509
  const getRelatedListRecordActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$E, getRelatedListRecordActions_ConfigPropertyMetadata);
23250
22510
  const createResourceParams$I = /*#__PURE__*/ createResourceParams$l(getRelatedListRecordActions_ConfigPropertyMetadata);
23251
- function keyBuilder$2n(luvio, config) {
22511
+ function keyBuilder$2m(luvio, config) {
23252
22512
  const resourceParams = createResourceParams$I(config);
23253
- return keyBuilder$2o(luvio, resourceParams);
22513
+ return keyBuilder$2n(luvio, resourceParams);
23254
22514
  }
23255
22515
  function typeCheckConfig$N(untrustedConfig) {
23256
22516
  const config = {};
@@ -23309,7 +22569,7 @@ function buildNetworkSnapshotCachePolicy$B(context, coercedAdapterRequestContext
23309
22569
  function buildCachedSnapshotCachePolicy$B(context, storeLookup) {
23310
22570
  const { luvio, config } = context;
23311
22571
  const selector = {
23312
- recordId: keyBuilder$2n(luvio, config),
22572
+ recordId: keyBuilder$2m(luvio, config),
23313
22573
  node: adapterFragment$u(luvio, config),
23314
22574
  variables: {},
23315
22575
  };
@@ -23329,7 +22589,7 @@ const getRelatedListRecordActionsAdapterFactory = (luvio) => function UiApi__get
23329
22589
  buildCachedSnapshotCachePolicy$B, buildNetworkSnapshotCachePolicy$B);
23330
22590
  };
23331
22591
 
23332
- const VERSION$21 = "a316b3bba367f54adc67d7552ed7d36d";
22592
+ const VERSION$20 = "a316b3bba367f54adc67d7552ed7d36d";
23333
22593
  function validate$18(obj, path = 'PageReferenceRepresentation') {
23334
22594
  const v_error = (() => {
23335
22595
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -23378,7 +22638,7 @@ function normalize$x(input, existing, path, luvio, store, timestamp) {
23378
22638
  const select$2n = function PageReferenceRepresentationSelect() {
23379
22639
  return {
23380
22640
  kind: 'Fragment',
23381
- version: VERSION$21,
22641
+ version: VERSION$20,
23382
22642
  private: [],
23383
22643
  opaque: true
23384
22644
  };
@@ -23398,7 +22658,7 @@ const ingest$1C = function PageReferenceRepresentationIngest(input, path, luvio,
23398
22658
  }
23399
22659
  const key = path.fullPath;
23400
22660
  const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
23401
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$x, "UiApi", VERSION$21, RepresentationType$D, equals$K);
22661
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$x, "UiApi", VERSION$20, RepresentationType$D, equals$K);
23402
22662
  return createLink$1(key);
23403
22663
  };
23404
22664
  function getTypeCacheKeys$1E(rootKeySet, luvio, input, fullPathFactory) {
@@ -23412,7 +22672,7 @@ function getTypeCacheKeys$1E(rootKeySet, luvio, input, fullPathFactory) {
23412
22672
  }
23413
22673
 
23414
22674
  const TTL$s = 120000;
23415
- const VERSION$20 = "09884ca5bf90ea4662092a4e48817081";
22675
+ const VERSION$1$ = "09884ca5bf90ea4662092a4e48817081";
23416
22676
  function validate$17(obj, path = 'NavItemRepresentation') {
23417
22677
  const v_error = (() => {
23418
22678
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -23623,14 +22883,14 @@ function validate$17(obj, path = 'NavItemRepresentation') {
23623
22883
  return v_error === undefined ? null : v_error;
23624
22884
  }
23625
22885
  const RepresentationType$C = 'NavItemRepresentation';
23626
- function keyBuilder$2m(luvio, config) {
22886
+ function keyBuilder$2l(luvio, config) {
23627
22887
  return keyPrefix + '::' + RepresentationType$C + ':' + config.developerName;
23628
22888
  }
23629
22889
  function keyBuilderFromType$l(luvio, object) {
23630
22890
  const keyParams = {
23631
22891
  developerName: object.developerName
23632
22892
  };
23633
- return keyBuilder$2m(luvio, keyParams);
22893
+ return keyBuilder$2l(luvio, keyParams);
23634
22894
  }
23635
22895
  function normalize$w(input, existing, path, luvio, store, timestamp) {
23636
22896
  const input_pageReference = input.pageReference;
@@ -23652,7 +22912,7 @@ function normalize$w(input, existing, path, luvio, store, timestamp) {
23652
22912
  const select$2m = function NavItemRepresentationSelect() {
23653
22913
  return {
23654
22914
  kind: 'Fragment',
23655
- version: VERSION$20,
22915
+ version: VERSION$1$,
23656
22916
  private: [],
23657
22917
  selections: [
23658
22918
  {
@@ -23812,7 +23072,7 @@ const ingest$1B = function NavItemRepresentationIngest(input, path, luvio, store
23812
23072
  }
23813
23073
  const key = keyBuilderFromType$l(luvio, input);
23814
23074
  const ttlToUse = TTL$s;
23815
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$w, "UiApi", VERSION$20, RepresentationType$C, equals$J);
23075
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$w, "UiApi", VERSION$1$, RepresentationType$C, equals$J);
23816
23076
  return createLink$1(key);
23817
23077
  };
23818
23078
  function getTypeCacheKeys$1D(rootKeySet, luvio, input, fullPathFactory) {
@@ -23829,7 +23089,7 @@ function getTypeCacheKeys$1D(rootKeySet, luvio, input, fullPathFactory) {
23829
23089
  }
23830
23090
 
23831
23091
  const TTL$r = 300000;
23832
- const VERSION$1$ = "1781f2d3d4e413cf0c681774d82d02cd";
23092
+ const VERSION$1_ = "1781f2d3d4e413cf0c681774d82d02cd";
23833
23093
  function validate$16(obj, path = 'AppRepresentation') {
23834
23094
  const v_error = (() => {
23835
23095
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -24034,14 +23294,14 @@ function validate$16(obj, path = 'AppRepresentation') {
24034
23294
  return v_error === undefined ? null : v_error;
24035
23295
  }
24036
23296
  const RepresentationType$B = 'AppRepresentation';
24037
- function keyBuilder$2l(luvio, config) {
23297
+ function keyBuilder$2k(luvio, config) {
24038
23298
  return keyPrefix + '::' + RepresentationType$B + ':' + (config.appId === null ? '' : config.appId);
24039
23299
  }
24040
23300
  function keyBuilderFromType$k(luvio, object) {
24041
23301
  const keyParams = {
24042
23302
  appId: object.appId
24043
23303
  };
24044
- return keyBuilder$2l(luvio, keyParams);
23304
+ return keyBuilder$2k(luvio, keyParams);
24045
23305
  }
24046
23306
  function normalize$v(input, existing, path, luvio, store, timestamp) {
24047
23307
  const input_navItems = input.navItems;
@@ -24081,7 +23341,7 @@ function normalize$v(input, existing, path, luvio, store, timestamp) {
24081
23341
  const select$2l = function AppRepresentationSelect() {
24082
23342
  return {
24083
23343
  kind: 'Fragment',
24084
- version: VERSION$1$,
23344
+ version: VERSION$1_,
24085
23345
  private: [
24086
23346
  'eTag'
24087
23347
  ],
@@ -24279,7 +23539,7 @@ const ingest$1A = function AppRepresentationIngest(input, path, luvio, store, ti
24279
23539
  }
24280
23540
  const key = keyBuilderFromType$k(luvio, input);
24281
23541
  const ttlToUse = TTL$r;
24282
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$v, "UiApi", VERSION$1$, RepresentationType$B, equals$I);
23542
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$v, "UiApi", VERSION$1_, RepresentationType$B, equals$I);
24283
23543
  return createLink$1(key);
24284
23544
  };
24285
23545
  function getTypeCacheKeys$1C(rootKeySet, luvio, input, fullPathFactory) {
@@ -24301,7 +23561,7 @@ function getTypeCacheKeys$1C(rootKeySet, luvio, input, fullPathFactory) {
24301
23561
  }
24302
23562
 
24303
23563
  const TTL$q = 300000;
24304
- const VERSION$1_ = "a254babf0b6414315db7808a157fd9fc";
23564
+ const VERSION$1Z = "a254babf0b6414315db7808a157fd9fc";
24305
23565
  function validate$15(obj, path = 'AppsRepresentation') {
24306
23566
  const v_error = (() => {
24307
23567
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -24350,7 +23610,7 @@ function normalize$u(input, existing, path, luvio, store, timestamp) {
24350
23610
  const select$2k = function AppsRepresentationSelect() {
24351
23611
  return {
24352
23612
  kind: 'Fragment',
24353
- version: VERSION$1_,
23613
+ version: VERSION$1Z,
24354
23614
  private: [
24355
23615
  'eTag'
24356
23616
  ],
@@ -24391,7 +23651,7 @@ const ingest$1z = function AppsRepresentationIngest(input, path, luvio, store, t
24391
23651
  }
24392
23652
  const key = path.fullPath;
24393
23653
  const ttlToUse = TTL$q;
24394
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$u, "UiApi", VERSION$1_, RepresentationType$A, equals$H);
23654
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$u, "UiApi", VERSION$1Z, RepresentationType$A, equals$H);
24395
23655
  return createLink$1(key);
24396
23656
  };
24397
23657
  function getTypeCacheKeys$1B(rootKeySet, luvio, input, fullPathFactory) {
@@ -24411,15 +23671,15 @@ function getTypeCacheKeys$1B(rootKeySet, luvio, input, fullPathFactory) {
24411
23671
  function select$2j(luvio, params) {
24412
23672
  return select$2k();
24413
23673
  }
24414
- function keyBuilder$2k(luvio, params) {
23674
+ function keyBuilder$2j(luvio, params) {
24415
23675
  return keyPrefix + '::AppsRepresentation:(' + 'formFactor:' + params.queryParams.formFactor + ',' + 'userCustomizations:' + params.queryParams.userCustomizations + ')';
24416
23676
  }
24417
23677
  function getResponseCacheKeys$H(storeKeyMap, luvio, resourceParams, response) {
24418
- getTypeCacheKeys$1B(storeKeyMap, luvio, response, () => keyBuilder$2k(luvio, resourceParams));
23678
+ getTypeCacheKeys$1B(storeKeyMap, luvio, response, () => keyBuilder$2j(luvio, resourceParams));
24419
23679
  }
24420
23680
  function ingestSuccess$z(luvio, resourceParams, response, snapshotRefresh) {
24421
23681
  const { body } = response;
24422
- const key = keyBuilder$2k(luvio, resourceParams);
23682
+ const key = keyBuilder$2j(luvio, resourceParams);
24423
23683
  luvio.storeIngest(key, ingest$1z, body);
24424
23684
  const snapshot = luvio.storeLookup({
24425
23685
  recordId: key,
@@ -24435,12 +23695,12 @@ function ingestSuccess$z(luvio, resourceParams, response, snapshotRefresh) {
24435
23695
  return snapshot;
24436
23696
  }
24437
23697
  function ingestError$u(luvio, params, error, snapshotRefresh) {
24438
- const key = keyBuilder$2k(luvio, params);
23698
+ const key = keyBuilder$2j(luvio, params);
24439
23699
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
24440
23700
  const storeMetadataParams = {
24441
23701
  ttl: TTL$q,
24442
23702
  namespace: keyPrefix,
24443
- version: VERSION$1_,
23703
+ version: VERSION$1Z,
24444
23704
  representationName: RepresentationType$A
24445
23705
  };
24446
23706
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -24467,9 +23727,9 @@ const getAllApps_ConfigPropertyMetadata = [
24467
23727
  ];
24468
23728
  const getAllApps_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$D, getAllApps_ConfigPropertyMetadata);
24469
23729
  const createResourceParams$H = /*#__PURE__*/ createResourceParams$l(getAllApps_ConfigPropertyMetadata);
24470
- function keyBuilder$2j(luvio, config) {
23730
+ function keyBuilder$2i(luvio, config) {
24471
23731
  const resourceParams = createResourceParams$H(config);
24472
- return keyBuilder$2k(luvio, resourceParams);
23732
+ return keyBuilder$2j(luvio, resourceParams);
24473
23733
  }
24474
23734
  function typeCheckConfig$M(untrustedConfig) {
24475
23735
  const config = {};
@@ -24528,7 +23788,7 @@ function buildNetworkSnapshotCachePolicy$A(context, coercedAdapterRequestContext
24528
23788
  function buildCachedSnapshotCachePolicy$A(context, storeLookup) {
24529
23789
  const { luvio, config } = context;
24530
23790
  const selector = {
24531
- recordId: keyBuilder$2j(luvio, config),
23791
+ recordId: keyBuilder$2i(luvio, config),
24532
23792
  node: adapterFragment$t(luvio, config),
24533
23793
  variables: {},
24534
23794
  };
@@ -24551,8 +23811,8 @@ const getAllAppsAdapterFactory = (luvio) => function UiApi__getAllApps(untrusted
24551
23811
  function select$2h(luvio, params) {
24552
23812
  return select$2l();
24553
23813
  }
24554
- function keyBuilder$2g(luvio, params) {
24555
- return keyBuilder$2l(luvio, {
23814
+ function keyBuilder$2f(luvio, params) {
23815
+ return keyBuilder$2k(luvio, {
24556
23816
  appId: params.urlParams.appId
24557
23817
  });
24558
23818
  }
@@ -24561,7 +23821,7 @@ function getResponseCacheKeys$F(storeKeyMap, luvio, resourceParams, response) {
24561
23821
  }
24562
23822
  function ingestSuccess$x(luvio, resourceParams, response, snapshotRefresh) {
24563
23823
  const { body } = response;
24564
- const key = keyBuilder$2g(luvio, resourceParams);
23824
+ const key = keyBuilder$2f(luvio, resourceParams);
24565
23825
  luvio.storeIngest(key, ingest$1A, body);
24566
23826
  const snapshot = luvio.storeLookup({
24567
23827
  recordId: key,
@@ -24577,12 +23837,12 @@ function ingestSuccess$x(luvio, resourceParams, response, snapshotRefresh) {
24577
23837
  return snapshot;
24578
23838
  }
24579
23839
  function ingestError$s(luvio, params, error, snapshotRefresh) {
24580
- const key = keyBuilder$2g(luvio, params);
23840
+ const key = keyBuilder$2f(luvio, params);
24581
23841
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
24582
23842
  const storeMetadataParams = {
24583
23843
  ttl: TTL$r,
24584
23844
  namespace: keyPrefix,
24585
- version: VERSION$1$,
23845
+ version: VERSION$1_,
24586
23846
  representationName: RepresentationType$B
24587
23847
  };
24588
23848
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -24610,9 +23870,9 @@ const getAppDetails_ConfigPropertyMetadata = [
24610
23870
  ];
24611
23871
  const getAppDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$B, getAppDetails_ConfigPropertyMetadata);
24612
23872
  const createResourceParams$F = /*#__PURE__*/ createResourceParams$l(getAppDetails_ConfigPropertyMetadata);
24613
- function keyBuilder$2f(luvio, config) {
23873
+ function keyBuilder$2e(luvio, config) {
24614
23874
  const resourceParams = createResourceParams$F(config);
24615
- return keyBuilder$2g(luvio, resourceParams);
23875
+ return keyBuilder$2f(luvio, resourceParams);
24616
23876
  }
24617
23877
  function typeCheckConfig$K(untrustedConfig) {
24618
23878
  const config = {};
@@ -24671,7 +23931,7 @@ function buildNetworkSnapshotCachePolicy$y(context, coercedAdapterRequestContext
24671
23931
  function buildCachedSnapshotCachePolicy$y(context, storeLookup) {
24672
23932
  const { luvio, config } = context;
24673
23933
  const selector = {
24674
- recordId: keyBuilder$2f(luvio, config),
23934
+ recordId: keyBuilder$2e(luvio, config),
24675
23935
  node: adapterFragment$r(luvio, config),
24676
23936
  variables: {},
24677
23937
  };
@@ -24691,7 +23951,7 @@ const getAppDetailsAdapterFactory = (luvio) => function UiApi__getAppDetails(unt
24691
23951
  buildCachedSnapshotCachePolicy$y, buildNetworkSnapshotCachePolicy$y);
24692
23952
  };
24693
23953
 
24694
- const VERSION$1Z = "f43ef90ffde4d488414d6868e3aaefcb";
23954
+ const VERSION$1Y = "f43ef90ffde4d488414d6868e3aaefcb";
24695
23955
  function validate$14(obj, path = 'DuplicateRuleFilterItemRepresentation') {
24696
23956
  const v_error = (() => {
24697
23957
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -24728,7 +23988,7 @@ function validate$14(obj, path = 'DuplicateRuleFilterItemRepresentation') {
24728
23988
  const select$2g = function DuplicateRuleFilterItemRepresentationSelect() {
24729
23989
  return {
24730
23990
  kind: 'Fragment',
24731
- version: VERSION$1Z,
23991
+ version: VERSION$1Y,
24732
23992
  private: [
24733
23993
  'eTag'
24734
23994
  ],
@@ -24753,7 +24013,7 @@ const select$2g = function DuplicateRuleFilterItemRepresentationSelect() {
24753
24013
  };
24754
24014
  };
24755
24015
 
24756
- const VERSION$1Y = "320d7f254687278f2763d4b490dab3fb";
24016
+ const VERSION$1X = "320d7f254687278f2763d4b490dab3fb";
24757
24017
  function validate$13(obj, path = 'DuplicateRuleFilterRepresentation') {
24758
24018
  const v_error = (() => {
24759
24019
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -24796,7 +24056,7 @@ const select$2f = function DuplicateRuleFilterRepresentationSelect() {
24796
24056
  const { selections: DuplicateRuleFilterItemRepresentation__selections, opaque: DuplicateRuleFilterItemRepresentation__opaque, } = select$2g();
24797
24057
  return {
24798
24058
  kind: 'Fragment',
24799
- version: VERSION$1Y,
24059
+ version: VERSION$1X,
24800
24060
  private: [
24801
24061
  'eTag'
24802
24062
  ],
@@ -24819,7 +24079,7 @@ const select$2f = function DuplicateRuleFilterRepresentationSelect() {
24819
24079
  };
24820
24080
  };
24821
24081
 
24822
- const VERSION$1X = "b47b44e260e5ce777beaf3da9088997c";
24082
+ const VERSION$1W = "b47b44e260e5ce777beaf3da9088997c";
24823
24083
  function validate$12(obj, path = 'MatchRuleRepresentation') {
24824
24084
  const v_error = (() => {
24825
24085
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -24863,7 +24123,7 @@ function validate$12(obj, path = 'MatchRuleRepresentation') {
24863
24123
  const select$2e = function MatchRuleRepresentationSelect() {
24864
24124
  return {
24865
24125
  kind: 'Fragment',
24866
- version: VERSION$1X,
24126
+ version: VERSION$1W,
24867
24127
  private: [
24868
24128
  'eTag'
24869
24129
  ],
@@ -24889,7 +24149,7 @@ const select$2e = function MatchRuleRepresentationSelect() {
24889
24149
  };
24890
24150
  };
24891
24151
 
24892
- const VERSION$1W = "bb83d7210bb1d7861b6188bc5f552617";
24152
+ const VERSION$1V = "bb83d7210bb1d7861b6188bc5f552617";
24893
24153
  function validate$11(obj, path = 'DuplicateRuleRepresentation') {
24894
24154
  const v_error = (() => {
24895
24155
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -24982,7 +24242,7 @@ const select$2d = function DuplicateRuleRepresentationSelect() {
24982
24242
  const { selections: MatchRuleRepresentation__selections, opaque: MatchRuleRepresentation__opaque, } = select$2e();
24983
24243
  return {
24984
24244
  kind: 'Fragment',
24985
- version: VERSION$1W,
24245
+ version: VERSION$1V,
24986
24246
  private: [
24987
24247
  'eTag'
24988
24248
  ],
@@ -25030,7 +24290,7 @@ const select$2d = function DuplicateRuleRepresentationSelect() {
25030
24290
  };
25031
24291
 
25032
24292
  const TTL$p = 900000;
25033
- const VERSION$1V = "be27ee99dc0dc43a1f66b8fe98dc532c";
24293
+ const VERSION$1U = "be27ee99dc0dc43a1f66b8fe98dc532c";
25034
24294
  function validate$10(obj, path = 'DuplicatesConfigurationRepresentation') {
25035
24295
  const v_error = (() => {
25036
24296
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
@@ -25094,7 +24354,7 @@ const select$2c = function DuplicatesConfigurationRepresentationSelect() {
25094
24354
  const { selections: DuplicateRuleRepresentation__selections, opaque: DuplicateRuleRepresentation__opaque, } = select$2d();
25095
24355
  return {
25096
24356
  kind: 'Fragment',
25097
- version: VERSION$1V,
24357
+ version: VERSION$1U,
25098
24358
  private: [
25099
24359
  'eTag'
25100
24360
  ],
@@ -25140,7 +24400,7 @@ const ingest$1y = function DuplicatesConfigurationRepresentationIngest(input, pa
25140
24400
  }
25141
24401
  const key = path.fullPath;
25142
24402
  const ttlToUse = TTL$p;
25143
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$t, "UiApi", VERSION$1V, RepresentationType$z, equals$G);
24403
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$t, "UiApi", VERSION$1U, RepresentationType$z, equals$G);
25144
24404
  return createLink$1(key);
25145
24405
  };
25146
24406
  function getTypeCacheKeys$1A(rootKeySet, luvio, input, fullPathFactory) {
@@ -25156,15 +24416,15 @@ function getTypeCacheKeys$1A(rootKeySet, luvio, input, fullPathFactory) {
25156
24416
  function select$2b(luvio, params) {
25157
24417
  return select$2c();
25158
24418
  }
25159
- function keyBuilder$2e(luvio, params) {
24419
+ function keyBuilder$2d(luvio, params) {
25160
24420
  return keyPrefix + '::DuplicatesConfigurationRepresentation:(' + 'recordTypeId:' + params.queryParams.recordTypeId + ',' + 'objectApiName:' + params.urlParams.objectApiName + ')';
25161
24421
  }
25162
24422
  function getResponseCacheKeys$E(storeKeyMap, luvio, resourceParams, response) {
25163
- getTypeCacheKeys$1A(storeKeyMap, luvio, response, () => keyBuilder$2e(luvio, resourceParams));
24423
+ getTypeCacheKeys$1A(storeKeyMap, luvio, response, () => keyBuilder$2d(luvio, resourceParams));
25164
24424
  }
25165
24425
  function ingestSuccess$w(luvio, resourceParams, response, snapshotRefresh) {
25166
24426
  const { body } = response;
25167
- const key = keyBuilder$2e(luvio, resourceParams);
24427
+ const key = keyBuilder$2d(luvio, resourceParams);
25168
24428
  luvio.storeIngest(key, ingest$1y, body);
25169
24429
  const snapshot = luvio.storeLookup({
25170
24430
  recordId: key,
@@ -25180,12 +24440,12 @@ function ingestSuccess$w(luvio, resourceParams, response, snapshotRefresh) {
25180
24440
  return snapshot;
25181
24441
  }
25182
24442
  function ingestError$r(luvio, params, error, snapshotRefresh) {
25183
- const key = keyBuilder$2e(luvio, params);
24443
+ const key = keyBuilder$2d(luvio, params);
25184
24444
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
25185
24445
  const storeMetadataParams = {
25186
24446
  ttl: TTL$p,
25187
24447
  namespace: keyPrefix,
25188
- version: VERSION$1V,
24448
+ version: VERSION$1U,
25189
24449
  representationName: RepresentationType$z
25190
24450
  };
25191
24451
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -25212,9 +24472,9 @@ const getDuplicateConfiguration_ConfigPropertyMetadata = [
25212
24472
  ];
25213
24473
  const getDuplicateConfiguration_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$A, getDuplicateConfiguration_ConfigPropertyMetadata);
25214
24474
  const createResourceParams$E = /*#__PURE__*/ createResourceParams$l(getDuplicateConfiguration_ConfigPropertyMetadata);
25215
- function keyBuilder$2d(luvio, config) {
24475
+ function keyBuilder$2c(luvio, config) {
25216
24476
  const resourceParams = createResourceParams$E(config);
25217
- return keyBuilder$2e(luvio, resourceParams);
24477
+ return keyBuilder$2d(luvio, resourceParams);
25218
24478
  }
25219
24479
  function typeCheckConfig$J(untrustedConfig) {
25220
24480
  const config = {};
@@ -25272,7 +24532,7 @@ function buildNetworkSnapshotCachePolicy$x(context, coercedAdapterRequestContext
25272
24532
  function buildCachedSnapshotCachePolicy$x(context, storeLookup) {
25273
24533
  const { luvio, config } = context;
25274
24534
  const selector = {
25275
- recordId: keyBuilder$2d(luvio, config),
24535
+ recordId: keyBuilder$2c(luvio, config),
25276
24536
  node: adapterFragment$q(luvio, config),
25277
24537
  variables: {},
25278
24538
  };
@@ -25312,19 +24572,19 @@ function coerceLayoutMode(value) {
25312
24572
  return undefined;
25313
24573
  }
25314
24574
 
25315
- function keyBuilder$2c(luvio, params) {
24575
+ function keyBuilder$2b(luvio, params) {
25316
24576
  return keyPrefix + '::RecordLayoutRepresentation:(' + 'formFactor:' + params.queryParams.formFactor + ',' + 'layoutType:' + params.queryParams.layoutType + ',' + 'mode:' + params.queryParams.mode + ',' + 'recordTypeId:' + params.queryParams.recordTypeId + ',' + 'objectApiName:' + params.urlParams.objectApiName + ')';
25317
24577
  }
25318
24578
  function getResponseCacheKeys$D(storeKeyMap, luvio, resourceParams, response) {
25319
24579
  getTypeCacheKeys$1N(storeKeyMap, luvio, response);
25320
24580
  }
25321
24581
  function ingestError$q(luvio, params, error, snapshotRefresh) {
25322
- const key = keyBuilder$2c(luvio, params);
24582
+ const key = keyBuilder$2b(luvio, params);
25323
24583
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
25324
24584
  const storeMetadataParams = {
25325
24585
  ttl: TTL$y,
25326
24586
  namespace: keyPrefix,
25327
- version: VERSION$2b,
24587
+ version: VERSION$2a,
25328
24588
  representationName: RepresentationType$N
25329
24589
  };
25330
24590
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -25346,7 +24606,7 @@ function createResourceRequest$H(config) {
25346
24606
 
25347
24607
  function onFetchResponseSuccess$t(luvio, config, resourceParams, response) {
25348
24608
  const { body } = response;
25349
- const key = keyBuilder$2Q(luvio, config);
24609
+ const key = keyBuilder$2P(luvio, config);
25350
24610
  luvio.storeIngest(key, ingest$1L, body);
25351
24611
  const snapshot = luvio.storeLookup({
25352
24612
  recordId: key,
@@ -25395,7 +24655,7 @@ function validateAdapterConfig$L(untrustedConfig, _configPropertyNames) {
25395
24655
  function buildCachedSnapshotCachePolicy$w(context, storeLookup) {
25396
24656
  const { luvio, config } = context;
25397
24657
  const selector = {
25398
- recordId: keyBuilder$2Q(luvio, config),
24658
+ recordId: keyBuilder$2P(luvio, config),
25399
24659
  node: select$2F(),
25400
24660
  variables: {},
25401
24661
  };
@@ -25485,7 +24745,7 @@ function createResourceRequest$G(config) {
25485
24745
 
25486
24746
  function buildCachedSnapshot$4(luvio, config) {
25487
24747
  const { objectApiName, recordTypeId, layoutType, mode } = config;
25488
- const key = keyBuilder$2P(luvio, {
24748
+ const key = keyBuilder$2O(luvio, {
25489
24749
  apiName: objectApiName,
25490
24750
  recordTypeId,
25491
24751
  layoutType,
@@ -25540,7 +24800,7 @@ function onFetchResponseError$s(luvio, config, key, error) {
25540
24800
  }
25541
24801
  function prepareRequest$3(luvio, config) {
25542
24802
  const { recordTypeId, layoutType, mode, objectApiName } = config;
25543
- const key = keyBuilder$2P(luvio, {
24803
+ const key = keyBuilder$2O(luvio, {
25544
24804
  apiName: objectApiName,
25545
24805
  recordTypeId,
25546
24806
  layoutType,
@@ -25605,7 +24865,7 @@ function buildCachedSnapshotCachePolicy$v(context, storeLookup) {
25605
24865
  const { config, luvio } = context;
25606
24866
  const { objectApiName, recordTypeId, layoutType, mode } = config;
25607
24867
  const selector = {
25608
- recordId: keyBuilder$2P(luvio, {
24868
+ recordId: keyBuilder$2O(luvio, {
25609
24869
  apiName: objectApiName,
25610
24870
  recordTypeId,
25611
24871
  layoutType,
@@ -25659,8 +24919,8 @@ const getLayoutUserStateAdapterFactory = (luvio) => function UiApi__getLayoutUse
25659
24919
  buildCachedSnapshotCachePolicy$v, buildNetworkSnapshotCachePolicy$v);
25660
24920
  };
25661
24921
 
25662
- function keyBuilder$2b(luvio, params) {
25663
- return keyBuilder$37(luvio, {
24922
+ function keyBuilder$2a(luvio, params) {
24923
+ return keyBuilder$36(luvio, {
25664
24924
  objectApiName: params.urlParams.objectApiName,
25665
24925
  listViewApiName: params.urlParams.listViewApiName,
25666
24926
  type: params.urlParams.listViewApiName === '__Recent' ? 'mru' : 'listView',
@@ -25670,19 +24930,12 @@ function keyBuilder$2b(luvio, params) {
25670
24930
  function select$2a(luvio, params) {
25671
24931
  return select$2U();
25672
24932
  }
25673
- function keyBuilder$2a(luvio, params) {
25674
- return keyBuilder$37(luvio, {
25675
- objectApiName: params.urlParams.objectApiName,
25676
- listViewApiName: params.urlParams.listViewApiName,
25677
- type: "listView"
25678
- });
25679
- }
25680
24933
  function getResponseCacheKeys$B(storeKeyMap, luvio, resourceParams, response) {
25681
24934
  getTypeCacheKeys$1X(storeKeyMap, luvio, response);
25682
24935
  }
25683
24936
  function ingestSuccess$v(luvio, resourceParams, response, snapshotRefresh) {
25684
24937
  const { body } = response;
25685
- const key = keyBuilder$2b(luvio, resourceParams);
24938
+ const key = keyBuilder$2a(luvio, resourceParams);
25686
24939
  luvio.storeIngest(key, ingest$1U, body);
25687
24940
  const snapshot = luvio.storeLookup({
25688
24941
  recordId: key,
@@ -25698,12 +24951,12 @@ function ingestSuccess$v(luvio, resourceParams, response, snapshotRefresh) {
25698
24951
  return snapshot;
25699
24952
  }
25700
24953
  function ingestError$p(luvio, params, error, snapshotRefresh) {
25701
- const key = keyBuilder$2b(luvio, params);
24954
+ const key = keyBuilder$2a(luvio, params);
25702
24955
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
25703
24956
  const storeMetadataParams = {
25704
24957
  ttl: TTL$D,
25705
24958
  namespace: keyPrefix,
25706
- version: VERSION$2m,
24959
+ version: VERSION$2l,
25707
24960
  representationName: RepresentationType$W
25708
24961
  };
25709
24962
  luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
@@ -25723,10 +24976,7 @@ function createResourceRequest$F(config) {
25723
24976
  };
25724
24977
  }
25725
24978
 
25726
- const VERSION$1U = "fb049a56cac04c6d0c0969a650749448";
25727
-
25728
- const nonCachedErrors$6 = ObjectCreate$1(null);
25729
- function createChildResourceParams$6(resourceParams) {
24979
+ function createChildResourceParams$8(resourceParams) {
25730
24980
  const childConfigs = [];
25731
24981
  const { queryParams } = resourceParams;
25732
24982
  const { names = [] } = queryParams;
@@ -25741,6 +24991,11 @@ function createChildResourceParams$6(resourceParams) {
25741
24991
  }
25742
24992
  return childConfigs;
25743
24993
  }
24994
+
24995
+ const nonCachedErrors$6 = ObjectCreate$1(null);
24996
+ function createChildResourceParams$7(resourceParams) {
24997
+ return createChildResourceParams$8(resourceParams);
24998
+ }
25744
24999
  function selectChildResourceParams$6(luvio, childResources, resourceParams) {
25745
25000
  const envelopeBodyPath = 'result';
25746
25001
  const envelopeStatusCodePath = 'statusCode';
@@ -25751,21 +25006,11 @@ function selectChildResourceParams$6(luvio, childResources, resourceParams) {
25751
25006
  synthetic: true,
25752
25007
  read: (reader) => {
25753
25008
  // Top-level 404 lookup
25754
- const compositeSnapshot = luvio.storeLookup({
25755
- recordId: keyBuilder$29(luvio, resourceParams),
25756
- node: {
25757
- kind: 'Fragment',
25758
- private: [],
25759
- version: VERSION$1U,
25760
- },
25761
- variables: {},
25762
- });
25763
- if (compositeSnapshot.state === 'Error' &&
25764
- compositeSnapshot.error.errorType === 'fetchResponse' &&
25765
- compositeSnapshot.error.status === 404) {
25009
+ const result = reader.storeLookup(keyBuilder$29(luvio, resourceParams));
25010
+ if (result.state === reader.StoreResolveResultState.Error && result.value.status === 404) {
25766
25011
  return {
25767
- state: compositeSnapshot.state,
25768
- value: compositeSnapshot.error,
25012
+ state: 'Error',
25013
+ value: result.value,
25769
25014
  };
25770
25015
  }
25771
25016
  const sink = {};
@@ -25790,7 +25035,6 @@ function selectChildResourceParams$6(luvio, childResources, resourceParams) {
25790
25035
  case 'Stale':
25791
25036
  reader.markStale();
25792
25037
  // Stale needs envelope bodies filled in so don't break
25793
- // eslint-disable-next-line no-fallthrough
25794
25038
  case 'Fulfilled':
25795
25039
  reader.enterPath(envelopeStatusCodePath);
25796
25040
  reader.assignScalar(envelopeStatusCodePath, childSink, 200);
@@ -25800,7 +25044,6 @@ function selectChildResourceParams$6(luvio, childResources, resourceParams) {
25800
25044
  reader.exitPath();
25801
25045
  break;
25802
25046
  case 'Error':
25803
- // eslint-disable-next-line no-case-declarations
25804
25047
  const childSnapshotError = childSnapshot.error;
25805
25048
  reader.enterPath(envelopeStatusCodePath);
25806
25049
  reader.assignScalar(envelopeStatusCodePath, childSink, childSnapshotError.status);
@@ -25825,8 +25068,7 @@ function selectChildResourceParams$6(luvio, childResources, resourceParams) {
25825
25068
  // snapshot will look like an Unfulfilled snapshot
25826
25069
  // instead of an error snapshot).
25827
25070
  const nonCachedError = nonCachedErrors$6[childKey];
25828
- if (nonCachedError === undefined ||
25829
- nonCachedError.expiration < reader.getTimeStamp()) {
25071
+ if (nonCachedError === undefined || nonCachedError.expiration < reader.getTimeStamp()) {
25830
25072
  reader.markMissingLink(childKey);
25831
25073
  }
25832
25074
  else {
@@ -25854,35 +25096,24 @@ function selectChildResourceParams$6(luvio, childResources, resourceParams) {
25854
25096
  reader.exitPath();
25855
25097
  }
25856
25098
  reader.assignNonScalar(sink, envelopePath, results);
25857
- deepFreeze(sink);
25858
25099
  reader.exitPath();
25859
25100
  return sink;
25860
- },
25101
+ }
25861
25102
  };
25862
25103
  }
25863
25104
  function select$29(luvio, resourceParams) {
25864
- const childResources = createChildResourceParams$6(resourceParams);
25105
+ const childResources = createChildResourceParams$7(resourceParams);
25865
25106
  return selectChildResourceParams$6(luvio, childResources, resourceParams);
25866
25107
  }
25867
25108
  function keyBuilder$29(luvio, params) {
25868
- return (keyPrefix +
25869
- '::ListInfoBatchRepresentation:(' +
25870
- 'ids:' +
25871
- params.queryParams.ids +
25872
- ',' +
25873
- 'names:' +
25874
- params.queryParams.names +
25875
- ')');
25109
+ return keyPrefix + '::ListInfoBatchRepresentation:(' + 'ids:' + params.queryParams.ids + ',' + 'names:' + params.queryParams.names + ')';
25876
25110
  }
25877
25111
  function getResponseCacheKeys$A(keys, luvio, resourceParams, response) {
25878
25112
  const childEnvelopes = response.results;
25879
- const childResourceParamsArray = createChildResourceParams$6(resourceParams);
25113
+ const childResourceParamsArray = createChildResourceParams$7(resourceParams);
25880
25114
  if (process.env.NODE_ENV !== 'production') {
25881
25115
  if (childResourceParamsArray.length !== childEnvelopes.length) {
25882
- throw new Error('Invalid composite resource response. Expected ' +
25883
- childResourceParamsArray.length +
25884
- ' items, received ' +
25885
- childEnvelopes.length);
25116
+ throw new Error('Invalid composite resource response. Expected ' + childResourceParamsArray.length + ' items, received ' + childEnvelopes.length);
25886
25117
  }
25887
25118
  }
25888
25119
  // get children keys
@@ -25897,13 +25128,13 @@ function getResponseCacheKeys$A(keys, luvio, resourceParams, response) {
25897
25128
  const childKey = keyBuilder$2a(luvio, childResourceParams);
25898
25129
  keys.set(childKey, {
25899
25130
  namespace: keyPrefix,
25900
- representationName: childKey.split('::')[1].split(':')[0],
25901
- mergeable: false,
25131
+ representationName: RepresentationType$W,
25132
+ mergeable: false
25902
25133
  });
25903
25134
  }
25904
25135
  }
25905
25136
  }
25906
- function ingestSuccessChildResourceParams$5(luvio, childResourceParamsArray, childEnvelopes) {
25137
+ function ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, childEnvelopes) {
25907
25138
  const childSnapshotDataResponses = [];
25908
25139
  let seenRecords = new StoreKeySet();
25909
25140
  let snapshotState = 'Fulfilled';
@@ -25922,8 +25153,8 @@ function ingestSuccessChildResourceParams$5(luvio, childResourceParamsArray, chi
25922
25153
  headers: {},
25923
25154
  };
25924
25155
  const childSnapshot = ingestSuccess$v(luvio, childResourceParams, childResponse);
25925
- if (childSnapshot.state === 'Stale') {
25926
- snapshotState = 'Stale';
25156
+ if (childSnapshot.state === "Stale") {
25157
+ snapshotState = "Stale";
25927
25158
  }
25928
25159
  seenRecords.merge(childSnapshot.seenRecords);
25929
25160
  seenRecords.add(childSnapshot.recordId);
@@ -25931,6 +25162,7 @@ function ingestSuccessChildResourceParams$5(luvio, childResourceParamsArray, chi
25931
25162
  statusCode: 200,
25932
25163
  result: childSnapshot.data,
25933
25164
  };
25165
+ deepFreeze(childValue);
25934
25166
  ArrayPrototypePush.call(childSnapshotDataResponses, childValue);
25935
25167
  }
25936
25168
  else {
@@ -25941,7 +25173,7 @@ function ingestSuccessChildResourceParams$5(luvio, childResourceParamsArray, chi
25941
25173
  ok: false,
25942
25174
  statusText: childStatusCodeText,
25943
25175
  headers: {},
25944
- errorType: 'fetchResponse',
25176
+ errorType: 'fetchResponse'
25945
25177
  };
25946
25178
  ingestError$p(luvio, childResourceParams, childResponse);
25947
25179
  seenRecords.add(childKey);
@@ -25949,39 +25181,33 @@ function ingestSuccessChildResourceParams$5(luvio, childResourceParamsArray, chi
25949
25181
  statusCode: childStatusCode,
25950
25182
  result: childBody,
25951
25183
  };
25184
+ deepFreeze(childValue);
25952
25185
  ArrayPrototypePush.call(childSnapshotDataResponses, childValue);
25953
25186
  }
25954
25187
  // track non-cached responses so rebuilds work properly
25955
25188
  if (childStatusCode !== 404 && childStatusCode !== 200) {
25956
- nonCachedErrors$6[childKey] = {
25957
- expiration: now + TTL$D,
25958
- response: childBody,
25959
- status: childStatusCode,
25960
- };
25189
+ nonCachedErrors$6[childKey] = { expiration: now + TTL$D, response: childBody, status: childStatusCode };
25961
25190
  }
25962
25191
  else {
25963
25192
  delete nonCachedErrors$6[childKey];
25964
25193
  }
25965
25194
  }
25966
25195
  const childSnapshotData = {
25967
- results: childSnapshotDataResponses,
25196
+ results: childSnapshotDataResponses
25968
25197
  };
25969
25198
  deepFreeze(childSnapshotData);
25970
25199
  return { childSnapshotData: childSnapshotData, seenRecords, snapshotState };
25971
25200
  }
25972
25201
  function ingestSuccess$u(luvio, resourceParams, response, snapshotRefresh) {
25973
25202
  const childEnvelopes = response.body.results;
25974
- const childResourceParamsArray = createChildResourceParams$6(resourceParams);
25203
+ const childResourceParamsArray = createChildResourceParams$7(resourceParams);
25975
25204
  if (process.env.NODE_ENV !== 'production') {
25976
25205
  if (childResourceParamsArray.length !== childEnvelopes.length) {
25977
- throw new Error('Invalid composite resource response. Expected ' +
25978
- childResourceParamsArray.length +
25979
- ' items, received ' +
25980
- childEnvelopes.length);
25206
+ throw new Error('Invalid composite resource response. Expected ' + childResourceParamsArray.length + ' items, received ' + childEnvelopes.length);
25981
25207
  }
25982
25208
  }
25983
25209
  const key = keyBuilder$29(luvio, resourceParams);
25984
- const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$5(luvio, childResourceParamsArray, childEnvelopes);
25210
+ const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, childEnvelopes);
25985
25211
  const syntheticSnapshot = {
25986
25212
  recordId: key,
25987
25213
  data: childSnapshotData,
@@ -25993,7 +25219,7 @@ function ingestSuccess$u(luvio, resourceParams, response, snapshotRefresh) {
25993
25219
  variables: {},
25994
25220
  },
25995
25221
  refresh: snapshotRefresh,
25996
- variables: {},
25222
+ variables: {}
25997
25223
  };
25998
25224
  // evict top level composite record from the store. This covers the case where a previous resource request returned a 404.
25999
25225
  luvio.storeEvict(key);
@@ -26015,6 +25241,7 @@ function createResourceRequest$E(config) {
26015
25241
  urlParams: {},
26016
25242
  queryParams: config.queryParams,
26017
25243
  headers,
25244
+ priority: 'normal',
26018
25245
  };
26019
25246
  }
26020
25247
 
@@ -26114,7 +25341,7 @@ const getListInfoByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidati
26114
25341
  const createResourceParams$B = /*#__PURE__*/ createResourceParams$l(getListInfoByName_ConfigPropertyMetadata);
26115
25342
  function keyBuilder$27(luvio, config) {
26116
25343
  const resourceParams = createResourceParams$B(config);
26117
- return keyBuilder$2b(luvio, resourceParams);
25344
+ return keyBuilder$2a(luvio, resourceParams);
26118
25345
  }
26119
25346
  function typeCheckConfig$F(untrustedConfig) {
26120
25347
  const config = {};
@@ -27149,8 +26376,8 @@ const getNavItemsAdapterFactory = (luvio) => function UiApi__getNavItems(untrust
27149
26376
  };
27150
26377
 
27151
26378
  const nonCachedErrors$5 = ObjectCreate$1(null);
27152
- function createChildResourceParams$5(resourceParams) {
27153
- const childConfigs = [];
26379
+ function createChildResourceParams$6(resourceParams) {
26380
+ let childConfigs = [];
27154
26381
  for (let index = 0, len = resourceParams.urlParams.objectApiNames.length; index < len; index += 1) {
27155
26382
  const item = resourceParams.urlParams.objectApiNames[index];
27156
26383
  childConfigs.push({
@@ -27185,7 +26412,7 @@ function selectChildResourceParams$5(luvio, childResources, resourceParams) {
27185
26412
  reader.enterPath(i);
27186
26413
  reader.enterPath(envelopeBodyPath);
27187
26414
  const childResource = childResources[i];
27188
- const childKey = keyBuilder$2S(luvio, childResource);
26415
+ const childKey = keyBuilder$2R(luvio, childResource);
27189
26416
  const childFragment = select$2G();
27190
26417
  const isMissingDataBeforeChildRead = reader.getIsDataMissing();
27191
26418
  const childSnapshot = reader.read({
@@ -27267,7 +26494,7 @@ function selectChildResourceParams$5(luvio, childResources, resourceParams) {
27267
26494
  };
27268
26495
  }
27269
26496
  function select$21(luvio, resourceParams) {
27270
- const childResources = createChildResourceParams$5(resourceParams);
26497
+ const childResources = createChildResourceParams$6(resourceParams);
27271
26498
  return selectChildResourceParams$5(luvio, childResources, resourceParams);
27272
26499
  }
27273
26500
  function keyBuilder$21(luvio, params) {
@@ -27275,7 +26502,7 @@ function keyBuilder$21(luvio, params) {
27275
26502
  }
27276
26503
  function getResponseCacheKeys$w(keys, luvio, resourceParams, response) {
27277
26504
  const childEnvelopes = response.results;
27278
- const childResourceParamsArray = createChildResourceParams$5(resourceParams);
26505
+ const childResourceParamsArray = createChildResourceParams$6(resourceParams);
27279
26506
  if (process.env.NODE_ENV !== 'production') {
27280
26507
  if (childResourceParamsArray.length !== childEnvelopes.length) {
27281
26508
  throw new Error('Invalid composite resource response. Expected ' + childResourceParamsArray.length + ' items, received ' + childEnvelopes.length);
@@ -27290,7 +26517,7 @@ function getResponseCacheKeys$w(keys, luvio, resourceParams, response) {
27290
26517
  getResponseCacheKeys$T(keys, luvio, childResourceParams, childBody);
27291
26518
  }
27292
26519
  else if (childStatusCode === 404) {
27293
- const childKey = keyBuilder$2S(luvio, childResourceParams);
26520
+ const childKey = keyBuilder$2R(luvio, childResourceParams);
27294
26521
  keys.set(childKey, {
27295
26522
  namespace: keyPrefix,
27296
26523
  representationName: RepresentationType$O,
@@ -27299,14 +26526,14 @@ function getResponseCacheKeys$w(keys, luvio, resourceParams, response) {
27299
26526
  }
27300
26527
  }
27301
26528
  }
27302
- function ingestSuccessChildResourceParams$4(luvio, childResourceParamsArray, childEnvelopes) {
26529
+ function ingestSuccessChildResourceParams$5(luvio, childResourceParamsArray, childEnvelopes) {
27303
26530
  const childSnapshotDataResponses = [];
27304
26531
  let seenRecords = new StoreKeySet();
27305
26532
  let snapshotState = 'Fulfilled';
27306
26533
  const now = Date.now();
27307
26534
  for (let index = 0, len = childResourceParamsArray.length; index < len; index += 1) {
27308
26535
  const childResourceParams = childResourceParamsArray[index];
27309
- const childKey = keyBuilder$2S(luvio, childResourceParams);
26536
+ const childKey = keyBuilder$2R(luvio, childResourceParams);
27310
26537
  const result = childEnvelopes[index];
27311
26538
  const { statusCode: childStatusCode, result: childBody } = result;
27312
26539
  if (childStatusCode === 200) {
@@ -27365,14 +26592,14 @@ function ingestSuccessChildResourceParams$4(luvio, childResourceParamsArray, chi
27365
26592
  }
27366
26593
  function ingestSuccess$q(luvio, resourceParams, response, snapshotRefresh) {
27367
26594
  const childEnvelopes = response.body.results;
27368
- const childResourceParamsArray = createChildResourceParams$5(resourceParams);
26595
+ const childResourceParamsArray = createChildResourceParams$6(resourceParams);
27369
26596
  if (process.env.NODE_ENV !== 'production') {
27370
26597
  if (childResourceParamsArray.length !== childEnvelopes.length) {
27371
26598
  throw new Error('Invalid composite resource response. Expected ' + childResourceParamsArray.length + ' items, received ' + childEnvelopes.length);
27372
26599
  }
27373
26600
  }
27374
26601
  const key = keyBuilder$21(luvio, resourceParams);
27375
- const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$4(luvio, childResourceParamsArray, childEnvelopes);
26602
+ const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$5(luvio, childResourceParamsArray, childEnvelopes);
27376
26603
  const syntheticSnapshot = {
27377
26604
  recordId: key,
27378
26605
  data: childSnapshotData,
@@ -30150,7 +29377,7 @@ const getRecords_ConfigPropertyNames = {
30150
29377
 
30151
29378
  function keyBuilder$1U(luvio, config) {
30152
29379
  const resourceParams = createResourceParams$Y(config);
30153
- return keyBuilder$34(luvio, resourceParams);
29380
+ return keyBuilder$33(luvio, resourceParams);
30154
29381
  }
30155
29382
  function onFetchResponseError$j(luvio, config, resourceParams, response) {
30156
29383
  const snapshot = ingestError$L(luvio, resourceParams, response, {
@@ -30625,8 +29852,8 @@ function createResourceRequest$v(config) {
30625
29852
  }
30626
29853
 
30627
29854
  const nonCachedErrors$4 = ObjectCreate$1(null);
30628
- function createChildResourceParams$4(resourceParams) {
30629
- const childConfigs = [];
29855
+ function createChildResourceParams$5(resourceParams) {
29856
+ let childConfigs = [];
30630
29857
  for (let index = 0, len = resourceParams.urlParams.relatedListNames.length; index < len; index += 1) {
30631
29858
  const item = resourceParams.urlParams.relatedListNames[index];
30632
29859
  childConfigs.push({
@@ -30747,7 +29974,7 @@ function selectChildResourceParams$4(luvio, childResources, resourceParams) {
30747
29974
  };
30748
29975
  }
30749
29976
  function select$1F(luvio, resourceParams) {
30750
- const childResources = createChildResourceParams$4(resourceParams);
29977
+ const childResources = createChildResourceParams$5(resourceParams);
30751
29978
  return selectChildResourceParams$4(luvio, childResources, resourceParams);
30752
29979
  }
30753
29980
  function keyBuilder$1R(luvio, params) {
@@ -30755,7 +29982,7 @@ function keyBuilder$1R(luvio, params) {
30755
29982
  }
30756
29983
  function getResponseCacheKeys$q(keys, luvio, resourceParams, response) {
30757
29984
  const childEnvelopes = response.results;
30758
- const childResourceParamsArray = createChildResourceParams$4(resourceParams);
29985
+ const childResourceParamsArray = createChildResourceParams$5(resourceParams);
30759
29986
  if (process.env.NODE_ENV !== 'production') {
30760
29987
  if (childResourceParamsArray.length !== childEnvelopes.length) {
30761
29988
  throw new Error('Invalid composite resource response. Expected ' + childResourceParamsArray.length + ' items, received ' + childEnvelopes.length);
@@ -30779,7 +30006,7 @@ function getResponseCacheKeys$q(keys, luvio, resourceParams, response) {
30779
30006
  }
30780
30007
  }
30781
30008
  }
30782
- function ingestSuccessChildResourceParams$3(luvio, childResourceParamsArray, childEnvelopes) {
30009
+ function ingestSuccessChildResourceParams$4(luvio, childResourceParamsArray, childEnvelopes) {
30783
30010
  const childSnapshotDataResponses = [];
30784
30011
  let seenRecords = new StoreKeySet();
30785
30012
  let snapshotState = 'Fulfilled';
@@ -30844,14 +30071,14 @@ function ingestSuccessChildResourceParams$3(luvio, childResourceParamsArray, chi
30844
30071
  }
30845
30072
  function ingestSuccess$l(luvio, resourceParams, response, snapshotRefresh) {
30846
30073
  const childEnvelopes = response.body.results;
30847
- const childResourceParamsArray = createChildResourceParams$4(resourceParams);
30074
+ const childResourceParamsArray = createChildResourceParams$5(resourceParams);
30848
30075
  if (process.env.NODE_ENV !== 'production') {
30849
30076
  if (childResourceParamsArray.length !== childEnvelopes.length) {
30850
30077
  throw new Error('Invalid composite resource response. Expected ' + childResourceParamsArray.length + ' items, received ' + childEnvelopes.length);
30851
30078
  }
30852
30079
  }
30853
30080
  const key = keyBuilder$1R(luvio, resourceParams);
30854
- const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$3(luvio, childResourceParamsArray, childEnvelopes);
30081
+ const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$4(luvio, childResourceParamsArray, childEnvelopes);
30855
30082
  const syntheticSnapshot = {
30856
30083
  recordId: key,
30857
30084
  data: childSnapshotData,
@@ -31582,7 +30809,7 @@ function createResourceRequest$t(config) {
31582
30809
  };
31583
30810
  }
31584
30811
 
31585
- function createChildResourceParams$3(resourceParams) {
30812
+ function createChildResourceParams$4(resourceParams) {
31586
30813
  const childConfigs = [];
31587
30814
  for (let index = 0, len = resourceParams.urlParams.relatedListNames.length; index < len; index += 1) {
31588
30815
  const item = resourceParams.urlParams.relatedListNames[index];
@@ -31709,7 +30936,7 @@ function selectChildResourceParams$3(luvio, childResources, resourceParams) {
31709
30936
  };
31710
30937
  }
31711
30938
  function select$1C(luvio, resourceParams) {
31712
- const childResources = createChildResourceParams$3(resourceParams);
30939
+ const childResources = createChildResourceParams$4(resourceParams);
31713
30940
  return selectChildResourceParams$3(luvio, childResources, resourceParams);
31714
30941
  }
31715
30942
  function keyBuilder$1M(luvio, params) {
@@ -31717,7 +30944,7 @@ function keyBuilder$1M(luvio, params) {
31717
30944
  }
31718
30945
  function getResponseCacheKeys$o(keys, luvio, resourceParams, response) {
31719
30946
  const childEnvelopes = response.results;
31720
- const childResourceParamsArray = createChildResourceParams$3(resourceParams);
30947
+ const childResourceParamsArray = createChildResourceParams$4(resourceParams);
31721
30948
  if (process.env.NODE_ENV !== 'production') {
31722
30949
  if (childResourceParamsArray.length !== childEnvelopes.length) {
31723
30950
  throw new Error('Invalid composite resource response. Expected ' + childResourceParamsArray.length + ' items, received ' + childEnvelopes.length);
@@ -31741,7 +30968,7 @@ function getResponseCacheKeys$o(keys, luvio, resourceParams, response) {
31741
30968
  }
31742
30969
  }
31743
30970
  }
31744
- function ingestSuccessChildResourceParams$2(luvio, childResourceParamsArray, childEnvelopes) {
30971
+ function ingestSuccessChildResourceParams$3(luvio, childResourceParamsArray, childEnvelopes) {
31745
30972
  const childSnapshotDataResponses = [];
31746
30973
  let seenRecords = new StoreKeySet();
31747
30974
  let snapshotState = 'Fulfilled';
@@ -31807,14 +31034,14 @@ function ingestSuccessChildResourceParams$2(luvio, childResourceParamsArray, chi
31807
31034
  }
31808
31035
  function ingestSuccess$j(luvio, resourceParams, response, snapshotRefresh) {
31809
31036
  const childEnvelopes = response.body.results;
31810
- const childResourceParamsArray = createChildResourceParams$3(resourceParams);
31037
+ const childResourceParamsArray = createChildResourceParams$4(resourceParams);
31811
31038
  if (process.env.NODE_ENV !== 'production') {
31812
31039
  if (childResourceParamsArray.length !== childEnvelopes.length) {
31813
31040
  throw new Error('Invalid composite resource response. Expected ' + childResourceParamsArray.length + ' items, received ' + childEnvelopes.length);
31814
31041
  }
31815
31042
  }
31816
31043
  const key = keyBuilder$1M(luvio, resourceParams);
31817
- const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$2(luvio, childResourceParamsArray, childEnvelopes);
31044
+ const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$3(luvio, childResourceParamsArray, childEnvelopes);
31818
31045
  const syntheticSnapshot = {
31819
31046
  recordId: key,
31820
31047
  data: childSnapshotData,
@@ -32588,8 +31815,8 @@ function createResourceRequest$p(config) {
32588
31815
  }
32589
31816
 
32590
31817
  const nonCachedErrors$2 = ObjectCreate$1(null);
32591
- function createChildResourceParams$2(resourceParams) {
32592
- const childConfigs = [];
31818
+ function createChildResourceParams$3(resourceParams) {
31819
+ let childConfigs = [];
32593
31820
  for (let index = 0, len = resourceParams.urlParams.preferencesIds.length; index < len; index += 1) {
32594
31821
  const item = resourceParams.urlParams.preferencesIds[index];
32595
31822
  childConfigs.push({
@@ -32706,7 +31933,7 @@ function selectChildResourceParams$2(luvio, childResources, resourceParams) {
32706
31933
  };
32707
31934
  }
32708
31935
  function select$1w(luvio, resourceParams) {
32709
- const childResources = createChildResourceParams$2(resourceParams);
31936
+ const childResources = createChildResourceParams$3(resourceParams);
32710
31937
  return selectChildResourceParams$2(luvio, childResources, resourceParams);
32711
31938
  }
32712
31939
  function keyBuilder$1E(luvio, params) {
@@ -32714,7 +31941,7 @@ function keyBuilder$1E(luvio, params) {
32714
31941
  }
32715
31942
  function getResponseCacheKeys$k(keys, luvio, resourceParams, response) {
32716
31943
  const childEnvelopes = response.results;
32717
- const childResourceParamsArray = createChildResourceParams$2(resourceParams);
31944
+ const childResourceParamsArray = createChildResourceParams$3(resourceParams);
32718
31945
  if (process.env.NODE_ENV !== 'production') {
32719
31946
  if (childResourceParamsArray.length !== childEnvelopes.length) {
32720
31947
  throw new Error('Invalid composite resource response. Expected ' + childResourceParamsArray.length + ' items, received ' + childEnvelopes.length);
@@ -32738,7 +31965,7 @@ function getResponseCacheKeys$k(keys, luvio, resourceParams, response) {
32738
31965
  }
32739
31966
  }
32740
31967
  }
32741
- function ingestSuccessChildResourceParams$1(luvio, childResourceParamsArray, childEnvelopes) {
31968
+ function ingestSuccessChildResourceParams$2(luvio, childResourceParamsArray, childEnvelopes) {
32742
31969
  const childSnapshotDataResponses = [];
32743
31970
  let seenRecords = new StoreKeySet();
32744
31971
  let snapshotState = 'Fulfilled';
@@ -32804,14 +32031,14 @@ function ingestSuccessChildResourceParams$1(luvio, childResourceParamsArray, chi
32804
32031
  }
32805
32032
  function ingestSuccess$f(luvio, resourceParams, response, snapshotRefresh) {
32806
32033
  const childEnvelopes = response.body.results;
32807
- const childResourceParamsArray = createChildResourceParams$2(resourceParams);
32034
+ const childResourceParamsArray = createChildResourceParams$3(resourceParams);
32808
32035
  if (process.env.NODE_ENV !== 'production') {
32809
32036
  if (childResourceParamsArray.length !== childEnvelopes.length) {
32810
32037
  throw new Error('Invalid composite resource response. Expected ' + childResourceParamsArray.length + ' items, received ' + childEnvelopes.length);
32811
32038
  }
32812
32039
  }
32813
32040
  const key = keyBuilder$1E(luvio, resourceParams);
32814
- const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$1(luvio, childResourceParamsArray, childEnvelopes);
32041
+ const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$2(luvio, childResourceParamsArray, childEnvelopes);
32815
32042
  const syntheticSnapshot = {
32816
32043
  recordId: key,
32817
32044
  data: childSnapshotData,
@@ -33641,7 +32868,7 @@ const dynamicSelect$4 = function dynamicRelatedListRecordCollectionRepresentatio
33641
32868
  reader.readScalar('count', metadataProperties, sink);
33642
32869
  reader.exitPath();
33643
32870
  reader.enterPath('fields');
33644
- reader.readScalarPlural('fields', source, sink);
32871
+ reader.readScalarPlural('fields', source, sink, true);
33645
32872
  reader.exitPath();
33646
32873
  reader.enterPath('listInfoETag');
33647
32874
  reader.readScalar('listInfoETag', source, sink);
@@ -33654,10 +32881,10 @@ const dynamicSelect$4 = function dynamicRelatedListRecordCollectionRepresentatio
33654
32881
  }, source, sink);
33655
32882
  reader.exitPath();
33656
32883
  reader.enterPath('optionalFields');
33657
- reader.readScalarPlural('optionalFields', source, sink);
32884
+ reader.readScalarPlural('optionalFields', source, sink, true);
33658
32885
  reader.exitPath();
33659
32886
  reader.enterPath('sortBy');
33660
- reader.readScalarPlural('sortBy', source, sink);
32887
+ reader.readScalarPlural('sortBy', source, sink, true);
33661
32888
  reader.exitPath();
33662
32889
  reader.enterPath('where');
33663
32890
  reader.readScalar('where', source, sink);
@@ -33876,7 +33103,7 @@ function select$1u(luvio, params) {
33876
33103
  kind: 'Fragment',
33877
33104
  private: ['eTag', 'weakEtag'],
33878
33105
  selections: buildSelectionFromFields(fields, optionalFields),
33879
- version: VERSION$2i
33106
+ version: VERSION$2h
33880
33107
  },
33881
33108
  },
33882
33109
  }, createPaginationParams(params));
@@ -33953,9 +33180,7 @@ function createResourceRequest$m(config) {
33953
33180
  };
33954
33181
  }
33955
33182
 
33956
- // Copied from generated resource
33957
- const nonCachedErrors$1 = ObjectCreate$1(null);
33958
- const createChildResourceParams$1 = (resourceParams) => {
33183
+ function createChildResourceParams$2(resourceParams) {
33959
33184
  const childConfigs = [];
33960
33185
  for (let index = 0, len = resourceParams.body.relatedListParameters.length; index < len; index += 1) {
33961
33186
  let childConfig = {
@@ -33985,10 +33210,12 @@ const createChildResourceParams$1 = (resourceParams) => {
33985
33210
  childConfigs.push(childConfig);
33986
33211
  }
33987
33212
  return childConfigs;
33988
- };
33989
- // HUGE BLOCK OF COPY PASTED CODE:
33990
- // WE NEED TO DO THIS SO THAT THE ADAPTER CAN USE ONLY OUR OVERRIDE FILE
33991
- // PLEASE DO NOT CHANGE ANYTHING HERE...
33213
+ }
33214
+
33215
+ const nonCachedErrors$1 = ObjectCreate$1(null);
33216
+ function createChildResourceParams$1(resourceParams) {
33217
+ return createChildResourceParams$2(resourceParams);
33218
+ }
33992
33219
  function selectChildResourceParams$1(luvio, childResources, resourceParams) {
33993
33220
  const envelopeBodyPath = 'result';
33994
33221
  const envelopeStatusCodePath = 'statusCode';
@@ -34000,8 +33227,7 @@ function selectChildResourceParams$1(luvio, childResources, resourceParams) {
34000
33227
  read: (reader) => {
34001
33228
  // Top-level 404 lookup
34002
33229
  const result = reader.storeLookup(keyBuilder$1z(luvio, resourceParams));
34003
- if (result.state === reader.StoreResolveResultState.Error &&
34004
- result.value.status === 404) {
33230
+ if (result.state === reader.StoreResolveResultState.Error && result.value.status === 404) {
34005
33231
  return {
34006
33232
  state: 'Error',
34007
33233
  value: result.value,
@@ -34029,7 +33255,6 @@ function selectChildResourceParams$1(luvio, childResources, resourceParams) {
34029
33255
  case 'Stale':
34030
33256
  reader.markStale();
34031
33257
  // Stale needs envelope bodies filled in so don't break
34032
- // eslint-disable-next-line no-fallthrough
34033
33258
  case 'Fulfilled':
34034
33259
  reader.enterPath(envelopeStatusCodePath);
34035
33260
  reader.assignScalar(envelopeStatusCodePath, childSink, 200);
@@ -34039,7 +33264,6 @@ function selectChildResourceParams$1(luvio, childResources, resourceParams) {
34039
33264
  reader.exitPath();
34040
33265
  break;
34041
33266
  case 'Error':
34042
- // eslint-disable-next-line no-case-declarations
34043
33267
  const childSnapshotError = childSnapshot.error;
34044
33268
  reader.enterPath(envelopeStatusCodePath);
34045
33269
  reader.assignScalar(envelopeStatusCodePath, childSink, childSnapshotError.status);
@@ -34064,8 +33288,7 @@ function selectChildResourceParams$1(luvio, childResources, resourceParams) {
34064
33288
  // snapshot will look like an Unfulfilled snapshot
34065
33289
  // instead of an error snapshot).
34066
33290
  const nonCachedError = nonCachedErrors$1[childKey];
34067
- if (nonCachedError === undefined ||
34068
- nonCachedError.expiration < reader.getTimeStamp()) {
33291
+ if (nonCachedError === undefined || nonCachedError.expiration < reader.getTimeStamp()) {
34069
33292
  reader.markMissingLink(childKey);
34070
33293
  }
34071
33294
  else {
@@ -34093,36 +33316,24 @@ function selectChildResourceParams$1(luvio, childResources, resourceParams) {
34093
33316
  reader.exitPath();
34094
33317
  }
34095
33318
  reader.assignNonScalar(sink, envelopePath, results);
34096
- deepFreeze(sink);
34097
33319
  reader.exitPath();
34098
33320
  return sink;
34099
- },
33321
+ }
34100
33322
  };
34101
33323
  }
34102
- // HUGE BLOCK OF COPY PASTED CODE:
34103
- // WE NEED TO DO THIS SO THAT THE ADAPTER CAN USE ONLY OUR OVERRIDE FILE
34104
- // PLEASE DO NOT CHANGE ANYTHING HERE...
34105
33324
  function select$1t(luvio, resourceParams) {
34106
33325
  const childResources = createChildResourceParams$1(resourceParams);
34107
33326
  return selectChildResourceParams$1(luvio, childResources, resourceParams);
34108
33327
  }
34109
33328
  function keyBuilder$1z(luvio, params) {
34110
- return (keyPrefix +
34111
- '::' +
34112
- 'RelatedListRecordCollectionBatchRepresentation(' +
34113
- 'relatedListParameters:' +
34114
- params.body.relatedListParameters +
34115
- ')');
33329
+ 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(',') + ']' + ')';
34116
33330
  }
34117
33331
  function getResponseCacheKeys$h(keys, luvio, resourceParams, response) {
34118
33332
  const childEnvelopes = response.results;
34119
33333
  const childResourceParamsArray = createChildResourceParams$1(resourceParams);
34120
33334
  if (process.env.NODE_ENV !== 'production') {
34121
33335
  if (childResourceParamsArray.length !== childEnvelopes.length) {
34122
- throw new Error('Invalid composite resource response. Expected ' +
34123
- childResourceParamsArray.length +
34124
- ' items, received ' +
34125
- childEnvelopes.length);
33336
+ throw new Error('Invalid composite resource response. Expected ' + childResourceParamsArray.length + ' items, received ' + childEnvelopes.length);
34126
33337
  }
34127
33338
  }
34128
33339
  // get children keys
@@ -34137,77 +33348,87 @@ function getResponseCacheKeys$h(keys, luvio, resourceParams, response) {
34137
33348
  const childKey = keyBuilder$1A(luvio, childResourceParams);
34138
33349
  keys.set(childKey, {
34139
33350
  namespace: keyPrefix,
34140
- representationName: childKey.split('::')[1].split(':')[0],
34141
- mergeable: false,
33351
+ representationName: RepresentationType$i,
33352
+ mergeable: false
34142
33353
  });
34143
33354
  }
34144
33355
  }
34145
33356
  }
34146
- function ingestSuccess$c(luvio, resourceParams, response, _snapshotRefresh) {
34147
- const childEnvelopes = response.body.results;
34148
- const childResourceParamsArray = createChildResourceParams$1(resourceParams);
34149
- if (process.env.NODE_ENV !== 'production') {
34150
- if (childResourceParamsArray.length !== childEnvelopes.length) {
34151
- throw new Error('Invalid composite resource response. Expected ' +
34152
- childResourceParamsArray.length +
34153
- ' items, received ' +
34154
- childEnvelopes.length);
34155
- }
34156
- }
34157
- let snapshotState = 'Fulfilled';
34158
- const key = keyBuilder$1z(luvio, resourceParams);
33357
+ function ingestSuccessChildResourceParams$1(luvio, childResourceParamsArray, childEnvelopes) {
34159
33358
  const childSnapshotDataResponses = [];
34160
33359
  let seenRecords = new StoreKeySet();
33360
+ let snapshotState = 'Fulfilled';
33361
+ const now = Date.now();
34161
33362
  for (let index = 0, len = childResourceParamsArray.length; index < len; index += 1) {
34162
33363
  const childResourceParams = childResourceParamsArray[index];
33364
+ const childKey = keyBuilder$1A(luvio, childResourceParams);
34163
33365
  const result = childEnvelopes[index];
34164
- const childStatusCodeText = getFetchResponseStatusText(result.statusCode);
34165
- if (result.statusCode === 200) {
34166
- const { statusCode: childStatusCode, result: childBody } = result;
33366
+ const { statusCode: childStatusCode, result: childBody } = result;
33367
+ if (childStatusCode === 200) {
34167
33368
  const childResponse = {
34168
- status: childStatusCode,
33369
+ status: 200,
34169
33370
  body: childBody,
34170
33371
  ok: true,
34171
- statusText: childStatusCodeText,
33372
+ statusText: 'OK',
34172
33373
  headers: {},
34173
33374
  };
34174
33375
  const childSnapshot = ingestSuccess$d(luvio, childResourceParams, childResponse);
33376
+ if (childSnapshot.state === "Stale") {
33377
+ snapshotState = "Stale";
33378
+ }
34175
33379
  seenRecords.merge(childSnapshot.seenRecords);
34176
33380
  seenRecords.add(childSnapshot.recordId);
34177
- if (childSnapshot.state === 'Pending') {
34178
- snapshotState = 'Pending';
34179
- break;
34180
- }
34181
33381
  const childValue = {
34182
- statusCode: childStatusCode,
33382
+ statusCode: 200,
34183
33383
  result: childSnapshot.data,
34184
33384
  };
34185
- childSnapshotDataResponses.push(childValue);
33385
+ deepFreeze(childValue);
33386
+ ArrayPrototypePush.call(childSnapshotDataResponses, childValue);
34186
33387
  }
34187
33388
  else {
34188
- const { statusCode: childStatusCode, result: childBody } = result;
33389
+ const childStatusCodeText = getFetchResponseStatusText(result.statusCode);
34189
33390
  const childResponse = {
34190
33391
  status: childStatusCode,
34191
33392
  body: childBody,
34192
33393
  ok: false,
34193
33394
  statusText: childStatusCodeText,
34194
33395
  headers: {},
34195
- errorType: 'fetchResponse',
33396
+ errorType: 'fetchResponse'
34196
33397
  };
34197
33398
  ingestError$a(luvio, childResourceParams, childResponse);
34198
- seenRecords.add(keyBuilder$1A(luvio, childResourceParams));
33399
+ seenRecords.add(childKey);
34199
33400
  const childValue = {
34200
33401
  statusCode: childStatusCode,
34201
33402
  result: childBody,
34202
33403
  };
34203
- childSnapshotDataResponses.push(childValue);
33404
+ deepFreeze(childValue);
33405
+ ArrayPrototypePush.call(childSnapshotDataResponses, childValue);
33406
+ }
33407
+ // track non-cached responses so rebuilds work properly
33408
+ if (childStatusCode !== 404 && childStatusCode !== 200) {
33409
+ nonCachedErrors$1[childKey] = { expiration: now + TTL$f, response: childBody, status: childStatusCode };
33410
+ }
33411
+ else {
33412
+ delete nonCachedErrors$1[childKey];
34204
33413
  }
34205
33414
  }
34206
33415
  const childSnapshotData = {
34207
- results: childSnapshotDataResponses,
33416
+ results: childSnapshotDataResponses
34208
33417
  };
34209
33418
  deepFreeze(childSnapshotData);
34210
- return {
33419
+ return { childSnapshotData: childSnapshotData, seenRecords, snapshotState };
33420
+ }
33421
+ function ingestSuccess$c(luvio, resourceParams, response, snapshotRefresh) {
33422
+ const childEnvelopes = response.body.results;
33423
+ const childResourceParamsArray = createChildResourceParams$1(resourceParams);
33424
+ if (process.env.NODE_ENV !== 'production') {
33425
+ if (childResourceParamsArray.length !== childEnvelopes.length) {
33426
+ throw new Error('Invalid composite resource response. Expected ' + childResourceParamsArray.length + ' items, received ' + childEnvelopes.length);
33427
+ }
33428
+ }
33429
+ const key = keyBuilder$1z(luvio, resourceParams);
33430
+ const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$1(luvio, childResourceParamsArray, childEnvelopes);
33431
+ const syntheticSnapshot = {
34211
33432
  recordId: key,
34212
33433
  data: childSnapshotData,
34213
33434
  state: snapshotState,
@@ -34217,8 +33438,12 @@ function ingestSuccess$c(luvio, resourceParams, response, _snapshotRefresh) {
34217
33438
  node: select$1t(luvio, resourceParams),
34218
33439
  variables: {},
34219
33440
  },
34220
- variables: {},
33441
+ refresh: snapshotRefresh,
33442
+ variables: {}
34221
33443
  };
33444
+ // evict top level composite record from the store. This covers the case where a previous resource request returned a 404.
33445
+ luvio.storeEvict(key);
33446
+ return syntheticSnapshot;
34222
33447
  }
34223
33448
  function ingestError$9(luvio, params, error, snapshotRefresh) {
34224
33449
  const key = keyBuilder$1z(luvio, params);
@@ -34232,11 +33457,11 @@ function createResourceRequest$l(config) {
34232
33457
  baseUri: '/services/data/v60.0',
34233
33458
  basePath: '/ui-api/related-list-records/batch/' + config.urlParams.parentRecordId + '',
34234
33459
  method: 'post',
34235
- priority: 'normal',
34236
33460
  body: config.body,
34237
33461
  urlParams: config.urlParams,
34238
33462
  queryParams: {},
34239
33463
  headers,
33464
+ priority: 'normal',
34240
33465
  };
34241
33466
  }
34242
33467
 
@@ -34286,7 +33511,10 @@ function adapterFragment$b(luvio, config) {
34286
33511
  return select$1t(luvio, resourceParams);
34287
33512
  }
34288
33513
  function onFetchResponseSuccess$c(luvio, config, resourceParams, response) {
34289
- const snapshot = ingestSuccess$c(luvio, resourceParams, response);
33514
+ const snapshot = ingestSuccess$c(luvio, resourceParams, response, {
33515
+ config,
33516
+ resolve: () => buildNetworkSnapshot$k(luvio, config, snapshotRefreshOptions)
33517
+ });
34290
33518
  return luvio.storeBroadcast().then(() => snapshot);
34291
33519
  }
34292
33520
  function onFetchResponseError$b(luvio, config, resourceParams, response) {
@@ -49052,7 +48280,7 @@ function readFieldValueAndConvertToGQL(reader, fieldData, hasFormat, hasLabel, _
49052
48280
  kind: 'Fragment',
49053
48281
  private: [],
49054
48282
  opaque: true,
49055
- version: VERSION$2k,
48283
+ version: VERSION$2j,
49056
48284
  },
49057
48285
  variables: {},
49058
48286
  });
@@ -51024,7 +50252,7 @@ function selectType$6(typename, sel, fieldData, reader, key, sink, variables, fr
51024
50252
  kind: 'Fragment',
51025
50253
  private: [],
51026
50254
  opaque: true,
51027
- version: VERSION$2k,
50255
+ version: VERSION$2j,
51028
50256
  },
51029
50257
  variables: {},
51030
50258
  });
@@ -51130,7 +50358,7 @@ function attachMappedData(source, reader) {
51130
50358
  kind: 'Fragment',
51131
50359
  private: [],
51132
50360
  opaque: true,
51133
- version: VERSION$2i,
50361
+ version: VERSION$2h,
51134
50362
  },
51135
50363
  variables: {},
51136
50364
  });
@@ -53292,9 +52520,7 @@ function onFetchResponseError$4(luvio, config, resourceParams, response) {
53292
52520
  function buildNetworkSnapshot$d(luvio, config, options) {
53293
52521
  const resourceParams = createResourceParams$d(transformConfiguration$1(config));
53294
52522
  const request = createResourceRequest$d(resourceParams);
53295
- return luvio
53296
- .dispatchResourceRequest(request, options)
53297
- .then((response) => {
52523
+ return luvio.dispatchResourceRequest(request, options).then((response) => {
53298
52524
  return luvio.handleSuccessResponse(() => onFetchResponseSuccess$5(luvio, config, resourceParams, response), () => {
53299
52525
  const cache = new StoreKeyMap();
53300
52526
  getResponseCacheKeys$a(cache, luvio, resourceParams, response.body);
@@ -53773,7 +52999,7 @@ const getListRecordsByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValid
53773
52999
  const createResourceParams$9 = /*#__PURE__*/ createResourceParams$l(getListRecordsByName_ConfigPropertyMetadata);
53774
53000
  function keyBuilder$a(luvio, config) {
53775
53001
  const resourceParams = createResourceParams$9(config);
53776
- return keyBuilder$2Z(luvio, resourceParams);
53002
+ return keyBuilder$2Y(luvio, resourceParams);
53777
53003
  }
53778
53004
  function typeCheckConfig$b(untrustedConfig) {
53779
53005
  const config = {};
@@ -53858,12 +53084,12 @@ function getCachedItemsNumber(cacheSnapshot) {
53858
53084
  return items.length;
53859
53085
  }
53860
53086
  function getPaginationMetadata(luvio, resourceParams) {
53861
- const key = keyBuilder$2Z(luvio, resourceParams);
53087
+ const key = keyBuilder$2Y(luvio, resourceParams);
53862
53088
  const selector = {
53863
53089
  recordId: key,
53864
53090
  node: {
53865
53091
  kind: 'Fragment',
53866
- version: VERSION$2g,
53092
+ version: VERSION$2f,
53867
53093
  private: [],
53868
53094
  selections: [
53869
53095
  {
@@ -54299,13 +53525,6 @@ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
54299
53525
  return cacheSnapshot;
54300
53526
  }
54301
53527
 
54302
- const paramNames = {
54303
- displayName: 'getLookupRecords',
54304
- parameters: {
54305
- required: ['fieldApiName'],
54306
- optional: ['requestParams'],
54307
- },
54308
- };
54309
53528
  function coerceRequestParams(untrusted) {
54310
53529
  if (!untrustedIsObject(untrusted)) {
54311
53530
  return {};
@@ -54342,8 +53561,8 @@ function coerceRequestParams(untrusted) {
54342
53561
  }
54343
53562
  return coercedConfig;
54344
53563
  }
54345
- function validateAdapterConfig$8(untrustedConfig) {
54346
- const config = validateAdapterConfig$9(untrustedConfig, paramNames);
53564
+ function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
53565
+ const config = validateAdapterConfig$9(untrustedConfig, configPropertyNames);
54347
53566
  if (config === null) {
54348
53567
  return config;
54349
53568
  }
@@ -54358,9 +53577,16 @@ function validateAdapterConfig$8(untrustedConfig) {
54358
53577
  }
54359
53578
 
54360
53579
  const contextId$3 = `${keyPrefix}__${adapterName$6}`;
53580
+ const paramNames = {
53581
+ displayName: 'getLookupRecords',
53582
+ parameters: {
53583
+ required: ['fieldApiName'],
53584
+ optional: ['requestParams'],
53585
+ },
53586
+ };
54361
53587
  const factory$9 = (luvio) => {
54362
53588
  return luvio.withContext((untrustedConfig, adapterContext, requestContext) => {
54363
- const config = validateAdapterConfig$8(untrustedConfig);
53589
+ const config = validateAdapterConfig$8(untrustedConfig, paramNames);
54364
53590
  // Invalid or incomplete config
54365
53591
  if (config === null) {
54366
53592
  return null;
@@ -56480,7 +55706,7 @@ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$l(createRecord
56480
55706
  function onResponseSuccess$1(luvio, response, recordIngest, conflictMap) {
56481
55707
  const { body } = response;
56482
55708
  const selections = buildSelectionFromRecord(body);
56483
- const key = keyBuilder$36(luvio, {
55709
+ const key = keyBuilder$35(luvio, {
56484
55710
  recordId: body.id,
56485
55711
  });
56486
55712
  luvio.storeIngest(key, recordIngest, body);
@@ -56491,7 +55717,7 @@ function onResponseSuccess$1(luvio, response, recordIngest, conflictMap) {
56491
55717
  kind: 'Fragment',
56492
55718
  private: [],
56493
55719
  selections,
56494
- version: VERSION$2i,
55720
+ version: VERSION$2h,
56495
55721
  },
56496
55722
  variables: {},
56497
55723
  });
@@ -56530,7 +55756,7 @@ const factory$4 = (luvio) => {
56530
55756
  };
56531
55757
 
56532
55758
  function keyBuilder$1(luvio, params) {
56533
- return keyBuilder$36(luvio, {
55759
+ return keyBuilder$35(luvio, {
56534
55760
  recordId: params.urlParams.recordId
56535
55761
  });
56536
55762
  }
@@ -56724,7 +55950,7 @@ function getHeaders(clientOptions) {
56724
55950
  function onResponseSuccess(luvio, response, recordId, recordIngest, conflictMap) {
56725
55951
  const { body } = response;
56726
55952
  const sel = buildSelectionFromRecord(body);
56727
- const key = keyBuilder$36(luvio, {
55953
+ const key = keyBuilder$35(luvio, {
56728
55954
  recordId,
56729
55955
  });
56730
55956
  luvio.storeIngest(key, recordIngest, body);
@@ -56735,7 +55961,7 @@ function onResponseSuccess(luvio, response, recordId, recordIngest, conflictMap)
56735
55961
  kind: 'Fragment',
56736
55962
  private: [],
56737
55963
  selections: sel,
56738
- version: VERSION$2i,
55964
+ version: VERSION$2h,
56739
55965
  },
56740
55966
  variables: {},
56741
55967
  });
@@ -56979,7 +56205,7 @@ const select = function ContentDocumentCompositeRepresentationSelect(body) {
56979
56205
  fragment: {
56980
56206
  kind: 'Fragment',
56981
56207
  private: [],
56982
- version: VERSION$2i,
56208
+ version: VERSION$2h,
56983
56209
  selections: buildSelectionFromRecord(body.contentDocument),
56984
56210
  },
56985
56211
  },
@@ -56990,7 +56216,7 @@ const select = function ContentDocumentCompositeRepresentationSelect(body) {
56990
56216
  fragment: {
56991
56217
  kind: 'Fragment',
56992
56218
  private: [],
56993
- version: VERSION$2i,
56219
+ version: VERSION$2h,
56994
56220
  selections: buildSelectionFromRecord(body.contentDocumentLinks[0] || { fields: {} }),
56995
56221
  },
56996
56222
  },
@@ -57000,7 +56226,7 @@ const select = function ContentDocumentCompositeRepresentationSelect(body) {
57000
56226
  fragment: {
57001
56227
  kind: 'Fragment',
57002
56228
  private: [],
57003
- version: VERSION$2i,
56229
+ version: VERSION$2h,
57004
56230
  selections: buildSelectionFromRecord(body.contentVersion),
57005
56231
  },
57006
56232
  },