@salesforce/lds-worker-api 1.291.0 → 1.292.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.
Files changed (15) hide show
  1. package/dist/sfdc/es/ldsWorkerApi.js +1 -1
  2. package/dist/standalone/es/lds-worker-api.js +28 -23
  3. package/dist/standalone/umd/lds-worker-api.js +28 -23
  4. package/package.json +10 -10
  5. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/createRecord/objectInfos/Aircraft-objectInfo.network-mock.json +107 -75
  6. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/createRecord/objectInfos/Pilot-objectInfo.network-mock.json +22 -2
  7. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/objectInfos/Account.network-mock.json +138 -2
  8. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/objectInfos/AssignedResource.network-mock.json +72 -7
  9. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/objectInfos/Case.network-mock.json +168 -16
  10. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/objectInfos/ServiceAppointment.network-mock.json +258 -23
  11. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/objectInfos/ServiceResource.network-mock.json +106 -10
  12. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/objectInfos/TimeSheetEntry.network-mock.json +52 -2
  13. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/objectInfos/User.network-mock.json +440 -13
  14. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/objectInfos/WorkOrder.network-mock.json +160 -2
  15. package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/objectInfos/WorkType.network-mock.json +48 -2
@@ -1074,4 +1074,4 @@ if (process.env.NODE_ENV !== 'production') {
1074
1074
  }
1075
1075
 
1076
1076
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
1077
- // version: 1.291.0-8df6969f6
1077
+ // version: 1.292.0-db5dc5800
@@ -4190,7 +4190,7 @@ function withDefaultLuvio(callback) {
4190
4190
  }
4191
4191
  callbacks.push(callback);
4192
4192
  }
4193
- // version: 1.291.0-8df6969f6
4193
+ // version: 1.292.0-db5dc5800
4194
4194
 
4195
4195
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4196
4196
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15698,7 +15698,7 @@ function gql(literals, ...subs) {
15698
15698
  }
15699
15699
  return superResult;
15700
15700
  }
15701
- // version: 1.291.0-8df6969f6
15701
+ // version: 1.292.0-db5dc5800
15702
15702
 
15703
15703
  function unwrap(data) {
15704
15704
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16623,7 +16623,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
16623
16623
  const { apiFamily, name } = metadata;
16624
16624
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16625
16625
  }
16626
- // version: 1.291.0-8df6969f6
16626
+ // version: 1.292.0-db5dc5800
16627
16627
 
