@salesforce/lds-ads-bridge 1.235.0 → 1.237.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.
@@ -427,7 +427,7 @@ function createResourceParamsImpl(config, configMetadata) {
427
427
  }
428
428
  return resourceParams;
429
429
  }
430
- // engine version: 0.147.1-bc3a8b47
430
+ // engine version: 0.148.1-b9169b45
431
431
 
432
432
  /**
433
433
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -435,6 +435,7 @@ function createResourceParamsImpl(config, configMetadata) {
435
435
  * For full license text, see the LICENSE.txt file
436
436
  */
437
437
 
438
+
438
439
  /*
439
440
  * Copyright (c) 2022, Salesforce, Inc.,
440
441
  * All rights reserved.
@@ -474,12 +475,13 @@ const callbacks$1 = [];
474
475
  function register(r) {
475
476
  callbacks$1.forEach((callback) => callback(r));
476
477
  }
477
- // version: 1.235.0-3790decf0
478
+ // version: 1.237.0-5cc894ce9
478
479
 
479
480
  /**
480
481
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
481
482
  * otherwise returns false.
482
483
  */
484
+ // eslint-disable-next-line no-redeclare
483
485
 
484
486
  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); }
485
487
 
@@ -1023,38 +1025,6 @@ defineInspect(Token);
1023
1025
  function isNode(maybeNode) {
1024
1026
  return maybeNode != null && typeof maybeNode.kind === 'string';
1025
1027
  }
1026
- /**
1027
- * The list of all possible AST node types.
1028
- */
1029
-
1030
- /**
1031
- * An exported enum describing the different kinds of tokens that the
1032
- * lexer emits.
1033
- */
1034
- Object.freeze({
1035
- SOF: '<SOF>',
1036
- EOF: '<EOF>',
1037
- BANG: '!',
1038
- DOLLAR: '$',
1039
- AMP: '&',
1040
- PAREN_L: '(',
1041
- PAREN_R: ')',
1042
- SPREAD: '...',
1043
- COLON: ':',
1044
- EQUALS: '=',
1045
- AT: '@',
1046
- BRACKET_L: '[',
1047
- BRACKET_R: ']',
1048
- BRACE_L: '{',
1049
- PIPE: '|',
1050
- BRACE_R: '}',
1051
- NAME: 'Name',
1052
- INT: 'Int',
1053
- FLOAT: 'Float',
1054
- STRING: 'String',
1055
- BLOCK_STRING: 'BlockString',
1056
- COMMENT: 'Comment'
1057
- });
1058
1028
  /**
1059
1029
  * The enum type representing the token kinds values.
1060
1030
  */
@@ -2793,9 +2763,6 @@ function argsToArgsConfig(args) {
2793
2763
  };
2794
2764
  });
2795
2765
  }
2796
- function isRequiredArgument(arg) {
2797
- return isNonNullType(arg.type) && arg.defaultValue === undefined;
2798
- }
2799
2766
 
2800
2767
  /**
2801
2768
  * Interface Type Definition
@@ -4376,7 +4343,7 @@ defineInspect(GraphQLDirective);
4376
4343
  /**
4377
4344
  * Used to conditionally include fields or fragments.
4378
4345
  */
