@salesforce/lds-ads-bridge 1.303.0 → 1.305.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.
@@ -13,8 +13,8 @@ var SnapshotState;
13
13
  SnapshotState["Stale"] = "Stale";
14
14
  })(SnapshotState || (SnapshotState = {}));
15
15
 
16
- const { create: create$2, entries, freeze: freeze$2, keys: keys$3, values, assign: assign$2 } = Object;
17
- const { isArray: isArray$2 } = Array;
16
+ const { create: create$1, entries, freeze: freeze$1, keys: keys$2, values, assign: assign$1 } = Object;
17
+ const { isArray: isArray$1 } = Array;
18
18
  const { parse: parse$1, stringify: stringify$1 } = JSON;
19
19
  const WeakSetCtor = WeakSet;
20
20
 
@@ -27,18 +27,18 @@ function deepFreeze(value) {
27
27
  return;
28
28
  }
29
29
  deeplyFrozen.add(value);
30
- if (isArray$2(value)) {
30
+ if (isArray$1(value)) {
31
31
  for (let i = 0, len = value.length; i < len; i += 1) {
32
32
  deepFreeze(value[i]);
33
33
  }
34
34
  }
35
35
  else {
36
- const keys$1 = keys$3(value);
36
+ const keys$1 = keys$2(value);
37
37
  for (let i = 0, len = keys$1.length; i < len; i += 1) {
38
38
  deepFreeze(value[keys$1[i]]);
39
39
  }
40
40
  }
41
- freeze$2(value);
41
+ freeze$1(value);
42
42
  }
43
43
 
44
44
  Promise.resolve();
@@ -96,7 +96,7 @@ function stableJSONStringify(node) {
96
96
  }
97
97
  let i;
98
98
  let out;
