@salesforce/lds-worker-api 1.382.0 → 1.383.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.
@@ -1371,4 +1371,4 @@ if (process.env.NODE_ENV !== 'production') {
1371
1371
  }
1372
1372
 
1373
1373
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, importLuvioAdapterModule, importOneStoreAdapterModule, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
1374
- // version: 1.382.0-8ca71123b0
1374
+ // version: 1.383.0-b9875fc4e1
@@ -4274,7 +4274,7 @@ function withDefaultLuvio(callback) {
4274
4274
  }
4275
4275
  callbacks.push(callback);
4276
4276
  }
4277
- // version: 1.382.0-8ca71123b0
4277
+ // version: 1.383.0-b9875fc4e1
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.382.0-8ca71123b0
5321
+ // version: 1.383.0-b9875fc4e1
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.382.0-73d929ea11
34157
+ // version: 1.383.0-d85dce8db1
34158
34158
 
34159
34159
  function requestIdleDetectedCallback(_callback) { }
34160
34160
  function declareNotifierTaskSingle(_name) {
@@ -95881,7 +95881,7 @@ function buildServiceDescriptor$5(luvio) {
95881
95881
  },
95882
95882
  };
95883
95883
  }
95884
- // version: 1.382.0-73d929ea11
95884
+ // version: 1.383.0-d85dce8db1
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.382.0-73d929ea11
95910
+ // version: 1.383.0-d85dce8db1
95911
95911
 
95912
95912
  /*!
95913
95913
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -96790,7 +96790,7 @@ function buildGraphQLInputExtension$1(input) {
96790
96790
  };
96791
96791
  return prev;
96792
96792
  }, {})) || {};
96793
- const fragments = input.query.definitions.filter((def) => def.kind === "FragmentDefinition").reduce((prev, fragment) => {
96793
+ const fragments = input.query.definitions.filter(isFragmentDefinition$1).reduce((prev, fragment) => {
96794
96794
  prev[fragment.name.value] = fragment;
96795
96795
  return prev;
96796
96796
  }, {});
@@ -96800,6 +96800,47 @@ function buildGraphQLInputExtension$1(input) {
96800
96800
  parentFieldSelection: void 0
96801
96801
  });
96802
96802
  }
96803
+ const TYPENAME_FIELD = {
96804
+ kind: Kind$2.FIELD,
96805
+ name: {
96806
+ kind: Kind$2.NAME,
96807
+ value: "__typename"
96808
+ }
96809
+ };
96810
+ function addTypenameToDocument(doc) {
96811
+ return visit(doc, {
96812
+ SelectionSet: {
96813
+ enter(node, _key, parent) {
96814
+ if (isOperationDefinition(parent)) {
96815
+ return;
96816
+ }
96817
+ const { selections } = node;
96818
+ if (!selections || selections.length === 0) {
96819
+ return;
96820
+ }
96821
+ const skip = selections.some((selection) => {
96822
+ return isField$1(selection) && (selection.name.value === "__typename" || selection.name.value.lastIndexOf("__", 0) === 0);
96823
+ });
96824
+ if (skip) {
96825
+ return;
96826
+ }
96827
+ return {
96828
+ ...node,
96829
+ selections: [...selections, TYPENAME_FIELD]
96830
+ };
96831
+ }
96832
+ }
96833
+ });
96834
+ }
96835
+ function isOperationDefinition(parent) {
96836
+ return !!parent && !Array.isArray(parent) && parent.kind === Kind$2.OPERATION_DEFINITION;
96837
+ }
96838
+ function isField$1(node) {
96839
+ return node.kind === Kind$2.FIELD;
96840
+ }
96841
+ function isFragmentDefinition$1(node) {
96842
+ return node.kind === Kind$2.FRAGMENT_DEFINITION;
96843
+ }
96803
96844
 
96804
96845
  /*!
96805
96846
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -96923,7 +96964,7 @@ class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheContro
96923
96964
  if (augmentedQueryResult.isErr()) {
96924
96965
  throw augmentedQueryResult.error;
96925
96966
  }
96926
- return augmentedQueryResult.value;
96967
+ return addTypenameToDocument(augmentedQueryResult.value);
96927
96968
  }
96928
96969
  buildWriteInput(data) {
96929
96970
  const extensionResult = buildGraphQLInputExtension$1({
@@ -97017,7 +97058,7 @@ class HttpGraphQLNormalizedCacheControlCommand extends HttpNormalizedCacheContro
97017
97058
  if (augmentedQueryResult.isErr()) {
97018
97059
  throw augmentedQueryResult.error;
97019
97060
  }
97020
- return augmentedQueryResult.value;
97061
+ return addTypenameToDocument(augmentedQueryResult.value);
97021
97062
  }
97022
97063
  buildWriteInput(data) {
97023
97064
  const extensionResult = buildGraphQLInputExtension$1({
@@ -98023,7 +98064,7 @@ register$1({
98023
98064
  id: '@salesforce/lds-network-adapter',
98024
98065
  instrument: instrument$2,
98025
98066
  });
98026
- // version: 1.382.0-8ca71123b0
98067
+ // version: 1.383.0-b9875fc4e1
98027
98068
 
98028
98069
  const { create: create$3, keys: keys$3 } = Object;
98029
98070
  const { stringify: stringify$1, parse } = JSON;
@@ -98981,7 +99022,7 @@ function buildGraphQLInputExtension(input) {
98981
99022
  };
98982
99023
  return prev;
98983
99024
  }, {})) || {};
98984
- const fragments = input.query.definitions.filter((def) => def.kind === "FragmentDefinition").reduce((prev, fragment) => {
99025
+ const fragments = input.query.definitions.filter(isFragmentDefinition).reduce((prev, fragment) => {
98985
99026
  prev[fragment.name.value] = fragment;
98986
99027
  return prev;
98987
99028
  }, {});
@@ -99022,14 +99063,14 @@ function collectFieldNames(selections, fragments) {
99022
99063
  var _a;
99023
99064
  const fieldNames = /* @__PURE__ */ new Set();
