@salesforce/lds-worker-api 1.332.0-dev1 → 1.332.0-dev10

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.
@@ -449,7 +449,16 @@ function invokeAdapterWithMetadata(adapterId, config, metadata, onResponse, nati
449
449
  return;
450
450
  }
451
451
  if (adapterId === 'deleteRecord') {
452
- invokeAdapterWithMetadataDeleteRecord(adapter, config, metadata, onResponse, nativeAdapterRequestContext);
452
+ draftManager.stopQueueWhileRunning(() => {
453
+ return new Promise((resolve) => {
454
+ const onResponseWrapper = (response) => {
455
+ resolve(response);
456
+ };
457
+ invokeAdapterWithMetadataDeleteRecord(adapter, config, metadata, onResponseWrapper, nativeAdapterRequestContext);
458
+ }).then((callbackValue) => {
459
+ onResponse(callbackValue);
460
+ });
461
+ });
453
462
  }
454
463
  else {
455
464
  draftManager.stopQueueWhileRunning(() => {
@@ -597,9 +606,7 @@ function removeDraftNodeActionId(targetDraftId, responseValue) {
597
606
  ...responseValue.data.drafts,
598
607
  draftActionIds: responseValue.data.drafts.draftActionIds.filter((x) => x !== targetDraftId),
599
608
  };
600
- return Object.assign(responseValue, {
601
- data: { drafts: recordDraftsNode },
602
- });
609
+ return { ...responseValue, data: { ...responseValue.data, drafts: recordDraftsNode } };
603
610
  }
604
611
  function convertErrorIntoNativeFetchError(error, defaultMessage) {
605
612
  let message = defaultMessage;
@@ -1121,4 +1128,4 @@ if (process.env.NODE_ENV !== 'production') {
1121
1128
  }
1122
1129
 
1123
1130
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
1124
- // version: 1.332.0-dev1-5d903f6f8e
1131
+ // version: 1.332.0-dev10-0d26f7dda1
@@ -4265,7 +4265,7 @@ function withDefaultLuvio(callback) {
4265
4265
  }
4266
4266
  callbacks.push(callback);
4267
4267
  }
4268
- // version: 1.332.0-dev1-5d903f6f8e
4268
+ // version: 1.332.0-dev10-0d26f7dda1
4269
4269
 
4270
4270
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4271
4271
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -5213,7 +5213,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
5213
5213
  const { apiFamily, name } = metadata;
5214
5214
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
5215
5215
  }
5216
- // version: 1.332.0-dev1-5d903f6f8e
5216
+ // version: 1.332.0-dev10-0d26f7dda1
5217
5217
 
5218
5218
  /**
5219
5219
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -33850,7 +33850,7 @@ withDefaultLuvio((luvio) => {
33850
33850
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
33851
33851
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
33852
33852
  });
33853
- // version: 1.332.0-dev1-2186468293
33853
+ // version: 1.332.0-dev10-d8601dd102
33854
33854
 
33855
33855
  /**
33856
33856
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -65842,13 +65842,25 @@ function convertGraphQLToRaml$1(astNode, state) {
65842
65842
  ? getRequestedFieldsForType$1(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$H$1)
65843
65843
  : new Map();
65844
65844
  const { fieldsBag, trie } = createFieldsBagAndTrie$1(data, requestedFields, state);
65845
+ const recordTypeId = data.ldsRecordTypeId === null ? null : data.ldsRecordTypeId.value;
65846
+ if (recordTypeId && recordTypeId !== MAIN_RECORD_TYPE_ID) {
65847
+ const fieldName = 'RecordTypeId';
65848
+ fieldsBag[fieldName] = {
65849
+ value: recordTypeId,
65850
+ displayValue: null,
65851
+ };
65852
+ trie.children[fieldName] = {
65853
+ name: fieldName,
65854
+ children: {},
65855
+ };
65856
+ }
65845
65857
  const recordRepresentation = {
65846
65858
  apiName: data.ApiName,
65847
65859
  eTag: '',
65848
65860
  lastModifiedById: data.LastModifiedById.value,
65849
65861
  lastModifiedDate: data.LastModifiedDate.value,
65850
65862
  systemModstamp: data.SystemModstamp.value,
65851
- recordTypeId: data.ldsRecordTypeId === null ? null : data.ldsRecordTypeId.value,
65863
+ recordTypeId: recordTypeId,
65852
65864
  recordTypeInfo: null,
65853
65865
  childRelationships: {},
65854
65866
  id: data.Id,
@@ -80117,11 +80129,13 @@ class UiApiDraftRecordService {
80117
80129
 
80118
80130
  const QUICK_ACTION_HANDLER = 'QUICK_ACTION_HANDLER';
80119
80131
  class QuickActionExecutionRepresentationHandler extends AbstractResourceRequestActionHandler {
80120
- constructor(getLuvio, draftRecordService, draftQueue, networkAdapter, isDraftId, sideEffectService) {
80132
+ constructor(getLuvio, draftRecordService, draftQueue, networkAdapter, isDraftId, sideEffectService, objectInfoService, getRecord) {
80121
80133
  super(draftQueue, networkAdapter, getLuvio, draftRecordService);
80122
80134
  this.draftRecordService = draftRecordService;
80123
80135
  this.isDraftId = isDraftId;
80124
80136
  this.sideEffectService = sideEffectService;
80137
+ this.objectInfoService = objectInfoService;
80138
+ this.getRecord = getRecord;
80125
80139
  this.handlerId = QUICK_ACTION_HANDLER;
80126
80140
  draftRecordService.registerRecordHandler(this);
80127
80141
  }
@@ -80153,6 +80167,30 @@ class QuickActionExecutionRepresentationHandler extends AbstractResourceRequestA
80153
80167
  });
80154
80168
  luvio.storeIngest(key, ingest$B$2, response);
80155
80169
  }
80170
+ async handleActionCompleted(action, queueOperations) {
80171
+ await super.handleActionCompleted(action, queueOperations);
80172
+ this.getLuvio();
80173
+ const canonicalId = action.response.body.id;
80174
+ this.buildTagForTargetId(canonicalId);
80175
+ const prefix = canonicalId.substring(0, 3);
80176
+ if (prefix.length !== 3) {
80177
+ // if we can't get a prefix, don't do the rest
80178
+ return;
80179
+ }
80180
+ const apiName = await this.objectInfoService.apiNameForPrefix(prefix);
80181
+ const objectInfo = await this.objectInfoService.getObjectInfo(apiName);
80182
+ if (!objectInfo) {
80183
+ return;
80184
+ }
80185
+ await this.getRecord({ recordId: canonicalId, fields: this.allFields(objectInfo) });
80186
+ }
80187
+ allFields(objectInfo) {
80188
+ let fields = [];
80189
+ Object.keys(objectInfo.fields).forEach((fieldName) => {
80190
+ fields.push(objectInfo.apiName + '.' + fieldName);
80191
+ });
80192
+ return fields;
80193
+ }
80156
80194
  mergeRequestBody() {
80157
80195
  throw Error('mergeActions not supported for QuickActionExecutionRepresentationHandler');
80158
80196
  }
@@ -92166,7 +92204,7 @@ class SideEffectService {
92166
92204
  const objectInfo = await this.ensureObjectInfo(apiName);
92167
92205
  const recordFields = {};
92168
92206
  for (const fieldName of keys$3(fields)) {
92169
- const draftField = fields[fieldName];
92207
+ const draftField = fields[fieldName] ?? null;
92170
92208
  recordFields[fieldName] = { value: draftField, displayValue: null };
92171
92209
  const fieldInfo = objectInfo.fields[fieldName];
92172
92210
  if (fieldInfo) {
@@ -92723,7 +92761,7 @@ function getRuntime() {
92723
92761
  const draftService = new UiApiDraftRecordService(() => lazyLuvio, lazyDurableStore, lazyObjectInfoService, newRecordId, lazySideEffectStore, lazyDurableRecordStore);
92724
92762
  const uiApiRecordHandler = new UiApiActionHandler(() => lazyLuvio, lazyNetworkAdapter, lazyDraftQueue, getRecord, lazyObjectInfoService, isGenerated, draftService, lazySideEffectService, lazyDurableRecordStore);
92725
92763
  uiApiRecordHandler.setSideEffectHooks(sfsSideEffectHooks);
92726
- const quickActionHandler = new QuickActionExecutionRepresentationHandler(() => lazyLuvio, draftService, lazyDraftQueue, lazyNetworkAdapter, isGenerated, lazySideEffectService);
92764
+ const quickActionHandler = new QuickActionExecutionRepresentationHandler(() => lazyLuvio, draftService, lazyDraftQueue, lazyNetworkAdapter, isGenerated, lazySideEffectService, lazyObjectInfoService, getRecord);
92727
92765
  const updateRecordQuickActionHandler = new UpdateRecordQuickActionExecutionRepresentationHandler(() => lazyLuvio, draftService, lazyDraftQueue, lazyNetworkAdapter, isGenerated, lazySideEffectService);
92728
92766
  const contentDocumentCompositeActionHandler = new ContentDocumentCompositeRepresentationActionHandler(() => lazyLuvio, userId, draftService, lazyObjectInfoService, lazyDraftQueue, lazyNetworkAdapter, isGenerated, NimbusBinaryStore, lazySideEffectService);
92729
92767
  lazyDraftQueue.addHandler(uiApiRecordHandler);
@@ -92829,7 +92867,7 @@ register$1({
92829
92867
  id: '@salesforce/lds-network-adapter',
92830
92868
  instrument: instrument$2,
92831
92869
  });
92832
- // version: 1.332.0-dev1-5d903f6f8e
92870
+ // version: 1.332.0-dev10-0d26f7dda1
92833
92871
 
92834
92872
  const { create: create$2, keys: keys$2 } = Object;
92835
92873
  const { stringify, parse } = JSON;
@@ -115396,7 +115434,7 @@ register$1({
115396
115434
  configuration: { ...configurationForGraphQLAdapters$1 },
115397
115435
  instrument: instrument$1,
115398
115436
  });
115399
- // version: 1.332.0-dev1-2186468293
115437
+ // version: 1.332.0-dev10-d8601dd102
115400
115438
 
115401
115439
  // On core the unstable adapters are re-exported with different names,
115402
115440
  // we want to match them here.
@@ -115548,7 +115586,7 @@ withDefaultLuvio((luvio) => {
115548
115586
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
115549
115587
  graphQLImperative = ldsAdapter;
115550
115588
  });
115551
- // version: 1.332.0-dev1-2186468293
115589
+ // version: 1.332.0-dev10-d8601dd102
115552
115590
 
115553
115591
  var gqlApi = /*#__PURE__*/Object.freeze({
115554
115592
  __proto__: null,
@@ -115961,7 +115999,16 @@ function invokeAdapterWithMetadata(adapterId, config, metadata, onResponse, nati
115961
115999
  return;
115962
116000
  }
115963
116001
  if (adapterId === 'deleteRecord') {
115964
- invokeAdapterWithMetadataDeleteRecord(adapter, config, metadata, onResponse, nativeAdapterRequestContext);
116002
+ draftManager.stopQueueWhileRunning(() => {
116003
+ return new Promise((resolve) => {
116004
+ const onResponseWrapper = (response) => {
116005
+ resolve(response);
116006
+ };
116007
+ invokeAdapterWithMetadataDeleteRecord(adapter, config, metadata, onResponseWrapper, nativeAdapterRequestContext);
116008
+ }).then((callbackValue) => {
116009
+ onResponse(callbackValue);
116010
+ });
116011
+ });
115965
116012
  }
115966
116013
  else {
115967
116014
  draftManager.stopQueueWhileRunning(() => {
@@ -116109,9 +116156,7 @@ function removeDraftNodeActionId(targetDraftId, responseValue) {
116109
116156
  ...responseValue.data.drafts,
116110
116157
  draftActionIds: responseValue.data.drafts.draftActionIds.filter((x) => x !== targetDraftId),
116111
116158
  };
116112
- return Object.assign(responseValue, {
116113
- data: { drafts: recordDraftsNode },
116114
- });
116159
+ return { ...responseValue, data: { ...responseValue.data, drafts: recordDraftsNode } };
116115
116160
  }
116116
116161
  function convertErrorIntoNativeFetchError(error, defaultMessage) {
116117
116162
  let message = defaultMessage;
@@ -116333,7 +116378,7 @@ const callbacks$1 = [];
116333
116378
  function register(r) {
116334
116379
  callbacks$1.forEach((callback) => callback(r));
116335
116380
  }
116336
- // version: 1.332.0-dev1-5d903f6f8e
116381
+ // version: 1.332.0-dev10-0d26f7dda1
116337
116382
 
116338
116383
  /**
116339
116384
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -117396,4 +117441,4 @@ const { luvio } = getRuntime();
117396
117441
  setDefaultLuvio({ luvio });
117397
117442
 
117398
117443
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
117399
- // version: 1.332.0-dev1-5d903f6f8e
117444
+ // version: 1.332.0-dev10-0d26f7dda1
@@ -4271,7 +4271,7 @@
4271
4271
  }
4272
4272
  callbacks.push(callback);
4273
4273
  }
4274
- // version: 1.332.0-dev1-5d903f6f8e
4274
+ // version: 1.332.0-dev10-0d26f7dda1
4275
4275
 
4276
4276
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4277
4277
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -5219,7 +5219,7 @@
5219
5219
  const { apiFamily, name } = metadata;
5220
5220
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
5221
5221
  }
5222
- // version: 1.332.0-dev1-5d903f6f8e
5222
+ // version: 1.332.0-dev10-0d26f7dda1
5223
5223
 
5224
5224
  /**
5225
5225
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -33856,7 +33856,7 @@
33856
33856
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
33857
33857
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
33858
33858
  });
33859
- // version: 1.332.0-dev1-2186468293
33859
+ // version: 1.332.0-dev10-d8601dd102
33860
33860
 
33861
33861
  /**
33862
33862
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -65848,13 +65848,25 @@
65848
65848
  ? getRequestedFieldsForType$1(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$H$1)
65849
65849
  : new Map();
65850
65850
  const { fieldsBag, trie } = createFieldsBagAndTrie$1(data, requestedFields, state);
65851
+ const recordTypeId = data.ldsRecordTypeId === null ? null : data.ldsRecordTypeId.value;
65852
+ if (recordTypeId && recordTypeId !== MAIN_RECORD_TYPE_ID) {
65853
+ const fieldName = 'RecordTypeId';
65854
+ fieldsBag[fieldName] = {
65855
+ value: recordTypeId,
65856
+ displayValue: null,
65857
+ };
65858
+ trie.children[fieldName] = {
65859
+ name: fieldName,
65860
+ children: {},
65861
+ };
65862
+ }
65851
65863
  const recordRepresentation = {
65852
65864
  apiName: data.ApiName,
65853
65865
  eTag: '',
65854
65866
  lastModifiedById: data.LastModifiedById.value,
65855
65867
  lastModifiedDate: data.LastModifiedDate.value,
65856
65868
  systemModstamp: data.SystemModstamp.value,
65857
- recordTypeId: data.ldsRecordTypeId === null ? null : data.ldsRecordTypeId.value,
65869
+ recordTypeId: recordTypeId,
65858
65870
  recordTypeInfo: null,
65859
65871
  childRelationships: {},
65860
65872
  id: data.Id,
@@ -80123,11 +80135,13 @@
80123
80135
 
80124
80136
  const QUICK_ACTION_HANDLER = 'QUICK_ACTION_HANDLER';
80125
80137
  class QuickActionExecutionRepresentationHandler extends AbstractResourceRequestActionHandler {
80126
- constructor(getLuvio, draftRecordService, draftQueue, networkAdapter, isDraftId, sideEffectService) {
80138
+ constructor(getLuvio, draftRecordService, draftQueue, networkAdapter, isDraftId, sideEffectService, objectInfoService, getRecord) {
80127
80139
  super(draftQueue, networkAdapter, getLuvio, draftRecordService);
80128
80140
  this.draftRecordService = draftRecordService;
80129
80141
  this.isDraftId = isDraftId;
80130
80142
  this.sideEffectService = sideEffectService;
80143
+ this.objectInfoService = objectInfoService;
80144
+ this.getRecord = getRecord;
80131
80145
  this.handlerId = QUICK_ACTION_HANDLER;
80132
80146
  draftRecordService.registerRecordHandler(this);
80133
80147
  }
@@ -80159,6 +80173,30 @@
80159
80173
  });
80160
80174
  luvio.storeIngest(key, ingest$B$2, response);
80161
80175
  }
80176
+ async handleActionCompleted(action, queueOperations) {
80177
+ await super.handleActionCompleted(action, queueOperations);
80178
+ this.getLuvio();
80179
+ const canonicalId = action.response.body.id;
80180
+ this.buildTagForTargetId(canonicalId);
80181
+ const prefix = canonicalId.substring(0, 3);
80182
+ if (prefix.length !== 3) {
80183
+ // if we can't get a prefix, don't do the rest
80184
+ return;
80185
+ }
80186
+ const apiName = await this.objectInfoService.apiNameForPrefix(prefix);
80187
+ const objectInfo = await this.objectInfoService.getObjectInfo(apiName);
80188
+ if (!objectInfo) {
80189
+ return;
80190
+ }
80191
+ await this.getRecord({ recordId: canonicalId, fields: this.allFields(objectInfo) });
80192
+ }
80193
+ allFields(objectInfo) {
80194
+ let fields = [];
80195
+ Object.keys(objectInfo.fields).forEach((fieldName) => {
80196
+ fields.push(objectInfo.apiName + '.' + fieldName);
80197
+ });
80198
+ return fields;
80199
+ }
80162
80200
  mergeRequestBody() {
80163
80201
  throw Error('mergeActions not supported for QuickActionExecutionRepresentationHandler');
80164
80202
  }
@@ -92172,7 +92210,7 @@
92172
92210
  const objectInfo = await this.ensureObjectInfo(apiName);
92173
92211
  const recordFields = {};
92174
92212
  for (const fieldName of keys$3(fields)) {
92175
- const draftField = fields[fieldName];
92213
+ const draftField = fields[fieldName] ?? null;
92176
92214
  recordFields[fieldName] = { value: draftField, displayValue: null };
92177
92215
  const fieldInfo = objectInfo.fields[fieldName];
92178
92216
  if (fieldInfo) {
@@ -92729,7 +92767,7 @@
92729
92767
  const draftService = new UiApiDraftRecordService(() => lazyLuvio, lazyDurableStore, lazyObjectInfoService, newRecordId, lazySideEffectStore, lazyDurableRecordStore);
92730
92768
  const uiApiRecordHandler = new UiApiActionHandler(() => lazyLuvio, lazyNetworkAdapter, lazyDraftQueue, getRecord, lazyObjectInfoService, isGenerated, draftService, lazySideEffectService, lazyDurableRecordStore);
92731
92769
  uiApiRecordHandler.setSideEffectHooks(sfsSideEffectHooks);
92732
- const quickActionHandler = new QuickActionExecutionRepresentationHandler(() => lazyLuvio, draftService, lazyDraftQueue, lazyNetworkAdapter, isGenerated, lazySideEffectService);
92770
+ const quickActionHandler = new QuickActionExecutionRepresentationHandler(() => lazyLuvio, draftService, lazyDraftQueue, lazyNetworkAdapter, isGenerated, lazySideEffectService, lazyObjectInfoService, getRecord);
92733
92771
  const updateRecordQuickActionHandler = new UpdateRecordQuickActionExecutionRepresentationHandler(() => lazyLuvio, draftService, lazyDraftQueue, lazyNetworkAdapter, isGenerated, lazySideEffectService);
92734
92772
  const contentDocumentCompositeActionHandler = new ContentDocumentCompositeRepresentationActionHandler(() => lazyLuvio, userId, draftService, lazyObjectInfoService, lazyDraftQueue, lazyNetworkAdapter, isGenerated, NimbusBinaryStore, lazySideEffectService);
92735
92773
  lazyDraftQueue.addHandler(uiApiRecordHandler);
@@ -92835,7 +92873,7 @@
92835
92873
  id: '@salesforce/lds-network-adapter',
92836
92874
  instrument: instrument$2,
92837
92875
  });
92838
- // version: 1.332.0-dev1-5d903f6f8e
92876
+ // version: 1.332.0-dev10-0d26f7dda1
92839
92877
 
92840
92878
  const { create: create$2, keys: keys$2 } = Object;
92841
92879
  const { stringify, parse } = JSON;
@@ -115402,7 +115440,7 @@
115402
115440
  configuration: { ...configurationForGraphQLAdapters$1 },
115403
115441
  instrument: instrument$1,
115404
115442
  });
115405
- // version: 1.332.0-dev1-2186468293
115443
+ // version: 1.332.0-dev10-d8601dd102
115406
115444
 
115407
115445
  // On core the unstable adapters are re-exported with different names,
115408
115446
  // we want to match them here.
@@ -115554,7 +115592,7 @@
115554
115592
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
115555
115593
  graphQLImperative = ldsAdapter;
115556
115594
  });
115557
- // version: 1.332.0-dev1-2186468293
115595
+ // version: 1.332.0-dev10-d8601dd102
115558
115596
 
115559
115597
  var gqlApi = /*#__PURE__*/Object.freeze({
115560
115598
  __proto__: null,
@@ -115967,7 +116005,16 @@
115967
116005
  return;
115968
116006
  }
115969
116007
  if (adapterId === 'deleteRecord') {
115970
- invokeAdapterWithMetadataDeleteRecord(adapter, config, metadata, onResponse, nativeAdapterRequestContext);
116008
+ draftManager.stopQueueWhileRunning(() => {
116009
+ return new Promise((resolve) => {
116010
+ const onResponseWrapper = (response) => {
116011
+ resolve(response);
116012
+ };
116013
+ invokeAdapterWithMetadataDeleteRecord(adapter, config, metadata, onResponseWrapper, nativeAdapterRequestContext);
116014
+ }).then((callbackValue) => {
116015
+ onResponse(callbackValue);
116016
+ });
116017
+ });
115971
116018
  }
115972
116019
  else {
115973
116020
  draftManager.stopQueueWhileRunning(() => {
@@ -116115,9 +116162,7 @@
116115
116162
  ...responseValue.data.drafts,
116116
116163
  draftActionIds: responseValue.data.drafts.draftActionIds.filter((x) => x !== targetDraftId),
116117
116164
  };
116118
- return Object.assign(responseValue, {
116119
- data: { drafts: recordDraftsNode },
116120
- });
116165
+ return { ...responseValue, data: { ...responseValue.data, drafts: recordDraftsNode } };
116121
116166
  }
116122
116167
  function convertErrorIntoNativeFetchError(error, defaultMessage) {
116123
116168
  let message = defaultMessage;
@@ -116339,7 +116384,7 @@
116339
116384
  function register(r) {
116340
116385
  callbacks$1.forEach((callback) => callback(r));
116341
116386
  }
116342
- // version: 1.332.0-dev1-5d903f6f8e
116387
+ // version: 1.332.0-dev10-0d26f7dda1
116343
116388
 
116344
116389
  /**
116345
116390
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -117421,4 +117466,4 @@
117421
117466
  exports.subscribeToAdapter = subscribeToAdapter;
117422
117467
 
117423
117468
  }));
117424
- // version: 1.332.0-dev1-5d903f6f8e
117469
+ // version: 1.332.0-dev10-0d26f7dda1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-worker-api",
3
- "version": "1.332.0-dev1",
3
+ "version": "1.332.0-dev10",
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.332.0-dev1",
39
- "@salesforce/lds-adapters-uiapi": "^1.332.0-dev1",
40
- "@salesforce/lds-default-luvio": "^1.332.0-dev1",
41
- "@salesforce/lds-drafts": "^1.332.0-dev1",
42
- "@salesforce/lds-graphql-parser": "^1.332.0-dev1",
43
- "@salesforce/lds-luvio-engine": "^1.332.0-dev1",
44
- "@salesforce/lds-runtime-mobile": "^1.332.0-dev1",
45
- "@salesforce/nimbus-plugin-lds": "^1.332.0-dev1",
38
+ "@salesforce/lds-adapters-graphql": "^1.332.0-dev10",
39
+ "@salesforce/lds-adapters-uiapi": "^1.332.0-dev10",
40
+ "@salesforce/lds-default-luvio": "^1.332.0-dev10",
41
+ "@salesforce/lds-drafts": "^1.332.0-dev10",
42
+ "@salesforce/lds-graphql-parser": "^1.332.0-dev10",
43
+ "@salesforce/lds-luvio-engine": "^1.332.0-dev10",
44
+ "@salesforce/lds-runtime-mobile": "^1.332.0-dev10",
45
+ "@salesforce/nimbus-plugin-lds": "^1.332.0-dev10",
46
46
  "ajv": "^8.11.0",
47
47
  "glob": "^7.1.5",
48
48
  "nimbus-types": "^2.0.0-alpha1",