@salesforce/lds-worker-api 1.226.0 → 1.227.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.227.0-f636c0f4c
|
|
@@ -3968,7 +3968,7 @@ function withDefaultLuvio(callback) {
|
|
|
3968
3968
|
}
|
|
3969
3969
|
callbacks.push(callback);
|
|
3970
3970
|
}
|
|
3971
|
-
// version: 1.
|
|
3971
|
+
// version: 1.227.0-f636c0f4c
|
|
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) {
|
|
@@ -15211,7 +15211,7 @@ const astResolver = function (astReference) {
|
|
|
15211
15211
|
* @param subs - all other substitutions
|
|
15212
15212
|
* @returns an opaque reference to the parsed document
|
|
15213
15213
|
*/
|
|
15214
|
-
function gql(literals, ...subs) {
|
|
15214
|
+
function gql$1(literals, ...subs) {
|
|
15215
15215
|
let inputString;
|
|
15216
15216
|
let inputSubstitutionFragments;
|
|
15217
15217
|
if (!literals) {
|
|
@@ -15401,7 +15401,35 @@ function parseAndVisit(source) {
|
|
|
15401
15401
|
updateReferenceMapWithKnownKey(ast, luvioDocumentNode);
|
|
15402
15402
|
return luvioDocumentNode;
|
|
15403
15403
|
}
|
|
15404
|
-
|
|
15404
|
+
|
|
15405
|
+
function validateDocument(root) {
|
|
15406
|
+
const validationMessages = [];
|
|
15407
|
+
const { definitions } = root;
|
|
15408
|
+
for (let i = 0; i < definitions.length; i++) {
|
|
15409
|
+
const definition = definitions[i];
|
|
15410
|
+
if (definition.kind === 'OperationDefinition') {
|
|
15411
|
+
const { operation, name } = definition;
|
|
15412
|
+
if (operation !== 'query') {
|
|
15413
|
+
validationMessages.push(`Unsupported ${operation} ${name ? `(${name.value}) ` : ''}operation.`);
|
|
15414
|
+
}
|
|
15415
|
+
}
|
|
15416
|
+
}
|
|
15417
|
+
return validationMessages;
|
|
15418
|
+
}
|
|
15419
|
+
function gql(literals, ...subs) {
|
|
15420
|
+
const superResult = gql$1(literals, ...subs);
|
|
15421
|
+
if (superResult !== null) {
|
|
15422
|
+
const root = astResolver(superResult);
|
|
15423
|
+
if (root !== undefined) {
|
|
15424
|
+
const errors = validateDocument(root);
|
|
15425
|
+
if (errors.length > 0) {
|
|
15426
|
+
throw new SyntaxError(`There are unsupported operations in the graphql query:\n${errors.join('\n')}`);
|
|
15427
|
+
}
|
|
15428
|
+
}
|
|
15429
|
+
}
|
|
15430
|
+
return superResult;
|
|
15431
|
+
}
|
|
15432
|
+
// version: 1.227.0-f636c0f4c
|
|
15405
15433
|
|
|
15406
15434
|
function unwrap(data) {
|
|
15407
15435
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16324,7 +16352,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
|
|
|
16324
16352
|
const { apiFamily, name } = metadata;
|
|
16325
16353
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16326
16354
|
}
|
|
16327
|
-
// version: 1.
|
|
16355
|
+
// version: 1.227.0-f636c0f4c
|
|
16328
16356
|
|
|
16329
16357
|
/**
|
|
16330
16358
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -41117,7 +41145,7 @@ withDefaultLuvio((luvio) => {
|
|
|
41117
41145
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListViewSummaryUpdateAvailable', notifyUpdateAvailableFactory$1));
|
|
41118
41146
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoUpdateAvailable', notifyUpdateAvailableFactory));
|
|
41119
41147
|
});
|
|
41120
|
-
// version: 1.
|
|
41148
|
+
// version: 1.227.0-267d3ea17
|
|
41121
41149
|
|
|
41122
41150
|
var caseSensitiveUserId = '005B0000000GR4OIAW';
|
|
41123
41151
|
|
|
@@ -57715,7 +57743,7 @@ register({
|
|
|
57715
57743
|
id: '@salesforce/lds-network-adapter',
|
|
57716
57744
|
instrument: instrument$1,
|
|
57717
57745
|
});
|
|
57718
|
-
// version: 1.
|
|
57746
|
+
// version: 1.227.0-f636c0f4c
|
|
57719
57747
|
|
|
57720
57748
|
const { create: create$2, keys: keys$2 } = Object;
|
|
57721
57749
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -75993,7 +76021,7 @@ register({
|
|
|
75993
76021
|
configuration: { ...configurationForGraphQLAdapters },
|
|
75994
76022
|
instrument,
|
|
75995
76023
|
});
|
|
75996
|
-
// version: 1.
|
|
76024
|
+
// version: 1.227.0-267d3ea17
|
|
75997
76025
|
|
|
75998
76026
|
// On core the unstable adapters are re-exported with different names,
|
|
75999
76027
|
|
|
@@ -78240,7 +78268,7 @@ withDefaultLuvio((luvio) => {
|
|
|
78240
78268
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
78241
78269
|
graphQLImperative = ldsAdapter;
|
|
78242
78270
|
});
|
|
78243
|
-
// version: 1.
|
|
78271
|
+
// version: 1.227.0-267d3ea17
|
|
78244
78272
|
|
|
78245
78273
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
78246
78274
|
__proto__: null,
|
|
@@ -78954,4 +78982,4 @@ const { luvio } = getRuntime();
|
|
|
78954
78982
|
setDefaultLuvio({ luvio });
|
|
78955
78983
|
|
|
78956
78984
|
export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
|
|
78957
|
-
// version: 1.
|
|
78985
|
+
// version: 1.227.0-f636c0f4c
|
|
@@ -3974,7 +3974,7 @@
|
|
|
3974
3974
|
}
|
|
3975
3975
|
callbacks.push(callback);
|
|
3976
3976
|
}
|
|
3977
|
-
// version: 1.
|
|
3977
|
+
// version: 1.227.0-f636c0f4c
|
|
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) {
|
|
@@ -15217,7 +15217,7 @@
|
|
|
15217
15217
|
* @param subs - all other substitutions
|
|
15218
15218
|
* @returns an opaque reference to the parsed document
|
|
15219
15219
|
*/
|
|
15220
|
-
function gql(literals, ...subs) {
|
|
15220
|
+
function gql$1(literals, ...subs) {
|
|
15221
15221
|
let inputString;
|
|
15222
15222
|
let inputSubstitutionFragments;
|
|
15223
15223
|
if (!literals) {
|
|
@@ -15407,7 +15407,35 @@
|
|
|
15407
15407
|
updateReferenceMapWithKnownKey(ast, luvioDocumentNode);
|
|
15408
15408
|
return luvioDocumentNode;
|
|
15409
15409
|
}
|
|
15410
|
-
|
|
15410
|
+
|
|
15411
|
+
function validateDocument(root) {
|
|
15412
|
+
const validationMessages = [];
|
|
15413
|
+
const { definitions } = root;
|
|
15414
|
+
for (let i = 0; i < definitions.length; i++) {
|
|
15415
|
+
const definition = definitions[i];
|
|
15416
|
+
if (definition.kind === 'OperationDefinition') {
|
|
15417
|
+
const { operation, name } = definition;
|
|
15418
|
+
if (operation !== 'query') {
|
|
15419
|
+
validationMessages.push(`Unsupported ${operation} ${name ? `(${name.value}) ` : ''}operation.`);
|
|
15420
|
+
}
|
|
15421
|
+
}
|
|
15422
|
+
}
|
|
15423
|
+
return validationMessages;
|
|
15424
|
+
}
|
|
15425
|
+
function gql(literals, ...subs) {
|
|
15426
|
+
const superResult = gql$1(literals, ...subs);
|
|
15427
|
+
if (superResult !== null) {
|
|
15428
|
+
const root = astResolver(superResult);
|
|
15429
|
+
if (root !== undefined) {
|
|
15430
|
+
const errors = validateDocument(root);
|
|
15431
|
+
if (errors.length > 0) {
|
|
15432
|
+
throw new SyntaxError(`There are unsupported operations in the graphql query:\n${errors.join('\n')}`);
|
|
15433
|
+
}
|
|
15434
|
+
}
|
|
15435
|
+
}
|
|
15436
|
+
return superResult;
|
|
15437
|
+
}
|
|
15438
|
+
// version: 1.227.0-f636c0f4c
|
|
15411
15439
|
|
|
15412
15440
|
function unwrap(data) {
|
|
15413
15441
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16330,7 +16358,7 @@
|
|
|
16330
16358
|
const { apiFamily, name } = metadata;
|
|
16331
16359
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16332
16360
|
}
|
|
16333
|
-
// version: 1.
|
|
16361
|
+
// version: 1.227.0-f636c0f4c
|
|
16334
16362
|
|
|
16335
16363
|
/**
|
|
16336
16364
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -41123,7 +41151,7 @@
|
|
|
41123
41151
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListViewSummaryUpdateAvailable', notifyUpdateAvailableFactory$1));
|
|
41124
41152
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoUpdateAvailable', notifyUpdateAvailableFactory));
|
|
41125
41153
|
});
|
|
41126
|
-
// version: 1.
|
|
41154
|
+
// version: 1.227.0-267d3ea17
|
|
41127
41155
|
|
|
41128
41156
|
var caseSensitiveUserId = '005B0000000GR4OIAW';
|
|
41129
41157
|
|
|
@@ -57721,7 +57749,7 @@
|
|
|
57721
57749
|
id: '@salesforce/lds-network-adapter',
|
|
57722
57750
|
instrument: instrument$1,
|
|
57723
57751
|
});
|
|
57724
|
-
// version: 1.
|
|
57752
|
+
// version: 1.227.0-f636c0f4c
|
|
57725
57753
|
|
|
57726
57754
|
const { create: create$2, keys: keys$2 } = Object;
|
|
57727
57755
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -75999,7 +76027,7 @@
|
|
|
75999
76027
|
configuration: { ...configurationForGraphQLAdapters },
|
|
76000
76028
|
instrument,
|
|
76001
76029
|
});
|
|
76002
|
-
// version: 1.
|
|
76030
|
+
// version: 1.227.0-267d3ea17
|
|
76003
76031
|
|
|
76004
76032
|
// On core the unstable adapters are re-exported with different names,
|
|
76005
76033
|
|
|
@@ -78246,7 +78274,7 @@
|
|
|
78246
78274
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
78247
78275
|
graphQLImperative = ldsAdapter;
|
|
78248
78276
|
});
|
|
78249
|
-
// version: 1.
|
|
78277
|
+
// version: 1.227.0-267d3ea17
|
|
78250
78278
|
|
|
78251
78279
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
78252
78280
|
__proto__: null,
|
|
@@ -78977,4 +79005,4 @@
|
|
|
78977
79005
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
78978
79006
|
|
|
78979
79007
|
}));
|
|
78980
|
-
// version: 1.
|
|
79008
|
+
// version: 1.227.0-f636c0f4c
|