4379
- var GraphQLIncludeDirective = new GraphQLDirective({
4346
+ new GraphQLDirective({
4380
4347
  name: 'include',
4381
4348
  description: 'Directs the executor to include this field or fragment only when the `if` argument is true.',
4382
4349
  locations: [DirectiveLocation.FIELD, DirectiveLocation.FRAGMENT_SPREAD, DirectiveLocation.INLINE_FRAGMENT],
@@ -4391,7 +4358,7 @@ var GraphQLIncludeDirective = new GraphQLDirective({
4391
4358
  * Used to conditionally skip (exclude) fields or fragments.
4392
4359
  */
4393
4360
 
4394
- var GraphQLSkipDirective = new GraphQLDirective({
4361
+ new GraphQLDirective({
4395
4362
  name: 'skip',
4396
4363
  description: 'Directs the executor to skip this field or fragment when the `if` argument is true.',
4397
4364
  locations: [DirectiveLocation.FIELD, DirectiveLocation.FRAGMENT_SPREAD, DirectiveLocation.INLINE_FRAGMENT],
@@ -4411,7 +4378,7 @@ var DEFAULT_DEPRECATION_REASON = 'No longer supported';
4411
4378
  * Used to declare element of a GraphQL schema as deprecated.
4412
4379
  */
4413
4380
 
4414
- var GraphQLDeprecatedDirective = new GraphQLDirective({
4381
+ new GraphQLDirective({
4415
4382
  name: 'deprecated',
4416
4383
  description: 'Marks an element of a GraphQL schema as no longer supported.',
4417
4384
  locations: [DirectiveLocation.FIELD_DEFINITION, DirectiveLocation.ARGUMENT_DEFINITION, DirectiveLocation.INPUT_FIELD_DEFINITION, DirectiveLocation.ENUM_VALUE],
@@ -4427,7 +4394,7 @@ var GraphQLDeprecatedDirective = new GraphQLDirective({
4427
4394
  * Used to provide a URL for specifying the behaviour of custom scalar definitions.
4428
4395
  */
4429
4396
 
4430
- var GraphQLSpecifiedByDirective = new GraphQLDirective({
4397
+ new GraphQLDirective({
4431
4398
  name: 'specifiedBy',
4432
4399
  description: 'Exposes a URL that specifies the behaviour of this scalar.',
4433
4400
  locations: [DirectiveLocation.SCALAR],
@@ -4438,810 +4405,14 @@ var GraphQLSpecifiedByDirective = new GraphQLDirective({
4438
4405
  }
4439
4406
  }
4440
4407
  });
4441
- /**
4442
- * The full list of specified directives.
4443
- */
4444
-
4445
- var specifiedDirectives = Object.freeze([GraphQLIncludeDirective, GraphQLSkipDirective, GraphQLDeprecatedDirective, GraphQLSpecifiedByDirective]);
4446
-
4447
- function isTypeSystemDefinitionNode(node) {
4448
- return node.kind === Kind.SCHEMA_DEFINITION || isTypeDefinitionNode(node) || node.kind === Kind.DIRECTIVE_DEFINITION;
4449
- }
4450
- function isTypeDefinitionNode(node) {
4451
- 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;
4452
- }
4453
- function isTypeSystemExtensionNode(node) {
4454
- return node.kind === Kind.SCHEMA_EXTENSION || isTypeExtensionNode(node);
4455
- }
4456
- function isTypeExtensionNode(node) {
4457
- 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;
4458
- }
4459
-
4460
- /**
4461
- * Known type names
4462
- *
4463
- * A GraphQL document is only valid if referenced types (specifically
4464
- * variable definitions and fragment conditions) are defined by the type schema.
4465
- */
4466
- function KnownTypeNamesRule(context) {
4467
- var schema = context.getSchema();
4468
- var existingTypesMap = schema ? schema.getTypeMap() : Object.create(null);
4469
- var definedTypes = Object.create(null);
4470
-
4471
- for (var _i2 = 0, _context$getDocument$2 = context.getDocument().definitions; _i2 < _context$getDocument$2.length; _i2++) {
4472
- var def = _context$getDocument$2[_i2];
4473
-
4474
- if (isTypeDefinitionNode(def)) {
4475
- definedTypes[def.name.value] = true;
4476
- }
4477
- }
4478
-
4479
- var typeNames = Object.keys(existingTypesMap).concat(Object.keys(definedTypes));
4480
- return {
4481
- NamedType: function NamedType(node, _1, parent, _2, ancestors) {
4482
- var typeName = node.name.value;
4483
-
4484
- if (!existingTypesMap[typeName] && !definedTypes[typeName]) {
4485
- var _ancestors$;
4486
-
4487
- var definitionNode = (_ancestors$ = ancestors[2]) !== null && _ancestors$ !== void 0 ? _ancestors$ : parent;
4488
- var isSDL = definitionNode != null && isSDLNode(definitionNode);
4489
-
4490
- if (isSDL && isStandardTypeName(typeName)) {
4491
- return;
4492
- }
4493
-
4494
- var suggestedTypes = suggestionList(typeName, isSDL ? standardTypeNames.concat(typeNames) : typeNames);
4495
- context.reportError(new GraphQLError("Unknown type \"".concat(typeName, "\".") + didYouMean(suggestedTypes), node));
4496
- }
4497
- }
4498
- };
4499
- }
4500
- var standardTypeNames = [].concat(specifiedScalarTypes, introspectionTypes).map(function (type) {
4408
+ [].concat(specifiedScalarTypes, introspectionTypes).map(function (type) {
4501
4409
  return type.name;
4502
4410
  });
4503
4411
 
4504
- function isStandardTypeName(typeName) {
4505
- return standardTypeNames.indexOf(typeName) !== -1;
4506
- }
4507
-
4508
- function isSDLNode(value) {
4509
- return !Array.isArray(value) && (isTypeSystemDefinitionNode(value) || isTypeSystemExtensionNode(value));
4510
- }
4511
-
4512
- /**
4513
- * Known directives
4514
- *
4515
- * A GraphQL document is only valid if all `@directives` are known by the
4516
- * schema and legally positioned.
4517
- */
4518
- function KnownDirectivesRule(context) {
4519
- var locationsMap = Object.create(null);
4520
- var schema = context.getSchema();
4521
- var definedDirectives = schema ? schema.getDirectives() : specifiedDirectives;
4522
-
4523
- for (var _i2 = 0; _i2 < definedDirectives.length; _i2++) {
4524
- var directive = definedDirectives[_i2];
4525
- locationsMap[directive.name] = directive.locations;
4526
- }
4527
-
4528
- var astDefinitions = context.getDocument().definitions;
4529
-
4530
- for (var _i4 = 0; _i4 < astDefinitions.length; _i4++) {
4531
- var def = astDefinitions[_i4];
4532
-
4533
- if (def.kind === Kind.DIRECTIVE_DEFINITION) {
4534
- locationsMap[def.name.value] = def.locations.map(function (name) {
4535
- return name.value;
4536
- });
4537
- }
4538
- }
4539
-
4540
- return {
4541
- Directive: function Directive(node, _key, _parent, _path, ancestors) {
4542
- var name = node.name.value;
4543
- var locations = locationsMap[name];
4544
-
4545
- if (!locations) {
4546
- context.reportError(new GraphQLError("Unknown directive \"@".concat(name, "\"."), node));
4547
- return;
4548
- }
4549
-
4550
- var candidateLocation = getDirectiveLocationForASTPath(ancestors);
4551
-
4552
- if (candidateLocation && locations.indexOf(candidateLocation) === -1) {
4553
- context.reportError(new GraphQLError("Directive \"@".concat(name, "\" may not be used on ").concat(candidateLocation, "."), node));
4554
- }
4555
- }
4556
- };
4557
- }
4558
-
4559
- function getDirectiveLocationForASTPath(ancestors) {
4560
- var appliedTo = ancestors[ancestors.length - 1];
4561
- !Array.isArray(appliedTo) || invariant(0);
4562
-
4563
- switch (appliedTo.kind) {
4564
- case Kind.OPERATION_DEFINITION:
4565
- return getDirectiveLocationForOperation(appliedTo.operation);
4566
-
4567
- case Kind.FIELD:
4568
- return DirectiveLocation.FIELD;
4569
-
4570
- case Kind.FRAGMENT_SPREAD:
4571
- return DirectiveLocation.FRAGMENT_SPREAD;
4572
-
4573
- case Kind.INLINE_FRAGMENT:
4574
- return DirectiveLocation.INLINE_FRAGMENT;
4575
-
4576
- case Kind.FRAGMENT_DEFINITION:
4577
- return DirectiveLocation.FRAGMENT_DEFINITION;
4578
-
4579
- case Kind.VARIABLE_DEFINITION:
4580
- return DirectiveLocation.VARIABLE_DEFINITION;
4581
-
4582
- case Kind.SCHEMA_DEFINITION:
4583
- case Kind.SCHEMA_EXTENSION:
4584
- return DirectiveLocation.SCHEMA;
4585
-
4586
- case Kind.SCALAR_TYPE_DEFINITION:
4587
- case Kind.SCALAR_TYPE_EXTENSION:
4588
- return DirectiveLocation.SCALAR;
4589
-
4590
- case Kind.OBJECT_TYPE_DEFINITION:
4591
- case Kind.OBJECT_TYPE_EXTENSION:
4592
- return DirectiveLocation.OBJECT;
4593
-
4594
- case Kind.FIELD_DEFINITION:
4595
- return DirectiveLocation.FIELD_DEFINITION;
4596
-
4597
- case Kind.INTERFACE_TYPE_DEFINITION:
4598
- case Kind.INTERFACE_TYPE_EXTENSION:
4599
- return DirectiveLocation.INTERFACE;
4600
-
4601
- case Kind.UNION_TYPE_DEFINITION:
4602
- case Kind.UNION_TYPE_EXTENSION:
4603
- return DirectiveLocation.UNION;
4604
-
4605
- case Kind.ENUM_TYPE_DEFINITION:
4606
- case Kind.ENUM_TYPE_EXTENSION:
4607
- return DirectiveLocation.ENUM;
4608
-
4609
- case Kind.ENUM_VALUE_DEFINITION:
4610
- return DirectiveLocation.ENUM_VALUE;
4611
-
4612
- case Kind.INPUT_OBJECT_TYPE_DEFINITION:
4613
- case Kind.INPUT_OBJECT_TYPE_EXTENSION:
4614
- return DirectiveLocation.INPUT_OBJECT;
4615
-
4616
- case Kind.INPUT_VALUE_DEFINITION:
4617
- {
4618
- var parentNode = ancestors[ancestors.length - 3];
4619
- return parentNode.kind === Kind.INPUT_OBJECT_TYPE_DEFINITION ? DirectiveLocation.INPUT_FIELD_DEFINITION : DirectiveLocation.ARGUMENT_DEFINITION;
4620
- }
4621
- }
4622
- }
4623
-
4624
- function getDirectiveLocationForOperation(operation) {
4625
- switch (operation) {
4626
- case 'query':
4627
- return DirectiveLocation.QUERY;
4628
-
4629
- case 'mutation':
4630
- return DirectiveLocation.MUTATION;
4631
-
4632
- case 'subscription':
4633
- return DirectiveLocation.SUBSCRIPTION;
4634
- } // istanbul ignore next (Not reachable. All possible types have been considered)
4635
-
4636
-
4637
- invariant(0, 'Unexpected operation: ' + inspect(operation));
4638
- }
4639
-
4640
- /**
4641
- * Unique directive names per location
4642
- *
4643
- * A GraphQL document is only valid if all non-repeatable directives at
4644
- * a given location are uniquely named.
4645
- */
4646
- function UniqueDirectivesPerLocationRule(context) {
4647
- var uniqueDirectiveMap = Object.create(null);
4648
- var schema = context.getSchema();
4649
- var definedDirectives = schema ? schema.getDirectives() : specifiedDirectives;
4650
-
4651
- for (var _i2 = 0; _i2 < definedDirectives.length; _i2++) {
4652
- var directive = definedDirectives[_i2];
4653
- uniqueDirectiveMap[directive.name] = !directive.isRepeatable;
4654
- }
4655
-
4656
- var astDefinitions = context.getDocument().definitions;
4657
-
4658
- for (var _i4 = 0; _i4 < astDefinitions.length; _i4++) {
4659
- var def = astDefinitions[_i4];
4660
-
4661
- if (def.kind === Kind.DIRECTIVE_DEFINITION) {
4662
- uniqueDirectiveMap[def.name.value] = !def.repeatable;
4663
- }
4664
- }
4665
-
4666
- var schemaDirectives = Object.create(null);
4667
- var typeDirectivesMap = Object.create(null);
4668
- return {
4669
- // Many different AST nodes may contain directives. Rather than listing
4670
- // them all, just listen for entering any node, and check to see if it
4671
- // defines any directives.
4672
- enter: function enter(node) {
4673
- if (node.directives == null) {
4674
- return;
4675
- }
4676
-
4677
- var seenDirectives;
4678
-
4679
- if (node.kind === Kind.SCHEMA_DEFINITION || node.kind === Kind.SCHEMA_EXTENSION) {
4680
- seenDirectives = schemaDirectives;
4681
- } else if (isTypeDefinitionNode(node) || isTypeExtensionNode(node)) {
4682
- var typeName = node.name.value;
4683
- seenDirectives = typeDirectivesMap[typeName];
4684
-
4685
- if (seenDirectives === undefined) {
4686
- typeDirectivesMap[typeName] = seenDirectives = Object.create(null);
4687
- }
4688
- } else {
4689
- seenDirectives = Object.create(null);
4690
- }
4691
-
4692
- for (var _i6 = 0, _node$directives2 = node.directives; _i6 < _node$directives2.length; _i6++) {
4693
- var _directive = _node$directives2[_i6];
4694
- var directiveName = _directive.name.value;
4695
-
4696
- if (uniqueDirectiveMap[directiveName]) {
4697
- if (seenDirectives[directiveName]) {
4698
- context.reportError(new GraphQLError("The directive \"@".concat(directiveName, "\" can only be used once at this location."), [seenDirectives[directiveName], _directive]));
4699
- } else {
4700
- seenDirectives[directiveName] = _directive;
4701
- }
4702
- }
4703
- }
4704
- }
4705
- };
4706
- }
4707
-
4708
- /**
4709
- * @internal
4710
- */
4711
-
4712
- function KnownArgumentNamesOnDirectivesRule(context) {
4713
- var directiveArgs = Object.create(null);
4714
- var schema = context.getSchema();
4715
- var definedDirectives = schema ? schema.getDirectives() : specifiedDirectives;
4716
-
4717
- for (var _i2 = 0; _i2 < definedDirectives.length; _i2++) {
4718
- var directive = definedDirectives[_i2];
4719
- directiveArgs[directive.name] = directive.args.map(function (arg) {
4720
- return arg.name;
4721
- });
4722
- }
4723
-
4724
- var astDefinitions = context.getDocument().definitions;
4725
-
4726
- for (var _i4 = 0; _i4 < astDefinitions.length; _i4++) {
4727
- var def = astDefinitions[_i4];
4728
-
4729
- if (def.kind === Kind.DIRECTIVE_DEFINITION) {
4730
- var _def$arguments;
4731
-
4732
- // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2203')
4733
- var argsNodes = (_def$arguments = def.arguments) !== null && _def$arguments !== void 0 ? _def$arguments : [];
4734
- directiveArgs[def.name.value] = argsNodes.map(function (arg) {
4735
- return arg.name.value;
4736
- });
4737
- }
4738
- }
4739
-
4740
- return {
4741
- Directive: function Directive(directiveNode) {
4742
- var directiveName = directiveNode.name.value;
4743
- var knownArgs = directiveArgs[directiveName];
4744
-
4745
- if (directiveNode.arguments && knownArgs) {
4746
- for (var _i6 = 0, _directiveNode$argume2 = directiveNode.arguments; _i6 < _directiveNode$argume2.length; _i6++) {
4747
- var argNode = _directiveNode$argume2[_i6];
4748
- var argName = argNode.name.value;
4749
-
4750
- if (knownArgs.indexOf(argName) === -1) {
4751
- var suggestions = suggestionList(argName, knownArgs);
4752
- context.reportError(new GraphQLError("Unknown argument \"".concat(argName, "\" on directive \"@").concat(directiveName, "\".") + didYouMean(suggestions), argNode));
4753
- }
4754
- }
4755
- }
4756
-
4757
- return false;
4758
- }
4759
- };
4760
- }
4761
-
4762
- /**
4763
- * Unique argument names
4764
- *
4765
- * A GraphQL field or directive is only valid if all supplied arguments are
4766
- * uniquely named.
4767
- */
4768
- function UniqueArgumentNamesRule(context) {
4769
- var knownArgNames = Object.create(null);
4770
- return {
4771
- Field: function Field() {
4772
- knownArgNames = Object.create(null);
4773
- },
4774
- Directive: function Directive() {
4775
- knownArgNames = Object.create(null);
4776
- },
4777
- Argument: function Argument(node) {
4778
- var argName = node.name.value;
4779
-
4780
- if (knownArgNames[argName]) {
4781
- context.reportError(new GraphQLError("There can be only one argument named \"".concat(argName, "\"."), [knownArgNames[argName], node.name]));
4782
- } else {
4783
- knownArgNames[argName] = node.name;
4784
- }
4785
-
4786
- return false;
4787
- }
4788
- };
4789
- }
4790
-
4791
- /**
4792
- * @internal
4793
- */
4794
-
4795
- function ProvidedRequiredArgumentsOnDirectivesRule(context) {
4796
- var requiredArgsMap = Object.create(null);
4797
- var schema = context.getSchema();
4798
- var definedDirectives = schema ? schema.getDirectives() : specifiedDirectives;
4799
-
4800
- for (var _i4 = 0; _i4 < definedDirectives.length; _i4++) {
4801
- var directive = definedDirectives[_i4];
4802
- requiredArgsMap[directive.name] = keyMap(directive.args.filter(isRequiredArgument), function (arg) {
4803
- return arg.name;
4804
- });
4805
- }
4806
-
4807
- var astDefinitions = context.getDocument().definitions;
4808
-
4809
- for (var _i6 = 0; _i6 < astDefinitions.length; _i6++) {
4810
- var def = astDefinitions[_i6];
4811
-
4812
- if (def.kind === Kind.DIRECTIVE_DEFINITION) {
4813
- var _def$arguments;
4814
-
4815
- // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2203')
4816
- var argNodes = (_def$arguments = def.arguments) !== null && _def$arguments !== void 0 ? _def$arguments : [];
4817
- requiredArgsMap[def.name.value] = keyMap(argNodes.filter(isRequiredArgumentNode), function (arg) {
4818
- return arg.name.value;
4819
- });
4820
- }
4821
- }
4822
-
4823
- return {
4824
- Directive: {
4825
- // Validate on leave to allow for deeper errors to appear first.
4826
- leave: function leave(directiveNode) {
4827
- var directiveName = directiveNode.name.value;
4828
- var requiredArgs = requiredArgsMap[directiveName];
4829
-
4830
- if (requiredArgs) {
4831
- var _directiveNode$argume;
4832
-
4833
- // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2203')
4834
- var _argNodes = (_directiveNode$argume = directiveNode.arguments) !== null && _directiveNode$argume !== void 0 ? _directiveNode$argume : [];
4835
-
4836
- var argNodeMap = keyMap(_argNodes, function (arg) {
4837
- return arg.name.value;
4838
- });
4839
-
4840
- for (var _i8 = 0, _Object$keys2 = Object.keys(requiredArgs); _i8 < _Object$keys2.length; _i8++) {
4841
- var argName = _Object$keys2[_i8];
4842
-
4843
- if (!argNodeMap[argName]) {
4844
- var argType = requiredArgs[argName].type;
4845
- var argTypeStr = isType(argType) ? inspect(argType) : print(argType);
4846
- context.reportError(new GraphQLError("Directive \"@".concat(directiveName, "\" argument \"").concat(argName, "\" of type \"").concat(argTypeStr, "\" is required, but it was not provided."), directiveNode));
4847
- }
4848
- }
4849
- }
4850
- }
4851
- }
4852
- };
4853
- }
4854
-
4855
- function isRequiredArgumentNode(arg) {
4856
- return arg.type.kind === Kind.NON_NULL_TYPE && arg.defaultValue == null;
4857
- }
4858
-
4859
- /**
4860
- * Unique input field names
4861
- *
4862
- * A GraphQL input object value is only valid if all supplied fields are
4863
- * uniquely named.
4864
- */
4865
- function UniqueInputFieldNamesRule(context) {
4866
- var knownNameStack = [];
4867
- var knownNames = Object.create(null);
4868
- return {
4869
- ObjectValue: {
4870
- enter: function enter() {
4871
- knownNameStack.push(knownNames);
4872
- knownNames = Object.create(null);
4873
- },
4874
- leave: function leave() {
4875
- knownNames = knownNameStack.pop();
4876
- }
4877
- },
4878
- ObjectField: function ObjectField(node) {
4879
- var fieldName = node.name.value;
4880
-
4881
- if (knownNames[fieldName]) {
4882
- context.reportError(new GraphQLError("There can be only one input field named \"".concat(fieldName, "\"."), [knownNames[fieldName], node.name]));
4883
- } else {
4884
- knownNames[fieldName] = node.name;
4885
- }
4886
- }
4887
- };
4888
- }
4889
-
4890
- /**
4891
- * Lone Schema definition
4892
- *
4893
- * A GraphQL document is only valid if it contains only one schema definition.
4894
- */
4895
- function LoneSchemaDefinitionRule(context) {
4896
- var _ref, _ref2, _oldSchema$astNode;
4897
-
4898
- var oldSchema = context.getSchema();
4899
- 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();
4900
- var schemaDefinitionsCount = 0;
4901
- return {
4902
- SchemaDefinition: function SchemaDefinition(node) {
4903
- if (alreadyDefined) {
4904
- context.reportError(new GraphQLError('Cannot define a new schema within a schema extension.', node));
4905
- return;
4906
- }
4907
-
4908
- if (schemaDefinitionsCount > 0) {
4909
- context.reportError(new GraphQLError('Must provide only one schema definition.', node));
4910
- }
4911
-
4912
- ++schemaDefinitionsCount;
4913
- }
4914
- };
4915
- }
4916
-
4917
- /**
4918
- * Unique operation types
4919
- *
4920
- * A GraphQL document is only valid if it has only one type per operation.
4921
- */
4922
- function UniqueOperationTypesRule(context) {
4923
- var schema = context.getSchema();
4924
- var definedOperationTypes = Object.create(null);
4925
- var existingOperationTypes = schema ? {
4926
- query: schema.getQueryType(),
4927
- mutation: schema.getMutationType(),
4928
- subscription: schema.getSubscriptionType()
4929
- } : {};
4930
- return {
4931
- SchemaDefinition: checkOperationTypes,
4932
- SchemaExtension: checkOperationTypes
4933
- };
4934
-
4935
- function checkOperationTypes(node) {
4936
- var _node$operationTypes;
4937
-
4938
- // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2203')
4939
- var operationTypesNodes = (_node$operationTypes = node.operationTypes) !== null && _node$operationTypes !== void 0 ? _node$operationTypes : [];
4940
-
4941
- for (var _i2 = 0; _i2 < operationTypesNodes.length; _i2++) {
4942
- var operationType = operationTypesNodes[_i2];
4943
- var operation = operationType.operation;
4944
- var alreadyDefinedOperationType = definedOperationTypes[operation];
4945
-
4946
- if (existingOperationTypes[operation]) {
4947
- context.reportError(new GraphQLError("Type for ".concat(operation, " already defined in the schema. It cannot be redefined."), operationType));
4948
- } else if (alreadyDefinedOperationType) {
4949
- context.reportError(new GraphQLError("There can be only one ".concat(operation, " type in schema."), [alreadyDefinedOperationType, operationType]));
4950
- } else {
4951
- definedOperationTypes[operation] = operationType;
4952
- }
4953
- }
4954
-
4955
- return false;
4956
- }
4957
- }
4958
-
4959
- /**
4960
- * Unique type names
4961
- *
4962
- * A GraphQL document is only valid if all defined types have unique names.
4963
- */
4964
- function UniqueTypeNamesRule(context) {
4965
- var knownTypeNames = Object.create(null);
4966
- var schema = context.getSchema();
4967
- return {
4968
- ScalarTypeDefinition: checkTypeName,
4969
- ObjectTypeDefinition: checkTypeName,
4970
- InterfaceTypeDefinition: checkTypeName,
4971
- UnionTypeDefinition: checkTypeName,
4972
- EnumTypeDefinition: checkTypeName,
4973
- InputObjectTypeDefinition: checkTypeName
4974
- };
4975
-
4976
- function checkTypeName(node) {
4977
- var typeName = node.name.value;
4978
-
4979
- if (schema !== null && schema !== void 0 && schema.getType(typeName)) {
4980
- context.reportError(new GraphQLError("Type \"".concat(typeName, "\" already exists in the schema. It cannot also be defined in this type definition."), node.name));
4981
- return;
4982
- }
4983
-
4984
- if (knownTypeNames[typeName]) {
4985
- context.reportError(new GraphQLError("There can be only one type named \"".concat(typeName, "\"."), [knownTypeNames[typeName], node.name]));
4986
- } else {
4987
- knownTypeNames[typeName] = node.name;
4988
- }
4989
-
4990
- return false;
4991
- }
4992
- }
4993
-
4994
- /**
4995
- * Unique enum value names
4996
- *
4997
- * A GraphQL enum type is only valid if all its values are uniquely named.
4998
- */
4999
- function UniqueEnumValueNamesRule(context) {
5000
- var schema = context.getSchema();
5001
- var existingTypeMap = schema ? schema.getTypeMap() : Object.create(null);
5002
- var knownValueNames = Object.create(null);
5003
- return {
5004
- EnumTypeDefinition: checkValueUniqueness,
5005
- EnumTypeExtension: checkValueUniqueness
5006
- };
5007
-
5008
- function checkValueUniqueness(node) {
5009
- var _node$values;
5010
-
5011
- var typeName = node.name.value;
5012
-
5013
- if (!knownValueNames[typeName]) {
5014
- knownValueNames[typeName] = Object.create(null);
5015
- } // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2203')
5016
-
5017
-
5018
- var valueNodes = (_node$values = node.values) !== null && _node$values !== void 0 ? _node$values : [];
5019
- var valueNames = knownValueNames[typeName];
5020
-
5021
- for (var _i2 = 0; _i2 < valueNodes.length; _i2++) {
5022
- var valueDef = valueNodes[_i2];
5023
- var valueName = valueDef.name.value;
5024
- var existingType = existingTypeMap[typeName];
5025
-
5026
- if (isEnumType(existingType) && existingType.getValue(valueName)) {
5027
- 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));
5028
- } else if (valueNames[valueName]) {
5029
- context.reportError(new GraphQLError("Enum value \"".concat(typeName, ".").concat(valueName, "\" can only be defined once."), [valueNames[valueName], valueDef.name]));
5030
- } else {
5031
- valueNames[valueName] = valueDef.name;
5032
- }
5033
- }
5034
-
5035
- return false;
5036
- }
5037
- }
5038
-
5039
- /**
5040
- * Unique field definition names
5041
- *
5042
- * A GraphQL complex type is only valid if all its fields are uniquely named.
5043
- */
5044
- function UniqueFieldDefinitionNamesRule(context) {
5045
- var schema = context.getSchema();
5046
- var existingTypeMap = schema ? schema.getTypeMap() : Object.create(null);
5047
- var knownFieldNames = Object.create(null);
5048
- return {
5049
- InputObjectTypeDefinition: checkFieldUniqueness,
5050
- InputObjectTypeExtension: checkFieldUniqueness,
5051
- InterfaceTypeDefinition: checkFieldUniqueness,
5052
- InterfaceTypeExtension: checkFieldUniqueness,
5053
- ObjectTypeDefinition: checkFieldUniqueness,
5054
- ObjectTypeExtension: checkFieldUniqueness
5055
- };
5056
-
5057
- function checkFieldUniqueness(node) {
5058
- var _node$fields;
5059
-
5060
- var typeName = node.name.value;
5061
-
5062
- if (!knownFieldNames[typeName]) {
5063
- knownFieldNames[typeName] = Object.create(null);
5064
- } // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2203')
5065
-
5066
-
5067
- var fieldNodes = (_node$fields = node.fields) !== null && _node$fields !== void 0 ? _node$fields : [];
5068
- var fieldNames = knownFieldNames[typeName];
5069
-
5070
- for (var _i2 = 0; _i2 < fieldNodes.length; _i2++) {
5071
- var fieldDef = fieldNodes[_i2];
5072
- var fieldName = fieldDef.name.value;
5073
-
5074
- if (hasField(existingTypeMap[typeName], fieldName)) {
5075
- 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));
5076
- } else if (fieldNames[fieldName]) {
5077
- context.reportError(new GraphQLError("Field \"".concat(typeName, ".").concat(fieldName, "\" can only be defined once."), [fieldNames[fieldName], fieldDef.name]));
5078
- } else {
5079
- fieldNames[fieldName] = fieldDef.name;
5080
- }
5081
- }
5082
-
5083
- return false;
5084
- }
5085
- }
5086
-
5087
- function hasField(type, fieldName) {
5088
- if (isObjectType(type) || isInterfaceType(type) || isInputObjectType(type)) {
5089
- return type.getFields()[fieldName] != null;
5090
- }
5091
-
5092
- return false;
5093
- }
5094
-
5095
- /**
5096
- * Unique directive names
5097
- *
5098
- * A GraphQL document is only valid if all defined directives have unique names.
5099
- */
5100
- function UniqueDirectiveNamesRule(context) {
5101
- var knownDirectiveNames = Object.create(null);
5102
- var schema = context.getSchema();
5103
- return {
5104
- DirectiveDefinition: function DirectiveDefinition(node) {
5105
- var directiveName = node.name.value;
5106
-
5107
- if (schema !== null && schema !== void 0 && schema.getDirective(directiveName)) {
5108
- context.reportError(new GraphQLError("Directive \"@".concat(directiveName, "\" already exists in the schema. It cannot be redefined."), node.name));
5109
- return;
5110
- }
5111
-
5112
- if (knownDirectiveNames[directiveName]) {
5113
- context.reportError(new GraphQLError("There can be only one directive named \"@".concat(directiveName, "\"."), [knownDirectiveNames[directiveName], node.name]));
5114
- } else {
5115
- knownDirectiveNames[directiveName] = node.name;
5116
- }
5117
-
5118
- return false;
5119
- }
5120
- };
5121
- }
5122
-
5123
4412
  var _defKindToExtKind;
5124
4413
 
5125
4414
  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; }
5126
-
5127
- /**
5128
- * Possible type extension
5129
- *
5130
- * A type extension is only valid if the type is defined and has the same kind.
5131
- */
5132
- function PossibleTypeExtensionsRule(context) {
5133
- var schema = context.getSchema();
5134
- var definedTypes = Object.create(null);
5135
-
5136
- for (var _i2 = 0, _context$getDocument$2 = context.getDocument().definitions; _i2 < _context$getDocument$2.length; _i2++) {
5137
- var def = _context$getDocument$2[_i2];
5138
-
5139
- if (isTypeDefinitionNode(def)) {
5140
- definedTypes[def.name.value] = def;
5141
- }
5142
- }
5143
-
5144
- return {
5145
- ScalarTypeExtension: checkExtension,
5146
- ObjectTypeExtension: checkExtension,
5147
- InterfaceTypeExtension: checkExtension,
5148
- UnionTypeExtension: checkExtension,
5149
- EnumTypeExtension: checkExtension,
5150
- InputObjectTypeExtension: checkExtension
5151
- };
5152
-
5153
- function checkExtension(node) {
5154
- var typeName = node.name.value;
5155
- var defNode = definedTypes[typeName];
5156
- var existingType = schema === null || schema === void 0 ? void 0 : schema.getType(typeName);
5157
- var expectedKind;
5158
-
5159
- if (defNode) {
5160
- expectedKind = defKindToExtKind[defNode.kind];
5161
- } else if (existingType) {
5162
- expectedKind = typeToExtKind(existingType);
5163
- }
5164
-
5165
- if (expectedKind) {
5166
- if (expectedKind !== node.kind) {
5167
- var kindStr = extensionKindToTypeName(node.kind);
5168
- context.reportError(new GraphQLError("Cannot extend non-".concat(kindStr, " type \"").concat(typeName, "\"."), defNode ? [defNode, node] : node));
5169
- }
5170
- } else {
5171
- var allTypeNames = Object.keys(definedTypes);
5172
-
5173
- if (schema) {
5174
- allTypeNames = allTypeNames.concat(Object.keys(schema.getTypeMap()));
5175
- }
5176
-
5177
- var suggestedTypes = suggestionList(typeName, allTypeNames);
5178
- context.reportError(new GraphQLError("Cannot extend type \"".concat(typeName, "\" because it is not defined.") + didYouMean(suggestedTypes), node.name));
5179
- }
5180
- }
5181
- }
5182
- 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);
5183
-
5184
- function typeToExtKind(type) {
5185
- if (isScalarType(type)) {
5186
- return Kind.SCALAR_TYPE_EXTENSION;
5187
- }
5188
-
5189
- if (isObjectType(type)) {
5190
- return Kind.OBJECT_TYPE_EXTENSION;
5191
- }
5192
-
5193
- if (isInterfaceType(type)) {
5194
- return Kind.INTERFACE_TYPE_EXTENSION;
5195
- }
5196
-
5197
- if (isUnionType(type)) {
5198
- return Kind.UNION_TYPE_EXTENSION;
5199
- }
5200
-
5201
- if (isEnumType(type)) {
5202
- return Kind.ENUM_TYPE_EXTENSION;
5203
- } // istanbul ignore else (See: 'https://github.com/graphql/graphql-js/issues/2618')
5204
-
5205
-
5206
- if (isInputObjectType(type)) {
5207
- return Kind.INPUT_OBJECT_TYPE_EXTENSION;
5208
- } // istanbul ignore next (Not reachable. All possible types have been considered)
5209
-
5210
-
5211
- invariant(0, 'Unexpected type: ' + inspect(type));
5212
- }
5213
-
5214
- function extensionKindToTypeName(kind) {
5215
- switch (kind) {
5216
- case Kind.SCALAR_TYPE_EXTENSION:
5217
- return 'scalar';
5218
-
5219
- case Kind.OBJECT_TYPE_EXTENSION:
5220
- return 'object';
5221
-
5222
- case Kind.INTERFACE_TYPE_EXTENSION:
5223
- return 'interface';
5224
-
5225
- case Kind.UNION_TYPE_EXTENSION:
5226
- return 'union';
5227
-
5228
- case Kind.ENUM_TYPE_EXTENSION:
5229
- return 'enum';
5230
-
5231
- case Kind.INPUT_OBJECT_TYPE_EXTENSION:
5232
- return 'input object';
5233
- } // istanbul ignore next (Not reachable. All possible types have been considered)
5234
-
5235
-
5236
- invariant(0, 'Unexpected kind: ' + inspect(kind));
5237
- }
5238
-
5239
- // Spec Section: "Executable Definitions"
5240
- /**
5241
- * @internal
5242
- */
5243
-
5244
- Object.freeze([LoneSchemaDefinitionRule, UniqueOperationTypesRule, UniqueTypeNamesRule, UniqueEnumValueNamesRule, UniqueFieldDefinitionNamesRule, UniqueDirectiveNamesRule, KnownTypeNamesRule, KnownDirectivesRule, UniqueDirectivesPerLocationRule, PossibleTypeExtensionsRule, KnownArgumentNamesOnDirectivesRule, UniqueArgumentNamesRule, UniqueInputFieldNamesRule, ProvidedRequiredArgumentsOnDirectivesRule]);
4415
+ (_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);
5245
4416
  keyMap(specifiedScalarTypes.concat(introspectionTypes), function (type) {
5246
4417
  return type.name;
5247
4418
  });
@@ -5252,6 +4423,7 @@ keyMap(specifiedScalarTypes.concat(introspectionTypes), function (type) {
5252
4423
  * For full license text, see the LICENSE.txt file
5253
4424
  */
5254
4425
 
4426
+
5255
4427
  /**
5256
4428
  * Defines configuration for the module with a default value which can be overridden by the runtime environment.
5257
4429
  */
@@ -5744,8 +4916,8 @@ function toSortedStringArray(value) {
5744
4916
  return undefined;
5745
4917
  }
5746
4918
 
5747
- const VERSION$2l = "d1e589a127fb1060c89070cdb6f500b2";
5748
- function validate$1D(obj, path = 'RecordTypeInfoRepresentation') {
4919
+ const VERSION$2m = "d1e589a127fb1060c89070cdb6f500b2";
4920
+ function validate$1F(obj, path = 'RecordTypeInfoRepresentation') {
5749
4921
  const v_error = (() => {
5750
4922
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5751
4923
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5778,10 +4950,10 @@ function validate$1D(obj, path = 'RecordTypeInfoRepresentation') {
5778
4950
  })();
5779
4951
  return v_error === undefined ? null : v_error;
5780
4952
  }
5781
- const select$2T = function RecordTypeInfoRepresentationSelect() {
4953
+ const select$2V = function RecordTypeInfoRepresentationSelect() {
5782
4954
  return {
5783
4955
  kind: 'Fragment',
5784
- version: VERSION$2l,
4956
+ version: VERSION$2m,
5785
4957
  private: [],
5786
4958
  selections: [
5787
4959
  {
@@ -5807,7 +4979,7 @@ const select$2T = function RecordTypeInfoRepresentationSelect() {
5807
4979
  ]
5808
4980
  };
5809
4981
  };
5810
- function equals$11(existing, incoming) {
4982
+ function equals$13(existing, incoming) {
5811
4983
  const existing_available = existing.available;
5812
4984
  const incoming_available = incoming.available;
5813
4985
  if (!(existing_available === incoming_available)) {
@@ -5836,8 +5008,8 @@ function equals$11(existing, incoming) {
5836
5008
  return true;
5837
5009
  }
5838
5010
 
5839
- const VERSION$2k = "195d918987a35f45e1aa4dce9a11d8c5";
5840
- function validate$1C(obj, path = 'FieldValueRepresentation') {
5011
+ const VERSION$2l = "195d918987a35f45e1aa4dce9a11d8c5";
5012
+ function validate$1E(obj, path = 'FieldValueRepresentation') {
5841
5013
  const v_error = (() => {
5842
5014
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
5843
5015
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -5928,10 +5100,10 @@ function validate$1C(obj, path = 'FieldValueRepresentation') {
5928
5100
  return v_error === undefined ? null : v_error;
5929
5101
  }
5930
5102
  const RepresentationType$V = 'FieldValueRepresentation';
5931
- const select$2S = function FieldValueRepresentationSelect() {
5103
+ const select$2U = function FieldValueRepresentationSelect() {
5932
5104
  return {
5933
5105
  kind: 'Fragment',
5934
- version: VERSION$2k,
5106
+ version: VERSION$2l,
5935
5107
  private: [],
5936
5108
  selections: [
5937
5109
  {
@@ -5942,12 +5114,12 @@ const select$2S = function FieldValueRepresentationSelect() {
5942
5114
  name: 'value',
5943
5115
  kind: 'Link',
5944
5116
  nullable: true,
5945
- fragment: select$2Q()
5117
+ fragment: select$2S()
5946
5118
  }
5947
5119
  ]
5948
5120
  };
5949
5121
  };
5950
- function equals$10(existing, incoming) {
5122
+ function equals$12(existing, incoming) {
5951
5123
  const existing_displayValue = existing.displayValue;
5952
5124
  const incoming_displayValue = incoming.displayValue;
5953
5125
  if (!(existing_displayValue === incoming_displayValue)) {
@@ -6005,8 +5177,8 @@ const getTypeCacheKeys$1V = (rootKeySet, luvio, input, _fullPathFactory) => {
6005
5177
  };
6006
5178
 
6007
5179
  const TTL$C = 120000;
6008
- const VERSION$2j = "79cb5ac9f44542f683d00245fdfe500d";
6009
- function validate$1B(obj, path = 'RecordCollectionRepresentation') {
5180
+ const VERSION$2k = "79cb5ac9f44542f683d00245fdfe500d";
5181
+ function validate$1D(obj, path = 'RecordCollectionRepresentation') {
6010
5182
  const v_error = (() => {
6011
5183
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6012
5184
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -6186,10 +5358,10 @@ function normalize$N(input, existing, path, luvio, store, timestamp) {
6186
5358
  }
6187
5359
  return input;
6188
5360
  }
6189
- const select$2R = function RecordCollectionRepresentationSelect() {
5361
+ const select$2T = function RecordCollectionRepresentationSelect() {
6190
5362
  return {
6191
5363
  kind: 'Fragment',
6192
- version: VERSION$2j,
5364
+ version: VERSION$2k,
6193
5365
  private: [],
6194
5366
  selections: [
6195
5367
  {
@@ -6224,12 +5396,12 @@ const select$2R = function RecordCollectionRepresentationSelect() {
6224
5396
  name: 'records',
6225
5397
  kind: 'Link',
6226
5398
  plural: true,
6227
- fragment: select$2Q()
5399
+ fragment: select$2S()
6228
5400
  }
6229
5401
  ]
6230
5402
  };
6231
5403
  };
6232
- function equals$$(existing, incoming) {
5404
+ function equals$11(existing, incoming) {
6233
5405
  const existing_count = existing.count;
6234
5406
  const incoming_count = incoming.count;
6235
5407
  if (!(existing_count === incoming_count)) {
@@ -6279,14 +5451,14 @@ function equals$$(existing, incoming) {
6279
5451
  }
6280
5452
  const ingest$1S = function RecordCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
6281
5453
  if (process.env.NODE_ENV !== 'production') {
6282
- const validateError = validate$1B(input);
5454
+ const validateError = validate$1D(input);
6283
5455
  if (validateError !== null) {
6284
5456
  throw validateError;
6285
5457
  }
6286
5458
  }
6287
5459
  const key = path.fullPath;
6288
5460
  const ttlToUse = TTL$C;
6289
- ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$N, "UiApi", VERSION$2j, RepresentationType$U, equals$$);
5461
+ ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$N, "UiApi", VERSION$2k, RepresentationType$U, equals$11);
6290
5462
  return createLink$1(key);
6291
5463
  };
6292
5464
  function getTypeCacheKeys$1U(rootKeySet, luvio, input, fullPathFactory) {
@@ -6314,8 +5486,8 @@ const keyBuilderFromType$z = function RecordRepresentationKeyBuilderFromType(luv
6314
5486
  };
6315
5487
 
6316
5488
  const TTL$B = 30000;
6317
- const VERSION$2i = "98c5b18512e48ca8d28727549507e4ba";
6318
- function validate$1A(obj, path = 'RecordRepresentation') {
5489
+ const VERSION$2j = "98c5b18512e48ca8d28727549507e4ba";
5490
+ function validate$1C(obj, path = 'RecordRepresentation') {
6319
5491
  const v_error = (() => {
6320
5492
  if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
6321
5493
  return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
@@ -6445,7 +5617,7 @@ function validate$1A(obj, path = 'RecordRepresentation') {
6445
5617
  const path_recordTypeInfo = path + '.recordTypeInfo';
6446
5618
  let obj_recordTypeInfo_union0 = null;
6447
5619
  const obj_recordTypeInfo_union0_error = (() => {
6448
- const referencepath_recordTypeInfoValidationError = validate$1D(obj_recordTypeInfo, path_recordTypeInfo);
5620
+ const referencepath_recordTypeInfoValidationError = validate$1F(obj_recordTypeInfo, path_recordTypeInfo);
6449
5621
  if (referencepath_recordTypeInfoValidationError !== null) {
6450
5622
  let message = 'Object doesn\'t match RecordTypeInfoRepresentation (at "' + path_recordTypeInfo + '")\n';
6451
5623
  message += referencepath_recordTypeInfoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
@@ -6505,14 +5677,14 @@ function validate$1A(obj, path = 'RecordRepresentation') {
6505
5677
  return v_error === undefined ? null : v_error;
6506
5678
  }
6507
5679
  const RepresentationType$T = 'RecordRepresentation';
6508
- function keyBuilder$36(luvio, config) {
5680
+ function keyBuilder$35(luvio, config) {
6509
5681
  return keyPrefix + '::' + RepresentationType$T + ':' + config.recordId;
6510
5682
  }
6511
5683
  function keyBuilderFromType$y(luvio, object) {
6512
5684
  const keyParams = {
6513
5685
  recordId: object.id
6514
5686
  };
6515
- return keyBuilder$36(luvio, keyParams);
5687
+ return keyBuilder$35(luvio, keyParams);
6516
5688
  }
6517
5689
  function dynamicNormalize$5(ingestParams) {
6518
5690
  return function normalize_dynamic(input, existing, path, luvio, store, timestamp) {
@@ -6557,11 +5729,11 @@ function dynamicNormalize$5(ingestParams) {
6557
5729
  return input;
6558
5730
  };
6559
5731
  }
6560
- const select$2Q = function RecordRepresentationSelect() {
6561
- const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$2T();
5732
+ const select$2S = function RecordRepresentationSelect() {
5733
+ const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$2V();
6562
5734
  return {
6563
5735
  kind: 'Fragment',
6564
- version: VERSION$2i,
5736
+ version: VERSION$2j,
6565
5737
  private: [
6566
5738
  'eTag',
6567
5739
  'weakEtag'
@@ -6575,13 +5747,13 @@ const select$2Q = function RecordRepresentationSelect() {
6575
5747
  name: 'childRelationships',
6576
5748
  kind: 'Link',
6577
5749
  map: true,
6578
- fragment: select$2R()
5750
+ fragment: select$2T()
6579
5751
  },
6580
5752
  {
6581
5753
  name: 'fields',
6582
5754
  kind: 'Link',
6583
5755
  map: true,
6584
- fragment: select$2S()
5756
+ fragment: select$2U()
6585
5757
  },
6586
5758
  {
6587
5759
  name: 'id',
@@ -6617,18 +5789,18 @@ const dynamicSelect$8 = function dynamicRecordRepresentationSelect(params) {
6617
5789
  name: 'childRelationships',
6618
5790
  kind: 'Link',
6619
5791
  map: true,
6620
- fragment: select$2R()
5792
+ fragment: select$2T()
6621
5793
  } : params.childRelationships;
6622
5794
  const fieldsPathSelection = params.fields === undefined ? {
6623
5795
  name: 'fields',
6624
5796
  kind: 'Link',
6625
5797
  map: true,
6626
- fragment: select$2S()
5798
+ fragment: select$2U()
6627
5799
  } : params.fields;
6628
- const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$2T();
5800
+ const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$2V();
6629
5801
  return {
6630
5802
  kind: 'Fragment',
6631
- version: VERSION$2i,
5803
+ version: VERSION$2j,
6632
5804
  private: [
6633
5805
  'eTag',
6634
5806
  'weakEtag'
@@ -6669,7 +5841,7 @@ const dynamicSelect$8 = function dynamicRecordRepresentationSelect(params) {
6669
5841
  ]
6670
5842
  };
6671
5843
  };
6672
- function equals$_(existing, incoming) {
5844
+ function equals$10(existing, incoming) {
6673
5845
  const existing_weakEtag = existing.weakEtag;
6674
5846
  const incoming_weakEtag = incoming.weakEtag;
6675
5847
  if (!(existing_weakEtag === incoming_weakEtag)) {
@@ -6730,7 +5902,7 @@ function equals$_(existing, incoming) {
6730
5902
  if (!(existing_recordTypeInfo === incoming_recordTypeInfo
6731
5903
  || (existing_recordTypeInfo != null &&
6732
5904
  incoming_recordTypeInfo != null &&
6733
- equals$11(existing_recordTypeInfo, incoming_recordTypeInfo)))) {
5905
+ equals$13(existing_recordTypeInfo, incoming_recordTypeInfo)))) {
6734
5906
  return false;
6735
5907
  }
6736
5908
  const existing_systemModstamp = existing.systemModstamp;
@@ -8107,7 +7279,7 @@ function createPathSelection(propertyName, fieldDefinition) {
8107
7279
  kind: 'Fragment',
8108
7280
  private: ['eTag', 'weakEtag'],
8109
7281
  selections: createRecordSelection(childFieldDefinition),
8110
- version: VERSION$2i,
7282
+ version: VERSION$2j,
8111
7283
  },
8112
7284
  };
8113
7285
  }
@@ -8117,7 +7289,7 @@ function createPathSelection(propertyName, fieldDefinition) {
8117
7289
  required: childFieldDefinition.optional === true ? false : undefined,
8118
7290
  fragment: {
8119
7291
  kind: 'Fragment',
8120
- version: VERSION$2k,
7292
+ version: VERSION$2l,
8121
7293
  private: [],
8122
7294
  selections: [DISPLAY_VALUE_SELECTION, fieldValueSelection],
8123
7295
  },
@@ -8594,7 +7766,7 @@ function mergeRecordConflict(luvio, incoming, existing, recordConflictMap) {
8594
7766
  name: existing.apiName,
8595
7767
  children: {},
8596
7768
  };
8597
- const recordKey = keyBuilder$36(luvio, {
7769
+ const recordKey = keyBuilder$35(luvio, {
8598
7770
  recordId: incoming.id,
8599
7771
  });
8600
7772
  const trackedFieldsConfig = {
@@ -8760,7 +7932,7 @@ function normalize$M(input, existing, path, luvio, store, timestamp, fieldsTrie,
8760
7932
  function makeIngest(fieldsTrie, optionalFieldsTrie, recordConflictMap) {
8761
7933
  return (input, path, luvio, store, timestamp) => {
8762
7934
  if (process.env.NODE_ENV !== 'production') {
8763
- const validateError = validate$1C(input);
7935
+ const validateError = validate$1E(input);
8764
7936
  if (validateError !== null) {
8765
7937
  throw validateError;
8766
7938
  }
@@ -8775,7 +7947,7 @@ function makeIngest(fieldsTrie, optionalFieldsTrie, recordConflictMap) {
8775
7947
  // read again after children ingested in case of a circular ref
8776
7948
  existingRecord = store.readEntry(key);
8777
7949
  incomingRecord = merge$2(existingRecord, incomingRecord, luvio, path);
8778
- if (existingRecord === undefined || equals$10(existingRecord, incomingRecord) === false) {
7950
+ if (existingRecord === undefined || equals$12(existingRecord, incomingRecord) === false) {
8779
7951
  luvio.storePublish(key, incomingRecord);
8780
7952
  }
8781
7953
  return createLink$1(key);
@@ -8853,7 +8025,7 @@ const createRecordIngest = (fieldsTrie, optionalFieldsTrie, recordConflictMap) =
8853
8025
  const childNormalize = createChildRecordNormalize(fieldsTrie, optionalFieldsTrie, recordConflictMap);
8854
8026
  return (input, path, luvio, store, timestamp) => {
8855
8027
  if (process.env.NODE_ENV !== 'production') {
8856
- const validateError = validate$1A(input);
8028
+ const validateError = validate$1C(input);
8857
8029
  if (validateError !== null) {
8858
8030
  throw validateError;
8859
8031
  }
@@ -8870,7 +8042,7 @@ const createRecordIngest = (fieldsTrie, optionalFieldsTrie, recordConflictMap) =
8870
8042
  existingRecord = store.readEntry(key);
8871
8043
  incomingRecord = merge$3(existingRecord, incomingRecord, luvio, path, recordConflictMap);
8872
8044
  if (existingRecord === undefined ||
8873
- equals$_(existingRecord, incomingRecord) === false ||
8045
+ equals$10(existingRecord, incomingRecord) === false ||
8874
8046
  // always publish if existing record has drafts
8875
8047
  existingRecord.drafts !==
8876
8048
  undefined) {
@@ -8880,7 +8052,7 @@ const createRecordIngest = (fieldsTrie, optionalFieldsTrie, recordConflictMap) =
8880
8052
  ttl: TTL$B,
8881
8053
  representationName: RepresentationType$T,
8882
8054
  namespace: keyPrefix,
8883
- version: VERSION$2i,
8055
+ version: VERSION$2j,
8884
8056
  });
8885
8057
  return createLink$1(key);
8886
8058
  };
@@ -8976,8 +8148,8 @@ const createResourceRequest$16 = function getUiApiRecordsByRecordIdCreateResourc
8976
8148
  };
8977
8149
  };
8978
8150
 
8979
- function keyBuilder$35(luvio, params) {
8980
- return keyBuilder$36(luvio, {
8151
+ function keyBuilder$34(luvio, params) {
8152
+ return keyBuilder$35(luvio, {
8981
8153
  recordId: params.urlParams.recordId
8982
8154
  });
8983
8155
  }
@@ -9013,12 +8185,12 @@ const createResourceParams$Z = /*#__PURE__*/ createResourceParams(getRecord_Conf
9013
8185
  // used by getUiApiRecordsBatchByRecordIds#selectChildResourceParams
9014
8186
  function buildRecordSelector(luvio, recordId, fields, optionalFields) {
9015
8187
  return {
9016
- recordId: keyBuilder$36(luvio, { recordId }),
8188
+ recordId: keyBuilder$35(luvio, { recordId }),
9017
8189
  node: {
9018
8190
  kind: 'Fragment',
9019
8191
  private: ['eTag', 'weakEtag'],
9020
8192
  selections: buildSelectionFromFields(fields, optionalFields),
9021
- version: VERSION$2i,
8193
+ version: VERSION$2j,
9022
8194
  },
9023
8195
  variables: {},
9024
8196
  };
@@ -9032,7 +8204,7 @@ function buildSnapshotRefresh$5(luvio, config) {
9032
8204
  function prepareRequest$6(luvio, config) {
9033
8205
  const { recordId, fields } = config;
9034
8206
  // Should this go into the coersion logic?
9035
- const key = keyBuilder$35(luvio, createResourceParams$Z(config));
8207
+ const key = keyBuilder$34(luvio, createResourceParams$Z(config));
9036
8208
  const allTrackedFields = getTrackedFields(key, luvio.getNode(key), {
9037
8209
  maxDepth: configurationForRestAdapters.getTrackedFieldDepthOnCacheMiss(),
9038
8210
  onlyFetchLeafNodeIdAndName: configurationForRestAdapters.getTrackedFieldLeafNodeIdAndNameOnly(),
@@ -9103,17 +8275,17 @@ function isSingleBatchRecordResponse(response) {
9103
8275
  response.results.length === 1);
9104
8276
  }
9105
8277
 
9106
- const VERSION$2h = "98cce53b8d13b1883d001bbdaab24383";
8278
+ const VERSION$2i = "98cce53b8d13b1883d001bbdaab24383";
9107
8279
 
9108
- const nonCachedErrors$7 = ObjectCreate$1(null);
9109
- function ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount = 0) {
8280
+ const nonCachedErrors$8 = ObjectCreate$1(null);
8281
+ function ingestSuccessChildResourceParams$8(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount = 0) {
9110
8282
  const childSnapshotDataResponses = [];
9111
8283
  let seenRecords = new StoreKeySet();
9112
8284
  let snapshotState = 'Fulfilled';
9113
8285
  const now = Date.now();
9114
8286
  for (let index = 0, len = childResourceParamsArray.length; index < len; index += 1) {
9115
8287
  const childResourceParams = childResourceParamsArray[index];
9116
- const childKey = keyBuilder$35(luvio, childResourceParams);
8288
+ const childKey = keyBuilder$34(luvio, childResourceParams);
9117
8289
  const result = childEnvelopes[index];
9118
8290
  const { statusCode: childStatusCode, result: childBody } = result;
9119
8291
  if (childStatusCode === 200) {
@@ -9168,14 +8340,14 @@ function ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, chi
9168
8340
  }
9169
8341
  // track non-cached responses so rebuilds work properly
9170
8342
  if (childStatusCode !== 404 && childStatusCode !== 200) {
9171
- nonCachedErrors$7[childKey] = {
8343
+ nonCachedErrors$8[childKey] = {
9172
8344
  expiration: now + TTL$B,
9173
8345
  response: childBody,
9174
8346
  status: childStatusCode,
9175
8347
  };
9176
8348
  }
9177
8349
  else {
9178
- delete nonCachedErrors$7[childKey];
8350
+ delete nonCachedErrors$8[childKey];
9179
8351
  }
9180
8352
  }
9181
8353
  const childSnapshotData = {
@@ -9189,7 +8361,7 @@ function ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, chi
9189
8361
  };
9190
8362
  }
9191
8363
 
9192
- function selectChildResourceParams$7(luvio, childResources, resourceParams) {
8364
+ function selectChildResourceParams$8(luvio, childResources, resourceParams) {
9193
8365
  const envelopeBodyPath = 'result';
9194
8366
  const envelopeStatusCodePath = 'statusCode';
9195
8367
  const envelopePath = 'results';
@@ -9200,11 +8372,11 @@ function selectChildResourceParams$7(luvio, childResources, resourceParams) {
9200
8372
  read: (reader) => {
9201
8373
  // Top-level 404 lookup
9202
8374
  const compositeSnapshot = luvio.storeLookup({
9203
- recordId: keyBuilder$34(luvio, resourceParams),
8375
+ recordId: keyBuilder$33(luvio, resourceParams),
9204
8376
  node: {
9205
8377
  kind: 'Fragment',
9206
8378
  private: [],
9207
- version: VERSION$2h,
8379
+ version: VERSION$2i,
9208
8380
  },
9209
8381
  variables: {},
9210
8382
  });
@@ -9224,7 +8396,7 @@ function selectChildResourceParams$7(luvio, childResources, resourceParams) {
9224
8396
  reader.enterPath(i);
9225
8397
  reader.enterPath(envelopeBodyPath);
9226
8398
  const childResource = childResources[i];
9227
- const childKey = keyBuilder$35(luvio, childResource);
8399
+ const childKey = keyBuilder$34(luvio, childResource);
9228
8400
  const isMissingDataBeforeChildRead = reader.getIsDataMissing();
9229
8401
  const childSnapshot = reader.read(buildRecordSelector(luvio, childResource.urlParams.recordId, childResource.queryParams.fields || [], childResource.queryParams.optionalFields || []));
9230
8402
  reader.exitPath();
@@ -9270,7 +8442,7 @@ function selectChildResourceParams$7(luvio, childResources, resourceParams) {
9270
8442
  // has non-cached errors (since the top-level composite
9271
8443
  // snapshot will look like an Unfulfilled snapshot
9272
8444
  // instead of an error snapshot).
9273
- const nonCachedError = nonCachedErrors$7[childKey];
8445
+ const nonCachedError = nonCachedErrors$8[childKey];
9274
8446
  if (nonCachedError === undefined ||
9275
8447
  nonCachedError.expiration < timestamp) {
9276
8448
  reader.markMissingLink(childKey);
@@ -9308,8 +8480,8 @@ function selectChildResourceParams$7(luvio, childResources, resourceParams) {
9308
8480
  }
9309
8481
 
9310
8482
  ObjectCreate$1(null);
9311
- function createChildResourceParams$9(resourceParams) {
9312
- const childConfigs = [];
8483
+ function createChildResourceParams$c(resourceParams) {
8484
+ let childConfigs = [];
9313
8485
  for (let index = 0, len = resourceParams.urlParams.recordIds.length; index < len; index += 1) {
9314
8486
  const item = resourceParams.urlParams.recordIds[index];
9315
8487
  childConfigs.push({
@@ -9324,12 +8496,12 @@ function createChildResourceParams$9(resourceParams) {
9324
8496
  }
9325
8497
  return childConfigs;
9326
8498
  }
9327
- function keyBuilder$34(luvio, params) {
8499
+ function keyBuilder$33(luvio, params) {
9328
8500
  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 + ')';
9329
8501
  }
9330
8502
  function getResponseCacheKeys$Y(keys, luvio, resourceParams, response) {
9331
8503
  const childEnvelopes = response.results;
9332
- const childResourceParamsArray = createChildResourceParams$9(resourceParams);
8504
+ const childResourceParamsArray = createChildResourceParams$c(resourceParams);
9333
8505
  if (process.env.NODE_ENV !== 'production') {
9334
8506
  if (childResourceParamsArray.length !== childEnvelopes.length) {
9335
8507
  throw new Error('Invalid composite resource response. Expected ' + childResourceParamsArray.length + ' items, received ' + childEnvelopes.length);
@@ -9344,7 +8516,7 @@ function getResponseCacheKeys$Y(keys, luvio, resourceParams, response) {
9344
8516
  getResponseCacheKeys$Z(keys, luvio, childResourceParams, childBody);
9345
8517
  }
9346
8518
  else if (childStatusCode === 404) {
9347
- const childKey = keyBuilder$35(luvio, childResourceParams);
8519
+ const childKey = keyBuilder$34(luvio, childResourceParams);
9348
8520
  keys.set(childKey, {
9349
8521
  namespace: keyPrefix,
9350
8522
  representationName: RepresentationType$T,
@@ -9354,7 +8526,7 @@ function getResponseCacheKeys$Y(keys, luvio, resourceParams, response) {
9354
8526
  }
9355
8527
  }
9356
8528
  function ingestError$L(luvio, params, error, snapshotRefresh) {
9357
- const key = keyBuilder$34(luvio, params);
8529
+ const key = keyBuilder$33(luvio, params);
9358
8530
  const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
9359
8531
  luvio.storeIngestError(key, errorSnapshot);
9360
8532
  return errorSnapshot;
@@ -9399,7 +8571,7 @@ function createResourceParams$Y(config) {
9399
8571
  };
9400
8572
  }
9401
8573
 
9402
- function createChildResourceParams$8(config) {
8574
+ function createChildResourceParams$b(config) {
9403
8575
  const childResources = [];
9404
8576
  const { records } = config;
9405
8577
  for (let outerIdx = 0, numOfRecordBatches = records.length; outerIdx < numOfRecordBatches; outerIdx += 1) {
@@ -9426,14 +8598,14 @@ function createChildResourceParams$8(config) {
9426
8598
  }
9427
8599
 
9428
8600
  function adapterFragment$J(luvio, config) {
9429
- const childResources = createChildResourceParams$8(config);
8601
+ const childResources = createChildResourceParams$b(config);
9430
8602
  const resourceParams = createResourceParams$Y(config);
9431
- return selectChildResourceParams$7(luvio, childResources, resourceParams);
8603
+ return selectChildResourceParams$8(luvio, childResources, resourceParams);
9432
8604
  }
9433
8605
 
9434
8606
  function onFetchResponseSuccess$N(luvio, config, resourceParams, response, serverRequestCount = 0) {
9435
8607
  const childEnvelopes = response.body.results;
9436
- const childResourceParamsArray = createChildResourceParams$8(config);
8608
+ const childResourceParamsArray = createChildResourceParams$b(config);
9437
8609
  if (process.env.NODE_ENV !== 'production') {
9438
8610
  if (childResourceParamsArray.length !== childEnvelopes.length) {
9439
8611
  throw new Error('Invalid composite resource response. Expected ' +
@@ -9443,8 +8615,8 @@ function onFetchResponseSuccess$N(luvio, config, resourceParams, response, serve
9443
8615
  }
9444
8616
  }
9445
8617
  const snapshotStateFulfilled = 'Fulfilled';
9446
- const key = keyBuilder$34(luvio, resourceParams);
9447
- const { childSnapshotData, seenRecords } = ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount);
8618
+ const key = keyBuilder$33(luvio, resourceParams);
8619
+ const { childSnapshotData, seenRecords } = ingestSuccessChildResourceParams$8(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount);
9448
8620
  const snapshot = {
9449
8621
  recordId: key,
9450
8622
  data: childSnapshotData,
@@ -9591,7 +8763,7 @@ const getMruListUi_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationCon
9591
8763
  },
9592
8764
  });
9593
8765
  const RepresentationType$O = 'ObjectInfoRepresentation';
9594
- function keyBuilder$2T(luvio, config) {
8766
+ function keyBuilder$2S(luvio, config) {
9595
8767
  return keyPrefix + '::' + RepresentationType$O + ':' + config.apiName;
9596
8768
  }
9597
8769
 
@@ -9621,6 +8793,8 @@ var FormFactor;
9621
8793
  FormFactor["Small"] = "Small";
9622
8794
  })(FormFactor || (FormFactor = {}));
9623
8795
 
8796
+ ObjectCreate$1(null);
8797
+
9624
8798
  var LayoutType;
9625
8799
  (function (LayoutType) {
9626
8800
  LayoutType["Full"] = "Full";
@@ -9835,7 +9009,6 @@ ObjectCreate$1(null);
9835
9009
 
9836
9010
  ObjectCreate$1(null);
9837
9011
 
9838
- // Copied from generated resource
9839
9012
  ObjectCreate$1(null);
9840
9013
 
9841
9014
  var DiscriminatorValues;
@@ -9944,7 +9117,7 @@ function getShallowRecord(luvio, storeRecordId) {
9944
9117
  */
9945
9118
  function getObjectMetadata(luvio, record) {
9946
9119
  const { data: objectInfo } = luvio.storeLookup({
9947
- recordId: keyBuilder$2T(luvio, { apiName: record.apiName }),
9120
+ recordId: keyBuilder$2S(luvio, { apiName: record.apiName }),
9948
9121
  node: {
9949
9122
  kind: 'Fragment',
9950
9123
  private: ['eTag'],
@@ -9985,7 +9158,7 @@ function getObjectMetadata(luvio, record) {
9985
9158
  function fixRecordTypes(luvio, record) {
9986
9159
  // non-master record types should always be correct
9987
9160
  if (record.recordTypeId === MASTER_RECORD_TYPE_ID) {
9988
- const key = keyBuilder$36(luvio, { recordId: record.id });
9161
+ const key = keyBuilder$35(luvio, { recordId: record.id });
9989
9162
  const recordNode = luvio.getNode(key);
9990
9163
  if (isGraphNode(recordNode) &&
9991
9164
  recordNode.scalar('recordTypeId') !== MASTER_RECORD_TYPE_ID) {
@@ -10072,7 +9245,7 @@ class AdsBridge {
10072
9245
  */
10073
9246
  evict(recordId) {
10074
9247
  const { luvio } = this;
10075
- const key = keyBuilder$36(luvio, { recordId });
9248
+ const key = keyBuilder$35(luvio, { recordId });
10076
9249
  return this.lockLdsRecordEmit(() => {
10077
9250
  luvio.storeEvict(key);
10078
9251
  luvio.storeBroadcast();
@@ -10087,7 +9260,7 @@ class AdsBridge {
10087
9260
  */
10088
9261
  getTrackedFieldsForRecord(recordId) {
10089
9262
  const { luvio } = this;
10090
- const storeRecordId = keyBuilder$36(luvio, { recordId });
9263
+ const storeRecordId = keyBuilder$35(luvio, { recordId });
10091
9264
  const recordNode = luvio.getNode(storeRecordId);
10092
9265
  if (!isGraphNode(recordNode)) {
10093
9266
  return Promise.resolve([]);