@salesforce/lds-worker-api 1.332.0-dev11 → 1.332.0-dev13

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.
@@ -1128,4 +1128,4 @@ if (process.env.NODE_ENV !== 'production') {
1128
1128
  }
1129
1129
 
1130
1130
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
1131
- // version: 1.332.0-dev11-dc267c447c
1131
+ // version: 1.332.0-dev13-0fd2008fda
@@ -4265,7 +4265,7 @@ function withDefaultLuvio(callback) {
4265
4265
  }
4266
4266
  callbacks.push(callback);
4267
4267
  }
4268
- // version: 1.332.0-dev11-dc267c447c
4268
+ // version: 1.332.0-dev13-0fd2008fda
4269
4269
 
4270
4270
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4271
4271
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -5213,7 +5213,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
5213
5213
  const { apiFamily, name } = metadata;
5214
5214
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
5215
5215
  }
5216
- // version: 1.332.0-dev11-dc267c447c
5216
+ // version: 1.332.0-dev13-0fd2008fda
5217
5217
 
5218
5218
  /**
5219
5219
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -33850,7 +33850,7 @@ withDefaultLuvio((luvio) => {
33850
33850
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
33851
33851
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
33852
33852
  });
33853
- // version: 1.332.0-dev11-db48bc45f8
33853
+ // version: 1.332.0-dev13-e67f738040
33854
33854
 
33855
33855
  /**
33856
33856
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -91391,12 +91391,21 @@ function setupObserver() {
91391
91391
 
91392
91392
 
91393
91393
  const { keys: keys$7, values, create: create$6, assign: assign$6, freeze: freeze$3, entries } = Object;
91394
+
91395
+ const RECORD_TEMPLATE_CREATE_REPRESENTATION_NAME = 'RecordTemplateCreateRepresentation';
91396
+ const RECORD_TEMPLATE_CREATE_REPRESENTATION_PREFIX = `${API_NAMESPACE$1}::${RECORD_TEMPLATE_CREATE_REPRESENTATION_NAME}:`;
91397
+ function isStoreKeyRecordTemplateId(key) {
91398
+ return (key.indexOf(RECORD_TEMPLATE_CREATE_REPRESENTATION_PREFIX) > -1 &&
91399
+ key.indexOf(RECORD_FIELDS_KEY_JUNCTION$1) === -1);
91400
+ }
91394
91401
  function isStoreKeyRecordId(key) {
91395
91402
  return key.indexOf(RECORD_ID_PREFIX$1) > -1 && key.indexOf(RECORD_FIELDS_KEY_JUNCTION$1) === -1;
91396
91403
  }
91397
91404
  function isEntryDurableRecordRepresentation(entry, key) {
91398
91405
  // Either a DurableRecordRepresentation or StoreRecordError can live at a record key
91399
- return ((isStoreKeyRecordId(key) || isStoreKeyRecordViewEntity$1(key)) &&
91406
+ return ((isStoreKeyRecordId(key) ||
91407
+ isStoreKeyRecordViewEntity$1(key) ||
91408
+ isStoreKeyRecordTemplateId(key)) &&
91400
91409
  entry.data.__type === undefined);
91401
91410
  }
91402
91411
 
@@ -92873,7 +92882,7 @@ register$1({
92873
92882
  id: '@salesforce/lds-network-adapter',
92874
92883
  instrument: instrument$2,
92875
92884
  });
92876
- // version: 1.332.0-dev11-dc267c447c
92885
+ // version: 1.332.0-dev13-0fd2008fda
92877
92886
 
92878
92887
  const { create: create$2, keys: keys$2 } = Object;
92879
92888
  const { stringify, parse } = JSON;
@@ -115440,7 +115449,7 @@ register$1({
115440
115449
  configuration: { ...configurationForGraphQLAdapters$1 },
115441
115450
  instrument: instrument$1,
115442
115451
  });
115443
- // version: 1.332.0-dev11-db48bc45f8
115452
+ // version: 1.332.0-dev13-e67f738040
115444
115453
 
115445
115454
  // On core the unstable adapters are re-exported with different names,
115446
115455
  // we want to match them here.
@@ -115592,7 +115601,7 @@ withDefaultLuvio((luvio) => {
115592
115601
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
115593
115602
  graphQLImperative = ldsAdapter;
115594
115603
  });
115595
- // version: 1.332.0-dev11-db48bc45f8
115604
+ // version: 1.332.0-dev13-e67f738040
115596
115605
 
115597
115606
  var gqlApi = /*#__PURE__*/Object.freeze({
115598
115607
  __proto__: null,
@@ -116384,7 +116393,7 @@ const callbacks$1 = [];
116384
116393
  function register(r) {
116385
116394
  callbacks$1.forEach((callback) => callback(r));
116386
116395
  }
116387
- // version: 1.332.0-dev11-dc267c447c
116396
+ // version: 1.332.0-dev13-0fd2008fda
116388
116397
 
116389
116398
  /**
116390
116399
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -117447,4 +117456,4 @@ const { luvio } = getRuntime();
117447
117456
  setDefaultLuvio({ luvio });
117448
117457
 
117449
117458
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
117450
- // version: 1.332.0-dev11-dc267c447c
117459
+ // version: 1.332.0-dev13-0fd2008fda
@@ -4271,7 +4271,7 @@
4271
4271
  }
4272
4272
  callbacks.push(callback);
4273
4273
  }
4274
- // version: 1.332.0-dev11-dc267c447c
4274
+ // version: 1.332.0-dev13-0fd2008fda
4275
4275
 
4276
4276
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4277
4277
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -5219,7 +5219,7 @@
5219
5219
  const { apiFamily, name } = metadata;
5220
5220
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
5221
5221
  }
5222
- // version: 1.332.0-dev11-dc267c447c
5222
+ // version: 1.332.0-dev13-0fd2008fda
5223
5223
 
5224
5224
  /**
5225
5225
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -33856,7 +33856,7 @@
33856
33856
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
33857
33857
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
33858
33858
  });
33859
- // version: 1.332.0-dev11-db48bc45f8
33859
+ // version: 1.332.0-dev13-e67f738040
33860
33860
 
33861
33861
  /**
33862
33862
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -91397,12 +91397,21 @@
91397
91397
 
91398
91398
 
91399
91399
  const { keys: keys$7, values, create: create$6, assign: assign$6, freeze: freeze$3, entries } = Object;
91400
+
91401
+ const RECORD_TEMPLATE_CREATE_REPRESENTATION_NAME = 'RecordTemplateCreateRepresentation';
91402
+ const RECORD_TEMPLATE_CREATE_REPRESENTATION_PREFIX = `${API_NAMESPACE$1}::${RECORD_TEMPLATE_CREATE_REPRESENTATION_NAME}:`;
91403
+ function isStoreKeyRecordTemplateId(key) {
91404
+ return (key.indexOf(RECORD_TEMPLATE_CREATE_REPRESENTATION_PREFIX) > -1 &&
91405
+ key.indexOf(RECORD_FIELDS_KEY_JUNCTION$1) === -1);
91406
+ }
91400
91407
  function isStoreKeyRecordId(key) {
91401
91408
  return key.indexOf(RECORD_ID_PREFIX$1) > -1 && key.indexOf(RECORD_FIELDS_KEY_JUNCTION$1) === -1;
91402
91409
  }
91403
91410
  function isEntryDurableRecordRepresentation(entry, key) {
91404
91411
  // Either a DurableRecordRepresentation or StoreRecordError can live at a record key
91405
- return ((isStoreKeyRecordId(key) || isStoreKeyRecordViewEntity$1(key)) &&
91412
+ return ((isStoreKeyRecordId(key) ||
91413
+ isStoreKeyRecordViewEntity$1(key) ||
91414
+ isStoreKeyRecordTemplateId(key)) &&
91406
91415
  entry.data.__type === undefined);
91407
91416
  }
91408
91417
 
@@ -92879,7 +92888,7 @@
92879
92888
  id: '@salesforce/lds-network-adapter',
92880
92889
  instrument: instrument$2,
92881
92890
  });
92882
- // version: 1.332.0-dev11-dc267c447c
92891
+ // version: 1.332.0-dev13-0fd2008fda
92883
92892
 
92884
92893
  const { create: create$2, keys: keys$2 } = Object;
92885
92894
  const { stringify, parse } = JSON;
@@ -115446,7 +115455,7 @@
115446
115455
  configuration: { ...configurationForGraphQLAdapters$1 },
115447
115456
  instrument: instrument$1,
115448
115457
  });
115449
- // version: 1.332.0-dev11-db48bc45f8
115458
+ // version: 1.332.0-dev13-e67f738040
115450
115459
 
115451
115460
  // On core the unstable adapters are re-exported with different names,
115452
115461
  // we want to match them here.
@@ -115598,7 +115607,7 @@
115598
115607
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
115599
115608
  graphQLImperative = ldsAdapter;
115600
115609
  });
115601
- // version: 1.332.0-dev11-db48bc45f8
115610
+ // version: 1.332.0-dev13-e67f738040
115602
115611
 
115603
115612
  var gqlApi = /*#__PURE__*/Object.freeze({
115604
115613
  __proto__: null,
@@ -116390,7 +116399,7 @@
116390
116399
  function register(r) {
116391
116400
  callbacks$1.forEach((callback) => callback(r));
116392
116401
  }
116393
- // version: 1.332.0-dev11-dc267c447c
116402
+ // version: 1.332.0-dev13-0fd2008fda
116394
116403
 
116395
116404
  /**
116396
116405
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -117472,4 +117481,4 @@
117472
117481
  exports.subscribeToAdapter = subscribeToAdapter;
117473
117482
 
117474
117483
  }));
117475
- // version: 1.332.0-dev11-dc267c447c
117484
+ // version: 1.332.0-dev13-0fd2008fda
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-worker-api",
3
- "version": "1.332.0-dev11",
3
+ "version": "1.332.0-dev13",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "",
6
6
  "main": "dist/standalone/es/lds-worker-api.js",
@@ -35,14 +35,14 @@
35
35
  },
36
36
  "devDependencies": {
37
37
  "@oat-sa/rollup-plugin-wildcard-external": "^1.0.0",
38
- "@salesforce/lds-adapters-graphql": "^1.332.0-dev11",
39
- "@salesforce/lds-adapters-uiapi": "^1.332.0-dev11",
40
- "@salesforce/lds-default-luvio": "^1.332.0-dev11",
41
- "@salesforce/lds-drafts": "^1.332.0-dev11",
42
- "@salesforce/lds-graphql-parser": "^1.332.0-dev11",
43
- "@salesforce/lds-luvio-engine": "^1.332.0-dev11",
44
- "@salesforce/lds-runtime-mobile": "^1.332.0-dev11",
45
- "@salesforce/nimbus-plugin-lds": "^1.332.0-dev11",
38
+ "@salesforce/lds-adapters-graphql": "^1.332.0-dev13",
39
+ "@salesforce/lds-adapters-uiapi": "^1.332.0-dev13",
40
+ "@salesforce/lds-default-luvio": "^1.332.0-dev13",
41
+ "@salesforce/lds-drafts": "^1.332.0-dev13",
42
+ "@salesforce/lds-graphql-parser": "^1.332.0-dev13",
43
+ "@salesforce/lds-luvio-engine": "^1.332.0-dev13",
44
+ "@salesforce/lds-runtime-mobile": "^1.332.0-dev13",
45
+ "@salesforce/nimbus-plugin-lds": "^1.332.0-dev13",
46
46
  "ajv": "^8.11.0",
47
47
  "glob": "^7.1.5",
48
48
  "nimbus-types": "^2.0.0-alpha1",