@salesforce/lds-worker-api 1.216.0 → 1.217.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.
|
@@ -795,4 +795,4 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
795
795
|
}
|
|
796
796
|
|
|
797
797
|
export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
|
|
798
|
-
// version: 1.
|
|
798
|
+
// version: 1.217.0-175057ee1
|
|
@@ -3968,7 +3968,7 @@ function withDefaultLuvio(callback) {
|
|
|
3968
3968
|
}
|
|
3969
3969
|
callbacks.push(callback);
|
|
3970
3970
|
}
|
|
3971
|
-
// version: 1.
|
|
3971
|
+
// version: 1.217.0-175057ee1
|
|
3972
3972
|
|
|
3973
3973
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
3974
3974
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15401,7 +15401,7 @@ function parseAndVisit(source) {
|
|
|
15401
15401
|
updateReferenceMapWithKnownKey(ast, luvioDocumentNode);
|
|
15402
15402
|
return luvioDocumentNode;
|
|
15403
15403
|
}
|
|
15404
|
-
// version: 1.
|
|
15404
|
+
// version: 1.217.0-175057ee1
|
|
15405
15405
|
|
|
15406
15406
|
function unwrap(data) {
|
|
15407
15407
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16324,7 +16324,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
|
|
|
16324
16324
|
const { apiFamily, name } = metadata;
|
|
16325
16325
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16326
16326
|
}
|
|
16327
|
-
// version: 1.
|
|
16327
|
+
// version: 1.217.0-175057ee1
|
|
16328
16328
|
|
|
16329
16329
|
/**
|
|
16330
16330
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -17514,6 +17514,12 @@ function getTypeCacheKeys$S$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
17514
17514
|
mergeable: false
|
|
17515
17515
|
});
|
|
17516
17516
|
}
|
|
17517
|
+
const notifyUpdateAvailableFactory$3 = (luvio) => {
|
|
17518
|
+
return function notifyListInfoUpdateAvailable(configs) {
|
|
17519
|
+
const keys = configs.map(c => keyBuilder$1V(luvio, c));
|
|
17520
|
+
return luvio.notifyStoreUpdateAvailable(keys);
|
|
17521
|
+
};
|
|
17522
|
+
};
|
|
17517
17523
|
|
|
17518
17524
|
const RECORD_ID_DECODER = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456';
|
|
17519
17525
|
/**
|
|
@@ -18121,7 +18127,7 @@ function getTypeCacheKeys$O$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
18121
18127
|
getTypeCacheKeys$R$1(rootKeySet, luvio, input_fields[key], () => rootKey + "__fields" + "__" + key);
|
|
18122
18128
|
}
|
|
18123
18129
|
}
|
|
18124
|
-
const notifyUpdateAvailableFactory$
|
|
18130
|
+
const notifyUpdateAvailableFactory$2 = (luvio) => {
|
|
18125
18131
|
return function notifyRecordUpdateAvailable(configs) {
|
|
18126
18132
|
const keys = configs.map(c => keyBuilder$1U(luvio, c));
|
|
18127
18133
|
return luvio.notifyStoreUpdateAvailable(keys);
|
|
@@ -22538,7 +22544,7 @@ function getTypeCacheKeys$K$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
22538
22544
|
getTypeCacheKeys$L$1(rootKeySet, luvio, input.lists[i]);
|
|
22539
22545
|
}
|
|
22540
22546
|
}
|
|
22541
|
-
const notifyUpdateAvailableFactory = (luvio) => {
|
|
22547
|
+
const notifyUpdateAvailableFactory$1 = (luvio) => {
|
|
22542
22548
|
return function notifyListViewSummaryUpdateAvailable(configs) {
|
|
22543
22549
|
const keys = configs.map(c => keyBuilder$1N(luvio, c));
|
|
22544
22550
|
return luvio.notifyStoreUpdateAvailable(keys);
|
|
@@ -25279,6 +25285,21 @@ const factory$e = (luvio) => {
|
|
|
25279
25285
|
}, { contextId: contextId$4 });
|
|
25280
25286
|
};
|
|
25281
25287
|
|
|
25288
|
+
const notifyUpdateAvailableFactory = (luvio) => {
|
|
25289
|
+
return function notifyListInfoUpdateAvailable(configs) {
|
|
25290
|
+
const generated_notifyUpdateAvailable = notifyUpdateAvailableFactory$3(luvio);
|
|
25291
|
+
// Taken from getUiApiListInfoByListViewApiNameAndObjectApiName/keyBuilder artifact
|
|
25292
|
+
// We automatically set the type based on the listViewApiName, and we need to do the same
|
|
25293
|
+
// here for key matching and validation
|
|
25294
|
+
configs.forEach((config) => {
|
|
25295
|
+
if (!config.type) {
|
|
25296
|
+
config.type = config.listViewApiName === '__Recent' ? 'mru' : 'listView';
|
|
25297
|
+
}
|
|
25298
|
+
});
|
|
25299
|
+
return generated_notifyUpdateAvailable(configs);
|
|
25300
|
+
};
|
|
25301
|
+
};
|
|
25302
|
+
|
|
25282
25303
|
const VERSION$Z$1 = "7e00c51105cbf56a79ab8fcddf462c1e";
|
|
25283
25304
|
const RepresentationType$F = 'QuickActionExecutionRepresentation';
|
|
25284
25305
|
function keyBuilder$1D(luvio, config) {
|
|
@@ -41088,13 +41109,14 @@ withDefaultLuvio((luvio) => {
|
|
|
41088
41109
|
allowFunction: instrumentation$2.getRecordNotifyChangeAllowed,
|
|
41089
41110
|
dropFunction: instrumentation$2.getRecordNotifyChangeDropped,
|
|
41090
41111
|
});
|
|
41091
|
-
throttle(60, 60000, createLDSAdapter(luvio, 'notifyRecordUpdateAvailable', notifyUpdateAvailableFactory$
|
|
41112
|
+
throttle(60, 60000, createLDSAdapter(luvio, 'notifyRecordUpdateAvailable', notifyUpdateAvailableFactory$2), {
|
|
41092
41113
|
allowFunction: instrumentation$2.notifyRecordUpdateAvailableAllowed,
|
|
41093
41114
|
dropFunction: instrumentation$2.notifyRecordUpdateAvailableDropped,
|
|
41094
41115
|
});
|
|
41095
|
-
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListViewSummaryUpdateAvailable', notifyUpdateAvailableFactory));
|
|
41116
|
+
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListViewSummaryUpdateAvailable', notifyUpdateAvailableFactory$1));
|
|
41117
|
+
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoUpdateAvailable', notifyUpdateAvailableFactory));
|
|
41096
41118
|
});
|
|
41097
|
-
// version: 1.
|
|
41119
|
+
// version: 1.217.0-a59ee1de5
|
|
41098
41120
|
|
|
41099
41121
|
var caseSensitiveUserId = '005B0000000GR4OIAW';
|
|
41100
41122
|
|
|
@@ -57692,7 +57714,7 @@ register({
|
|
|
57692
57714
|
id: '@salesforce/lds-network-adapter',
|
|
57693
57715
|
instrument: instrument$1,
|
|
57694
57716
|
});
|
|
57695
|
-
// version: 1.
|
|
57717
|
+
// version: 1.217.0-175057ee1
|
|
57696
57718
|
|
|
57697
57719
|
const { create: create$2, keys: keys$2 } = Object;
|
|
57698
57720
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -75970,7 +75992,7 @@ register({
|
|
|
75970
75992
|
configuration: { ...configurationForGraphQLAdapters },
|
|
75971
75993
|
instrument,
|
|
75972
75994
|
});
|
|
75973
|
-
// version: 1.
|
|
75995
|
+
// version: 1.217.0-a59ee1de5
|
|
75974
75996
|
|
|
75975
75997
|
// On core the unstable adapters are re-exported with different names,
|
|
75976
75998
|
|
|
@@ -78217,7 +78239,7 @@ withDefaultLuvio((luvio) => {
|
|
|
78217
78239
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
78218
78240
|
graphQLImperative = ldsAdapter;
|
|
78219
78241
|
});
|
|
78220
|
-
// version: 1.
|
|
78242
|
+
// version: 1.217.0-a59ee1de5
|
|
78221
78243
|
|
|
78222
78244
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
78223
78245
|
__proto__: null,
|
|
@@ -78931,4 +78953,4 @@ const { luvio } = getRuntime();
|
|
|
78931
78953
|
setDefaultLuvio({ luvio });
|
|
78932
78954
|
|
|
78933
78955
|
export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
|
|
78934
|
-
// version: 1.
|
|
78956
|
+
// version: 1.217.0-175057ee1
|
|
@@ -3974,7 +3974,7 @@
|
|
|
3974
3974
|
}
|
|
3975
3975
|
callbacks.push(callback);
|
|
3976
3976
|
}
|
|
3977
|
-
// version: 1.
|
|
3977
|
+
// version: 1.217.0-175057ee1
|
|
3978
3978
|
|
|
3979
3979
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
3980
3980
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15407,7 +15407,7 @@
|
|
|
15407
15407
|
updateReferenceMapWithKnownKey(ast, luvioDocumentNode);
|
|
15408
15408
|
return luvioDocumentNode;
|
|
15409
15409
|
}
|
|
15410
|
-
// version: 1.
|
|
15410
|
+
// version: 1.217.0-175057ee1
|
|
15411
15411
|
|
|
15412
15412
|
function unwrap(data) {
|
|
15413
15413
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16330,7 +16330,7 @@
|
|
|
16330
16330
|
const { apiFamily, name } = metadata;
|
|
16331
16331
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16332
16332
|
}
|
|
16333
|
-
// version: 1.
|
|
16333
|
+
// version: 1.217.0-175057ee1
|
|
16334
16334
|
|
|
16335
16335
|
/**
|
|
16336
16336
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -17520,6 +17520,12 @@
|
|
|
17520
17520
|
mergeable: false
|
|
17521
17521
|
});
|
|
17522
17522
|
}
|
|
17523
|
+
const notifyUpdateAvailableFactory$3 = (luvio) => {
|
|
17524
|
+
return function notifyListInfoUpdateAvailable(configs) {
|
|
17525
|
+
const keys = configs.map(c => keyBuilder$1V(luvio, c));
|
|
17526
|
+
return luvio.notifyStoreUpdateAvailable(keys);
|
|
17527
|
+
};
|
|
17528
|
+
};
|
|
17523
17529
|
|
|
17524
17530
|
const RECORD_ID_DECODER = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456';
|
|
17525
17531
|
/**
|
|
@@ -18127,7 +18133,7 @@
|
|
|
18127
18133
|
getTypeCacheKeys$R$1(rootKeySet, luvio, input_fields[key], () => rootKey + "__fields" + "__" + key);
|
|
18128
18134
|
}
|
|
18129
18135
|
}
|
|
18130
|
-
const notifyUpdateAvailableFactory$
|
|
18136
|
+
const notifyUpdateAvailableFactory$2 = (luvio) => {
|
|
18131
18137
|
return function notifyRecordUpdateAvailable(configs) {
|
|
18132
18138
|
const keys = configs.map(c => keyBuilder$1U(luvio, c));
|
|
18133
18139
|
return luvio.notifyStoreUpdateAvailable(keys);
|
|
@@ -22544,7 +22550,7 @@
|
|
|
22544
22550
|
getTypeCacheKeys$L$1(rootKeySet, luvio, input.lists[i]);
|
|
22545
22551
|
}
|
|
22546
22552
|
}
|
|
22547
|
-
const notifyUpdateAvailableFactory = (luvio) => {
|
|
22553
|
+
const notifyUpdateAvailableFactory$1 = (luvio) => {
|
|
22548
22554
|
return function notifyListViewSummaryUpdateAvailable(configs) {
|
|
22549
22555
|
const keys = configs.map(c => keyBuilder$1N(luvio, c));
|
|
22550
22556
|
return luvio.notifyStoreUpdateAvailable(keys);
|
|
@@ -25285,6 +25291,21 @@
|
|
|
25285
25291
|
}, { contextId: contextId$4 });
|
|
25286
25292
|
};
|
|
25287
25293
|
|
|
25294
|
+
const notifyUpdateAvailableFactory = (luvio) => {
|
|
25295
|
+
return function notifyListInfoUpdateAvailable(configs) {
|
|
25296
|
+
const generated_notifyUpdateAvailable = notifyUpdateAvailableFactory$3(luvio);
|
|
25297
|
+
// Taken from getUiApiListInfoByListViewApiNameAndObjectApiName/keyBuilder artifact
|
|
25298
|
+
// We automatically set the type based on the listViewApiName, and we need to do the same
|
|
25299
|
+
// here for key matching and validation
|
|
25300
|
+
configs.forEach((config) => {
|
|
25301
|
+
if (!config.type) {
|
|
25302
|
+
config.type = config.listViewApiName === '__Recent' ? 'mru' : 'listView';
|
|
25303
|
+
}
|
|
25304
|
+
});
|
|
25305
|
+
return generated_notifyUpdateAvailable(configs);
|
|
25306
|
+
};
|
|
25307
|
+
};
|
|
25308
|
+
|
|
25288
25309
|
const VERSION$Z$1 = "7e00c51105cbf56a79ab8fcddf462c1e";
|
|
25289
25310
|
const RepresentationType$F = 'QuickActionExecutionRepresentation';
|
|
25290
25311
|
function keyBuilder$1D(luvio, config) {
|
|
@@ -41094,13 +41115,14 @@
|
|
|
41094
41115
|
allowFunction: instrumentation$2.getRecordNotifyChangeAllowed,
|
|
41095
41116
|
dropFunction: instrumentation$2.getRecordNotifyChangeDropped,
|
|
41096
41117
|
});
|
|
41097
|
-
throttle(60, 60000, createLDSAdapter(luvio, 'notifyRecordUpdateAvailable', notifyUpdateAvailableFactory$
|
|
41118
|
+
throttle(60, 60000, createLDSAdapter(luvio, 'notifyRecordUpdateAvailable', notifyUpdateAvailableFactory$2), {
|
|
41098
41119
|
allowFunction: instrumentation$2.notifyRecordUpdateAvailableAllowed,
|
|
41099
41120
|
dropFunction: instrumentation$2.notifyRecordUpdateAvailableDropped,
|
|
41100
41121
|
});
|
|
41101
|
-
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListViewSummaryUpdateAvailable', notifyUpdateAvailableFactory));
|
|
41122
|
+
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListViewSummaryUpdateAvailable', notifyUpdateAvailableFactory$1));
|
|
41123
|
+
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoUpdateAvailable', notifyUpdateAvailableFactory));
|
|
41102
41124
|
});
|
|
41103
|
-
// version: 1.
|
|
41125
|
+
// version: 1.217.0-a59ee1de5
|
|
41104
41126
|
|
|
41105
41127
|
var caseSensitiveUserId = '005B0000000GR4OIAW';
|
|
41106
41128
|
|
|
@@ -57698,7 +57720,7 @@
|
|
|
57698
57720
|
id: '@salesforce/lds-network-adapter',
|
|
57699
57721
|
instrument: instrument$1,
|
|
57700
57722
|
});
|
|
57701
|
-
// version: 1.
|
|
57723
|
+
// version: 1.217.0-175057ee1
|
|
57702
57724
|
|
|
57703
57725
|
const { create: create$2, keys: keys$2 } = Object;
|
|
57704
57726
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -75976,7 +75998,7 @@
|
|
|
75976
75998
|
configuration: { ...configurationForGraphQLAdapters },
|
|
75977
75999
|
instrument,
|
|
75978
76000
|
});
|
|
75979
|
-
// version: 1.
|
|
76001
|
+
// version: 1.217.0-a59ee1de5
|
|
75980
76002
|
|
|
75981
76003
|
// On core the unstable adapters are re-exported with different names,
|
|
75982
76004
|
|
|
@@ -78223,7 +78245,7 @@
|
|
|
78223
78245
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
78224
78246
|
graphQLImperative = ldsAdapter;
|
|
78225
78247
|
});
|
|
78226
|
-
// version: 1.
|
|
78248
|
+
// version: 1.217.0-a59ee1de5
|
|
78227
78249
|
|
|
78228
78250
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
78229
78251
|
__proto__: null,
|
|
@@ -78954,4 +78976,4 @@
|
|
|
78954
78976
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
78955
78977
|
|
|
78956
78978
|
}));
|
|
78957
|
-
// version: 1.
|
|
78979
|
+
// version: 1.217.0-175057ee1
|