@salesforce/lds-worker-api 1.440.0 → 1.442.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.
@@ -1373,4 +1373,4 @@ if (process.env.NODE_ENV !== 'production') {
1373
1373
  }
1374
1374
 
1375
1375
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, importLuvioAdapterModule, importOneStoreAdapterModule, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
1376
- // version: 1.440.0-267427df73
1376
+ // version: 1.442.0-e47893165a
@@ -4276,7 +4276,7 @@ function withDefaultLuvio(callback) {
4276
4276
  }
4277
4277
  callbacks.push(callback);
4278
4278
  }
4279
- // version: 1.440.0-267427df73
4279
+ // version: 1.442.0-e47893165a
4280
4280
 
4281
4281
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4282
4282
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -5320,7 +5320,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
5320
5320
  const { apiFamily, name } = metadata;
5321
5321
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
5322
5322
  }
5323
- // version: 1.440.0-267427df73
5323
+ // version: 1.442.0-e47893165a
5324
5324
 
5325
5325
  function isSupportedEntity(_objectApiName) {
5326
5326
  return true;
@@ -14373,7 +14373,7 @@ function coerceFormFactor$1(form) {
14373
14373
  return undefined;
14374
14374
  }
14375
14375
 
14376
- const VERSION$10$2 = "3f49d751896cf66e6e29788d8880e2cc";
14376
+ const VERSION$10$2 = "885c858e27ff690e5f69edc41d68c32b";
14377
14377
  const RepresentationType$G = 'PlatformActionRepresentation';
14378
14378
  function keyBuilder$1P$1(luvio, config) {
14379
14379
  return keyPrefix$3 + '::' + RepresentationType$G + ':' + config.externalId + ':' + (config.relatedSourceObject === null ? '' : config.relatedSourceObject) + ':' + (config.relatedListRecordId === null ? '' : config.relatedListRecordId);
@@ -14433,6 +14433,10 @@ const select$1G$2 = function PlatformActionRepresentationSelect() {
14433
14433
  name: 'lwcComponent',
14434
14434
  kind: 'Scalar'
14435
14435
  },
14436
+ {
14437
+ name: 'pageDeveloperName',
14438
+ kind: 'Scalar'
14439
+ },
14436
14440
  {
14437
14441
  name: 'primaryColor',
14438
14442
  kind: 'Scalar'
@@ -14461,6 +14465,10 @@ const select$1G$2 = function PlatformActionRepresentationSelect() {
14461
14465
  name: 'targetObject',
14462
14466
  kind: 'Scalar'
14463
14467
  },
14468
+ {
14469
+ name: 'targetParentField',
14470
+ kind: 'Scalar'
14471
+ },
14464
14472
  {
14465
14473
  name: 'targetUrl',
14466
14474
  kind: 'Scalar'
@@ -14533,6 +14541,11 @@ function equals$S(existing, incoming) {
14533
14541
  if (!(existing_lwcComponent === incoming_lwcComponent)) {
14534
14542
  return false;
14535
14543
  }
14544
+ const existing_pageDeveloperName = existing.pageDeveloperName;
14545
+ const incoming_pageDeveloperName = incoming.pageDeveloperName;
14546
+ if (!(existing_pageDeveloperName === incoming_pageDeveloperName)) {
14547
+ return false;
14548
+ }
14536
14549
  const existing_primaryColor = existing.primaryColor;
14537
14550
  const incoming_primaryColor = incoming.primaryColor;
14538
14551
  if (!(existing_primaryColor === incoming_primaryColor)) {
@@ -14563,6 +14576,11 @@ function equals$S(existing, incoming) {
14563
14576
  if (!(existing_targetObject === incoming_targetObject)) {
14564
14577
  return false;
14565
14578
  }
14579
+ const existing_targetParentField = existing.targetParentField;
14580
+ const incoming_targetParentField = incoming.targetParentField;
14581
+ if (!(existing_targetParentField === incoming_targetParentField)) {
14582
+ return false;
14583
+ }
14566
14584
  const existing_targetUrl = existing.targetUrl;
14567
14585
  const incoming_targetUrl = incoming.targetUrl;
14568
14586
  if (!(existing_targetUrl === incoming_targetUrl)) {
@@ -32520,7 +32538,7 @@ withDefaultLuvio((luvio) => {
32520
32538
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
32521
32539
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
32522
32540
  });
32523
- // version: 1.440.0-1ddfff6500
32541
+ // version: 1.442.0-d73ebfc396
32524
32542
 
32525
32543
  var allowUpdatesForNonCachedRecords = {
32526
32544
  isOpen: function (e) {
@@ -95432,9 +95450,12 @@ const _FetchNetworkCommand = class _FetchNetworkCommand extends NetworkCommand {
95432
95450
  this.services = services;
95433
95451
  this.additionalNullResponses = [];
95434
95452
  }
95435
- fetch() {
95453
+ fetch(contextSeed) {
95436
95454
  try {
95437
- return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
95455
+ const [input, init] = this.fetchParams;
95456
+ const initWithSeed = contextSeed === void 0 ? init : { ...init, __contextSeed: contextSeed };
95457
+ const fetchCall = initWithSeed === void 0 ? this.services.fetch(input) : this.services.fetch(input, initWithSeed);
95458
+ return this.convertFetchResponseToData(fetchCall);
95438
95459
  } catch (reason) {
95439
95460
  return resolvedPromiseLike$2(err$1(toError(reason)));
95440
95461
  }
@@ -96507,7 +96528,7 @@ function buildServiceDescriptor$b(luvio) {
96507
96528
  },
96508
96529
  };
96509
96530
  }
96510
- // version: 1.440.0-267427df73
96531
+ // version: 1.442.0-e47893165a
96511
96532
 
96512
96533
  /**
96513
96534
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -96533,7 +96554,7 @@ function buildServiceDescriptor$a(notifyRecordUpdateAvailable, getNormalizedLuvi
96533
96554
  },
96534
96555
  };
96535
96556
  }
96536
- // version: 1.440.0-267427df73
96557
+ // version: 1.442.0-e47893165a
96537
96558
 
96538
96559
  function findExecutableOperation$1(input) {
96539
96560
  const operations = input.query.definitions.filter(
@@ -98168,8 +98189,17 @@ function buildServiceDescriptor$1(interceptors = {
98168
98189
  return {
98169
98190
  type: "fetch",
98170
98191
  version: "1.0",
98171
- service: function(...args) {
98172
- const context = interceptors.createContext?.();
98192
+ service: function(input, init) {
98193
+ let contextSeed;
98194
+ let cleanInit = init;
98195
+ if (init !== void 0 && "__contextSeed" in init) {
98196
+ const { __contextSeed, ...initWithoutSeed } = init;
98197
+ contextSeed = __contextSeed;
98198
+ cleanInit = Object.keys(initWithoutSeed).length === 0 ? void 0 : initWithoutSeed;
98199
+ }
98200
+ const fetchArgs = cleanInit === void 0 ? [input] : [input, cleanInit];
98201
+ const baseContext = interceptors.createContext?.();
98202
+ const context = contextSeed === void 0 ? baseContext : { ...baseContext, ...contextSeed };
98173
98203
  const {
98174
98204
  request: requestInterceptors = [],
98175
98205
  retry: retryInterceptor = void 0,
@@ -98177,17 +98207,17 @@ function buildServiceDescriptor$1(interceptors = {
98177
98207
  finally: finallyInterceptors = []
98178
98208
  } = interceptors;
98179
98209
  const pending = requestInterceptors.reduce(
98180
- (previousPromise, interceptor) => previousPromise.then((args2) => interceptor(args2, context)),
98181
- resolvedPromiseLike$2(args)
98210
+ (previousPromise, interceptor) => previousPromise.then((args) => interceptor(args, context)),
98211
+ resolvedPromiseLike$2(fetchArgs)
98182
98212
  );
98183
- return Promise.resolve(pending).then((args2) => {
98213
+ return Promise.resolve(pending).then((args) => {
98184
98214
  if (retryInterceptor) {
98185
- return retryInterceptor(args2, retryService, context);
98215
+ return retryInterceptor(args, retryService, context);
98186
98216
  } else {
98187
98217
  if (retryService) {
98188
- return retryService.applyRetry(() => fetch(...args2));
98218
+ return retryService.applyRetry(() => fetch(...args));
98189
98219
  }
98190
- return fetch(...args2);
98220
+ return fetch(...args);
98191
98221
  }
98192
98222
  }).then((response) => {
98193
98223
  return responseInterceptors.reduce(
@@ -99201,7 +99231,7 @@ register$1({
99201
99231
  id: '@salesforce/lds-network-adapter',
99202
99232
  instrument: instrument$2,
99203
99233
  });
99204
- // version: 1.440.0-267427df73
99234
+ // version: 1.442.0-e47893165a
99205
99235
 
99206
99236
  const { create: create$2, keys: keys$2 } = Object;
99207
99237
  const { stringify, parse } = JSON;
@@ -105920,6 +105950,7 @@ function buildCommandClass(baseClass) {
105920
105950
  this.config = config;
105921
105951
  this.documentRootType = documentRootType;
105922
105952
  this.services = services;
105953
+ this.endpoint = 'RecordUiController.executeGraphQL';
105923
105954
  }
105924
105955
  get url() {
105925
105956
  return '/services/data/v68.0/graphql';
@@ -105931,6 +105962,22 @@ function buildCommandClass(baseClass) {
105931
105962
  now: Date.now() / 1000,
105932
105963
  };
105933
105964
  }
105965
+ get auraBodyWrapperName() {
105966
+ return 'queryInput';
105967
+ }
105968
+ get auraParams() {
105969
+ const params = super.auraParams;
105970
+ const body = params[this.auraBodyWrapperName];
105971
+ return {
105972
+ ...params,
105973
+ [this.auraBodyWrapperName]: {
105974
+ ...body,
105975
+ extensions: {
105976
+ requiredTypeFields,
105977
+ },
105978
+ },
105979
+ };
105980
+ }
105934
105981
  get fetchParams() {
105935
105982
  const [url, params] = super.fetchParams;
105936
105983
  const body = JSON.parse(params.body);
@@ -106504,26 +106551,6 @@ function cloneConfig(config) {
106504
106551
  return cloned;
106505
106552
  }
106506
106553
 
106507
- const requiredKeys = ['query'];
106508
- const optionalKeys = ['variables', 'operationName'];
106509
- /**
106510
- * Factory that builds the graphql adapter-state-manager from a `getCommand`
106511
- * function. Used on-core (with the platform-supplied command constructor that
106512
- * provisions services from `_conduit_client_service_provisioner_v1`) and reused
106513
- * off-core (with a host-provided command, e.g. an MCP-backed command synthesized
106514
- * by `vite-plugin-lwc-ui-bundle`'s runtime).
106515
- *
106516
- * Mirrors the shape of `createSmRecord` / `createSmObjectInfo` in
106517
- * `@salesforce/state-managers-uiapi`: factory + fixed config-key contract,
106518
- * adapter supplied by the caller.
106519
- *
106520
- * @param getCommand - Function that takes a config and returns a `GraphQLCommand`
106521
- * @returns The graphql adapter-state-manager definition
106522
- */
106523
- function createSmGraphQL(getCommand) {
106524
- return createStateManager(getCommand, requiredKeys, optionalKeys);
106525
- }
106526
-
106527
106554
  let graphql$1;
106528
106555
  let graphql_v1_import;
106529
106556
  let graphql_imperative$1;
@@ -106572,13 +106599,19 @@ const serviceRequirements = {
106572
106599
  type: 'lwcGraphQLWireBindings',
106573
106600
  version: '1.0',
106574
106601
  },
106575
- httpGraphQLNormalizedCacheControlCommand: {
106576
- type: 'httpGraphQLNormalizedCacheControlCommand',
106602
+ auraGraphQLNormalizedCacheControlCommand: {
106603
+ type: 'auraGraphQLNormalizedCacheControlCommand',
106577
106604
  version: '1.0',
106578
106605
  },
106606
+ auraNetwork: {
106607
+ type: 'auraNetwork',
106608
+ version: '1.0',
106609
+ optional: true,
106610
+ },
106579
106611
  fetch: {
106580
106612
  type: 'fetch',
106581
106613
  version: '1.0',
106614
+ optional: true,
106582
106615
  },
106583
106616
  luvio: {
106584
106617
  type: 'luvio',
@@ -106604,7 +106637,7 @@ getServices(serviceRequirements).then((services) => {
106604
106637
  const graphqlTypeRegistry = new CustomGraphQLTypeRegistry(services);
106605
106638
  const documentRootType = graphqlTypeRegistry.Query;
106606
106639
  const mutationType = graphqlTypeRegistry.Mutation;
106607
- const graphql_ctor = services.instrumentCommand(buildCommandClass(services.httpGraphQLNormalizedCacheControlCommand), 'graphqlCommand');
106640
+ const graphql_ctor = services.instrumentCommand(buildCommandClass(services.auraGraphQLNormalizedCacheControlCommand), 'graphqlCommand');
106608
106641
  graphql$1 = services.lwcGraphQLWireBindings.bind((config) => new graphql_ctor(config, documentRootType, services), CONFIG_SCHEMA, true);
106609
106642
  class GraphqlV1ImportAdapter extends graphql$1 {
106610
106643
  update(config, _context) {
@@ -106618,7 +106651,7 @@ getServices(serviceRequirements).then((services) => {
106618
106651
  }
106619
106652
  }
106620
106653
  graphql_v1_import = GraphqlV1ImportAdapter;
106621
- const graphql_imperative_ctor = services.instrumentCommand(buildCommandClass(services.httpGraphQLNormalizedCacheControlCommand), 'graphqlCommand');
106654
+ const graphql_imperative_ctor = services.instrumentCommand(buildCommandClass(services.auraGraphQLNormalizedCacheControlCommand), 'graphqlCommand');
106622
106655
  graphql_imperative$1 = services.graphQLImperativeBindings.bind(({ params, assertIsValid }) => {
106623
106656
  const config = params[0];
106624
106657
  const options = params[1];
@@ -106646,7 +106679,7 @@ getServices(serviceRequirements).then((services) => {
106646
106679
  /*
106647
106680
  * State Manager
106648
106681
  */
106649
- const graphql_state_manager_ctor = services.instrumentCommand(buildCommandClass(services.httpGraphQLNormalizedCacheControlCommand), 'graphql_state_manager');
106682
+ const graphql_state_manager_ctor = services.instrumentCommand(buildCommandClass(services.auraGraphQLNormalizedCacheControlCommand), 'graphql_state_manager');
106650
106683
  const factory = (config) => {
106651
106684
  assertIsValid$1(config, CONFIG_SCHEMA);
106652
106685
  const validatedConfig = resolveAndValidateGraphQLConfig(config, {
@@ -106658,8 +106691,8 @@ getServices(serviceRequirements).then((services) => {
106658
106691
  }
106659
106692
  return new graphql_state_manager_ctor(validatedConfig.value, documentRootType, services);
106660
106693
  };
106661
- graphql_state_manager = createSmGraphQL(factory);
106662
- const executeMutation_ctor = services.instrumentCommand(buildCommandClass(services.httpGraphQLNormalizedCacheControlCommand), 'graphqlCommand');
106694
+ graphql_state_manager = createStateManager(factory, ['query'], ['variables', 'operationName']);
106695
+ const executeMutation_ctor = services.instrumentCommand(buildCommandClass(services.auraGraphQLNormalizedCacheControlCommand), 'graphqlCommand');
106663
106696
  services.graphQLMutationBindings.bind(({ params, assertIsValid }) => {
106664
106697
  const config = params[0];
106665
106698
  const options = params[1];
@@ -106681,7 +106714,7 @@ function registerCallback(cb) {
106681
106714
  cb(graphql_v1_import, graphql_imperative$1, graphql_imperative_legacy_v1_import, graphql_state_manager, useOneStoreGraphQL);
106682
106715
  }
106683
106716
  }
106684
- // version: 1.440.0-1ddfff6500
106717
+ // version: 1.442.0-d73ebfc396
106685
106718
 
106686
106719
  function createFragmentMap(documentNode) {
106687
106720
  const fragments = {};
@@ -135888,7 +135921,7 @@ register$1({
135888
135921
  configuration: { ...configurationForGraphQLAdapters$1 },
135889
135922
  instrument: instrument$1,
135890
135923
  });
135891
- // version: 1.440.0-1ddfff6500
135924
+ // version: 1.442.0-d73ebfc396
135892
135925
 
135893
135926
  // On core the unstable adapters are re-exported with different names,
135894
135927
  // we want to match them here.
@@ -136040,7 +136073,7 @@ withDefaultLuvio((luvio) => {
136040
136073
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
136041
136074
  graphQLImperative = ldsAdapter;
136042
136075
  });
136043
- // version: 1.440.0-1ddfff6500
136076
+ // version: 1.442.0-d73ebfc396
136044
136077
 
136045
136078
  var gqlApi = /*#__PURE__*/Object.freeze({
136046
136079
  __proto__: null,
@@ -136839,7 +136872,7 @@ const callbacks$1 = [];
136839
136872
  function register(r) {
136840
136873
  callbacks$1.forEach((callback) => callback(r));
136841
136874
  }
136842
- // version: 1.440.0-267427df73
136875
+ // version: 1.442.0-e47893165a
136843
136876
 
136844
136877
  /**
136845
136878
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -138128,4 +138161,4 @@ const { luvio } = getRuntime();
138128
138161
  setDefaultLuvio({ luvio });
138129
138162
 
138130
138163
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, importLuvioAdapterModule, importOneStoreAdapterModule, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
138131
- // version: 1.440.0-267427df73
138164
+ // version: 1.442.0-e47893165a
@@ -4282,7 +4282,7 @@
4282
4282
  }
4283
4283
  callbacks.push(callback);
4284
4284
  }
4285
- // version: 1.440.0-267427df73
4285
+ // version: 1.442.0-e47893165a
4286
4286
 
4287
4287
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4288
4288
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -5326,7 +5326,7 @@
5326
5326
  const { apiFamily, name } = metadata;
5327
5327
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
5328
5328
  }
5329
- // version: 1.440.0-267427df73
5329
+ // version: 1.442.0-e47893165a
5330
5330
 
5331
5331
  function isSupportedEntity(_objectApiName) {
5332
5332
  return true;
@@ -14379,7 +14379,7 @@
14379
14379
  return undefined;
14380
14380
  }
14381
14381
 
14382
- const VERSION$10$2 = "3f49d751896cf66e6e29788d8880e2cc";
14382
+ const VERSION$10$2 = "885c858e27ff690e5f69edc41d68c32b";
14383
14383
  const RepresentationType$G = 'PlatformActionRepresentation';
14384
14384
  function keyBuilder$1P$1(luvio, config) {
14385
14385
  return keyPrefix$3 + '::' + RepresentationType$G + ':' + config.externalId + ':' + (config.relatedSourceObject === null ? '' : config.relatedSourceObject) + ':' + (config.relatedListRecordId === null ? '' : config.relatedListRecordId);
@@ -14439,6 +14439,10 @@
14439
14439
  name: 'lwcComponent',
14440
14440
  kind: 'Scalar'
14441
14441
  },
14442
+ {
14443
+ name: 'pageDeveloperName',
14444
+ kind: 'Scalar'
14445
+ },
14442
14446
  {
14443
14447
  name: 'primaryColor',
14444
14448
  kind: 'Scalar'
@@ -14467,6 +14471,10 @@
14467
14471
  name: 'targetObject',
14468
14472
  kind: 'Scalar'
14469
14473
  },
14474
+ {
14475
+ name: 'targetParentField',
14476
+ kind: 'Scalar'
14477
+ },
14470
14478
  {
14471
14479
  name: 'targetUrl',
14472
14480
  kind: 'Scalar'
@@ -14539,6 +14547,11 @@
14539
14547
  if (!(existing_lwcComponent === incoming_lwcComponent)) {
14540
14548
  return false;
14541
14549
  }
14550
+ const existing_pageDeveloperName = existing.pageDeveloperName;
14551
+ const incoming_pageDeveloperName = incoming.pageDeveloperName;
14552
+ if (!(existing_pageDeveloperName === incoming_pageDeveloperName)) {
14553
+ return false;
14554
+ }
14542
14555
  const existing_primaryColor = existing.primaryColor;
14543
14556
  const incoming_primaryColor = incoming.primaryColor;
14544
14557
  if (!(existing_primaryColor === incoming_primaryColor)) {
@@ -14569,6 +14582,11 @@
14569
14582
  if (!(existing_targetObject === incoming_targetObject)) {
14570
14583
  return false;
14571
14584
  }
14585
+ const existing_targetParentField = existing.targetParentField;
14586
+ const incoming_targetParentField = incoming.targetParentField;
14587
+ if (!(existing_targetParentField === incoming_targetParentField)) {
14588
+ return false;
14589
+ }
14572
14590
  const existing_targetUrl = existing.targetUrl;
14573
14591
  const incoming_targetUrl = incoming.targetUrl;
14574
14592
  if (!(existing_targetUrl === incoming_targetUrl)) {
@@ -32526,7 +32544,7 @@
32526
32544
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
32527
32545
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
32528
32546
  });
32529
- // version: 1.440.0-1ddfff6500
32547
+ // version: 1.442.0-d73ebfc396
32530
32548
 
32531
32549
  var allowUpdatesForNonCachedRecords = {
32532
32550
  isOpen: function (e) {
@@ -95438,9 +95456,12 @@
95438
95456
  this.services = services;
95439
95457
  this.additionalNullResponses = [];
95440
95458
  }
95441
- fetch() {
95459
+ fetch(contextSeed) {
95442
95460
  try {
95443
- return this.convertFetchResponseToData(this.services.fetch(...this.fetchParams));
95461
+ const [input, init] = this.fetchParams;
95462
+ const initWithSeed = contextSeed === void 0 ? init : { ...init, __contextSeed: contextSeed };
95463
+ const fetchCall = initWithSeed === void 0 ? this.services.fetch(input) : this.services.fetch(input, initWithSeed);
95464
+ return this.convertFetchResponseToData(fetchCall);
95444
95465
  } catch (reason) {
95445
95466
  return resolvedPromiseLike$2(err$1(toError(reason)));
95446
95467
  }
@@ -96513,7 +96534,7 @@
96513
96534
  },
96514
96535
  };
96515
96536
  }
96516
- // version: 1.440.0-267427df73
96537
+ // version: 1.442.0-e47893165a
96517
96538
 
96518
96539
  /**
96519
96540
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -96539,7 +96560,7 @@
96539
96560
  },
96540
96561
  };
96541
96562
  }
96542
- // version: 1.440.0-267427df73
96563
+ // version: 1.442.0-e47893165a
96543
96564
 
96544
96565
  function findExecutableOperation$1(input) {
96545
96566
  const operations = input.query.definitions.filter(
@@ -98174,8 +98195,17 @@
98174
98195
  return {
98175
98196
  type: "fetch",
98176
98197
  version: "1.0",
98177
- service: function(...args) {
98178
- const context = interceptors.createContext?.();
98198
+ service: function(input, init) {
98199
+ let contextSeed;
98200
+ let cleanInit = init;
98201
+ if (init !== void 0 && "__contextSeed" in init) {
98202
+ const { __contextSeed, ...initWithoutSeed } = init;
98203
+ contextSeed = __contextSeed;
98204
+ cleanInit = Object.keys(initWithoutSeed).length === 0 ? void 0 : initWithoutSeed;
98205
+ }
98206
+ const fetchArgs = cleanInit === void 0 ? [input] : [input, cleanInit];
98207
+ const baseContext = interceptors.createContext?.();
98208
+ const context = contextSeed === void 0 ? baseContext : { ...baseContext, ...contextSeed };
98179
98209
  const {
98180
98210
  request: requestInterceptors = [],
98181
98211
  retry: retryInterceptor = void 0,
@@ -98183,17 +98213,17 @@
98183
98213
  finally: finallyInterceptors = []
98184
98214
  } = interceptors;
98185
98215
  const pending = requestInterceptors.reduce(
98186
- (previousPromise, interceptor) => previousPromise.then((args2) => interceptor(args2, context)),
98187
- resolvedPromiseLike$2(args)
98216
+ (previousPromise, interceptor) => previousPromise.then((args) => interceptor(args, context)),
98217
+ resolvedPromiseLike$2(fetchArgs)
98188
98218
  );
98189
- return Promise.resolve(pending).then((args2) => {
98219
+ return Promise.resolve(pending).then((args) => {
98190
98220
  if (retryInterceptor) {
98191
- return retryInterceptor(args2, retryService, context);
98221
+ return retryInterceptor(args, retryService, context);
98192
98222
  } else {
98193
98223
  if (retryService) {
98194
- return retryService.applyRetry(() => fetch(...args2));
98224
+ return retryService.applyRetry(() => fetch(...args));
98195
98225
  }
98196
- return fetch(...args2);
98226
+ return fetch(...args);
98197
98227
  }
98198
98228
  }).then((response) => {
98199
98229
  return responseInterceptors.reduce(
@@ -99207,7 +99237,7 @@
99207
99237
  id: '@salesforce/lds-network-adapter',
99208
99238
  instrument: instrument$2,
99209
99239
  });
99210
- // version: 1.440.0-267427df73
99240
+ // version: 1.442.0-e47893165a
99211
99241
 
99212
99242
  const { create: create$2, keys: keys$2 } = Object;
99213
99243
  const { stringify, parse } = JSON;
@@ -105926,6 +105956,7 @@
105926
105956
  this.config = config;
105927
105957
  this.documentRootType = documentRootType;
105928
105958
  this.services = services;
105959
+ this.endpoint = 'RecordUiController.executeGraphQL';
105929
105960
  }
105930
105961
  get url() {
105931
105962
  return '/services/data/v68.0/graphql';
@@ -105937,6 +105968,22 @@
105937
105968
  now: Date.now() / 1000,
105938
105969
  };
105939
105970
  }
105971
+ get auraBodyWrapperName() {
105972
+ return 'queryInput';
105973
+ }
105974
+ get auraParams() {
105975
+ const params = super.auraParams;
105976
+ const body = params[this.auraBodyWrapperName];
105977
+ return {
105978
+ ...params,
105979
+ [this.auraBodyWrapperName]: {
105980
+ ...body,
105981
+ extensions: {
105982
+ requiredTypeFields,
105983
+ },
105984
+ },
105985
+ };
105986
+ }
105940
105987
  get fetchParams() {
105941
105988
  const [url, params] = super.fetchParams;
105942
105989
  const body = JSON.parse(params.body);
@@ -106510,26 +106557,6 @@
106510
106557
  return cloned;
106511
106558
  }
106512
106559
 
106513
- const requiredKeys = ['query'];
106514
- const optionalKeys = ['variables', 'operationName'];
106515
- /**
106516
- * Factory that builds the graphql adapter-state-manager from a `getCommand`
106517
- * function. Used on-core (with the platform-supplied command constructor that
106518
- * provisions services from `_conduit_client_service_provisioner_v1`) and reused
106519
- * off-core (with a host-provided command, e.g. an MCP-backed command synthesized
106520
- * by `vite-plugin-lwc-ui-bundle`'s runtime).
106521
- *
106522
- * Mirrors the shape of `createSmRecord` / `createSmObjectInfo` in
106523
- * `@salesforce/state-managers-uiapi`: factory + fixed config-key contract,
106524
- * adapter supplied by the caller.
106525
- *
106526
- * @param getCommand - Function that takes a config and returns a `GraphQLCommand`
106527
- * @returns The graphql adapter-state-manager definition
106528
- */
106529
- function createSmGraphQL(getCommand) {
106530
- return createStateManager(getCommand, requiredKeys, optionalKeys);
106531
- }
106532
-
106533
106560
  let graphql$1;
106534
106561
  let graphql_v1_import;
106535
106562
  let graphql_imperative$1;
@@ -106578,13 +106605,19 @@
106578
106605
  type: 'lwcGraphQLWireBindings',
106579
106606
  version: '1.0',
106580
106607
  },
106581
- httpGraphQLNormalizedCacheControlCommand: {
106582
- type: 'httpGraphQLNormalizedCacheControlCommand',
106608
+ auraGraphQLNormalizedCacheControlCommand: {
106609
+ type: 'auraGraphQLNormalizedCacheControlCommand',
106583
106610
  version: '1.0',
106584
106611
  },
106612
+ auraNetwork: {
106613
+ type: 'auraNetwork',
106614
+ version: '1.0',
106615
+ optional: true,
106616
+ },
106585
106617
  fetch: {
106586
106618
  type: 'fetch',
106587
106619
  version: '1.0',
106620
+ optional: true,
106588
106621
  },
106589
106622
  luvio: {
106590
106623
  type: 'luvio',
@@ -106610,7 +106643,7 @@
106610
106643
  const graphqlTypeRegistry = new CustomGraphQLTypeRegistry(services);
106611
106644
  const documentRootType = graphqlTypeRegistry.Query;
106612
106645
  const mutationType = graphqlTypeRegistry.Mutation;
106613
- const graphql_ctor = services.instrumentCommand(buildCommandClass(services.httpGraphQLNormalizedCacheControlCommand), 'graphqlCommand');
106646
+ const graphql_ctor = services.instrumentCommand(buildCommandClass(services.auraGraphQLNormalizedCacheControlCommand), 'graphqlCommand');
106614
106647
  graphql$1 = services.lwcGraphQLWireBindings.bind((config) => new graphql_ctor(config, documentRootType, services), CONFIG_SCHEMA, true);
106615
106648
  class GraphqlV1ImportAdapter extends graphql$1 {
106616
106649
  update(config, _context) {
@@ -106624,7 +106657,7 @@
106624
106657
  }
106625
106658
  }
106626
106659
  graphql_v1_import = GraphqlV1ImportAdapter;
106627
- const graphql_imperative_ctor = services.instrumentCommand(buildCommandClass(services.httpGraphQLNormalizedCacheControlCommand), 'graphqlCommand');
106660
+ const graphql_imperative_ctor = services.instrumentCommand(buildCommandClass(services.auraGraphQLNormalizedCacheControlCommand), 'graphqlCommand');
106628
106661
  graphql_imperative$1 = services.graphQLImperativeBindings.bind(({ params, assertIsValid }) => {
106629
106662
  const config = params[0];
106630
106663
  const options = params[1];
@@ -106652,7 +106685,7 @@
106652
106685
  /*
106653
106686
  * State Manager
106654
106687
  */
106655
- const graphql_state_manager_ctor = services.instrumentCommand(buildCommandClass(services.httpGraphQLNormalizedCacheControlCommand), 'graphql_state_manager');
106688
+ const graphql_state_manager_ctor = services.instrumentCommand(buildCommandClass(services.auraGraphQLNormalizedCacheControlCommand), 'graphql_state_manager');
106656
106689
  const factory = (config) => {
106657
106690
  assertIsValid$1(config, CONFIG_SCHEMA);
106658
106691
  const validatedConfig = resolveAndValidateGraphQLConfig(config, {
@@ -106664,8 +106697,8 @@
106664
106697
  }
106665
106698
  return new graphql_state_manager_ctor(validatedConfig.value, documentRootType, services);
106666
106699
  };
106667
- graphql_state_manager = createSmGraphQL(factory);
106668
- const executeMutation_ctor = services.instrumentCommand(buildCommandClass(services.httpGraphQLNormalizedCacheControlCommand), 'graphqlCommand');
106700
+ graphql_state_manager = createStateManager(factory, ['query'], ['variables', 'operationName']);
106701
+ const executeMutation_ctor = services.instrumentCommand(buildCommandClass(services.auraGraphQLNormalizedCacheControlCommand), 'graphqlCommand');
106669
106702
  services.graphQLMutationBindings.bind(({ params, assertIsValid }) => {
106670
106703
  const config = params[0];
106671
106704
  const options = params[1];
@@ -106687,7 +106720,7 @@
106687
106720
  cb(graphql_v1_import, graphql_imperative$1, graphql_imperative_legacy_v1_import, graphql_state_manager, useOneStoreGraphQL);
106688
106721
  }
106689
106722
  }
106690
- // version: 1.440.0-1ddfff6500
106723
+ // version: 1.442.0-d73ebfc396
106691
106724
 
106692
106725
  function createFragmentMap(documentNode) {
106693
106726
  const fragments = {};
@@ -135894,7 +135927,7 @@
135894
135927
  configuration: { ...configurationForGraphQLAdapters$1 },
135895
135928
  instrument: instrument$1,
135896
135929
  });
135897
- // version: 1.440.0-1ddfff6500
135930
+ // version: 1.442.0-d73ebfc396
135898
135931
 
135899
135932
  // On core the unstable adapters are re-exported with different names,
135900
135933
  // we want to match them here.
@@ -136046,7 +136079,7 @@
136046
136079
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
136047
136080
  graphQLImperative = ldsAdapter;
136048
136081
  });
136049
- // version: 1.440.0-1ddfff6500
136082
+ // version: 1.442.0-d73ebfc396
136050
136083
 
136051
136084
  var gqlApi = /*#__PURE__*/Object.freeze({
136052
136085
  __proto__: null,
@@ -136845,7 +136878,7 @@
136845
136878
  function register(r) {
136846
136879
  callbacks$1.forEach((callback) => callback(r));
136847
136880
  }
136848
- // version: 1.440.0-267427df73
136881
+ // version: 1.442.0-e47893165a
136849
136882
 
136850
136883
  /**
136851
136884
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -138155,4 +138188,4 @@
138155
138188
  exports.subscribeToAdapter = subscribeToAdapter;
138156
138189
 
138157
138190
  }));
138158
- // version: 1.440.0-267427df73
138191
+ // version: 1.442.0-e47893165a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-worker-api",
3
- "version": "1.440.0",
3
+ "version": "1.442.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.440.0",
39
- "@salesforce/lds-adapters-uiapi": "^1.440.0",
40
- "@salesforce/lds-default-luvio": "^1.440.0",
41
- "@salesforce/lds-drafts": "^1.440.0",
42
- "@salesforce/lds-graphql-parser": "^1.440.0",
43
- "@salesforce/lds-luvio-engine": "^1.440.0",
44
- "@salesforce/lds-runtime-mobile": "^1.440.0",
45
- "@salesforce/nimbus-plugin-lds": "^1.440.0",
38
+ "@salesforce/lds-adapters-graphql": "^1.442.0",
39
+ "@salesforce/lds-adapters-uiapi": "^1.442.0",
40
+ "@salesforce/lds-default-luvio": "^1.442.0",
41
+ "@salesforce/lds-drafts": "^1.442.0",
42
+ "@salesforce/lds-graphql-parser": "^1.442.0",
43
+ "@salesforce/lds-luvio-engine": "^1.442.0",
44
+ "@salesforce/lds-runtime-mobile": "^1.442.0",
45
+ "@salesforce/nimbus-plugin-lds": "^1.442.0",
46
46
  "ajv": "^8.11.0",
47
47
  "glob": "^7.1.5",
48
48
  "nimbus-types": "^2.0.0-alpha1",