@salesforce/lds-worker-api 1.124.5 → 1.124.6

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.
@@ -751,4 +751,4 @@ if (process.env.NODE_ENV !== 'production') {
751
751
  }
752
752
 
753
753
  export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
754
- // version: 1.124.5-f65e6d350
754
+ // version: 1.124.6-8cacd232f
@@ -3776,7 +3776,7 @@ function withDefaultLuvio(callback) {
3776
3776
  }
3777
3777
  callbacks.push(callback);
3778
3778
  }
3779
- // version: 1.124.5-f65e6d350
3779
+ // version: 1.124.6-8cacd232f
3780
3780
 
3781
3781
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
3782
3782
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15200,7 +15200,7 @@ function parseAndVisit(source) {
15200
15200
  updateReferenceMapWithKnownKey(ast, luvioDocumentNode);
15201
15201
  return luvioDocumentNode;
15202
15202
  }
15203
- // version: 1.124.5-f65e6d350
15203
+ // version: 1.124.6-8cacd232f
15204
15204
 
15205
15205
  function unwrap(data) {
15206
15206
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16113,7 +16113,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
16113
16113
  const { apiFamily, name } = metadata;
16114
16114
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16115
16115
  }
16116
- // version: 1.124.5-f65e6d350
16116
+ // version: 1.124.6-8cacd232f
16117
16117
 
16118
16118
  /**
16119
16119
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -44347,7 +44347,7 @@ withDefaultLuvio((luvio) => {
44347
44347
  dropFunction: instrumentation$2.notifyRecordUpdateAvailableDropped,
44348
44348
  });
44349
44349
  });
44350
- // version: 1.124.5-bc91bd7b2
44350
+ // version: 1.124.6-3b244264b
44351
44351
 
44352
44352
  var caseSensitiveUserId = '005B0000000GR4OIAW';
44353
44353
 
@@ -55498,6 +55498,16 @@ function buildRecordFieldValueRepresentationsFromDraftFields(luvio, apiName, fie
55498
55498
  if (fieldInfo !== undefined) {
55499
55499
  const { dataType, relationshipName, referenceToInfos } = fieldInfo;
55500
55500
  recordFields[fieldName].displayValue = formatDisplayValue(draftField, dataType);
55501
+ if (dataType === 'DateTime' &&
55502
+ draftField !== null &&
55503
+ typeof draftField === 'string') {
55504
+ try {
55505
+ recordFields[fieldName].value = new Date(draftField).toISOString();
55506
+ }
55507
+ catch (e) {
55508
+ throw Error('date field value not valid');
55509
+ }
55510
+ }
55501
55511
  if (dataType === 'Reference' && relationshipName !== null && draftField !== null) {
55502
55512
  if (typeof draftField !== 'string') {
55503
55513
  throw Error('reference field value is not a string');
@@ -59840,7 +59850,7 @@ register({
59840
59850
  id: '@salesforce/lds-network-adapter',
59841
59851
  instrument: instrument$1,
59842
59852
  });
59843
- // version: 1.124.5-f65e6d350
59853
+ // version: 1.124.6-8cacd232f
59844
59854
 
59845
59855
  const { create: create$2, keys: keys$2 } = Object;
59846
59856
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -74105,7 +74115,7 @@ register({
74105
74115
  configuration: { ...configurationForGraphQLAdapters },
74106
74116
  instrument,
74107
74117
  });
74108
- // version: 1.124.5-bc91bd7b2
74118
+ // version: 1.124.6-3b244264b
74109
74119
 
74110
74120
  // On core the unstable adapters are re-exported with different names,
74111
74121
 
@@ -76234,7 +76244,7 @@ withDefaultLuvio((luvio) => {
76234
76244
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
76235
76245
  graphQLImperative = ldsAdapter;
76236
76246
  });
76237
- // version: 1.124.5-bc91bd7b2
76247
+ // version: 1.124.6-3b244264b
76238
76248
 
76239
76249
  var gqlApi = /*#__PURE__*/Object.freeze({
76240
76250
  __proto__: null,
@@ -76916,4 +76926,4 @@ const { luvio } = getRuntime();
76916
76926
  setDefaultLuvio({ luvio });
76917
76927
 
76918
76928
  export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
76919
- // version: 1.124.5-f65e6d350
76929
+ // version: 1.124.6-8cacd232f
@@ -3782,7 +3782,7 @@
3782
3782
  }
3783
3783
  callbacks.push(callback);
3784
3784
  }
3785
- // version: 1.124.5-f65e6d350
3785
+ // version: 1.124.6-8cacd232f
3786
3786
 
3787
3787
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
3788
3788
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15206,7 +15206,7 @@
15206
15206
  updateReferenceMapWithKnownKey(ast, luvioDocumentNode);
15207
15207
  return luvioDocumentNode;
15208
15208
  }
15209
- // version: 1.124.5-f65e6d350
15209
+ // version: 1.124.6-8cacd232f
15210
15210
 
15211
15211
  function unwrap(data) {
15212
15212
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16119,7 +16119,7 @@
16119
16119
  const { apiFamily, name } = metadata;
16120
16120
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16121
16121
  }
16122
- // version: 1.124.5-f65e6d350
16122
+ // version: 1.124.6-8cacd232f
16123
16123
 
