@salesforce/lds-worker-api 1.459.0 → 1.461.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.
|
|
1376
|
+
// version: 1.461.0-37b1c9d1cb
|
|
@@ -4276,7 +4276,7 @@ function withDefaultLuvio(callback) {
|
|
|
4276
4276
|
}
|
|
4277
4277
|
callbacks.push(callback);
|
|
4278
4278
|
}
|
|
4279
|
-
// version: 1.
|
|
4279
|
+
// version: 1.461.0-37b1c9d1cb
|
|
4280
4280
|
|
|
4281
4281
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4282
4282
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -5320,7 +5320,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
|
|
|
5320
5320
|
const { apiFamily, name } = metadata;
|
|
5321
5321
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
5322
5322
|
}
|
|
5323
|
-
// version: 1.
|
|
5323
|
+
// version: 1.461.0-37b1c9d1cb
|
|
5324
5324
|
|
|
5325
5325
|
function isSupportedEntity(_objectApiName) {
|
|
5326
5326
|
return true;
|
|
@@ -32547,7 +32547,7 @@ withDefaultLuvio((luvio) => {
|
|
|
32547
32547
|
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
32548
32548
|
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
32549
32549
|
});
|
|
32550
|
-
// version: 1.
|
|
32550
|
+
// version: 1.461.0-55ae54e753
|
|
32551
32551
|
|
|
32552
32552
|
var draftQueueMaxRetryAttemptsGate = {
|
|
32553
32553
|
isOpen: function (e) {
|
|
@@ -45870,18 +45870,33 @@ function resolveAst(ast) {
|
|
|
45870
45870
|
}
|
|
45871
45871
|
return astResolver(ast);
|
|
45872
45872
|
}
|
|
45873
|
+
function isPersistedGraphQLDocument(value) {
|
|
45874
|
+
return typeof value === "object" && Object.prototype.hasOwnProperty.call(value, "document");
|
|
45875
|
+
}
|
|
45876
|
+
function unwrapGraphQLDocumentInput(query) {
|
|
45877
|
+
if (!isPersistedGraphQLDocument(query)) {
|
|
45878
|
+
return { ref: query };
|
|
45879
|
+
}
|
|
45880
|
+
const { documentId } = query;
|
|
45881
|
+
if (typeof documentId !== "string") {
|
|
45882
|
+
throw new Error("Invalid persisted GraphQL document: documentId must be a string");
|
|
45883
|
+
}
|
|
45884
|
+
return { ref: query.document, documentId };
|
|
45885
|
+
}
|
|
45873
45886
|
function resolveAndValidateGraphQLConfig(config, options) {
|
|
45874
45887
|
const query = config.query;
|
|
45875
45888
|
if (query === null || query === void 0) {
|
|
45876
45889
|
return void 0;
|
|
45877
45890
|
}
|
|
45878
|
-
const
|
|
45891
|
+
const { ref, documentId } = unwrapGraphQLDocumentInput(query);
|
|
45892
|
+
const result = resolveAndValidateGraphQLDocument(ref, config.operationName, options);
|
|
45879
45893
|
if (result.isErr()) {
|
|
45880
45894
|
return err$3(result.error);
|
|
45881
45895
|
}
|
|
45896
|
+
const resolvedQuery = documentId === void 0 ? result.value : { ...result.value, documentId };
|
|
45882
45897
|
return ok$3({
|
|
45883
45898
|
...config,
|
|
45884
|
-
query:
|
|
45899
|
+
query: resolvedQuery
|
|
45885
45900
|
});
|
|
45886
45901
|
}
|
|
45887
45902
|
function toGraphQLErrorResponse(error) {
|
|
@@ -97398,7 +97413,7 @@ function buildServiceDescriptor$b(luvio) {
|
|
|
97398
97413
|
},
|
|
97399
97414
|
};
|
|
97400
97415
|
}
|
|
97401
|
-
// version: 1.
|
|
97416
|
+
// version: 1.461.0-37b1c9d1cb
|
|
97402
97417
|
|
|
97403
97418
|
/**
|
|
97404
97419
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -97424,7 +97439,7 @@ function buildServiceDescriptor$a(notifyRecordUpdateAvailable, getNormalizedLuvi
|
|
|
97424
97439
|
},
|
|
97425
97440
|
};
|
|
97426
97441
|
}
|
|
97427
|
-
// version: 1.
|
|
97442
|
+
// version: 1.461.0-37b1c9d1cb
|
|
97428
97443
|
|
|
97429
97444
|
function findExecutableOperation$1(input) {
|
|
97430
97445
|
const operations = input.query.definitions.filter(
|
|
@@ -100133,7 +100148,7 @@ register$1({
|
|
|
100133
100148
|
id: '@salesforce/lds-network-adapter',
|
|
100134
100149
|
instrument: instrument$2,
|
|
100135
100150
|
});
|
|
100136
|
-
// version: 1.
|
|
100151
|
+
// version: 1.461.0-37b1c9d1cb
|
|
100137
100152
|
|
|
100138
100153
|
const { create: create$2, keys: keys$2 } = Object;
|
|
100139
100154
|
const { stringify, parse } = JSON;
|
|
@@ -107685,7 +107700,7 @@ function registerCallback(cb) {
|
|
|
107685
107700
|
cb(graphql_v1_import, graphql_imperative$1, graphql_imperative_legacy_v1_import, graphql_state_manager, useOneStoreGraphQL);
|
|
107686
107701
|
}
|
|
107687
107702
|
}
|
|
107688
|
-
// version: 1.
|
|
107703
|
+
// version: 1.461.0-55ae54e753
|
|
107689
107704
|
|
|
107690
107705
|
function createFragmentMap(documentNode) {
|
|
107691
107706
|
const fragments = {};
|
|
@@ -136928,7 +136943,7 @@ register$1({
|
|
|
136928
136943
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
136929
136944
|
instrument: instrument$1,
|
|
136930
136945
|
});
|
|
136931
|
-
// version: 1.
|
|
136946
|
+
// version: 1.461.0-55ae54e753
|
|
136932
136947
|
|
|
136933
136948
|
// On core the unstable adapters are re-exported with different names,
|
|
136934
136949
|
// we want to match them here.
|
|
@@ -137080,7 +137095,7 @@ withDefaultLuvio((luvio) => {
|
|
|
137080
137095
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
137081
137096
|
graphQLImperative = ldsAdapter;
|
|
137082
137097
|
});
|
|
137083
|
-
// version: 1.
|
|
137098
|
+
// version: 1.461.0-55ae54e753
|
|
137084
137099
|
|
|
137085
137100
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
137086
137101
|
__proto__: null,
|
|
@@ -137879,7 +137894,7 @@ const callbacks$1 = [];
|
|
|
137879
137894
|
function register(r) {
|
|
137880
137895
|
callbacks$1.forEach((callback) => callback(r));
|
|
137881
137896
|
}
|
|
137882
|
-
// version: 1.
|
|
137897
|
+
// version: 1.461.0-37b1c9d1cb
|
|
137883
137898
|
|
|
137884
137899
|
/**
|
|
137885
137900
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -139168,4 +139183,4 @@ const { luvio } = getRuntime();
|
|
|
139168
139183
|
setDefaultLuvio({ luvio });
|
|
139169
139184
|
|
|
139170
139185
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, importLuvioAdapterModule, importOneStoreAdapterModule, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
139171
|
-
// version: 1.
|
|
139186
|
+
// version: 1.461.0-37b1c9d1cb
|
|
@@ -4282,7 +4282,7 @@
|
|
|
4282
4282
|
}
|
|
4283
4283
|
callbacks.push(callback);
|
|
4284
4284
|
}
|
|
4285
|
-
// version: 1.
|
|
4285
|
+
// version: 1.461.0-37b1c9d1cb
|
|
4286
4286
|
|
|
4287
4287
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4288
4288
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -5326,7 +5326,7 @@
|
|
|
5326
5326
|
const { apiFamily, name } = metadata;
|
|
5327
5327
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
5328
5328
|
}
|
|
5329
|
-
// version: 1.
|
|
5329
|
+
// version: 1.461.0-37b1c9d1cb
|
|
5330
5330
|
|
|
5331
5331
|
function isSupportedEntity(_objectApiName) {
|
|
5332
5332
|
return true;
|
|
@@ -32553,7 +32553,7 @@
|
|
|
32553
32553
|
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
32554
32554
|
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
32555
32555
|
});
|
|
32556
|
-
// version: 1.
|
|
32556
|
+
// version: 1.461.0-55ae54e753
|
|
32557
32557
|
|
|
32558
32558
|
var draftQueueMaxRetryAttemptsGate = {
|
|
32559
32559
|
isOpen: function (e) {
|
|
@@ -45876,18 +45876,33 @@
|
|
|
45876
45876
|
}
|
|
45877
45877
|
return astResolver(ast);
|
|
45878
45878
|
}
|
|
45879
|
+
function isPersistedGraphQLDocument(value) {
|
|
45880
|
+
return typeof value === "object" && Object.prototype.hasOwnProperty.call(value, "document");
|
|
45881
|
+
}
|
|
45882
|
+
function unwrapGraphQLDocumentInput(query) {
|
|
45883
|
+
if (!isPersistedGraphQLDocument(query)) {
|
|
45884
|
+
return { ref: query };
|
|
45885
|
+
}
|
|
45886
|
+
const { documentId } = query;
|
|
45887
|
+
if (typeof documentId !== "string") {
|
|
45888
|
+
throw new Error("Invalid persisted GraphQL document: documentId must be a string");
|
|
45889
|
+
}
|
|
45890
|
+
return { ref: query.document, documentId };
|
|
45891
|
+
}
|
|
45879
45892
|
function resolveAndValidateGraphQLConfig(config, options) {
|
|
45880
45893
|
const query = config.query;
|
|
45881
45894
|
if (query === null || query === void 0) {
|
|
45882
45895
|
return void 0;
|
|
45883
45896
|
}
|
|
45884
|
-
const
|
|
45897
|
+
const { ref, documentId } = unwrapGraphQLDocumentInput(query);
|
|
45898
|
+
const result = resolveAndValidateGraphQLDocument(ref, config.operationName, options);
|
|
45885
45899
|
if (result.isErr()) {
|
|
45886
45900
|
return err$3(result.error);
|
|
45887
45901
|
}
|
|
45902
|
+
const resolvedQuery = documentId === void 0 ? result.value : { ...result.value, documentId };
|
|
45888
45903
|
return ok$3({
|
|
45889
45904
|
...config,
|
|
45890
|
-
query:
|
|
45905
|
+
query: resolvedQuery
|
|
45891
45906
|
});
|
|
45892
45907
|
}
|
|
45893
45908
|
function toGraphQLErrorResponse(error) {
|
|
@@ -97404,7 +97419,7 @@
|
|
|
97404
97419
|
},
|
|
97405
97420
|
};
|
|
97406
97421
|
}
|
|
97407
|
-
// version: 1.
|
|
97422
|
+
// version: 1.461.0-37b1c9d1cb
|
|
97408
97423
|
|
|
97409
97424
|
/**
|
|
97410
97425
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -97430,7 +97445,7 @@
|
|
|
97430
97445
|
},
|
|
97431
97446
|
};
|
|
97432
97447
|
}
|
|
97433
|
-
// version: 1.
|
|
97448
|
+
// version: 1.461.0-37b1c9d1cb
|
|
97434
97449
|
|
|
97435
97450
|
function findExecutableOperation$1(input) {
|
|
97436
97451
|
const operations = input.query.definitions.filter(
|
|
@@ -100139,7 +100154,7 @@
|
|
|
100139
100154
|
id: '@salesforce/lds-network-adapter',
|
|
100140
100155
|
instrument: instrument$2,
|
|
100141
100156
|
});
|
|
100142
|
-
// version: 1.
|
|
100157
|
+
// version: 1.461.0-37b1c9d1cb
|
|
100143
100158
|
|
|
100144
100159
|
const { create: create$2, keys: keys$2 } = Object;
|
|
100145
100160
|
const { stringify, parse } = JSON;
|
|
@@ -107691,7 +107706,7 @@
|
|
|
107691
107706
|
cb(graphql_v1_import, graphql_imperative$1, graphql_imperative_legacy_v1_import, graphql_state_manager, useOneStoreGraphQL);
|
|
107692
107707
|
}
|
|
107693
107708
|
}
|
|
107694
|
-
// version: 1.
|
|
107709
|
+
// version: 1.461.0-55ae54e753
|
|
107695
107710
|
|
|
107696
107711
|
function createFragmentMap(documentNode) {
|
|
107697
107712
|
const fragments = {};
|
|
@@ -136934,7 +136949,7 @@
|
|
|
136934
136949
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
136935
136950
|
instrument: instrument$1,
|
|
136936
136951
|
});
|
|
136937
|
-
// version: 1.
|
|
136952
|
+
// version: 1.461.0-55ae54e753
|
|
136938
136953
|
|
|
136939
136954
|
// On core the unstable adapters are re-exported with different names,
|
|
136940
136955
|
// we want to match them here.
|
|
@@ -137086,7 +137101,7 @@
|
|
|
137086
137101
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
137087
137102
|
graphQLImperative = ldsAdapter;
|
|
137088
137103
|
});
|
|
137089
|
-
// version: 1.
|
|
137104
|
+
// version: 1.461.0-55ae54e753
|
|
137090
137105
|
|
|
137091
137106
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
137092
137107
|
__proto__: null,
|
|
@@ -137885,7 +137900,7 @@
|
|
|
137885
137900
|
function register(r) {
|
|
137886
137901
|
callbacks$1.forEach((callback) => callback(r));
|
|
137887
137902
|
}
|
|
137888
|
-
// version: 1.
|
|
137903
|
+
// version: 1.461.0-37b1c9d1cb
|
|
137889
137904
|
|
|
137890
137905
|
/**
|
|
137891
137906
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -139195,4 +139210,4 @@
|
|
|
139195
139210
|
exports.subscribeToAdapter = subscribeToAdapter;
|
|
139196
139211
|
|
|
139197
139212
|
}));
|
|
139198
|
-
// version: 1.
|
|
139213
|
+
// version: 1.461.0-37b1c9d1cb
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-worker-api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.461.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.
|
|
39
|
-
"@salesforce/lds-adapters-uiapi": "^1.
|
|
40
|
-
"@salesforce/lds-default-luvio": "^1.
|
|
41
|
-
"@salesforce/lds-drafts": "^1.
|
|
42
|
-
"@salesforce/lds-graphql-parser": "^1.
|
|
43
|
-
"@salesforce/lds-luvio-engine": "^1.
|
|
44
|
-
"@salesforce/lds-runtime-mobile": "^1.
|
|
45
|
-
"@salesforce/nimbus-plugin-lds": "^1.
|
|
38
|
+
"@salesforce/lds-adapters-graphql": "^1.461.0",
|
|
39
|
+
"@salesforce/lds-adapters-uiapi": "^1.461.0",
|
|
40
|
+
"@salesforce/lds-default-luvio": "^1.461.0",
|
|
41
|
+
"@salesforce/lds-drafts": "^1.461.0",
|
|
42
|
+
"@salesforce/lds-graphql-parser": "^1.461.0",
|
|
43
|
+
"@salesforce/lds-luvio-engine": "^1.461.0",
|
|
44
|
+
"@salesforce/lds-runtime-mobile": "^1.461.0",
|
|
45
|
+
"@salesforce/nimbus-plugin-lds": "^1.461.0",
|
|
46
46
|
"ajv": "^8.11.0",
|
|
47
47
|
"glob": "^7.1.5",
|
|
48
48
|
"nimbus-types": "^2.0.0-alpha1",
|