16628
16628
  /**
16629
16629
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -24660,7 +24660,7 @@ const factory$h = (luvio) => {
24660
24660
  };
24661
24661
 
24662
24662
  const TTL$w = 900000;
24663
- const VERSION$12$1 = "ec9370a0cd56f4769fe9ec5cd942ff30";
24663
+ const VERSION$12$1 = "2302a71ca718abb60353eb88dedb1c12";
24664
24664
  const RepresentationType$N = 'ObjectInfoRepresentation';
24665
24665
  function keyBuilder$1V(luvio, config) {
24666
24666
  return keyPrefix$2 + '::' + RepresentationType$N + ':' + config.apiName;
@@ -24699,6 +24699,10 @@ const select$1G = function ObjectInfoRepresentationSelect() {
24699
24699
  kind: 'Object',
24700
24700
  opaque: true
24701
24701
  },
24702
+ {
24703
+ name: 'compactLayoutable',
24704
+ kind: 'Scalar'
24705
+ },
24702
24706
  {
24703
24707
  name: 'createable',
24704
24708
  kind: 'Scalar'
@@ -24763,6 +24767,10 @@ const select$1G = function ObjectInfoRepresentationSelect() {
24763
24767
  kind: 'Object',
24764
24768
  opaque: true
24765
24769
  },
24770
+ {
24771
+ name: 'searchLayoutable',
24772
+ kind: 'Scalar'
24773
+ },
24766
24774
  {
24767
24775
  name: 'searchable',
24768
24776
  kind: 'Scalar'
@@ -29638,7 +29646,7 @@ function getTypeCacheKeys$z$1(rootKeySet, luvio, input, fullPathFactory) {
29638
29646
  }
29639
29647
 
29640
29648
  const TTL$n = 300000;
29641
- const VERSION$O$1 = "b33c534240965bedfcf073228d48b940";
29649
+ const VERSION$O$1 = "0cd492fdd6c713c206ef53dc02175f71";
29642
29650
  const RepresentationType$x = 'AppRepresentation';
29643
29651
  function keyBuilder$1k(luvio, config) {
29644
29652
  return keyPrefix$2 + '::' + RepresentationType$x + ':' + (config.appId === null ? '' : config.appId);
@@ -29729,6 +29737,10 @@ const select$1g$1 = function AppRepresentationSelect() {
29729
29737
  name: 'isNavTabPersistenceDisabled',
29730
29738
  kind: 'Scalar'
29731
29739
  },
29740
+ {
29741
+ name: 'isOmniPinnedViewEnabled',
29742
+ kind: 'Scalar'
29743
+ },
29732
29744
  {
29733
29745
  name: 'label',
29734
29746
  kind: 'Scalar'
@@ -29784,6 +29796,11 @@ function equals$E(existing, incoming) {
29784
29796
  if (!(existing_isNavTabPersistenceDisabled === incoming_isNavTabPersistenceDisabled)) {
29785
29797
  return false;
29786
29798
  }
29799
+ const existing_isOmniPinnedViewEnabled = existing.isOmniPinnedViewEnabled;
29800
+ const incoming_isOmniPinnedViewEnabled = incoming.isOmniPinnedViewEnabled;
29801
+ if (!(existing_isOmniPinnedViewEnabled === incoming_isOmniPinnedViewEnabled)) {
29802
+ return false;
29803
+ }
29787
29804
  const existing_selected = existing.selected;
29788
29805
  const incoming_selected = incoming.selected;
29789
29806
  if (!(existing_selected === incoming_selected)) {
@@ -43163,23 +43180,11 @@ function validateAdapterConfig$2$1(untrustedConfig, configPropertyNames) {
43163
43180
  return config;
43164
43181
  }
43165
43182
 
43166
- const ISO8601_DATE_REGEX = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d+Z$/;
43167
43183
  function getHeaders(clientOptions) {
43168
43184
  const headers = {};
43169
43185
  if (untrustedIsObject$2(clientOptions)) {
43170
43186
  if (typeof clientOptions.ifUnmodifiedSince === 'string') {
43171
43187
  headers.ifUnmodifiedSince = clientOptions.ifUnmodifiedSince;
43172
- // HTTP standard format date is expected by UI-API
43173
- // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Unmodified-Since
43174
- // A component built for Connect API must use If-Unmodified-Since
43175
- // dates formatted as ISO 8601, which does not match the HTTP spec.
43176
- // For compatibility, convert the date to match the standard.
43177
- if (headers.ifUnmodifiedSince.match(ISO8601_DATE_REGEX)) {
43178
- const utcString = new Date(headers.ifUnmodifiedSince).toUTCString();
43179
- if (utcString !== 'Invalid Date') {
43180
- headers.ifUnmodifiedSince = utcString;
43181
- }
43182
- }
43183
43188
  }
43184
43189
  }
43185
43190
  return headers;
@@ -44215,7 +44220,7 @@ withDefaultLuvio((luvio) => {
44215
44220
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
44216
44221
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
44217
44222
  });
44218
- // version: 1.291.0-79b8ea231
44223
+ // version: 1.292.0-5ad1fe2ca
44219
44224
 
44220
44225
  var ldsIdempotencyWriteDisabled = {
44221
44226
  isOpen: function (e) {
@@ -62494,7 +62499,7 @@ register$1({
62494
62499
  id: '@salesforce/lds-network-adapter',
62495
62500
  instrument: instrument$2,
62496
62501
  });
62497
- // version: 1.291.0-8df6969f6
62502
+ // version: 1.292.0-db5dc5800
62498
62503
 
62499
62504
  const { create: create$3, keys: keys$3 } = Object;
62500
62505
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -82558,7 +82563,7 @@ register$1({
82558
82563
  configuration: { ...configurationForGraphQLAdapters$1 },
82559
82564
  instrument: instrument$1,
82560
82565
  });
82561
- // version: 1.291.0-79b8ea231
82566
+ // version: 1.292.0-5ad1fe2ca
82562
82567
 
82563
82568
  // On core the unstable adapters are re-exported with different names,
82564
82569
  // we want to match them here.
@@ -84814,7 +84819,7 @@ withDefaultLuvio((luvio) => {
84814
84819
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
84815
84820
  graphQLImperative = ldsAdapter;
84816
84821
  });
84817
- // version: 1.291.0-79b8ea231
84822
+ // version: 1.292.0-5ad1fe2ca
84818
84823
 
84819
84824
  var gqlApi = /*#__PURE__*/Object.freeze({
84820
84825
  __proto__: null,
@@ -85552,7 +85557,7 @@ const callbacks$1 = [];
85552
85557
  function register(r) {
85553
85558
  callbacks$1.forEach((callback) => callback(r));
85554
85559
  }
85555
- // version: 1.291.0-8df6969f6
85560
+ // version: 1.292.0-db5dc5800
85556
85561
 
85557
85562
  /**
85558
85563
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -90514,4 +90519,4 @@ const { luvio } = getRuntime();
90514
90519
  setDefaultLuvio({ luvio });
90515
90520
 
90516
90521
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
90517
- // version: 1.291.0-8df6969f6
90522
+ // version: 1.292.0-db5dc5800
@@ -4196,7 +4196,7 @@
4196
4196
  }
4197
4197
  callbacks.push(callback);
4198
4198
  }
4199
- // version: 1.291.0-8df6969f6
4199
+ // version: 1.292.0-db5dc5800
4200
4200
 
4201
4201
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4202
4202
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15704,7 +15704,7 @@
15704
15704
  }
15705
15705
  return superResult;
15706
15706
  }
15707
- // version: 1.291.0-8df6969f6
15707
+ // version: 1.292.0-db5dc5800
15708
15708
 
15709
15709
  function unwrap(data) {
15710
15710
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16629,7 +16629,7 @@
16629
16629
  const { apiFamily, name } = metadata;
16630
16630
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16631
16631
  }
16632
- // version: 1.291.0-8df6969f6
16632
+ // version: 1.292.0-db5dc5800
16633
16633
 
16634
16634
  /**
16635
16635
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -24666,7 +24666,7 @@
24666
24666
  };
24667
24667
 
24668
24668
  const TTL$w = 900000;
24669
- const VERSION$12$1 = "ec9370a0cd56f4769fe9ec5cd942ff30";
24669
+ const VERSION$12$1 = "2302a71ca718abb60353eb88dedb1c12";
24670
24670
  const RepresentationType$N = 'ObjectInfoRepresentation';
24671
24671
  function keyBuilder$1V(luvio, config) {
24672
24672
  return keyPrefix$2 + '::' + RepresentationType$N + ':' + config.apiName;
@@ -24705,6 +24705,10 @@
24705
24705
  kind: 'Object',
24706
24706
  opaque: true
24707
24707
  },
24708
+ {
24709
+ name: 'compactLayoutable',
24710
+ kind: 'Scalar'
24711
+ },
24708
24712
  {
24709
24713
  name: 'createable',
24710
24714
  kind: 'Scalar'
@@ -24769,6 +24773,10 @@
24769
24773
  kind: 'Object',
24770
24774
  opaque: true
24771
24775
  },
24776
+ {
24777
+ name: 'searchLayoutable',
24778
+ kind: 'Scalar'
24779
+ },
24772
24780
  {
24773
24781
  name: 'searchable',
24774
24782
  kind: 'Scalar'
@@ -29644,7 +29652,7 @@
29644
29652
  }
29645
29653
 
29646
29654
  const TTL$n = 300000;
29647
- const VERSION$O$1 = "b33c534240965bedfcf073228d48b940";
29655
+ const VERSION$O$1 = "0cd492fdd6c713c206ef53dc02175f71";
29648
29656
  const RepresentationType$x = 'AppRepresentation';
29649
29657
  function keyBuilder$1k(luvio, config) {
29650
29658
  return keyPrefix$2 + '::' + RepresentationType$x + ':' + (config.appId === null ? '' : config.appId);
@@ -29735,6 +29743,10 @@
29735
29743
  name: 'isNavTabPersistenceDisabled',
29736
29744
  kind: 'Scalar'
29737
29745
  },
29746
+ {
29747
+ name: 'isOmniPinnedViewEnabled',
29748
+ kind: 'Scalar'
29749
+ },
29738
29750
  {
29739
29751
  name: 'label',
29740
29752
  kind: 'Scalar'
@@ -29790,6 +29802,11 @@
29790
29802
  if (!(existing_isNavTabPersistenceDisabled === incoming_isNavTabPersistenceDisabled)) {
29791
29803
  return false;
29792
29804
  }
29805
+ const existing_isOmniPinnedViewEnabled = existing.isOmniPinnedViewEnabled;
29806
+ const incoming_isOmniPinnedViewEnabled = incoming.isOmniPinnedViewEnabled;
29807
+ if (!(existing_isOmniPinnedViewEnabled === incoming_isOmniPinnedViewEnabled)) {
29808
+ return false;
29809
+ }
29793
29810
  const existing_selected = existing.selected;
29794
29811
  const incoming_selected = incoming.selected;
29795
29812
  if (!(existing_selected === incoming_selected)) {
@@ -43169,23 +43186,11 @@
43169
43186
  return config;
43170
43187
  }
43171
43188
 
43172
- const ISO8601_DATE_REGEX = /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d+Z$/;
43173
43189
  function getHeaders(clientOptions) {
43174
43190
  const headers = {};
43175
43191
  if (untrustedIsObject$2(clientOptions)) {
43176
43192
  if (typeof clientOptions.ifUnmodifiedSince === 'string') {
43177
43193
  headers.ifUnmodifiedSince = clientOptions.ifUnmodifiedSince;
43178
- // HTTP standard format date is expected by UI-API
43179
- // https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Unmodified-Since
43180
- // A component built for Connect API must use If-Unmodified-Since
43181
- // dates formatted as ISO 8601, which does not match the HTTP spec.
43182
- // For compatibility, convert the date to match the standard.
43183
- if (headers.ifUnmodifiedSince.match(ISO8601_DATE_REGEX)) {
43184
- const utcString = new Date(headers.ifUnmodifiedSince).toUTCString();
43185
- if (utcString !== 'Invalid Date') {
43186
- headers.ifUnmodifiedSince = utcString;
43187
- }
43188
- }
43189
43194
  }
43190
43195
  }
43191
43196
  return headers;
@@ -44221,7 +44226,7 @@
44221
44226
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
44222
44227
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
44223
44228
  });
44224
- // version: 1.291.0-79b8ea231
44229
+ // version: 1.292.0-5ad1fe2ca
44225
44230
 
44226
44231
  var ldsIdempotencyWriteDisabled = {
44227
44232
  isOpen: function (e) {
@@ -62500,7 +62505,7 @@
62500
62505
  id: '@salesforce/lds-network-adapter',
62501
62506
  instrument: instrument$2,
62502
62507
  });
62503
- // version: 1.291.0-8df6969f6
62508
+ // version: 1.292.0-db5dc5800
62504
62509
 
62505
62510
  const { create: create$3, keys: keys$3 } = Object;
62506
62511
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -82564,7 +82569,7 @@
82564
82569
  configuration: { ...configurationForGraphQLAdapters$1 },
82565
82570
  instrument: instrument$1,
82566
82571
  });
82567
- // version: 1.291.0-79b8ea231
82572
+ // version: 1.292.0-5ad1fe2ca
82568
82573
 
82569
82574
  // On core the unstable adapters are re-exported with different names,
82570
82575
  // we want to match them here.
@@ -84820,7 +84825,7 @@
84820
84825
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
84821
84826
  graphQLImperative = ldsAdapter;
84822
84827
  });
84823
- // version: 1.291.0-79b8ea231
84828
+ // version: 1.292.0-5ad1fe2ca
84824
84829
 
84825
84830
  var gqlApi = /*#__PURE__*/Object.freeze({
84826
84831
  __proto__: null,
@@ -85558,7 +85563,7 @@
85558
85563
  function register(r) {
85559
85564
  callbacks$1.forEach((callback) => callback(r));
85560
85565
  }
85561
- // version: 1.291.0-8df6969f6
85566
+ // version: 1.292.0-db5dc5800
85562
85567
 
85563
85568
  /**
85564
85569
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -90539,4 +90544,4 @@
90539
90544
  exports.subscribeToAdapter = subscribeToAdapter;
90540
90545
 
90541
90546
  }));
90542
- // version: 1.291.0-8df6969f6
90547
+ // version: 1.292.0-db5dc5800
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-worker-api",
3
- "version": "1.291.0",
3
+ "version": "1.292.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "",
6
6
  "main": "dist/standalone/es/lds-worker-api.js",
@@ -35,15 +35,15 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@oat-sa/rollup-plugin-wildcard-external": "^1.0.0",
38
- "@salesforce/lds-adapters-graphql": "^1.291.0",
39
- "@salesforce/lds-adapters-uiapi": "^1.291.0",
40
- "@salesforce/lds-default-luvio": "^1.291.0",
41
- "@salesforce/lds-drafts": "^1.291.0",
42
- "@salesforce/lds-graphql-parser": "^1.291.0",
43
- "@salesforce/lds-luvio-engine": "^1.291.0",
44
- "@salesforce/lds-priming": "^1.291.0",
45
- "@salesforce/lds-runtime-mobile": "^1.291.0",
46
- "@salesforce/nimbus-plugin-lds": "^1.291.0",
38
+ "@salesforce/lds-adapters-graphql": "^1.292.0",
39
+ "@salesforce/lds-adapters-uiapi": "^1.292.0",
40
+ "@salesforce/lds-default-luvio": "^1.292.0",
41
+ "@salesforce/lds-drafts": "^1.292.0",
42
+ "@salesforce/lds-graphql-parser": "^1.292.0",
43
+ "@salesforce/lds-luvio-engine": "^1.292.0",
44
+ "@salesforce/lds-priming": "^1.292.0",
45
+ "@salesforce/lds-runtime-mobile": "^1.292.0",
46
+ "@salesforce/nimbus-plugin-lds": "^1.292.0",
47
47
  "ajv": "^8.11.0",
48
48
  "glob": "^7.1.5",
49
49
  "nimbus-types": "^2.0.0-alpha1",