@salesforce/lds-worker-api 1.435.1 → 1.437.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.
@@ -1373,4 +1373,4 @@ if (process.env.NODE_ENV !== 'production') {
1373
1373
  }
1374
1374
 
1375
1375
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, importLuvioAdapterModule, importOneStoreAdapterModule, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
1376
- // version: 1.435.1-4492aa27df
1376
+ // version: 1.437.0-90398d3223
@@ -1991,7 +1991,9 @@ var HttpStatusCode$2;
1991
1991
  HttpStatusCode[HttpStatusCode["Unauthorized"] = 401] = "Unauthorized";
1992
1992
  HttpStatusCode[HttpStatusCode["Forbidden"] = 403] = "Forbidden";
1993
1993
  HttpStatusCode[HttpStatusCode["NotFound"] = 404] = "NotFound";
1994
+ HttpStatusCode[HttpStatusCode["TooManyRequests"] = 429] = "TooManyRequests";
1994
1995
  HttpStatusCode[HttpStatusCode["ServerError"] = 500] = "ServerError";
1996
+ HttpStatusCode[HttpStatusCode["ServiceUnavailable"] = 503] = "ServiceUnavailable";
1995
1997
  HttpStatusCode[HttpStatusCode["GatewayTimeout"] = 504] = "GatewayTimeout";
1996
1998
  })(HttpStatusCode$2 || (HttpStatusCode$2 = {}));
