@salesforce/lds-worker-api 1.378.0 → 1.379.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.
@@ -4274,7 +4274,7 @@ function withDefaultLuvio(callback) {
4274
4274
  }
4275
4275
  callbacks.push(callback);
4276
4276
  }
4277
- // version: 1.378.0-0ab3d40d29
4277
+ // version: 1.379.0-fc97fd9203
4278
4278
 
4279
4279
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4280
4280
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -5318,7 +5318,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
5318
5318
  const { apiFamily, name } = metadata;
5319
5319
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
5320
5320
  }
5321
- // version: 1.378.0-0ab3d40d29
5321
+ // version: 1.379.0-fc97fd9203
5322
5322
 
5323
5323
  /**
5324
5324
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -34154,7 +34154,7 @@ withDefaultLuvio((luvio) => {
34154
34154
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
34155
34155
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
34156
34156
  });
34157
- // version: 1.378.0-63d7c07562
34157
+ // version: 1.379.0-a57c798add
34158
34158
 
34159
34159
  function requestIdleDetectedCallback(_callback) { }
34160
34160
  function declareNotifierTaskSingle(_name) {
@@ -45764,15 +45764,6 @@ var graphqlL2AdapterGate = {
45764
45764
  },
45765
45765
  };
45766
45766
 
45767
- var productConsumedSideEffects = {
45768
- isOpen: function (e) {
45769
- return e.fallback;
45770
- },
45771
- hasError: function () {
45772
- return !0;
45773
- },
45774
- };
45775
-
45776
45767
  var useOneStore = {
45777
45768
  isOpen: function (e) {
45778
45769
  return e.fallback;
@@ -46117,6 +46108,15 @@ function buildReadWriteResult(data, errors) {
46117
46108
  return ok$4(data);
46118
46109
  }
46119
46110
 
46111
+ var productConsumedSideEffects = {
46112
+ isOpen: function (e) {
46113
+ return e.fallback;
46114
+ },
46115
+ hasError: function () {
46116
+ return !0;
46117
+ },
46118
+ };
46119
+
46120
46120
  /**
46121
46121
  * Copyright (c) 2022, Salesforce, Inc.,
46122
46122
  * All rights reserved.
@@ -95881,7 +95881,7 @@ function buildServiceDescriptor$5(luvio) {
95881
95881
  },
95882
95882
  };
95883
95883
  }
95884
- // version: 1.378.0-63d7c07562
95884
+ // version: 1.379.0-a57c798add
95885
95885
 
95886
95886
  /**
95887
95887
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -95907,7 +95907,7 @@ function buildServiceDescriptor$4(notifyRecordUpdateAvailable, getNormalizedLuvi
95907
95907
  },
95908
95908
  };
95909
95909
  }
95910
- // version: 1.378.0-63d7c07562
95910
+ // version: 1.379.0-a57c798add
95911
95911
 
95912
95912
  /*!
95913
95913
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -98023,7 +98023,7 @@ register$1({
98023
98023
  id: '@salesforce/lds-network-adapter',
98024
98024
  instrument: instrument$2,
98025
98025
  });
98026
- // version: 1.378.0-0ab3d40d29
98026
+ // version: 1.379.0-fc97fd9203
98027
98027
 
98028
98028
  const { create: create$3, keys: keys$3 } = Object;
98029
98029
  const { stringify: stringify$1, parse } = JSON;
@@ -99402,7 +99402,11 @@ class BaseGraphQLTypeRepository {
99402
99402
  }
99403
99403
  augmentInlineFragmentSelection(fragment, fragments) {
99404
99404
  var _a;
99405
- if (!this.satisfiesFragmentTypeCondition(fragment)) {
99405
+ const satisfiedFragmentTypeConditionResult = this.satisfiesFragmentTypeCondition(
99406
+ void 0,
99407
+ fragment
99408
+ );
99409
+ if (satisfiedFragmentTypeConditionResult.isErr() || !satisfiedFragmentTypeConditionResult.value) {
99406
99410
  return { selections: [], fragments };
99407
99411
  }
99408
99412
  const augmentedFragmentSelections = this.augmentSelections({
@@ -99428,7 +99432,11 @@ class BaseGraphQLTypeRepository {
99428
99432
  if (fragment === void 0) {
99429
99433
  return { selections: [selection], fragments };
99430
99434
  }
99431
- if (!this.satisfiesFragmentTypeCondition(fragment)) {
99435
+ const satisfiedFragmentTypeConditionResult = this.satisfiesFragmentTypeCondition(
99436
+ void 0,
99437
+ fragment
99438
+ );
99439
+ if (satisfiedFragmentTypeConditionResult.isErr() || !satisfiedFragmentTypeConditionResult.value) {
99432
99440
  return { selections: [], fragments };
99433
99441
  }
99434
99442
  const augmentedFragmentSelections = this.augmentSelections({
@@ -99541,10 +99549,7 @@ class BaseGraphQLTypeRepository {
99541
99549
  };
99542
99550
  }
99543
99551
  normalizeFragment(cache, input, fragment, errorCollector) {
99544
- const shouldProcessResult = this.shouldProcessFragment(
99545
- fragment,
99546
- input.request.definitions.variables
99547
- );
99552
+ const shouldProcessResult = this.shouldProcessFragment(input, fragment);
99548
99553
  if (shouldProcessResult.isErr()) {
99549
99554
  errorCollector.push({
99550
99555
  type: "unknown",
@@ -99675,10 +99680,7 @@ class BaseGraphQLTypeRepository {
99675
99680
  };
99676
99681
  }
99677
99682
  denormalizeFragment(cache, input, fragment, errorCollector) {
99678
- const shouldProcessResult = this.shouldProcessFragment(
99679
- fragment,
99680
- input.request.definitions.variables
99681
- );
99683
+ const shouldProcessResult = this.shouldProcessFragment(input, fragment);
99682
99684
  if (shouldProcessResult.isErr()) {
99683
99685
  errorCollector.push({
99684
99686
  type: "unknown",
@@ -99716,28 +99718,28 @@ class BaseGraphQLTypeRepository {
99716
99718
  }
99717
99719
  return void 0;
99718
99720
  }
99719
- shouldProcessFragment(fragment, variables) {
99720
- const shouldSkipResult = shouldSkip(fragment, variables);
99721
+ shouldProcessFragment(input, fragment) {
99722
+ const shouldSkipResult = shouldSkip(fragment, input.request.definitions.variables);
99721
99723
  if (shouldSkipResult.isErr()) {
99722
99724
  return shouldSkipResult;
99723
99725
  }
99724
99726
  if (shouldSkipResult.value) {
99725
99727
  return ok$4(false);
99726
99728
  }
99727
- return ok$4(this.satisfiesFragmentTypeCondition(fragment));
99729
+ return this.satisfiesFragmentTypeCondition(input, fragment);
99728
99730
  }
99729
- satisfiesFragmentTypeCondition(fragment) {
99731
+ satisfiesFragmentTypeCondition(_input, fragment) {
99730
99732
  if (!fragment.typeCondition) {
99731
- return true;
99733
+ return ok$4(true);
99732
99734
  }
99733
99735
  const conditionalTypeName = fragment.typeCondition.name.value;
99734
99736
  if (conditionalTypeName === this.typeName) {
99735
- return true;
99737
+ return ok$4(true);
99736
99738
  }
99737
99739
  if (this.implementedInterfaces.includes(conditionalTypeName)) {
99738
- return true;
99740
+ return ok$4(true);
99739
99741
  }
99740
- return false;
99742
+ return ok$4(false);
99741
99743
  }
99742
99744
  getCacheKeyFieldArguments(selection) {
99743
99745
  return selection.arguments;
@@ -100466,10 +100468,11 @@ class GraphQLCommandWireAdapterConstructor extends CommandWireAdapterConstructor
100466
100468
  }
100467
100469
  }
100468
100470
  function buildAsyncGraphQLImperativeLegacyInvoker(getCommand) {
100469
- const invoke = async (config, _requestContext, callback) => {
100471
+ const invoke = async (config, requestContext, callback) => {
100470
100472
  const command = getCommand({ config, assertIsValid });
100471
100473
  try {
100472
- const result = await command.execute();
100474
+ const overrides = requestContextIsCachePolicy(requestContext) ? { cacheControlConfig: { type: "no-cache" } } : {};
100475
+ const result = await command.execute(overrides);
100473
100476
  if (result.isOk()) {
100474
100477
  deepFreeze(result.value);
100475
100478
  }
@@ -100478,11 +100481,12 @@ function buildAsyncGraphQLImperativeLegacyInvoker(getCommand) {
100478
100481
  emitGraphQLResult(callback, err$1(error));
100479
100482
  }
100480
100483
  };
100481
- const subscribe = (config, _requestContext, callback) => {
100484
+ const subscribe = (config, requestContext, callback) => {
100482
100485
  const command = getCommand({ config, assertIsValid });
100483
100486
  let unsubscribe = () => {
100484
100487
  };
100485
- command.execute().then((result) => {
100488
+ const overrides = requestContextIsCachePolicy(requestContext) ? { cacheControlConfig: { type: "no-cache" } } : {};
100489
+ command.execute(overrides).then((result) => {
100486
100490
  if (!result.isOk()) {
100487
100491
  emitGraphQLResult(callback, result);
100488
100492
  return;
@@ -100498,7 +100502,10 @@ function buildAsyncGraphQLImperativeLegacyInvoker(getCommand) {
100498
100502
  };
100499
100503
  return { invoke, subscribe };
100500
100504
  }
100501
- // version: 1.378.0-63d7c07562
100505
+ function requestContextIsCachePolicy(requestContext) {
100506
+ return typeof requestContext === "object" && requestContext !== null && "cachePolicy" in requestContext && typeof requestContext.cachePolicy === "object" && requestContext.cachePolicy !== null && "type" in requestContext.cachePolicy && requestContext.cachePolicy.type === "no-cache";
100507
+ }
100508
+ // version: 1.379.0-a57c798add
100502
100509
 
100503
100510
  class Analytics__AnalyticsBrowseRepository extends UnidentifiableGraphQLTypeRepository {
100504
100511
  constructor(services, typeRegistry) {
@@ -100710,7 +100717,14 @@ class AnyTypeRepository extends BaseUnionRepository {
100710
100717
  this.namespace = "oas";
100711
100718
  this.typeName = "AnyType";
100712
100719
  this.implementedInterfaces = [];
100713
- this.possibleTypes = {
100720
+ }
100721
+ get fields() {
100722
+ return {
100723
+ __typename: new BaseScalarFieldDef(false),
100724
+ };
100725
+ }
100726
+ get possibleTypes() {
100727
+ return {
100714
100728
  BooleanValue: this.typeRegistry.BooleanValue,
100715
100729
  DateValue: this.typeRegistry.DateValue,
100716
100730
  DateTimeValue: this.typeRegistry.DateTimeValue,
@@ -100718,11 +100732,6 @@ class AnyTypeRepository extends BaseUnionRepository {
100718
100732
  StringValue: this.typeRegistry.StringValue,
100719
100733
  };
100720
100734
  }
100721
- get fields() {
100722
- return {
100723
- __typename: new BaseScalarFieldDef(false),
100724
- };
100725
- }
100726
100735
  }
100727
100736
 
100728
100737
  class Base64ValueRepository extends UnidentifiableGraphQLTypeRepository {
@@ -101655,7 +101664,7 @@ class PicklistValueRepository extends UnidentifiableGraphQLTypeRepository {
101655
101664
  }
101656
101665
  }
101657
101666
 
101658
- class PolymorphicAggregateParentRelationshipRepository extends BaseUnionRepository {
101667
+ let PolymorphicAggregateParentRelationshipRepository$1 = class PolymorphicAggregateParentRelationshipRepository extends BaseUnionRepository {
101659
101668
  constructor(services, typeRegistry) {
101660
101669
  super(services);
101661
101670
  this.services = services;
@@ -101663,16 +101672,18 @@ class PolymorphicAggregateParentRelationshipRepository extends BaseUnionReposito
101663
101672
  this.namespace = "oas";
101664
101673
  this.typeName = "PolymorphicAggregateParentRelationship";
101665
101674
  this.implementedInterfaces = [];
101666
- this.possibleTypes = {
101667
- RecordAggregate: this.typeRegistry.RecordAggregate,
101668
- };
101669
101675
  }
101670
101676
  get fields() {
101671
101677
  return {
101672
101678
  __typename: new BaseScalarFieldDef(false),
101673
101679
  };
101674
101680
  }
101675
- }
101681
+ get possibleTypes() {
101682
+ return {
101683
+ RecordAggregate: this.typeRegistry.RecordAggregate,
101684
+ };
101685
+ }
101686
+ };
101676
101687
 
101677
101688
  let PolymorphicParentRelationshipRepository$1 = class PolymorphicParentRelationshipRepository extends BaseUnionRepository {
101678
101689
  constructor(services, typeRegistry) {
@@ -101682,15 +101693,17 @@ let PolymorphicParentRelationshipRepository$1 = class PolymorphicParentRelations
101682
101693
  this.namespace = "oas";
101683
101694
  this.typeName = "PolymorphicParentRelationship";
101684
101695
  this.implementedInterfaces = [];
101685
- this.possibleTypes = {
101686
- RecordRepresentation: this.typeRegistry.RecordRepresentation,
101687
- };
101688
101696
  }
101689
101697
  get fields() {
101690
101698
  return {
101691
101699
  __typename: new BaseScalarFieldDef(false),
101692
101700
  };
101693
101701
  }
101702
+ get possibleTypes() {
101703
+ return {
101704
+ RecordRepresentation: this.typeRegistry.RecordRepresentation,
101705
+ };
101706
+ }
101694
101707
  };
101695
101708
 
101696
101709
  class QueryRepository extends GraphQLDocumentRootTypeRepository {
@@ -101715,7 +101728,7 @@ class QueryRepository extends GraphQLDocumentRootTypeRepository {
101715
101728
  }
101716
101729
  }
101717
101730
 
101718
- class RecordAggregateConnectionRepository extends UnidentifiableGraphQLTypeRepository {
101731
+ let RecordAggregateConnectionRepository$1 = class RecordAggregateConnectionRepository extends UnidentifiableGraphQLTypeRepository {
101719
101732
  constructor(services, typeRegistry) {
101720
101733
  super(services);
101721
101734
  this.services = services;
@@ -101732,9 +101745,9 @@ class RecordAggregateConnectionRepository extends UnidentifiableGraphQLTypeRepos
101732
101745
  totalCount: new BaseScalarFieldDef(false),
101733
101746
  };
101734
101747
  }
101735
- }
101748
+ };
101736
101749
 
101737
- class RecordAggregateEdgeRepository extends UnidentifiableGraphQLTypeRepository {
101750
+ let RecordAggregateEdgeRepository$1 = class RecordAggregateEdgeRepository extends UnidentifiableGraphQLTypeRepository {
101738
101751
  constructor(services, typeRegistry) {
101739
101752
  super(services);
101740
101753
  this.services = services;
@@ -101750,7 +101763,7 @@ class RecordAggregateEdgeRepository extends UnidentifiableGraphQLTypeRepository
101750
101763
  cursor: new BaseScalarFieldDef(false),
101751
101764
  };
101752
101765
  }
101753
- }
101766
+ };
101754
101767
 
101755
101768
  let RecordAggregateRepository$1 = class RecordAggregateRepository extends UnidentifiableGraphQLTypeRepository {
101756
101769
  constructor(services, typeRegistry) {
@@ -101788,7 +101801,7 @@ let RecordAggregateRepository$1 = class RecordAggregateRepository extends Uniden
101788
101801
  }
101789
101802
  };
101790
101803
 
101791
- class RecordConnectionRepository extends UnidentifiableGraphQLTypeRepository {
101804
+ let RecordConnectionRepository$1 = class RecordConnectionRepository extends UnidentifiableGraphQLTypeRepository {
101792
101805
  constructor(services, typeRegistry) {
101793
101806
  super(services);
101794
101807
  this.services = services;
@@ -101806,9 +101819,9 @@ class RecordConnectionRepository extends UnidentifiableGraphQLTypeRepository {
101806
101819
  pageResultCount: new BaseScalarFieldDef(false),
101807
101820
  };
101808
101821
  }
101809
- }
101822
+ };
101810
101823
 
101811
- class RecordEdgeRepository extends UnidentifiableGraphQLTypeRepository {
101824
+ let RecordEdgeRepository$1 = class RecordEdgeRepository extends UnidentifiableGraphQLTypeRepository {
101812
101825
  constructor(services, typeRegistry) {
101813
101826
  super(services);
101814
101827
  this.services = services;
@@ -101824,7 +101837,7 @@ class RecordEdgeRepository extends UnidentifiableGraphQLTypeRepository {
101824
101837
  cursor: new BaseScalarFieldDef(false),
101825
101838
  };
101826
101839
  }
101827
- }
101840
+ };
101828
101841
 
101829
101842
  let RecordQueryAggregateRepository$1 = class RecordQueryAggregateRepository extends UnidentifiableGraphQLTypeRepository {
101830
101843
  constructor(services, typeRegistry) {
@@ -101919,7 +101932,7 @@ let RecordRepresentationRepository$1 = class RecordRepresentationRepository exte
101919
101932
  }
101920
101933
  };
101921
101934
 
101922
- class RecordResultRepository extends UnidentifiableGraphQLTypeRepository {
101935
+ let RecordResultRepository$1 = class RecordResultRepository extends UnidentifiableGraphQLTypeRepository {
101923
101936
  constructor(services, typeRegistry) {
101924
101937
  super(services);
101925
101938
  this.services = services;
@@ -101934,7 +101947,7 @@ class RecordResultRepository extends UnidentifiableGraphQLTypeRepository {
101934
101947
  aggregate: new BaseObjectFieldDef(this.typeRegistry.RecordAggregate, true),
101935
101948
  };
101936
101949
  }
101937
- }
101950
+ };
101938
101951
 
101939
101952
  class RecordTypeInfoRepository extends UnidentifiableGraphQLTypeRepository {
101940
101953
  constructor(services, typeRegistry) {
@@ -102357,15 +102370,17 @@ class Setup__SetupPolymorphicAggregateParentRelationshipRepository extends BaseU
102357
102370
  this.namespace = "oas";
102358
102371
  this.typeName = "Setup__SetupPolymorphicAggregateParentRelationship";
102359
102372
  this.implementedInterfaces = [];
102360
- this.possibleTypes = {
102361
- Setup__SetupRecordAggregate: this.typeRegistry.Setup__SetupRecordAggregate,
102362
- };
102363
102373
  }
102364
102374
  get fields() {
102365
102375
  return {
102366
102376
  __typename: new BaseScalarFieldDef(false),
102367
102377
  };
102368
102378
  }
102379
+ get possibleTypes() {
102380
+ return {
102381
+ Setup__SetupRecordAggregate: this.typeRegistry.Setup__SetupRecordAggregate,
102382
+ };
102383
+ }
102369
102384
  }
102370
102385
 
102371
102386
  class Setup__SetupPolymorphicParentRelationshipRepository extends BaseUnionRepository {
@@ -102376,15 +102391,17 @@ class Setup__SetupPolymorphicParentRelationshipRepository extends BaseUnionRepos
102376
102391
  this.namespace = "oas";
102377
102392
  this.typeName = "Setup__SetupPolymorphicParentRelationship";
102378
102393
  this.implementedInterfaces = [];
102379
- this.possibleTypes = {
102380
- Setup__EntityRepresentation: this.typeRegistry.Setup__EntityRepresentation,
102381
- };
102382
102394
  }
102383
102395
  get fields() {
102384
102396
  return {
102385
102397
  __typename: new BaseScalarFieldDef(false),
102386
102398
  };
102387
102399
  }
102400
+ get possibleTypes() {
102401
+ return {
102402
+ Setup__EntityRepresentation: this.typeRegistry.Setup__EntityRepresentation,
102403
+ };
102404
+ }
102388
102405
  }
102389
102406
 
102390
102407
  class Setup__SetupQueryAggregateRepository extends UnidentifiableGraphQLTypeRepository {
@@ -102734,10 +102751,10 @@ class GraphQLTypeRegistry {
102734
102751
  this._AnyType = new AnyTypeRepository(this.services, this);
102735
102752
  this._RecordRepresentation =
102736
102753
  new RecordRepresentationRepository$1(this.services, this);
102737
- this._RecordEdge = new RecordEdgeRepository(this.services, this);
102754
+ this._RecordEdge = new RecordEdgeRepository$1(this.services, this);
102738
102755
  this._PageInfo = new PageInfoRepository(this.services, this);
102739
102756
  this._RecordConnection =
102740
- new RecordConnectionRepository(this.services, this);
102757
+ new RecordConnectionRepository$1(this.services, this);
102741
102758
  this._RecordQuery = new RecordQueryRepository$1(this.services, this);
102742
102759
  this._BooleanAggregate =
102743
102760
  new BooleanAggregateRepository(this.services, this);
@@ -102767,13 +102784,13 @@ class GraphQLTypeRegistry {
102767
102784
  this._TimeAggregate = new TimeAggregateRepository(this.services, this);
102768
102785
  this._UrlAggregate = new UrlAggregateRepository(this.services, this);
102769
102786
  this._PolymorphicAggregateParentRelationship =
102770
- new PolymorphicAggregateParentRelationshipRepository(this.services, this);
102787
+ new PolymorphicAggregateParentRelationshipRepository$1(this.services, this);
102771
102788
  this._RecordAggregate = new RecordAggregateRepository$1(this.services, this);
102772
- this._RecordResult = new RecordResultRepository(this.services, this);
102789
+ this._RecordResult = new RecordResultRepository$1(this.services, this);
102773
102790
  this._RecordAggregateEdge =
102774
- new RecordAggregateEdgeRepository(this.services, this);
102791
+ new RecordAggregateEdgeRepository$1(this.services, this);
102775
102792
  this._RecordAggregateConnection =
102776
- new RecordAggregateConnectionRepository(this.services, this);
102793
+ new RecordAggregateConnectionRepository$1(this.services, this);
102777
102794
  this._RecordQueryAggregate =
102778
102795
  new RecordQueryAggregateRepository$1(this.services, this);
102779
102796
  this._ChildRelationship =
@@ -103323,9 +103340,19 @@ class RecordRepresentationBaseRepository extends BaseGraphQLTypeRepository {
103323
103340
  'RecordTypeId',
103324
103341
  ];
103325
103342
  }
103326
- getFieldDef(input, selection) {
103343
+ getFieldDef(_input, selection) {
103327
103344
  return buildGenericTypeFieldDef(selection, this.fields, this.staticFieldNames, this.typeName);
103328
103345
  }
103346
+ satisfiesFragmentTypeCondition(_input, fragment) {
103347
+ const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103348
+ if (result.isErr()) {
103349
+ return result;
103350
+ }
103351
+ if (result.value) {
103352
+ return result;
103353
+ }
103354
+ return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103355
+ }
103329
103356
  }
103330
103357
 
103331
103358
  class RecordRepresentationRepository extends RecordRepresentationRepository$1 {
@@ -103348,15 +103375,26 @@ class RecordRepresentationRepository extends RecordRepresentationRepository$1 {
103348
103375
  let overridenInput = input;
103349
103376
  // If ID exists in the data but wasn't asked for, its from the extensions, and we should normalize it
103350
103377
  if (input.data.Id !== undefined &&
103351
- input.selections.find((selection) => selection.kind === 'Field' && selection.name.value === 'Id')) {
103378
+ !input.selections.find((selection) => selection.kind === 'Field' && selection.name.value === 'Id')) {
103352
103379
  overridenInput = {
103353
- ...input,
103380
+ ...overridenInput,
103354
103381
  selections: [
103355
- ...input.selections,
103382
+ ...overridenInput.selections,
103356
103383
  { kind: 'Field', name: { kind: 'Name', value: 'Id' } },
103357
103384
  ],
103358
103385
  };
103359
103386
  }
103387
+ // If WeakEtag exists in the data but wasn't asked for, its from the extensions, and we should normalize it
103388
+ if (input.data.WeakEtag !== undefined &&
103389
+ !input.selections.find((selection) => selection.kind === 'Field' && selection.name.value === 'WeakEtag')) {
103390
+ overridenInput = {
103391
+ ...overridenInput,
103392
+ selections: [
103393
+ ...overridenInput.selections,
103394
+ { kind: 'Field', name: { kind: 'Name', value: 'WeakEtag' } },
103395
+ ],
103396
+ };
103397
+ }
103360
103398
  const result = super.write(cache, overridenInput);
103361
103399
  const recordId = input.data.Id;
103362
103400
  const luvioRecord = input.getNormalizedLuvioRecord(recordId, input.reader);
@@ -103369,13 +103407,18 @@ class RecordRepresentationRepository extends RecordRepresentationRepository$1 {
103369
103407
  }
103370
103408
  read(cache, input) {
103371
103409
  const result = super.read(cache, input);
103372
- const idData = super.read(cache, {
103410
+ const trackingData = super.read(cache, {
103373
103411
  ...input,
103374
- selections: [{ kind: 'Field', name: { kind: 'Name', value: 'Id' } }],
103412
+ selections: [
103413
+ { kind: 'Field', name: { kind: 'Name', value: 'Id' } },
103414
+ { kind: 'Field', name: { kind: 'Name', value: 'WeakEtag' } },
103415
+ ],
103375
103416
  });
103376
- if (idData.isOk()) {
103417
+ if (trackingData.isOk()) {
103377
103418
  // Read the record to track subscription
103378
- input.getNormalizedLuvioRecord(idData.value.Id, input.reader);
103419
+ input.getNormalizedLuvioRecord(trackingData.value.Id, input.reader);
103420
+ // Track the weak etag for the record for cross cache invalidation
103421
+ input.usedRecordIdToWeakEtagMap[trackingData.value.Id] = trackingData.value.WeakEtag;
103379
103422
  }
103380
103423
  return result;
103381
103424
  }
@@ -103468,6 +103511,16 @@ class CompoundFieldRepository extends CompoundFieldRepository$1 {
103468
103511
  isBaseFieldSelection(selection) {
103469
103512
  return super.getFieldDef(undefined, selection) !== undefined;
103470
103513
  }
103514
+ satisfiesFragmentTypeCondition(_input, fragment) {
103515
+ const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103516
+ if (result.isErr()) {
103517
+ return result;
103518
+ }
103519
+ if (result.value) {
103520
+ return result;
103521
+ }
103522
+ return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103523
+ }
103471
103524
  }
103472
103525
 
103473
103526
  class RecordQueryRepository extends RecordQueryRepository$1 {
@@ -103489,6 +103542,16 @@ class RecordAggregateRepository extends RecordAggregateRepository$1 {
103489
103542
  getFieldDef(input, selection) {
103490
103543
  return buildGenericTypeFieldDef(selection, this.fields, this.staticFieldNames, this.typeName);
103491
103544
  }
103545
+ satisfiesFragmentTypeCondition(_input, fragment) {
103546
+ const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103547
+ if (result.isErr()) {
103548
+ return result;
103549
+ }
103550
+ if (result.value) {
103551
+ return result;
103552
+ }
103553
+ return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103554
+ }
103492
103555
  }
103493
103556
 
103494
103557
  class RecordQueryAggregateRepository extends RecordQueryAggregateRepository$1 {
@@ -103503,10 +103566,12 @@ class RecordQueryAggregateRepository extends RecordQueryAggregateRepository$1 {
103503
103566
  }
103504
103567
  }
103505
103568
 
103569
+ // This should be smarter, and filter on selections, but for now,
103570
+ // we'll match the luvio behavior of returning the blob
103506
103571
  const blobTypeDef = {
103507
103572
  read: (_cache, input) => {
103508
103573
  return ok({
103509
- data: input.data,
103574
+ data: input.normalizedData,
103510
103575
  });
103511
103576
  },
103512
103577
  write: (_cache, input) => {
@@ -103574,6 +103639,16 @@ class SetupEntityRepresentationRepository extends UnidentifiableGraphQLTypeRepos
103574
103639
  // We should make this smarter, storing and returning blobs isn't great since it could, and likely will, include unrequested field data
103575
103640
  return blobTypeDef;
103576
103641
  }
103642
+ satisfiesFragmentTypeCondition(input, fragment) {
103643
+ const result = super.satisfiesFragmentTypeCondition(input, fragment);
103644
+ if (result.isErr()) {
103645
+ return result;
103646
+ }
103647
+ if (result.value) {
103648
+ return result;
103649
+ }
103650
+ return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103651
+ }
103577
103652
  }
103578
103653
 
103579
103654
  class SetupQueryAggregateRepository extends Setup__SetupQueryAggregateRepository {
@@ -103611,6 +103686,16 @@ class SetupRecordAggregateRepository extends Setup__SetupRecordAggregateReposito
103611
103686
  }
103612
103687
  return blobTypeDef;
103613
103688
  }
103689
+ satisfiesFragmentTypeCondition(_input, fragment) {
103690
+ const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103691
+ if (result.isErr()) {
103692
+ return result;
103693
+ }
103694
+ if (result.value) {
103695
+ return result;
103696
+ }
103697
+ return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103698
+ }
103614
103699
  }
103615
103700
 
103616
103701
  class PolymorphicParentRelationshipRepository extends PolymorphicParentRelationshipRepository$1 {
@@ -103621,26 +103706,242 @@ class PolymorphicParentRelationshipRepository extends PolymorphicParentRelations
103621
103706
  }
103622
103707
  }
103623
103708
 
103709
+ // We're going to override the generated repository
103710
+ // to make this a pseudo-identifiable repository
103711
+ // so that we can independently control its cache control (no-cache)
103712
+ class SetupRepository extends IdentifiableGraphQLTypeRepository {
103713
+ constructor(services, typeRegistry) {
103714
+ super(services);
103715
+ this.typeRegistry = typeRegistry;
103716
+ this.namespace = 'oas';
103717
+ this.typeName = 'Setup__Setup';
103718
+ this.implementedInterfaces = [];
103719
+ this.cacheControl = {
103720
+ type: 'no-cache',
103721
+ };
103722
+ this.baseRepository = new Setup__SetupRepository(services, typeRegistry);
103723
+ }
103724
+ get fields() {
103725
+ return this.baseRepository.fields;
103726
+ }
103727
+ buildKeyParams(_input) {
103728
+ return null;
103729
+ }
103730
+ augmentSelections(input) {
103731
+ return this.baseRepository.augmentSelections(input);
103732
+ }
103733
+ }
103734
+
103735
+ class SetupEdgeRepository extends Setup__SetupEdgeRepository {
103736
+ satisfiesFragmentTypeCondition(_input, fragment) {
103737
+ const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103738
+ if (result.isErr()) {
103739
+ return result;
103740
+ }
103741
+ if (result.value) {
103742
+ return result;
103743
+ }
103744
+ return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103745
+ }
103746
+ }
103747
+
103748
+ class PolymorphicAggregateParentRelationshipRepository extends PolymorphicAggregateParentRelationshipRepository$1 {
103749
+ getTypeDiscriminator(data, _selections) {
103750
+ // Hardcoded to record aggregate since that's the only type of parent
103751
+ // relationship possible
103752
+ return 'RecordAggregate';
103753
+ }
103754
+ }
103755
+
103756
+ class RecordAggregateConnectionRepository extends RecordAggregateConnectionRepository$1 {
103757
+ satisfiesFragmentTypeCondition(_input, fragment) {
103758
+ const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103759
+ if (result.isErr()) {
103760
+ return result;
103761
+ }
103762
+ if (result.value) {
103763
+ return result;
103764
+ }
103765
+ return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103766
+ }
103767
+ }
103768
+
103769
+ class RecordAggregateEdgeRepository extends RecordAggregateEdgeRepository$1 {
103770
+ satisfiesFragmentTypeCondition(_input, fragment) {
103771
+ const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103772
+ if (result.isErr()) {
103773
+ return result;
103774
+ }
103775
+ if (result.value) {
103776
+ return result;
103777
+ }
103778
+ return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103779
+ }
103780
+ }
103781
+
103782
+ class RecordConnectionRepository extends RecordConnectionRepository$1 {
103783
+ satisfiesFragmentTypeCondition(_input, fragment) {
103784
+ const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103785
+ if (result.isErr()) {
103786
+ return result;
103787
+ }
103788
+ if (result.value) {
103789
+ return result;
103790
+ }
103791
+ return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103792
+ }
103793
+ }
103794
+
103795
+ class RecordEdgeRepository extends RecordEdgeRepository$1 {
103796
+ satisfiesFragmentTypeCondition(_input, fragment) {
103797
+ const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103798
+ if (result.isErr()) {
103799
+ return result;
103800
+ }
103801
+ if (result.value) {
103802
+ return result;
103803
+ }
103804
+ return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103805
+ }
103806
+ }
103807
+
103808
+ class RecordResultRepository extends RecordResultRepository$1 {
103809
+ satisfiesFragmentTypeCondition(_input, fragment) {
103810
+ const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103811
+ if (result.isErr()) {
103812
+ return result;
103813
+ }
103814
+ if (result.value) {
103815
+ return result;
103816
+ }
103817
+ return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103818
+ }
103819
+ }
103820
+
103821
+ class SetupRecordResultRepository extends Setup__SetupRecordResultRepository {
103822
+ satisfiesFragmentTypeCondition(_input, fragment) {
103823
+ const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103824
+ if (result.isErr()) {
103825
+ return result;
103826
+ }
103827
+ if (result.value) {
103828
+ return result;
103829
+ }
103830
+ return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103831
+ }
103832
+ }
103833
+
103834
+ class SetupAggregateConnectionRepository extends Setup__SetupAggregateConnectionRepository {
103835
+ satisfiesFragmentTypeCondition(_input, fragment) {
103836
+ const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103837
+ if (result.isErr()) {
103838
+ return result;
103839
+ }
103840
+ if (result.value) {
103841
+ return result;
103842
+ }
103843
+ return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103844
+ }
103845
+ }
103846
+
103847
+ class SetupAggregateEdgeRepository extends Setup__SetupAggregateEdgeRepository {
103848
+ satisfiesFragmentTypeCondition(_input, fragment) {
103849
+ const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103850
+ if (result.isErr()) {
103851
+ return result;
103852
+ }
103853
+ if (result.value) {
103854
+ return result;
103855
+ }
103856
+ return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103857
+ }
103858
+ }
103859
+
103860
+ class SetupConnectionRepository extends Setup__SetupConnectionRepository {
103861
+ satisfiesFragmentTypeCondition(_input, fragment) {
103862
+ const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103863
+ if (result.isErr()) {
103864
+ return result;
103865
+ }
103866
+ if (result.value) {
103867
+ return result;
103868
+ }
103869
+ return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103870
+ }
103871
+ }
103872
+
103873
+ class SetupPolymorphicAggregateParentRelationshipRepository extends Setup__SetupPolymorphicAggregateParentRelationshipRepository {
103874
+ getTypeDiscriminator(data, _selections) {
103875
+ // Hardcoded to Setup__SetupRecordAggregate since that's the only type of parent
103876
+ // relationship possible
103877
+ return 'Setup__SetupRecordAggregate';
103878
+ }
103879
+ }
103880
+
103881
+ class SetupPolymorphicParentRelationshipRepository extends Setup__SetupPolymorphicParentRelationshipRepository {
103882
+ getTypeDiscriminator(data, _selections) {
103883
+ // Hardcoded to Setup__EntityRepresentation since that's the only type of parent
103884
+ // relationship possible
103885
+ return 'Setup__EntityRepresentation';
103886
+ }
103887
+ }
103888
+
103624
103889
  class CustomGraphQLTypeRegistry extends GraphQLTypeRegistry {
103625
103890
  constructor(services) {
103626
103891
  super(services);
103627
- this._RecordRepresentation = new RecordRepresentationRepository(services, this);
103892
+ // UIAPI Records overrides
103628
103893
  this._CompoundField = new CompoundFieldRepository(services, this);
103629
- this._RecordQuery = new RecordQueryRepository(services, this);
103894
+ this._PolymorphicAggregateParentRelationship =
103895
+ new PolymorphicAggregateParentRelationshipRepository(services, this);
103896
+ this._PolymorphicParentRelationship = new PolymorphicParentRelationshipRepository(services, this);
103897
+ this._RecordAggregateConnection = new RecordAggregateConnectionRepository(services, this);
103898
+ this._RecordAggregateEdge = new RecordAggregateEdgeRepository(services, this);
103630
103899
  this._RecordAggregate = new RecordAggregateRepository(services, this);
103900
+ this._RecordConnection = new RecordConnectionRepository(services, this);
103901
+ this._RecordEdge = new RecordEdgeRepository(services, this);
103631
103902
  this._RecordQueryAggregate = new RecordQueryAggregateRepository(services, this);
103903
+ this._RecordQuery = new RecordQueryRepository(services, this);
103904
+ this._RecordRepresentation = new RecordRepresentationRepository(services, this);
103905
+ this._RecordResult = new RecordResultRepository(services, this);
103906
+ // Setup overrides
103907
+ this._SetupAggregateConnection = new SetupAggregateConnectionRepository(services, this);
103908
+ this._SetupAggregateEdge = new SetupAggregateEdgeRepository(services, this);
103909
+ this._SetupConnection = new SetupConnectionRepository(services, this);
103910
+ this._SetupEdge = new SetupEdgeRepository(services, this);
103632
103911
  this._SetupEntityRepresentation = new SetupEntityRepresentationRepository(services, this);
103912
+ this._SetupPolymorphicAggregateParentRelationship =
103913
+ new SetupPolymorphicAggregateParentRelationshipRepository(services, this);
103914
+ this._SetupPolymorphicParentRelationship = new SetupPolymorphicParentRelationshipRepository(services, this);
103633
103915
  this._SetupQueryAggregate = new SetupQueryAggregateRepository(services, this);
103634
103916
  this._SetupQuery = new SetupQueryRepository(services, this);
103635
103917
  this._SetupRecordAggregate = new SetupRecordAggregateRepository(services, this);
103636
- this._PolymorphicParentRelationship = new PolymorphicParentRelationshipRepository(services, this);
103918
+ this._SetupRecordResult = new SetupRecordResultRepository(services, this);
103919
+ this._Setup = new SetupRepository(services, this);
103637
103920
  }
103638
103921
  get CompoundField() {
103639
103922
  return this._CompoundField;
103640
103923
  }
103924
+ get PolymorphicAggregateParentRelationship() {
103925
+ return this._PolymorphicAggregateParentRelationship;
103926
+ }
103927
+ get PolymorphicParentRelationship() {
103928
+ return this._PolymorphicParentRelationship;
103929
+ }
103930
+ get RecordAggregateConnection() {
103931
+ return this._RecordAggregateConnection;
103932
+ }
103933
+ get RecordAggregateEdge() {
103934
+ return this._RecordAggregateEdge;
103935
+ }
103641
103936
  get RecordAggregate() {
103642
103937
  return this._RecordAggregate;
103643
103938
  }
103939
+ get RecordConnection() {
103940
+ return this._RecordConnection;
103941
+ }
103942
+ get RecordEdge() {
103943
+ return this._RecordEdge;
103944
+ }
103644
103945
  get RecordQueryAggregate() {
103645
103946
  return this._RecordQueryAggregate;
103646
103947
  }
@@ -103650,20 +103951,44 @@ class CustomGraphQLTypeRegistry extends GraphQLTypeRegistry {
103650
103951
  get RecordRepresentation() {
103651
103952
  return this._RecordRepresentation;
103652
103953
  }
103653
- get SetupEntityRepresentation() {
103954
+ get RecordResult() {
103955
+ return this._RecordResult;
103956
+ }
103957
+ get Setup__SetupAggregateConnection() {
103958
+ return this._SetupAggregateConnection;
103959
+ }
103960
+ get Setup__SetupAggregateEdge() {
103961
+ return this._SetupAggregateEdge;
103962
+ }
103963
+ get Setup__SetupConnection() {
103964
+ return this._SetupConnection;
103965
+ }
103966
+ get Setup__SetupEdge() {
103967
+ return this._SetupEdge;
103968
+ }
103969
+ get Setup__EntityRepresentation() {
103654
103970
  return this._SetupEntityRepresentation;
103655
103971
  }
103656
- get SetupQueryAggregate() {
103972
+ get Setup__SetupPolymorphicAggregateParentRelationship() {
103973
+ return this._SetupPolymorphicAggregateParentRelationship;
103974
+ }
103975
+ get Setup__SetupPolymorphicParentRelationship() {
103976
+ return this._SetupPolymorphicParentRelationship;
103977
+ }
103978
+ get Setup__SetupQueryAggregate() {
103657
103979
  return this._SetupQueryAggregate;
103658
103980
  }
103659
- get SetupQuery() {
103981
+ get Setup__SetupQuery() {
103660
103982
  return this._SetupQuery;
103661
103983
  }
103662
- get SetupRecordAggregate() {
103984
+ get Setup__SetupRecordAggregate() {
103663
103985
  return this._SetupRecordAggregate;
103664
103986
  }
103665
- get PolymorphicParentRelationship() {
103666
- return this._PolymorphicParentRelationship;
103987
+ get Setup__SetupRecordResult() {
103988
+ return this._SetupRecordResult;
103989
+ }
103990
+ get Setup__Setup() {
103991
+ return this._Setup;
103667
103992
  }
103668
103993
  }
103669
103994
 
@@ -103815,10 +104140,12 @@ function buildCommandClass(baseClass) {
103815
104140
  reader: true,
103816
104141
  synthetic: true,
103817
104142
  read: (reader) => {
104143
+ this.latestUsedRecordIdToWeakEtagMap = {};
103818
104144
  readFromCacheResult = this.buildResultType().query(cache, {
103819
104145
  ...this.buildQuery(),
103820
104146
  reader,
103821
104147
  getNormalizedLuvioRecord: this.services.luvioUiapiRecords.getNormalizedLuvioRecord,
104148
+ usedRecordIdToWeakEtagMap: this.latestUsedRecordIdToWeakEtagMap,
103822
104149
  });
103823
104150
  return readFromCacheResult;
103824
104151
  },
@@ -103870,15 +104197,20 @@ function buildCommandClass(baseClass) {
103870
104197
  }
103871
104198
  return resolvedPromiseLike(undefined);
103872
104199
  }
103873
- execute() {
104200
+ execute(overrides) {
104201
+ this.services.instrumentation?.metrics
104202
+ .getMeter('onestore')
104203
+ .createCounter(`graphql.execute.count`)
104204
+ .add(1);
103874
104205
  // Clear snapshot and unsubscribe from any existing subscriptions at the beginning of execute calls
103875
104206
  this.latestLuvioSnapshot = undefined;
103876
104207
  this.latestLuvioRecordIdsToInvalidate = undefined;
104208
+ this.latestUsedRecordIdToWeakEtagMap = undefined;
103877
104209
  if (this.unsubscribeFromLuvioSnapshot) {
103878
104210
  this.unsubscribeFromLuvioSnapshot();
103879
104211
  this.unsubscribeFromLuvioSnapshot = undefined;
103880
104212
  }
103881
- const result = super.execute();
104213
+ const result = super.execute(overrides);
103882
104214
  result.then((_) => {
103883
104215
  if (this.latestLuvioRecordIdsToInvalidate &&
103884
104216
  this.latestLuvioRecordIdsToInvalidate.length > 0) {
@@ -103887,6 +104219,13 @@ function buildCommandClass(baseClass) {
103887
104219
  });
103888
104220
  return result;
103889
104221
  }
104222
+ runOriginalRequest() {
104223
+ this.services.instrumentation?.metrics
104224
+ .getMeter('onestore')
104225
+ .createCounter(`graphql.fallback.count`)
104226
+ .add(1);
104227
+ return super.runOriginalRequest();
104228
+ }
103890
104229
  subscribeToKeysUsed() {
103891
104230
  super.subscribeToKeysUsed();
103892
104231
  // Subscribe to luvio cache changes using the stored snapshot
@@ -103897,12 +104236,48 @@ function buildCommandClass(baseClass) {
103897
104236
  // Subscribe to changes using the stored snapshot
103898
104237
  this.unsubscribeFromLuvioSnapshot = luvioInstance.storeSubscribe(this.latestLuvioSnapshot, (_) => {
103899
104238
  // If any records used change at the top level, refresh all the data
103900
- this.refresh();
104239
+ if (this.usedRecordsChanged()) {
104240
+ this.refresh();
104241
+ }
103901
104242
  });
103902
104243
  }
103903
104244
  catch (error) { }
103904
104245
  }
103905
104246
  }
104247
+ usedRecordsChanged() {
104248
+ if (!this.latestUsedRecordIdToWeakEtagMap ||
104249
+ Object.keys(this.latestUsedRecordIdToWeakEtagMap).length === 0) {
104250
+ return false;
104251
+ }
104252
+ const luvioService = this.services.luvio;
104253
+ const luvioInstance = luvioService.luvio;
104254
+ let dataChanged = false;
104255
+ luvioInstance.storeLookup({
104256
+ recordId: 'onestore-graphql',
104257
+ node: {
104258
+ kind: 'Fragment',
104259
+ reader: true,
104260
+ synthetic: true,
104261
+ read: (reader) => {
104262
+ if (this.latestUsedRecordIdToWeakEtagMap) {
104263
+ Object.entries(this.latestUsedRecordIdToWeakEtagMap).forEach(([recordId, oneStoreRecordWeakEtag]) => {
104264
+ const normalizedLuvioRecord = this.services.luvioUiapiRecords.getNormalizedLuvioRecord(recordId, reader);
104265
+ if (!normalizedLuvioRecord) {
104266
+ return;
104267
+ }
104268
+ const luvioRecordWeakEtag = normalizedLuvioRecord.weakEtag;
104269
+ if (luvioRecordWeakEtag !== oneStoreRecordWeakEtag) {
104270
+ dataChanged = true;
104271
+ }
104272
+ });
104273
+ }
104274
+ return {};
104275
+ },
104276
+ },
104277
+ variables: {},
104278
+ });
104279
+ return dataChanged;
104280
+ }
103906
104281
  };
103907
104282
  }
103908
104283
 
@@ -103949,6 +104324,11 @@ const serviceRequirements = {
103949
104324
  type: 'luvioUiapiRecords',
103950
104325
  version: '1.0',
103951
104326
  },
104327
+ instrumentation: {
104328
+ type: 'instrumentation',
104329
+ version: '1.0',
104330
+ optional: true,
104331
+ },
103952
104332
  };
103953
104333
  let provisionedCallback;
103954
104334
  getServices(serviceRequirements).then((services) => {
@@ -103959,7 +104339,7 @@ getServices(serviceRequirements).then((services) => {
103959
104339
  constructor() {
103960
104340
  super(...arguments);
103961
104341
  this.configSchema = CONFIG_SCHEMA;
103962
- this.exposeRefresh = false;
104342
+ this.exposeRefresh = true;
103963
104343
  }
103964
104344
  getCommand() {
103965
104345
  return new graphql_ctor({ ...this.config, query: resolveAst(this.config.query) }, documentRootType, services);
@@ -103984,7 +104364,7 @@ function registerCallback(cb) {
103984
104364
  cb(graphql$1, graphql_imperative$1, useOneStoreGraphQL);
103985
104365
  }
103986
104366
  }
103987
- // version: 1.378.0-63d7c07562
104367
+ // version: 1.379.0-a57c798add
103988
104368
 
103989
104369
  function createFragmentMap(documentNode) {
103990
104370
  const fragments = {};
@@ -130479,7 +130859,7 @@ function refreshGraphQL(data) {
130479
130859
  }
130480
130860
  return refresh$3(data, 'refreshUiApi');
130481
130861
  }
130482
- // version: 1.378.0-63d7c07562
130862
+ // version: 1.379.0-a57c798add
130483
130863
 
130484
130864
  // On core the unstable adapters are re-exported with different names,
130485
130865
  // we want to match them here.
@@ -130631,7 +131011,7 @@ withDefaultLuvio((luvio) => {
130631
131011
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
130632
131012
  graphQLImperative = ldsAdapter;
130633
131013
  });
130634
- // version: 1.378.0-63d7c07562
131014
+ // version: 1.379.0-a57c798add
130635
131015
 
130636
131016
  var gqlApi = /*#__PURE__*/Object.freeze({
130637
131017
  __proto__: null,
@@ -131430,7 +131810,7 @@ const callbacks$1 = [];
131430
131810
  function register(r) {
131431
131811
  callbacks$1.forEach((callback) => callback(r));
131432
131812
  }
131433
- // version: 1.378.0-0ab3d40d29
131813
+ // version: 1.379.0-fc97fd9203
131434
131814
 
131435
131815
  /**
131436
131816
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -132746,4 +133126,4 @@ const { luvio } = getRuntime();
132746
133126
  setDefaultLuvio({ luvio });
132747
133127
 
132748
133128
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, importLuvioAdapterModule, importOneStoreAdapterModule, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
132749
- // version: 1.378.0-0ab3d40d29
133129
+ // version: 1.379.0-fc97fd9203