16124
16124
  /**
16125
16125
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -44353,7 +44353,7 @@
44353
44353
  dropFunction: instrumentation$2.notifyRecordUpdateAvailableDropped,
44354
44354
  });
44355
44355
  });
44356
- // version: 1.124.5-bc91bd7b2
44356
+ // version: 1.124.6-3b244264b
44357
44357
 
44358
44358
  var caseSensitiveUserId = '005B0000000GR4OIAW';
44359
44359
 
@@ -55504,6 +55504,16 @@
55504
55504
  if (fieldInfo !== undefined) {
55505
55505
  const { dataType, relationshipName, referenceToInfos } = fieldInfo;
55506
55506
  recordFields[fieldName].displayValue = formatDisplayValue(draftField, dataType);
55507
+ if (dataType === 'DateTime' &&
55508
+ draftField !== null &&
55509
+ typeof draftField === 'string') {
55510
+ try {
55511
+ recordFields[fieldName].value = new Date(draftField).toISOString();
55512
+ }
55513
+ catch (e) {
55514
+ throw Error('date field value not valid');
55515
+ }
55516
+ }
55507
55517
  if (dataType === 'Reference' && relationshipName !== null && draftField !== null) {
55508
55518
  if (typeof draftField !== 'string') {
55509
55519
  throw Error('reference field value is not a string');
@@ -59846,7 +59856,7 @@
59846
59856
  id: '@salesforce/lds-network-adapter',
59847
59857
  instrument: instrument$1,
59848
59858
  });
59849
- // version: 1.124.5-f65e6d350
59859
+ // version: 1.124.6-8cacd232f
59850
59860
 
59851
59861
  const { create: create$2, keys: keys$2 } = Object;
59852
59862
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -74111,7 +74121,7 @@
74111
74121
  configuration: { ...configurationForGraphQLAdapters },
74112
74122
  instrument,
74113
74123
  });
74114
- // version: 1.124.5-bc91bd7b2
74124
+ // version: 1.124.6-3b244264b
74115
74125
 
74116
74126
  // On core the unstable adapters are re-exported with different names,
74117
74127
 
@@ -76240,7 +76250,7 @@
76240
76250
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
76241
76251
  graphQLImperative = ldsAdapter;
76242
76252
  });
76243
- // version: 1.124.5-bc91bd7b2
76253
+ // version: 1.124.6-3b244264b
76244
76254
 
76245
76255
  var gqlApi = /*#__PURE__*/Object.freeze({
76246
76256
  __proto__: null,
@@ -76939,4 +76949,4 @@
76939
76949
  Object.defineProperty(exports, '__esModule', { value: true });
76940
76950
 
76941
76951
  }));
76942
- // version: 1.124.5-f65e6d350
76952
+ // version: 1.124.6-8cacd232f
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-worker-api",
3
- "version": "1.124.5",
3
+ "version": "1.124.6",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "",
6
6
  "main": "dist/standalone/es/lds-worker-api.js",
@@ -320,6 +320,39 @@
320
320
  "unique": false,
321
321
  "updateable": true
322
322
  },
323
+ "LastFaultDateTime": {
324
+ "apiName": "LastFaultDateTime",
325
+ "calculated": false,
326
+ "compound": false,
327
+ "compoundComponentName": null,
328
+ "compoundFieldName": null,
329
+ "controllerName": null,
330
+ "controllingFields": [],
331
+ "createable": true,
332
+ "custom": true,
333
+ "dataType": "DateTime",
334
+ "extraTypeInfo": null,
335
+ "filterable": true,
336
+ "filteredLookupInfo": null,
337
+ "highScaleNumber": false,
338
+ "htmlFormatted": false,
339
+ "inlineHelpText": null,
340
+ "label": "Last Fault Date Time",
341
+ "length": 0,
342
+ "nameField": false,
343
+ "polymorphicForeignKey": false,
344
+ "precision": 0,
345
+ "reference": false,
346
+ "referenceTargetField": null,
347
+ "referenceToInfos": [],
348
+ "relationshipName": null,
349
+ "required": false,
350
+ "scale": 0,
351
+ "searchPrefilterable": false,
352
+ "sortable": true,
353
+ "unique": false,
354
+ "updateable": true
355
+ },
323
356
  "ManufacturedDate": {
324
357
  "apiName": "ManufacturedDate",
325
358
  "calculated": false,
@@ -55,6 +55,10 @@
55
55
  "displayValue": null,
56
56
  "value": null
57
57
  },
58
+ "LastFaultDateTime": {
59
+ "displayValue": null,
60
+ "value": null
61
+ },
58
62
  "LastFliedById": {
59
63
  "displayValue": null,
60
64
  "value": null
@@ -19,6 +19,10 @@
19
19
  "displayValue": "formatted",
20
20
  "value": "2021-10-11T06:53:20.000Z"
21
21
  },
22
+ "LastFaultDateTime": {
23
+ "displayValue": "formatted",
24
+ "value": "2023-03-16T18:00:00.000Z"
25
+ },
22
26
  "LastFlightTime": {
23
27
  "displayValue": "formatted",
24
28
  "value": "12:45:30"
@@ -10,6 +10,7 @@
10
10
  "Price": 1500000.01,
11
11
  "ManufacturedDate": "2021-10-11",
12
12
  "LastServiceDateTime": "2021-10-11T06:53:20.000Z",
13
+ "LastFaultDateTime": "2023-03-16T18:00:00.000+0000",
13
14
  "LastFlightTime": "12:45:30"
14
15
  }
15
16
  },