1997
1999
  /**
@@ -4146,7 +4148,7 @@ function createResourceParamsImpl(config, configMetadata) {
4146
4148
  }
4147
4149
  return resourceParams;
4148
4150
  }
4149
- // engine version: 0.160.4-b7e0ea82
4151
+ // engine version: 0.160.5-e6ada846
4150
4152
 
4151
4153
  /**
4152
4154
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -4274,7 +4276,7 @@ function withDefaultLuvio(callback) {
4274
4276
  }
4275
4277
  callbacks.push(callback);
4276
4278
  }
4277
- // version: 1.435.1-4492aa27df
4279
+ // version: 1.437.0-90398d3223
4278
4280
 
4279
4281
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4280
4282
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -5318,7 +5320,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
5318
5320
  const { apiFamily, name } = metadata;
5319
5321
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
5320
5322
  }
5321
- // version: 1.435.1-4492aa27df
5323
+ // version: 1.437.0-90398d3223
5322
5324
 
5323
5325
  function isSupportedEntity(_objectApiName) {
5324
5326
  return true;
@@ -5377,7 +5379,9 @@ var HttpStatusCode$1;
5377
5379
  HttpStatusCode[HttpStatusCode["Unauthorized"] = 401] = "Unauthorized";
5378
5380
  HttpStatusCode[HttpStatusCode["Forbidden"] = 403] = "Forbidden";
5379
5381
  HttpStatusCode[HttpStatusCode["NotFound"] = 404] = "NotFound";
5382
+ HttpStatusCode[HttpStatusCode["TooManyRequests"] = 429] = "TooManyRequests";
5380
5383
  HttpStatusCode[HttpStatusCode["ServerError"] = 500] = "ServerError";
5384
+ HttpStatusCode[HttpStatusCode["ServiceUnavailable"] = 503] = "ServiceUnavailable";
5381
5385
  HttpStatusCode[HttpStatusCode["GatewayTimeout"] = 504] = "GatewayTimeout";
5382
5386
  })(HttpStatusCode$1 || (HttpStatusCode$1 = {}));
5383
5387
  var GraphNodeType;
@@ -5422,7 +5426,7 @@ var TypeCheckShapes;
5422
5426
  TypeCheckShapes[TypeCheckShapes["Integer"] = 3] = "Integer";
5423
5427
  TypeCheckShapes[TypeCheckShapes["Unsupported"] = 4] = "Unsupported";
5424
5428
  })(TypeCheckShapes || (TypeCheckShapes = {}));
5425
- // engine version: 0.160.4-b7e0ea82
5429
+ // engine version: 0.160.5-e6ada846
5426
5430
 
5427
5431
  const { keys: ObjectKeys$4, create: ObjectCreate$4 } = Object;
5428
5432
 
@@ -32516,7 +32520,7 @@ withDefaultLuvio((luvio) => {
32516
32520
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
32517
32521
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
32518
32522
  });
32519
- // version: 1.435.1-a9f05717b8
32523
+ // version: 1.437.0-f680421dc4
32520
32524
 
32521
32525
  var allowUpdatesForNonCachedRecords = {
32522
32526
  isOpen: function (e) {
@@ -45976,6 +45980,9 @@ function mergeRecordFields$2(first, second) {
45976
45980
  targetFields[fieldName] = sourceFields[fieldName];
45977
45981
  continue;
45978
45982
  }
45983
+ if (targetField.displayValue === null && sourceField.displayValue !== null) {
45984
+ targetField.displayValue = sourceField.displayValue;
45985
+ }
45979
45986
  mergeRecordFields$2(targetField.value, sourceField.value);
45980
45987
  continue;
45981
45988
  }
@@ -89461,6 +89468,9 @@ function mergeRecordFields(first, second) {
89461
89468
  targetFields[fieldName] = sourceField;
89462
89469
  continue;
89463
89470
  }
89471
+ if (targetField.displayValue === null && sourceField.displayValue !== null) {
89472
+ targetField.displayValue = sourceField.displayValue;
89473
+ }
89464
89474
  mergeRecordFields(targetField.value, sourceField.value);
89465
89475
  continue;
89466
89476
  }
@@ -96640,7 +96650,7 @@ function buildServiceDescriptor$b(luvio) {
96640
96650
  },
96641
96651
  };
96642
96652
  }
96643
- // version: 1.435.1-4492aa27df
96653
+ // version: 1.437.0-90398d3223
96644
96654
 
96645
96655
  /**
96646
96656
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -96666,7 +96676,7 @@ function buildServiceDescriptor$a(notifyRecordUpdateAvailable, getNormalizedLuvi
96666
96676
  },
96667
96677
  };
96668
96678
  }
96669
- // version: 1.435.1-4492aa27df
96679
+ // version: 1.437.0-90398d3223
96670
96680
 
96671
96681
  /*!
96672
96682
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -99394,7 +99404,7 @@ register$1({
99394
99404
  id: '@salesforce/lds-network-adapter',
99395
99405
  instrument: instrument$2,
99396
99406
  });
99397
- // version: 1.435.1-4492aa27df
99407
+ // version: 1.437.0-90398d3223
99398
99408
 
99399
99409
  const { create: create$2, keys: keys$2 } = Object;
99400
99410
  const { stringify, parse } = JSON;
@@ -107048,7 +107058,7 @@ function registerCallback(cb) {
107048
107058
  cb(graphql_v1_import, graphql_imperative$1, graphql_imperative_legacy_v1_import, graphql_state_manager, useOneStoreGraphQL);
107049
107059
  }
107050
107060
  }
107051
- // version: 1.435.1-a9f05717b8
107061
+ // version: 1.437.0-f680421dc4
107052
107062
 
107053
107063
  function createFragmentMap(documentNode) {
107054
107064
  const fragments = {};
@@ -136255,7 +136265,7 @@ register$1({
136255
136265
  configuration: { ...configurationForGraphQLAdapters$1 },
136256
136266
  instrument: instrument$1,
136257
136267
  });
136258
- // version: 1.435.1-a9f05717b8
136268
+ // version: 1.437.0-f680421dc4
136259
136269
 
136260
136270
  // On core the unstable adapters are re-exported with different names,
136261
136271
  // we want to match them here.
@@ -136407,7 +136417,7 @@ withDefaultLuvio((luvio) => {
136407
136417
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
136408
136418
  graphQLImperative = ldsAdapter;
136409
136419
  });
136410
- // version: 1.435.1-a9f05717b8
136420
+ // version: 1.437.0-f680421dc4
136411
136421
 
136412
136422
  var gqlApi = /*#__PURE__*/Object.freeze({
136413
136423
  __proto__: null,
@@ -137206,7 +137216,7 @@ const callbacks$1 = [];
137206
137216
  function register(r) {
137207
137217
  callbacks$1.forEach((callback) => callback(r));
137208
137218
  }
137209
- // version: 1.435.1-4492aa27df
137219
+ // version: 1.437.0-90398d3223
137210
137220
 
137211
137221
  /**
137212
137222
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -138495,4 +138505,4 @@ const { luvio } = getRuntime();
138495
138505
  setDefaultLuvio({ luvio });
138496
138506
 
138497
138507
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, importLuvioAdapterModule, importOneStoreAdapterModule, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
138498
- // version: 1.435.1-4492aa27df
138508
+ // version: 1.437.0-90398d3223
@@ -1997,7 +1997,9 @@
1997
1997
  HttpStatusCode[HttpStatusCode["Unauthorized"] = 401] = "Unauthorized";
1998
1998
  HttpStatusCode[HttpStatusCode["Forbidden"] = 403] = "Forbidden";
1999
1999
  HttpStatusCode[HttpStatusCode["NotFound"] = 404] = "NotFound";
2000
+ HttpStatusCode[HttpStatusCode["TooManyRequests"] = 429] = "TooManyRequests";
2000
2001
  HttpStatusCode[HttpStatusCode["ServerError"] = 500] = "ServerError";
2002
+ HttpStatusCode[HttpStatusCode["ServiceUnavailable"] = 503] = "ServiceUnavailable";
2001
2003
  HttpStatusCode[HttpStatusCode["GatewayTimeout"] = 504] = "GatewayTimeout";
2002
2004
  })(HttpStatusCode$2 || (HttpStatusCode$2 = {}));
2003
2005
  /**
@@ -4152,7 +4154,7 @@
4152
4154
  }
4153
4155
  return resourceParams;
4154
4156
  }
4155
- // engine version: 0.160.4-b7e0ea82
4157
+ // engine version: 0.160.5-e6ada846
4156
4158
 
4157
4159
  /**
4158
4160
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -4280,7 +4282,7 @@
4280
4282
  }
4281
4283
  callbacks.push(callback);
4282
4284
  }
4283
- // version: 1.435.1-4492aa27df
4285
+ // version: 1.437.0-90398d3223
4284
4286
 
4285
4287
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4286
4288
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -5324,7 +5326,7 @@
5324
5326
  const { apiFamily, name } = metadata;
5325
5327
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
5326
5328
  }
5327
- // version: 1.435.1-4492aa27df
5329
+ // version: 1.437.0-90398d3223
5328
5330
 
5329
5331
  function isSupportedEntity(_objectApiName) {
5330
5332
  return true;
@@ -5383,7 +5385,9 @@
5383
5385
  HttpStatusCode[HttpStatusCode["Unauthorized"] = 401] = "Unauthorized";
5384
5386
  HttpStatusCode[HttpStatusCode["Forbidden"] = 403] = "Forbidden";
5385
5387
  HttpStatusCode[HttpStatusCode["NotFound"] = 404] = "NotFound";
5388
+ HttpStatusCode[HttpStatusCode["TooManyRequests"] = 429] = "TooManyRequests";
5386
5389
  HttpStatusCode[HttpStatusCode["ServerError"] = 500] = "ServerError";
5390
+ HttpStatusCode[HttpStatusCode["ServiceUnavailable"] = 503] = "ServiceUnavailable";
5387
5391
  HttpStatusCode[HttpStatusCode["GatewayTimeout"] = 504] = "GatewayTimeout";
5388
5392
  })(HttpStatusCode$1 || (HttpStatusCode$1 = {}));
5389
5393
  var GraphNodeType;
@@ -5428,7 +5432,7 @@
5428
5432
  TypeCheckShapes[TypeCheckShapes["Integer"] = 3] = "Integer";
5429
5433
  TypeCheckShapes[TypeCheckShapes["Unsupported"] = 4] = "Unsupported";
5430
5434
  })(TypeCheckShapes || (TypeCheckShapes = {}));
5431
- // engine version: 0.160.4-b7e0ea82
5435
+ // engine version: 0.160.5-e6ada846
5432
5436
 
5433
5437
  const { keys: ObjectKeys$4, create: ObjectCreate$4 } = Object;
5434
5438
 
@@ -32522,7 +32526,7 @@
32522
32526
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
32523
32527
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
32524
32528
  });
32525
- // version: 1.435.1-a9f05717b8
32529
+ // version: 1.437.0-f680421dc4
32526
32530
 
32527
32531
  var allowUpdatesForNonCachedRecords = {
32528
32532
  isOpen: function (e) {
@@ -45982,6 +45986,9 @@
45982
45986
  targetFields[fieldName] = sourceFields[fieldName];
45983
45987
  continue;
45984
45988
  }
45989
+ if (targetField.displayValue === null && sourceField.displayValue !== null) {
45990
+ targetField.displayValue = sourceField.displayValue;
45991
+ }
45985
45992
  mergeRecordFields$2(targetField.value, sourceField.value);
45986
45993
  continue;
45987
45994
  }
@@ -89467,6 +89474,9 @@
89467
89474
  targetFields[fieldName] = sourceField;
89468
89475
  continue;
89469
89476
  }
89477
+ if (targetField.displayValue === null && sourceField.displayValue !== null) {
89478
+ targetField.displayValue = sourceField.displayValue;
89479
+ }
89470
89480
  mergeRecordFields(targetField.value, sourceField.value);
89471
89481
  continue;
89472
89482
  }
@@ -96646,7 +96656,7 @@
96646
96656
  },
96647
96657
  };
96648
96658
  }
96649
- // version: 1.435.1-4492aa27df
96659
+ // version: 1.437.0-90398d3223
96650
96660
 
96651
96661
  /**
96652
96662
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -96672,7 +96682,7 @@
96672
96682
  },
96673
96683
  };
96674
96684
  }
96675
- // version: 1.435.1-4492aa27df
96685
+ // version: 1.437.0-90398d3223
96676
96686
 
96677
96687
  /*!
96678
96688
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -99400,7 +99410,7 @@
99400
99410
  id: '@salesforce/lds-network-adapter',
99401
99411
  instrument: instrument$2,
99402
99412
  });
99403
- // version: 1.435.1-4492aa27df
99413
+ // version: 1.437.0-90398d3223
99404
99414
 
99405
99415
  const { create: create$2, keys: keys$2 } = Object;
99406
99416
  const { stringify, parse } = JSON;
@@ -107054,7 +107064,7 @@
107054
107064
  cb(graphql_v1_import, graphql_imperative$1, graphql_imperative_legacy_v1_import, graphql_state_manager, useOneStoreGraphQL);
107055
107065
  }
107056
107066
  }
107057
- // version: 1.435.1-a9f05717b8
107067
+ // version: 1.437.0-f680421dc4
107058
107068
 
107059
107069
  function createFragmentMap(documentNode) {
107060
107070
  const fragments = {};
@@ -136261,7 +136271,7 @@
136261
136271
  configuration: { ...configurationForGraphQLAdapters$1 },
136262
136272
  instrument: instrument$1,
136263
136273
  });
136264
- // version: 1.435.1-a9f05717b8
136274
+ // version: 1.437.0-f680421dc4
136265
136275
 
136266
136276
  // On core the unstable adapters are re-exported with different names,
136267
136277
  // we want to match them here.
@@ -136413,7 +136423,7 @@
136413
136423
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
136414
136424
  graphQLImperative = ldsAdapter;
136415
136425
  });
136416
- // version: 1.435.1-a9f05717b8
136426
+ // version: 1.437.0-f680421dc4
136417
136427
 
136418
136428
  var gqlApi = /*#__PURE__*/Object.freeze({
136419
136429
  __proto__: null,
@@ -137212,7 +137222,7 @@
137212
137222
  function register(r) {
137213
137223
  callbacks$1.forEach((callback) => callback(r));
137214
137224
  }
137215
- // version: 1.435.1-4492aa27df
137225
+ // version: 1.437.0-90398d3223
137216
137226
 
137217
137227
  /**
137218
137228
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -138522,4 +138532,4 @@
138522
138532
  exports.subscribeToAdapter = subscribeToAdapter;
138523
138533
 
138524
138534
  }));
138525
- // version: 1.435.1-4492aa27df
138535
+ // version: 1.437.0-90398d3223
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-worker-api",
3
- "version": "1.435.1",
3
+ "version": "1.437.0",
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.435.1",
39
- "@salesforce/lds-adapters-uiapi": "^1.435.1",
40
- "@salesforce/lds-default-luvio": "^1.435.1",
41
- "@salesforce/lds-drafts": "^1.435.1",
42
- "@salesforce/lds-graphql-parser": "^1.435.1",
43
- "@salesforce/lds-luvio-engine": "^1.435.1",
44
- "@salesforce/lds-runtime-mobile": "^1.435.1",
45
- "@salesforce/nimbus-plugin-lds": "^1.435.1",
38
+ "@salesforce/lds-adapters-graphql": "^1.437.0",
39
+ "@salesforce/lds-adapters-uiapi": "^1.437.0",
40
+ "@salesforce/lds-default-luvio": "^1.437.0",
41
+ "@salesforce/lds-drafts": "^1.437.0",
42
+ "@salesforce/lds-graphql-parser": "^1.437.0",
43
+ "@salesforce/lds-luvio-engine": "^1.437.0",
44
+ "@salesforce/lds-runtime-mobile": "^1.437.0",
45
+ "@salesforce/nimbus-plugin-lds": "^1.437.0",
46
46
  "ajv": "^8.11.0",
47
47
  "glob": "^7.1.5",
48
48
  "nimbus-types": "^2.0.0-alpha1",