99
- if (isArray$2(node)) {
99
+ if (isArray$1(node)) {
100
100
  out = '[';
101
101
  for (i = 0; i < node.length; i++) {
102
102
  if (i) {
@@ -109,7 +109,7 @@ function stableJSONStringify(node) {
109
109
  if (node === null) {
110
110
  return 'null';
111
111
  }
112
- const keys$1 = keys$3(node).sort();
112
+ const keys$1 = keys$2(node).sort();
113
113
  out = '';
114
114
  for (i = 0; i < keys$1.length; i++) {
115
115
  const key = keys$1[i];
@@ -419,16 +419,16 @@ function createResourceParamsImpl(config, configMetadata) {
419
419
  return acc;
420
420
  }, {});
421
421
  const resourceParams = {};
422
- if (keys$3(urlParams).length > 0) {
422
+ if (keys$2(urlParams).length > 0) {
423
423
  resourceParams[CONFIG_PROPERTY_URL_PARAMS] = urlParams;
424
424
  }
425
- if (keys$3(queryParams).length > 0) {
425
+ if (keys$2(queryParams).length > 0) {
426
426
  resourceParams[CONFIG_PROPERTY_QUERY_PARAMS] = queryParams;
427
427
  }
428
428
  if (bodyParams.length > 0) {
429
429
  resourceParams[CONFIG_PROPERTY_BODY] = actualBodyParams;
430
430
  }
431
- if (keys$3(headerParams).length > 0) {
431
+ if (keys$2(headerParams).length > 0) {
432
432
  resourceParams[CONFIG_PROPERTY_HEADERS] = headerParams;
433
433
  }
434
434
  return resourceParams;
@@ -481,7 +481,7 @@ const callbacks$1 = [];
481
481
  function register(r) {
482
482
  callbacks$1.forEach((callback) => callback(r));
483
483
  }
484
- // version: 1.303.0-a698c7cc67
484
+ // version: 1.305.0-ec970f4bea
485
485
 
486
486
  /**
487
487
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -4436,178 +4436,178 @@ keyMap(specifiedScalarTypes.concat(introspectionTypes), function (type) {
4436
4436
  /**
4437
4437
  * Environment Aware GraphQLBatch adapter
4438
4438
  */
4439
- let environmentAwareGraphQLBatchAdapter$1 = undefined;
4439
+ let environmentAwareGraphQLBatchAdapter = undefined;
4440
4440
  /**
4441
4441
  * Draft-aware GraphQL adapter
4442
4442
  */
4443
- let draftAwareGraphQLAdapter$1 = undefined;
4443
+ let draftAwareGraphQLAdapter = undefined;
4444
4444
  /**
4445
4445
  * Draft-aware createRecord adapter
4446
4446
  */
4447
- let draftAwareCreateRecordAdapter$1 = undefined;
4447
+ let draftAwareCreateRecordAdapter = undefined;
4448
4448
  /**
4449
4449
  * Draft-aware updateRecord adapter
4450
4450
  */
4451
- let draftAwareUpdateRecordAdapter$1 = undefined;
4451
+ let draftAwareUpdateRecordAdapter = undefined;
4452
4452
  /**
4453
4453
  * Draft-aware deleteRecord adapter
4454
4454
  */
4455
- let draftAwareDeleteRecordAdapter$1 = undefined;
4455
+ let draftAwareDeleteRecordAdapter = undefined;
4456
4456
  /**
4457
4457
  * Draft-aware createContentDocumentAndVersion adapter
4458
4458
  */
4459
- let draftAwareCreateContentDocumentAndVersionAdapter$1 = undefined;
4459
+ let draftAwareCreateContentDocumentAndVersionAdapter = undefined;
4460
4460
  /**
4461
4461
  * Draft-aware createContentVersion adapter
4462
4462
  */
4463
- let draftAwareCreateContentVersionAdapter$1 = undefined;
4463
+ let draftAwareCreateContentVersionAdapter = undefined;
4464
4464
  /**
4465
4465
  * Depth to which tracked fields will be added to a request that results from a cache miss.
4466
4466
  * A value of 0 inhibits the addition of tracked fields, 1 will add tracked fields that can
4467
4467
  * be reached by following 1 relationship from the root record, etc.
4468
4468
  * @defaultValue '5', replicates the current behavior
4469
4469
  */
4470
- let trackedFieldDepthOnCacheMiss$1 = 5;
4470
+ let trackedFieldDepthOnCacheMiss = 5;
4471
4471
  /**
4472
4472
  * Depth to which tracked fields will be added to a request that results from a merge conflict
4473
4473
  * A value of 0 inhibits the addition of tracked fields, 1 will add tracked fields that can
4474
4474
  * be reached by following 1 relationship from the root record, etc.
4475
4475
  * @defaultValue '5', replicates the current behavior
4476
4476
  */
4477
- let trackedFieldDepthOnCacheMergeConflict$1 = 5;
4477
+ let trackedFieldDepthOnCacheMergeConflict = 5;
4478
4478
  /**
4479
4479
  * Depth to which tracked fields will be added to a request that results from a notify change invocation by the consumer
4480
4480
  * A value of 0 inhibits the addition of tracked fields, 1 will add tracked fields that can
4481
4481
  * be reached by following 1 relationship from the root record, etc.
4482
4482
  * @defaultValue '5', replicates the current behavior
4483
4483
  */
4484
- let trackedFieldDepthOnNotifyChange$1 = 5;
4484
+ let trackedFieldDepthOnNotifyChange = 5;
4485
4485
  /**
4486
4486
  * Determines if we will only fetch the 'Id' field for the leaf relationship record
4487
4487
  * @defaultValue 'false', replicates the current behavior and fetches all fields in the store for the leaf relationship record
4488
4488
  */
4489
- let trackedFieldLeafNodeIdAndNameOnly$1 = false;
4489
+ let trackedFieldLeafNodeIdAndNameOnly = false;
4490
4490
  /**
4491
4491
  * One store enabled Get Object Info adapter
4492
4492
  */
4493
- let oneStoreGetObjectInfoAdapter$1 = undefined;
4493
+ let oneStoreGetObjectInfoAdapter = undefined;
4494
4494
  /**
4495
4495
  * One store enabled Get Object Infos adapter
4496
4496
  */
4497
- let oneStoreGetObjectInfosAdapter$1 = undefined;
4497
+ let oneStoreGetObjectInfosAdapter = undefined;
4498
4498
  /**
4499
4499
  * Determines when to include PDL strategies for Related Lists
4500
4500
  */
4501
- let relatedListsPredictionsEnabled$1 = false;
4501
+ let relatedListsPredictionsEnabled = false;
4502
4502
  /**
4503
4503
  * Defines the configuration API and is exposed internally as well as externally.
4504
4504
  * Configuration for one store enabled REST adapters only.
4505
4505
  */
4506
- const configurationForOneStoreEnabledAdapters$1 = {
4506
+ const configurationForOneStoreEnabledAdapters = {
4507
4507
  setGetObjectInfoAdapter: function (adapter) {
4508
- oneStoreGetObjectInfoAdapter$1 = adapter;
4508
+ oneStoreGetObjectInfoAdapter = adapter;
4509
4509
  },
4510
4510
  getGetObjectInfoAdapter: function () {
4511
- return oneStoreGetObjectInfoAdapter$1;
4511
+ return oneStoreGetObjectInfoAdapter;
4512
4512
  },
4513
4513
  setGetObjectInfosAdapter: function (adapter) {
4514
- oneStoreGetObjectInfosAdapter$1 = adapter;
4514
+ oneStoreGetObjectInfosAdapter = adapter;
4515
4515
  },
4516
4516
  getGetObjectInfosAdapter: function () {
4517
- return oneStoreGetObjectInfosAdapter$1;
4517
+ return oneStoreGetObjectInfosAdapter;
4518
4518
  },
4519
4519
  };
4520
4520
  /**
4521
4521
  * Defines the configuration API and is exposed internally as well as externally.
4522
4522
  * Configuration for REST adapters only.
4523
4523
  */
4524
- const configurationForRestAdapters$1 = {
4524
+ const configurationForRestAdapters = {
4525
4525
  setTrackedFieldDepthOnCacheMiss: function (trackedFieldDepthOnCacheMissParam) {
4526
- trackedFieldDepthOnCacheMiss$1 = trackedFieldDepthOnCacheMissParam;
4526
+ trackedFieldDepthOnCacheMiss = trackedFieldDepthOnCacheMissParam;
4527
4527
  },
4528
4528
  getTrackedFieldDepthOnCacheMiss: function () {
4529
- return trackedFieldDepthOnCacheMiss$1;
4529
+ return trackedFieldDepthOnCacheMiss;
4530
4530
  },
4531
4531
  setTrackedFieldDepthOnCacheMergeConflict: function (trackedFieldDepthOnCacheMergeConflictParam) {
4532
- trackedFieldDepthOnCacheMergeConflict$1 = trackedFieldDepthOnCacheMergeConflictParam;
4532
+ trackedFieldDepthOnCacheMergeConflict = trackedFieldDepthOnCacheMergeConflictParam;
4533
4533
  },
4534
4534
  getTrackedFieldDepthOnCacheMergeConflict: function () {
4535
- return trackedFieldDepthOnCacheMergeConflict$1;
4535
+ return trackedFieldDepthOnCacheMergeConflict;
4536
4536
  },
4537
4537
  setTrackedFieldDepthOnNotifyChange: function (trackedFieldDepthOnNotifyChangeParam) {
4538
- trackedFieldDepthOnNotifyChange$1 = trackedFieldDepthOnNotifyChangeParam;
4538
+ trackedFieldDepthOnNotifyChange = trackedFieldDepthOnNotifyChangeParam;
4539
4539
  },
4540
4540
  getTrackedFieldDepthOnNotifyChange: function () {
4541
- return trackedFieldDepthOnNotifyChange$1;
4541
+ return trackedFieldDepthOnNotifyChange;
4542
4542
  },
4543
4543
  setTrackedFieldLeafNodeIdAndNameOnly: function (trackedFieldLeafNodeIdAndNameOnlyParam) {
4544
- trackedFieldLeafNodeIdAndNameOnly$1 = trackedFieldLeafNodeIdAndNameOnlyParam;
4544
+ trackedFieldLeafNodeIdAndNameOnly = trackedFieldLeafNodeIdAndNameOnlyParam;
4545
4545
  },
4546
4546
  getTrackedFieldLeafNodeIdAndNameOnly: function () {
4547
- return trackedFieldLeafNodeIdAndNameOnly$1;
4547
+ return trackedFieldLeafNodeIdAndNameOnly;
4548
4548
  },
4549
4549
  // createRecord
4550
4550
  setDraftAwareCreateRecordAdapter: function (adapter) {
4551
- draftAwareCreateRecordAdapter$1 = adapter;
4551
+ draftAwareCreateRecordAdapter = adapter;
4552
4552
  },
4553
4553
  getDraftAwareCreateRecordAdapter: function () {
4554
- return draftAwareCreateRecordAdapter$1;
4554
+ return draftAwareCreateRecordAdapter;
4555
4555
  },
4556
4556
  // updateRecord
4557
4557
  setDraftAwareUpdateRecordAdapter: function (adapter) {
4558
- draftAwareUpdateRecordAdapter$1 = adapter;
4558
+ draftAwareUpdateRecordAdapter = adapter;
4559
4559
  },
4560
4560
  getDraftAwareUpdateRecordAdapter: function () {
4561
- return draftAwareUpdateRecordAdapter$1;
4561
+ return draftAwareUpdateRecordAdapter;
4562
4562
  },
4563
4563
  // deleteRecord
4564
4564
  setDraftAwareDeleteRecordAdapter: function (adapter) {
4565
- draftAwareDeleteRecordAdapter$1 = adapter;
4565
+ draftAwareDeleteRecordAdapter = adapter;
4566
4566
  },
4567
4567
  getDraftAwareDeleteRecordAdapter: function () {
4568
- return draftAwareDeleteRecordAdapter$1;
4568
+ return draftAwareDeleteRecordAdapter;
4569
4569
  },
4570
4570
  // createContentDocumentAndVersion
4571
4571
  setDraftAwareCreateContentDocumentAndVersionAdapter: function (adapter) {
4572
- draftAwareCreateContentDocumentAndVersionAdapter$1 = adapter;
4572
+ draftAwareCreateContentDocumentAndVersionAdapter = adapter;
4573
4573
  },
4574
4574
  getDraftAwareCreateContentDocumentAndVersionAdapter: function () {
4575
- return draftAwareCreateContentDocumentAndVersionAdapter$1;
4575
+ return draftAwareCreateContentDocumentAndVersionAdapter;
4576
4576
  },
4577
4577
  setRelatedListsPredictionsEnabled: function (f) {
4578
- relatedListsPredictionsEnabled$1 = f;
4578
+ relatedListsPredictionsEnabled = f;
4579
4579
  },
4580
4580
  areRelatedListsPredictionsEnabled: function () {
4581
- return relatedListsPredictionsEnabled$1 === true;
4581
+ return relatedListsPredictionsEnabled === true;
4582
4582
  },
4583
4583
  // createContentVersion
4584
4584
  setDraftAwareCreateContentVersionAdapter: function (adapter) {
4585
- draftAwareCreateContentVersionAdapter$1 = adapter;
4585
+ draftAwareCreateContentVersionAdapter = adapter;
4586
4586
  },
4587
4587
  getDraftAwareCreateContentVersionAdapter: function () {
4588
- return draftAwareCreateContentVersionAdapter$1;
4588
+ return draftAwareCreateContentVersionAdapter;
4589
4589
  },
4590
- ...configurationForOneStoreEnabledAdapters$1,
4590
+ ...configurationForOneStoreEnabledAdapters,
4591
4591
  };
4592
4592
  /**
4593
4593
  * Defines the configuration API and is exposed internally as well as externally.
4594
4594
  * Configuration for GraphQL adapters only.
4595
4595
  */
4596
- const configurationForGraphQLAdapters$1 = {
4596
+ const configurationForGraphQLAdapters = {
4597
4597
  setDraftAwareGraphQLAdapter: function (adapter) {
4598
- draftAwareGraphQLAdapter$1 = adapter;
4598
+ draftAwareGraphQLAdapter = adapter;
4599
4599
  },
4600
4600
  getDraftAwareGraphQLAdapter: function () {
4601
- return draftAwareGraphQLAdapter$1;
4601
+ return draftAwareGraphQLAdapter;
4602
4602
  },
4603
4603
  setEnvironmentAwareGraphQLBatchAdapter: function (adapter) {
4604
- environmentAwareGraphQLBatchAdapter$1 = adapter;
4604
+ environmentAwareGraphQLBatchAdapter = adapter;
4605
4605
  },
4606
4606
  getEnvironmentAwareGraphQLBatchAdapter: function () {
4607
- return environmentAwareGraphQLBatchAdapter$1;
4607
+ return environmentAwareGraphQLBatchAdapter;
4608
4608
  },
4609
4609
  };
4610
- const registrations$1 = new Set();
4610
+ const registrations = new Set();
4611
4611
  /**
4612
4612
  * lds-adapter-uiapi is special. The non-SFDC bundle combines REST and GQL adapters,
4613
4613
  * yet for SFDC those are separate bundles. So non-SFDC bundle (./main.ts) registers
@@ -4618,16 +4618,16 @@ const registrations$1 = new Set();
4618
4618
  * So we make this function that memoizes if it's been called before and only
4619
4619
  * actually registers once.
4620
4620
  */
4621
- function ensureRegisteredOnce$1(registration) {
4621
+ function ensureRegisteredOnce(registration) {
4622
4622
  const { id } = registration;
4623
- if (!registrations$1.has(id)) {
4623
+ if (!registrations.has(id)) {
4624
4624
  register(registration);
4625
- registrations$1.add(id);
4625
+ registrations.add(id);
4626
4626
  }
4627
4627
  }
4628
4628
 
4629
4629
  // For use by callers within this module to instrument interesting things.
4630
- let instrumentation$1 = {
4630
+ let instrumentation = {
4631
4631
  /**
4632
4632
  * Called when a set of record conflicts has been fully resolved. The
4633
4633
  * parameter indicates the number of server requests that were needed
@@ -4675,10 +4675,10 @@ let instrumentation$1 = {
4675
4675
  *
4676
4676
  * @param newInstrumentation instrumentation hooks to be overridden
4677
4677
  */
4678
- function instrument$1(newInstrumentation) {
4679
- instrumentation$1 = Object.assign(instrumentation$1, newInstrumentation);
4678
+ function instrument(newInstrumentation) {
4679
+ instrumentation = Object.assign(instrumentation, newInstrumentation);
4680
4680
  }
4681
- const { keys: ObjectKeys$1$1, create: ObjectCreate$1$1 } = Object;
4681
+ const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
4682
4682
  const { isArray: ArrayIsArray$1 } = Array;
4683
4683
  const { push: ArrayPrototypePush } = Array.prototype;
4684
4684
  const snapshotRefreshOptions = {
@@ -4706,7 +4706,7 @@ function getFetchResponseStatusText(status) {
4706
4706
  return `Unexpected HTTP Status Code: ${status}`;
4707
4707
  }
4708
4708
  }
4709
- function generateParamConfigMetadata$1(name, required, resourceType, typeCheckShape, isArrayShape = false, coerceFn) {
4709
+ function generateParamConfigMetadata(name, required, resourceType, typeCheckShape, isArrayShape = false, coerceFn) {
4710
4710
  return {
4711
4711
  name,
4712
4712
  required,
@@ -4716,7 +4716,7 @@ function generateParamConfigMetadata$1(name, required, resourceType, typeCheckSh
4716
4716
  coerceFn,
4717
4717
  };
4718
4718
  }
4719
- function buildAdapterValidationConfig$1(displayName, paramsMeta) {
4719
+ function buildAdapterValidationConfig(displayName, paramsMeta) {
4720
4720
  const required = paramsMeta.filter(p => p.required).map(p => p.name);
4721
4721
  const optional = paramsMeta.filter(p => !p.required).map(p => p.name);
4722
4722
  return {
@@ -4729,13 +4729,13 @@ function buildAdapterValidationConfig$1(displayName, paramsMeta) {
4729
4729
  }
4730
4730
  const keyPrefix = 'UiApi';
4731
4731
 
4732
- const { assign: assign$1, create: create$1, freeze: freeze$1, isFrozen: isFrozen$1, keys: keys$2 } = Object;
4732
+ const { assign, create, freeze, isFrozen, keys: keys$1 } = Object;
4733
4733
  const { hasOwnProperty: hasOwnProperty$1 } = Object.prototype;
4734
4734
  const { split, endsWith } = String.prototype;
4735
- const { isArray: isArray$1 } = Array;
4736
- const { concat: concat$1, filter: filter$1, includes: includes$1, push: push$2, reduce: reduce$1 } = Array.prototype;
4735
+ const { isArray } = Array;
4736
+ const { concat, filter, includes, push: push$1, reduce } = Array.prototype;
4737
4737
 
4738
- function isString$1(value) {
4738
+ function isString(value) {
4739
4739
  return typeof value === 'string';
4740
4740
  }
4741
4741
  /**
@@ -4746,18 +4746,18 @@ function isArrayOfNonEmptyStrings(value) {
4746
4746
  if (value.length === 0) {
4747
4747
  return false;
4748
4748
  }
4749
- return value.every((v) => isString$1(v) && v.trim().length > 0);
4749
+ return value.every((v) => isString(v) && v.trim().length > 0);
4750
4750
  }
4751
4751
  /**
4752
4752
  * @param value The array to dedupe
4753
4753
  * @returns An array without duplicates.
4754
4754
  */
4755
- function dedupe$1(value) {
4755
+ function dedupe(value) {
4756
4756
  const result = {};
4757
4757
  for (let i = 0, len = value.length; i < len; i += 1) {
4758
4758
  result[value[i]] = true;
4759
4759
  }
4760
- return keys$2(result);
4760
+ return keys$1(result);
4761
4761
  }
4762
4762
  /**
4763
4763
  * @param source The array of string to filter
@@ -4790,11 +4790,11 @@ function difference(source, compare) {
4790
4790
  return strings;
4791
4791
  }
4792
4792
 
4793
- function isObjectId$1(unknown) {
4793
+ function isObjectId(unknown) {
4794
4794
  if (typeof unknown !== 'object' || unknown === null) {
4795
4795
  return false;
4796
4796
  }
4797
- return isString$1(unknown.objectApiName);
4797
+ return isString(unknown.objectApiName);
4798
4798
  }
4799
4799
 
4800
4800
  /**
@@ -4802,7 +4802,7 @@ function isObjectId$1(unknown) {
4802
4802
  * @param value The value from which to get the object API name.
4803
4803
  * @returns The object API name.
4804
4804
  */
4805
- function getObjectApiName$1$1(value) {
4805
+ function getObjectApiName$1(value) {
4806
4806
  // Note: tightening validation logic changes behavior from userland getting
4807
4807
  // a server-provided error to the adapter noop'ing. In 224 we decided to not
4808
4808
  // change the behavior.
@@ -4812,18 +4812,18 @@ function getObjectApiName$1$1(value) {
4812
4812
  return trimmed;
4813
4813
  }
4814
4814
  }
4815
- else if (isObjectId$1(value)) {
4815
+ else if (isObjectId(value)) {
4816
4816
  return value.objectApiName.trim();
4817
4817
  }
4818
4818
  return undefined;
4819
4819
  }
4820
4820
 
4821
- function isFieldId$1(unknown) {
4821
+ function isFieldId(unknown) {
4822
4822
  if (typeof unknown !== 'object' || unknown === null) {
4823
4823
  return false;
4824
4824
  }
4825
4825
  const value = unknown;
4826
- return isString$1(value.objectApiName) && isString$1(value.fieldApiName);
4826
+ return isString(value.objectApiName) && isString(value.fieldApiName);
4827
4827
  }
4828
4828
  /**
4829
4829
  * Split the object API name and field API name from a qualified field name.
@@ -4847,18 +4847,18 @@ function splitQualifiedFieldApiName(fieldApiName) {
4847
4847
  * @param onlyQualifiedFieldNames - Whether or not this function should skip fieldApiName that do not include the delimiter '.'
4848
4848
  * @return The qualified field API name.
4849
4849
  */
4850
- function getFieldApiName$1(value, onlyQualifiedFieldNames = false) {
4850
+ function getFieldApiName(value, onlyQualifiedFieldNames = false) {
4851
4851
  // Note: tightening validation logic changes behavior from userland getting
4852
4852
  // a server-provided error to the adapter noop'ing. In 224 we decided to not
4853
4853
  // change the behavior. In 250 we decided to add the 'onlyQualifiedFieldName' flag to tighten the logic
4854
4854
  // optionally to avoid issues with persisted invalid field names.
4855
- if (isString$1(value)) {
4855
+ if (isString(value)) {
4856
4856
  const trimmed = value.trim();
4857
4857
  if (trimmed.length > 0 && (onlyQualifiedFieldNames ? trimmed.indexOf('.') > -1 : true)) {
4858
4858
  return trimmed;
4859
4859
  }
4860
4860
  }
4861
- else if (isFieldId$1(value)) {
4861
+ else if (isFieldId(value)) {
4862
4862
  return value.objectApiName + '.' + value.fieldApiName;
4863
4863
  }
4864
4864
  return undefined;
@@ -4870,24 +4870,24 @@ function getFieldApiName$1(value, onlyQualifiedFieldNames = false) {
4870
4870
  * @param options Option bag. onlyQualifiedFieldNames is a boolean that allows this function to skip returning invalid FieldApiNames.
4871
4871
  * @returns The field API name.
4872
4872
  */
4873
- function getFieldApiNamesArray$1(value, options = { onlyQualifiedFieldNames: false }) {
4874
- const valueArray = isArray$1(value) ? value : [value];
4873
+ function getFieldApiNamesArray(value, options = { onlyQualifiedFieldNames: false }) {
4874
+ const valueArray = isArray(value) ? value : [value];
4875
4875
  const array = [];
4876
4876
  for (let i = 0, len = valueArray.length; i < len; i += 1) {
4877
4877
  const item = valueArray[i];
4878
- const apiName = getFieldApiName$1(item, options.onlyQualifiedFieldNames);
4878
+ const apiName = getFieldApiName(item, options.onlyQualifiedFieldNames);
4879
4879
  if (apiName === undefined) {
4880
4880
  if (options.onlyQualifiedFieldNames) {
4881
4881
  continue; // Just skips invalid field names rather than failing to return an array at all
4882
4882
  }
4883
4883
  return undefined;
4884
4884
  }
4885
- push$2.call(array, apiName);
4885
+ push$1.call(array, apiName);
4886
4886
  }
4887
4887
  if (array.length === 0) {
4888
4888
  return undefined;
4889
4889
  }
4890
- return dedupe$1(array).sort();
4890
+ return dedupe(array).sort();
4891
4891
  }
4892
4892
 
4893
4893
  const { keys: ObjectKeys, create: ObjectCreate, assign: ObjectAssign } = Object;
@@ -4937,7 +4937,7 @@ const RECORD_ID_DECODER = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456';
4937
4937
  * @returns An 18-char record id, and throws error if an invalid record id was provided.
4938
4938
  */
4939
4939
  function getRecordId18(value) {
4940
- if (isString$1(value)) {
4940
+ if (isString(value)) {
4941
4941
  if (value.length === 18) {
4942
4942
  return value;
4943
4943
  }
@@ -4968,9 +4968,9 @@ function getRecordId18(value) {
4968
4968
  }
4969
4969
 
4970
4970
  function toSortedStringArray(value) {
4971
- const valueArray = isArray$1(value) ? value : [value];
4971
+ const valueArray = isArray(value) ? value : [value];
4972
4972
  if (valueArray.length !== 0 && isArrayOfNonEmptyStrings(valueArray)) {
4973
- return dedupe$1(valueArray).sort();
4973
+ return dedupe(valueArray).sort();
4974
4974
  }
4975
4975
  return undefined;
4976
4976
  }
@@ -5219,14 +5219,14 @@ const getTypeCacheKeys$29 = (rootKeySet, luvio, input, _fullPathFactory) => {
5219
5219
  mergeable: true,
5220
5220
  });
5221
5221
  const input_childRelationships = input.childRelationships;
5222
- const input_childRelationships_keys = keys$2(input_childRelationships);
5222
+ const input_childRelationships_keys = keys$1(input_childRelationships);
5223
5223
  const input_childRelationships_length = input_childRelationships_keys.length;
5224
5224
  for (let i = 0; i < input_childRelationships_length; i++) {
5225
5225
  const key = input_childRelationships_keys[i];
5226
5226
  getTypeCacheKeys$28(rootKeySet, luvio, input_childRelationships[key], () => rootKey + '__childRelationships' + '__' + key);
5227
5227
  }
5228
5228
  const input_fields = input.fields;
5229
- const input_fields_keys = keys$2(input_fields);
5229
+ const input_fields_keys = keys$1(input_fields);
5230
5230
  const input_fields_length = input_fields_keys.length;
5231
5231
  for (let i = 0; i < input_fields_length; i++) {
5232
5232
  const key = input_fields_keys[i];
@@ -7460,7 +7460,7 @@ function convertRecordFieldsArrayToTrie(fields, optionalFields = []) {
7460
7460
  function createPathSelection(propertyName, fieldDefinition) {
7461
7461
  const fieldsSelection = [];
7462
7462
  const { children } = fieldDefinition;
7463
- const childrenKeys = keys$2(children);
7463
+ const childrenKeys = keys$1(children);
7464
7464
  for (let i = 0, len = childrenKeys.length; i < len; i += 1) {
7465
7465
  const childKey = childrenKeys[i];
7466
7466
  const childFieldDefinition = children[childKey];
@@ -7492,7 +7492,7 @@ function createPathSelection(propertyName, fieldDefinition) {
7492
7492
  selections: [DISPLAY_VALUE_SELECTION, fieldValueSelection],
7493
7493
  },
7494
7494
  };
7495
- push$2.call(fieldsSelection, fieldSelection);
7495
+ push$1.call(fieldsSelection, fieldSelection);
7496
7496
  }
7497
7497
  return {
7498
7498
  kind: 'Object',
@@ -7607,10 +7607,10 @@ function extractTrackedFieldsToTrie(recordId, node, root, config, visitedRecordI
7607
7607
  [recordId]: true,
7608
7608
  };
7609
7609
  const fields = node.object('fields');
7610
- const keys$1 = fields.keys();
7610
+ const keys$1$1 = fields.keys();
7611
7611
  let current = root;
7612
- for (let i = 0, len = keys$1.length; i < len; i += 1) {
7613
- const key = keys$1[i];
7612
+ for (let i = 0, len = keys$1$1.length; i < len; i += 1) {
7613
+ const key = keys$1$1[i];
7614
7614
  const fieldValueRep = fields.link(key);
7615
7615
  let next = current.children[key];
7616
7616
  if (next === undefined) {
@@ -7646,7 +7646,7 @@ function extractTrackedFieldsToTrie(recordId, node, root, config, visitedRecordI
7646
7646
  // For a spanning record that is detected to be a circular reference, we add the field along with Id and Name.
7647
7647
  // It's possible for spanning record lookup fields to sometimes be circular, and sometimes not - depending on the value of the lookup field.
7648
7648
  // For more information on scenarios that caused this fix: search "LDS Recursive Spanning Fields Problem" in Quip
7649
- if (keys$2(next.children).length === 0) {
7649
+ if (keys$1(next.children).length === 0) {
7650
7650
  addScalarFieldId(next);
7651
7651
  addScalarFieldName(next);
7652
7652
  }
@@ -7671,7 +7671,7 @@ function extractTrackedFieldsToTrie(recordId, node, root, config, visitedRecordI
7671
7671
  if (state !== undefined) {
7672
7672
  const { fields } = state;
7673
7673
  // W-8058425, do not include external lookups added by getTrackedFields
7674
- if (includes$1.call(fields, 'ExternalId')) {
7674
+ if (includes.call(fields, 'ExternalId')) {
7675
7675
  continue;
7676
7676
  }
7677
7677
  for (let s = 0, len = fields.length; s < len; s += 1) {
@@ -7697,22 +7697,22 @@ function isExternalLookupFieldKey(spanningNode) {
7697
7697
  return endsWith.call(spanningNode.scalar('apiName'), CUSTOM_EXTERNAL_OBJECT_FIELD_SUFFIX);
7698
7698
  }
7699
7699
  function convertTrieToFields(root) {
7700
- if (keys$2(root.children).length === 0) {
7700
+ if (keys$1(root.children).length === 0) {
7701
7701
  return [];
7702
7702
  }
7703
7703
  return convertTrieToFieldsRecursively(root);
7704
7704
  }
7705
7705
  function convertTrieToFieldsRecursively(root) {
7706
- const childKeys = keys$2(root.children);
7706
+ const childKeys = keys$1(root.children);
7707
7707
  if (childKeys.length === 0) {
7708
7708
  if (root.name === '') {
7709
7709
  return [];
7710
7710
  }
7711
7711
  return [root.name];
7712
7712
  }
7713
- return reduce$1.call(childKeys, (acc, cur) => concat$1.call(acc, convertTrieToFieldsRecursively(root.children[cur]).map((i) => `${root.name}.${i}`)), []);
7713
+ return reduce.call(childKeys, (acc, cur) => concat.call(acc, convertTrieToFieldsRecursively(root.children[cur]).map((i) => `${root.name}.${i}`)), []);
7714
7714
  }
7715
- const BLANK_RECORD_FIELDS_TRIE = freeze$1({
7715
+ const BLANK_RECORD_FIELDS_TRIE = freeze({
7716
7716
  name: '',
7717
7717
  children: {},
7718
7718
  });
@@ -7730,7 +7730,7 @@ const convertFieldsToTrie = (fields = [], isOptional = false) => {
7730
7730
  return fieldsTrie;
7731
7731
  };
7732
7732
  const getObjectNameFromField = (field) => {
7733
- const fieldApiName = getFieldApiName$1(field);
7733
+ const fieldApiName = getFieldApiName(field);
7734
7734
  if (fieldApiName === undefined) {
7735
7735
  return '';
7736
7736
  }
@@ -7740,7 +7740,7 @@ const getObjectNameFromField = (field) => {
7740
7740
  function mergeFieldsTries(rootA, rootB) {
7741
7741
  const rootAchildren = rootA.children;
7742
7742
  const rootBchildren = rootB.children;
7743
- const childBKeys = keys$2(rootBchildren);
7743
+ const childBKeys = keys$1(rootBchildren);
7744
7744
  for (let i = 0, len = childBKeys.length; i < len; i++) {
7745
7745
  const childBKey = childBKeys[i];
7746
7746
  if (rootAchildren[childBKey] === undefined) {
@@ -7863,8 +7863,8 @@ function isSuperRecordFieldTrie(a, b) {
7863
7863
  }
7864
7864
  const childrenA = a.children;
7865
7865
  const childrenB = b.children;
7866
- const childKeysA = keys$2(childrenA);
7867
- const childKeysB = keys$2(childrenB);
7866
+ const childKeysA = keys$1(childrenA);
7867
+ const childKeysB = keys$1(childrenB);
7868
7868
  const childKeysBLength = childKeysB.length;
7869
7869
  if (childKeysBLength > childKeysA.length) {
7870
7870
  return false;
@@ -7888,7 +7888,7 @@ function mergePendingFields(newRecord, oldRecord) {
7888
7888
  // RecordRepresentationNormalized['fields'] to include `pending:true` property
7889
7889
  const mergedFields = { ...newRecord.fields };
7890
7890
  const merged = { ...newRecord, fields: mergedFields };
7891
- const existingFields = keys$2(oldRecord.fields);
7891
+ const existingFields = keys$1(oldRecord.fields);
7892
7892
  for (let i = 0, len = existingFields.length; i < len; i += 1) {
7893
7893
  const spanningFieldName = existingFields[i];
7894
7894
  if (newRecord.fields[spanningFieldName] === undefined) {
@@ -7972,8 +7972,8 @@ function mergeRecordConflict(luvio, incoming, existing, recordConflictMap) {
7972
7972
  children: {},
7973
7973
  };
7974
7974
  const trackedFieldsConfig = {
7975
- maxDepth: configurationForRestAdapters$1.getTrackedFieldDepthOnCacheMergeConflict(),
7976
- onlyFetchLeafNodeIdAndName: configurationForRestAdapters$1.getTrackedFieldLeafNodeIdAndNameOnly(),
7975
+ maxDepth: configurationForRestAdapters.getTrackedFieldDepthOnCacheMergeConflict(),
7976
+ onlyFetchLeafNodeIdAndName: configurationForRestAdapters.getTrackedFieldLeafNodeIdAndNameOnly(),
7977
7977
  };
7978
7978
  extractTrackedFieldsToTrie(recordKey, incomingNode, incomingTrackedFieldsTrieRoot, trackedFieldsConfig);
7979
7979
  extractTrackedFieldsToTrie(recordKey, existingNode, existingTrackedFieldsTrieRoot, trackedFieldsConfig);
@@ -8014,14 +8014,14 @@ function merge$3(existing, incoming, luvio, _path, recordConflictMap) {
8014
8014
  incoming.recordTypeId === undefined ||
8015
8015
  existing.recordTypeId === null ||
8016
8016
  existing.recordTypeId === undefined) {
8017
- instrumentation$1.recordTypeIdIsNull(incoming.apiName);
8017
+ instrumentation.recordTypeIdIsNull(incoming.apiName);
8018
8018
  }
8019
8019
  const recordDepKey = dependencyKeyBuilder({ recordId: existing.id });
8020
8020
  const node = luvio.getNode(recordDepKey);
8021
8021
  if (isGraphNode$1(node)) {
8022
8022
  const dependencies = node.retrieve();
8023
8023
  if (dependencies !== null) {
8024
- const depKeys = keys$2(dependencies);
8024
+ const depKeys = keys$1(dependencies);
8025
8025
  for (let i = 0, len = depKeys.length; i < len; i++) {
8026
8026
  luvio.storeEvict(depKeys[i]);
8027
8027
  }
@@ -8039,12 +8039,12 @@ function merge$3(existing, incoming, luvio, _path, recordConflictMap) {
8039
8039
  // }
8040
8040
  // Adding instrumentation to see how frequently this occurs
8041
8041
  if (existing.apiName !== incoming.apiName) {
8042
- instrumentation$1.recordApiNameChanged(incoming.apiName, existing.apiName);
8042
+ instrumentation.recordApiNameChanged(incoming.apiName, existing.apiName);
8043
8043
  }
8044
8044
  const incomingWeakEtagZero = incoming.weakEtag === 0;
8045
8045
  const existingWeakEtagZero = existing.weakEtag === 0;
8046
8046
  if (incomingWeakEtagZero || existingWeakEtagZero) {
8047
- instrumentation$1.weakEtagZero(incomingWeakEtagZero, existingWeakEtagZero, incoming.apiName);
8047
+ instrumentation.weakEtagZero(incomingWeakEtagZero, existingWeakEtagZero, incoming.apiName);
8048
8048
  }
8049
8049
  // TODO [W-6900085]: UIAPI returns weakEtag=0 when the record is >2 levels nested. For now
8050
8050
  // we treat the record as mergeable.
@@ -8104,7 +8104,7 @@ function fixDisplayValue(existing, incoming, path) {
8104
8104
  incomingValue !== null) {
8105
8105
  incoming.displayValue = existing.displayValue;
8106
8106
  const isSpanningRecord = typeof incomingValue === 'object';
8107
- instrumentation$1.nullDisplayValueConflict({
8107
+ instrumentation.nullDisplayValueConflict({
8108
8108
  entityName: path.parent.data.apiName,
8109
8109
  fieldName: path.propertyName,
8110
8110
  fieldType: isSpanningRecord ? 'spanning-record' : 'scalar',
@@ -8167,14 +8167,14 @@ function addFieldsToStoreLink(fieldsTrie, optionalFieldsTrie, storeLink) {
8167
8167
  let fields = [];
8168
8168
  const fieldSubtries = [];
8169
8169
  if (fieldsTrie) {
8170
- push$2.call(fieldSubtries, fieldsTrie);
8170
+ push$1.call(fieldSubtries, fieldsTrie);
8171
8171
  }
8172
8172
  if (optionalFieldsTrie) {
8173
- push$2.call(fieldSubtries, optionalFieldsTrie);
8173
+ push$1.call(fieldSubtries, optionalFieldsTrie);
8174
8174
  }
8175
8175
  for (let i = 0; i < fieldSubtries.length; i++) {
8176
8176
  const subtrie = fieldSubtries[i];
8177
- const fieldNames = keys$2(subtrie.children);
8177
+ const fieldNames = keys$1(subtrie.children);
8178
8178
  for (let i = 0; i < fieldNames.length; i++) {
8179
8179
  const fieldName = fieldNames[i];
8180
8180
  const childTrie = subtrie.children[fieldName];
@@ -8183,7 +8183,7 @@ function addFieldsToStoreLink(fieldsTrie, optionalFieldsTrie, storeLink) {
8183
8183
  }
8184
8184
  }
8185
8185
  }
8186
- fields = dedupe$1(fields);
8186
+ fields = dedupe(fields);
8187
8187
  if (fields.length > 0) {
8188
8188
  storeLink.data = {
8189
8189
  fields,
@@ -8299,9 +8299,9 @@ function fulfill(existing, incoming) {
8299
8299
  return false;
8300
8300
  }
8301
8301
  }
8302
- const headersKeys = keys$2(headers);
8302
+ const headersKeys = keys$1(headers);
8303
8303
  const headersKeyLength = headersKeys.length;
8304
- if (headersKeyLength !== keys$2(existingHeaders).length) {
8304
+ if (headersKeyLength !== keys$1(existingHeaders).length) {
8305
8305
  return false;
8306
8306
  }
8307
8307
  for (let i = 0, len = headersKeyLength; i < len; i++) {
@@ -8318,8 +8318,8 @@ function fulfill(existing, incoming) {
8318
8318
  return isSuperset(existingFieldsUnion, incomingFieldsUnion);
8319
8319
  }
8320
8320
  function unionFields(fields, optionalFields) {
8321
- const fieldsArray = isArray$1(fields) ? fields : [];
8322
- const optionalFieldsArray = isArray$1(optionalFields) ? optionalFields : [];
8321
+ const fieldsArray = isArray(fields) ? fields : [];
8322
+ const optionalFieldsArray = isArray(optionalFields) ? optionalFields : [];
8323
8323
  return [...fieldsArray, ...optionalFieldsArray];
8324
8324
  }
8325
8325
  function getRecordIdsFromUrlParams(urlParams) {
@@ -8374,15 +8374,15 @@ function createResourceRequest$1f(config) {
8374
8374
  };
8375
8375
  }
8376
8376
  const getRecord_ConfigPropertyMetadata = [
8377
- generateParamConfigMetadata$1('recordId', true, 0 /* UrlParameter */, 0 /* String */, false, getRecordId18),
8378
- generateParamConfigMetadata$1('childRelationships', false, 1 /* QueryParameter */, 0 /* String */, true),
8379
- generateParamConfigMetadata$1('fields', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray$1),
8380
- generateParamConfigMetadata$1('forms', false, 1 /* QueryParameter */, 0 /* String */, true),
8381
- generateParamConfigMetadata$1('layoutTypes', false, 1 /* QueryParameter */, 0 /* String */, true, toSortedStringArray),
8382
- generateParamConfigMetadata$1('modes', false, 1 /* QueryParameter */, 0 /* String */, true, toSortedStringArray),
8383
- generateParamConfigMetadata$1('optionalFields', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray$1),
8384
- generateParamConfigMetadata$1('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
8385
- generateParamConfigMetadata$1('updateMru', false, 1 /* QueryParameter */, 1 /* Boolean */),
8377
+ generateParamConfigMetadata('recordId', true, 0 /* UrlParameter */, 0 /* String */, false, getRecordId18),
8378
+ generateParamConfigMetadata('childRelationships', false, 1 /* QueryParameter */, 0 /* String */, true),
8379
+ generateParamConfigMetadata('fields', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
8380
+ generateParamConfigMetadata('forms', false, 1 /* QueryParameter */, 0 /* String */, true),
8381
+ generateParamConfigMetadata('layoutTypes', false, 1 /* QueryParameter */, 0 /* String */, true, toSortedStringArray),
8382
+ generateParamConfigMetadata('modes', false, 1 /* QueryParameter */, 0 /* String */, true, toSortedStringArray),
8383
+ generateParamConfigMetadata('optionalFields', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
8384
+ generateParamConfigMetadata('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
8385
+ generateParamConfigMetadata('updateMru', false, 1 /* QueryParameter */, 1 /* Boolean */),
8386
8386
  ];
8387
8387
  const createResourceParams$15 = /*#__PURE__*/ createResourceParams(getRecord_ConfigPropertyMetadata);
8388
8388
 
@@ -8410,8 +8410,8 @@ function prepareRequest$7(luvio, config) {
8410
8410
  // Should this go into the coersion logic?
8411
8411
  const key = keyBuilder$3t(luvio, createResourceParams$15(config));
8412
8412
  const allTrackedFields = getTrackedFields(key, luvio.getNode(key), {
8413
- maxDepth: configurationForRestAdapters$1.getTrackedFieldDepthOnCacheMiss(),
8414
- onlyFetchLeafNodeIdAndName: configurationForRestAdapters$1.getTrackedFieldLeafNodeIdAndNameOnly(),
8413
+ maxDepth: configurationForRestAdapters.getTrackedFieldDepthOnCacheMiss(),
8414
+ onlyFetchLeafNodeIdAndName: configurationForRestAdapters.getTrackedFieldLeafNodeIdAndNameOnly(),
8415
8415
  }, config.optionalFields);
8416
8416
  const optionalFields = fields === undefined ? allTrackedFields : difference(allTrackedFields, fields);
8417
8417
  const resourceParams = createResourceParams$15({
@@ -8477,13 +8477,13 @@ function buildNetworkSnapshot$1b(luvio, config, serverRequestCount = 0, options)
8477
8477
  });
8478
8478
  }
8479
8479
  function isSingleBatchRecordResponse(response) {
8480
- return (isArray$1(response.results) &&
8480
+ return (isArray(response.results) &&
8481
8481
  response.results.length === 1);
8482
8482
  }
8483
8483
 
8484
8484
  const VERSION$2v = "98cce53b8d13b1883d001bbdaab24383";
8485
8485
 
8486
- const nonCachedErrors$8 = ObjectCreate$1$1(null);
8486
+ const nonCachedErrors$8 = ObjectCreate$1(null);
8487
8487
  function ingestSuccessChildResourceParams$9(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount = 0) {
8488
8488
  const childSnapshotDataResponses = [];
8489
8489
  let seenRecords = new StoreKeySet();
@@ -8503,8 +8503,8 @@ function ingestSuccessChildResourceParams$9(luvio, childResourceParamsArray, chi
8503
8503
  headers: {},
8504
8504
  };
8505
8505
  const childTrackedFields = getTrackedFields(childKey, luvio.getNode(childKey), {
8506
- maxDepth: configurationForRestAdapters$1.getTrackedFieldDepthOnCacheMiss(),
8507
- onlyFetchLeafNodeIdAndName: configurationForRestAdapters$1.getTrackedFieldLeafNodeIdAndNameOnly(),
8506
+ maxDepth: configurationForRestAdapters.getTrackedFieldDepthOnCacheMiss(),
8507
+ onlyFetchLeafNodeIdAndName: configurationForRestAdapters.getTrackedFieldLeafNodeIdAndNameOnly(),
8508
8508
  }, childResourceParams.queryParams.optionalFields);
8509
8509
  const childSnapshot = ingestSuccess$X(luvio, {
8510
8510
  recordId: childResourceParams.urlParams.recordId,
@@ -8685,7 +8685,7 @@ function selectChildResourceParams$8(luvio, childResources, resourceParams) {
8685
8685
  };
8686
8686
  }
8687
8687
 
8688
- ObjectCreate$1$1(null);
8688
+ ObjectCreate$1(null);
8689
8689
  function createChildResourceParams$c(resourceParams) {
8690
8690
  let childConfigs = [];
8691
8691
  for (let index = 0, len = resourceParams.urlParams.recordIds.length; index < len; index += 1) {
@@ -8865,9 +8865,9 @@ function buildNetworkSnapshot$1a(luvio, config, serverRequestCount = 0, options)
8865
8865
 
8866
8866
  // iterate through the map to build configs for network calls
8867
8867
  function resolveConflict(luvio, map) {
8868
- const ids = keys$2(map.conflicts);
8868
+ const ids = keys$1(map.conflicts);
8869
8869
  if (ids.length === 0) {
8870
- instrumentation$1.recordConflictsResolved(map.serverRequestCount);
8870
+ instrumentation.recordConflictsResolved(map.serverRequestCount);
8871
8871
  return;
8872
8872
  }
8873
8873
  if (ids.length === 1) {
@@ -8879,9 +8879,9 @@ function resolveConflict(luvio, map) {
8879
8879
  buildNetworkSnapshot$1b(luvio, config, map.serverRequestCount);
8880
8880
  }
8881
8881
  else {
8882
- const records = reduce$1.call(ids, (acc, id) => {
8882
+ const records = reduce.call(ids, (acc, id) => {
8883
8883
  const { trackedFields } = map.conflicts[id];
8884
- push$2.call(acc, {
8884
+ push$1.call(acc, {
8885
8885
  recordIds: [id],
8886
8886
  optionalFields: convertTrieToFields(trackedFields),
8887
8887
  });
@@ -8903,46 +8903,46 @@ const ingest$24 = (input, path, luvio, store, timestamp) => {
8903
8903
  };
8904
8904
 
8905
8905
  const adapterName$10 = 'getListUiByApiName';
8906
- const getListUiByApiName_ConfigPropertyMetadata$1 = [
8907
- generateParamConfigMetadata$1('listViewApiName', true, 0 /* UrlParameter */, 0 /* String */),
8908
- generateParamConfigMetadata$1('objectApiName', true, 0 /* UrlParameter */, 0 /* String */, false, getObjectApiName$1$1),
8909
- generateParamConfigMetadata$1('fields', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray$1),
8910
- generateParamConfigMetadata$1('optionalFields', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray$1),
8911
- generateParamConfigMetadata$1('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
8912
- generateParamConfigMetadata$1('pageToken', false, 1 /* QueryParameter */, 0 /* String */),
8913
- generateParamConfigMetadata$1('sortBy', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray$1),
8906
+ const getListUiByApiName_ConfigPropertyMetadata = [
8907
+ generateParamConfigMetadata('listViewApiName', true, 0 /* UrlParameter */, 0 /* String */),
8908
+ generateParamConfigMetadata('objectApiName', true, 0 /* UrlParameter */, 0 /* String */, false, getObjectApiName$1),
8909
+ generateParamConfigMetadata('fields', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
8910
+ generateParamConfigMetadata('optionalFields', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
8911
+ generateParamConfigMetadata('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
8912
+ generateParamConfigMetadata('pageToken', false, 1 /* QueryParameter */, 0 /* String */),
8913
+ generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
8914
8914
  ];
8915
- const getListUiByApiName_ConfigPropertyNames$1 = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$10, getListUiByApiName_ConfigPropertyMetadata$1);
8916
-
8917
- const adapterName$$$1 = 'getListUiByListViewId';
8918
- const getListUiByListViewId_ConfigPropertyMetadata$1 = [
8919
- generateParamConfigMetadata$1('listViewId', true, 0 /* UrlParameter */, 0 /* String */),
8920
- generateParamConfigMetadata$1('fields', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray$1),
8921
- generateParamConfigMetadata$1('optionalFields', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray$1),
8922
- generateParamConfigMetadata$1('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
8923
- generateParamConfigMetadata$1('pageToken', false, 1 /* QueryParameter */, 0 /* String */),
8924
- generateParamConfigMetadata$1('sortBy', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray$1),
8915
+ const getListUiByApiName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$10, getListUiByApiName_ConfigPropertyMetadata);
8916
+
8917
+ const adapterName$$ = 'getListUiByListViewId';
8918
+ const getListUiByListViewId_ConfigPropertyMetadata = [
8919
+ generateParamConfigMetadata('listViewId', true, 0 /* UrlParameter */, 0 /* String */),
8920
+ generateParamConfigMetadata('fields', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
8921
+ generateParamConfigMetadata('optionalFields', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
8922
+ generateParamConfigMetadata('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
8923
+ generateParamConfigMetadata('pageToken', false, 1 /* QueryParameter */, 0 /* String */),
8924
+ generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
8925
8925
  ];
8926
- const getListUiByListViewId_ConfigPropertyNames$1 = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$$$1, getListUiByListViewId_ConfigPropertyMetadata$1);
8926
+ const getListUiByListViewId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$$, getListUiByListViewId_ConfigPropertyMetadata);
8927
8927
 
8928
8928
  const adapterName$Z = 'getMruListUi';
8929
- const getMruListUi_ConfigPropertyMetadata$1 = [
8930
- generateParamConfigMetadata$1('objectApiName', true, 0 /* UrlParameter */, 0 /* String */, false, getObjectApiName$1$1),
8931
- generateParamConfigMetadata$1('fields', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray$1),
8932
- generateParamConfigMetadata$1('optionalFields', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray$1),
8933
- generateParamConfigMetadata$1('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
8934
- generateParamConfigMetadata$1('pageToken', false, 1 /* QueryParameter */, 0 /* String */),
8935
- generateParamConfigMetadata$1('sortBy', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray$1),
8929
+ const getMruListUi_ConfigPropertyMetadata = [
8930
+ generateParamConfigMetadata('objectApiName', true, 0 /* UrlParameter */, 0 /* String */, false, getObjectApiName$1),
8931
+ generateParamConfigMetadata('fields', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
8932
+ generateParamConfigMetadata('optionalFields', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
8933
+ generateParamConfigMetadata('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
8934
+ generateParamConfigMetadata('pageToken', false, 1 /* QueryParameter */, 0 /* String */),
8935
+ generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
8936
8936
  ];
8937
- const getMruListUi_ConfigPropertyNames$1 = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$Z, getMruListUi_ConfigPropertyMetadata$1);
8937
+ const getMruListUi_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$Z, getMruListUi_ConfigPropertyMetadata);
8938
8938
  // make local copies of the adapter configs so we can ignore other getListUi config parameters to match
8939
8939
  // lds222 behavior
8940
8940
  ({
8941
- ...getMruListUi_ConfigPropertyNames$1,
8941
+ ...getMruListUi_ConfigPropertyNames,
8942
8942
  parameters: {
8943
- ...getMruListUi_ConfigPropertyNames$1.parameters,
8943
+ ...getMruListUi_ConfigPropertyNames.parameters,
8944
8944
  optional: [
8945
- ...getMruListUi_ConfigPropertyNames$1.parameters.optional,
8945
+ ...getMruListUi_ConfigPropertyNames.parameters.optional,
8946
8946
  'listViewApiName',
8947
8947
  'listViewId',
8948
8948
  ],
@@ -8951,18 +8951,18 @@ const getMruListUi_ConfigPropertyNames$1 = /*#__PURE__*/ buildAdapterValidationC
8951
8951
  // make local copies of the adapter configs so we can have them ignore each other's config parameters
8952
8952
  // to match lds222 behavior
8953
8953
  ({
8954
- ...getListUiByApiName_ConfigPropertyNames$1,
8954
+ ...getListUiByApiName_ConfigPropertyNames,
8955
8955
  parameters: {
8956
- ...getListUiByApiName_ConfigPropertyNames$1.parameters,
8957
- optional: [...getListUiByApiName_ConfigPropertyNames$1.parameters.optional, 'listViewId'],
8956
+ ...getListUiByApiName_ConfigPropertyNames.parameters,
8957
+ optional: [...getListUiByApiName_ConfigPropertyNames.parameters.optional, 'listViewId'],
8958
8958
  },
8959
8959
  });
8960
8960
  ({
8961
- ...getListUiByListViewId_ConfigPropertyNames$1,
8961
+ ...getListUiByListViewId_ConfigPropertyNames,
8962
8962
  parameters: {
8963
- ...getListUiByListViewId_ConfigPropertyNames$1.parameters,
8963
+ ...getListUiByListViewId_ConfigPropertyNames.parameters,
8964
8964
  optional: [
8965
- ...getListUiByListViewId_ConfigPropertyNames$1.parameters.optional,
8965
+ ...getListUiByListViewId_ConfigPropertyNames.parameters.optional,
8966
8966
  'listViewApiName',
8967
8967
  'objectApiName',
8968
8968
  ],
@@ -8973,7 +8973,7 @@ function keyBuilder$3d(luvio, config) {
8973
8973
  return keyPrefix + '::' + RepresentationType$T + ':' + config.apiName;
8974
8974
  }
8975
8975
 
8976
- var DiscriminatorValues$5$1;
8976
+ var DiscriminatorValues$5;
8977
8977
  (function (DiscriminatorValues) {
8978
8978
  DiscriminatorValues["EmptySpace"] = "EmptySpace";
8979
8979
  DiscriminatorValues["ReportChart"] = "ReportChart";
@@ -8981,39 +8981,39 @@ var DiscriminatorValues$5$1;
8981
8981
  DiscriminatorValues["Canvas"] = "Canvas";
8982
8982
  DiscriminatorValues["Field"] = "Field";
8983
8983
  DiscriminatorValues["CustomLink"] = "CustomLink";
8984
- })(DiscriminatorValues$5$1 || (DiscriminatorValues$5$1 = {}));
8984
+ })(DiscriminatorValues$5 || (DiscriminatorValues$5 = {}));
8985
8985
 
8986
- var LayoutMode$1;
8986
+ var LayoutMode;
8987
8987
  (function (LayoutMode) {
8988
8988
  LayoutMode["View"] = "View";
8989
8989
  LayoutMode["Edit"] = "Edit";
8990
8990
  LayoutMode["Create"] = "Create";
8991
- })(LayoutMode$1 || (LayoutMode$1 = {}));
8991
+ })(LayoutMode || (LayoutMode = {}));
8992
8992
 
8993
- LayoutMode$1.View;
8993
+ LayoutMode.View;
8994
8994
 
8995
- var FormFactor$1;
8995
+ var FormFactor;
8996
8996
  (function (FormFactor) {
8997
8997
  FormFactor["Large"] = "Large";
8998
8998
  FormFactor["Medium"] = "Medium";
8999
8999
  FormFactor["Small"] = "Small";
9000
- })(FormFactor$1 || (FormFactor$1 = {}));
9000
+ })(FormFactor || (FormFactor = {}));
9001
9001
 
9002
- ObjectCreate$1$1(null);
9002
+ ObjectCreate$1(null);
9003
9003
 
9004
- var LayoutType$1;
9004
+ var LayoutType;
9005
9005
  (function (LayoutType) {
9006
9006
  LayoutType["Full"] = "Full";
9007
9007
  LayoutType["Compact"] = "Compact";
9008
- })(LayoutType$1 || (LayoutType$1 = {}));
9008
+ })(LayoutType || (LayoutType = {}));
9009
9009
 
9010
- ObjectCreate$1$1(null);
9010
+ ObjectCreate$1(null);
9011
9011
 
9012
- ObjectCreate$1$1(null);
9012
+ ObjectCreate$1(null);
9013
9013
 
9014
9014
  const VERSION$1S = "8d2032474fb4fabdf5cf4042be9042d9";
9015
9015
  const select$24 = function WorkStepPicklistValueAttributeRepresentationSelect() {
9016
- const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$20$1();
9016
+ const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$20();
9017
9017
  return {
9018
9018
  kind: 'Fragment',
9019
9019
  version: VERSION$1S,
@@ -9034,7 +9034,7 @@ const select$24 = function WorkStepPicklistValueAttributeRepresentationSelect()
9034
9034
 
9035
9035
  const VERSION$1R = "53893a219bc0888951863f2c44317cac";
9036
9036
  const select$23 = function LeadStatusPicklistValueAttributesRepresentationSelect() {
9037
- const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$20$1();
9037
+ const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$20();
9038
9038
  return {
9039
9039
  kind: 'Fragment',
9040
9040
  version: VERSION$1R,
@@ -9051,7 +9051,7 @@ const select$23 = function LeadStatusPicklistValueAttributesRepresentationSelect
9051
9051
 
9052
9052
  const VERSION$1Q = "4818ec07c499784571c1012ead048c88";
9053
9053
  const select$22 = function CaseStatusPicklistValueAttributesRepresentationSelect() {
9054
- const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$20$1();
9054
+ const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$20();
9055
9055
  return {
9056
9056
  kind: 'Fragment',
9057
9057
  version: VERSION$1Q,
@@ -9068,7 +9068,7 @@ const select$22 = function CaseStatusPicklistValueAttributesRepresentationSelect
9068
9068
 
9069
9069
  const VERSION$1P = "950a3a962acbd2b128f937d4c055a9d6";
9070
9070
  const select$21 = function OpportunityStagePicklistValueAttributesRepresentationSelect() {
9071
- const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$20$1();
9071
+ const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$20();
9072
9072
  return {
9073
9073
  kind: 'Fragment',
9074
9074
  version: VERSION$1P,
@@ -9095,15 +9095,15 @@ const select$21 = function OpportunityStagePicklistValueAttributesRepresentation
9095
9095
  };
9096
9096
  };
9097
9097
 
9098
- var DiscriminatorValues$4$1;
9098
+ var DiscriminatorValues$4;
9099
9099
  (function (DiscriminatorValues) {
9100
9100
  DiscriminatorValues["WorkStepStatus"] = "WorkStepStatus";
9101
9101
  DiscriminatorValues["LeadStatus"] = "LeadStatus";
9102
9102
  DiscriminatorValues["CaseStatus"] = "CaseStatus";
9103
9103
  DiscriminatorValues["OpportunityStage"] = "OpportunityStage";
9104
- })(DiscriminatorValues$4$1 || (DiscriminatorValues$4$1 = {}));
9105
- const VERSION$1O$1 = "bd523b2343366edfc25a2dbee2c4e986";
9106
- const selectChildren$2$1 = function AbstractPicklistValueAttributesRepresentationSelectChildren() {
9104
+ })(DiscriminatorValues$4 || (DiscriminatorValues$4 = {}));
9105
+ const VERSION$1O = "bd523b2343366edfc25a2dbee2c4e986";
9106
+ const selectChildren$2 = function AbstractPicklistValueAttributesRepresentationSelectChildren() {
9107
9107
  const workStepPicklistValueAttributeRepresentationSelections = select$24();
9108
9108
  const leadStatusPicklistValueAttributesRepresentationSelections = select$23();
9109
9109
  const caseStatusPicklistValueAttributesRepresentationSelections = select$22();
@@ -9113,17 +9113,17 @@ const selectChildren$2$1 = function AbstractPicklistValueAttributesRepresentatio
9113
9113
  union: true,
9114
9114
  discriminator: 'picklistAtrributesValueType',
9115
9115
  unionSelections: {
9116
- [DiscriminatorValues$4$1.WorkStepStatus]: workStepPicklistValueAttributeRepresentationSelections,
9117
- [DiscriminatorValues$4$1.LeadStatus]: leadStatusPicklistValueAttributesRepresentationSelections,
9118
- [DiscriminatorValues$4$1.CaseStatus]: caseStatusPicklistValueAttributesRepresentationSelections,
9119
- [DiscriminatorValues$4$1.OpportunityStage]: opportunityStagePicklistValueAttributesRepresentationSelections
9116
+ [DiscriminatorValues$4.WorkStepStatus]: workStepPicklistValueAttributeRepresentationSelections,
9117
+ [DiscriminatorValues$4.LeadStatus]: leadStatusPicklistValueAttributesRepresentationSelections,
9118
+ [DiscriminatorValues$4.CaseStatus]: caseStatusPicklistValueAttributesRepresentationSelections,
9119
+ [DiscriminatorValues$4.OpportunityStage]: opportunityStagePicklistValueAttributesRepresentationSelections
9120
9120
  }
9121
9121
  };
9122
9122
  };
9123
- const select$20$1 = function AbstractPicklistValueAttributesRepresentationSelect() {
9123
+ const select$20 = function AbstractPicklistValueAttributesRepresentationSelect() {
9124
9124
  return {
9125
9125
  kind: 'Fragment',
9126
- version: VERSION$1O$1,
9126
+ version: VERSION$1O,
9127
9127
  private: [],
9128
9128
  selections: [
9129
9129
  {
@@ -9134,12 +9134,12 @@ const select$20$1 = function AbstractPicklistValueAttributesRepresentationSelect
9134
9134
  };
9135
9135
  };
9136
9136
 
9137
- const VERSION$1N$1 = "9e2a16a80378487f557124c771201cf9";
9138
- const select$1$$1 = function PicklistValueRepresentationSelect() {
9139
- const AbstractPicklistValueAttributesRepresentation__unionSelections = selectChildren$2$1();
9137
+ const VERSION$1N = "9e2a16a80378487f557124c771201cf9";
9138
+ const select$1$ = function PicklistValueRepresentationSelect() {
9139
+ const AbstractPicklistValueAttributesRepresentation__unionSelections = selectChildren$2();
9140
9140
  return {
9141
9141
  kind: 'Fragment',
9142
- version: VERSION$1N$1,
9142
+ version: VERSION$1N,
9143
9143
  private: [],
9144
9144
  selections: [
9145
9145
  {
@@ -9166,12 +9166,12 @@ const select$1$$1 = function PicklistValueRepresentationSelect() {
9166
9166
  ]
9167
9167
  };
9168
9168
  };
9169
- const VERSION$1M$1 = "0a361a49370acb4c6a31721a2057649a";
9170
- const select$1_$1 = function PicklistValuesRepresentationSelect() {
9171
- const { selections: PicklistValueRepresentation__selections, opaque: PicklistValueRepresentation__opaque, } = select$1$$1();
9169
+ const VERSION$1M = "0a361a49370acb4c6a31721a2057649a";
9170
+ const select$1_ = function PicklistValuesRepresentationSelect() {
9171
+ const { selections: PicklistValueRepresentation__selections, opaque: PicklistValueRepresentation__opaque, } = select$1$();
9172
9172
  return {
9173
9173
  kind: 'Fragment',
9174
- version: VERSION$1M$1,
9174
+ version: VERSION$1M,
9175
9175
  private: [
9176
9176
  'eTag'
9177
9177
  ],
@@ -9201,790 +9201,60 @@ const select$1_$1 = function PicklistValuesRepresentationSelect() {
9201
9201
  };
9202
9202
  };
9203
9203
 
9204
- select$1_$1().selections;
9204
+ select$1_().selections;
9205
9205
 
9206
- var DiscriminatorValues$3$1;
9206
+ var DiscriminatorValues$3;
9207
9207
  (function (DiscriminatorValues) {
9208
9208
  DiscriminatorValues["Photo"] = "Photo";
9209
9209
  DiscriminatorValues["Theme"] = "Theme";
9210
- })(DiscriminatorValues$3$1 || (DiscriminatorValues$3$1 = {}));
9210
+ })(DiscriminatorValues$3 || (DiscriminatorValues$3 = {}));
9211
9211
 
9212
- ObjectCreate$1$1(null);
9212
+ ObjectCreate$1(null);
9213
9213
 
9214
- ObjectCreate$1$1(null);
9214
+ ObjectCreate$1(null);
9215
9215
 
9216
- ObjectCreate$1$1(null);
9216
+ ObjectCreate$1(null);
9217
9217
 
9218
- ObjectCreate$1$1(null);
9218
+ ObjectCreate$1(null);
9219
9219
 
9220
- var DiscriminatorValues$1$1;
9220
+ var DiscriminatorValues$1;
9221
9221
  (function (DiscriminatorValues) {
9222
9222
  DiscriminatorValues["Text"] = "Text";
9223
9223
  DiscriminatorValues["Select"] = "Select";
9224
- })(DiscriminatorValues$1$1 || (DiscriminatorValues$1$1 = {}));
9224
+ })(DiscriminatorValues$1 || (DiscriminatorValues$1 = {}));
9225
9225
 
9226
- var DiscriminatorValues$2;
9226
+ var DiscriminatorValues;
9227
9227
  (function (DiscriminatorValues) {
9228
9228
  DiscriminatorValues["Field"] = "Field";
9229
9229
  DiscriminatorValues["DataCategory"] = "DataCategory";
9230
- })(DiscriminatorValues$2 || (DiscriminatorValues$2 = {}));
9230
+ })(DiscriminatorValues || (DiscriminatorValues = {}));
9231
9231
  // The rest of this is copy-pasted. Sorry.
9232
- ObjectCreate$1$1(null);
9233
- ensureRegisteredOnce$1({
9232
+ ObjectCreate$1(null);
9233
+ ensureRegisteredOnce({
9234
9234
  id: '@salesforce/lds-adapters-uiapi',
9235
9235
  configuration: {
9236
- ...configurationForRestAdapters$1,
9237
- ...configurationForGraphQLAdapters$1,
9238
- ...configurationForOneStoreEnabledAdapters$1,
9236
+ ...configurationForRestAdapters,
9237
+ ...configurationForGraphQLAdapters,
9238
+ ...configurationForOneStoreEnabledAdapters,
9239
9239
  },
9240
- instrument: instrument$1,
9240
+ instrument,
9241
9241
  });
9242
9242
 
9243
- const { push: push$1 } = Array.prototype;
9244
- const { keys: keys$1 } = Object;
9243
+ const { push } = Array.prototype;
9244
+ const { keys } = Object;
9245
9245
  const { hasOwnProperty } = Object.prototype;
9246
9246
  const { parse, stringify } = JSON;
9247
9247
 
9248
- /**
9249
- * Copyright (c) 2022, Salesforce, Inc.,
9250
- * All rights reserved.
9251
- * For full license text, see the LICENSE.txt file
9252
- */
9253
-
9254
-
9255
- /**
9256
- * Defines configuration for the module with a default value which can be overridden by the runtime environment.
9257
- */
9258
- /**
9259
- * Environment Aware GraphQLBatch adapter
9260
- */
9261
- let environmentAwareGraphQLBatchAdapter = undefined;
9262
- /**
9263
- * Draft-aware GraphQL adapter
9264
- */
9265
- let draftAwareGraphQLAdapter = undefined;
9266
- /**
9267
- * Draft-aware createRecord adapter
9268
- */
9269
- let draftAwareCreateRecordAdapter = undefined;
9270
- /**
9271
- * Draft-aware updateRecord adapter
9272
- */
9273
- let draftAwareUpdateRecordAdapter = undefined;
9274
- /**
9275
- * Draft-aware deleteRecord adapter
9276
- */
9277
- let draftAwareDeleteRecordAdapter = undefined;
9278
- /**
9279
- * Draft-aware createContentDocumentAndVersion adapter
9280
- */
9281
- let draftAwareCreateContentDocumentAndVersionAdapter = undefined;
9282
- /**
9283
- * Draft-aware createContentVersion adapter
9284
- */
9285
- let draftAwareCreateContentVersionAdapter = undefined;
9286
- /**
9287
- * Depth to which tracked fields will be added to a request that results from a cache miss.
9288
- * A value of 0 inhibits the addition of tracked fields, 1 will add tracked fields that can
9289
- * be reached by following 1 relationship from the root record, etc.
9290
- * @defaultValue '5', replicates the current behavior
9291
- */
9292
- let trackedFieldDepthOnCacheMiss = 5;
9293
- /**
9294
- * Depth to which tracked fields will be added to a request that results from a merge conflict
9295
- * A value of 0 inhibits the addition of tracked fields, 1 will add tracked fields that can
9296
- * be reached by following 1 relationship from the root record, etc.
9297
- * @defaultValue '5', replicates the current behavior
9298
- */
9299
- let trackedFieldDepthOnCacheMergeConflict = 5;
9300
- /**
9301
- * Depth to which tracked fields will be added to a request that results from a notify change invocation by the consumer
9302
- * A value of 0 inhibits the addition of tracked fields, 1 will add tracked fields that can
9303
- * be reached by following 1 relationship from the root record, etc.
9304
- * @defaultValue '5', replicates the current behavior
9305
- */
9306
- let trackedFieldDepthOnNotifyChange = 5;
9307
- /**
9308
- * Determines if we will only fetch the 'Id' field for the leaf relationship record
9309
- * @defaultValue 'false', replicates the current behavior and fetches all fields in the store for the leaf relationship record
9310
- */
9311
- let trackedFieldLeafNodeIdAndNameOnly = false;
9312
- /**
9313
- * One store enabled Get Object Info adapter
9314
- */
9315
- let oneStoreGetObjectInfoAdapter = undefined;
9316
- /**
9317
- * One store enabled Get Object Infos adapter
9318
- */
9319
- let oneStoreGetObjectInfosAdapter = undefined;
9320
- /**
9321
- * Determines when to include PDL strategies for Related Lists
9322
- */
9323
- let relatedListsPredictionsEnabled = false;
9324
- /**
9325
- * Defines the configuration API and is exposed internally as well as externally.
9326
- * Configuration for one store enabled REST adapters only.
9327
- */
9328
- const configurationForOneStoreEnabledAdapters = {
9329
- setGetObjectInfoAdapter: function (adapter) {
9330
- oneStoreGetObjectInfoAdapter = adapter;
9331
- },
9332
- getGetObjectInfoAdapter: function () {
9333
- return oneStoreGetObjectInfoAdapter;
9334
- },
9335
- setGetObjectInfosAdapter: function (adapter) {
9336
- oneStoreGetObjectInfosAdapter = adapter;
9337
- },
9338
- getGetObjectInfosAdapter: function () {
9339
- return oneStoreGetObjectInfosAdapter;
9340
- },
9341
- };
9342
- /**
9343
- * Defines the configuration API and is exposed internally as well as externally.
9344
- * Configuration for REST adapters only.
9345
- */
9346
- const configurationForRestAdapters = {
9347
- setTrackedFieldDepthOnCacheMiss: function (trackedFieldDepthOnCacheMissParam) {
9348
- trackedFieldDepthOnCacheMiss = trackedFieldDepthOnCacheMissParam;
9349
- },
9350
- getTrackedFieldDepthOnCacheMiss: function () {
9351
- return trackedFieldDepthOnCacheMiss;
9352
- },
9353
- setTrackedFieldDepthOnCacheMergeConflict: function (trackedFieldDepthOnCacheMergeConflictParam) {
9354
- trackedFieldDepthOnCacheMergeConflict = trackedFieldDepthOnCacheMergeConflictParam;
9355
- },
9356
- getTrackedFieldDepthOnCacheMergeConflict: function () {
9357
- return trackedFieldDepthOnCacheMergeConflict;
9358
- },
9359
- setTrackedFieldDepthOnNotifyChange: function (trackedFieldDepthOnNotifyChangeParam) {
9360
- trackedFieldDepthOnNotifyChange = trackedFieldDepthOnNotifyChangeParam;
9361
- },
9362
- getTrackedFieldDepthOnNotifyChange: function () {
9363
- return trackedFieldDepthOnNotifyChange;
9364
- },
9365
- setTrackedFieldLeafNodeIdAndNameOnly: function (trackedFieldLeafNodeIdAndNameOnlyParam) {
9366
- trackedFieldLeafNodeIdAndNameOnly = trackedFieldLeafNodeIdAndNameOnlyParam;
9367
- },
9368
- getTrackedFieldLeafNodeIdAndNameOnly: function () {
9369
- return trackedFieldLeafNodeIdAndNameOnly;
9370
- },
9371
- // createRecord
9372
- setDraftAwareCreateRecordAdapter: function (adapter) {
9373
- draftAwareCreateRecordAdapter = adapter;
9374
- },
9375
- getDraftAwareCreateRecordAdapter: function () {
9376
- return draftAwareCreateRecordAdapter;
9377
- },
9378
- // updateRecord
9379
- setDraftAwareUpdateRecordAdapter: function (adapter) {
9380
- draftAwareUpdateRecordAdapter = adapter;
9381
- },
9382
- getDraftAwareUpdateRecordAdapter: function () {
9383
- return draftAwareUpdateRecordAdapter;
9384
- },
9385
- // deleteRecord
9386
- setDraftAwareDeleteRecordAdapter: function (adapter) {
9387
- draftAwareDeleteRecordAdapter = adapter;
9388
- },
9389
- getDraftAwareDeleteRecordAdapter: function () {
9390
- return draftAwareDeleteRecordAdapter;
9391
- },
9392
- // createContentDocumentAndVersion
9393
- setDraftAwareCreateContentDocumentAndVersionAdapter: function (adapter) {
9394
- draftAwareCreateContentDocumentAndVersionAdapter = adapter;
9395
- },
9396
- getDraftAwareCreateContentDocumentAndVersionAdapter: function () {
9397
- return draftAwareCreateContentDocumentAndVersionAdapter;
9398
- },
9399
- setRelatedListsPredictionsEnabled: function (f) {
9400
- relatedListsPredictionsEnabled = f;
9401
- },
9402
- areRelatedListsPredictionsEnabled: function () {
9403
- return relatedListsPredictionsEnabled === true;
9404
- },
9405
- // createContentVersion
9406
- setDraftAwareCreateContentVersionAdapter: function (adapter) {
9407
- draftAwareCreateContentVersionAdapter = adapter;
9408
- },
9409
- getDraftAwareCreateContentVersionAdapter: function () {
9410
- return draftAwareCreateContentVersionAdapter;
9411
- },
9412
- ...configurationForOneStoreEnabledAdapters,
9413
- };
9414
- /**
9415
- * Defines the configuration API and is exposed internally as well as externally.
9416
- * Configuration for GraphQL adapters only.
9417
- */
9418
- const configurationForGraphQLAdapters = {
9419
- setDraftAwareGraphQLAdapter: function (adapter) {
9420
- draftAwareGraphQLAdapter = adapter;
9421
- },
9422
- getDraftAwareGraphQLAdapter: function () {
9423
- return draftAwareGraphQLAdapter;
9424
- },
9425
- setEnvironmentAwareGraphQLBatchAdapter: function (adapter) {
9426
- environmentAwareGraphQLBatchAdapter = adapter;
9427
- },
9428
- getEnvironmentAwareGraphQLBatchAdapter: function () {
9429
- return environmentAwareGraphQLBatchAdapter;
9430
- },
9431
- };
9432
- const registrations = new Set();
9433
- /**
9434
- * lds-adapter-uiapi is special. The non-SFDC bundle combines REST and GQL adapters,
9435
- * yet for SFDC those are separate bundles. So non-SFDC bundle (./main.ts) registers
9436
- * both REST and GQL configs. We want each SFDC bundle to register (we don't want one
9437
- * SFDC bundle to assume the other is being loaded and therefore the other one will
9438
- * take care of registration) but we don't want to double register either.
9439
- *
9440
- * So we make this function that memoizes if it's been called before and only
9441
- * actually registers once.
9442
- */
9443
- function ensureRegisteredOnce(registration) {
9444
- const { id } = registration;
9445
- if (!registrations.has(id)) {
9446
- register(registration);
9447
- registrations.add(id);
9448
- }
9449
- }
9450
-
9451
- // For use by callers within this module to instrument interesting things.
9452
- let instrumentation = {
9453
- /**
9454
- * Called when a set of record conflicts has been fully resolved. The
9455
- * parameter indicates the number of server requests that were needed
9456
- * to fully resolve all the record conflicts.
9457
- */
9458
- recordConflictsResolved: (_serverRequestCount) => { },
9459
- /**
9460
- * Called during merging of incoming and existing FieldValues.
9461
- * Called when the incoming FieldValue display value is null.
9462
- *
9463
- * Note: Temporary instrumentation to capture distribution and frequency, W-8990630
9464
- * Flipped to counter metric due to W-9611107
9465
- */
9466
- nullDisplayValueConflict: (_fieldInfo) => { },
9467
- /**
9468
- * SFDC Throttling
9469
- * getRecordNotifyChange and notifyRecordUpdateAvailable are both throttled
9470
- */
9471
- getRecordNotifyChangeAllowed: () => { },
9472
- getRecordNotifyChangeDropped: () => { },
9473
- notifyRecordUpdateAvailableAllowed: () => { },
9474
- notifyRecordUpdateAvailableDropped: () => { },
9475
- /**
9476
- * RecordRepresentation merge
9477
- * Called when records change apiName
9478
- */
9479
- recordApiNameChanged: (_existingApiName, _incomingApiName) => { },
9480
- recordTypeIdIsNull: (_apiName) => { },
9481
- /**
9482
- * RecordRepresentation merge
9483
- * Called when either incoming or existing RecordRepresentation has a weakEtag=0
9484
- */
9485
- weakEtagZero: (_incomingWeakEtagZero, _existingWeakEtagZero, _apiName) => { },
9486
- /**
9487
- * getRecord notifyChangeFactory
9488
- * Called when dispatchResourceRequest is resolved/rejected
9489
- */
9490
- getRecordNotifyChangeNetworkResult: (_uniqueWeakEtags, _error) => { },
9491
- };
9492
- /**
9493
- * Allows external modules (typically a runtime environment) to set
9494
- * instrumentation hooks for this module. Note that the hooks are
9495
- * incremental - hooks not suppiled in newInstrumentation will retain
9496
- * their previous values. The default instrumentation hooks are no-ops.
9497
- *
9498
- * @param newInstrumentation instrumentation hooks to be overridden
9499
- */
9500
- function instrument(newInstrumentation) {
9501
- instrumentation = Object.assign(instrumentation, newInstrumentation);
9502
- }
9503
- const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
9504
- function generateParamConfigMetadata(name, required, resourceType, typeCheckShape, isArrayShape = false, coerceFn) {
9505
- return {
9506
- name,
9507
- required,
9508
- resourceType,
9509
- typeCheckShape,
9510
- isArrayShape,
9511
- coerceFn,
9512
- };
9513
- }
9514
- function buildAdapterValidationConfig(displayName, paramsMeta) {
9515
- const required = paramsMeta.filter(p => p.required).map(p => p.name);
9516
- const optional = paramsMeta.filter(p => !p.required).map(p => p.name);
9517
- return {
9518
- displayName,
9519
- parameters: {
9520
- required,
9521
- optional,
9522
- }
9523
- };
9524
- }
9525
-
9526
- const { assign, create, freeze, isFrozen, keys } = Object;
9527
- const { isArray } = Array;
9528
- const { concat, filter, includes, push, reduce } = Array.prototype;
9529
-
9530
- function isString(value) {
9531
- return typeof value === 'string';
9532
- }
9533
- /**
9534
- * @param value The array to dedupe
9535
- * @returns An array without duplicates.
9536
- */
9537
- function dedupe(value) {
9538
- const result = {};
9539
- for (let i = 0, len = value.length; i < len; i += 1) {
9540
- result[value[i]] = true;
9541
- }
9542
- return keys(result);
9543
- }
9544
-
9545
- function isObjectId(unknown) {
9546
- if (typeof unknown !== 'object' || unknown === null) {
9547
- return false;
9548
- }
9549
- return isString(unknown.objectApiName);
9550
- }
9551
-
9552
- /**
9553
- * Returns the object API name.
9554
- * @param value The value from which to get the object API name.
9555
- * @returns The object API name.
9556
- */
9557
- function getObjectApiName$1(value) {
9558
- // Note: tightening validation logic changes behavior from userland getting
9559
- // a server-provided error to the adapter noop'ing. In 224 we decided to not
9560
- // change the behavior.
9561
- if (typeof value === 'string') {
9562
- const trimmed = value.trim();
9563
- if (trimmed.length > 0) {
9564
- return trimmed;
9565
- }
9566
- }
9567
- else if (isObjectId(value)) {
9568
- return value.objectApiName.trim();
9569
- }
9570
- return undefined;
9571
- }
9572
-
9573
- function isFieldId(unknown) {
9574
- if (typeof unknown !== 'object' || unknown === null) {
9575
- return false;
9576
- }
9577
- const value = unknown;
9578
- return isString(value.objectApiName) && isString(value.fieldApiName);
9579
- }
9580
-
9581
- /**
9582
- * Returns the field API name, qualified with an object name if possible.
9583
- * @param value The value from which to get the qualified field API name.
9584
- * @param onlyQualifiedFieldNames - Whether or not this function should skip fieldApiName that do not include the delimiter '.'
9585
- * @return The qualified field API name.
9586
- */
9587
- function getFieldApiName(value, onlyQualifiedFieldNames = false) {
9588
- // Note: tightening validation logic changes behavior from userland getting
9589
- // a server-provided error to the adapter noop'ing. In 224 we decided to not
9590
- // change the behavior. In 250 we decided to add the 'onlyQualifiedFieldName' flag to tighten the logic
9591
- // optionally to avoid issues with persisted invalid field names.
9592
- if (isString(value)) {
9593
- const trimmed = value.trim();
9594
- if (trimmed.length > 0 && (onlyQualifiedFieldNames ? trimmed.indexOf('.') > -1 : true)) {
9595
- return trimmed;
9596
- }
9597
- }
9598
- else if (isFieldId(value)) {
9599
- return value.objectApiName + '.' + value.fieldApiName;
9600
- }
9601
- return undefined;
9602
- }
9603
-
9604
- /**
9605
- * Returns the field API name.
9606
- * @param value The value from which to get the field API name.
9607
- * @param options Option bag. onlyQualifiedFieldNames is a boolean that allows this function to skip returning invalid FieldApiNames.
9608
- * @returns The field API name.
9609
- */
9610
- function getFieldApiNamesArray(value, options = { onlyQualifiedFieldNames: false }) {
9611
- const valueArray = isArray(value) ? value : [value];
9612
- const array = [];
9613
- for (let i = 0, len = valueArray.length; i < len; i += 1) {
9614
- const item = valueArray[i];
9615
- const apiName = getFieldApiName(item, options.onlyQualifiedFieldNames);
9616
- if (apiName === undefined) {
9617
- if (options.onlyQualifiedFieldNames) {
9618
- continue; // Just skips invalid field names rather than failing to return an array at all
9619
- }
9620
- return undefined;
9621
- }
9622
- push.call(array, apiName);
9623
- }
9624
- if (array.length === 0) {
9625
- return undefined;
9626
- }
9627
- return dedupe(array).sort();
9628
- }
9629
- freeze({
9630
- name: '',
9631
- children: {},
9632
- });
9633
-
9634
- ObjectCreate$1(null);
9635
-
9636
- ObjectCreate$1(null);
9637
-
9638
- const adapterName$$ = 'getListUiByApiName';
9639
- const getListUiByApiName_ConfigPropertyMetadata = [
9640
- generateParamConfigMetadata('listViewApiName', true, 0 /* UrlParameter */, 0 /* String */),
9641
- generateParamConfigMetadata('objectApiName', true, 0 /* UrlParameter */, 0 /* String */, false, getObjectApiName$1),
9642
- generateParamConfigMetadata('fields', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
9643
- generateParamConfigMetadata('optionalFields', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
9644
- generateParamConfigMetadata('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
9645
- generateParamConfigMetadata('pageToken', false, 1 /* QueryParameter */, 0 /* String */),
9646
- generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
9647
- ];
9648
- const getListUiByApiName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$$, getListUiByApiName_ConfigPropertyMetadata);
9649
-
9650
- const adapterName$_ = 'getListUiByListViewId';
9651
- const getListUiByListViewId_ConfigPropertyMetadata = [
9652
- generateParamConfigMetadata('listViewId', true, 0 /* UrlParameter */, 0 /* String */),
9653
- generateParamConfigMetadata('fields', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
9654
- generateParamConfigMetadata('optionalFields', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
9655
- generateParamConfigMetadata('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
9656
- generateParamConfigMetadata('pageToken', false, 1 /* QueryParameter */, 0 /* String */),
9657
- generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
9658
- ];
9659
- const getListUiByListViewId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$_, getListUiByListViewId_ConfigPropertyMetadata);
9660
-
9661
- const adapterName$Y = 'getMruListUi';
9662
- const getMruListUi_ConfigPropertyMetadata = [
9663
- generateParamConfigMetadata('objectApiName', true, 0 /* UrlParameter */, 0 /* String */, false, getObjectApiName$1),
9664
- generateParamConfigMetadata('fields', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
9665
- generateParamConfigMetadata('optionalFields', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
9666
- generateParamConfigMetadata('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
9667
- generateParamConfigMetadata('pageToken', false, 1 /* QueryParameter */, 0 /* String */),
9668
- generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
9669
- ];
9670
- const getMruListUi_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$Y, getMruListUi_ConfigPropertyMetadata);
9671
- // make local copies of the adapter configs so we can ignore other getListUi config parameters to match
9672
- // lds222 behavior
9673
- ({
9674
- ...getMruListUi_ConfigPropertyNames,
9675
- parameters: {
9676
- ...getMruListUi_ConfigPropertyNames.parameters,
9677
- optional: [
9678
- ...getMruListUi_ConfigPropertyNames.parameters.optional,
9679
- 'listViewApiName',
9680
- 'listViewId',
9681
- ],
9682
- },
9683
- });
9684
- // make local copies of the adapter configs so we can have them ignore each other's config parameters
9685
- // to match lds222 behavior
9686
- ({
9687
- ...getListUiByApiName_ConfigPropertyNames,
9688
- parameters: {
9689
- ...getListUiByApiName_ConfigPropertyNames.parameters,
9690
- optional: [...getListUiByApiName_ConfigPropertyNames.parameters.optional, 'listViewId'],
9691
- },
9692
- });
9693
- ({
9694
- ...getListUiByListViewId_ConfigPropertyNames,
9695
- parameters: {
9696
- ...getListUiByListViewId_ConfigPropertyNames.parameters,
9697
- optional: [
9698
- ...getListUiByListViewId_ConfigPropertyNames.parameters.optional,
9699
- 'listViewApiName',
9700
- 'objectApiName',
9701
- ],
9702
- },
9703
- });
9704
-
9705
- var DiscriminatorValues$5;
9706
- (function (DiscriminatorValues) {
9707
- DiscriminatorValues["EmptySpace"] = "EmptySpace";
9708
- DiscriminatorValues["ReportChart"] = "ReportChart";
9709
- DiscriminatorValues["VisualforcePage"] = "VisualforcePage";
9710
- DiscriminatorValues["Canvas"] = "Canvas";
9711
- DiscriminatorValues["Field"] = "Field";
9712
- DiscriminatorValues["CustomLink"] = "CustomLink";
9713
- })(DiscriminatorValues$5 || (DiscriminatorValues$5 = {}));
9714
-
9715
- var LayoutMode;
9716
- (function (LayoutMode) {
9717
- LayoutMode["View"] = "View";
9718
- LayoutMode["Edit"] = "Edit";
9719
- LayoutMode["Create"] = "Create";
9720
- })(LayoutMode || (LayoutMode = {}));
9721
-
9722
- LayoutMode.View;
9723
-
9724
- var FormFactor;
9725
- (function (FormFactor) {
9726
- FormFactor["Large"] = "Large";
9727
- FormFactor["Medium"] = "Medium";
9728
- FormFactor["Small"] = "Small";
9729
- })(FormFactor || (FormFactor = {}));
9730
-
9731
- ObjectCreate$1(null);
9732
-
9733
- var LayoutType;
9734
- (function (LayoutType) {
9735
- LayoutType["Full"] = "Full";
9736
- LayoutType["Compact"] = "Compact";
9737
- })(LayoutType || (LayoutType = {}));
9738
-
9739
- ObjectCreate$1(null);
9740
-
9741
- ObjectCreate$1(null);
9742
-
9743
- const VERSION$1O = "8d2032474fb4fabdf5cf4042be9042d9";
9744
- const select$20 = function WorkStepPicklistValueAttributeRepresentationSelect() {
9745
- const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$1Y();
9746
- return {
9747
- kind: 'Fragment',
9748
- version: VERSION$1O,
9749
- private: [],
9750
- selections: [
9751
- ...AbstractPicklistValueAttributesRepresentationSelections,
9752
- {
9753
- name: 'sortOrder',
9754
- kind: 'Scalar'
9755
- },
9756
- {
9757
- name: 'statusCode',
9758
- kind: 'Scalar'
9759
- }
9760
- ]
9761
- };
9762
- };
9763
-
9764
- const VERSION$1N = "53893a219bc0888951863f2c44317cac";
9765
- const select$1$ = function LeadStatusPicklistValueAttributesRepresentationSelect() {
9766
- const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$1Y();
9767
- return {
9768
- kind: 'Fragment',
9769
- version: VERSION$1N,
9770
- private: [],
9771
- selections: [
9772
- ...AbstractPicklistValueAttributesRepresentationSelections,
9773
- {
9774
- name: 'converted',
9775
- kind: 'Scalar'
9776
- }
9777
- ]
9778
- };
9779
- };
9780
-
9781
- const VERSION$1M = "4818ec07c499784571c1012ead048c88";
9782
- const select$1_ = function CaseStatusPicklistValueAttributesRepresentationSelect() {
9783
- const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$1Y();
9784
- return {
9785
- kind: 'Fragment',
9786
- version: VERSION$1M,
9787
- private: [],
9788
- selections: [
9789
- ...AbstractPicklistValueAttributesRepresentationSelections,
9790
- {
9791
- name: 'closed',
9792
- kind: 'Scalar'
9793
- }
9794
- ]
9795
- };
9796
- };
9797
-
9798
- const VERSION$1L = "950a3a962acbd2b128f937d4c055a9d6";
9799
- const select$1Z = function OpportunityStagePicklistValueAttributesRepresentationSelect() {
9800
- const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$1Y();
9801
- return {
9802
- kind: 'Fragment',
9803
- version: VERSION$1L,
9804
- private: [],
9805
- selections: [
9806
- ...AbstractPicklistValueAttributesRepresentationSelections,
9807
- {
9808
- name: 'closed',
9809
- kind: 'Scalar'
9810
- },
9811
- {
9812
- name: 'defaultProbability',
9813
- kind: 'Scalar'
9814
- },
9815
- {
9816
- name: 'forecastCategoryName',
9817
- kind: 'Scalar'
9818
- },
9819
- {
9820
- name: 'won',
9821
- kind: 'Scalar'
9822
- }
9823
- ]
9824
- };
9825
- };
9826
-
9827
- var DiscriminatorValues$4;
9828
- (function (DiscriminatorValues) {
9829
- DiscriminatorValues["WorkStepStatus"] = "WorkStepStatus";
9830
- DiscriminatorValues["LeadStatus"] = "LeadStatus";
9831
- DiscriminatorValues["CaseStatus"] = "CaseStatus";
9832
- DiscriminatorValues["OpportunityStage"] = "OpportunityStage";
9833
- })(DiscriminatorValues$4 || (DiscriminatorValues$4 = {}));
9834
- const VERSION$1K = "bd523b2343366edfc25a2dbee2c4e986";
9835
- const selectChildren$2 = function AbstractPicklistValueAttributesRepresentationSelectChildren() {
9836
- const workStepPicklistValueAttributeRepresentationSelections = select$20();
9837
- const leadStatusPicklistValueAttributesRepresentationSelections = select$1$();
9838
- const caseStatusPicklistValueAttributesRepresentationSelections = select$1_();
9839
- const opportunityStagePicklistValueAttributesRepresentationSelections = select$1Z();
9840
- return {
9841
- kind: 'Fragment',
9842
- union: true,
9843
- discriminator: 'picklistAtrributesValueType',
9844
- unionSelections: {
9845
- [DiscriminatorValues$4.WorkStepStatus]: workStepPicklistValueAttributeRepresentationSelections,
9846
- [DiscriminatorValues$4.LeadStatus]: leadStatusPicklistValueAttributesRepresentationSelections,
9847
- [DiscriminatorValues$4.CaseStatus]: caseStatusPicklistValueAttributesRepresentationSelections,
9848
- [DiscriminatorValues$4.OpportunityStage]: opportunityStagePicklistValueAttributesRepresentationSelections
9849
- }
9850
- };
9851
- };
9852
- const select$1Y = function AbstractPicklistValueAttributesRepresentationSelect() {
9853
- return {
9854
- kind: 'Fragment',
9855
- version: VERSION$1K,
9856
- private: [],
9857
- selections: [
9858
- {
9859
- name: 'picklistAtrributesValueType',
9860
- kind: 'Scalar'
9861
- }
9862
- ]
9863
- };
9864
- };
9865
-
9866
- const VERSION$1J = "9e2a16a80378487f557124c771201cf9";
9867
- const select$1X = function PicklistValueRepresentationSelect() {
9868
- const AbstractPicklistValueAttributesRepresentation__unionSelections = selectChildren$2();
9869
- return {
9870
- kind: 'Fragment',
9871
- version: VERSION$1J,
9872
- private: [],
9873
- selections: [
9874
- {
9875
- kind: 'Object',
9876
- name: 'attributes',
9877
- discriminator: AbstractPicklistValueAttributesRepresentation__unionSelections.discriminator,
9878
- union: true,
9879
- nullable: true,
9880
- unionSelections: AbstractPicklistValueAttributesRepresentation__unionSelections.unionSelections
9881
- },
9882
- {
9883
- name: 'label',
9884
- kind: 'Scalar'
9885
- },
9886
- {
9887
- name: 'validFor',
9888
- kind: 'Scalar',
9889
- plural: true
9890
- },
9891
- {
9892
- name: 'value',
9893
- kind: 'Scalar'
9894
- }
9895
- ]
9896
- };
9897
- };
9898
- const VERSION$1I = "0a361a49370acb4c6a31721a2057649a";
9899
- const select$1W = function PicklistValuesRepresentationSelect() {
9900
- const { selections: PicklistValueRepresentation__selections, opaque: PicklistValueRepresentation__opaque, } = select$1X();
9901
- return {
9902
- kind: 'Fragment',
9903
- version: VERSION$1I,
9904
- private: [
9905
- 'eTag'
9906
- ],
9907
- selections: [
9908
- {
9909
- name: 'controllerValues',
9910
- kind: 'Scalar',
9911
- map: true
9912
- },
9913
- {
9914
- name: 'defaultValue',
9915
- kind: 'Object',
9916
- nullable: true,
9917
- selections: PicklistValueRepresentation__selections
9918
- },
9919
- {
9920
- name: 'url',
9921
- kind: 'Scalar'
9922
- },
9923
- {
9924
- name: 'values',
9925
- kind: 'Object',
9926
- plural: true,
9927
- selections: PicklistValueRepresentation__selections
9928
- }
9929
- ]
9930
- };
9931
- };
9932
-
9933
- select$1W().selections;
9934
-
9935
- var DiscriminatorValues$3;
9936
- (function (DiscriminatorValues) {
9937
- DiscriminatorValues["Photo"] = "Photo";
9938
- DiscriminatorValues["Theme"] = "Theme";
9939
- })(DiscriminatorValues$3 || (DiscriminatorValues$3 = {}));
9940
-
9941
- ObjectCreate$1(null);
9942
-
9943
- ObjectCreate$1(null);
9944
-
9945
- ObjectCreate$1(null);
9946
-
9947
- ObjectCreate$1(null);
9948
-
9949
- var DiscriminatorValues$1;
9950
- (function (DiscriminatorValues) {
9951
- DiscriminatorValues["Text"] = "Text";
9952
- DiscriminatorValues["Select"] = "Select";
9953
- })(DiscriminatorValues$1 || (DiscriminatorValues$1 = {}));
9954
-
9955
- var DiscriminatorValues;
9956
- (function (DiscriminatorValues) {
9957
- DiscriminatorValues["Field"] = "Field";
9958
- DiscriminatorValues["DataCategory"] = "DataCategory";
9959
- })(DiscriminatorValues || (DiscriminatorValues = {}));
9960
-
9248
+ // The below imports were changed in W-15596354 to be imported from '@salesforce/lds-uipai-record-utils-mobile' which caused graphQL to be bundled
9249
+ // resulting in the module size greatly increasing: https://gus.lightning.force.com/lightning/r/ADM_Work__c/a07EE00001wIJcBYAW/view. Therefore,
9250
+ // the fix is to just include these values directly instead of importing.
9961
9251
  const API_NAMESPACE = 'UiApi';
9962
9252
  const RECORD_REPRESENTATION_NAME = 'RecordRepresentation';
9963
9253
  const RECORD_ID_PREFIX = `${API_NAMESPACE}::${RECORD_REPRESENTATION_NAME}:`;
9964
9254
  const RECORD_FIELDS_KEY_JUNCTION = '__fields__';
9965
- // The rest of this is copy-pasted. Sorry.
9966
- ObjectCreate$1(null);
9967
- ensureRegisteredOnce({
9968
- id: '@salesforce/lds-adapters-uiapi-mobile',
9969
- configuration: {
9970
- ...configurationForRestAdapters,
9971
- ...configurationForGraphQLAdapters,
9972
- ...configurationForOneStoreEnabledAdapters,
9973
- },
9974
- instrument,
9975
- });
9976
-
9977
- /**
9978
- * Copyright (c) 2022, Salesforce, Inc.,
9979
- * All rights reserved.
9980
- * For full license text, see the LICENSE.txt file
9981
- */
9982
-
9983
-
9984
9255
  function isStoreKeyRecordId(key) {
9985
9256
  return key.indexOf(RECORD_ID_PREFIX) > -1 && key.indexOf(RECORD_FIELDS_KEY_JUNCTION) === -1;
9986
9257
  }
9987
-
9988
9258
  // No need to pass the actual record key `luvio.ingestStore`. The `RecordRepresentation.ts#ingest`
9989
9259
  // function extracts the appropriate record id from the ingested record.
9990
9260
  const INGEST_KEY = '';
@@ -10109,7 +9379,7 @@ function fixRecordTypes(luvio, record) {
10109
9379
  }
10110
9380
  }
10111
9381
  // recurse on nested records
10112
- const fieldKeys = keys$1(record.fields);
9382
+ const fieldKeys = keys(record.fields);
10113
9383
  const fieldKeysLen = fieldKeys.length;
10114
9384
  for (let i = 0; i < fieldKeysLen; ++i) {
10115
9385
  const fieldValue = record.fields[fieldKeys[i]].value;
@@ -10211,7 +9481,7 @@ class AdsBridge {
10211
9481
  // Prefix all the fields with the record API name.
10212
9482
  const qualifiedFieldNames = [];
10213
9483
  for (let i = 0, len = fieldNames.length; i < len; i++) {
10214
- push$1.call(qualifiedFieldNames, `${apiName}.${fieldNames[i]}`);
9484
+ push.call(qualifiedFieldNames, `${apiName}.${fieldNames[i]}`);
10215
9485
  }
10216
9486
  return Promise.resolve(qualifiedFieldNames);
10217
9487
  }
@@ -10274,4 +9544,4 @@ class AdsBridge {
10274
9544
  }
10275
9545
  }
10276
9546
 
10277
- export { AdsBridge as default, isDMOEntity };
9547
+ export { AdsBridge as default, isDMOEntity, isStoreKeyRecordId };