@salesforce/lds-worker-api 1.402.0 → 1.403.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.
@@ -27,30 +27,30 @@ const { push: push$5, indexOf, slice: slice$2 } = Array.prototype;
27
27
  const { parse: parse$c, stringify: stringify$c } = JSON;
28
28
  const WeakSetCtor = WeakSet;
29
29
 
30
- const deeplyFrozen$2 = new WeakSetCtor();
30
+ const deeplyFrozen$1 = new WeakSetCtor();
31
31
  // Allow custom environments to bypass deep freeze for performance reasons
32
32
  let bypassDeepFreeze = false;
33
33
  function setBypassDeepFreeze(value) {
34
34
  bypassDeepFreeze = value;
35
35
  }
36
- function deepFreeze$2(value) {
36
+ function deepFreeze$1(value) {
37
37
  // No need to freeze primitives or already frozen stuff
38
38
  if (bypassDeepFreeze ||
39
39
  typeof value !== 'object' ||
40
40
  value === null ||
41
- deeplyFrozen$2.has(value)) {
41
+ deeplyFrozen$1.has(value)) {
42
42
  return;
43
43
  }
44
- deeplyFrozen$2.add(value);
44
+ deeplyFrozen$1.add(value);
45
45
  if (isArray$a(value)) {
46
46
  for (let i = 0, len = value.length; i < len; i += 1) {
47
- deepFreeze$2(value[i]);
47
+ deepFreeze$1(value[i]);
48
48
  }
49
49
  }
50
50
  else {
51
51
  const keys$1 = keys$b(value);
52
52
  for (let i = 0, len = keys$1.length; i < len; i += 1) {
53
- deepFreeze$2(value[keys$1[i]]);
53
+ deepFreeze$1(value[keys$1[i]]);
54
54
  }
55
55
  }
56
56
  freeze$7(value);
@@ -72,7 +72,7 @@ function isPendingSnapshot$1(snapshot) {
72
72
  return snapshot.state === SnapshotState$3.Pending;
73
73
  }
74
74
  function createErrorSnapshot(error, refresh) {
75
- deepFreeze$2(error);
75
+ deepFreeze$1(error);
76
76
  const snap = {
77
77
  error,
78
78
  state: SnapshotState$3.Error,
@@ -2614,7 +2614,7 @@ class Reader {
2614
2614
  if (this.snapshotChanged === false && selector.recordId === this.baseSnapshot.recordId) {
2615
2615
  return this.baseSnapshot;
2616
2616
  }
2617
- deepFreeze$2(data);
2617
+ deepFreeze$1(data);
2618
2618
  return {
2619
2619
  recordId: selector.recordId,
2620
2620
  select: selector,
@@ -4274,7 +4274,7 @@ function withDefaultLuvio(callback) {
4274
4274
  }
4275
4275
  callbacks.push(callback);
4276
4276
  }
4277
- // version: 1.402.0-bf9ae185ef
4277
+ // version: 1.403.0-bc09fbc54b
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) {
@@ -4406,7 +4406,7 @@ function throwAnnotatedError(error, messagePrefix) {
4406
4406
  throw new Error(`${messagePrefix}\n[${stringify$b(error)}]`);
4407
4407
  }
4408
4408
 
4409
- let Sanitizer$2 = class Sanitizer {
4409
+ let Sanitizer$1 = class Sanitizer {
4410
4410
  constructor(obj) {
4411
4411
  this.obj = obj;
4412
4412
  this.copy = {};
@@ -4460,8 +4460,8 @@ let Sanitizer$2 = class Sanitizer {
4460
4460
  * into the luvio engine code nor into the adapters. All the data coming from LWC-land need to be
4461
4461
  * sanitized first.
4462
4462
  */
4463
- function sanitize$2(obj) {
4464
- return new Sanitizer$2(obj).sanitize();
4463
+ function sanitize$1(obj) {
4464
+ return new Sanitizer$1(obj).sanitize();
4465
4465
  }
4466
4466
 
4467
4467
  class LWCLuvioWireAdapter {
@@ -4507,7 +4507,7 @@ class LWCLuvioWireAdapter {
4507
4507
  */
4508
4508
  update(config, context) {
4509
4509
  this.unsubscribe();
4510
- this.config = sanitize$2(config);
4510
+ this.config = sanitize$1(config);
4511
4511
  this.callAdapter(this.generateAdapterRequestContext(context));
4512
4512
  }
4513
4513
  // private and protected utility methods
@@ -4734,7 +4734,7 @@ class LWCInfinteScrollingLuvioWireAdapter extends LWCLuvioWireAdapter {
4734
4734
  }
4735
4735
  const adapterRequestContext = this.generateAdapterRequestContext(context);
4736
4736
  super.unsubscribe();
4737
- this.config = sanitize$2(config);
4737
+ this.config = sanitize$1(config);
4738
4738
  // this.callAdapterWithContext(mergedContext);
4739
4739
  super.callAdapter(adapterRequestContext);
4740
4740
  }
@@ -4906,7 +4906,7 @@ function safeSanitizeGraphQLConfigObject(config) {
4906
4906
  // sanitizing it makes a copy and we lose that reference
4907
4907
  // so we avoid sanitizing it
4908
4908
  return {
4909
- ...sanitize$2(config),
4909
+ ...sanitize$1(config),
4910
4910
  query: config.query,
4911
4911
  };
4912
4912
  }
@@ -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.402.0-bf9ae185ef
5321
+ // version: 1.403.0-bc09fbc54b
5322
5322
 
5323
5323
  /**
5324
5324
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -11729,7 +11729,7 @@ function ingestSuccessChildResourceParams$8(luvio, childResourceParamsArray, chi
11729
11729
  const childSnapshotData = {
11730
11730
  results: childSnapshotDataResponses,
11731
11731
  };
11732
- deepFreeze$2(childSnapshotData);
11732
+ deepFreeze$1(childSnapshotData);
11733
11733
  return {
11734
11734
  childSnapshotData,
11735
11735
  seenRecords,
@@ -11848,7 +11848,7 @@ function selectChildResourceParams$7(luvio, childResources, resourceParams) {
11848
11848
  reader.exitPath();
11849
11849
  }
11850
11850
  reader.assignNonScalar(sink, envelopePath, results);
11851
- deepFreeze$2(sink);
11851
+ deepFreeze$1(sink);
11852
11852
  reader.exitPath();
11853
11853
  return sink;
11854
11854
  },
@@ -14101,7 +14101,7 @@ function ingestSuccess$Q(luvio, resourceParams, response, snapshotRefresh) {
14101
14101
  node: select$1O$1(luvio, resourceParams),
14102
14102
  variables: {},
14103
14103
  }, snapshotRefresh);
14104
- deepFreeze$2(snapshot.data);
14104
+ deepFreeze$1(snapshot.data);
14105
14105
  return snapshot;
14106
14106
  }
14107
14107
  function ingestError$J(luvio, params, error, snapshotRefresh) {
@@ -15307,7 +15307,7 @@ function ingestSuccess$P(luvio, resourceParams, response, snapshotRefresh) {
15307
15307
  node: select$1M$1(),
15308
15308
  variables: {},
15309
15309
  }, snapshotRefresh);
15310
- deepFreeze$2(snapshot.data);
15310
+ deepFreeze$1(snapshot.data);
15311
15311
  return snapshot;
15312
15312
  }
15313
15313
  function ingestError$I(luvio, params, error, snapshotRefresh) {
@@ -17756,7 +17756,7 @@ function ingestSuccess$O(luvio, resourceParams, response, snapshotRefresh) {
17756
17756
  node: select$1D$2(),
17757
17757
  variables: {},
17758
17758
  }, snapshotRefresh);
17759
- deepFreeze$2(snapshot.data);
17759
+ deepFreeze$1(snapshot.data);
17760
17760
  return snapshot;
17761
17761
  }
17762
17762
  function ingestError$H(luvio, params, error, snapshotRefresh) {
@@ -17950,7 +17950,7 @@ function ingestSuccess$N(luvio, resourceParams, response, snapshotRefresh) {
17950
17950
  node: select$1B$2(),
17951
17951
  variables: {},
17952
17952
  }, snapshotRefresh);
17953
- deepFreeze$2(snapshot.data);
17953
+ deepFreeze$1(snapshot.data);
17954
17954
  return snapshot;
17955
17955
  }
17956
17956
  function ingestError$G(luvio, params, error, snapshotRefresh) {
@@ -18114,7 +18114,7 @@ function ingestSuccess$M(luvio, resourceParams, response, snapshotRefresh) {
18114
18114
  node: select$1A$2(),
18115
18115
  variables: {},
18116
18116
  }, snapshotRefresh);
18117
- deepFreeze$2(snapshot.data);
18117
+ deepFreeze$1(snapshot.data);
18118
18118
  return snapshot;
18119
18119
  }
18120
18120
  function ingestError$F(luvio, params, error, snapshotRefresh) {
@@ -18248,7 +18248,7 @@ function ingestSuccess$L(luvio, resourceParams, response, snapshotRefresh) {
18248
18248
  node: select$1z$2(),
18249
18249
  variables: {},
18250
18250
  }, snapshotRefresh);
18251
- deepFreeze$2(snapshot.data);
18251
+ deepFreeze$1(snapshot.data);
18252
18252
  return snapshot;
18253
18253
  }
18254
18254
  function ingestError$E(luvio, params, error, snapshotRefresh) {
@@ -18417,7 +18417,7 @@ function ingestSuccess$K(luvio, resourceParams, response, snapshotRefresh) {
18417
18417
  node: select$1x$2(),
18418
18418
  variables: {},
18419
18419
  }, snapshotRefresh);
18420
- deepFreeze$2(snapshot.data);
18420
+ deepFreeze$1(snapshot.data);
18421
18421
  return snapshot;
18422
18422
  }
18423
18423
  function ingestError$D(luvio, params, error, snapshotRefresh) {
@@ -18588,7 +18588,7 @@ function ingestSuccess$J(luvio, resourceParams, response, snapshotRefresh) {
18588
18588
  node: select$1v$2(),
18589
18589
  variables: {},
18590
18590
  }, snapshotRefresh);
18591
- deepFreeze$2(snapshot.data);
18591
+ deepFreeze$1(snapshot.data);
18592
18592
  return snapshot;
18593
18593
  }
18594
18594
  function ingestError$C(luvio, params, error, snapshotRefresh) {
@@ -19195,7 +19195,7 @@ function ingestSuccess$I(luvio, resourceParams, response, snapshotRefresh) {
19195
19195
  node: select$1p$2(),
19196
19196
  variables: {},
19197
19197
  }, snapshotRefresh);
19198
- deepFreeze$2(snapshot.data);
19198
+ deepFreeze$1(snapshot.data);
19199
19199
  return snapshot;
19200
19200
  }
19201
19201
  function ingestError$B(luvio, params, error, snapshotRefresh) {
@@ -19553,7 +19553,7 @@ function ingestSuccess$H(luvio, resourceParams, response, snapshotRefresh) {
19553
19553
  node: select$1o$2(),
19554
19554
  variables: {},
19555
19555
  }, snapshotRefresh);
19556
- deepFreeze$2(snapshot.data);
19556
+ deepFreeze$1(snapshot.data);
19557
19557
  return snapshot;
19558
19558
  }
19559
19559
  function ingestError$z(luvio, params, error, snapshotRefresh) {
@@ -19693,7 +19693,7 @@ function ingestSuccess$G(luvio, resourceParams, response, snapshotRefresh) {
19693
19693
  node: select$1n$2(),
19694
19694
  variables: {},
19695
19695
  }, snapshotRefresh);
19696
- deepFreeze$2(snapshot.data);
19696
+ deepFreeze$1(snapshot.data);
19697
19697
  return snapshot;
19698
19698
  }
19699
19699
  function ingestError$y(luvio, params, error, snapshotRefresh) {
@@ -19897,7 +19897,7 @@ function ingestSuccess$F(luvio, resourceParams, response, snapshotRefresh) {
19897
19897
  node: select$1m$2(),
19898
19898
  variables: {},
19899
19899
  }, snapshotRefresh);
19900
- deepFreeze$2(snapshot.data);
19900
+ deepFreeze$1(snapshot.data);
19901
19901
  return snapshot;
19902
19902
  }
19903
19903
  function ingestError$x(luvio, params, error, snapshotRefresh) {
@@ -20123,7 +20123,7 @@ function ingestSuccessChildResourceParams$7(luvio, childResourceParamsArray, chi
20123
20123
  statusCode: 200,
20124
20124
  result: childSnapshot.data,
20125
20125
  };
20126
- deepFreeze$2(childValue);
20126
+ deepFreeze$1(childValue);
20127
20127
  ArrayPrototypePush$2.call(childSnapshotDataResponses, childValue);
20128
20128
  }
20129
20129
  else {
@@ -20142,7 +20142,7 @@ function ingestSuccessChildResourceParams$7(luvio, childResourceParamsArray, chi
20142
20142
  statusCode: childStatusCode,
20143
20143
  result: childBody,
20144
20144
  };
20145
- deepFreeze$2(childValue);
20145
+ deepFreeze$1(childValue);
20146
20146
  ArrayPrototypePush$2.call(childSnapshotDataResponses, childValue);
20147
20147
  }
20148
20148
  // track non-cached responses so rebuilds work properly
@@ -20156,7 +20156,7 @@ function ingestSuccessChildResourceParams$7(luvio, childResourceParamsArray, chi
20156
20156
  const childSnapshotData = {
20157
20157
  results: childSnapshotDataResponses
20158
20158
  };
20159
- deepFreeze$2(childSnapshotData);
20159
+ deepFreeze$1(childSnapshotData);
20160
20160
  return { childSnapshotData: childSnapshotData, seenRecords, snapshotState };
20161
20161
  }
20162
20162
  function ingestSuccess$E(luvio, resourceParams, response, snapshotRefresh) {
@@ -20406,7 +20406,7 @@ function ingestSuccess$D(luvio, resourceParams, response, snapshotRefresh) {
20406
20406
  node: select$1k$2(),
20407
20407
  variables: {},
20408
20408
  }, snapshotRefresh);
20409
- deepFreeze$2(snapshot.data);
20409
+ deepFreeze$1(snapshot.data);
20410
20410
  return snapshot;
20411
20411
  }
20412
20412
  function ingestError$v(luvio, params, error, snapshotRefresh) {
@@ -21127,7 +21127,7 @@ function ingestSuccess$C(luvio, resourceParams, response, snapshotRefresh) {
21127
21127
  node: select$1f$2(),
21128
21128
  variables: {},
21129
21129
  }, snapshotRefresh);
21130
- deepFreeze$2(snapshot.data);
21130
+ deepFreeze$1(snapshot.data);
21131
21131
  return snapshot;
21132
21132
  }
21133
21133
  function ingestError$u(luvio, params, error, snapshotRefresh) {
@@ -21261,7 +21261,7 @@ function ingestSuccess$B(luvio, resourceParams, response, snapshotRefresh) {
21261
21261
  node: select$1e$2(),
21262
21262
  variables: {},
21263
21263
  }, snapshotRefresh);
21264
- deepFreeze$2(snapshot.data);
21264
+ deepFreeze$1(snapshot.data);
21265
21265
  return snapshot;
21266
21266
  }
21267
21267
  function ingestError$t(luvio, params, error, snapshotRefresh) {
@@ -21597,7 +21597,7 @@ function ingestSuccess$A(luvio, resourceParams, response, snapshotRefresh) {
21597
21597
  node: select$18$2(),
21598
21598
  variables: {},
21599
21599
  }, snapshotRefresh);
21600
- deepFreeze$2(snapshot.data);
21600
+ deepFreeze$1(snapshot.data);
21601
21601
  return snapshot;
21602
21602
  }
21603
21603
  function ingestError$s(luvio, params, error, snapshotRefresh) {
@@ -22096,7 +22096,7 @@ function ingestSuccess$z(luvio, resourceParams, response, snapshotRefresh) {
22096
22096
  node: select$17$2(),
22097
22097
  variables: {},
22098
22098
  }, snapshotRefresh);
22099
- deepFreeze$2(snapshot.data);
22099
+ deepFreeze$1(snapshot.data);
22100
22100
  return snapshot;
22101
22101
  }
22102
22102
  function ingestError$q(luvio, params, error, snapshotRefresh) {
@@ -22306,7 +22306,7 @@ function ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, chi
22306
22306
  statusCode: 200,
22307
22307
  result: childSnapshot.data,
22308
22308
  };
22309
- deepFreeze$2(childValue);
22309
+ deepFreeze$1(childValue);
22310
22310
  ArrayPrototypePush$2.call(childSnapshotDataResponses, childValue);
22311
22311
  }
22312
22312
  else {
@@ -22325,7 +22325,7 @@ function ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, chi
22325
22325
  statusCode: childStatusCode,
22326
22326
  result: childBody,
22327
22327
  };
22328
- deepFreeze$2(childValue);
22328
+ deepFreeze$1(childValue);
22329
22329
  ArrayPrototypePush$2.call(childSnapshotDataResponses, childValue);
22330
22330
  }
22331
22331
  // track non-cached responses so rebuilds work properly
@@ -22339,7 +22339,7 @@ function ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, chi
22339
22339
  const childSnapshotData = {
22340
22340
  results: childSnapshotDataResponses
22341
22341
  };
22342
- deepFreeze$2(childSnapshotData);
22342
+ deepFreeze$1(childSnapshotData);
22343
22343
  return { childSnapshotData: childSnapshotData, seenRecords, snapshotState };
22344
22344
  }
22345
22345
  function ingestSuccess$y(luvio, resourceParams, response, snapshotRefresh) {
@@ -22498,7 +22498,7 @@ function ingestSuccess$x(luvio, resourceParams, response, snapshotRefresh) {
22498
22498
  node: select$15$2(luvio, resourceParams),
22499
22499
  variables: {},
22500
22500
  }, snapshotRefresh);
22501
- deepFreeze$2(snapshot.data);
22501
+ deepFreeze$1(snapshot.data);
22502
22502
  return snapshot;
22503
22503
  }
22504
22504
  function ingestError$o(luvio, params, error, snapshotRefresh) {
@@ -22802,7 +22802,7 @@ function ingestSuccess$w(luvio, resourceParams, response) {
22802
22802
  node: select$14$2(),
22803
22803
  variables: {},
22804
22804
  });
22805
- deepFreeze$2(snapshot.data);
22805
+ deepFreeze$1(snapshot.data);
22806
22806
  return snapshot;
22807
22807
  }
22808
22808
  function createResourceRequest$I(config) {
@@ -22881,7 +22881,7 @@ function buildNetworkSnapshot$I(luvio, config, options) {
22881
22881
  return cache;
22882
22882
  });
22883
22883
  }, (response) => {
22884
- deepFreeze$2(response);
22884
+ deepFreeze$1(response);
22885
22885
  throw response;
22886
22886
  });
22887
22887
  }
@@ -22965,7 +22965,7 @@ function buildNetworkSnapshot$H(luvio, config, options) {
22965
22965
  return cache;
22966
22966
  });
22967
22967
  }, (response) => {
22968
- deepFreeze$2(response);
22968
+ deepFreeze$1(response);
22969
22969
  throw response;
22970
22970
  });
22971
22971
  }
@@ -23079,7 +23079,7 @@ function ingestSuccess$v(luvio, resourceParams, response) {
23079
23079
  node: select$13$2(),
23080
23080
  variables: {},
23081
23081
  });
23082
- deepFreeze$2(snapshot.data);
23082
+ deepFreeze$1(snapshot.data);
23083
23083
  return snapshot;
23084
23084
  }
23085
23085
  function createResourceRequest$G(config) {
@@ -23157,7 +23157,7 @@ function buildNetworkSnapshot$F(luvio, config, options) {
23157
23157
  return cache;
23158
23158
  });
23159
23159
  }, (response) => {
23160
- deepFreeze$2(response);
23160
+ deepFreeze$1(response);
23161
23161
  throw response;
23162
23162
  });
23163
23163
  }
@@ -23612,7 +23612,7 @@ function ingestSuccess$u(luvio, resourceParams, response, snapshotRefresh) {
23612
23612
  node: select$Y$2(),
23613
23613
  variables: {},
23614
23614
  }, snapshotRefresh);
23615
- deepFreeze$2(snapshot.data);
23615
+ deepFreeze$1(snapshot.data);
23616
23616
  return snapshot;
23617
23617
  }
23618
23618
  function ingestError$n(luvio, params, error, snapshotRefresh) {
@@ -23848,7 +23848,7 @@ function ingestSuccess$t(luvio, resourceParams, response, snapshotRefresh) {
23848
23848
  node: select$W$2(),
23849
23849
  variables: {},
23850
23850
  }, snapshotRefresh);
23851
- deepFreeze$2(snapshot.data);
23851
+ deepFreeze$1(snapshot.data);
23852
23852
  return snapshot;
23853
23853
  }
23854
23854
  function ingestError$m(luvio, params, error, snapshotRefresh) {
@@ -23996,7 +23996,7 @@ function ingestSuccess$s(luvio, resourceParams, response) {
23996
23996
  node: select$V$2(),
23997
23997
  variables: {},
23998
23998
  });
23999
- deepFreeze$2(snapshot.data);
23999
+ deepFreeze$1(snapshot.data);
24000
24000
  return snapshot;
24001
24001
  }
24002
24002
  function createResourceRequest$D(config) {
@@ -24099,7 +24099,7 @@ function buildNetworkSnapshot$C(luvio, config, options) {
24099
24099
  return cache;
24100
24100
  });
24101
24101
  }, (response) => {
24102
- deepFreeze$2(response);
24102
+ deepFreeze$1(response);
24103
24103
  throw response;
24104
24104
  });
24105
24105
  }
@@ -24224,7 +24224,7 @@ function ingestSuccess$r(luvio, resourceParams, response, snapshotRefresh) {
24224
24224
  node: select$T$2(),
24225
24225
  variables: {},
24226
24226
  }, snapshotRefresh);
24227
- deepFreeze$2(snapshot.data);
24227
+ deepFreeze$1(snapshot.data);
24228
24228
  return snapshot;
24229
24229
  }
24230
24230
  function ingestError$l(luvio, params, error, snapshotRefresh) {
@@ -24358,7 +24358,7 @@ function ingestSuccess$q(luvio, resourceParams, response, snapshotRefresh) {
24358
24358
  node: select$S$2(),
24359
24359
  variables: {},
24360
24360
  }, snapshotRefresh);
24361
- deepFreeze$2(snapshot.data);
24361
+ deepFreeze$1(snapshot.data);
24362
24362
  return snapshot;
24363
24363
  }
24364
24364
  function ingestError$k(luvio, params, error, snapshotRefresh) {
@@ -24635,7 +24635,7 @@ function ingestSuccessChildResourceParams$5(luvio, childResourceParamsArray, chi
24635
24635
  statusCode: 200,
24636
24636
  result: childSnapshot.data,
24637
24637
  };
24638
- deepFreeze$2(childValue);
24638
+ deepFreeze$1(childValue);
24639
24639
  ArrayPrototypePush$2.call(childSnapshotDataResponses, childValue);
24640
24640
  }
24641
24641
  else {
@@ -24654,7 +24654,7 @@ function ingestSuccessChildResourceParams$5(luvio, childResourceParamsArray, chi
24654
24654
  statusCode: childStatusCode,
24655
24655
  result: childBody,
24656
24656
  };
24657
- deepFreeze$2(childValue);
24657
+ deepFreeze$1(childValue);
24658
24658
  ArrayPrototypePush$2.call(childSnapshotDataResponses, childValue);
24659
24659
  }
24660
24660
  // track non-cached responses so rebuilds work properly
@@ -24668,7 +24668,7 @@ function ingestSuccessChildResourceParams$5(luvio, childResourceParamsArray, chi
24668
24668
  const childSnapshotData = {
24669
24669
  results: childSnapshotDataResponses
24670
24670
  };
24671
- deepFreeze$2(childSnapshotData);
24671
+ deepFreeze$1(childSnapshotData);
24672
24672
  return { childSnapshotData: childSnapshotData, seenRecords, snapshotState };
24673
24673
  }
24674
24674
  function ingestSuccess$p(luvio, resourceParams, response, snapshotRefresh) {
@@ -25129,7 +25129,7 @@ function ingestSuccess$o(luvio, resourceParams, response, snapshotRefresh) {
25129
25129
  node: select$I$2(),
25130
25130
  variables: {},
25131
25131
  }, snapshotRefresh);
25132
- deepFreeze$2(snapshot.data);
25132
+ deepFreeze$1(snapshot.data);
25133
25133
  return snapshot;
25134
25134
  }
25135
25135
  function ingestError$i(luvio, params, error, snapshotRefresh) {
@@ -25436,7 +25436,7 @@ function ingestSuccess$n(luvio, resourceParams, response, snapshotRefresh) {
25436
25436
  node: select$H$2(),
25437
25437
  variables: {},
25438
25438
  }, snapshotRefresh);
25439
- deepFreeze$2(snapshot.data);
25439
+ deepFreeze$1(snapshot.data);
25440
25440
  return snapshot;
25441
25441
  }
25442
25442
  function ingestError$h(luvio, params, error, snapshotRefresh) {
@@ -25607,7 +25607,7 @@ function ingestSuccess$m(luvio, resourceParams, response, snapshotRefresh) {
25607
25607
  node: select$F$2(),
25608
25608
  variables: {},
25609
25609
  }, snapshotRefresh);
25610
- deepFreeze$2(snapshot.data);
25610
+ deepFreeze$1(snapshot.data);
25611
25611
  return snapshot;
25612
25612
  }
25613
25613
  function ingestError$g(luvio, params, error, snapshotRefresh) {
@@ -27003,7 +27003,7 @@ function ingestSuccess$k(luvio, resourceParams, response, snapshotRefresh) {
27003
27003
  node: select$t$2(),
27004
27004
  variables: {},
27005
27005
  }, snapshotRefresh);
27006
- deepFreeze$2(snapshot.data);
27006
+ deepFreeze$1(snapshot.data);
27007
27007
  return snapshot;
27008
27008
  }
27009
27009
  function ingestError$e(luvio, params, error, snapshotRefresh) {
@@ -27203,7 +27203,7 @@ function ingestSuccessChildResourceParams$4(luvio, childResourceParamsArray, chi
27203
27203
  statusCode: 200,
27204
27204
  result: childSnapshot.data,
27205
27205
  };
27206
- deepFreeze$2(childValue);
27206
+ deepFreeze$1(childValue);
27207
27207
  ArrayPrototypePush$2.call(childSnapshotDataResponses, childValue);
27208
27208
  }
27209
27209
  else {
@@ -27222,7 +27222,7 @@ function ingestSuccessChildResourceParams$4(luvio, childResourceParamsArray, chi
27222
27222
  statusCode: childStatusCode,
27223
27223
  result: childBody,
27224
27224
  };
27225
- deepFreeze$2(childValue);
27225
+ deepFreeze$1(childValue);
27226
27226
  ArrayPrototypePush$2.call(childSnapshotDataResponses, childValue);
27227
27227
  }
27228
27228
  // track non-cached responses so rebuilds work properly
@@ -27236,7 +27236,7 @@ function ingestSuccessChildResourceParams$4(luvio, childResourceParamsArray, chi
27236
27236
  const childSnapshotData = {
27237
27237
  results: childSnapshotDataResponses
27238
27238
  };
27239
- deepFreeze$2(childSnapshotData);
27239
+ deepFreeze$1(childSnapshotData);
27240
27240
  return { childSnapshotData: childSnapshotData, seenRecords, snapshotState };
27241
27241
  }
27242
27242
  function ingestSuccess$j(luvio, resourceParams, response, snapshotRefresh) {
@@ -27615,7 +27615,7 @@ function ingestSuccess$i(luvio, resourceParams, response, snapshotRefresh) {
27615
27615
  node: select$q$2(),
27616
27616
  variables: {},
27617
27617
  }, snapshotRefresh);
27618
- deepFreeze$2(snapshot.data);
27618
+ deepFreeze$1(snapshot.data);
27619
27619
  return snapshot;
27620
27620
  }
27621
27621
  function ingestError$c$1(luvio, params, error, snapshotRefresh) {
@@ -27826,7 +27826,7 @@ function ingestSuccessChildResourceParams$3$1(luvio, childResourceParamsArray, c
27826
27826
  statusCode: 200,
27827
27827
  result: childSnapshot.data,
27828
27828
  };
27829
- deepFreeze$2(childValue);
27829
+ deepFreeze$1(childValue);
27830
27830
  ArrayPrototypePush$2.call(childSnapshotDataResponses, childValue);
27831
27831
  }
27832
27832
  else {
@@ -27845,7 +27845,7 @@ function ingestSuccessChildResourceParams$3$1(luvio, childResourceParamsArray, c
27845
27845
  statusCode: childStatusCode,
27846
27846
  result: childBody,
27847
27847
  };
27848
- deepFreeze$2(childValue);
27848
+ deepFreeze$1(childValue);
27849
27849
  ArrayPrototypePush$2.call(childSnapshotDataResponses, childValue);
27850
27850
  }
27851
27851
  // track non-cached responses so rebuilds work properly
@@ -27859,7 +27859,7 @@ function ingestSuccessChildResourceParams$3$1(luvio, childResourceParamsArray, c
27859
27859
  const childSnapshotData = {
27860
27860
  results: childSnapshotDataResponses
27861
27861
  };
27862
- deepFreeze$2(childSnapshotData);
27862
+ deepFreeze$1(childSnapshotData);
27863
27863
  return { childSnapshotData: childSnapshotData, seenRecords, snapshotState };
27864
27864
  }
27865
27865
  function ingestSuccess$h(luvio, resourceParams, response, snapshotRefresh) {
@@ -28072,7 +28072,7 @@ function ingestSuccess$g(luvio, resourceParams, response, snapshotRefresh) {
28072
28072
  node: select$n$2(),
28073
28073
  variables: {},
28074
28074
  }, snapshotRefresh);
28075
- deepFreeze$2(snapshot.data);
28075
+ deepFreeze$1(snapshot.data);
28076
28076
  return snapshot;
28077
28077
  }
28078
28078
  function ingestError$a$1(luvio, params, error, snapshotRefresh) {
@@ -28321,7 +28321,7 @@ function ingestSuccess$f(luvio, resourceParams, response) {
28321
28321
  node: select$m$2(),
28322
28322
  variables: {},
28323
28323
  });
28324
- deepFreeze$2(snapshot.data);
28324
+ deepFreeze$1(snapshot.data);
28325
28325
  return snapshot;
28326
28326
  }
28327
28327
  function createResourceRequest$p(config) {
@@ -28399,7 +28399,7 @@ function buildNetworkSnapshot$n(luvio, config, options) {
28399
28399
  return cache;
28400
28400
  });
28401
28401
  }, (response) => {
28402
- deepFreeze$2(response);
28402
+ deepFreeze$1(response);
28403
28403
  throw response;
28404
28404
  });
28405
28405
  }
@@ -28479,7 +28479,7 @@ function ingestSuccess$e(luvio, resourceParams, response, snapshotRefresh) {
28479
28479
  node: select$k$2(),
28480
28480
  variables: {},
28481
28481
  }, snapshotRefresh);
28482
- deepFreeze$2(snapshot.data);
28482
+ deepFreeze$1(snapshot.data);
28483
28483
  return snapshot;
28484
28484
  }
28485
28485
  function ingestError$9$1(luvio, params, error, snapshotRefresh) {
@@ -28682,7 +28682,7 @@ function ingestSuccessChildResourceParams$2$1(luvio, childResourceParamsArray, c
28682
28682
  statusCode: 200,
28683
28683
  result: childSnapshot.data,
28684
28684
  };
28685
- deepFreeze$2(childValue);
28685
+ deepFreeze$1(childValue);
28686
28686
  ArrayPrototypePush$2.call(childSnapshotDataResponses, childValue);
28687
28687
  }
28688
28688
  else {
@@ -28701,7 +28701,7 @@ function ingestSuccessChildResourceParams$2$1(luvio, childResourceParamsArray, c
28701
28701
  statusCode: childStatusCode,
28702
28702
  result: childBody,
28703
28703
  };
28704
- deepFreeze$2(childValue);
28704
+ deepFreeze$1(childValue);
28705
28705
  ArrayPrototypePush$2.call(childSnapshotDataResponses, childValue);
28706
28706
  }
28707
28707
  // track non-cached responses so rebuilds work properly
@@ -28715,7 +28715,7 @@ function ingestSuccessChildResourceParams$2$1(luvio, childResourceParamsArray, c
28715
28715
  const childSnapshotData = {
28716
28716
  results: childSnapshotDataResponses
28717
28717
  };
28718
- deepFreeze$2(childSnapshotData);
28718
+ deepFreeze$1(childSnapshotData);
28719
28719
  return { childSnapshotData: childSnapshotData, seenRecords, snapshotState };
28720
28720
  }
28721
28721
  function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
@@ -28941,7 +28941,7 @@ function ingestSuccess$c(luvio, resourceParams, response) {
28941
28941
  node: select$i$2(),
28942
28942
  variables: {},
28943
28943
  });
28944
- deepFreeze$2(snapshot.data);
28944
+ deepFreeze$1(snapshot.data);
28945
28945
  return snapshot;
28946
28946
  }
28947
28947
  function createResourceRequest$m$1(config) {
@@ -29042,7 +29042,7 @@ function buildNetworkSnapshot$k(luvio, config, options) {
29042
29042
  return cache;
29043
29043
  });
29044
29044
  }, (response) => {
29045
- deepFreeze$2(response);
29045
+ deepFreeze$1(response);
29046
29046
  throw response;
29047
29047
  });
29048
29048
  }
@@ -29936,7 +29936,7 @@ function ingestSuccessChildResourceParams$1$1(luvio, childResourceParamsArray, c
29936
29936
  statusCode: 200,
29937
29937
  result: childSnapshot.data,
29938
29938
  };
29939
- deepFreeze$2(childValue);
29939
+ deepFreeze$1(childValue);
29940
29940
  ArrayPrototypePush$2.call(childSnapshotDataResponses, childValue);
29941
29941
  }
29942
29942
  else {
@@ -29955,7 +29955,7 @@ function ingestSuccessChildResourceParams$1$1(luvio, childResourceParamsArray, c
29955
29955
  statusCode: childStatusCode,
29956
29956
  result: childBody,
29957
29957
  };
29958
- deepFreeze$2(childValue);
29958
+ deepFreeze$1(childValue);
29959
29959
  ArrayPrototypePush$2.call(childSnapshotDataResponses, childValue);
29960
29960
  }
29961
29961
  // track non-cached responses so rebuilds work properly
@@ -29969,7 +29969,7 @@ function ingestSuccessChildResourceParams$1$1(luvio, childResourceParamsArray, c
29969
29969
  const childSnapshotData = {
29970
29970
  results: childSnapshotDataResponses
29971
29971
  };
29972
- deepFreeze$2(childSnapshotData);
29972
+ deepFreeze$1(childSnapshotData);
29973
29973
  return { childSnapshotData: childSnapshotData, seenRecords, snapshotState };
29974
29974
  }
29975
29975
  function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
@@ -30354,7 +30354,7 @@ function ingestSuccess$9$1(luvio, resourceParams, response, snapshotRefresh) {
30354
30354
  node: select$e$2(),
30355
30355
  variables: {},
30356
30356
  }, snapshotRefresh);
30357
- deepFreeze$2(snapshot.data);
30357
+ deepFreeze$1(snapshot.data);
30358
30358
  return snapshot;
30359
30359
  }
30360
30360
  function ingestError$5$1(luvio, params, error, snapshotRefresh) {
@@ -30537,7 +30537,7 @@ function ingestSuccess$8$1(luvio, resourceParams, response, snapshotRefresh) {
30537
30537
  node: select$c$2(),
30538
30538
  variables: {},
30539
30539
  }, snapshotRefresh);
30540
- deepFreeze$2(snapshot.data);
30540
+ deepFreeze$1(snapshot.data);
30541
30541
  return snapshot;
30542
30542
  }
30543
30543
  function ingestError$4$1(luvio, params, error, snapshotRefresh) {
@@ -30718,7 +30718,7 @@ function ingestSuccess$7$1(luvio, resourceParams, response, snapshotRefresh) {
30718
30718
  node: select$a$2(),
30719
30719
  variables: {},
30720
30720
  }, snapshotRefresh);
30721
- deepFreeze$2(snapshot.data);
30721
+ deepFreeze$1(snapshot.data);
30722
30722
  return snapshot;
30723
30723
  }
30724
30724
  function ingestError$3$1(luvio, params, error, snapshotRefresh) {
@@ -31037,7 +31037,7 @@ function ingestSuccess$6$1(luvio, resourceParams, response, snapshotRefresh) {
31037
31037
  node: select$8$2(),
31038
31038
  variables: {},
31039
31039
  }, snapshotRefresh);
31040
- deepFreeze$2(snapshot.data);
31040
+ deepFreeze$1(snapshot.data);
31041
31041
  return snapshot;
31042
31042
  }
31043
31043
  function ingestError$2$1(luvio, params, error, snapshotRefresh) {
@@ -31240,7 +31240,7 @@ function ingestSuccess$5$1(luvio, resourceParams, response, snapshotRefresh) {
31240
31240
  node: select$6$2(),
31241
31241
  variables: {},
31242
31242
  }, snapshotRefresh);
31243
- deepFreeze$2(snapshot.data);
31243
+ deepFreeze$1(snapshot.data);
31244
31244
  return snapshot;
31245
31245
  }
31246
31246
  function ingestError$1$2(luvio, params, error, snapshotRefresh) {
@@ -31474,7 +31474,7 @@ function ingestSuccessChildResourceParams$9(luvio, response) {
31474
31474
  hasErrors: response.hasErrors,
31475
31475
  results: childSnapshotDataResponses,
31476
31476
  };
31477
- deepFreeze$2(childSnapshotData);
31477
+ deepFreeze$1(childSnapshotData);
31478
31478
  return {
31479
31479
  result: childSnapshotData,
31480
31480
  seenRecords,
@@ -31597,7 +31597,7 @@ function buildNetworkSnapshot$c$1(luvio, config, options) {
31597
31597
  return cache;
31598
31598
  });
31599
31599
  }, (response) => {
31600
- deepFreeze$2(response);
31600
+ deepFreeze$1(response);
31601
31601
  throw response;
31602
31602
  });
31603
31603
  }
@@ -31628,7 +31628,7 @@ function ingestSuccess$3$1(luvio, resourceParams, response) {
31628
31628
  node: select$5$2(),
31629
31629
  variables: {},
31630
31630
  });
31631
- deepFreeze$2(snapshot.data);
31631
+ deepFreeze$1(snapshot.data);
31632
31632
  return snapshot;
31633
31633
  }
31634
31634
  function createResourceRequest$d$1(config) {
@@ -31667,7 +31667,7 @@ function buildNetworkSnapshot$b$1(luvio, config, options) {
31667
31667
  return cache;
31668
31668
  });
31669
31669
  }, (response) => {
31670
- deepFreeze$2(response);
31670
+ deepFreeze$1(response);
31671
31671
  throw response;
31672
31672
  });
31673
31673
  }
@@ -31687,7 +31687,7 @@ function ingestSuccess$2$1(luvio, resourceParams, response) {
31687
31687
  node: select$4$2(),
31688
31688
  variables: {},
31689
31689
  });
31690
- deepFreeze$2(snapshot.data);
31690
+ deepFreeze$1(snapshot.data);
31691
31691
  return snapshot;
31692
31692
  }
31693
31693
  function createResourceRequest$c$1(config) {
@@ -31726,7 +31726,7 @@ function buildNetworkSnapshot$a$1(luvio, config, options) {
31726
31726
  return cache;
31727
31727
  });
31728
31728
  }, (response) => {
31729
- deepFreeze$2(response);
31729
+ deepFreeze$1(response);
31730
31730
  throw response;
31731
31731
  });
31732
31732
  }
@@ -31813,7 +31813,7 @@ function updateLayoutUserState$1(luvio, config, key, updateRequest) {
31813
31813
  return cache;
31814
31814
  });
31815
31815
  }, (err) => {
31816
- deepFreeze$2(err);
31816
+ deepFreeze$1(err);
31817
31817
  throw err;
31818
31818
  });
31819
31819
  }
@@ -32393,7 +32393,7 @@ function buildNetworkSnapshot$8$1(luvio, config, options) {
32393
32393
  .map((targetApiName) => body.lookupResults[targetApiName].records)
32394
32394
  .reduce((allRecords, records) => allRecords.concat(records), [])
32395
32395
  .forEach((record) => removeEtags$1(record));
32396
- deepFreeze$2(body);
32396
+ deepFreeze$1(body);
32397
32397
  return Promise.resolve({
32398
32398
  state: 'Fulfilled',
32399
32399
  recordId: key,
@@ -32549,7 +32549,7 @@ const factory$8$1 = (luvio) => {
32549
32549
  return cache;
32550
32550
  });
32551
32551
  }, (err) => {
32552
- deepFreeze$2(err);
32552
+ deepFreeze$1(err);
32553
32553
  throw err;
32554
32554
  });
32555
32555
  };
@@ -34159,7 +34159,7 @@ function buildNetworkSnapshot$4$1(luvio, config) {
34159
34159
  return cache;
34160
34160
  });
34161
34161
  }, (err) => {
34162
- deepFreeze$2(err);
34162
+ deepFreeze$1(err);
34163
34163
  throw err;
34164
34164
  });
34165
34165
  }
@@ -34245,7 +34245,7 @@ function buildNetworkSnapshot$3$1(luvio, config, options) {
34245
34245
  return cache;
34246
34246
  });
34247
34247
  }, (response) => {
34248
- deepFreeze$2(response);
34248
+ deepFreeze$1(response);
34249
34249
  throw response;
34250
34250
  });
34251
34251
  }
@@ -34410,7 +34410,7 @@ function buildNetworkSnapshot$2$1(luvio, config, clientOptions) {
34410
34410
  return cache;
34411
34411
  });
34412
34412
  }, (err) => {
34413
- deepFreeze$2(err);
34413
+ deepFreeze$1(err);
34414
34414
  throw err;
34415
34415
  });
34416
34416
  }
@@ -34652,7 +34652,7 @@ function buildNetworkSnapshot$1$2(luvio, config, options) {
34652
34652
  return cache;
34653
34653
  });
34654
34654
  }, (response) => {
34655
- deepFreeze$2(response);
34655
+ deepFreeze$1(response);
34656
34656
  throw response;
34657
34657
  });
34658
34658
  }
@@ -34723,7 +34723,7 @@ function buildNetworkSnapshot$17(luvio, config, options) {
34723
34723
  return cache;
34724
34724
  });
34725
34725
  }, (response) => {
34726
- deepFreeze$2(response);
34726
+ deepFreeze$1(response);
34727
34727
  throw response;
34728
34728
  });
34729
34729
  }
@@ -35432,7 +35432,16 @@ withDefaultLuvio((luvio) => {
35432
35432
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
35433
35433
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
35434
35434
  });
35435
- // version: 1.402.0-566b6c5389
35435
+ // version: 1.403.0-5476a05446
35436
+
35437
+ var allowUpdatesForNonCachedRecords = {
35438
+ isOpen: function (e) {
35439
+ return e.fallback;
35440
+ },
35441
+ hasError: function () {
35442
+ return !0;
35443
+ },
35444
+ };
35436
35445
 
35437
35446
  function requestIdleDetectedCallback(_callback) { }
35438
35447
  function declareNotifierTaskSingle(_name) {
@@ -35477,6 +35486,8 @@ const getInstrumentation = () => {
35477
35486
  return mockInstrumentation;
35478
35487
  };
35479
35488
 
35489
+ var caseSensitiveUserId = '005B0000000GR4OIAW';
35490
+
35480
35491
  /**
35481
35492
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
35482
35493
  * otherwise returns false.
@@ -46946,8 +46957,6 @@ var graphqlPartialEmitParity = {
46946
46957
  },
46947
46958
  };
46948
46959
 
46949
- var caseSensitiveUserId = '005B0000000GR4OIAW';
46950
-
46951
46960
  var ldsAdapterO11yLoggingGate = {
46952
46961
  isOpen: function (e) {
46953
46962
  return e.fallback;
@@ -47961,7 +47970,7 @@ function publishDurableStoreEntries(durableRecords, put, publishMetadata) {
47961
47970
  }
47962
47971
  if (isStoreEntryError(data)) {
47963
47972
  // freeze errors on way into L1
47964
- deepFreeze$2(data.error);
47973
+ deepFreeze$1(data.error);
47965
47974
  }
47966
47975
  put(key, data);
47967
47976
  revivedKeys.add(key);
@@ -50565,7 +50574,7 @@ function buildAdapterValidationConfig$2(displayName, paramsMeta) {
50565
50574
  }
50566
50575
  const keyPrefix$2 = 'UiApi';
50567
50576
 
50568
- const { assign: assign$2$1, create: create$3$1, entries: entries$3, freeze: freeze$1$2, isFrozen: isFrozen$3, keys: keys$3$1, values: values$1 } = Object;
50577
+ const { assign: assign$2$1, create: create$3$1, entries: entries$3, freeze: freeze$1$1, isFrozen: isFrozen$3, keys: keys$3$1, values: values$1 } = Object;
50569
50578
  const { hasOwnProperty: hasOwnProperty$4 } = Object.prototype;
50570
50579
  const { split, endsWith } = String.prototype;
50571
50580
  const { from: from$1, isArray: isArray$3$1 } = Array;
@@ -52432,7 +52441,7 @@ function convertTrieToFieldsRecursively(root) {
52432
52441
  }
52433
52442
  return reduce$2.call(childKeys, (acc, cur) => concat$2.call(acc, convertTrieToFieldsRecursively(root.children[cur]).map((i) => `${root.name}.${i}`)), []);
52434
52443
  }
52435
- const BLANK_RECORD_FIELDS_TRIE = freeze$1$2({
52444
+ const BLANK_RECORD_FIELDS_TRIE = freeze$1$1({
52436
52445
  name: '',
52437
52446
  children: {},
52438
52447
  });
@@ -52987,7 +52996,7 @@ function ingestSuccessChildResourceParams$2(luvio, childResourceParamsArray, chi
52987
52996
  const childSnapshotData = {
52988
52997
  results: childSnapshotDataResponses,
52989
52998
  };
52990
- deepFreeze$2(childSnapshotData);
52999
+ deepFreeze$1(childSnapshotData);
52991
53000
  return {
52992
53001
  childSnapshotData,
52993
53002
  seenRecords,
@@ -53106,7 +53115,7 @@ function selectChildResourceParams$2(luvio, childResources, resourceParams) {
53106
53115
  reader.exitPath();
53107
53116
  }
53108
53117
  reader.assignNonScalar(sink, envelopePath, results);
53109
- deepFreeze$2(sink);
53118
+ deepFreeze$1(sink);
53110
53119
  reader.exitPath();
53111
53120
  return sink;
53112
53121
  },
@@ -55059,7 +55068,7 @@ function ingestSuccess$6(luvio, resourceParams, response, snapshotRefresh) {
55059
55068
  node: select$1p$1(luvio, resourceParams),
55060
55069
  variables: {},
55061
55070
  }, snapshotRefresh);
55062
- deepFreeze$2(snapshot.data);
55071
+ deepFreeze$1(snapshot.data);
55063
55072
  return snapshot;
55064
55073
  }
55065
55074
  function ingestError$8(luvio, params, error, snapshotRefresh) {
@@ -59215,7 +59224,7 @@ function ingestSuccessChildResourceParams$1(luvio, childResourceParamsArray, chi
59215
59224
  statusCode: 200,
59216
59225
  result: childSnapshot.data,
59217
59226
  };
59218
- deepFreeze$2(childValue);
59227
+ deepFreeze$1(childValue);
59219
59228
  ArrayPrototypePush$1.call(childSnapshotDataResponses, childValue);
59220
59229
  }
59221
59230
  else {
@@ -59234,7 +59243,7 @@ function ingestSuccessChildResourceParams$1(luvio, childResourceParamsArray, chi
59234
59243
  statusCode: childStatusCode,
59235
59244
  result: childBody,
59236
59245
  };
59237
- deepFreeze$2(childValue);
59246
+ deepFreeze$1(childValue);
59238
59247
  ArrayPrototypePush$1.call(childSnapshotDataResponses, childValue);
59239
59248
  }
59240
59249
  // track non-cached responses so rebuilds work properly
@@ -59252,7 +59261,7 @@ function ingestSuccessChildResourceParams$1(luvio, childResourceParamsArray, chi
59252
59261
  const childSnapshotData = {
59253
59262
  results: childSnapshotDataResponses,
59254
59263
  };
59255
- deepFreeze$2(childSnapshotData);
59264
+ deepFreeze$1(childSnapshotData);
59256
59265
  return { childSnapshotData: childSnapshotData, seenRecords, snapshotState };
59257
59266
  }
59258
59267
  function ingestSuccess$4(luvio, resourceParams, response, snapshotRefresh) {
@@ -59851,7 +59860,7 @@ function ingestSuccess$3(luvio, resourceParams, response, snapshotRefresh) {
59851
59860
  node: select$1h$1(),
59852
59861
  variables: {},
59853
59862
  }, snapshotRefresh);
59854
- deepFreeze$2(snapshot.data);
59863
+ deepFreeze$1(snapshot.data);
59855
59864
  return snapshot;
59856
59865
  }
59857
59866
  function ingestError$4(luvio, params, error, snapshotRefresh) {
@@ -60067,7 +60076,7 @@ function ingestSuccess$2(luvio, resourceParams, response, snapshotRefresh) {
60067
60076
  node: select$1f$1(),
60068
60077
  variables: {},
60069
60078
  }, snapshotRefresh);
60070
- deepFreeze$2(snapshot.data);
60079
+ deepFreeze$1(snapshot.data);
60071
60080
  return snapshot;
60072
60081
  }
60073
60082
  function ingestError$3(luvio, params, error, snapshotRefresh) {
@@ -60760,7 +60769,7 @@ function buildNetworkSnapshot$5(luvio, config, options) {
60760
60769
  .map((targetApiName) => body.lookupResults[targetApiName].records)
60761
60770
  .reduce((allRecords, records) => allRecords.concat(records), [])
60762
60771
  .forEach((record) => removeEtags(record));
60763
- deepFreeze$2(body);
60772
+ deepFreeze$1(body);
60764
60773
  return Promise.resolve({
60765
60774
  state: 'Fulfilled',
60766
60775
  recordId: key,
@@ -79754,7 +79763,7 @@ function ingestTypeWithStrategy$1(astNode, state, isCursorConnectionType, { key,
79754
79763
  const fieldKey = getSerializedKeyForField$1(requestedField, variables, fieldType);
79755
79764
  if (fieldType === undefined) {
79756
79765
  console.warn(`Unknown Field: ${requestedField}. This field or nested fields cannot participate in normalization`);
79757
- deepFreeze$2(fieldData);
79766
+ deepFreeze$1(fieldData);
79758
79767
  sink[fieldKey] = fieldData;
79759
79768
  continue;
79760
79769
  }
@@ -80611,7 +80620,7 @@ function selectTypeLinkWithPagination$1(resolvedLink, sel, fieldData, reader, ke
80611
80620
  }
80612
80621
  }
80613
80622
  }
80614
- deepFreeze$2(trimmedEdges);
80623
+ deepFreeze$1(trimmedEdges);
80615
80624
  const paginatedData = {
80616
80625
  data: {
80617
80626
  ...source,
@@ -81645,15 +81654,21 @@ class UiApiActionHandler extends AbstractResourceRequestActionHandler {
81645
81654
  // allowed us to get a record with the fields we have cached (i.e. would never go to the network)
81646
81655
  const doesRecordExist = await this.durableRecordStore.exists(tag);
81647
81656
  if (!doesRecordExist) {
81648
- // we are trying to patch or delete a record that we don't have cached. This is not supported.
81649
- // we'll do one last ditch effort to fetch the record with just the Id field in case we're online.
81650
- // Note this scenario is unlikely outside test and manual test environments
81651
- const record = await getAdapterData(this.getRecordAdapter, {
81652
- recordId: targetId,
81653
- optionalFields: [`${targetApiName}.Id`],
81654
- });
81655
- if (record === undefined) {
81656
- throw Error('Cannot apply a draft to a record that is not cached');
81657
+ if (!allowUpdatesForNonCachedRecords.isOpen({ fallback: false })) {
81658
+ // we are trying to patch or delete a record that we don't have cached. This is not supported.
81659
+ // we'll do one last ditch effort to fetch the record with just the Id field in case we're online.
81660
+ // Note this scenario is unlikely outside test and manual test environments
81661
+ const record = await getAdapterData(this.getRecordAdapter, {
81662
+ recordId: targetId,
81663
+ optionalFields: [`${targetApiName}.Id`],
81664
+ });
81665
+ if (record === undefined) {
81666
+ throw Error('Cannot apply a draft to a record that is not cached');
81667
+ }
81668
+ }
81669
+ else if (resolvedRequest.method !== 'patch') {
81670
+ // the allowUpdatesForNonCachedRecords gate is open but a patch is not being attempted. This is not supported.
81671
+ throw Error('Can only perform patch on a record that is not cached');
81657
81672
  }
81658
81673
  }
81659
81674
  }
@@ -82654,7 +82669,7 @@ function createContentDocumentAndVersionDraftAdapterFactory(luvio, binaryStore,
82654
82669
  ...trimmedDownData.contentVersion,
82655
82670
  fields: cvFields,
82656
82671
  };
82657
- freeze$1$2(trimmedDownData);
82672
+ freeze$1$1(trimmedDownData);
82658
82673
  eventEmitter({ type: 'create-content-document-and-version-draft-finished' });
82659
82674
  return {
82660
82675
  state: 'Fulfilled',
@@ -82986,8 +83001,8 @@ function createRecordDraftAdapterFactory(actionHandler, durableRecordStore) {
82986
83001
  * @param actionHandler The UIAPI Record action handler. NOTE: this adapter doesn't
82987
83002
  * register it with the DraftQueue, runtime should set that up
82988
83003
  */
82989
- function updateRecordDraftAdapterFactory(actionHandler, durableRecordStore) {
82990
- return async function createRecordDraftAdapter(config, createResourceRequest) {
83004
+ function updateRecordDraftAdapterFactory(actionHandler, durableRecordStore, objectInfoService) {
83005
+ return async function updateRecordDraftAdapter(config, createResourceRequest) {
82991
83006
  const request = createResourceRequest(config);
82992
83007
  if (actionHandler.hasIdempotencySupport()) {
82993
83008
  request.headers[HTTP_HEADER_IDEMPOTENCY_KEY] = uuidv4();
@@ -83001,6 +83016,38 @@ function updateRecordDraftAdapterFactory(actionHandler, durableRecordStore) {
83001
83016
  if (!record) {
83002
83017
  record = await durableRecordStore.getRedirectedRecord(action.tag);
83003
83018
  }
83019
+ if (record === undefined && allowUpdatesForNonCachedRecords.isOpen({ fallback: false })) {
83020
+ // Fabricate synthetic record for non-cached update.
83021
+ let apiName = config.apiName;
83022
+ if (!apiName) {
83023
+ // try to determine the apiName from the record id prefix
83024
+ try {
83025
+ apiName = await objectInfoService.apiNameForPrefix(config.recordId.substring(0, 3));
83026
+ }
83027
+ catch (error) {
83028
+ throw transformErrorToDraftSynthesisError(new Error(`Cannot determine apiName for record ${config.recordId}: ${error}`));
83029
+ }
83030
+ }
83031
+ const recordFields = Object.entries(config.fields || {}).reduce((acc, [key, value]) => {
83032
+ acc[key] = { value, displayValue: null };
83033
+ return acc;
83034
+ }, {});
83035
+ const currentTimestamp = new Date().toISOString();
83036
+ // fabricate the record
83037
+ record = {
83038
+ id: config.recordId,
83039
+ apiName: apiName,
83040
+ fields: recordFields,
83041
+ systemModstamp: currentTimestamp,
83042
+ lastModifiedDate: currentTimestamp,
83043
+ lastModifiedById: caseSensitiveUserId,
83044
+ recordTypeId: null,
83045
+ recordTypeInfo: null,
83046
+ weakEtag: 0,
83047
+ eTag: '',
83048
+ childRelationships: {},
83049
+ };
83050
+ }
83004
83051
  if (record) {
83005
83052
  return {
83006
83053
  state: 'Fulfilled',
@@ -83040,7 +83087,7 @@ function performQuickActionDraftAdapterFactory(actionHandler, userId) {
83040
83087
  const request = createResourceRequest(config);
83041
83088
  const action = await actionHandler.enqueue(request).catch((err) => {
83042
83089
  const error = transformErrorToDraftSynthesisError(err);
83043
- deepFreeze$2(error);
83090
+ deepFreeze$1(error);
83044
83091
  throw error;
83045
83092
  });
83046
83093
  let contextId = action.data.body.contextId;
@@ -83076,7 +83123,7 @@ function performUpdateRecordQuickActionDraftAdapterFactory(actionHandler, userId
83076
83123
  const request = createResourceRequest(config);
83077
83124
  const action = await actionHandler.enqueue(request).catch((err) => {
83078
83125
  const error = transformErrorToDraftSynthesisError(err);
83079
- deepFreeze$2(error);
83126
+ deepFreeze$1(error);
83080
83127
  throw error;
83081
83128
  });
83082
83129
  let contextId = action.data.body.contextId;
@@ -90094,7 +90141,7 @@ const recordIdGenerator = (id) => {
90094
90141
  const { keys: keys$2$1, create: create$2$1, assign: assign$1$1, entries: entries$2 } = Object;
90095
90142
  const { stringify: stringify$4, parse: parse$4 } = JSON;
90096
90143
  const { push: push$3, join: join$1, slice } = Array.prototype;
90097
- const { isArray: isArray$2$2, from } = Array;
90144
+ const { isArray: isArray$2$1, from } = Array;
90098
90145
 
90099
90146
  function ldsParamsToString(params) {
90100
90147
  const returnParams = create$2$1(null);
@@ -90106,7 +90153,7 @@ function ldsParamsToString(params) {
90106
90153
  // filter out params that have no value
90107
90154
  continue;
90108
90155
  }
90109
- if (isArray$2$2(value)) {
90156
+ if (isArray$2$1(value)) {
90110
90157
  // filter out empty arrays
90111
90158
  if (value.length > 0) {
90112
90159
  returnParams[key] = value.join(',');
@@ -90169,7 +90216,7 @@ function isStatusOk(status) {
90169
90216
  }
90170
90217
  // adapted from adapter-utils untrustedIsObject
90171
90218
  function isObject$2(value) {
90172
- return typeof value === 'object' && value !== null && isArray$2$2(value) === false;
90219
+ return typeof value === 'object' && value !== null && isArray$2$1(value) === false;
90173
90220
  }
90174
90221
  function stringifyIfPresent(value) {
90175
90222
  if (value === undefined || value === null) {
@@ -90519,7 +90566,7 @@ function buildAggregateUiUrl(params, resourceRequest) {
90519
90566
  const queryString = [];
90520
90567
  for (const [key, value] of entries$2(mergedParams)) {
90521
90568
  if (value !== undefined) {
90522
- queryString.push(`${key}=${isArray$2$2(value) ? value.join(',') : value}`);
90569
+ queryString.push(`${key}=${isArray$2$1(value) ? value.join(',') : value}`);
90523
90570
  }
90524
90571
  }
90525
90572
  return `${resourceRequest.baseUri}${resourceRequest.basePath}?${join$1.call(queryString, '&')}`;
@@ -90670,7 +90717,7 @@ function isGetRequestForEndpoint(endpoint, request) {
90670
90717
  * @returns the array or an empty array
90671
90718
  */
90672
90719
  function arrayOrEmpty(array) {
90673
- return array !== undefined && isArray$2$2(array) ? array : [];
90720
+ return array !== undefined && isArray$2$1(array) ? array : [];
90674
90721
  }
90675
90722
  /**
90676
90723
  * Calculate the max length per chunk.
@@ -90714,13 +90761,13 @@ const referenceId$1 = 'LDS_Records_AggregateUi';
90714
90761
  */
90715
90762
  function mergeGetRecordResult(first, second) {
90716
90763
  // return the error if first is error.
90717
- if (isArray$2$2(first) && !isArray$2$2(second))
90764
+ if (isArray$2$1(first) && !isArray$2$1(second))
90718
90765
  return first;
90719
90766
  // return the error if second is error.
90720
- if (!isArray$2$2(first) && isArray$2$2(second))
90767
+ if (!isArray$2$1(first) && isArray$2$1(second))
90721
90768
  return second;
90722
90769
  // concat the error array if both are error
90723
- if (isArray$2$2(first) && isArray$2$2(second)) {
90770
+ if (isArray$2$1(first) && isArray$2$1(second)) {
90724
90771
  return [...first, ...second];
90725
90772
  }
90726
90773
  mergeRecordFields(first, second);
@@ -91317,7 +91364,7 @@ function registerReportObserver(reportObserver) {
91317
91364
  };
91318
91365
  }
91319
91366
 
91320
- const { keys: keys$1$2, create: create$1$2, assign: assign$5, entries: entries$1$1, values } = Object;
91367
+ const { keys: keys$1$1, create: create$1$1, assign: assign$5, entries: entries$1, values } = Object;
91321
91368
  const { stringify: stringify$3, parse: parse$3 } = JSON;
91322
91369
 
91323
91370
  function selectColumnsFromTableWhereKeyIn(columnNames, table, keyColumnName, whereIn) {
@@ -91384,7 +91431,7 @@ class LdsDataTable {
91384
91431
  },
91385
91432
  conflictColumns: this.conflictColumnNames,
91386
91433
  columns: this.columnNames,
91387
- rows: keys$1$2(entries).reduce((rows, key) => {
91434
+ rows: keys$1$1(entries).reduce((rows, key) => {
91388
91435
  const entry = entries[key];
91389
91436
  const { data, metadata } = entry;
91390
91437
  const row = [key, stringify$3(data), metadata ? stringify$3(metadata) : null];
@@ -91403,7 +91450,7 @@ class LdsDataTable {
91403
91450
  type: 'setMetadata',
91404
91451
  },
91405
91452
  columns: [COLUMN_NAME_METADATA$1],
91406
- values: keys$1$2(entries).reduce((values, key) => {
91453
+ values: keys$1$1(entries).reduce((values, key) => {
91407
91454
  const { metadata } = entries[key];
91408
91455
  const row = [metadata ? stringify$3(metadata) : null];
91409
91456
  values[key] = row;
@@ -91493,7 +91540,7 @@ class LdsInternalDataTable {
91493
91540
  },
91494
91541
  conflictColumns: this.conflictColumnNames,
91495
91542
  columns: this.columnNames,
91496
- rows: keys$1$2(entries).reduce((rows, key) => {
91543
+ rows: keys$1$1(entries).reduce((rows, key) => {
91497
91544
  const entry = entries[key];
91498
91545
  const { data, metadata } = entry;
91499
91546
  const row = [key, stringify$3(data)];
@@ -91519,7 +91566,7 @@ class LdsInternalDataTable {
91519
91566
  type: 'setMetadata',
91520
91567
  },
91521
91568
  columns: [COLUMN_NAME_METADATA],
91522
- values: keys$1$2(entries).reduce((values, key) => {
91569
+ values: keys$1$1(entries).reduce((values, key) => {
91523
91570
  const { metadata } = entries[key];
91524
91571
  const row = [metadata ? stringify$3(metadata) : null];
91525
91572
  values[key] = row;
@@ -91528,7 +91575,7 @@ class LdsInternalDataTable {
91528
91575
  };
91529
91576
  }
91530
91577
  metadataToUpdateSQLQueries(entries, segment) {
91531
- return keys$1$2(entries).reduce((accu, key) => {
91578
+ return keys$1$1(entries).reduce((accu, key) => {
91532
91579
  const { metadata } = entries[key];
91533
91580
  if (metadata !== undefined) {
91534
91581
  accu.push({
@@ -91605,7 +91652,7 @@ class NimbusSqliteStore {
91605
91652
  .finally(() => tasker.done());
91606
91653
  }
91607
91654
  setEntries(entries, segment) {
91608
- if (keys$1$2(entries).length === 0) {
91655
+ if (keys$1$1(entries).length === 0) {
91609
91656
  return Promise.resolve();
91610
91657
  }
91611
91658
  const table = this.getTable(segment);
@@ -91616,7 +91663,7 @@ class NimbusSqliteStore {
91616
91663
  return this.batchOperationAsPromise([upsertOperation]);
91617
91664
  }
91618
91665
  setMetadata(entries, segment) {
91619
- if (keys$1$2(entries).length === 0) {
91666
+ if (keys$1$1(entries).length === 0) {
91620
91667
  return Promise.resolve();
91621
91668
  }
91622
91669
  const table = this.getTable(segment);
@@ -91626,7 +91673,7 @@ class NimbusSqliteStore {
91626
91673
  batchOperations(operations) {
91627
91674
  const sqliteOperations = operations.reduce((acc, cur) => {
91628
91675
  if (cur.type === 'setEntries') {
91629
- if (keys$1$2(cur.entries).length > 0) {
91676
+ if (keys$1$1(cur.entries).length > 0) {
91630
91677
  const table = this.getTable(cur.segment);
91631
91678
  const upsertOperation = table.entriesToUpsertOperations(cur.entries, cur.segment);
91632
91679
  if (cur.entries[GRAPHQL_QUERY_ROOT_KEY]) {
@@ -91636,7 +91683,7 @@ class NimbusSqliteStore {
91636
91683
  }
91637
91684
  }
91638
91685
  else if (cur.type === 'setMetadata') {
91639
- if (keys$1$2(cur.entries).length > 0) {
91686
+ if (keys$1$1(cur.entries).length > 0) {
91640
91687
  const table = this.getTable(cur.segment);
91641
91688
  acc.push(table.metadataToUpdateOperations(cur.entries, cur.segment));
91642
91689
  }
@@ -91772,7 +91819,7 @@ class AbstractKeyValueDataTable {
91772
91819
  },
91773
91820
  conflictColumns: this.conflictColumnNames,
91774
91821
  columns: this.columnNames,
91775
- rows: keys$1$2(entries).reduce((rows, key) => {
91822
+ rows: keys$1$1(entries).reduce((rows, key) => {
91776
91823
  const entry = entries[key];
91777
91824
  rows.push([key, stringify$3(entry.data)]);
91778
91825
  return rows;
@@ -93982,7 +94029,7 @@ function selectChildResourceParams$3(luvio, childResources, resourceParams) {
93982
94029
  reader.exitPath();
93983
94030
  }
93984
94031
  reader.assignNonScalar(sink, envelopePath, results);
93985
- deepFreeze$2(sink);
94032
+ deepFreeze$1(sink);
93986
94033
  reader.exitPath();
93987
94034
  return sink;
93988
94035
  },
@@ -94084,7 +94131,7 @@ function ingestSuccessChildResourceParams$3(luvio, childConfigs, childResourcePa
94084
94131
  const childSnapshotData = {
94085
94132
  results: childSnapshotDataResponses,
94086
94133
  };
94087
- deepFreeze$2(childSnapshotData);
94134
+ deepFreeze$1(childSnapshotData);
94088
94135
  return {
94089
94136
  childSnapshotData: childSnapshotData,
94090
94137
  seenRecords,
@@ -95099,7 +95146,7 @@ function createSfsSideEffectHooks(durableRecordStore) {
95099
95146
  const { create: create$6, freeze: freeze$3, keys: keys$7, entries: entries$5 } = Object;
95100
95147
  const { isArray: isArray$1$2 } = Array;
95101
95148
  const { stringify: stringify$2, parse: parse$2 } = JSON;
95102
- const WeakSetConstructor$1 = WeakSet;
95149
+ const WeakSetConstructor = WeakSet;
95103
95150
  const LogLevelMap = {
95104
95151
  TRACE: 4,
95105
95152
  DEBUG: 3,
@@ -95136,7 +95183,7 @@ class ConsoleLogger {
95136
95183
  this.printer(this.formatter(level, message));
95137
95184
  }
95138
95185
  }
95139
- let Ok$1$1 = class Ok {
95186
+ let Ok$1 = class Ok {
95140
95187
  constructor(value) {
95141
95188
  this.value = value;
95142
95189
  }
@@ -95158,23 +95205,23 @@ let Err$1 = class Err {
95158
95205
  return !this.isOk();
95159
95206
  }
95160
95207
  };
95161
- const ok$1$1 = (value) => new Ok$1$1(value);
95208
+ const ok$1 = (value) => new Ok$1(value);
95162
95209
  const err$1 = (err2) => new Err$1(err2);
95163
- function isResult$1(value) {
95210
+ function isResult(value) {
95164
95211
  return value != null && typeof value === "object" && "isOk" in value && "isErr" in value && typeof value.isOk === "function" && typeof value.isErr === "function" && (value.isOk() === true && value.isErr() === false && "value" in value || value.isOk() === false && value.isErr() === true && "error" in value);
95165
95212
  }
95166
- function isSubscribable$1(obj) {
95213
+ function isSubscribable(obj) {
95167
95214
  return typeof obj === "object" && obj !== null && "subscribe" in obj && typeof obj.subscribe === "function" && "refresh" in obj && typeof obj.refresh === "function";
95168
95215
  }
95169
- function isSubscribableResult$1(x) {
95170
- if (!isResult$1(x)) {
95216
+ function isSubscribableResult(x) {
95217
+ if (!isResult(x)) {
95171
95218
  return false;
95172
95219
  }
95173
- return isSubscribable$1(x.isOk() ? x.value : x.error);
95220
+ return isSubscribable(x.isOk() ? x.value : x.error);
95174
95221
  }
95175
95222
  function buildSubscribableResult$1(result, subscribe, refresh) {
95176
95223
  if (result.isOk()) {
95177
- return ok$1$1({ data: result.value, subscribe, refresh });
95224
+ return ok$1({ data: result.value, subscribe, refresh });
95178
95225
  } else {
95179
95226
  return err$1({ failure: result.error, subscribe, refresh });
95180
95227
  }
@@ -95342,20 +95389,20 @@ class FetchResponse extends Error {
95342
95389
  this.statusText = getStatusText(status);
95343
95390
  }
95344
95391
  }
95345
- const deeplyFrozen$1 = new WeakSetConstructor$1();
95346
- function deepFreeze$1(value) {
95347
- if (typeof value !== "object" || value === null || deeplyFrozen$1.has(value)) {
95392
+ const deeplyFrozen = new WeakSetConstructor();
95393
+ function deepFreeze(value) {
95394
+ if (typeof value !== "object" || value === null || deeplyFrozen.has(value)) {
95348
95395
  return;
95349
95396
  }
95350
- deeplyFrozen$1.add(value);
95397
+ deeplyFrozen.add(value);
95351
95398
  if (isArray$1$2(value)) {
95352
95399
  for (let i = 0, len = value.length; i < len; i += 1) {
95353
- deepFreeze$1(value[i]);
95400
+ deepFreeze(value[i]);
95354
95401
  }
95355
95402
  } else {
95356
95403
  const keys$1 = keys$7(value);
95357
95404
  for (let i = 0, len = keys$1.length; i < len; i += 1) {
95358
- deepFreeze$1(value[keys$1[i]]);
95405
+ deepFreeze(value[keys$1[i]]);
95359
95406
  }
95360
95407
  }
95361
95408
  freeze$3(value);
@@ -95374,11 +95421,11 @@ class UserVisibleError extends Error {
95374
95421
  this.type = "user-visible";
95375
95422
  }
95376
95423
  }
95377
- function isUserVisibleError$1$1(error) {
95424
+ function isUserVisibleError$1(error) {
95378
95425
  return error instanceof Error && "type" in error && error.type === "user-visible";
95379
95426
  }
95380
- function logError$1$1(error) {
95381
- if (isUserVisibleError$1$1(error)) {
95427
+ function logError$1(error) {
95428
+ if (isUserVisibleError$1(error)) {
95382
95429
  return;
95383
95430
  }
95384
95431
  console.error("OneStore Command threw an error that we did not expect", error);
@@ -95427,13 +95474,13 @@ let NetworkCommand$1 = class NetworkCommand extends BaseCommand {
95427
95474
  }
95428
95475
  refresh() {
95429
95476
  return this.execute().then((newResult) => {
95430
- if (isSubscribableResult$1(newResult)) {
95431
- const value = newResult.isOk() ? ok$1$1(newResult.value.data) : err$1(newResult.error.failure);
95477
+ if (isSubscribableResult(newResult)) {
95478
+ const value = newResult.isOk() ? ok$1(newResult.value.data) : err$1(newResult.error.failure);
95432
95479
  this.subscriptions.forEach((cb) => {
95433
95480
  cb(value);
95434
95481
  });
95435
95482
  }
95436
- return ok$1$1(void 0);
95483
+ return ok$1(void 0);
95437
95484
  });
95438
95485
  }
95439
95486
  async afterRequestHooks(_options) {
@@ -95482,7 +95529,7 @@ class AuraNetworkCommand extends NetworkCommand$1 {
95482
95529
  this.afterRequestHooks({ statusCode: 200 });
95483
95530
  } catch (e) {
95484
95531
  }
95485
- return ok$1$1(auraReturnValue);
95532
+ return ok$1(auraReturnValue);
95486
95533
  }).catch((error) => {
95487
95534
  if (!error || !error.getError) {
95488
95535
  return err$1(toError("Failed to get error from response"));
@@ -95501,7 +95548,7 @@ class AuraNetworkCommand extends NetworkCommand$1 {
95501
95548
  (response2) => {
95502
95549
  if (response2.ok) {
95503
95550
  return response2.json().then(
95504
- (json) => ok$1$1(json),
95551
+ (json) => ok$1(json),
95505
95552
  (reason) => err$1(toError(reason))
95506
95553
  ).finally(() => {
95507
95554
  try {
@@ -96145,10 +96192,10 @@ let AuraCacheControlCommand$1 = class AuraCacheControlCommand extends CacheContr
96145
96192
  return toError(errorResponse.statusText);
96146
96193
  }
96147
96194
  processAuraReturnValue(auraReturnValue) {
96148
- return ok$1$1(auraReturnValue);
96195
+ return ok$1(auraReturnValue);
96149
96196
  }
96150
96197
  processFetchReturnValue(json) {
96151
- return ok$1$1(json);
96198
+ return ok$1(json);
96152
96199
  }
96153
96200
  convertAuraResponseToData(responsePromise, coerceError) {
96154
96201
  return responsePromise.then((response) => {
@@ -96213,7 +96260,7 @@ class AuraNormalizedCacheControlCommand extends AuraCacheControlCommand$1 {
96213
96260
  err$1(new Error(`Failed to build data from type: ${stringify$2(data.error)}`))
96214
96261
  );
96215
96262
  }
96216
- return resolvedPromiseLike$2(ok$1$1(data.value));
96263
+ return resolvedPromiseLike$2(ok$1(data.value));
96217
96264
  }
96218
96265
  writeToCache(cache, networkResult) {
96219
96266
  if (networkResult.isOk()) {
@@ -96284,10 +96331,10 @@ class AuraCacheControlCommand extends CacheControlCommand {
96284
96331
  return toError(errorResponse.statusText);
96285
96332
  }
96286
96333
  processAuraReturnValue(auraReturnValue) {
96287
- return ok$1$1(auraReturnValue);
96334
+ return ok$1(auraReturnValue);
96288
96335
  }
96289
96336
  processFetchReturnValue(json) {
96290
- return ok$1$1(json);
96337
+ return ok$1(json);
96291
96338
  }
96292
96339
  convertAuraResponseToData(responsePromise, coerceError) {
96293
96340
  return responsePromise.then((response) => {
@@ -96351,7 +96398,7 @@ class AuraResourceCacheControlCommand extends AuraCacheControlCommand {
96351
96398
  if (data === void 0) {
96352
96399
  return resolvedPromiseLike$2(err$1(new Error("Failed to find data in cache")));
96353
96400
  }
96354
- return resolvedPromiseLike$2(ok$1$1(data));
96401
+ return resolvedPromiseLike$2(ok$1(data));
96355
96402
  }
96356
96403
  writeToCache(cache, networkResult) {
96357
96404
  if (networkResult.isOk()) {
@@ -96416,13 +96463,13 @@ class NetworkCommand extends BaseCommand {
96416
96463
  }
96417
96464
  refresh() {
96418
96465
  return this.execute().then((newResult) => {
96419
- if (isSubscribableResult$1(newResult)) {
96420
- const value = newResult.isOk() ? ok$1$1(newResult.value.data) : err$1(newResult.error.failure);
96466
+ if (isSubscribableResult(newResult)) {
96467
+ const value = newResult.isOk() ? ok$1(newResult.value.data) : err$1(newResult.error.failure);
96421
96468
  this.subscriptions.forEach((cb) => {
96422
96469
  cb(value);
96423
96470
  });
96424
96471
  }
96425
- return ok$1$1(void 0);
96472
+ return ok$1(void 0);
96426
96473
  });
96427
96474
  }
96428
96475
  async afterRequestHooks(_options) {
@@ -96503,7 +96550,7 @@ const _FetchNetworkCommand = class _FetchNetworkCommand extends NetworkCommand {
96503
96550
  (response2) => {
96504
96551
  if (response2.ok) {
96505
96552
  return response2.json().then(
96506
- (json) => ok$1$1(json),
96553
+ (json) => ok$1(json),
96507
96554
  (reason) => err$1(toError(reason))
96508
96555
  ).finally(() => {
96509
96556
  try {
@@ -96563,7 +96610,7 @@ class HttpCacheControlCommand extends CacheControlCommand {
96563
96610
  return toError(errorResponse.statusText);
96564
96611
  }
96565
96612
  processFetchReturnValue(json) {
96566
- return ok$1$1(json);
96613
+ return ok$1(json);
96567
96614
  }
96568
96615
  convertFetchResponseToData(response) {
96569
96616
  return response.then(
@@ -96607,7 +96654,7 @@ class HttpNormalizedCacheControlCommand extends HttpCacheControlCommand {
96607
96654
  err$1(new Error(`Failed to build data from type: ${stringify$2(data.error)}`))
96608
96655
  );
96609
96656
  }
96610
- return resolvedPromiseLike$2(ok$1$1(data.value));
96657
+ return resolvedPromiseLike$2(ok$1(data.value));
96611
96658
  }
96612
96659
  writeToCache(cache, networkResult) {
96613
96660
  if (networkResult.isOk()) {
@@ -96909,7 +96956,7 @@ class NoCacheCacheControlStrategy extends CacheControlStrategy {
96909
96956
  const tempCache = this.filteredCache;
96910
96957
  return new Promise(async (resolve, reject) => {
96911
96958
  try {
96912
- let readResult = ok$1$1(void 0);
96959
+ let readResult = ok$1(void 0);
96913
96960
  for await (const rfnResult of this.requestRunner.requestFromNetwork()) {
96914
96961
  if (rfnResult) {
96915
96962
  const result = await this.services.cacheInclusionPolicy.write({
@@ -96947,13 +96994,13 @@ class MaxAgeCacheControlStrategy extends CacheControlStrategy {
96947
96994
  startTime,
96948
96995
  options == null ? void 0 : options.instrumentationAttributes
96949
96996
  );
96950
- return ok$1$1(void 0);
96997
+ return ok$1(void 0);
96951
96998
  }
96952
96999
  this.collectCacheMissInstrumentation(startTime, options == null ? void 0 : options.instrumentationAttributes);
96953
97000
  const tempCache = this.filteredCache;
96954
97001
  return new Promise(async (resolve, reject) => {
96955
97002
  try {
96956
- let readResult = ok$1$1(void 0);
97003
+ let readResult = ok$1(void 0);
96957
97004
  for await (const rfnResult of this.requestRunner.requestFromNetwork()) {
96958
97005
  if (rfnResult) {
96959
97006
  const result = await this.services.cacheInclusionPolicy.write({
@@ -96969,7 +97016,7 @@ class MaxAgeCacheControlStrategy extends CacheControlStrategy {
96969
97016
  readFromL1: (l1) => this.requestRunner.readFromCache(l1)
96970
97017
  });
96971
97018
  if (readResult.isOk()) {
96972
- resolve(ok$1$1(void 0));
97019
+ resolve(ok$1(void 0));
96973
97020
  }
96974
97021
  }
96975
97022
  return resolve(readResult);
@@ -97021,7 +97068,7 @@ class OnlyIfCachedCacheControlStrategy extends CacheControlStrategy {
97021
97068
  startTime,
97022
97069
  options == null ? void 0 : options.instrumentationAttributes
97023
97070
  );
97024
- return ok$1$1(void 0);
97071
+ return ok$1(void 0);
97025
97072
  }
97026
97073
  this.collectCacheMissInstrumentation(startTime, options == null ? void 0 : options.instrumentationAttributes);
97027
97074
  const error = new UserVisibleError(
@@ -97558,7 +97605,7 @@ function buildServiceDescriptor$b(luvio) {
97558
97605
  },
97559
97606
  };
97560
97607
  }
97561
- // version: 1.402.0-566b6c5389
97608
+ // version: 1.403.0-5476a05446
97562
97609
 
97563
97610
  /**
97564
97611
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -97584,7 +97631,7 @@ function buildServiceDescriptor$a(notifyRecordUpdateAvailable, getNormalizedLuvi
97584
97631
  },
97585
97632
  };
97586
97633
  }
97587
- // version: 1.402.0-566b6c5389
97634
+ // version: 1.403.0-5476a05446
97588
97635
 
97589
97636
  /*!
97590
97637
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -98427,7 +98474,7 @@ const referenceMap$1 = /* @__PURE__ */ new WeakMap();
98427
98474
  const astResolver$1 = function(astReference) {
98428
98475
  return referenceMap$1.get(astReference);
98429
98476
  };
98430
- function findExecutableOperation$1$1(document, operationName) {
98477
+ function findExecutableOperation$1(document, operationName) {
98431
98478
  const operations = document.definitions.filter(
98432
98479
  (def) => def.kind === Kind$2.OPERATION_DEFINITION
98433
98480
  );
@@ -98445,8 +98492,8 @@ function findExecutableOperation$1$1(document, operationName) {
98445
98492
  }
98446
98493
  return void 0;
98447
98494
  }
98448
- function validateGraphQLOperations$1(config, options) {
98449
- const executableOperation = findExecutableOperation$1$1(config.query, config.operationName);
98495
+ function validateGraphQLOperations(config, options) {
98496
+ const executableOperation = findExecutableOperation$1(config.query, config.operationName);
98450
98497
  if (executableOperation) {
98451
98498
  const operationType = executableOperation.operation;
98452
98499
  if (!options.acceptedOperations.includes(operationType)) {
@@ -98467,13 +98514,13 @@ function resolveAst$1(ast) {
98467
98514
  }
98468
98515
  return result;
98469
98516
  }
98470
- function wrapConfigAndVerify$1(config, options) {
98517
+ function wrapConfigAndVerify(config, options) {
98471
98518
  if (config == null ? void 0 : config.query) {
98472
98519
  config = { ...config, query: resolveAst$1(config.query) };
98473
98520
  if (config.query === void 0) {
98474
98521
  throw new Error("Internal error in GraphQL adapter occurred: Unable to resolve query");
98475
98522
  }
98476
- validateGraphQLOperations$1(config, {
98523
+ validateGraphQLOperations(config, {
98477
98524
  acceptedOperations: (options == null ? void 0 : options.acceptedOperations) ?? ["query"]
98478
98525
  });
98479
98526
  }
@@ -98493,7 +98540,7 @@ function findExecutableOperation$2(input) {
98493
98540
  return err$1(new Error("No operations found in query"));
98494
98541
  }
98495
98542
  if (operations.length === 1 && !input.operationName) {
98496
- return ok$1$1(operations[0]);
98543
+ return ok$1(operations[0]);
98497
98544
  }
98498
98545
  if (input.operationName) {
98499
98546
  const specifiedOperation = operations.find((op) => {
@@ -98501,7 +98548,7 @@ function findExecutableOperation$2(input) {
98501
98548
  return ((_a = op.name) == null ? void 0 : _a.value) === input.operationName;
98502
98549
  });
98503
98550
  if (specifiedOperation) {
98504
- return ok$1$1(specifiedOperation);
98551
+ return ok$1(specifiedOperation);
98505
98552
  }
98506
98553
  return err$1(new Error(`Operation "${input.operationName}" not found in query`));
98507
98554
  }
@@ -98527,7 +98574,7 @@ function buildGraphQLInputExtension$1(input) {
98527
98574
  prev[fragment.name.value] = fragment;
98528
98575
  return prev;
98529
98576
  }, {});
98530
- return ok$1$1({
98577
+ return ok$1({
98531
98578
  selections,
98532
98579
  request: { definitions: { variables, fragments } },
98533
98580
  parentFieldSelection: void 0
@@ -98619,13 +98666,13 @@ class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheContro
98619
98666
  if (this.responseHasErrors(auraReturnValue)) {
98620
98667
  return err$1(new UserVisibleError(auraReturnValue));
98621
98668
  }
98622
- return ok$1$1(auraReturnValue);
98669
+ return ok$1(auraReturnValue);
98623
98670
  }
98624
98671
  processFetchReturnValue(json) {
98625
98672
  if (this.responseHasErrors(json)) {
98626
98673
  return err$1(new UserVisibleError(json));
98627
98674
  }
98628
- return ok$1$1(json);
98675
+ return ok$1(json);
98629
98676
  }
98630
98677
  /**
98631
98678
  * Optional body wrapper name for aura requests.
@@ -98829,7 +98876,7 @@ class HttpGraphQLNormalizedCacheControlCommand extends HttpNormalizedCacheContro
98829
98876
  if (json.hasOwnProperty("errors") && json.errors && json.errors.length > 0) {
98830
98877
  return err$1(new UserVisibleError(json));
98831
98878
  }
98832
- return ok$1$1(json);
98879
+ return ok$1(json);
98833
98880
  }
98834
98881
  runOriginalRequest() {
98835
98882
  return this.convertFetchResponseToData(
@@ -98906,7 +98953,7 @@ let JsonSchemaErrorCollector$1 = class JsonSchemaErrorCollector {
98906
98953
  this.errors.unshift(error);
98907
98954
  }
98908
98955
  toValidationResponse() {
98909
- return !this.hasErrors() ? ok$1$1(true) : err$1(this.errors);
98956
+ return !this.hasErrors() ? ok$1(true) : err$1(this.errors);
98910
98957
  }
98911
98958
  };
98912
98959
  function createThrowableError$1(errors) {
@@ -98942,7 +98989,7 @@ function incorrectTypeError$1(expected, actual, path) {
98942
98989
  );
98943
98990
  }
98944
98991
  function validSchemaResponse$1() {
98945
- return ok$1$1(true);
98992
+ return ok$1(true);
98946
98993
  }
98947
98994
  function invalidSchemaResponseWithError$1(error) {
98948
98995
  return err$1([error]);
@@ -99239,13 +99286,13 @@ function isUserVisibleError$2(error) {
99239
99286
  }
99240
99287
  function throwUserlandError(error) {
99241
99288
  logError$2(error);
99242
- throw buildUserlandError$1(error);
99289
+ throw buildUserlandError(error);
99243
99290
  }
99244
- function emitError$1(callback, error) {
99291
+ function emitError(callback, error) {
99245
99292
  logError$2(error);
99246
- callback({ data: void 0, error: buildUserlandError$1(error) });
99293
+ callback({ data: void 0, error: buildUserlandError(error) });
99247
99294
  }
99248
- function buildUserlandError$1(error) {
99295
+ function buildUserlandError(error) {
99249
99296
  if (isUserVisibleError$2(error)) {
99250
99297
  return error.data;
99251
99298
  }
@@ -99273,19 +99320,19 @@ function buildBaseImperativeInvoker(getCommand, transformResult) {
99273
99320
  }
99274
99321
  };
99275
99322
  }
99276
- const supportedCachePolicyTypes$1 = ["no-cache", "only-if-cached"];
99277
- function requestContextIsSupportedCachePolicy$1(requestContext) {
99278
- return typeof requestContext === "object" && requestContext !== null && "cachePolicy" in requestContext && typeof requestContext.cachePolicy === "object" && requestContext.cachePolicy !== null && "type" in requestContext.cachePolicy && typeof requestContext.cachePolicy.type === "string" && supportedCachePolicyTypes$1.includes(
99323
+ const supportedCachePolicyTypes = ["no-cache", "only-if-cached"];
99324
+ function requestContextIsSupportedCachePolicy(requestContext) {
99325
+ return typeof requestContext === "object" && requestContext !== null && "cachePolicy" in requestContext && typeof requestContext.cachePolicy === "object" && requestContext.cachePolicy !== null && "type" in requestContext.cachePolicy && typeof requestContext.cachePolicy.type === "string" && supportedCachePolicyTypes.includes(
99279
99326
  requestContext.cachePolicy.type
99280
99327
  );
99281
99328
  }
99282
- function getOverridesForLegacyRequestContext$1(requestContext) {
99283
- if (requestContextIsSupportedCachePolicy$1(requestContext)) {
99329
+ function getOverridesForLegacyRequestContext(requestContext) {
99330
+ if (requestContextIsSupportedCachePolicy(requestContext)) {
99284
99331
  return { cacheControlConfig: { type: requestContext.cachePolicy.type } };
99285
99332
  }
99286
99333
  return {};
99287
99334
  }
99288
- function handleEmit$1(res, callback) {
99335
+ function handleEmit(res, callback) {
99289
99336
  const consumerEmittedData = {
99290
99337
  data: void 0,
99291
99338
  errors: void 0
@@ -99293,20 +99340,20 @@ function handleEmit$1(res, callback) {
99293
99340
  if (res.isOk()) {
99294
99341
  consumerEmittedData.data = res.value.data;
99295
99342
  } else {
99296
- const { data, errors } = toGraphQLResponseFromFailure$1$1(res.error);
99343
+ const { data, errors } = toGraphQLResponseFromFailure$1(res.error);
99297
99344
  consumerEmittedData.data = data;
99298
99345
  consumerEmittedData.errors = errors;
99299
99346
  }
99300
99347
  callback(consumerEmittedData);
99301
99348
  }
99302
- function toGraphQLResponseFromFailure$1$1(failure) {
99303
- if (isUserVisibleError$1$1(failure)) {
99349
+ function toGraphQLResponseFromFailure$1(failure) {
99350
+ if (isUserVisibleError$1(failure)) {
99304
99351
  return {
99305
99352
  data: failure.data.data,
99306
99353
  errors: failure.data.errors
99307
99354
  };
99308
99355
  }
99309
- logError$1$1(failure);
99356
+ logError$1(failure);
99310
99357
  return {
99311
99358
  data: void 0,
99312
99359
  errors: [{ message: "Internal error in GraphQL adapter occurred", locations: [] }]
@@ -99316,10 +99363,10 @@ class DefaultImperativeBindingsService {
99316
99363
  bind(getCommand) {
99317
99364
  return buildBaseImperativeInvoker(getCommand, (result) => {
99318
99365
  if (result.isOk()) {
99319
- deepFreeze$1(result.value);
99320
- return isSubscribableResult$1(result) ? result.value.data : result.value;
99366
+ deepFreeze(result.value);
99367
+ return isSubscribableResult(result) ? result.value.data : result.value;
99321
99368
  }
99322
- throw toError(isSubscribableResult$1(result) ? result.error.failure : result.error);
99369
+ throw toError(isSubscribableResult(result) ? result.error.failure : result.error);
99323
99370
  });
99324
99371
  }
99325
99372
  }
@@ -99334,10 +99381,10 @@ class QueryImperativeBindingsService {
99334
99381
  bind(getCommand) {
99335
99382
  return buildBaseImperativeInvoker(getCommand, (result) => {
99336
99383
  if (result.isOk()) {
99337
- deepFreeze$1(result.value);
99338
- return isSubscribableResult$1(result) ? { data: result.value.data } : { data: result.value };
99384
+ deepFreeze(result.value);
99385
+ return isSubscribableResult(result) ? { data: result.value.data } : { data: result.value };
99339
99386
  }
99340
- throw toError(isSubscribableResult$1(result) ? result.error.failure : result.error);
99387
+ throw toError(isSubscribableResult(result) ? result.error.failure : result.error);
99341
99388
  });
99342
99389
  }
99343
99390
  }
@@ -99356,14 +99403,14 @@ class SubscribableImperativeBindingsService {
99356
99403
  );
99357
99404
  }
99358
99405
  transformResult(result, exposeRefresh = false) {
99359
- if (!isSubscribableResult$1(result)) {
99406
+ if (!isSubscribableResult(result)) {
99360
99407
  console.error(
99361
99408
  "Non-subscribable result encountered - please use correct operation type"
99362
99409
  );
99363
99410
  throw new Error("Internal error in Lightning Data Service adapter occurred");
99364
99411
  }
99365
99412
  if (result.isOk()) {
99366
- deepFreeze$1(result.value.data);
99413
+ deepFreeze(result.value.data);
99367
99414
  const api = {
99368
99415
  data: result.value.data,
99369
99416
  subscribe: (cb) => {
@@ -99407,16 +99454,16 @@ class LegacyImperativeBindingsService {
99407
99454
  const invoke = async (config, requestContext, callback) => {
99408
99455
  const command = getCommand({ config, assertIsValid: assertIsValid$1 });
99409
99456
  try {
99410
- const overrides = getOverridesForLegacyRequestContext$1(requestContext);
99457
+ const overrides = getOverridesForLegacyRequestContext(requestContext);
99411
99458
  const result = await command.execute(overrides);
99412
99459
  if (result.isOk()) {
99413
- deepFreeze$1(result.value);
99460
+ deepFreeze(result.value);
99414
99461
  callback({ data: result.value.data, error: void 0 });
99415
99462
  } else {
99416
99463
  callback({ data: void 0, error: toError(result.error.failure) });
99417
99464
  }
99418
99465
  } catch (error) {
99419
- emitError$1(callback, error);
99466
+ emitError(callback, error);
99420
99467
  }
99421
99468
  };
99422
99469
  const subscribe = (config, requestContext, callback) => {
@@ -99424,7 +99471,7 @@ class LegacyImperativeBindingsService {
99424
99471
  let unsubscribe = () => {
99425
99472
  };
99426
99473
  try {
99427
- const overrides = getOverridesForLegacyRequestContext$1(requestContext);
99474
+ const overrides = getOverridesForLegacyRequestContext(requestContext);
99428
99475
  command.execute(overrides).then(
99429
99476
  (result) => {
99430
99477
  if (!result.isOk()) {
@@ -99441,11 +99488,11 @@ class LegacyImperativeBindingsService {
99441
99488
  callback({ data: result.value.data, error: void 0 });
99442
99489
  },
99443
99490
  (e) => {
99444
- emitError$1(callback, e);
99491
+ emitError(callback, e);
99445
99492
  }
99446
99493
  );
99447
99494
  } catch (e) {
99448
- emitError$1(callback, e);
99495
+ emitError(callback, e);
99449
99496
  }
99450
99497
  return () => {
99451
99498
  unsubscribe();
@@ -99466,11 +99513,11 @@ class GraphQLImperativeBindingsService {
99466
99513
  return async (...params) => {
99467
99514
  try {
99468
99515
  if (params.length) {
99469
- params[0] = wrapConfigAndVerify$1(params[0]);
99516
+ params[0] = wrapConfigAndVerify(params[0]);
99470
99517
  }
99471
99518
  return await buildBaseImperativeInvoker(getCommand, (result) => this.transformResult(result, exposeRefresh))(...params);
99472
99519
  } catch (error) {
99473
- logError$1$1(error);
99520
+ logError$1(error);
99474
99521
  return {
99475
99522
  data: void 0,
99476
99523
  errors: [
@@ -99486,7 +99533,7 @@ class GraphQLImperativeBindingsService {
99486
99533
  errors: void 0
99487
99534
  };
99488
99535
  if (result.isOk()) {
99489
- deepFreeze$1(result.value);
99536
+ deepFreeze(result.value);
99490
99537
  consumerEmittedData.data = result.value.data.data;
99491
99538
  consumerEmittedData.subscribe = (cb) => {
99492
99539
  result.value.subscribe((res) => {
@@ -99497,11 +99544,11 @@ class GraphQLImperativeBindingsService {
99497
99544
  if (res.isOk()) {
99498
99545
  consumerEmittedData2.data = res.value.data;
99499
99546
  } else {
99500
- if (isUserVisibleError$1$1(res.error)) {
99547
+ if (isUserVisibleError$1(res.error)) {
99501
99548
  consumerEmittedData2.data = res.error.data.data;
99502
99549
  consumerEmittedData2.errors = res.error.data.errors;
99503
99550
  } else {
99504
- logError$1$1(res.error);
99551
+ logError$1(res.error);
99505
99552
  consumerEmittedData2.errors = [
99506
99553
  {
99507
99554
  message: "Internal error in GraphQL adapter occurred",
@@ -99529,7 +99576,7 @@ class GraphQLImperativeBindingsService {
99529
99576
  }
99530
99577
  });
99531
99578
  } catch (error) {
99532
- logError$1$1(error);
99579
+ logError$1(error);
99533
99580
  reject(
99534
99581
  new Error(
99535
99582
  "Internal error in GraphQL adapter occurred: Failed to refresh GraphQL data"
@@ -99540,7 +99587,7 @@ class GraphQLImperativeBindingsService {
99540
99587
  };
99541
99588
  }
99542
99589
  } else {
99543
- const resp = toGraphQLResponseFromFailure$1$1(result.error.failure);
99590
+ const resp = toGraphQLResponseFromFailure$1(result.error.failure);
99544
99591
  consumerEmittedData.data = resp.data;
99545
99592
  consumerEmittedData.errors = resp.errors;
99546
99593
  }
@@ -99557,26 +99604,26 @@ function buildServiceDescriptor$2$1() {
99557
99604
  class GraphQLLegacyImperativeBindingsService {
99558
99605
  bind(getCommand) {
99559
99606
  const invoke = async (config, requestContext, callback) => {
99560
- config = wrapConfigAndVerify$1(config);
99607
+ config = wrapConfigAndVerify(config);
99561
99608
  const command = getCommand({ config, assertIsValid: assertIsValid$1 });
99562
99609
  try {
99563
- const overrides = getOverridesForLegacyRequestContext$1(requestContext);
99610
+ const overrides = getOverridesForLegacyRequestContext(requestContext);
99564
99611
  const result = await command.execute(overrides);
99565
99612
  const consumerEmittedData = {
99566
99613
  data: void 0,
99567
99614
  errors: void 0
99568
99615
  };
99569
99616
  if (result.isOk()) {
99570
- deepFreeze$1(result.value);
99617
+ deepFreeze(result.value);
99571
99618
  consumerEmittedData.data = result.value.data.data;
99572
99619
  } else {
99573
- const { data, errors } = toGraphQLResponseFromFailure$1$1(result.error.failure);
99620
+ const { data, errors } = toGraphQLResponseFromFailure$1(result.error.failure);
99574
99621
  consumerEmittedData.data = data;
99575
99622
  consumerEmittedData.errors = errors;
99576
99623
  }
99577
99624
  callback(consumerEmittedData);
99578
99625
  } catch (error) {
99579
- logError$1$1(error);
99626
+ logError$1(error);
99580
99627
  callback({
99581
99628
  data: void 0,
99582
99629
  errors: [
@@ -99586,31 +99633,31 @@ class GraphQLLegacyImperativeBindingsService {
99586
99633
  }
99587
99634
  };
99588
99635
  const subscribe = (config, requestContext, callback) => {
99589
- config = wrapConfigAndVerify$1(config);
99636
+ config = wrapConfigAndVerify(config);
99590
99637
  const command = getCommand({ config, assertIsValid: assertIsValid$1 });
99591
99638
  let unsubscribe = () => {
99592
99639
  };
99593
- const overrides = getOverridesForLegacyRequestContext$1(requestContext);
99640
+ const overrides = getOverridesForLegacyRequestContext(requestContext);
99594
99641
  command.execute(overrides).then((result) => {
99595
99642
  const consumerEmittedData = {
99596
99643
  data: void 0,
99597
99644
  errors: void 0
99598
99645
  };
99599
99646
  if (result.isOk()) {
99600
- deepFreeze$1(result.value);
99647
+ deepFreeze(result.value);
99601
99648
  consumerEmittedData.data = result.value.data.data;
99602
99649
  unsubscribe = result.value.subscribe(
99603
99650
  (res) => {
99604
- handleEmit$1(res, callback);
99651
+ handleEmit(res, callback);
99605
99652
  }
99606
99653
  );
99607
99654
  } else {
99608
- const { data, errors } = toGraphQLResponseFromFailure$1$1(result.error.failure);
99655
+ const { data, errors } = toGraphQLResponseFromFailure$1(result.error.failure);
99609
99656
  consumerEmittedData.data = data;
99610
99657
  consumerEmittedData.errors = errors;
99611
99658
  unsubscribe = result.error.subscribe(
99612
99659
  (res) => {
99613
- handleEmit$1(res, callback);
99660
+ handleEmit(res, callback);
99614
99661
  }
99615
99662
  );
99616
99663
  }
@@ -99635,20 +99682,20 @@ class GraphQLMutationBindingsService {
99635
99682
  return async (...params) => {
99636
99683
  try {
99637
99684
  if (params.length) {
99638
- params[0] = wrapConfigAndVerify$1(params[0], {
99685
+ params[0] = wrapConfigAndVerify(params[0], {
99639
99686
  acceptedOperations: ["mutation"]
99640
99687
  });
99641
99688
  }
99642
99689
  const command = getCommand({ params, assertIsValid: assertIsValid$1 });
99643
99690
  const result = await command.execute({ cacheControlConfig: { type: "no-cache" } });
99644
99691
  if (result.isOk()) {
99645
- deepFreeze$1(result.value);
99692
+ deepFreeze(result.value);
99646
99693
  return result.value.data;
99647
99694
  } else {
99648
- return toGraphQLResponseFromFailure$1$1(result.error.failure);
99695
+ return toGraphQLResponseFromFailure$1(result.error.failure);
99649
99696
  }
99650
99697
  } catch (error) {
99651
- logError$1$1(error);
99698
+ logError$1(error);
99652
99699
  return {
99653
99700
  data: void 0,
99654
99701
  errors: [
@@ -99672,7 +99719,7 @@ function buildServiceDescriptor$7() {
99672
99719
  * All rights reserved.
99673
99720
  * For full license text, see the LICENSE.txt file
99674
99721
  */
99675
- let Sanitizer$1 = class Sanitizer {
99722
+ class Sanitizer {
99676
99723
  constructor(obj) {
99677
99724
  this.obj = obj;
99678
99725
  this.copy = {};
@@ -99717,16 +99764,16 @@ let Sanitizer$1 = class Sanitizer {
99717
99764
  this.currentPath = this.currentPath.parent || this.currentPath;
99718
99765
  }
99719
99766
  }
99720
- };
99721
- function sanitize$1(obj) {
99722
- return new Sanitizer$1(obj).sanitize();
99723
99767
  }
99724
- function isIncompleteConfigError$1(err) {
99768
+ function sanitize(obj) {
99769
+ return new Sanitizer(obj).sanitize();
99770
+ }
99771
+ function isIncompleteConfigError(err) {
99725
99772
  return err instanceof MissingRequiredPropertyError$1 || err instanceof JsonSchemaViolationError$1 && err.validationErrors.find(
99726
99773
  (validationError) => validationError instanceof MissingRequiredPropertyError$1
99727
99774
  ) !== void 0;
99728
99775
  }
99729
- let CommandWireAdapterConstructor$1 = class CommandWireAdapterConstructor {
99776
+ class CommandWireAdapterConstructor {
99730
99777
  constructor(callback, sourceContext, options) {
99731
99778
  this.callback = callback;
99732
99779
  this.connected = false;
@@ -99745,7 +99792,7 @@ let CommandWireAdapterConstructor$1 = class CommandWireAdapterConstructor {
99745
99792
  }
99746
99793
  update(config, _context) {
99747
99794
  this.unsubscribe();
99748
- this.config = sanitize$1(config);
99795
+ this.config = sanitize(config);
99749
99796
  this.invokeAdapter();
99750
99797
  }
99751
99798
  emit(result) {
@@ -99783,17 +99830,17 @@ let CommandWireAdapterConstructor$1 = class CommandWireAdapterConstructor {
99783
99830
  consumerEmittedData.refresh = consumerEmittedRefresh;
99784
99831
  }
99785
99832
  if (result.isErr()) {
99786
- if (isSubscribableResult$1(result)) {
99833
+ if (isSubscribableResult(result)) {
99787
99834
  consumerEmittedData.error = result.error.failure;
99788
99835
  } else {
99789
99836
  consumerEmittedData.error = result.error;
99790
99837
  }
99791
99838
  } else {
99792
- if (isSubscribableResult$1(result)) {
99793
- deepFreeze$1(result.value.data);
99839
+ if (isSubscribableResult(result)) {
99840
+ deepFreeze(result.value.data);
99794
99841
  consumerEmittedData.data = result.value.data;
99795
99842
  } else {
99796
- deepFreeze$1(result.value);
99843
+ deepFreeze(result.value);
99797
99844
  consumerEmittedData.data = result.value;
99798
99845
  }
99799
99846
  }
@@ -99811,7 +99858,7 @@ let CommandWireAdapterConstructor$1 = class CommandWireAdapterConstructor {
99811
99858
  try {
99812
99859
  assertIsValid$1(this.config, this.configSchema);
99813
99860
  } catch (err) {
99814
- if (isIncompleteConfigError$1(err)) {
99861
+ if (isIncompleteConfigError(err)) {
99815
99862
  return;
99816
99863
  }
99817
99864
  throw err;
@@ -99826,7 +99873,7 @@ let CommandWireAdapterConstructor$1 = class CommandWireAdapterConstructor {
99826
99873
  }
99827
99874
  this.refresh = void 0;
99828
99875
  if (result.isOk()) {
99829
- if (isSubscribableResult$1(result)) {
99876
+ if (isSubscribableResult(result)) {
99830
99877
  const value = result.value;
99831
99878
  this.unsubscriber = value.subscribe((updatedResult) => {
99832
99879
  if (!this.connected || this.config !== initialConfig) {
@@ -99836,12 +99883,12 @@ let CommandWireAdapterConstructor$1 = class CommandWireAdapterConstructor {
99836
99883
  this.emit(updatedResult);
99837
99884
  });
99838
99885
  this.refresh = value.refresh;
99839
- this.emit(ok$1$1(value.data));
99886
+ this.emit(ok$1(value.data));
99840
99887
  } else {
99841
99888
  this.emit(result);
99842
99889
  }
99843
99890
  } else {
99844
- if (isSubscribableResult$1(result)) {
99891
+ if (isSubscribableResult(result)) {
99845
99892
  const value = result.error;
99846
99893
  this.unsubscriber = value.subscribe((updatedResult) => {
99847
99894
  if (!this.connected || this.config !== initialConfig) {
@@ -99864,7 +99911,7 @@ let CommandWireAdapterConstructor$1 = class CommandWireAdapterConstructor {
99864
99911
  }
99865
99912
  }
99866
99913
  handleExecutionThrow(error) {
99867
- emitError$1(this.callback, error);
99914
+ emitError(this.callback, error);
99868
99915
  }
99869
99916
  unsubscribe() {
99870
99917
  if (this.unsubscriber) {
@@ -99872,15 +99919,15 @@ let CommandWireAdapterConstructor$1 = class CommandWireAdapterConstructor {
99872
99919
  delete this.unsubscriber;
99873
99920
  }
99874
99921
  }
99875
- };
99922
+ }
99876
99923
  function toGraphQLResponseFromFailure$2(failure) {
99877
- if (isUserVisibleError$1$1(failure)) {
99924
+ if (isUserVisibleError$1(failure)) {
99878
99925
  return {
99879
99926
  data: failure.data.data,
99880
99927
  errors: failure.data.errors
99881
99928
  };
99882
99929
  }
99883
- logError$1$1(failure);
99930
+ logError$1(failure);
99884
99931
  return {
99885
99932
  data: void 0,
99886
99933
  errors: [{ message: "Internal error in GraphQL adapter occurred", locations: [] }]
@@ -99888,7 +99935,7 @@ function toGraphQLResponseFromFailure$2(failure) {
99888
99935
  }
99889
99936
  class LWCWireBindingsService {
99890
99937
  bind(getCommand, configSchema, exposeRefresh = false) {
99891
- return class extends CommandWireAdapterConstructor$1 {
99938
+ return class extends CommandWireAdapterConstructor {
99892
99939
  constructor() {
99893
99940
  super(...arguments);
99894
99941
  this.configSchema = configSchema;
@@ -99907,7 +99954,7 @@ function buildServiceDescriptor$1$1() {
99907
99954
  service: new LWCWireBindingsService()
99908
99955
  };
99909
99956
  }
99910
- let GraphQLCommandWireAdapterConstructor$1 = class GraphQLCommandWireAdapterConstructor extends CommandWireAdapterConstructor$1 {
99957
+ class GraphQLCommandWireAdapterConstructor extends CommandWireAdapterConstructor {
99911
99958
  emit(result) {
99912
99959
  try {
99913
99960
  if (result === void 0) {
@@ -99943,23 +99990,23 @@ let GraphQLCommandWireAdapterConstructor$1 = class GraphQLCommandWireAdapterCons
99943
99990
  consumerEmittedData.refresh = consumerEmittedRefresh;
99944
99991
  }
99945
99992
  if (result.isErr()) {
99946
- const failure = isSubscribableResult$1(result) ? result.error.failure : result.error;
99993
+ const failure = isSubscribableResult(result) ? result.error.failure : result.error;
99947
99994
  const resp = toGraphQLResponseFromFailure$2(failure);
99948
99995
  consumerEmittedData.data = resp.data;
99949
99996
  consumerEmittedData.errors = resp.errors;
99950
99997
  } else {
99951
99998
  consumerEmittedData.data = result.value.data;
99952
99999
  }
99953
- deepFreeze$1(consumerEmittedData);
100000
+ deepFreeze(consumerEmittedData);
99954
100001
  this.callback(consumerEmittedData);
99955
100002
  }
99956
100003
  } catch (e) {
99957
- logError$1$1(e);
100004
+ logError$1(e);
99958
100005
  this.handleExecutionThrow(e);
99959
100006
  }
99960
100007
  }
99961
100008
  handleExecutionThrow(e) {
99962
- logError$1$1(e);
100009
+ logError$1(e);
99963
100010
  this.callback({
99964
100011
  data: void 0,
99965
100012
  errors: [{ message: "Internal error in GraphQL adapter occurred", locations: [] }]
@@ -99969,21 +100016,21 @@ let GraphQLCommandWireAdapterConstructor$1 = class GraphQLCommandWireAdapterCons
99969
100016
  this.unsubscribe();
99970
100017
  const resolvedQuery = resolveAst$1(config.query);
99971
100018
  if (resolvedQuery) {
99972
- validateGraphQLOperations$1(
100019
+ validateGraphQLOperations(
99973
100020
  { query: resolvedQuery, operationName: config == null ? void 0 : config.operationName },
99974
100021
  { acceptedOperations: ["query"] }
99975
100022
  );
99976
100023
  }
99977
100024
  this.config = {
99978
- ...sanitize$1(config),
100025
+ ...sanitize(config),
99979
100026
  query: resolvedQuery
99980
100027
  };
99981
100028
  this.invokeAdapter();
99982
100029
  }
99983
- };
100030
+ }
99984
100031
  class LWCGraphQLWireBindingsService {
99985
100032
  bind(getCommand, configSchema, exposeRefresh = false) {
99986
- return class extends GraphQLCommandWireAdapterConstructor$1 {
100033
+ return class extends GraphQLCommandWireAdapterConstructor {
99987
100034
  constructor() {
99988
100035
  super(...arguments);
99989
100036
  this.configSchema = configSchema;
@@ -100612,7 +100659,7 @@ class NimbusDurableCacheInclusionPolicy extends DurableCacheInclusionPolicy {
100612
100659
  return;
100613
100660
  entries.forEach(({ key, entry }) => {
100614
100661
  this.services.cache.set(key, entry);
100615
- return resolvedPromiseLike$2(ok$1$1(undefined));
100662
+ return resolvedPromiseLike$2(ok$1(undefined));
100616
100663
  });
100617
100664
  });
100618
100665
  }
@@ -100974,7 +101021,7 @@ function getRuntime({ primeUser = false } = {}) {
100974
101021
  };
100975
101022
  const draftAwareCreateContentDocumentAndVersionAdapter = createContentDocumentAndVersionDraftAdapterFactory(lazyLuvio, NimbusBinaryStore, contentDocumentCompositeActionHandler, lazyDurableRecordStore);
100976
101023
  const draftAwareCreateRecord = createRecordDraftAdapterFactory(uiApiRecordHandler, lazyDurableRecordStore);
100977
- const draftAwareUpdateRecord = updateRecordDraftAdapterFactory(uiApiRecordHandler, lazyDurableRecordStore);
101024
+ const draftAwareUpdateRecord = updateRecordDraftAdapterFactory(uiApiRecordHandler, lazyDurableRecordStore, lazyObjectInfoService);
100978
101025
  const draftAwareDeleteRecord = deleteRecordDraftAdapterFactory(uiApiRecordHandler);
100979
101026
  const draftAwarePeformQuickAction = performQuickActionDraftAdapterFactory(quickActionHandler, userId);
100980
101027
  const draftAwarePerformUpdateRecordQuickActionAdapter = performUpdateRecordQuickActionDraftAdapterFactory(updateRecordQuickActionHandler, userId);
@@ -101038,7 +101085,7 @@ register$1({
101038
101085
  id: '@salesforce/lds-network-adapter',
101039
101086
  instrument: instrument$2,
101040
101087
  });
101041
- // version: 1.402.0-bf9ae185ef
101088
+ // version: 1.403.0-bc09fbc54b
101042
101089
 
101043
101090
  const { create: create$3, keys: keys$3 } = Object;
101044
101091
  const { stringify, parse } = JSON;
@@ -101410,12 +101457,11 @@ function findSchemaAtPath(document, ref) {
101410
101457
  return current;
101411
101458
  }
101412
101459
 
101413
- /**
101460
+ /*!
101414
101461
  * Copyright (c) 2022, Salesforce, Inc.,
101415
101462
  * All rights reserved.
101416
101463
  * For full license text, see the LICENSE.txt file
101417
101464
  */
101418
-
101419
101465
  var Kind$1;
101420
101466
  (function(Kind2) {
101421
101467
  Kind2["NAME"] = "Name";
@@ -101591,191 +101637,6 @@ var DirectiveLocation$1;
101591
101637
  DirectiveLocation2["INPUT_OBJECT"] = "INPUT_OBJECT";
101592
101638
  DirectiveLocation2["INPUT_FIELD_DEFINITION"] = "INPUT_FIELD_DEFINITION";
101593
101639
  })(DirectiveLocation$1 || (DirectiveLocation$1 = {}));
101594
- const referenceMap = /* @__PURE__ */ new WeakMap();
101595
- const astResolver = function(astReference) {
101596
- return referenceMap.get(astReference);
101597
- };
101598
-
101599
- /*!
101600
- * Copyright (c) 2022, Salesforce, Inc.,
101601
- * All rights reserved.
101602
- * For full license text, see the LICENSE.txt file
101603
- */
101604
- var Kind;
101605
- (function(Kind2) {
101606
- Kind2["NAME"] = "Name";
101607
- Kind2["DOCUMENT"] = "Document";
101608
- Kind2["OPERATION_DEFINITION"] = "OperationDefinition";
101609
- Kind2["VARIABLE_DEFINITION"] = "VariableDefinition";
101610
- Kind2["SELECTION_SET"] = "SelectionSet";
101611
- Kind2["FIELD"] = "Field";
101612
- Kind2["ARGUMENT"] = "Argument";
101613
- Kind2["FRAGMENT_SPREAD"] = "FragmentSpread";
101614
- Kind2["INLINE_FRAGMENT"] = "InlineFragment";
101615
- Kind2["FRAGMENT_DEFINITION"] = "FragmentDefinition";
101616
- Kind2["VARIABLE"] = "Variable";
101617
- Kind2["INT"] = "IntValue";
101618
- Kind2["FLOAT"] = "FloatValue";
101619
- Kind2["STRING"] = "StringValue";
101620
- Kind2["BOOLEAN"] = "BooleanValue";
101621
- Kind2["NULL"] = "NullValue";
101622
- Kind2["ENUM"] = "EnumValue";
101623
- Kind2["LIST"] = "ListValue";
101624
- Kind2["OBJECT"] = "ObjectValue";
101625
- Kind2["OBJECT_FIELD"] = "ObjectField";
101626
- Kind2["DIRECTIVE"] = "Directive";
101627
- Kind2["NAMED_TYPE"] = "NamedType";
101628
- Kind2["LIST_TYPE"] = "ListType";
101629
- Kind2["NON_NULL_TYPE"] = "NonNullType";
101630
- Kind2["SCHEMA_DEFINITION"] = "SchemaDefinition";
101631
- Kind2["OPERATION_TYPE_DEFINITION"] = "OperationTypeDefinition";
101632
- Kind2["SCALAR_TYPE_DEFINITION"] = "ScalarTypeDefinition";
101633
- Kind2["OBJECT_TYPE_DEFINITION"] = "ObjectTypeDefinition";
101634
- Kind2["FIELD_DEFINITION"] = "FieldDefinition";
101635
- Kind2["INPUT_VALUE_DEFINITION"] = "InputValueDefinition";
101636
- Kind2["INTERFACE_TYPE_DEFINITION"] = "InterfaceTypeDefinition";
101637
- Kind2["UNION_TYPE_DEFINITION"] = "UnionTypeDefinition";
101638
- Kind2["ENUM_TYPE_DEFINITION"] = "EnumTypeDefinition";
101639
- Kind2["ENUM_VALUE_DEFINITION"] = "EnumValueDefinition";
101640
- Kind2["INPUT_OBJECT_TYPE_DEFINITION"] = "InputObjectTypeDefinition";
101641
- Kind2["DIRECTIVE_DEFINITION"] = "DirectiveDefinition";
101642
- Kind2["SCHEMA_EXTENSION"] = "SchemaExtension";
101643
- Kind2["SCALAR_TYPE_EXTENSION"] = "ScalarTypeExtension";
101644
- Kind2["OBJECT_TYPE_EXTENSION"] = "ObjectTypeExtension";
101645
- Kind2["INTERFACE_TYPE_EXTENSION"] = "InterfaceTypeExtension";
101646
- Kind2["UNION_TYPE_EXTENSION"] = "UnionTypeExtension";
101647
- Kind2["ENUM_TYPE_EXTENSION"] = "EnumTypeExtension";
101648
- Kind2["INPUT_OBJECT_TYPE_EXTENSION"] = "InputObjectTypeExtension";
101649
- })(Kind || (Kind = {}));
101650
- var TokenKind;
101651
- (function(TokenKind2) {
101652
- TokenKind2["SOF"] = "<SOF>";
101653
- TokenKind2["EOF"] = "<EOF>";
101654
- TokenKind2["BANG"] = "!";
101655
- TokenKind2["DOLLAR"] = "$";
101656
- TokenKind2["AMP"] = "&";
101657
- TokenKind2["PAREN_L"] = "(";
101658
- TokenKind2["PAREN_R"] = ")";
101659
- TokenKind2["SPREAD"] = "...";
101660
- TokenKind2["COLON"] = ":";
101661
- TokenKind2["EQUALS"] = "=";
101662
- TokenKind2["AT"] = "@";
101663
- TokenKind2["BRACKET_L"] = "[";
101664
- TokenKind2["BRACKET_R"] = "]";
101665
- TokenKind2["BRACE_L"] = "{";
101666
- TokenKind2["PIPE"] = "|";
101667
- TokenKind2["BRACE_R"] = "}";
101668
- TokenKind2["NAME"] = "Name";
101669
- TokenKind2["INT"] = "Int";
101670
- TokenKind2["FLOAT"] = "Float";
101671
- TokenKind2["STRING"] = "String";
101672
- TokenKind2["BLOCK_STRING"] = "BlockString";
101673
- TokenKind2["COMMENT"] = "Comment";
101674
- })(TokenKind || (TokenKind = {}));
101675
- const QueryDocumentKeys = {
101676
- Name: [],
101677
- Document: ["definitions"],
101678
- OperationDefinition: [
101679
- "name",
101680
- "variableDefinitions",
101681
- "directives",
101682
- "selectionSet"
101683
- ],
101684
- VariableDefinition: ["variable", "type", "defaultValue", "directives"],
101685
- Variable: ["name"],
101686
- SelectionSet: ["selections"],
101687
- Field: ["alias", "name", "arguments", "directives", "selectionSet"],
101688
- Argument: ["name", "value"],
101689
- FragmentSpread: ["name", "directives"],
101690
- InlineFragment: ["typeCondition", "directives", "selectionSet"],
101691
- FragmentDefinition: [
101692
- "name",
101693
- // Note: fragment variable definitions are deprecated and will removed in v17.0.0
101694
- "variableDefinitions",
101695
- "typeCondition",
101696
- "directives",
101697
- "selectionSet"
101698
- ],
101699
- IntValue: [],
101700
- FloatValue: [],
101701
- StringValue: [],
101702
- BooleanValue: [],
101703
- NullValue: [],
101704
- EnumValue: [],
101705
- ListValue: ["values"],
101706
- ObjectValue: ["fields"],
101707
- ObjectField: ["name", "value"],
101708
- Directive: ["name", "arguments"],
101709
- NamedType: ["name"],
101710
- ListType: ["type"],
101711
- NonNullType: ["type"],
101712
- SchemaDefinition: ["description", "directives", "operationTypes"],
101713
- OperationTypeDefinition: ["type"],
101714
- ScalarTypeDefinition: ["description", "name", "directives"],
101715
- ObjectTypeDefinition: [
101716
- "description",
101717
- "name",
101718
- "interfaces",
101719
- "directives",
101720
- "fields"
101721
- ],
101722
- FieldDefinition: ["description", "name", "arguments", "type", "directives"],
101723
- InputValueDefinition: [
101724
- "description",
101725
- "name",
101726
- "type",
101727
- "defaultValue",
101728
- "directives"
101729
- ],
101730
- InterfaceTypeDefinition: [
101731
- "description",
101732
- "name",
101733
- "interfaces",
101734
- "directives",
101735
- "fields"
101736
- ],
101737
- UnionTypeDefinition: ["description", "name", "directives", "types"],
101738
- EnumTypeDefinition: ["description", "name", "directives", "values"],
101739
- EnumValueDefinition: ["description", "name", "directives"],
101740
- InputObjectTypeDefinition: ["description", "name", "directives", "fields"],
101741
- DirectiveDefinition: ["description", "name", "arguments", "locations"],
101742
- SchemaExtension: ["directives", "operationTypes"],
101743
- ScalarTypeExtension: ["name", "directives"],
101744
- ObjectTypeExtension: ["name", "interfaces", "directives", "fields"],
101745
- InterfaceTypeExtension: ["name", "interfaces", "directives", "fields"],
101746
- UnionTypeExtension: ["name", "directives", "types"],
101747
- EnumTypeExtension: ["name", "directives", "values"],
101748
- InputObjectTypeExtension: ["name", "directives", "fields"]
101749
- };
101750
- new Set(Object.keys(QueryDocumentKeys));
101751
- var OperationTypeNode;
101752
- (function(OperationTypeNode2) {
101753
- OperationTypeNode2["QUERY"] = "query";
101754
- OperationTypeNode2["MUTATION"] = "mutation";
101755
- OperationTypeNode2["SUBSCRIPTION"] = "subscription";
101756
- })(OperationTypeNode || (OperationTypeNode = {}));
101757
- var DirectiveLocation;
101758
- (function(DirectiveLocation2) {
101759
- DirectiveLocation2["QUERY"] = "QUERY";
101760
- DirectiveLocation2["MUTATION"] = "MUTATION";
101761
- DirectiveLocation2["SUBSCRIPTION"] = "SUBSCRIPTION";
101762
- DirectiveLocation2["FIELD"] = "FIELD";
101763
- DirectiveLocation2["FRAGMENT_DEFINITION"] = "FRAGMENT_DEFINITION";
101764
- DirectiveLocation2["FRAGMENT_SPREAD"] = "FRAGMENT_SPREAD";
101765
- DirectiveLocation2["INLINE_FRAGMENT"] = "INLINE_FRAGMENT";
101766
- DirectiveLocation2["VARIABLE_DEFINITION"] = "VARIABLE_DEFINITION";
101767
- DirectiveLocation2["SCHEMA"] = "SCHEMA";
101768
- DirectiveLocation2["SCALAR"] = "SCALAR";
101769
- DirectiveLocation2["OBJECT"] = "OBJECT";
101770
- DirectiveLocation2["FIELD_DEFINITION"] = "FIELD_DEFINITION";
101771
- DirectiveLocation2["ARGUMENT_DEFINITION"] = "ARGUMENT_DEFINITION";
101772
- DirectiveLocation2["INTERFACE"] = "INTERFACE";
101773
- DirectiveLocation2["UNION"] = "UNION";
101774
- DirectiveLocation2["ENUM"] = "ENUM";
101775
- DirectiveLocation2["ENUM_VALUE"] = "ENUM_VALUE";
101776
- DirectiveLocation2["INPUT_OBJECT"] = "INPUT_OBJECT";
101777
- DirectiveLocation2["INPUT_FIELD_DEFINITION"] = "INPUT_FIELD_DEFINITION";
101778
- })(DirectiveLocation || (DirectiveLocation = {}));
101779
101640
 
101780
101641
  /*!
101781
101642
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -101783,15 +101644,15 @@ var DirectiveLocation;
101783
101644
  * For full license text, see the LICENSE.txt file
101784
101645
  */
101785
101646
  function extractValue(valueNode, variableDefinitions, expectedType) {
101786
- if (valueNode.kind === Kind.VARIABLE) {
101647
+ if (valueNode.kind === Kind$1.VARIABLE) {
101787
101648
  const variableResult = extractVariableValue(valueNode.name.value, variableDefinitions);
101788
101649
  if (variableResult.isErr()) {
101789
101650
  return variableResult;
101790
101651
  }
101791
101652
  return validateExpectedType(variableResult.value, expectedType);
101792
- } else if (valueNode.kind === Kind.NULL) {
101653
+ } else if (valueNode.kind === Kind$1.NULL) {
101793
101654
  return validateExpectedType(null, expectedType);
101794
- } else if (valueNode.kind === Kind.LIST) {
101655
+ } else if (valueNode.kind === Kind$1.LIST) {
101795
101656
  const values = [];
101796
101657
  for (const val of valueNode.values) {
101797
101658
  const extractedResult = extractValue(val, variableDefinitions);
@@ -101801,7 +101662,7 @@ function extractValue(valueNode, variableDefinitions, expectedType) {
101801
101662
  values.push(extractedResult.value);
101802
101663
  }
101803
101664
  return validateExpectedType(values, expectedType);
101804
- } else if (valueNode.kind === Kind.OBJECT) {
101665
+ } else if (valueNode.kind === Kind$1.OBJECT) {
101805
101666
  const value = {};
101806
101667
  for (const field of valueNode.fields) {
101807
101668
  const extractedResult = extractValue(field.value, variableDefinitions);
@@ -101811,10 +101672,10 @@ function extractValue(valueNode, variableDefinitions, expectedType) {
101811
101672
  value[field.name.value] = extractedResult.value;
101812
101673
  }
101813
101674
  return validateExpectedType(value, expectedType);
101814
- } else if (valueNode.kind === Kind.INT) {
101675
+ } else if (valueNode.kind === Kind$1.INT) {
101815
101676
  const value = parseInt(valueNode.value, 10);
101816
101677
  return validateExpectedType(value, expectedType);
101817
- } else if (valueNode.kind === Kind.FLOAT) {
101678
+ } else if (valueNode.kind === Kind$1.FLOAT) {
101818
101679
  const value = parseFloat(valueNode.value);
101819
101680
  return validateExpectedType(value, expectedType);
101820
101681
  } else {
@@ -101891,9 +101752,9 @@ function deepMerge$2(target, ...sources) {
101891
101752
  }
101892
101753
  return target;
101893
101754
  }
101894
- function findExecutableOperation$1(input) {
101755
+ function findExecutableOperation(input) {
101895
101756
  const operations = input.query.definitions.filter(
101896
- (def) => def.kind === Kind.OPERATION_DEFINITION
101757
+ (def) => def.kind === Kind$1.OPERATION_DEFINITION
101897
101758
  );
101898
101759
  if (operations.length === 0) {
101899
101760
  return err$3(new Error("No operations found in query"));
@@ -101914,7 +101775,7 @@ function findExecutableOperation$1(input) {
101914
101775
  return err$3(new Error("Multiple operations found in query, and no operation name provided"));
101915
101776
  }
101916
101777
  function buildGraphQLInputExtension(input) {
101917
- const operationResult = findExecutableOperation$1(input);
101778
+ const operationResult = findExecutableOperation(input);
101918
101779
  if (operationResult.isErr()) {
101919
101780
  return err$3(operationResult.error);
101920
101781
  }
@@ -101949,7 +101810,7 @@ function buildAugmentedFieldSelection(newSelection, selections, fragments) {
101949
101810
  const baseAliasedSelection = {
101950
101811
  ...newSelection,
101951
101812
  alias: {
101952
- kind: Kind.NAME,
101813
+ kind: Kind$1.NAME,
101953
101814
  value: baseInjectedAlias
101954
101815
  }
101955
101816
  };
@@ -101960,7 +101821,7 @@ function buildAugmentedFieldSelection(newSelection, selections, fragments) {
101960
101821
  return {
101961
101822
  ...newSelection,
101962
101823
  alias: {
101963
- kind: Kind.NAME,
101824
+ kind: Kind$1.NAME,
101964
101825
  value: fieldName
101965
101826
  }
101966
101827
  };
@@ -101973,11 +101834,11 @@ function selectionEquals(a, b) {
101973
101834
  if (a.kind !== b.kind) {
101974
101835
  return false;
101975
101836
  }
101976
- if (a.kind === Kind.FIELD) {
101837
+ if (a.kind === Kind$1.FIELD) {
101977
101838
  const bField = b;
101978
101839
  return !!(a.name.value === bField.name.value) && !!(((_a = a.alias) == null ? void 0 : _a.value) === ((_b = bField.alias) == null ? void 0 : _b.value)) && argumentsEqual(a.arguments, bField.arguments) && selectionSetsEqual((_c = a.selectionSet) == null ? void 0 : _c.selections, (_d = bField.selectionSet) == null ? void 0 : _d.selections) && directivesEqual(a.directives, bField.directives);
101979
101840
  }
101980
- if (a.kind === Kind.FRAGMENT_SPREAD) {
101841
+ if (a.kind === Kind$1.FRAGMENT_SPREAD) {
101981
101842
  const bFragmentSpread = b;
101982
101843
  return a.name.value === bFragmentSpread.name.value && directivesEqual(a.directives, bFragmentSpread.directives);
101983
101844
  }
@@ -101989,23 +101850,23 @@ function argumentValueEquals(a, b) {
101989
101850
  return false;
101990
101851
  }
101991
101852
  switch (a.kind) {
101992
- case Kind.STRING:
101993
- case Kind.INT:
101994
- case Kind.FLOAT:
101995
- case Kind.BOOLEAN:
101996
- case Kind.ENUM:
101853
+ case Kind$1.STRING:
101854
+ case Kind$1.INT:
101855
+ case Kind$1.FLOAT:
101856
+ case Kind$1.BOOLEAN:
101857
+ case Kind$1.ENUM:
101997
101858
  return a.value === b.value;
101998
- case Kind.NULL:
101859
+ case Kind$1.NULL:
101999
101860
  return true;
102000
- case Kind.VARIABLE:
101861
+ case Kind$1.VARIABLE:
102001
101862
  return a.name.value === b.name.value;
102002
- case Kind.LIST:
101863
+ case Kind$1.LIST:
102003
101864
  const bList = b;
102004
101865
  if (a.values.length !== bList.values.length) {
102005
101866
  return false;
102006
101867
  }
102007
101868
  return a.values.every((val, index) => argumentValueEquals(val, bList.values[index]));
102008
- case Kind.OBJECT:
101869
+ case Kind$1.OBJECT:
102009
101870
  const bObject = b;
102010
101871
  if (a.fields.length !== bObject.fields.length) {
102011
101872
  return false;
@@ -102106,23 +101967,23 @@ function buildFieldKey(canonicalFieldName, fieldArguments, variables) {
102106
101967
  return ok$3(`${canonicalFieldName}::${stableJSONStringify$3({ args: formattedArguments })}`);
102107
101968
  }
102108
101969
  ({
102109
- kind: Kind.FIELD,
101970
+ kind: Kind$1.FIELD,
102110
101971
  name: {
102111
- kind: Kind.NAME,
101972
+ kind: Kind$1.NAME,
102112
101973
  value: "__typename"
102113
101974
  }
102114
101975
  });
102115
101976
  function isField(node) {
102116
- return node.kind === Kind.FIELD;
101977
+ return node.kind === Kind$1.FIELD;
102117
101978
  }
102118
101979
  function isFragmentSpread(node) {
102119
- return node.kind === Kind.FRAGMENT_SPREAD;
101980
+ return node.kind === Kind$1.FRAGMENT_SPREAD;
102120
101981
  }
102121
101982
  function isInlineFragment(node) {
102122
- return node.kind === Kind.INLINE_FRAGMENT;
101983
+ return node.kind === Kind$1.INLINE_FRAGMENT;
102123
101984
  }
102124
101985
  function isFragmentDefinition(node) {
102125
- return node.kind === Kind.FRAGMENT_DEFINITION;
101986
+ return node.kind === Kind$1.FRAGMENT_DEFINITION;
102126
101987
  }
102127
101988
  function extractIfArgument(directive, variables, directiveName) {
102128
101989
  var _a;
@@ -102429,9 +102290,9 @@ class BaseGraphQLTypeRepository {
102429
102290
  }
102430
102291
  const newTypenameSelection = buildAugmentedFieldSelection(
102431
102292
  {
102432
- kind: Kind.FIELD,
102293
+ kind: Kind$1.FIELD,
102433
102294
  name: {
102434
- kind: Kind.NAME,
102295
+ kind: Kind$1.NAME,
102435
102296
  value: "__typename"
102436
102297
  }
102437
102298
  },
@@ -102458,7 +102319,7 @@ class BaseGraphQLTypeRepository {
102458
102319
  {
102459
102320
  ...selection,
102460
102321
  selectionSet: {
102461
- kind: Kind.SELECTION_SET,
102322
+ kind: Kind$1.SELECTION_SET,
102462
102323
  selections: result.selections
102463
102324
  }
102464
102325
  }
@@ -102484,7 +102345,7 @@ class BaseGraphQLTypeRepository {
102484
102345
  {
102485
102346
  ...fragment,
102486
102347
  selectionSet: {
102487
- kind: Kind.SELECTION_SET,
102348
+ kind: Kind$1.SELECTION_SET,
102488
102349
  selections: augmentedFragmentSelections.selections
102489
102350
  }
102490
102351
  }
@@ -102516,7 +102377,7 @@ class BaseGraphQLTypeRepository {
102516
102377
  [fragment.name.value]: {
102517
102378
  ...fragment,
102518
102379
  selectionSet: {
102519
- kind: Kind.SELECTION_SET,
102380
+ kind: Kind$1.SELECTION_SET,
102520
102381
  selections: augmentedFragment.selections
102521
102382
  }
102522
102383
  }
@@ -102838,9 +102699,9 @@ class IdentifiableGraphQLTypeRepository extends IdentifiableTypeRepository {
102838
102699
  let augmentedFragments = result.fragments;
102839
102700
  const newSelection = buildAugmentedFieldSelection(
102840
102701
  {
102841
- kind: Kind.FIELD,
102702
+ kind: Kind$1.FIELD,
102842
102703
  name: {
102843
- kind: Kind.NAME,
102704
+ kind: Kind$1.NAME,
102844
102705
  value: this.idField
102845
102706
  }
102846
102707
  },
@@ -102908,7 +102769,7 @@ class IdentifiableGraphQLTypeRepository extends IdentifiableTypeRepository {
102908
102769
  buildKeyParams(input) {
102909
102770
  var _a;
102910
102771
  const idField = input.selections.find(
102911
- (selection) => selection.kind === Kind.FIELD && selection.name.value === this.idField
102772
+ (selection) => selection.kind === Kind$1.FIELD && selection.name.value === this.idField
102912
102773
  );
102913
102774
  if (!idField) {
102914
102775
  throw new Error(`Id field ${this.idField} not found in selections`);
@@ -102964,13 +102825,13 @@ class GraphQLDocumentRootTypeRepository extends IdentifiableGraphQLTypeRepositor
102964
102825
  }
102965
102826
  buildAugmentedQuery(input) {
102966
102827
  var _a;
102967
- const operationResult = findExecutableOperation$1(input);
102828
+ const operationResult = findExecutableOperation(input);
102968
102829
  if (operationResult.isErr()) {
102969
102830
  return err$3(operationResult.error);
102970
102831
  }
102971
102832
  const operation = operationResult.value;
102972
102833
  const fragmentDefinitions = input.query.definitions.filter(
102973
- (def) => def.kind === Kind.FRAGMENT_DEFINITION
102834
+ (def) => def.kind === Kind$1.FRAGMENT_DEFINITION
102974
102835
  );
102975
102836
  const fragments = fragmentDefinitions.reduce(
102976
102837
  (acc, def) => {
@@ -102987,13 +102848,13 @@ class GraphQLDocumentRootTypeRepository extends IdentifiableGraphQLTypeRepositor
102987
102848
  let augmentedFragments = result.fragments;
102988
102849
  const augmentedOperation = {
102989
102850
  ...operation,
102990
- selectionSet: { kind: Kind.SELECTION_SET, selections: augmentedOperationSelections }
102851
+ selectionSet: { kind: Kind$1.SELECTION_SET, selections: augmentedOperationSelections }
102991
102852
  };
102992
102853
  return ok$3({
102993
102854
  ...input.query,
102994
102855
  definitions: [
102995
- ...input.query.definitions.filter((def) => def.kind !== Kind.FRAGMENT_DEFINITION).map((def) => {
102996
- if (def.kind !== Kind.OPERATION_DEFINITION || def !== operation) {
102856
+ ...input.query.definitions.filter((def) => def.kind !== Kind$1.FRAGMENT_DEFINITION).map((def) => {
102857
+ if (def.kind !== Kind$1.OPERATION_DEFINITION || def !== operation) {
102997
102858
  return def;
102998
102859
  }
102999
102860
  return augmentedOperation;
@@ -103102,7 +102963,7 @@ class BaseInterfaceRepository {
103102
102963
  let augmentedFragments = { ...input.fragments };
103103
102964
  input.selections.forEach((selection) => {
103104
102965
  var _a;
103105
- if (selection.kind === Kind.FIELD) {
102966
+ if (selection.kind === Kind$1.FIELD) {
103106
102967
  if (Object.keys(this.fields).includes(selection.name.value)) {
103107
102968
  const field = this.fields[selection.name.value];
103108
102969
  const result2 = field.augmentSelections({
@@ -103111,7 +102972,7 @@ class BaseInterfaceRepository {
103111
102972
  });
103112
102973
  augmentedSelections.push({
103113
102974
  ...selection,
103114
- selectionSet: { kind: Kind.SELECTION_SET, selections: result2.selections }
102975
+ selectionSet: { kind: Kind$1.SELECTION_SET, selections: result2.selections }
103115
102976
  });
103116
102977
  augmentedFragments = result2.fragments;
103117
102978
  } else {
@@ -103129,7 +102990,7 @@ class BaseInterfaceRepository {
103129
102990
  augmentedSelections.push(...result.selections);
103130
102991
  augmentedFragments = result.fragments;
103131
102992
  const newSelection = buildAugmentedFieldSelection(
103132
- { kind: Kind.FIELD, name: { kind: Kind.NAME, value: "__typename" } },
102993
+ { kind: Kind$1.FIELD, name: { kind: Kind$1.NAME, value: "__typename" } },
103133
102994
  augmentedSelections,
103134
102995
  input.fragments
103135
102996
  );
@@ -103141,7 +103002,7 @@ class BaseInterfaceRepository {
103141
103002
  getTypeDiscriminator(data, selections) {
103142
103003
  var _a;
103143
103004
  const typenameSelection = selections.find(
103144
- (selection) => selection.kind === Kind.FIELD && selection.name.value === "__typename"
103005
+ (selection) => selection.kind === Kind$1.FIELD && selection.name.value === "__typename"
103145
103006
  );
103146
103007
  if (typenameSelection) {
103147
103008
  return data[((_a = typenameSelection.alias) == null ? void 0 : _a.value) || typenameSelection.name.value];
@@ -103152,7 +103013,7 @@ class BaseInterfaceRepository {
103152
103013
  verifyInterfaceFields(selections) {
103153
103014
  let selectionErr;
103154
103015
  selections.forEach((selection) => {
103155
- if (selection.kind === Kind.FIELD) {
103016
+ if (selection.kind === Kind$1.FIELD) {
103156
103017
  const fieldName = selection.name.value;
103157
103018
  const selectionAllowed = fieldName === "__typename" || Object.keys(this.fields).includes(fieldName);
103158
103019
  if (!selectionAllowed) {
@@ -103276,7 +103137,7 @@ class BaseUnionRepository {
103276
103137
  augmentedSelections.push(...result.selections);
103277
103138
  augmentedFragments = result.fragments;
103278
103139
  const newSelection = buildAugmentedFieldSelection(
103279
- { kind: Kind.FIELD, name: { kind: Kind.NAME, value: "__typename" } },
103140
+ { kind: Kind$1.FIELD, name: { kind: Kind$1.NAME, value: "__typename" } },
103280
103141
  augmentedSelections,
103281
103142
  input.fragments
103282
103143
  );
@@ -103288,7 +103149,7 @@ class BaseUnionRepository {
103288
103149
  getTypeDiscriminator(data, selections) {
103289
103150
  var _a;
103290
103151
  const typenameSelection = selections.find(
103291
- (selection) => selection.kind === Kind.FIELD && selection.name.value === "__typename"
103152
+ (selection) => selection.kind === Kind$1.FIELD && selection.name.value === "__typename"
103292
103153
  );
103293
103154
  if (typenameSelection) {
103294
103155
  return data[((_a = typenameSelection.alias) == null ? void 0 : _a.value) || typenameSelection.name.value];
@@ -103299,7 +103160,7 @@ class BaseUnionRepository {
103299
103160
  verifyUnionFields(selections) {
103300
103161
  let selectionErr;
103301
103162
  selections.forEach((selection) => {
103302
- if (selection.kind === Kind.FIELD) {
103163
+ if (selection.kind === Kind$1.FIELD) {
103303
103164
  const fieldName = selection.name.value;
103304
103165
  const selectionAllowed = fieldName === "__typename";
103305
103166
  if (!selectionAllowed) {
@@ -103336,12 +103197,12 @@ function augmentUnionLikeSelections(input, possibleTypes) {
103336
103197
  selections: [...input.selections, ...augmentedSelections],
103337
103198
  fragments: augmentedFragments
103338
103199
  });
103339
- const typeSelections = result.selections.filter((selection) => selection.kind !== Kind.FIELD).map((selection) => {
103340
- if (selection.kind === Kind.INLINE_FRAGMENT) {
103200
+ const typeSelections = result.selections.filter((selection) => selection.kind !== Kind$1.FIELD).map((selection) => {
103201
+ if (selection.kind === Kind$1.INLINE_FRAGMENT) {
103341
103202
  return {
103342
103203
  ...selection,
103343
103204
  selectionSet: {
103344
- kind: Kind.SELECTION_SET,
103205
+ kind: Kind$1.SELECTION_SET,
103345
103206
  selections: selection.selectionSet.selections
103346
103207
  }
103347
103208
  };
@@ -103370,6 +103231,195 @@ const GraphQLQueryJsonSchema = {
103370
103231
  * For full license text, see the LICENSE.txt file
103371
103232
  */
103372
103233
 
103234
+ var Kind;
103235
+ (function(Kind2) {
103236
+ Kind2["NAME"] = "Name";
103237
+ Kind2["DOCUMENT"] = "Document";
103238
+ Kind2["OPERATION_DEFINITION"] = "OperationDefinition";
103239
+ Kind2["VARIABLE_DEFINITION"] = "VariableDefinition";
103240
+ Kind2["SELECTION_SET"] = "SelectionSet";
103241
+ Kind2["FIELD"] = "Field";
103242
+ Kind2["ARGUMENT"] = "Argument";
103243
+ Kind2["FRAGMENT_SPREAD"] = "FragmentSpread";
103244
+ Kind2["INLINE_FRAGMENT"] = "InlineFragment";
103245
+ Kind2["FRAGMENT_DEFINITION"] = "FragmentDefinition";
103246
+ Kind2["VARIABLE"] = "Variable";
103247
+ Kind2["INT"] = "IntValue";
103248
+ Kind2["FLOAT"] = "FloatValue";
103249
+ Kind2["STRING"] = "StringValue";
103250
+ Kind2["BOOLEAN"] = "BooleanValue";
103251
+ Kind2["NULL"] = "NullValue";
103252
+ Kind2["ENUM"] = "EnumValue";
103253
+ Kind2["LIST"] = "ListValue";
103254
+ Kind2["OBJECT"] = "ObjectValue";
103255
+ Kind2["OBJECT_FIELD"] = "ObjectField";
103256
+ Kind2["DIRECTIVE"] = "Directive";
103257
+ Kind2["NAMED_TYPE"] = "NamedType";
103258
+ Kind2["LIST_TYPE"] = "ListType";
103259
+ Kind2["NON_NULL_TYPE"] = "NonNullType";
103260
+ Kind2["SCHEMA_DEFINITION"] = "SchemaDefinition";
103261
+ Kind2["OPERATION_TYPE_DEFINITION"] = "OperationTypeDefinition";
103262
+ Kind2["SCALAR_TYPE_DEFINITION"] = "ScalarTypeDefinition";
103263
+ Kind2["OBJECT_TYPE_DEFINITION"] = "ObjectTypeDefinition";
103264
+ Kind2["FIELD_DEFINITION"] = "FieldDefinition";
103265
+ Kind2["INPUT_VALUE_DEFINITION"] = "InputValueDefinition";
103266
+ Kind2["INTERFACE_TYPE_DEFINITION"] = "InterfaceTypeDefinition";
103267
+ Kind2["UNION_TYPE_DEFINITION"] = "UnionTypeDefinition";
103268
+ Kind2["ENUM_TYPE_DEFINITION"] = "EnumTypeDefinition";
103269
+ Kind2["ENUM_VALUE_DEFINITION"] = "EnumValueDefinition";
103270
+ Kind2["INPUT_OBJECT_TYPE_DEFINITION"] = "InputObjectTypeDefinition";
103271
+ Kind2["DIRECTIVE_DEFINITION"] = "DirectiveDefinition";
103272
+ Kind2["SCHEMA_EXTENSION"] = "SchemaExtension";
103273
+ Kind2["SCALAR_TYPE_EXTENSION"] = "ScalarTypeExtension";
103274
+ Kind2["OBJECT_TYPE_EXTENSION"] = "ObjectTypeExtension";
103275
+ Kind2["INTERFACE_TYPE_EXTENSION"] = "InterfaceTypeExtension";
103276
+ Kind2["UNION_TYPE_EXTENSION"] = "UnionTypeExtension";
103277
+ Kind2["ENUM_TYPE_EXTENSION"] = "EnumTypeExtension";
103278
+ Kind2["INPUT_OBJECT_TYPE_EXTENSION"] = "InputObjectTypeExtension";
103279
+ })(Kind || (Kind = {}));
103280
+ var TokenKind;
103281
+ (function(TokenKind2) {
103282
+ TokenKind2["SOF"] = "<SOF>";
103283
+ TokenKind2["EOF"] = "<EOF>";
103284
+ TokenKind2["BANG"] = "!";
103285
+ TokenKind2["DOLLAR"] = "$";
103286
+ TokenKind2["AMP"] = "&";
103287
+ TokenKind2["PAREN_L"] = "(";
103288
+ TokenKind2["PAREN_R"] = ")";
103289
+ TokenKind2["SPREAD"] = "...";
103290
+ TokenKind2["COLON"] = ":";
103291
+ TokenKind2["EQUALS"] = "=";
103292
+ TokenKind2["AT"] = "@";
103293
+ TokenKind2["BRACKET_L"] = "[";
103294
+ TokenKind2["BRACKET_R"] = "]";
103295
+ TokenKind2["BRACE_L"] = "{";
103296
+ TokenKind2["PIPE"] = "|";
103297
+ TokenKind2["BRACE_R"] = "}";
103298
+ TokenKind2["NAME"] = "Name";
103299
+ TokenKind2["INT"] = "Int";
103300
+ TokenKind2["FLOAT"] = "Float";
103301
+ TokenKind2["STRING"] = "String";
103302
+ TokenKind2["BLOCK_STRING"] = "BlockString";
103303
+ TokenKind2["COMMENT"] = "Comment";
103304
+ })(TokenKind || (TokenKind = {}));
103305
+ const QueryDocumentKeys = {
103306
+ Name: [],
103307
+ Document: ["definitions"],
103308
+ OperationDefinition: [
103309
+ "name",
103310
+ "variableDefinitions",
103311
+ "directives",
103312
+ "selectionSet"
103313
+ ],
103314
+ VariableDefinition: ["variable", "type", "defaultValue", "directives"],
103315
+ Variable: ["name"],
103316
+ SelectionSet: ["selections"],
103317
+ Field: ["alias", "name", "arguments", "directives", "selectionSet"],
103318
+ Argument: ["name", "value"],
103319
+ FragmentSpread: ["name", "directives"],
103320
+ InlineFragment: ["typeCondition", "directives", "selectionSet"],
103321
+ FragmentDefinition: [
103322
+ "name",
103323
+ // Note: fragment variable definitions are deprecated and will removed in v17.0.0
103324
+ "variableDefinitions",
103325
+ "typeCondition",
103326
+ "directives",
103327
+ "selectionSet"
103328
+ ],
103329
+ IntValue: [],
103330
+ FloatValue: [],
103331
+ StringValue: [],
103332
+ BooleanValue: [],
103333
+ NullValue: [],
103334
+ EnumValue: [],
103335
+ ListValue: ["values"],
103336
+ ObjectValue: ["fields"],
103337
+ ObjectField: ["name", "value"],
103338
+ Directive: ["name", "arguments"],
103339
+ NamedType: ["name"],
103340
+ ListType: ["type"],
103341
+ NonNullType: ["type"],
103342
+ SchemaDefinition: ["description", "directives", "operationTypes"],
103343
+ OperationTypeDefinition: ["type"],
103344
+ ScalarTypeDefinition: ["description", "name", "directives"],
103345
+ ObjectTypeDefinition: [
103346
+ "description",
103347
+ "name",
103348
+ "interfaces",
103349
+ "directives",
103350
+ "fields"
103351
+ ],
103352
+ FieldDefinition: ["description", "name", "arguments", "type", "directives"],
103353
+ InputValueDefinition: [
103354
+ "description",
103355
+ "name",
103356
+ "type",
103357
+ "defaultValue",
103358
+ "directives"
103359
+ ],
103360
+ InterfaceTypeDefinition: [
103361
+ "description",
103362
+ "name",
103363
+ "interfaces",
103364
+ "directives",
103365
+ "fields"
103366
+ ],
103367
+ UnionTypeDefinition: ["description", "name", "directives", "types"],
103368
+ EnumTypeDefinition: ["description", "name", "directives", "values"],
103369
+ EnumValueDefinition: ["description", "name", "directives"],
103370
+ InputObjectTypeDefinition: ["description", "name", "directives", "fields"],
103371
+ DirectiveDefinition: ["description", "name", "arguments", "locations"],
103372
+ SchemaExtension: ["directives", "operationTypes"],
103373
+ ScalarTypeExtension: ["name", "directives"],
103374
+ ObjectTypeExtension: ["name", "interfaces", "directives", "fields"],
103375
+ InterfaceTypeExtension: ["name", "interfaces", "directives", "fields"],
103376
+ UnionTypeExtension: ["name", "directives", "types"],
103377
+ EnumTypeExtension: ["name", "directives", "values"],
103378
+ InputObjectTypeExtension: ["name", "directives", "fields"]
103379
+ };
103380
+ new Set(Object.keys(QueryDocumentKeys));
103381
+ var OperationTypeNode;
103382
+ (function(OperationTypeNode2) {
103383
+ OperationTypeNode2["QUERY"] = "query";
103384
+ OperationTypeNode2["MUTATION"] = "mutation";
103385
+ OperationTypeNode2["SUBSCRIPTION"] = "subscription";
103386
+ })(OperationTypeNode || (OperationTypeNode = {}));
103387
+ var DirectiveLocation;
103388
+ (function(DirectiveLocation2) {
103389
+ DirectiveLocation2["QUERY"] = "QUERY";
103390
+ DirectiveLocation2["MUTATION"] = "MUTATION";
103391
+ DirectiveLocation2["SUBSCRIPTION"] = "SUBSCRIPTION";
103392
+ DirectiveLocation2["FIELD"] = "FIELD";
103393
+ DirectiveLocation2["FRAGMENT_DEFINITION"] = "FRAGMENT_DEFINITION";
103394
+ DirectiveLocation2["FRAGMENT_SPREAD"] = "FRAGMENT_SPREAD";
103395
+ DirectiveLocation2["INLINE_FRAGMENT"] = "INLINE_FRAGMENT";
103396
+ DirectiveLocation2["VARIABLE_DEFINITION"] = "VARIABLE_DEFINITION";
103397
+ DirectiveLocation2["SCHEMA"] = "SCHEMA";
103398
+ DirectiveLocation2["SCALAR"] = "SCALAR";
103399
+ DirectiveLocation2["OBJECT"] = "OBJECT";
103400
+ DirectiveLocation2["FIELD_DEFINITION"] = "FIELD_DEFINITION";
103401
+ DirectiveLocation2["ARGUMENT_DEFINITION"] = "ARGUMENT_DEFINITION";
103402
+ DirectiveLocation2["INTERFACE"] = "INTERFACE";
103403
+ DirectiveLocation2["UNION"] = "UNION";
103404
+ DirectiveLocation2["ENUM"] = "ENUM";
103405
+ DirectiveLocation2["ENUM_VALUE"] = "ENUM_VALUE";
103406
+ DirectiveLocation2["INPUT_OBJECT"] = "INPUT_OBJECT";
103407
+ DirectiveLocation2["INPUT_FIELD_DEFINITION"] = "INPUT_FIELD_DEFINITION";
103408
+ })(DirectiveLocation || (DirectiveLocation = {}));
103409
+ const referenceMap = /* @__PURE__ */ new WeakMap();
103410
+ const astResolver = function(astReference) {
103411
+ return referenceMap.get(astReference);
103412
+ };
103413
+ function resolveAst(ast) {
103414
+ if (ast === null || ast === void 0) {
103415
+ return;
103416
+ }
103417
+ const result = astResolver(ast);
103418
+ if (result === void 0) {
103419
+ throw new Error("Could not resolve AST. Did you parse the query with gql?");
103420
+ }
103421
+ return result;
103422
+ }
103373
103423
 
103374
103424
  /**
103375
103425
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -103383,10 +103433,8 @@ const GraphQLQueryJsonSchema = {
103383
103433
  * All rights reserved.
103384
103434
  * For full license text, see the LICENSE.txt file
103385
103435
  */
103386
- const { create: create$1$1, freeze: freeze$1$1, keys: keys$1$1, entries: entries$1 } = Object;
103387
- const { isArray: isArray$2$1 } = Array;
103388
- const WeakSetConstructor = WeakSet;
103389
- let Ok$1 = class Ok {
103436
+ const { hasOwnProperty: hasOwnProperty$2 } = Object.prototype;
103437
+ class Ok {
103390
103438
  constructor(value) {
103391
103439
  this.value = value;
103392
103440
  }
@@ -103396,576 +103444,70 @@ let Ok$1 = class Ok {
103396
103444
  isErr() {
103397
103445
  return !this.isOk();
103398
103446
  }
103399
- };
103400
- const ok$1 = (value) => new Ok$1(value);
103401
- function isResult(value) {
103402
- return value != null && typeof value === "object" && "isOk" in value && "isErr" in value && typeof value.isOk === "function" && typeof value.isErr === "function" && (value.isOk() === true && value.isErr() === false && "value" in value || value.isOk() === false && value.isErr() === true && "error" in value);
103403
- }
103404
- function isSubscribable(obj) {
103405
- return typeof obj === "object" && obj !== null && "subscribe" in obj && typeof obj.subscribe === "function" && "refresh" in obj && typeof obj.refresh === "function";
103406
103447
  }
103407
- function isSubscribableResult(x) {
103408
- if (!isResult(x)) {
103409
- return false;
103410
- }
103411
- return isSubscribable(x.isOk() ? x.value : x.error);
103412
- }
103413
- const deeplyFrozen = new WeakSetConstructor();
103414
- function deepFreeze(value) {
103415
- if (typeof value !== "object" || value === null || deeplyFrozen.has(value)) {
103416
- return;
103417
- }
103418
- deeplyFrozen.add(value);
103419
- if (isArray$2$1(value)) {
103420
- for (let i = 0, len = value.length; i < len; i += 1) {
103421
- deepFreeze(value[i]);
103422
- }
103423
- } else {
103424
- const keys$1$1$1 = keys$1$1(value);
103425
- for (let i = 0, len = keys$1$1$1.length; i < len; i += 1) {
103426
- deepFreeze(value[keys$1$1$1[i]]);
103427
- }
103428
- }
103429
- freeze$1$1(value);
103430
- }
103431
-
103432
- /*!
103433
- * Copyright (c) 2022, Salesforce, Inc.,
103434
- * All rights reserved.
103435
- * For full license text, see the LICENSE.txt file
103436
- */
103437
- class Sanitizer {
103438
- constructor(obj) {
103439
- this.obj = obj;
103440
- this.copy = {};
103441
- this.currentPath = {
103442
- key: "",
103443
- value: obj,
103444
- parent: null,
103445
- data: this.copy
103446
- };
103447
- }
103448
- sanitize() {
103449
- const sanitizer = this;
103450
- JSON.stringify(this.obj, function(key, value) {
103451
- if (key === "") {
103452
- return value;
103453
- }
103454
- const parent = this;
103455
- if (parent !== sanitizer.currentPath.value) {
103456
- sanitizer.exit(parent);
103457
- }
103458
- if (typeof value === "object" && value !== null) {
103459
- sanitizer.enter(key, value);
103460
- return value;
103461
- }
103462
- sanitizer.currentPath.data[key] = value;
103463
- return value;
103464
- });
103465
- return this.copy;
103466
- }
103467
- enter(key, value) {
103468
- const { currentPath: parentPath } = this;
103469
- const data = parentPath.data[key] = Array.isArray(value) ? [] : {};
103470
- this.currentPath = {
103471
- key,
103472
- value,
103473
- parent: parentPath,
103474
- data
103475
- };
103476
- }
103477
- exit(parent) {
103478
- while (this.currentPath.value !== parent) {
103479
- this.currentPath = this.currentPath.parent || this.currentPath;
103480
- }
103481
- }
103482
- }
103483
- function sanitize(obj) {
103484
- return new Sanitizer(obj).sanitize();
103485
- }
103486
- function isUserVisibleError$1(error) {
103487
- return error instanceof Error && "type" in error && error.type === "user-visible";
103488
- }
103489
- function emitError(callback, error) {
103490
- logError$1(error);
103491
- callback({ data: void 0, error: buildUserlandError(error) });
103492
- }
103493
- function buildUserlandError(error) {
103494
- if (isUserVisibleError$1(error)) {
103495
- return error.data;
103448
+ class Err {
103449
+ constructor(error) {
103450
+ this.error = error;
103496
103451
  }
103497
- return new Error("Internal error in Lightning Data Service adapter occurred.");
103498
- }
103499
- function logError$1(error) {
103500
- if (isUserVisibleError$1(error)) {
103501
- return;
103452
+ isOk() {
103453
+ return false;
103502
103454
  }
103503
- console.error("OneStore Command threw an error that we did not expect", error);
103504
- }
103505
- const supportedCachePolicyTypes = ["no-cache", "only-if-cached"];
103506
- function requestContextIsSupportedCachePolicy(requestContext) {
103507
- return typeof requestContext === "object" && requestContext !== null && "cachePolicy" in requestContext && typeof requestContext.cachePolicy === "object" && requestContext.cachePolicy !== null && "type" in requestContext.cachePolicy && typeof requestContext.cachePolicy.type === "string" && supportedCachePolicyTypes.includes(
103508
- requestContext.cachePolicy.type
103509
- );
103510
- }
103511
- function getOverridesForLegacyRequestContext(requestContext) {
103512
- if (requestContextIsSupportedCachePolicy(requestContext)) {
103513
- return { cacheControlConfig: { type: requestContext.cachePolicy.type } };
103455
+ isErr() {
103456
+ return !this.isOk();
103514
103457
  }
103515
- return {};
103516
103458
  }
103517
- class CommandWireAdapterConstructor {
103518
- constructor(callback, sourceContext, options) {
103519
- this.callback = callback;
103520
- this.connected = false;
103521
- this.exposeRefresh = false;
103522
- if (!(options == null ? void 0 : options.skipEmptyEmit)) {
103523
- this.emit();
103524
- }
103525
- }
103526
- connect() {
103527
- this.connected = true;
103528
- this.invokeAdapter();
103529
- }
103530
- disconnect() {
103531
- this.unsubscribe();
103532
- this.connected = false;
103533
- }
103534
- update(config, _context) {
103535
- this.unsubscribe();
103536
- this.config = sanitize(config);
103537
- this.invokeAdapter();
103538
- }
103539
- emit(result) {
103540
- try {
103541
- if (result === void 0) {
103542
- this.callback({ data: void 0, error: void 0 });
103543
- } else {
103544
- const consumerEmittedRefresh = () => {
103545
- if (!this.refresh) {
103546
- return Promise.resolve();
103547
- }
103548
- return new Promise((resolve, reject) => {
103549
- if (!this.refresh) {
103550
- resolve();
103551
- return;
103552
- }
103553
- this.refresh().then((res) => {
103554
- if (res.isOk()) {
103555
- resolve();
103556
- } else {
103557
- reject(
103558
- new Error(
103559
- "Internal error in Lightning Data Service adapter occurred: Failed to refresh data"
103560
- )
103561
- );
103562
- }
103563
- });
103564
- });
103565
- };
103566
- let consumerEmittedData = {
103567
- data: void 0,
103568
- error: void 0
103569
- };
103570
- if (this.exposeRefresh && this.refresh) {
103571
- consumerEmittedData.refresh = consumerEmittedRefresh;
103572
- }
103573
- if (result.isErr()) {
103574
- if (isSubscribableResult(result)) {
103575
- consumerEmittedData.error = result.error.failure;
103576
- } else {
103577
- consumerEmittedData.error = result.error;
103578
- }
103579
- } else {
103580
- if (isSubscribableResult(result)) {
103581
- deepFreeze(result.value.data);
103582
- consumerEmittedData.data = result.value.data;
103583
- } else {
103584
- deepFreeze(result.value);
103585
- consumerEmittedData.data = result.value;
103586
- }
103587
- }
103588
- this.callback(consumerEmittedData);
103589
- }
103590
- } catch (e) {
103591
- this.handleExecutionThrow(e);
103592
- }
103459
+ const ok = (value) => new Ok(value);
103460
+ const err = (err2) => new Err(err2);
103461
+ function resolvedPromiseLike(result) {
103462
+ if (isPromiseLike(result)) {
103463
+ return result.then((nextResult) => nextResult);
103593
103464
  }
103594
- invokeAdapter() {
103595
- if (!this.connected || this.config === void 0) {
103596
- return;
103597
- }
103598
- if (this.configSchema) {
103465
+ return {
103466
+ then: (onFulfilled, _onRejected) => {
103599
103467
  try {
103600
- assertIsValid(this.config, this.configSchema);
103601
- } catch (err2) {
103602
- if (isIncompleteConfigError(err2)) {
103603
- return;
103468
+ return resolvedPromiseLike(onFulfilled(result));
103469
+ } catch (e) {
103470
+ if (onFulfilled === void 0) {
103471
+ return resolvedPromiseLike(result);
103604
103472
  }
103605
- throw err2;
103473
+ return rejectedPromiseLike(e);
103606
103474
  }
103607
103475
  }
103608
- const initialConfig = this.config;
103609
- const command = this.getCommand();
103610
- try {
103611
- command.execute().then((result) => {
103612
- if (!this.connected || this.config !== initialConfig) {
103613
- return;
103614
- }
103615
- this.refresh = void 0;
103616
- if (result.isOk()) {
103617
- if (isSubscribableResult(result)) {
103618
- const value = result.value;
103619
- this.unsubscriber = value.subscribe((updatedResult) => {
103620
- if (!this.connected || this.config !== initialConfig) {
103621
- this.unsubscribe();
103622
- return;
103623
- }
103624
- this.emit(updatedResult);
103625
- });
103626
- this.refresh = value.refresh;
103627
- this.emit(ok$1(value.data));
103628
- } else {
103629
- this.emit(result);
103630
- }
103631
- } else {
103632
- if (isSubscribableResult(result)) {
103633
- const value = result.error;
103634
- this.unsubscriber = value.subscribe((updatedResult) => {
103635
- if (!this.connected || this.config !== initialConfig) {
103636
- this.unsubscribe();
103637
- return;
103638
- }
103639
- this.emit(updatedResult);
103640
- });
103641
- this.refresh = value.refresh;
103642
- this.emit(result);
103643
- } else {
103644
- this.unsubscriber = () => {
103645
- };
103646
- this.emit(result);
103647
- }
103648
- }
103649
- });
103650
- } catch (e) {
103651
- this.handleExecutionThrow(e);
103652
- }
103653
- }
103654
- handleExecutionThrow(error) {
103655
- emitError(this.callback, error);
103656
- }
103657
- unsubscribe() {
103658
- if (this.unsubscriber) {
103659
- this.unsubscriber();
103660
- delete this.unsubscriber;
103661
- }
103662
- }
103663
- }
103664
- function isIncompleteConfigError(err2) {
103665
- return err2 instanceof MissingRequiredPropertyError || err2 instanceof JsonSchemaViolationError && err2.validationErrors.find(
103666
- (validationError) => validationError instanceof MissingRequiredPropertyError
103667
- ) !== void 0;
103668
- }
103669
- function findExecutableOperation(document, operationName) {
103670
- const operations = document.definitions.filter(
103671
- (def) => def.kind === Kind$1.OPERATION_DEFINITION
103672
- );
103673
- if (operations.length === 0) {
103674
- return void 0;
103675
- }
103676
- if (operations.length === 1 && !operationName) {
103677
- return operations[0];
103678
- }
103679
- if (operationName) {
103680
- return operations.find((op) => {
103681
- var _a;
103682
- return ((_a = op.name) == null ? void 0 : _a.value) === operationName;
103683
- });
103684
- }
103685
- return void 0;
103686
- }
103687
- function validateGraphQLOperations(config, options) {
103688
- const executableOperation = findExecutableOperation(config.query, config.operationName);
103689
- if (executableOperation) {
103690
- const operationType = executableOperation.operation;
103691
- if (!options.acceptedOperations.includes(operationType)) {
103692
- const operationTypeCapitalized = operationType.charAt(0).toUpperCase() + operationType.slice(1);
103693
- throw new Error(
103694
- `${operationTypeCapitalized} operations are not supported in this context`
103695
- );
103696
- }
103697
- }
103698
- }
103699
- function resolveAst(ast) {
103700
- if (ast === null || ast === void 0) {
103701
- return;
103702
- }
103703
- const result = astResolver(ast);
103704
- if (result === void 0) {
103705
- throw new Error("Could not resolve AST. Did you parse the query with gql?");
103706
- }
103707
- return result;
103708
- }
103709
- function wrapConfigAndVerify(config, options) {
103710
- if (config == null ? void 0 : config.query) {
103711
- config = { ...config, query: resolveAst(config.query) };
103712
- if (config.query === void 0) {
103713
- throw new Error("Internal error in GraphQL adapter occurred: Unable to resolve query");
103714
- }
103715
- validateGraphQLOperations(config, {
103716
- acceptedOperations: (options == null ? void 0 : options.acceptedOperations) ?? ["query"]
103717
- });
103718
- }
103719
- return config;
103720
- }
103721
- function toGraphQLResponseFromFailure$1(failure) {
103722
- if (isUserVisibleError$1(failure)) {
103723
- return {
103724
- data: failure.data.data,
103725
- errors: failure.data.errors
103726
- };
103727
- }
103728
- logError$1(failure);
103729
- return {
103730
- data: void 0,
103731
- errors: [{ message: "Internal error in GraphQL adapter occurred", locations: [] }]
103732
103476
  };
103733
103477
  }
103734
- class GraphQLCommandWireAdapterConstructor extends CommandWireAdapterConstructor {
103735
- emit(result) {
103736
- try {
103737
- if (result === void 0) {
103738
- this.callback({ data: void 0, errors: void 0 });
103739
- } else {
103740
- const consumerEmittedRefresh = () => {
103741
- if (!this.refresh) {
103742
- return Promise.resolve();
103743
- }
103744
- return new Promise((resolve, reject) => {
103745
- if (!this.refresh) {
103746
- resolve();
103747
- return;
103748
- }
103749
- this.refresh().then((res) => {
103750
- if (res.isOk()) {
103751
- resolve();
103752
- } else {
103753
- reject(
103754
- new Error(
103755
- "Internal error in GraphQL adapter occurred: Failed to refresh GraphQL data"
103756
- )
103757
- );
103758
- }
103759
- });
103760
- });
103761
- };
103762
- let consumerEmittedData = {
103763
- data: void 0,
103764
- errors: void 0
103765
- };
103766
- if (this.exposeRefresh && this.refresh) {
103767
- consumerEmittedData.refresh = consumerEmittedRefresh;
103768
- }
103769
- if (result.isErr()) {
103770
- const failure = isSubscribableResult(result) ? result.error.failure : result.error;
103771
- const resp = toGraphQLResponseFromFailure$1(failure);
103772
- consumerEmittedData.data = resp.data;
103773
- consumerEmittedData.errors = resp.errors;
103774
- } else {
103775
- consumerEmittedData.data = result.value.data;
103776
- }
103777
- deepFreeze(consumerEmittedData);
103778
- this.callback(consumerEmittedData);
103779
- }
103780
- } catch (e) {
103781
- logError$1(e);
103782
- this.handleExecutionThrow(e);
103783
- }
103784
- }
103785
- handleExecutionThrow(e) {
103786
- logError$1(e);
103787
- this.callback({
103788
- data: void 0,
103789
- errors: [{ message: "Internal error in GraphQL adapter occurred", locations: [] }]
103790
- });
103791
- }
103792
- update(config, _context) {
103793
- this.unsubscribe();
103794
- const resolvedQuery = resolveAst(config.query);
103795
- if (resolvedQuery) {
103796
- validateGraphQLOperations(
103797
- { query: resolvedQuery, operationName: config == null ? void 0 : config.operationName },
103798
- { acceptedOperations: ["query"] }
103799
- );
103800
- }
103801
- this.config = {
103802
- ...sanitize(config),
103803
- query: resolvedQuery
103804
- };
103805
- this.invokeAdapter();
103478
+ function rejectedPromiseLike(reason) {
103479
+ if (isPromiseLike(reason)) {
103480
+ return reason.then((nextResult) => nextResult);
103806
103481
  }
103807
- }
103808
- function buildAsyncGraphQLImperativeInvoker(getCommand, exposeRefresh = false) {
103809
- return async (...params) => {
103810
- try {
103811
- if (params.length) {
103812
- params[0] = wrapConfigAndVerify(params[0]);
103813
- }
103814
- const command = getCommand({ params, assertIsValid });
103815
- const result = await command.execute();
103816
- const consumerEmittedData = {
103817
- data: void 0,
103818
- errors: void 0
103819
- };
103820
- if (result.isOk()) {
103821
- deepFreeze(result.value);
103822
- consumerEmittedData.data = result.value.data.data;
103823
- consumerEmittedData.subscribe = (cb) => {
103824
- result.value.subscribe((res) => {
103825
- const consumerEmittedData2 = {
103826
- data: void 0,
103827
- errors: void 0
103828
- };
103829
- if (res.isOk()) {
103830
- consumerEmittedData2.data = res.value.data;
103831
- } else {
103832
- if (isUserVisibleError$1(res.error)) {
103833
- consumerEmittedData2.data = res.error.data.data;
103834
- consumerEmittedData2.errors = res.error.data.errors;
103835
- } else {
103836
- logError$1(res.error);
103837
- consumerEmittedData2.errors = [
103838
- {
103839
- message: "Internal error in GraphQL adapter occurred",
103840
- locations: []
103841
- }
103842
- ];
103843
- }
103844
- }
103845
- cb(consumerEmittedData2);
103846
- });
103847
- };
103848
- if (exposeRefresh) {
103849
- consumerEmittedData.refresh = () => {
103850
- return new Promise((resolve, reject) => {
103851
- try {
103852
- result.value.refresh().then((res) => {
103853
- if (res.isOk()) {
103854
- resolve();
103855
- } else {
103856
- reject(
103857
- new Error(
103858
- "Internal error in GraphQL adapter occurred: Failed to refresh GraphQL data"
103859
- )
103860
- );
103861
- }
103862
- });
103863
- } catch (error) {
103864
- logError$1(error);
103865
- reject(
103866
- new Error(
103867
- "Internal error in GraphQL adapter occurred: Failed to refresh GraphQL data"
103868
- )
103869
- );
103870
- }
103871
- });
103872
- };
103482
+ return {
103483
+ then: (_onFulfilled, onRejected) => {
103484
+ if (typeof onRejected === "function") {
103485
+ try {
103486
+ return resolvedPromiseLike(onRejected(reason));
103487
+ } catch (e) {
103488
+ return rejectedPromiseLike(e);
103873
103489
  }
103874
- } else {
103875
- const resp = toGraphQLResponseFromFailure$1(result.error.failure);
103876
- consumerEmittedData.data = resp.data;
103877
- consumerEmittedData.errors = resp.errors;
103878
103490
  }
103879
- return consumerEmittedData;
103880
- } catch (error) {
103881
- logError$1(error);
103882
- return {
103883
- data: void 0,
103884
- errors: [{ message: "Internal error in GraphQL adapter occurred", locations: [] }]
103885
- };
103491
+ return rejectedPromiseLike(reason);
103886
103492
  }
103887
103493
  };
103888
103494
  }
103889
- function buildAsyncGraphQLImperativeLegacyInvoker(getCommand) {
103890
- const invoke = async (config, requestContext, callback) => {
103891
- config = wrapConfigAndVerify(config);
103892
- const command = getCommand({ config, assertIsValid });
103893
- try {
103894
- const overrides = getOverridesForLegacyRequestContext(requestContext);
103895
- const result = await command.execute(overrides);
103896
- const consumerEmittedData = {
103897
- data: void 0,
103898
- errors: void 0
103899
- };
103900
- if (result.isOk()) {
103901
- deepFreeze(result.value);
103902
- consumerEmittedData.data = result.value.data.data;
103903
- } else {
103904
- const { data, errors } = toGraphQLResponseFromFailure$1(result.error.failure);
103905
- consumerEmittedData.data = data;
103906
- consumerEmittedData.errors = errors;
103907
- }
103908
- callback(consumerEmittedData);
103909
- } catch (error) {
103910
- logError$1(error);
103911
- callback({
103912
- data: void 0,
103913
- errors: [{ message: "Internal error in GraphQL adapter occurred", locations: [] }]
103914
- });
103915
- }
103916
- };
103917
- const subscribe = (config, requestContext, callback) => {
103918
- config = wrapConfigAndVerify(config);
103919
- const command = getCommand({ config, assertIsValid });
103920
- let unsubscribe = () => {
103921
- };
103922
- const overrides = getOverridesForLegacyRequestContext(requestContext);
103923
- command.execute(overrides).then((result) => {
103924
- const consumerEmittedData = {
103925
- data: void 0,
103926
- errors: void 0
103927
- };
103928
- if (result.isOk()) {
103929
- deepFreeze(result.value);
103930
- consumerEmittedData.data = result.value.data.data;
103931
- unsubscribe = result.value.subscribe(
103932
- (res) => {
103933
- handleEmit(res, callback);
103934
- }
103935
- );
103936
- } else {
103937
- const { data, errors } = toGraphQLResponseFromFailure$1(result.error.failure);
103938
- consumerEmittedData.data = data;
103939
- consumerEmittedData.errors = errors;
103940
- unsubscribe = result.error.subscribe(
103941
- (res) => {
103942
- handleEmit(res, callback);
103943
- }
103944
- );
103945
- }
103946
- callback(consumerEmittedData);
103947
- });
103948
- return () => {
103949
- unsubscribe();
103950
- };
103951
- };
103952
- return { invoke, subscribe };
103495
+ function isPromiseLike(x) {
103496
+ return typeof (x == null ? void 0 : x.then) === "function";
103953
103497
  }
103954
- function handleEmit(res, callback) {
103955
- const consumerEmittedData = {
103956
- data: void 0,
103957
- errors: void 0
103958
- };
103959
- if (res.isOk()) {
103960
- consumerEmittedData.data = res.value.data;
103961
- } else {
103962
- const { data, errors } = toGraphQLResponseFromFailure$1(res.error);
103963
- consumerEmittedData.data = data;
103964
- consumerEmittedData.errors = errors;
103498
+ class InternalError extends Error {
103499
+ constructor(data) {
103500
+ super();
103501
+ this.data = data;
103502
+ this.type = "internal";
103965
103503
  }
103966
- callback(consumerEmittedData);
103967
103504
  }
103968
- // version: 1.402.0-566b6c5389
103505
+ function applyDecorators(baseCommand, decorators, options) {
103506
+ if (!decorators || decorators.length === 0) {
103507
+ return baseCommand;
103508
+ }
103509
+ return decorators.reduce((command, decorator) => decorator(command, options), baseCommand);
103510
+ }
103969
103511
 
103970
103512
  class Analytics__AnalyticsBrowseRepository extends UnidentifiableGraphQLTypeRepository {
103971
103513
  constructor(services, typeRegistry) {
@@ -107321,81 +106863,6 @@ class GraphQLTypeRegistry {
107321
106863
  }
107322
106864
  }
107323
106865
 
107324
- /*!
107325
- * Copyright (c) 2022, Salesforce, Inc.,
107326
- * All rights reserved.
107327
- * For full license text, see the LICENSE.txt file
107328
- */
107329
- const { hasOwnProperty: hasOwnProperty$2 } = Object.prototype;
107330
- class Ok {
107331
- constructor(value) {
107332
- this.value = value;
107333
- }
107334
- isOk() {
107335
- return true;
107336
- }
107337
- isErr() {
107338
- return !this.isOk();
107339
- }
107340
- }
107341
- class Err {
107342
- constructor(error) {
107343
- this.error = error;
107344
- }
107345
- isOk() {
107346
- return false;
107347
- }
107348
- isErr() {
107349
- return !this.isOk();
107350
- }
107351
- }
107352
- const ok = (value) => new Ok(value);
107353
- const err = (err2) => new Err(err2);
107354
- function resolvedPromiseLike(result) {
107355
- if (isPromiseLike(result)) {
107356
- return result.then((nextResult) => nextResult);
107357
- }
107358
- return {
107359
- then: (onFulfilled, _onRejected) => {
107360
- try {
107361
- return resolvedPromiseLike(onFulfilled(result));
107362
- } catch (e) {
107363
- if (onFulfilled === void 0) {
107364
- return resolvedPromiseLike(result);
107365
- }
107366
- return rejectedPromiseLike(e);
107367
- }
107368
- }
107369
- };
107370
- }
107371
- function rejectedPromiseLike(reason) {
107372
- if (isPromiseLike(reason)) {
107373
- return reason.then((nextResult) => nextResult);
107374
- }
107375
- return {
107376
- then: (_onFulfilled, onRejected) => {
107377
- if (typeof onRejected === "function") {
107378
- try {
107379
- return resolvedPromiseLike(onRejected(reason));
107380
- } catch (e) {
107381
- return rejectedPromiseLike(e);
107382
- }
107383
- }
107384
- return rejectedPromiseLike(reason);
107385
- }
107386
- };
107387
- }
107388
- function isPromiseLike(x) {
107389
- return typeof (x == null ? void 0 : x.then) === "function";
107390
- }
107391
- class InternalError extends Error {
107392
- constructor(data) {
107393
- super();
107394
- this.data = data;
107395
- this.type = "internal";
107396
- }
107397
- }
107398
-
107399
106866
  function buildGenericTypeFieldDef(selection, fields, staticFieldNames, typename) {
107400
106867
  // If the field is not a category field, return the base field def for the field
107401
106868
  if (staticFieldNames.includes(selection.name.value)) {
@@ -115465,36 +114932,6 @@ function cloneConfig(config) {
115465
114932
  return cloned;
115466
114933
  }
115467
114934
 
115468
- class GraphQLCommandWireAdapterConstructorV1Import extends GraphQLCommandWireAdapterConstructor {
115469
- update(config, _context) {
115470
- const validatedConfig = validateNonQueryGraphQLConfig(config);
115471
- if (validatedConfig.isErr()) {
115472
- // config is incomplete, delay execution
115473
- return;
115474
- }
115475
- super.update(validatedConfig.value, _context);
115476
- }
115477
- }
115478
-
115479
- function buildAsyncGraphQLImperativeLegacyInvokerV1Import(getCommand) {
115480
- const { invoke: invokeOriginal, subscribe: subscribeOriginal } = buildAsyncGraphQLImperativeLegacyInvoker(getCommand);
115481
- const invoke = async (config, requestContext, callback) => {
115482
- const validatedConfig = validateNonQueryGraphQLConfig(config);
115483
- if (validatedConfig.isErr()) {
115484
- throw new Error(`Invalid configuration passed to GraphQL: ${validatedConfig.error}`);
115485
- }
115486
- return invokeOriginal(validatedConfig.value, requestContext, callback);
115487
- };
115488
- const subscribe = (config, requestContext, callback) => {
115489
- const validatedConfig = validateNonQueryGraphQLConfig(config);
115490
- if (validatedConfig.isErr()) {
115491
- throw new Error(`Invalid configuration passed to GraphQL: ${validatedConfig.error}`);
115492
- }
115493
- return subscribeOriginal(validatedConfig.value, requestContext, callback);
115494
- };
115495
- return { invoke, subscribe };
115496
- }
115497
-
115498
114935
  let graphql$1;
115499
114936
  let graphql_v1_import;
115500
114937
  let graphql_imperative$1;
@@ -115515,6 +114952,34 @@ const serviceRequirements = {
115515
114952
  type: 'pubSub',
115516
114953
  version: '1.0',
115517
114954
  },
114955
+ fetchNetworkCommandBaseClass: {
114956
+ type: 'fetchNetworkCommandBaseClass',
114957
+ version: '1.0',
114958
+ },
114959
+ legacyImperativeBindings: {
114960
+ type: 'legacyImperativeBindings',
114961
+ version: '1.0',
114962
+ },
114963
+ graphQLLegacyImperativeBindings: {
114964
+ type: 'graphQLLegacyImperativeBindings',
114965
+ version: '1.0',
114966
+ },
114967
+ graphQLImperativeBindings: {
114968
+ type: 'graphQLImperativeBindings',
114969
+ version: '1.0',
114970
+ },
114971
+ graphQLMutationBindings: {
114972
+ type: 'graphQLMutationBindings',
114973
+ version: '1.0',
114974
+ },
114975
+ lwcWireBindings: {
114976
+ type: 'lwcWireBindings',
114977
+ version: '1.0',
114978
+ },
114979
+ lwcGraphQLWireBindings: {
114980
+ type: 'lwcGraphQLWireBindings',
114981
+ version: '1.0',
114982
+ },
115518
114983
  auraGraphQLNormalizedCacheControlCommand: {
115519
114984
  type: 'auraGraphQLNormalizedCacheControlCommand',
115520
114985
  version: '1.0',
@@ -115552,46 +115017,44 @@ let provisionedCallback;
115552
115017
  getServices(serviceRequirements).then((services) => {
115553
115018
  const graphqlTypeRegistry = new CustomGraphQLTypeRegistry(services);
115554
115019
  const documentRootType = graphqlTypeRegistry.Query;
115555
- graphqlTypeRegistry.Mutation;
115556
- const graphql_ctor = services.instrumentCommand(buildCommandClass(services.auraGraphQLNormalizedCacheControlCommand), 'graphql');
115557
- graphql$1 = class extends GraphQLCommandWireAdapterConstructor {
115558
- constructor() {
115559
- super(...arguments);
115560
- this.configSchema = CONFIG_SCHEMA;
115561
- this.exposeRefresh = true;
115562
- }
115563
- getCommand() {
115564
- return new graphql_ctor(this.config, documentRootType, services);
115565
- }
115566
- };
115567
- graphql_v1_import = class extends GraphQLCommandWireAdapterConstructorV1Import {
115568
- constructor() {
115569
- super(...arguments);
115570
- this.configSchema = CONFIG_SCHEMA;
115571
- this.exposeRefresh = true;
115572
- }
115573
- getCommand() {
115574
- return new graphql_ctor(this.config, documentRootType, services);
115020
+ const mutationType = graphqlTypeRegistry.Mutation;
115021
+ const graphql_ctor = services.instrumentCommand(buildCommandClass(services.auraGraphQLNormalizedCacheControlCommand), 'graphqlCommand');
115022
+ graphql$1 = services.lwcGraphQLWireBindings.bind((config) => new graphql_ctor(config, documentRootType, services), CONFIG_SCHEMA, true);
115023
+ class GraphqlV1ImportAdapter extends graphql$1 {
115024
+ update(config, _context) {
115025
+ const validatedConfig = validateNonQueryGraphQLConfig(config);
115026
+ if (validatedConfig.isErr()) {
115027
+ // config is incomplete, delay execution
115028
+ return;
115029
+ }
115030
+ // @ts-expect-error super type at runtime
115031
+ super.update(validatedConfig.value, _context);
115575
115032
  }
115576
- };
115577
- const graphql_imperative_ctor = services.instrumentCommand(buildCommandClass(services.auraGraphQLNormalizedCacheControlCommand), 'graphql_imperative');
115578
- graphql_imperative$1 = buildAsyncGraphQLImperativeInvoker(({ params, assertIsValid }) => {
115033
+ }
115034
+ graphql_v1_import = GraphqlV1ImportAdapter;
115035
+ const graphql_imperative_ctor = services.instrumentCommand(buildCommandClass(services.auraGraphQLNormalizedCacheControlCommand), 'graphqlCommand');
115036
+ graphql_imperative$1 = services.graphQLImperativeBindings.bind(({ params, assertIsValid }) => {
115579
115037
  const config = params[0];
115038
+ const options = params[1];
115580
115039
  const _ = assertIsValid;
115581
115040
  _(config, CONFIG_SCHEMA);
115582
- return new graphql_imperative_ctor(config, documentRootType, services);
115583
- }, true);
115584
- graphql_imperative_legacy = buildAsyncGraphQLImperativeLegacyInvoker(({ config, assertIsValid }) => {
115041
+ const baseCommand = new graphql_imperative_ctor(config, documentRootType, services);
115042
+ return applyDecorators(baseCommand, [services.fetchNetworkCommandBaseClass.availableDecorators.abortable], options);
115043
+ }, false);
115044
+ graphql_imperative_legacy = services.graphQLLegacyImperativeBindings.bind(({ config, assertIsValid }) => {
115585
115045
  const _ = assertIsValid;
115586
115046
  _(config, CONFIG_SCHEMA);
115587
115047
  return new graphql_imperative_ctor(config, documentRootType, services);
115588
115048
  });
115589
- graphql_imperative_legacy_v1_import =
115590
- buildAsyncGraphQLImperativeLegacyInvokerV1Import(({ config, assertIsValid }) => {
115591
- const _ = assertIsValid;
115592
- _(config, CONFIG_SCHEMA);
115593
- return new graphql_imperative_ctor(config, documentRootType, services);
115594
- });
115049
+ graphql_imperative_legacy_v1_import = services.graphQLLegacyImperativeBindings.bind(({ config, assertIsValid }) => {
115050
+ const validatedConfig = validateNonQueryGraphQLConfig(config);
115051
+ if (validatedConfig.isErr()) {
115052
+ throw new Error(`Invalid configuration passed to GraphQL: ${validatedConfig.error}`);
115053
+ }
115054
+ const _ = assertIsValid;
115055
+ _(validatedConfig.value, CONFIG_SCHEMA);
115056
+ return new graphql_imperative_ctor(validatedConfig.value, documentRootType, services);
115057
+ });
115595
115058
  /*
115596
115059
  * State Manager
115597
115060
  */
@@ -115609,10 +115072,18 @@ getServices(serviceRequirements).then((services) => {
115609
115072
  return new graphql_state_manager_ctor(config, documentRootType, services);
115610
115073
  };
115611
115074
  graphql_state_manager = createStateManager(factory, ['query'], ['variables', 'operationName']);
115612
- services.instrumentCommand(buildCommandClass(services.auraGraphQLNormalizedCacheControlCommand), 'graphqlMutation');
115075
+ const executeMutation_ctor = services.instrumentCommand(buildCommandClass(services.auraGraphQLNormalizedCacheControlCommand), 'graphqlCommand');
115076
+ services.graphQLMutationBindings.bind(({ params, assertIsValid }) => {
115077
+ const config = params[0];
115078
+ const options = params[1];
115079
+ const _ = assertIsValid;
115080
+ _(config, CONFIG_SCHEMA);
115081
+ const baseCommand = new executeMutation_ctor(config, mutationType, services);
115082
+ return applyDecorators(baseCommand, [services.fetchNetworkCommandBaseClass.availableDecorators.abortable], options);
115083
+ });
115613
115084
  useOneStoreGraphQL = services.featureFlags?.get('useOneStoreGraphQL') ?? false;
115614
115085
  if (provisionedCallback) {
115615
- provisionedCallback(graphql$1, graphql_imperative$1, graphql_imperative_legacy, useOneStoreGraphQL);
115086
+ provisionedCallback(graphql$1, graphql_imperative$1, graphql_imperative_legacy, graphql_state_manager, useOneStoreGraphQL);
115616
115087
  }
115617
115088
  }, (_err) => { });
115618
115089
  function registerCallback(cb) {
@@ -115623,7 +115094,7 @@ function registerCallback(cb) {
115623
115094
  cb(graphql_v1_import, graphql_imperative$1, graphql_imperative_legacy_v1_import, graphql_state_manager, useOneStoreGraphQL);
115624
115095
  }
115625
115096
  }
115626
- // version: 1.402.0-566b6c5389
115097
+ // version: 1.403.0-5476a05446
115627
115098
 
115628
115099
  function createFragmentMap(documentNode) {
115629
115100
  const fragments = {};
@@ -142220,7 +141691,7 @@ function ingestTypeWithStrategy(astNode, state, isCursorConnectionType, { key, i
142220
141691
  const fieldKey = getSerializedKeyForField(requestedField, variables, fieldType);
142221
141692
  if (fieldType === undefined) {
142222
141693
  console.warn(`Unknown Field: ${requestedField}. This field or nested fields cannot participate in normalization`);
142223
- deepFreeze$2(fieldData);
141694
+ deepFreeze$1(fieldData);
142224
141695
  sink[fieldKey] = fieldData;
142225
141696
  continue;
142226
141697
  }
@@ -143249,7 +142720,7 @@ function selectTypeLinkWithPagination(resolvedLink, sel, fieldData, reader, key,
143249
142720
  }
143250
142721
  }
143251
142722
  }
143252
- deepFreeze$2(trimmedEdges);
142723
+ deepFreeze$1(trimmedEdges);
143253
142724
  const paginatedData = {
143254
142725
  data: {
143255
142726
  ...source,
@@ -144018,7 +143489,7 @@ function selectChildResourceParams(luvio, childResources, resourceParams) {
144018
143489
  reader.exitPath();
144019
143490
  }
144020
143491
  reader.assignNonScalar(sink, envelopePath, results);
144021
- deepFreeze$2(sink);
143492
+ deepFreeze$1(sink);
144022
143493
  reader.exitPath();
144023
143494
  return sink;
144024
143495
  },
@@ -144120,7 +143591,7 @@ function ingestSuccessChildResourceParams(luvio, childConfigs, childResourcePara
144120
143591
  const childSnapshotData = {
144121
143592
  results: childSnapshotDataResponses,
144122
143593
  };
144123
- deepFreeze$2(childSnapshotData);
143594
+ deepFreeze$1(childSnapshotData);
144124
143595
  return {
144125
143596
  childSnapshotData: childSnapshotData,
144126
143597
  seenRecords,
@@ -144848,7 +144319,7 @@ register$1({
144848
144319
  configuration: { ...configurationForGraphQLAdapters$1 },
144849
144320
  instrument: instrument$1,
144850
144321
  });
144851
- // version: 1.402.0-566b6c5389
144322
+ // version: 1.403.0-5476a05446
144852
144323
 
144853
144324
  // On core the unstable adapters are re-exported with different names,
144854
144325
  // we want to match them here.
@@ -145000,7 +144471,7 @@ withDefaultLuvio((luvio) => {
145000
144471
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
145001
144472
  graphQLImperative = ldsAdapter;
145002
144473
  });
145003
- // version: 1.402.0-566b6c5389
144474
+ // version: 1.403.0-5476a05446
145004
144475
 
145005
144476
  var gqlApi = /*#__PURE__*/Object.freeze({
145006
144477
  __proto__: null,
@@ -145799,7 +145270,7 @@ const callbacks$1 = [];
145799
145270
  function register(r) {
145800
145271
  callbacks$1.forEach((callback) => callback(r));
145801
145272
  }
145802
- // version: 1.402.0-bf9ae185ef
145273
+ // version: 1.403.0-bc09fbc54b
145803
145274
 
145804
145275
  /**
145805
145276
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -147115,4 +146586,4 @@ const { luvio } = getRuntime();
147115
146586
  setDefaultLuvio({ luvio });
147116
146587
 
147117
146588
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, importLuvioAdapterModule, importOneStoreAdapterModule, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
147118
- // version: 1.402.0-bf9ae185ef
146589
+ // version: 1.403.0-bc09fbc54b