99024
99065
  for (const selection of selections) {
99025
- if (selection.kind === Kind.FIELD) {
99066
+ if (isField(selection)) {
99026
99067
  fieldNames.add(((_a = selection.alias) == null ? void 0 : _a.value) || selection.name.value);
99027
- } else if (selection.kind === Kind.INLINE_FRAGMENT) {
99068
+ } else if (isInlineFragment(selection)) {
99028
99069
  collectFieldNames(
99029
99070
  selection.selectionSet.selections,
99030
99071
  fragments
99031
99072
  ).forEach((name) => fieldNames.add(name));
99032
- } else if (selection.kind === Kind.FRAGMENT_SPREAD) {
99073
+ } else if (isFragmentSpread(selection)) {
99033
99074
  const fragment = fragments[selection.name.value];
99034
99075
  if (fragment) {
99035
99076
  collectFieldNames(
@@ -99059,6 +99100,25 @@ function buildFieldKey(canonicalFieldName, fieldArguments, variables) {
99059
99100
  }
99060
99101
  return ok$4(`${canonicalFieldName}::${stableJSONStringify$3({ args: formattedArguments })}`);
99061
99102
  }
99103
+ ({
99104
+ kind: Kind.FIELD,
99105
+ name: {
99106
+ kind: Kind.NAME,
99107
+ value: "__typename"
99108
+ }
99109
+ });
99110
+ function isField(node) {
99111
+ return node.kind === Kind.FIELD;
99112
+ }
99113
+ function isFragmentSpread(node) {
99114
+ return node.kind === Kind.FRAGMENT_SPREAD;
99115
+ }
99116
+ function isInlineFragment(node) {
99117
+ return node.kind === Kind.INLINE_FRAGMENT;
99118
+ }
99119
+ function isFragmentDefinition(node) {
99120
+ return node.kind === Kind.FRAGMENT_DEFINITION;
99121
+ }
99062
99122
  function extractIfArgument(directive, variables, directiveName) {
99063
99123
  var _a;
99064
99124
  const ifArg = (_a = directive.arguments) == null ? void 0 : _a.find((arg) => arg.name.value === "if");
@@ -99342,11 +99402,11 @@ class BaseGraphQLTypeRepository {
99342
99402
  const augmentedSelections = [];
99343
99403
  let augmentedFragments = { ...input.fragments };
99344
99404
  for (const selection of input.selections) {
99345
- if (selection.kind === Kind.FIELD) {
99405
+ if (isField(selection)) {
99346
99406
  const result = this.augmentFieldSelection(selection, augmentedFragments);
99347
99407
  augmentedSelections.push(...result.selections);
99348
99408
  augmentedFragments = result.fragments;
99349
- } else if (selection.kind === Kind.INLINE_FRAGMENT) {
99409
+ } else if (isInlineFragment(selection)) {
99350
99410
  const augmentedFragmentSelections = this.augmentInlineFragmentSelection(
99351
99411
  selection,
99352
99412
  augmentedFragments
@@ -99461,14 +99521,14 @@ class BaseGraphQLTypeRepository {
99461
99521
  const normalized = {};
99462
99522
  const errors = [];
99463
99523
  for (const selection of input.selections) {
99464
- if (selection.kind === Kind.FIELD) {
99524
+ if (isField(selection)) {
99465
99525
  deepMerge$2(
99466
99526
  normalized,
99467
99527
  this.normalizeFieldSelection(cache, input, selection, errors)
99468
99528
  );
99469
99529
  } else {
99470
99530
  let fragment;
99471
- if (selection.kind === Kind.INLINE_FRAGMENT) {
99531
+ if (isInlineFragment(selection)) {
99472
99532
  fragment = selection;
99473
99533
  } else {
99474
99534
  const fragmentDefinition = input.request.definitions.fragments[selection.name.value];
@@ -99573,14 +99633,14 @@ class BaseGraphQLTypeRepository {
99573
99633
  const errors = [];
99574
99634
  const denormalized = {};
99575
99635
  for (const selection of input.selections) {
99576
- if (selection.kind === Kind.FIELD) {
99636
+ if (isField(selection)) {
99577
99637
  deepMerge$2(
99578
99638
  denormalized,
99579
99639
  this.denormalizeFieldSelection(cache, input, selection, errors)
99580
99640
  );
99581
99641
  } else {
99582
99642
  let fragment;
99583
- if (selection.kind === Kind.INLINE_FRAGMENT) {
99643
+ if (isInlineFragment(selection)) {
99584
99644
  fragment = selection;
99585
99645
  } else {
99586
99646
  const fragmentDefinition = input.request.definitions.fragments[selection.name.value];
@@ -100559,7 +100619,7 @@ function resolveAst(ast) {
100559
100619
  }
100560
100620
  return result;
100561
100621
  }
100562
- // version: 1.382.0-73d929ea11
100622
+ // version: 1.383.0-d85dce8db1
100563
100623
 
100564
100624
  class Analytics__AnalyticsBrowseRepository extends UnidentifiableGraphQLTypeRepository {
100565
100625
  constructor(services, typeRegistry) {
@@ -103371,6 +103431,61 @@ function getFieldCategoryFromData(data) {
103371
103431
  return data.__genericTypename || data.__typename;
103372
103432
  }
103373
103433
 
103434
+ /**
103435
+ * Finds the typename field name from GraphQL selections, looking for __typename or aliased fields.
103436
+ *
103437
+ * @param input - The normalize/denormalize data input containing selections
103438
+ * @returns The field name to use for typename lookup, or '__typename' as fallback
103439
+ */
103440
+ function findTypenameFieldFromSelections(input) {
103441
+ // For normalize inputs, check if selections exist and find __typename field
103442
+ if (input && 'selections' in input && Array.isArray(input.selections)) {
103443
+ const typenameSelection = input.selections.find((selection) => selection.kind === 'Field' && selection.name?.value === '__typename');
103444
+ if (typenameSelection) {
103445
+ // If there's an alias, use the alias name, otherwise use the field name
103446
+ return typenameSelection.alias?.value || typenameSelection.name.value;
103447
+ }
103448
+ }
103449
+ // Fallback to standard __typename field name
103450
+ return '__typename';
103451
+ }
103452
+ /**
103453
+ * Checks if the input data satisfies a fragment type condition by comparing the typename
103454
+ * from the input data with the fragment's conditional type name.
103455
+ *
103456
+ * @param input - The normalize/denormalize data input containing the typename
103457
+ * @param fragment - The fragment containing the type condition
103458
+ * @returns Result<boolean, Error> - true if the type condition is satisfied
103459
+ */
103460
+ function dataSatisfiesFragmentTypeCondition(input, fragment) {
103461
+ const conditionalTypeName = fragment?.typeCondition?.name.value;
103462
+ const typename = input?.data?.[findTypenameFieldFromSelections(input)] ||
103463
+ input?.normalizedData?.__typename?.data;
103464
+ if (conditionalTypeName && typename === conditionalTypeName) {
103465
+ return ok(true);
103466
+ }
103467
+ return ok(false);
103468
+ }
103469
+ /**
103470
+ * Generic implementation of satisfiesFragmentTypeCondition for repositories.
103471
+ * Combines the base class type condition check with custom typename validation.
103472
+ *
103473
+ * @param superSatisfiesFragmentTypeCondition - The super class method to call first
103474
+ * @param input - The normalize/denormalize data input
103475
+ * @param fragment - The fragment containing the type condition
103476
+ * @param typeName - The repository type name for error messages
103477
+ * @returns Result<boolean, Error> - true if the fragment type condition is satisfied
103478
+ */
103479
+ function genericSatisfiesFragmentTypeCondition(superSatisfiesFragmentTypeCondition, input, fragment, typeName) {
103480
+ // First try the base class implementation
103481
+ const result = superSatisfiesFragmentTypeCondition(input, fragment);
103482
+ if (result.isErr() || result.value) {
103483
+ return result;
103484
+ }
103485
+ // Then try our custom typename checking
103486
+ return dataSatisfiesFragmentTypeCondition(input, fragment);
103487
+ }
103488
+
103374
103489
  class RecordRepresentationBaseRepository extends BaseGraphQLTypeRepository {
103375
103490
  constructor(namespace, typeName, implementedInterfaces, fields, idField, services) {
103376
103491
  super();
@@ -103397,15 +103512,8 @@ class RecordRepresentationBaseRepository extends BaseGraphQLTypeRepository {
103397
103512
  getFieldDef(_input, selection) {
103398
103513
  return buildGenericTypeFieldDef(selection, this.fields, this.staticFieldNames, this.typeName);
103399
103514
  }
103400
- satisfiesFragmentTypeCondition(_input, fragment) {
103401
- const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103402
- if (result.isErr()) {
103403
- return result;
103404
- }
103405
- if (result.value) {
103406
- return result;
103407
- }
103408
- return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103515
+ satisfiesFragmentTypeCondition(input, fragment) {
103516
+ return genericSatisfiesFragmentTypeCondition(super.satisfiesFragmentTypeCondition.bind(this), input, fragment, this.typeName);
103409
103517
  }
103410
103518
  }
103411
103519
 
@@ -103414,7 +103522,7 @@ class RecordRepresentationRepository extends RecordRepresentationRepository$1 {
103414
103522
  super(services, typeRegistry);
103415
103523
  this.services = services;
103416
103524
  this.typeRegistry = typeRegistry;
103417
- this.namespace = 'oas';
103525
+ this.namespace = 'uiapi';
103418
103526
  this.typeName = 'RecordRepresentation';
103419
103527
  this.implementedInterfaces = ['Record'];
103420
103528
  this._graphqlRepositoryOverride = undefined;
@@ -103566,14 +103674,7 @@ class CompoundFieldRepository extends CompoundFieldRepository$1 {
103566
103674
  return super.getFieldDef(undefined, selection) !== undefined;
103567
103675
  }
103568
103676
  satisfiesFragmentTypeCondition(_input, fragment) {
103569
- const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103570
- if (result.isErr()) {
103571
- return result;
103572
- }
103573
- if (result.value) {
103574
- return result;
103575
- }
103576
- return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103677
+ return genericSatisfiesFragmentTypeCondition(super.satisfiesFragmentTypeCondition.bind(this), _input, fragment, this.typeName);
103577
103678
  }
103578
103679
  }
103579
103680
 
@@ -103597,14 +103698,7 @@ class RecordAggregateRepository extends RecordAggregateRepository$1 {
103597
103698
  return buildGenericTypeFieldDef(selection, this.fields, this.staticFieldNames, this.typeName);
103598
103699
  }
103599
103700
  satisfiesFragmentTypeCondition(_input, fragment) {
103600
- const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103601
- if (result.isErr()) {
103602
- return result;
103603
- }
103604
- if (result.value) {
103605
- return result;
103606
- }
103607
- return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103701
+ return genericSatisfiesFragmentTypeCondition(super.satisfiesFragmentTypeCondition.bind(this), _input, fragment, this.typeName);
103608
103702
  }
103609
103703
  }
103610
103704
 
@@ -103640,7 +103734,7 @@ class SetupEntityRepresentationRepository extends UnidentifiableGraphQLTypeRepos
103640
103734
  super(services);
103641
103735
  this.services = services;
103642
103736
  this.typeRegistry = typeRegistry;
103643
- this.namespace = 'oas';
103737
+ this.namespace = 'uiapi';
103644
103738
  this.typeName = 'Setup__EntityRepresentation';
103645
103739
  this.implementedInterfaces = [];
103646
103740
  }
@@ -103690,14 +103784,7 @@ class SetupEntityRepresentationRepository extends UnidentifiableGraphQLTypeRepos
103690
103784
  return blobTypeDef;
103691
103785
  }
103692
103786
  satisfiesFragmentTypeCondition(input, fragment) {
103693
- const result = super.satisfiesFragmentTypeCondition(input, fragment);
103694
- if (result.isErr()) {
103695
- return result;
103696
- }
103697
- if (result.value) {
103698
- return result;
103699
- }
103700
- return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103787
+ return genericSatisfiesFragmentTypeCondition(super.satisfiesFragmentTypeCondition.bind(this), input, fragment, this.typeName);
103701
103788
  }
103702
103789
  }
103703
103790
 
@@ -103737,14 +103824,7 @@ class SetupRecordAggregateRepository extends Setup__SetupRecordAggregateReposito
103737
103824
  return blobTypeDef;
103738
103825
  }
103739
103826
  satisfiesFragmentTypeCondition(_input, fragment) {
103740
- const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103741
- if (result.isErr()) {
103742
- return result;
103743
- }
103744
- if (result.value) {
103745
- return result;
103746
- }
103747
- return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103827
+ return genericSatisfiesFragmentTypeCondition(super.satisfiesFragmentTypeCondition.bind(this), _input, fragment, this.typeName);
103748
103828
  }
103749
103829
  }
103750
103830
 
@@ -103763,7 +103843,7 @@ class SetupRepository extends IdentifiableGraphQLTypeRepository {
103763
103843
  constructor(services, typeRegistry) {
103764
103844
  super(services);
103765
103845
  this.typeRegistry = typeRegistry;
103766
- this.namespace = 'oas';
103846
+ this.namespace = 'uiapi';
103767
103847
  this.typeName = 'Setup__Setup';
103768
103848
  this.implementedInterfaces = [];
103769
103849
  this.cacheControl = {
@@ -103784,14 +103864,7 @@ class SetupRepository extends IdentifiableGraphQLTypeRepository {
103784
103864
 
103785
103865
  class SetupEdgeRepository extends Setup__SetupEdgeRepository {
103786
103866
  satisfiesFragmentTypeCondition(_input, fragment) {
103787
- const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103788
- if (result.isErr()) {
103789
- return result;
103790
- }
103791
- if (result.value) {
103792
- return result;
103793
- }
103794
- return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103867
+ return genericSatisfiesFragmentTypeCondition(super.satisfiesFragmentTypeCondition.bind(this), _input, fragment, this.typeName);
103795
103868
  }
103796
103869
  }
103797
103870
 
@@ -103805,118 +103878,55 @@ class PolymorphicAggregateParentRelationshipRepository extends PolymorphicAggreg
103805
103878
 
103806
103879
  class RecordAggregateConnectionRepository extends RecordAggregateConnectionRepository$1 {
103807
103880
  satisfiesFragmentTypeCondition(_input, fragment) {
103808
- const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103809
- if (result.isErr()) {
103810
- return result;
103811
- }
103812
- if (result.value) {
103813
- return result;
103814
- }
103815
- return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103881
+ return genericSatisfiesFragmentTypeCondition(super.satisfiesFragmentTypeCondition.bind(this), _input, fragment, this.typeName);
103816
103882
  }
103817
103883
  }
103818
103884
 
103819
103885
  class RecordAggregateEdgeRepository extends RecordAggregateEdgeRepository$1 {
103820
103886
  satisfiesFragmentTypeCondition(_input, fragment) {
103821
- const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103822
- if (result.isErr()) {
103823
- return result;
103824
- }
103825
- if (result.value) {
103826
- return result;
103827
- }
103828
- return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103887
+ return genericSatisfiesFragmentTypeCondition(super.satisfiesFragmentTypeCondition.bind(this), _input, fragment, this.typeName);
103829
103888
  }
103830
103889
  }
103831
103890
 
103832
103891
  class RecordConnectionRepository extends RecordConnectionRepository$1 {
103833
103892
  satisfiesFragmentTypeCondition(_input, fragment) {
103834
- const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103835
- if (result.isErr()) {
103836
- return result;
103837
- }
103838
- if (result.value) {
103839
- return result;
103840
- }
103841
- return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103893
+ return genericSatisfiesFragmentTypeCondition(super.satisfiesFragmentTypeCondition.bind(this), _input, fragment, this.typeName);
103842
103894
  }
103843
103895
  }
103844
103896
 
103845
103897
  class RecordEdgeRepository extends RecordEdgeRepository$1 {
103846
103898
  satisfiesFragmentTypeCondition(_input, fragment) {
103847
- const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103848
- if (result.isErr()) {
103849
- return result;
103850
- }
103851
- if (result.value) {
103852
- return result;
103853
- }
103854
- return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103899
+ return genericSatisfiesFragmentTypeCondition(super.satisfiesFragmentTypeCondition.bind(this), _input, fragment, this.typeName);
103855
103900
  }
103856
103901
  }
103857
103902
 
103858
103903
  class RecordResultRepository extends RecordResultRepository$1 {
103859
103904
  satisfiesFragmentTypeCondition(_input, fragment) {
103860
- const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103861
- if (result.isErr()) {
103862
- return result;
103863
- }
103864
- if (result.value) {
103865
- return result;
103866
- }
103867
- return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103905
+ return genericSatisfiesFragmentTypeCondition(super.satisfiesFragmentTypeCondition.bind(this), _input, fragment, this.typeName);
103868
103906
  }
103869
103907
  }
103870
103908
 
103871
103909
  class SetupRecordResultRepository extends Setup__SetupRecordResultRepository {
103872
103910
  satisfiesFragmentTypeCondition(_input, fragment) {
103873
- const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103874
- if (result.isErr()) {
103875
- return result;
103876
- }
103877
- if (result.value) {
103878
- return result;
103879
- }
103880
- return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103911
+ return genericSatisfiesFragmentTypeCondition(super.satisfiesFragmentTypeCondition.bind(this), _input, fragment, this.typeName);
103881
103912
  }
103882
103913
  }
103883
103914
 
103884
103915
  class SetupAggregateConnectionRepository extends Setup__SetupAggregateConnectionRepository {
103885
103916
  satisfiesFragmentTypeCondition(_input, fragment) {
103886
- const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103887
- if (result.isErr()) {
103888
- return result;
103889
- }
103890
- if (result.value) {
103891
- return result;
103892
- }
103893
- return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103917
+ return genericSatisfiesFragmentTypeCondition(super.satisfiesFragmentTypeCondition.bind(this), _input, fragment, this.typeName);
103894
103918
  }
103895
103919
  }
103896
103920
 
103897
103921
  class SetupAggregateEdgeRepository extends Setup__SetupAggregateEdgeRepository {
103898
103922
  satisfiesFragmentTypeCondition(_input, fragment) {
103899
- const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103900
- if (result.isErr()) {
103901
- return result;
103902
- }
103903
- if (result.value) {
103904
- return result;
103905
- }
103906
- return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103923
+ return genericSatisfiesFragmentTypeCondition(super.satisfiesFragmentTypeCondition.bind(this), _input, fragment, this.typeName);
103907
103924
  }
103908
103925
  }
103909
103926
 
103910
103927
  class SetupConnectionRepository extends Setup__SetupConnectionRepository {
103911
103928
  satisfiesFragmentTypeCondition(_input, fragment) {
103912
- const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103913
- if (result.isErr()) {
103914
- return result;
103915
- }
103916
- if (result.value) {
103917
- return result;
103918
- }
103919
- return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103929
+ return genericSatisfiesFragmentTypeCondition(super.satisfiesFragmentTypeCondition.bind(this), _input, fragment, this.typeName);
103920
103930
  }
103921
103931
  }
103922
103932
 
@@ -104416,7 +104426,7 @@ function registerCallback(cb) {
104416
104426
  cb(graphql$1, graphql_imperative$1, useOneStoreGraphQL);
104417
104427
  }
104418
104428
  }
104419
- // version: 1.382.0-73d929ea11
104429
+ // version: 1.383.0-d85dce8db1
104420
104430
 
104421
104431
  function createFragmentMap(documentNode) {
104422
104432
  const fragments = {};
@@ -130911,7 +130921,7 @@ function refreshGraphQL(data) {
130911
130921
  }
130912
130922
  return refresh$3(data, 'refreshUiApi');
130913
130923
  }
130914
- // version: 1.382.0-73d929ea11
130924
+ // version: 1.383.0-d85dce8db1
130915
130925
 
130916
130926
  // On core the unstable adapters are re-exported with different names,
130917
130927
  // we want to match them here.
@@ -131063,7 +131073,7 @@ withDefaultLuvio((luvio) => {
131063
131073
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
131064
131074
  graphQLImperative = ldsAdapter;
131065
131075
  });
131066
- // version: 1.382.0-73d929ea11
131076
+ // version: 1.383.0-d85dce8db1
131067
131077
 
131068
131078
  var gqlApi = /*#__PURE__*/Object.freeze({
131069
131079
  __proto__: null,
@@ -131862,7 +131872,7 @@ const callbacks$1 = [];
131862
131872
  function register(r) {
131863
131873
  callbacks$1.forEach((callback) => callback(r));
131864
131874
  }
131865
- // version: 1.382.0-8ca71123b0
131875
+ // version: 1.383.0-b9875fc4e1
131866
131876
 
131867
131877
  /**
131868
131878
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -133178,4 +133188,4 @@ const { luvio } = getRuntime();
133178
133188
  setDefaultLuvio({ luvio });
133179
133189
 
133180
133190
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, importLuvioAdapterModule, importOneStoreAdapterModule, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
133181
- // version: 1.382.0-8ca71123b0
133191
+ // version: 1.383.0-b9875fc4e1
@@ -4280,7 +4280,7 @@
4280
4280
  }
4281
4281
  callbacks.push(callback);
4282
4282
  }
4283
- // version: 1.382.0-8ca71123b0
4283
+ // version: 1.383.0-b9875fc4e1
4284
4284
 
4285
4285
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4286
4286
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -5324,7 +5324,7 @@
5324
5324
  const { apiFamily, name } = metadata;
5325
5325
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
5326
5326
  }
5327
- // version: 1.382.0-8ca71123b0
5327
+ // version: 1.383.0-b9875fc4e1
5328
5328
 
5329
5329
  /**
5330
5330
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -34160,7 +34160,7 @@
34160
34160
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
34161
34161
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
34162
34162
  });
34163
- // version: 1.382.0-73d929ea11
34163
+ // version: 1.383.0-d85dce8db1
34164
34164
 
34165
34165
  function requestIdleDetectedCallback(_callback) { }
34166
34166
  function declareNotifierTaskSingle(_name) {
@@ -95887,7 +95887,7 @@
95887
95887
  },
95888
95888
  };
95889
95889
  }
95890
- // version: 1.382.0-73d929ea11
95890
+ // version: 1.383.0-d85dce8db1
95891
95891
 
95892
95892
  /**
95893
95893
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -95913,7 +95913,7 @@
95913
95913
  },
95914
95914
  };
95915
95915
  }
95916
- // version: 1.382.0-73d929ea11
95916
+ // version: 1.383.0-d85dce8db1
95917
95917
 
95918
95918
  /*!
95919
95919
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -96796,7 +96796,7 @@
96796
96796
  };
96797
96797
  return prev;
96798
96798
  }, {})) || {};
96799
- const fragments = input.query.definitions.filter((def) => def.kind === "FragmentDefinition").reduce((prev, fragment) => {
96799
+ const fragments = input.query.definitions.filter(isFragmentDefinition$1).reduce((prev, fragment) => {
96800
96800
  prev[fragment.name.value] = fragment;
96801
96801
  return prev;
96802
96802
  }, {});
@@ -96806,6 +96806,47 @@
96806
96806
  parentFieldSelection: void 0
96807
96807
  });
96808
96808
  }
96809
+ const TYPENAME_FIELD = {
96810
+ kind: Kind$2.FIELD,
96811
+ name: {
96812
+ kind: Kind$2.NAME,
96813
+ value: "__typename"
96814
+ }
96815
+ };
96816
+ function addTypenameToDocument(doc) {
96817
+ return visit(doc, {
96818
+ SelectionSet: {
96819
+ enter(node, _key, parent) {
96820
+ if (isOperationDefinition(parent)) {
96821
+ return;
96822
+ }
96823
+ const { selections } = node;
96824
+ if (!selections || selections.length === 0) {
96825
+ return;
96826
+ }
96827
+ const skip = selections.some((selection) => {
96828
+ return isField$1(selection) && (selection.name.value === "__typename" || selection.name.value.lastIndexOf("__", 0) === 0);
96829
+ });
96830
+ if (skip) {
96831
+ return;
96832
+ }
96833
+ return {
96834
+ ...node,
96835
+ selections: [...selections, TYPENAME_FIELD]
96836
+ };
96837
+ }
96838
+ }
96839
+ });
96840
+ }
96841
+ function isOperationDefinition(parent) {
96842
+ return !!parent && !Array.isArray(parent) && parent.kind === Kind$2.OPERATION_DEFINITION;
96843
+ }
96844
+ function isField$1(node) {
96845
+ return node.kind === Kind$2.FIELD;
96846
+ }
96847
+ function isFragmentDefinition$1(node) {
96848
+ return node.kind === Kind$2.FRAGMENT_DEFINITION;
96849
+ }
96809
96850
 
96810
96851
  /*!
96811
96852
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -96929,7 +96970,7 @@
96929
96970
  if (augmentedQueryResult.isErr()) {
96930
96971
  throw augmentedQueryResult.error;
96931
96972
  }
96932
- return augmentedQueryResult.value;
96973
+ return addTypenameToDocument(augmentedQueryResult.value);
96933
96974
  }
96934
96975
  buildWriteInput(data) {
96935
96976
  const extensionResult = buildGraphQLInputExtension$1({
@@ -97023,7 +97064,7 @@
97023
97064
  if (augmentedQueryResult.isErr()) {
97024
97065
  throw augmentedQueryResult.error;
97025
97066
  }
97026
- return augmentedQueryResult.value;
97067
+ return addTypenameToDocument(augmentedQueryResult.value);
97027
97068
  }
97028
97069
  buildWriteInput(data) {
97029
97070
  const extensionResult = buildGraphQLInputExtension$1({
@@ -98029,7 +98070,7 @@
98029
98070
  id: '@salesforce/lds-network-adapter',
98030
98071
  instrument: instrument$2,
98031
98072
  });
98032
- // version: 1.382.0-8ca71123b0
98073
+ // version: 1.383.0-b9875fc4e1
98033
98074
 
98034
98075
  const { create: create$3, keys: keys$3 } = Object;
98035
98076
  const { stringify: stringify$1, parse } = JSON;
@@ -98987,7 +99028,7 @@
98987
99028
  };
98988
99029
  return prev;
98989
99030
  }, {})) || {};
98990
- const fragments = input.query.definitions.filter((def) => def.kind === "FragmentDefinition").reduce((prev, fragment) => {
99031
+ const fragments = input.query.definitions.filter(isFragmentDefinition).reduce((prev, fragment) => {
98991
99032
  prev[fragment.name.value] = fragment;
98992
99033
  return prev;
98993
99034
  }, {});
@@ -99028,14 +99069,14 @@
99028
99069
  var _a;
99029
99070
  const fieldNames = /* @__PURE__ */ new Set();
99030
99071
  for (const selection of selections) {
99031
- if (selection.kind === Kind.FIELD) {
99072
+ if (isField(selection)) {
99032
99073
  fieldNames.add(((_a = selection.alias) == null ? void 0 : _a.value) || selection.name.value);
99033
- } else if (selection.kind === Kind.INLINE_FRAGMENT) {
99074
+ } else if (isInlineFragment(selection)) {
99034
99075
  collectFieldNames(
99035
99076
  selection.selectionSet.selections,
99036
99077
  fragments
99037
99078
  ).forEach((name) => fieldNames.add(name));
99038
- } else if (selection.kind === Kind.FRAGMENT_SPREAD) {
99079
+ } else if (isFragmentSpread(selection)) {
99039
99080
  const fragment = fragments[selection.name.value];
99040
99081
  if (fragment) {
99041
99082
  collectFieldNames(
@@ -99065,6 +99106,25 @@
99065
99106
  }
99066
99107
  return ok$4(`${canonicalFieldName}::${stableJSONStringify$3({ args: formattedArguments })}`);
99067
99108
  }
99109
+ ({
99110
+ kind: Kind.FIELD,
99111
+ name: {
99112
+ kind: Kind.NAME,
99113
+ value: "__typename"
99114
+ }
99115
+ });
99116
+ function isField(node) {
99117
+ return node.kind === Kind.FIELD;
99118
+ }
99119
+ function isFragmentSpread(node) {
99120
+ return node.kind === Kind.FRAGMENT_SPREAD;
99121
+ }
99122
+ function isInlineFragment(node) {
99123
+ return node.kind === Kind.INLINE_FRAGMENT;
99124
+ }
99125
+ function isFragmentDefinition(node) {
99126
+ return node.kind === Kind.FRAGMENT_DEFINITION;
99127
+ }
99068
99128
  function extractIfArgument(directive, variables, directiveName) {
99069
99129
  var _a;
99070
99130
  const ifArg = (_a = directive.arguments) == null ? void 0 : _a.find((arg) => arg.name.value === "if");
@@ -99348,11 +99408,11 @@
99348
99408
  const augmentedSelections = [];
99349
99409
  let augmentedFragments = { ...input.fragments };
99350
99410
  for (const selection of input.selections) {
99351
- if (selection.kind === Kind.FIELD) {
99411
+ if (isField(selection)) {
99352
99412
  const result = this.augmentFieldSelection(selection, augmentedFragments);
99353
99413
  augmentedSelections.push(...result.selections);
99354
99414
  augmentedFragments = result.fragments;
99355
- } else if (selection.kind === Kind.INLINE_FRAGMENT) {
99415
+ } else if (isInlineFragment(selection)) {
99356
99416
  const augmentedFragmentSelections = this.augmentInlineFragmentSelection(
99357
99417
  selection,
99358
99418
  augmentedFragments
@@ -99467,14 +99527,14 @@
99467
99527
  const normalized = {};
99468
99528
  const errors = [];
99469
99529
  for (const selection of input.selections) {
99470
- if (selection.kind === Kind.FIELD) {
99530
+ if (isField(selection)) {
99471
99531
  deepMerge$2(
99472
99532
  normalized,
99473
99533
  this.normalizeFieldSelection(cache, input, selection, errors)
99474
99534
  );
99475
99535
  } else {
99476
99536
  let fragment;
99477
- if (selection.kind === Kind.INLINE_FRAGMENT) {
99537
+ if (isInlineFragment(selection)) {
99478
99538
  fragment = selection;
99479
99539
  } else {
99480
99540
  const fragmentDefinition = input.request.definitions.fragments[selection.name.value];
@@ -99579,14 +99639,14 @@
99579
99639
  const errors = [];
99580
99640
  const denormalized = {};
99581
99641
  for (const selection of input.selections) {
99582
- if (selection.kind === Kind.FIELD) {
99642
+ if (isField(selection)) {
99583
99643
  deepMerge$2(
99584
99644
  denormalized,
99585
99645
  this.denormalizeFieldSelection(cache, input, selection, errors)
99586
99646
  );
99587
99647
  } else {
99588
99648
  let fragment;
99589
- if (selection.kind === Kind.INLINE_FRAGMENT) {
99649
+ if (isInlineFragment(selection)) {
99590
99650
  fragment = selection;
99591
99651
  } else {
99592
99652
  const fragmentDefinition = input.request.definitions.fragments[selection.name.value];
@@ -100565,7 +100625,7 @@
100565
100625
  }
100566
100626
  return result;
100567
100627
  }
100568
- // version: 1.382.0-73d929ea11
100628
+ // version: 1.383.0-d85dce8db1
100569
100629
 
100570
100630
  class Analytics__AnalyticsBrowseRepository extends UnidentifiableGraphQLTypeRepository {
100571
100631
  constructor(services, typeRegistry) {
@@ -103377,6 +103437,61 @@
103377
103437
  return data.__genericTypename || data.__typename;
103378
103438
  }
103379
103439
 
103440
+ /**
103441
+ * Finds the typename field name from GraphQL selections, looking for __typename or aliased fields.
103442
+ *
103443
+ * @param input - The normalize/denormalize data input containing selections
103444
+ * @returns The field name to use for typename lookup, or '__typename' as fallback
103445
+ */
103446
+ function findTypenameFieldFromSelections(input) {
103447
+ // For normalize inputs, check if selections exist and find __typename field
103448
+ if (input && 'selections' in input && Array.isArray(input.selections)) {
103449
+ const typenameSelection = input.selections.find((selection) => selection.kind === 'Field' && selection.name?.value === '__typename');
103450
+ if (typenameSelection) {
103451
+ // If there's an alias, use the alias name, otherwise use the field name
103452
+ return typenameSelection.alias?.value || typenameSelection.name.value;
103453
+ }
103454
+ }
103455
+ // Fallback to standard __typename field name
103456
+ return '__typename';
103457
+ }
103458
+ /**
103459
+ * Checks if the input data satisfies a fragment type condition by comparing the typename
103460
+ * from the input data with the fragment's conditional type name.
103461
+ *
103462
+ * @param input - The normalize/denormalize data input containing the typename
103463
+ * @param fragment - The fragment containing the type condition
103464
+ * @returns Result<boolean, Error> - true if the type condition is satisfied
103465
+ */
103466
+ function dataSatisfiesFragmentTypeCondition(input, fragment) {
103467
+ const conditionalTypeName = fragment?.typeCondition?.name.value;
103468
+ const typename = input?.data?.[findTypenameFieldFromSelections(input)] ||
103469
+ input?.normalizedData?.__typename?.data;
103470
+ if (conditionalTypeName && typename === conditionalTypeName) {
103471
+ return ok(true);
103472
+ }
103473
+ return ok(false);
103474
+ }
103475
+ /**
103476
+ * Generic implementation of satisfiesFragmentTypeCondition for repositories.
103477
+ * Combines the base class type condition check with custom typename validation.
103478
+ *
103479
+ * @param superSatisfiesFragmentTypeCondition - The super class method to call first
103480
+ * @param input - The normalize/denormalize data input
103481
+ * @param fragment - The fragment containing the type condition
103482
+ * @param typeName - The repository type name for error messages
103483
+ * @returns Result<boolean, Error> - true if the fragment type condition is satisfied
103484
+ */
103485
+ function genericSatisfiesFragmentTypeCondition(superSatisfiesFragmentTypeCondition, input, fragment, typeName) {
103486
+ // First try the base class implementation
103487
+ const result = superSatisfiesFragmentTypeCondition(input, fragment);
103488
+ if (result.isErr() || result.value) {
103489
+ return result;
103490
+ }
103491
+ // Then try our custom typename checking
103492
+ return dataSatisfiesFragmentTypeCondition(input, fragment);
103493
+ }
103494
+
103380
103495
  class RecordRepresentationBaseRepository extends BaseGraphQLTypeRepository {
103381
103496
  constructor(namespace, typeName, implementedInterfaces, fields, idField, services) {
103382
103497
  super();
@@ -103403,15 +103518,8 @@
103403
103518
  getFieldDef(_input, selection) {
103404
103519
  return buildGenericTypeFieldDef(selection, this.fields, this.staticFieldNames, this.typeName);
103405
103520
  }
103406
- satisfiesFragmentTypeCondition(_input, fragment) {
103407
- const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103408
- if (result.isErr()) {
103409
- return result;
103410
- }
103411
- if (result.value) {
103412
- return result;
103413
- }
103414
- return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103521
+ satisfiesFragmentTypeCondition(input, fragment) {
103522
+ return genericSatisfiesFragmentTypeCondition(super.satisfiesFragmentTypeCondition.bind(this), input, fragment, this.typeName);
103415
103523
  }
103416
103524
  }
103417
103525
 
@@ -103420,7 +103528,7 @@
103420
103528
  super(services, typeRegistry);
103421
103529
  this.services = services;
103422
103530
  this.typeRegistry = typeRegistry;
103423
- this.namespace = 'oas';
103531
+ this.namespace = 'uiapi';
103424
103532
  this.typeName = 'RecordRepresentation';
103425
103533
  this.implementedInterfaces = ['Record'];
103426
103534
  this._graphqlRepositoryOverride = undefined;
@@ -103572,14 +103680,7 @@
103572
103680
  return super.getFieldDef(undefined, selection) !== undefined;
103573
103681
  }
103574
103682
  satisfiesFragmentTypeCondition(_input, fragment) {
103575
- const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103576
- if (result.isErr()) {
103577
- return result;
103578
- }
103579
- if (result.value) {
103580
- return result;
103581
- }
103582
- return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103683
+ return genericSatisfiesFragmentTypeCondition(super.satisfiesFragmentTypeCondition.bind(this), _input, fragment, this.typeName);
103583
103684
  }
103584
103685
  }
103585
103686
 
@@ -103603,14 +103704,7 @@
103603
103704
  return buildGenericTypeFieldDef(selection, this.fields, this.staticFieldNames, this.typeName);
103604
103705
  }
103605
103706
  satisfiesFragmentTypeCondition(_input, fragment) {
103606
- const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103607
- if (result.isErr()) {
103608
- return result;
103609
- }
103610
- if (result.value) {
103611
- return result;
103612
- }
103613
- return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103707
+ return genericSatisfiesFragmentTypeCondition(super.satisfiesFragmentTypeCondition.bind(this), _input, fragment, this.typeName);
103614
103708
  }
103615
103709
  }
103616
103710
 
@@ -103646,7 +103740,7 @@
103646
103740
  super(services);
103647
103741
  this.services = services;
103648
103742
  this.typeRegistry = typeRegistry;
103649
- this.namespace = 'oas';
103743
+ this.namespace = 'uiapi';
103650
103744
  this.typeName = 'Setup__EntityRepresentation';
103651
103745
  this.implementedInterfaces = [];
103652
103746
  }
@@ -103696,14 +103790,7 @@
103696
103790
  return blobTypeDef;
103697
103791
  }
103698
103792
  satisfiesFragmentTypeCondition(input, fragment) {
103699
- const result = super.satisfiesFragmentTypeCondition(input, fragment);
103700
- if (result.isErr()) {
103701
- return result;
103702
- }
103703
- if (result.value) {
103704
- return result;
103705
- }
103706
- return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103793
+ return genericSatisfiesFragmentTypeCondition(super.satisfiesFragmentTypeCondition.bind(this), input, fragment, this.typeName);
103707
103794
  }
103708
103795
  }
103709
103796
 
@@ -103743,14 +103830,7 @@
103743
103830
  return blobTypeDef;
103744
103831
  }
103745
103832
  satisfiesFragmentTypeCondition(_input, fragment) {
103746
- const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103747
- if (result.isErr()) {
103748
- return result;
103749
- }
103750
- if (result.value) {
103751
- return result;
103752
- }
103753
- return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103833
+ return genericSatisfiesFragmentTypeCondition(super.satisfiesFragmentTypeCondition.bind(this), _input, fragment, this.typeName);
103754
103834
  }
103755
103835
  }
103756
103836
 
@@ -103769,7 +103849,7 @@
103769
103849
  constructor(services, typeRegistry) {
103770
103850
  super(services);
103771
103851
  this.typeRegistry = typeRegistry;
103772
- this.namespace = 'oas';
103852
+ this.namespace = 'uiapi';
103773
103853
  this.typeName = 'Setup__Setup';
103774
103854
  this.implementedInterfaces = [];
103775
103855
  this.cacheControl = {
@@ -103790,14 +103870,7 @@
103790
103870
 
103791
103871
  class SetupEdgeRepository extends Setup__SetupEdgeRepository {
103792
103872
  satisfiesFragmentTypeCondition(_input, fragment) {
103793
- const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103794
- if (result.isErr()) {
103795
- return result;
103796
- }
103797
- if (result.value) {
103798
- return result;
103799
- }
103800
- return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103873
+ return genericSatisfiesFragmentTypeCondition(super.satisfiesFragmentTypeCondition.bind(this), _input, fragment, this.typeName);
103801
103874
  }
103802
103875
  }
103803
103876
 
@@ -103811,118 +103884,55 @@
103811
103884
 
103812
103885
  class RecordAggregateConnectionRepository extends RecordAggregateConnectionRepository$1 {
103813
103886
  satisfiesFragmentTypeCondition(_input, fragment) {
103814
- const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103815
- if (result.isErr()) {
103816
- return result;
103817
- }
103818
- if (result.value) {
103819
- return result;
103820
- }
103821
- return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103887
+ return genericSatisfiesFragmentTypeCondition(super.satisfiesFragmentTypeCondition.bind(this), _input, fragment, this.typeName);
103822
103888
  }
103823
103889
  }
103824
103890
 
103825
103891
  class RecordAggregateEdgeRepository extends RecordAggregateEdgeRepository$1 {
103826
103892
  satisfiesFragmentTypeCondition(_input, fragment) {
103827
- const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103828
- if (result.isErr()) {
103829
- return result;
103830
- }
103831
- if (result.value) {
103832
- return result;
103833
- }
103834
- return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103893
+ return genericSatisfiesFragmentTypeCondition(super.satisfiesFragmentTypeCondition.bind(this), _input, fragment, this.typeName);
103835
103894
  }
103836
103895
  }
103837
103896
 
103838
103897
  class RecordConnectionRepository extends RecordConnectionRepository$1 {
103839
103898
  satisfiesFragmentTypeCondition(_input, fragment) {
103840
- const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103841
- if (result.isErr()) {
103842
- return result;
103843
- }
103844
- if (result.value) {
103845
- return result;
103846
- }
103847
- return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103899
+ return genericSatisfiesFragmentTypeCondition(super.satisfiesFragmentTypeCondition.bind(this), _input, fragment, this.typeName);
103848
103900
  }
103849
103901
  }
103850
103902
 
103851
103903
  class RecordEdgeRepository extends RecordEdgeRepository$1 {
103852
103904
  satisfiesFragmentTypeCondition(_input, fragment) {
103853
- const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103854
- if (result.isErr()) {
103855
- return result;
103856
- }
103857
- if (result.value) {
103858
- return result;
103859
- }
103860
- return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103905
+ return genericSatisfiesFragmentTypeCondition(super.satisfiesFragmentTypeCondition.bind(this), _input, fragment, this.typeName);
103861
103906
  }
103862
103907
  }
103863
103908
 
103864
103909
  class RecordResultRepository extends RecordResultRepository$1 {
103865
103910
  satisfiesFragmentTypeCondition(_input, fragment) {
103866
- const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103867
- if (result.isErr()) {
103868
- return result;
103869
- }
103870
- if (result.value) {
103871
- return result;
103872
- }
103873
- return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103911
+ return genericSatisfiesFragmentTypeCondition(super.satisfiesFragmentTypeCondition.bind(this), _input, fragment, this.typeName);
103874
103912
  }
103875
103913
  }
103876
103914
 
103877
103915
  class SetupRecordResultRepository extends Setup__SetupRecordResultRepository {
103878
103916
  satisfiesFragmentTypeCondition(_input, fragment) {
103879
- const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103880
- if (result.isErr()) {
103881
- return result;
103882
- }
103883
- if (result.value) {
103884
- return result;
103885
- }
103886
- return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103917
+ return genericSatisfiesFragmentTypeCondition(super.satisfiesFragmentTypeCondition.bind(this), _input, fragment, this.typeName);
103887
103918
  }
103888
103919
  }
103889
103920
 
103890
103921
  class SetupAggregateConnectionRepository extends Setup__SetupAggregateConnectionRepository {
103891
103922
  satisfiesFragmentTypeCondition(_input, fragment) {
103892
- const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103893
- if (result.isErr()) {
103894
- return result;
103895
- }
103896
- if (result.value) {
103897
- return result;
103898
- }
103899
- return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103923
+ return genericSatisfiesFragmentTypeCondition(super.satisfiesFragmentTypeCondition.bind(this), _input, fragment, this.typeName);
103900
103924
  }
103901
103925
  }
103902
103926
 
103903
103927
  class SetupAggregateEdgeRepository extends Setup__SetupAggregateEdgeRepository {
103904
103928
  satisfiesFragmentTypeCondition(_input, fragment) {
103905
- const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103906
- if (result.isErr()) {
103907
- return result;
103908
- }
103909
- if (result.value) {
103910
- return result;
103911
- }
103912
- return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103929
+ return genericSatisfiesFragmentTypeCondition(super.satisfiesFragmentTypeCondition.bind(this), _input, fragment, this.typeName);
103913
103930
  }
103914
103931
  }
103915
103932
 
103916
103933
  class SetupConnectionRepository extends Setup__SetupConnectionRepository {
103917
103934
  satisfiesFragmentTypeCondition(_input, fragment) {
103918
- const result = super.satisfiesFragmentTypeCondition(_input, fragment);
103919
- if (result.isErr()) {
103920
- return result;
103921
- }
103922
- if (result.value) {
103923
- return result;
103924
- }
103925
- return err(new Error(`${this.typeName}: unsupported fragment type condition: ${fragment.typeCondition?.name.value}`));
103935
+ return genericSatisfiesFragmentTypeCondition(super.satisfiesFragmentTypeCondition.bind(this), _input, fragment, this.typeName);
103926
103936
  }
103927
103937
  }
103928
103938
 
@@ -104422,7 +104432,7 @@
104422
104432
  cb(graphql$1, graphql_imperative$1, useOneStoreGraphQL);
104423
104433
  }
104424
104434
  }
104425
- // version: 1.382.0-73d929ea11
104435
+ // version: 1.383.0-d85dce8db1
104426
104436
 
104427
104437
  function createFragmentMap(documentNode) {
104428
104438
  const fragments = {};
@@ -130917,7 +130927,7 @@
130917
130927
  }
130918
130928
  return refresh$3(data, 'refreshUiApi');
130919
130929
  }
130920
- // version: 1.382.0-73d929ea11
130930
+ // version: 1.383.0-d85dce8db1
130921
130931
 
130922
130932
  // On core the unstable adapters are re-exported with different names,
130923
130933
  // we want to match them here.
@@ -131069,7 +131079,7 @@
131069
131079
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
131070
131080
  graphQLImperative = ldsAdapter;
131071
131081
  });
131072
- // version: 1.382.0-73d929ea11
131082
+ // version: 1.383.0-d85dce8db1
131073
131083
 
131074
131084
  var gqlApi = /*#__PURE__*/Object.freeze({
131075
131085
  __proto__: null,
@@ -131868,7 +131878,7 @@
131868
131878
  function register(r) {
131869
131879
  callbacks$1.forEach((callback) => callback(r));
131870
131880
  }
131871
- // version: 1.382.0-8ca71123b0
131881
+ // version: 1.383.0-b9875fc4e1
131872
131882
 
131873
131883
  /**
131874
131884
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -133205,4 +133215,4 @@
133205
133215
  exports.subscribeToAdapter = subscribeToAdapter;
133206
133216
 
133207
133217
  }));
133208
- // version: 1.382.0-8ca71123b0
133218
+ // version: 1.383.0-b9875fc4e1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-worker-api",
3
- "version": "1.382.0",
3
+ "version": "1.383.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "",
6
6
  "main": "dist/standalone/es/lds-worker-api.js",
@@ -35,14 +35,14 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@oat-sa/rollup-plugin-wildcard-external": "^1.0.0",
38
- "@salesforce/lds-adapters-graphql": "^1.382.0",
39
- "@salesforce/lds-adapters-uiapi": "^1.382.0",
40
- "@salesforce/lds-default-luvio": "^1.382.0",
41
- "@salesforce/lds-drafts": "^1.382.0",
42
- "@salesforce/lds-graphql-parser": "^1.382.0",
43
- "@salesforce/lds-luvio-engine": "^1.382.0",
44
- "@salesforce/lds-runtime-mobile": "^1.382.0",
45
- "@salesforce/nimbus-plugin-lds": "^1.382.0",
38
+ "@salesforce/lds-adapters-graphql": "^1.383.0",
39
+ "@salesforce/lds-adapters-uiapi": "^1.383.0",
40
+ "@salesforce/lds-default-luvio": "^1.383.0",
41
+ "@salesforce/lds-drafts": "^1.383.0",
42
+ "@salesforce/lds-graphql-parser": "^1.383.0",
43
+ "@salesforce/lds-luvio-engine": "^1.383.0",
44
+ "@salesforce/lds-runtime-mobile": "^1.383.0",
45
+ "@salesforce/nimbus-plugin-lds": "^1.383.0",
46
46
  "ajv": "^8.11.0",
47
47
  "glob": "^7.1.5",
48
48
  "nimbus-types": "^2.0.0-alpha1",