@salesforce/lds-worker-api 1.332.0-dev6 → 1.332.0-dev8
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.
|
@@ -1119,4 +1119,4 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1119
1119
|
}
|
|
1120
1120
|
|
|
1121
1121
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
1122
|
-
// version: 1.332.0-
|
|
1122
|
+
// version: 1.332.0-dev8-01baf177b4
|
|
@@ -4265,7 +4265,7 @@ function withDefaultLuvio(callback) {
|
|
|
4265
4265
|
}
|
|
4266
4266
|
callbacks.push(callback);
|
|
4267
4267
|
}
|
|
4268
|
-
// version: 1.332.0-
|
|
4268
|
+
// version: 1.332.0-dev8-01baf177b4
|
|
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-
|
|
5216
|
+
// version: 1.332.0-dev8-01baf177b4
|
|
5217
5217
|
|
|
5218
5218
|
/**
|
|
5219
5219
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -33850,7 +33850,16 @@ withDefaultLuvio((luvio) => {
|
|
|
33850
33850
|
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
33851
33851
|
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
33852
33852
|
});
|
|
33853
|
-
// version: 1.332.0-
|
|
33853
|
+
// version: 1.332.0-dev8-41f1196a17
|
|
33854
|
+
|
|
33855
|
+
var graphqlRecordTypeIdFixGate = {
|
|
33856
|
+
isOpen: function (e) {
|
|
33857
|
+
return e.fallback;
|
|
33858
|
+
},
|
|
33859
|
+
hasError: function () {
|
|
33860
|
+
return !0;
|
|
33861
|
+
},
|
|
33862
|
+
};
|
|
33854
33863
|
|
|
33855
33864
|
/**
|
|
33856
33865
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -65842,13 +65851,27 @@ function convertGraphQLToRaml$1(astNode, state) {
|
|
|
65842
65851
|
? getRequestedFieldsForType$1(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$H$1)
|
|
65843
65852
|
: new Map();
|
|
65844
65853
|
const { fieldsBag, trie } = createFieldsBagAndTrie$1(data, requestedFields, state);
|
|
65854
|
+
const recordTypeId = data.ldsRecordTypeId === null ? null : data.ldsRecordTypeId.value;
|
|
65855
|
+
if (graphqlRecordTypeIdFixGate.isOpen({ fallback: false }) &&
|
|
65856
|
+
recordTypeId &&
|
|
65857
|
+
recordTypeId !== MAIN_RECORD_TYPE_ID) {
|
|
65858
|
+
const fieldName = 'RecordTypeId';
|
|
65859
|
+
fieldsBag[fieldName] = {
|
|
65860
|
+
value: recordTypeId,
|
|
65861
|
+
displayValue: null,
|
|
65862
|
+
};
|
|
65863
|
+
trie.children[fieldName] = {
|
|
65864
|
+
name: fieldName,
|
|
65865
|
+
children: {},
|
|
65866
|
+
};
|
|
65867
|
+
}
|
|
65845
65868
|
const recordRepresentation = {
|
|
65846
65869
|
apiName: data.ApiName,
|
|
65847
65870
|
eTag: '',
|
|
65848
65871
|
lastModifiedById: data.LastModifiedById.value,
|
|
65849
65872
|
lastModifiedDate: data.LastModifiedDate.value,
|
|
65850
65873
|
systemModstamp: data.SystemModstamp.value,
|
|
65851
|
-
recordTypeId:
|
|
65874
|
+
recordTypeId: recordTypeId,
|
|
65852
65875
|
recordTypeInfo: null,
|
|
65853
65876
|
childRelationships: {},
|
|
65854
65877
|
id: data.Id,
|
|
@@ -92166,7 +92189,7 @@ class SideEffectService {
|
|
|
92166
92189
|
const objectInfo = await this.ensureObjectInfo(apiName);
|
|
92167
92190
|
const recordFields = {};
|
|
92168
92191
|
for (const fieldName of keys$3(fields)) {
|
|
92169
|
-
const draftField = fields[fieldName];
|
|
92192
|
+
const draftField = fields[fieldName] ?? null;
|
|
92170
92193
|
recordFields[fieldName] = { value: draftField, displayValue: null };
|
|
92171
92194
|
const fieldInfo = objectInfo.fields[fieldName];
|
|
92172
92195
|
if (fieldInfo) {
|
|
@@ -92829,7 +92852,7 @@ register$1({
|
|
|
92829
92852
|
id: '@salesforce/lds-network-adapter',
|
|
92830
92853
|
instrument: instrument$2,
|
|
92831
92854
|
});
|
|
92832
|
-
// version: 1.332.0-
|
|
92855
|
+
// version: 1.332.0-dev8-01baf177b4
|
|
92833
92856
|
|
|
92834
92857
|
const { create: create$2, keys: keys$2 } = Object;
|
|
92835
92858
|
const { stringify, parse } = JSON;
|
|
@@ -115396,7 +115419,7 @@ register$1({
|
|
|
115396
115419
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
115397
115420
|
instrument: instrument$1,
|
|
115398
115421
|
});
|
|
115399
|
-
// version: 1.332.0-
|
|
115422
|
+
// version: 1.332.0-dev8-41f1196a17
|
|
115400
115423
|
|
|
115401
115424
|
// On core the unstable adapters are re-exported with different names,
|
|
115402
115425
|
// we want to match them here.
|
|
@@ -115548,7 +115571,7 @@ withDefaultLuvio((luvio) => {
|
|
|
115548
115571
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
115549
115572
|
graphQLImperative = ldsAdapter;
|
|
115550
115573
|
});
|
|
115551
|
-
// version: 1.332.0-
|
|
115574
|
+
// version: 1.332.0-dev8-41f1196a17
|
|
115552
115575
|
|
|
115553
115576
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
115554
115577
|
__proto__: null,
|
|
@@ -116331,7 +116354,7 @@ const callbacks$1 = [];
|
|
|
116331
116354
|
function register(r) {
|
|
116332
116355
|
callbacks$1.forEach((callback) => callback(r));
|
|
116333
116356
|
}
|
|
116334
|
-
// version: 1.332.0-
|
|
116357
|
+
// version: 1.332.0-dev8-01baf177b4
|
|
116335
116358
|
|
|
116336
116359
|
/**
|
|
116337
116360
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -117394,4 +117417,4 @@ const { luvio } = getRuntime();
|
|
|
117394
117417
|
setDefaultLuvio({ luvio });
|
|
117395
117418
|
|
|
117396
117419
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
117397
|
-
// version: 1.332.0-
|
|
117420
|
+
// version: 1.332.0-dev8-01baf177b4
|
|
@@ -4271,7 +4271,7 @@
|
|
|
4271
4271
|
}
|
|
4272
4272
|
callbacks.push(callback);
|
|
4273
4273
|
}
|
|
4274
|
-
// version: 1.332.0-
|
|
4274
|
+
// version: 1.332.0-dev8-01baf177b4
|
|
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-
|
|
5222
|
+
// version: 1.332.0-dev8-01baf177b4
|
|
5223
5223
|
|
|
5224
5224
|
/**
|
|
5225
5225
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -33856,7 +33856,16 @@
|
|
|
33856
33856
|
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
33857
33857
|
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
33858
33858
|
});
|
|
33859
|
-
// version: 1.332.0-
|
|
33859
|
+
// version: 1.332.0-dev8-41f1196a17
|
|
33860
|
+
|
|
33861
|
+
var graphqlRecordTypeIdFixGate = {
|
|
33862
|
+
isOpen: function (e) {
|
|
33863
|
+
return e.fallback;
|
|
33864
|
+
},
|
|
33865
|
+
hasError: function () {
|
|
33866
|
+
return !0;
|
|
33867
|
+
},
|
|
33868
|
+
};
|
|
33860
33869
|
|
|
33861
33870
|
/**
|
|
33862
33871
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -65848,13 +65857,27 @@
|
|
|
65848
65857
|
? getRequestedFieldsForType$1(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$H$1)
|
|
65849
65858
|
: new Map();
|
|
65850
65859
|
const { fieldsBag, trie } = createFieldsBagAndTrie$1(data, requestedFields, state);
|
|
65860
|
+
const recordTypeId = data.ldsRecordTypeId === null ? null : data.ldsRecordTypeId.value;
|
|
65861
|
+
if (graphqlRecordTypeIdFixGate.isOpen({ fallback: false }) &&
|
|
65862
|
+
recordTypeId &&
|
|
65863
|
+
recordTypeId !== MAIN_RECORD_TYPE_ID) {
|
|
65864
|
+
const fieldName = 'RecordTypeId';
|
|
65865
|
+
fieldsBag[fieldName] = {
|
|
65866
|
+
value: recordTypeId,
|
|
65867
|
+
displayValue: null,
|
|
65868
|
+
};
|
|
65869
|
+
trie.children[fieldName] = {
|
|
65870
|
+
name: fieldName,
|
|
65871
|
+
children: {},
|
|
65872
|
+
};
|
|
65873
|
+
}
|
|
65851
65874
|
const recordRepresentation = {
|
|
65852
65875
|
apiName: data.ApiName,
|
|
65853
65876
|
eTag: '',
|
|
65854
65877
|
lastModifiedById: data.LastModifiedById.value,
|
|
65855
65878
|
lastModifiedDate: data.LastModifiedDate.value,
|
|
65856
65879
|
systemModstamp: data.SystemModstamp.value,
|
|
65857
|
-
recordTypeId:
|
|
65880
|
+
recordTypeId: recordTypeId,
|
|
65858
65881
|
recordTypeInfo: null,
|
|
65859
65882
|
childRelationships: {},
|
|
65860
65883
|
id: data.Id,
|
|
@@ -92172,7 +92195,7 @@
|
|
|
92172
92195
|
const objectInfo = await this.ensureObjectInfo(apiName);
|
|
92173
92196
|
const recordFields = {};
|
|
92174
92197
|
for (const fieldName of keys$3(fields)) {
|
|
92175
|
-
const draftField = fields[fieldName];
|
|
92198
|
+
const draftField = fields[fieldName] ?? null;
|
|
92176
92199
|
recordFields[fieldName] = { value: draftField, displayValue: null };
|
|
92177
92200
|
const fieldInfo = objectInfo.fields[fieldName];
|
|
92178
92201
|
if (fieldInfo) {
|
|
@@ -92835,7 +92858,7 @@
|
|
|
92835
92858
|
id: '@salesforce/lds-network-adapter',
|
|
92836
92859
|
instrument: instrument$2,
|
|
92837
92860
|
});
|
|
92838
|
-
// version: 1.332.0-
|
|
92861
|
+
// version: 1.332.0-dev8-01baf177b4
|
|
92839
92862
|
|
|
92840
92863
|
const { create: create$2, keys: keys$2 } = Object;
|
|
92841
92864
|
const { stringify, parse } = JSON;
|
|
@@ -115402,7 +115425,7 @@
|
|
|
115402
115425
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
115403
115426
|
instrument: instrument$1,
|
|
115404
115427
|
});
|
|
115405
|
-
// version: 1.332.0-
|
|
115428
|
+
// version: 1.332.0-dev8-41f1196a17
|
|
115406
115429
|
|
|
115407
115430
|
// On core the unstable adapters are re-exported with different names,
|
|
115408
115431
|
// we want to match them here.
|
|
@@ -115554,7 +115577,7 @@
|
|
|
115554
115577
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
115555
115578
|
graphQLImperative = ldsAdapter;
|
|
115556
115579
|
});
|
|
115557
|
-
// version: 1.332.0-
|
|
115580
|
+
// version: 1.332.0-dev8-41f1196a17
|
|
115558
115581
|
|
|
115559
115582
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
115560
115583
|
__proto__: null,
|
|
@@ -116337,7 +116360,7 @@
|
|
|
116337
116360
|
function register(r) {
|
|
116338
116361
|
callbacks$1.forEach((callback) => callback(r));
|
|
116339
116362
|
}
|
|
116340
|
-
// version: 1.332.0-
|
|
116363
|
+
// version: 1.332.0-dev8-01baf177b4
|
|
116341
116364
|
|
|
116342
116365
|
/**
|
|
116343
116366
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -117419,4 +117442,4 @@
|
|
|
117419
117442
|
exports.subscribeToAdapter = subscribeToAdapter;
|
|
117420
117443
|
|
|
117421
117444
|
}));
|
|
117422
|
-
// version: 1.332.0-
|
|
117445
|
+
// version: 1.332.0-dev8-01baf177b4
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-worker-api",
|
|
3
|
-
"version": "1.332.0-
|
|
3
|
+
"version": "1.332.0-dev8",
|
|
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-
|
|
39
|
-
"@salesforce/lds-adapters-uiapi": "^1.332.0-
|
|
40
|
-
"@salesforce/lds-default-luvio": "^1.332.0-
|
|
41
|
-
"@salesforce/lds-drafts": "^1.332.0-
|
|
42
|
-
"@salesforce/lds-graphql-parser": "^1.332.0-
|
|
43
|
-
"@salesforce/lds-luvio-engine": "^1.332.0-
|
|
44
|
-
"@salesforce/lds-runtime-mobile": "^1.332.0-
|
|
45
|
-
"@salesforce/nimbus-plugin-lds": "^1.332.0-
|
|
38
|
+
"@salesforce/lds-adapters-graphql": "^1.332.0-dev8",
|
|
39
|
+
"@salesforce/lds-adapters-uiapi": "^1.332.0-dev8",
|
|
40
|
+
"@salesforce/lds-default-luvio": "^1.332.0-dev8",
|
|
41
|
+
"@salesforce/lds-drafts": "^1.332.0-dev8",
|
|
42
|
+
"@salesforce/lds-graphql-parser": "^1.332.0-dev8",
|
|
43
|
+
"@salesforce/lds-luvio-engine": "^1.332.0-dev8",
|
|
44
|
+
"@salesforce/lds-runtime-mobile": "^1.332.0-dev8",
|
|
45
|
+
"@salesforce/nimbus-plugin-lds": "^1.332.0-dev8",
|
|
46
46
|
"ajv": "^8.11.0",
|
|
47
47
|
"glob": "^7.1.5",
|
|
48
48
|
"nimbus-types": "^2.0.0-alpha1",
|