@salesforce/lds-worker-api 1.309.0-dev11 → 1.309.0-dev13
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.
|
@@ -1077,4 +1077,4 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1077
1077
|
}
|
|
1078
1078
|
|
|
1079
1079
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
1080
|
-
// version: 1.309.0-
|
|
1080
|
+
// version: 1.309.0-dev13-579febfe20
|
|
@@ -4265,7 +4265,7 @@ function withDefaultLuvio(callback) {
|
|
|
4265
4265
|
}
|
|
4266
4266
|
callbacks.push(callback);
|
|
4267
4267
|
}
|
|
4268
|
-
// version: 1.309.0-
|
|
4268
|
+
// version: 1.309.0-dev13-579febfe20
|
|
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) {
|
|
@@ -15764,7 +15764,7 @@ function gql(literals, ...subs) {
|
|
|
15764
15764
|
}
|
|
15765
15765
|
return superResult;
|
|
15766
15766
|
}
|
|
15767
|
-
// version: 1.309.0-
|
|
15767
|
+
// version: 1.309.0-dev13-579febfe20
|
|
15768
15768
|
|
|
15769
15769
|
function unwrap(data) {
|
|
15770
15770
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16705,7 +16705,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
|
|
|
16705
16705
|
const { apiFamily, name } = metadata;
|
|
16706
16706
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16707
16707
|
}
|
|
16708
|
-
// version: 1.309.0-
|
|
16708
|
+
// version: 1.309.0-dev13-579febfe20
|
|
16709
16709
|
|
|
16710
16710
|
/**
|
|
16711
16711
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -44812,7 +44812,7 @@ withDefaultLuvio((luvio) => {
|
|
|
44812
44812
|
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
44813
44813
|
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
44814
44814
|
});
|
|
44815
|
-
// version: 1.309.0-
|
|
44815
|
+
// version: 1.309.0-dev13-f443187b81
|
|
44816
44816
|
|
|
44817
44817
|
var ldsIdempotencyWriteDisabled = {
|
|
44818
44818
|
isOpen: function (e) {
|
|
@@ -50460,7 +50460,7 @@ class DurableDraftQueue {
|
|
|
50460
50460
|
switch (result) {
|
|
50461
50461
|
case ProcessActionResult.BLOCKED_ON_ERROR:
|
|
50462
50462
|
this.state = DraftQueueState.Error;
|
|
50463
|
-
return Promise.reject();
|
|
50463
|
+
return Promise.reject('Unable to start queue - first action is in error state');
|
|
50464
50464
|
default:
|
|
50465
50465
|
return Promise.resolve();
|
|
50466
50466
|
}
|
|
@@ -51752,16 +51752,17 @@ class DraftManager {
|
|
|
51752
51752
|
return Promise.reject('cannot edit incompatible action type or uploading actions');
|
|
51753
51753
|
}
|
|
51754
51754
|
action.data.body.fields = { ...action.data.body.fields, ...fields };
|
|
51755
|
+
action.status = DraftActionStatus.Pending;
|
|
51755
51756
|
await this.draftQueue.updateDraftAction(action);
|
|
51756
51757
|
return this.buildDraftQueueItem(action);
|
|
51757
51758
|
}
|
|
51758
51759
|
isValidFieldMap(fields) {
|
|
51759
51760
|
const keys$1 = keys$6(fields);
|
|
51760
|
-
const validTypes = ['string', 'number', '
|
|
51761
|
+
const validTypes = ['string', 'number', 'boolean'];
|
|
51761
51762
|
for (let i = 0; i < keys$1.length; i++) {
|
|
51762
51763
|
const key = keys$1[i];
|
|
51763
51764
|
const value = fields[key];
|
|
51764
|
-
if (!validTypes.includes(typeof value)) {
|
|
51765
|
+
if (!validTypes.includes(typeof value) && value !== null) {
|
|
51765
51766
|
return false;
|
|
51766
51767
|
}
|
|
51767
51768
|
}
|
|
@@ -51789,6 +51790,7 @@ class DraftManager {
|
|
|
51789
51790
|
}
|
|
51790
51791
|
const data = action.data;
|
|
51791
51792
|
data.body.fields = { ...data.body.fields, ...fields };
|
|
51793
|
+
action.status = DraftActionStatus.Pending;
|
|
51792
51794
|
await this.draftQueue.updateDraftAction(action);
|
|
51793
51795
|
return this.buildDraftQueueItem(action);
|
|
51794
51796
|
}
|
|
@@ -55377,8 +55379,12 @@ function filterToPredicates(where, recordType, alias, objectInfoMap, joins, draf
|
|
|
55377
55379
|
// handles spanning field filter. For example, for 'OwnerId' field within 'Account' objectInfo, both 'OwnerId' and 'Owner' can be
|
|
55378
55380
|
// treated as reference type, while 'Owner' field spanns since it equals to 'relationshipName'
|
|
55379
55381
|
if (fieldInfo.dataType === 'Reference' && fieldInfo.relationshipName === field) {
|
|
55382
|
+
let leftPath = `$.fields.${fieldInfo.apiName}.value`;
|
|
55383
|
+
if (fieldInfo.apiName === 'RecordTypeId') {
|
|
55384
|
+
leftPath = '$.recordTypeId';
|
|
55385
|
+
}
|
|
55380
55386
|
const path = {
|
|
55381
|
-
leftPath:
|
|
55387
|
+
leftPath: leftPath,
|
|
55382
55388
|
rightPath: `$.id`,
|
|
55383
55389
|
};
|
|
55384
55390
|
const childAlias = `${alias}_${field}`;
|
|
@@ -59743,8 +59749,9 @@ function createErrorSnapshot(result, snapshot) {
|
|
|
59743
59749
|
},
|
|
59744
59750
|
};
|
|
59745
59751
|
}
|
|
59746
|
-
function createLocalEvalSnapshot(data, seenRecords, recordId, rebuildWithLocalEval) {
|
|
59752
|
+
function createLocalEvalSnapshot(data, seenRecords, recordId, rebuildWithLocalEval, refresh) {
|
|
59747
59753
|
return {
|
|
59754
|
+
refresh,
|
|
59748
59755
|
recordId,
|
|
59749
59756
|
variables: {},
|
|
59750
59757
|
seenRecords,
|
|
@@ -59962,11 +59969,11 @@ function draftAwareGraphQLAdapterFactory(userId, objectInfoService, store, luvio
|
|
|
59962
59969
|
isDraftId,
|
|
59963
59970
|
getCanonicalId,
|
|
59964
59971
|
};
|
|
59972
|
+
const eventEmitter = createCustomAdapterEventEmitter(GRAPHQL_EVAL_NAMESPACE, requestContext.eventObservers || []);
|
|
59965
59973
|
try {
|
|
59966
59974
|
// NB: This occurs BEFORE synthetic field injection on purpose to
|
|
59967
59975
|
// ensure we don't charge the caller for spanning records we inject
|
|
59968
59976
|
// on their behalf.
|
|
59969
|
-
const eventEmitter = createCustomAdapterEventEmitter(GRAPHQL_EVAL_NAMESPACE, requestContext.eventObservers || []);
|
|
59970
59977
|
const queryInstrumentation = instrumentLimits(copy, config.variables || {});
|
|
59971
59978
|
eventEmitter({
|
|
59972
59979
|
type: 'graphql-query-instrumentation',
|
|
@@ -60098,7 +60105,7 @@ function draftAwareGraphQLAdapterFactory(userId, objectInfoService, store, luvio
|
|
|
60098
60105
|
// the error is network error or 504), otherwise we spread over
|
|
60099
60106
|
// the non-eval'ed snapshot (which will be either Fulfilled or Stale)
|
|
60100
60107
|
const resultSnapshot = nonEvaluatedSnapshot.state === 'Error'
|
|
60101
|
-
? createLocalEvalSnapshot(gqlResult, seenRecords, recordId, rebuildWithLocalEval)
|
|
60108
|
+
? createLocalEvalSnapshot(gqlResult, seenRecords, recordId, rebuildWithLocalEval, nonEvaluatedSnapshot.refresh)
|
|
60102
60109
|
: {
|
|
60103
60110
|
...nonEvaluatedSnapshot,
|
|
60104
60111
|
data: gqlResult,
|
|
@@ -60121,6 +60128,9 @@ function draftAwareGraphQLAdapterFactory(userId, objectInfoService, store, luvio
|
|
|
60121
60128
|
},
|
|
60122
60129
|
};
|
|
60123
60130
|
}
|
|
60131
|
+
if (refresh === undefined) {
|
|
60132
|
+
eventEmitter({ type: 'graphql-luvio-refresh-undefined' });
|
|
60133
|
+
}
|
|
60124
60134
|
if (possibleStaleRecordMap.size > 0) {
|
|
60125
60135
|
initiateStaleRecordRefresh(luvio, possibleStaleRecordMap);
|
|
60126
60136
|
resultSnapshot.state = 'Stale';
|
|
@@ -61335,6 +61345,7 @@ const GRAPHQL_EVAL_ROOT_QUERY_COUNT = 'gql-eval-root-query-count';
|
|
|
61335
61345
|
const GRAPHQL_EVAL_TOTAL_QUERY_COUNT = 'gql-eval-total-query-count';
|
|
61336
61346
|
const GRAPHQL_EVAL_MAX_CHILD_RELATIONSHIPS_COUNT = 'gql-eval-max-child-count';
|
|
61337
61347
|
const GRAPHQL_EVAL_QUERY_RECORD_COUNT = 'gql-eval-query-record-count';
|
|
61348
|
+
const GRAPHQL_SNAPSHOT_REFRESH_UNDEFINED = 'gql-snapshot-refresh-undefined';
|
|
61338
61349
|
/** Draft Queue */
|
|
61339
61350
|
const DRAFT_QUEUE_STATE_STARTED = 'draft-queue-state-started';
|
|
61340
61351
|
const DRAFT_QUEUE_STATE_ERROR = 'draft-queue-state-error';
|
|
@@ -61402,6 +61413,9 @@ function reportGraphqlQueryInstrumentation(data) {
|
|
|
61402
61413
|
ldsMobileInstrumentation$2.bucketValue(GRAPHQL_EVAL_MAX_CHILD_RELATIONSHIPS_COUNT, data.maxChildRelationships, queryBuckets);
|
|
61403
61414
|
ldsMobileInstrumentation$2.bucketValue(GRAPHQL_EVAL_QUERY_RECORD_COUNT, data.requestedRecordCount, recordBuckets);
|
|
61404
61415
|
}
|
|
61416
|
+
function incrementGraphQLRefreshUndfined() {
|
|
61417
|
+
ldsMobileInstrumentation$2.incrementCounter(GRAPHQL_SNAPSHOT_REFRESH_UNDEFINED);
|
|
61418
|
+
}
|
|
61405
61419
|
function reportDraftActionEvent(state) {
|
|
61406
61420
|
switch (state) {
|
|
61407
61421
|
case 'added':
|
|
@@ -61818,6 +61832,9 @@ function instrumentGraphQLEval(adapter) {
|
|
|
61818
61832
|
case 'graphql-query-instrumentation':
|
|
61819
61833
|
reportGraphqlQueryInstrumentation(data.data);
|
|
61820
61834
|
break;
|
|
61835
|
+
case 'graphql-luvio-refresh-undefined':
|
|
61836
|
+
incrementGraphQLRefreshUndfined();
|
|
61837
|
+
break;
|
|
61821
61838
|
}
|
|
61822
61839
|
}
|
|
61823
61840
|
},
|
|
@@ -64075,7 +64092,7 @@ register$1({
|
|
|
64075
64092
|
id: '@salesforce/lds-network-adapter',
|
|
64076
64093
|
instrument: instrument$2,
|
|
64077
64094
|
});
|
|
64078
|
-
// version: 1.309.0-
|
|
64095
|
+
// version: 1.309.0-dev13-579febfe20
|
|
64079
64096
|
|
|
64080
64097
|
const { create: create$3, keys: keys$3 } = Object;
|
|
64081
64098
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -84111,7 +84128,7 @@ register$1({
|
|
|
84111
84128
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
84112
84129
|
instrument: instrument$1,
|
|
84113
84130
|
});
|
|
84114
|
-
// version: 1.309.0-
|
|
84131
|
+
// version: 1.309.0-dev13-f443187b81
|
|
84115
84132
|
|
|
84116
84133
|
// On core the unstable adapters are re-exported with different names,
|
|
84117
84134
|
// we want to match them here.
|
|
@@ -86367,7 +86384,7 @@ withDefaultLuvio((luvio) => {
|
|
|
86367
86384
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
86368
86385
|
graphQLImperative = ldsAdapter;
|
|
86369
86386
|
});
|
|
86370
|
-
// version: 1.309.0-
|
|
86387
|
+
// version: 1.309.0-dev13-f443187b81
|
|
86371
86388
|
|
|
86372
86389
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
86373
86390
|
__proto__: null,
|
|
@@ -87108,7 +87125,7 @@ const callbacks$1 = [];
|
|
|
87108
87125
|
function register(r) {
|
|
87109
87126
|
callbacks$1.forEach((callback) => callback(r));
|
|
87110
87127
|
}
|
|
87111
|
-
// version: 1.309.0-
|
|
87128
|
+
// version: 1.309.0-dev13-579febfe20
|
|
87112
87129
|
|
|
87113
87130
|
/**
|
|
87114
87131
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -92070,4 +92087,4 @@ const { luvio } = getRuntime();
|
|
|
92070
92087
|
setDefaultLuvio({ luvio });
|
|
92071
92088
|
|
|
92072
92089
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
92073
|
-
// version: 1.309.0-
|
|
92090
|
+
// version: 1.309.0-dev13-579febfe20
|
|
@@ -4271,7 +4271,7 @@
|
|
|
4271
4271
|
}
|
|
4272
4272
|
callbacks.push(callback);
|
|
4273
4273
|
}
|
|
4274
|
-
// version: 1.309.0-
|
|
4274
|
+
// version: 1.309.0-dev13-579febfe20
|
|
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) {
|
|
@@ -15770,7 +15770,7 @@
|
|
|
15770
15770
|
}
|
|
15771
15771
|
return superResult;
|
|
15772
15772
|
}
|
|
15773
|
-
// version: 1.309.0-
|
|
15773
|
+
// version: 1.309.0-dev13-579febfe20
|
|
15774
15774
|
|
|
15775
15775
|
function unwrap(data) {
|
|
15776
15776
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16711,7 +16711,7 @@
|
|
|
16711
16711
|
const { apiFamily, name } = metadata;
|
|
16712
16712
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16713
16713
|
}
|
|
16714
|
-
// version: 1.309.0-
|
|
16714
|
+
// version: 1.309.0-dev13-579febfe20
|
|
16715
16715
|
|
|
16716
16716
|
/**
|
|
16717
16717
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -44818,7 +44818,7 @@
|
|
|
44818
44818
|
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
44819
44819
|
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
44820
44820
|
});
|
|
44821
|
-
// version: 1.309.0-
|
|
44821
|
+
// version: 1.309.0-dev13-f443187b81
|
|
44822
44822
|
|
|
44823
44823
|
var ldsIdempotencyWriteDisabled = {
|
|
44824
44824
|
isOpen: function (e) {
|
|
@@ -50466,7 +50466,7 @@
|
|
|
50466
50466
|
switch (result) {
|
|
50467
50467
|
case ProcessActionResult.BLOCKED_ON_ERROR:
|
|
50468
50468
|
this.state = DraftQueueState.Error;
|
|
50469
|
-
return Promise.reject();
|
|
50469
|
+
return Promise.reject('Unable to start queue - first action is in error state');
|
|
50470
50470
|
default:
|
|
50471
50471
|
return Promise.resolve();
|
|
50472
50472
|
}
|
|
@@ -51758,16 +51758,17 @@
|
|
|
51758
51758
|
return Promise.reject('cannot edit incompatible action type or uploading actions');
|
|
51759
51759
|
}
|
|
51760
51760
|
action.data.body.fields = { ...action.data.body.fields, ...fields };
|
|
51761
|
+
action.status = DraftActionStatus.Pending;
|
|
51761
51762
|
await this.draftQueue.updateDraftAction(action);
|
|
51762
51763
|
return this.buildDraftQueueItem(action);
|
|
51763
51764
|
}
|
|
51764
51765
|
isValidFieldMap(fields) {
|
|
51765
51766
|
const keys$1 = keys$6(fields);
|
|
51766
|
-
const validTypes = ['string', 'number', '
|
|
51767
|
+
const validTypes = ['string', 'number', 'boolean'];
|
|
51767
51768
|
for (let i = 0; i < keys$1.length; i++) {
|
|
51768
51769
|
const key = keys$1[i];
|
|
51769
51770
|
const value = fields[key];
|
|
51770
|
-
if (!validTypes.includes(typeof value)) {
|
|
51771
|
+
if (!validTypes.includes(typeof value) && value !== null) {
|
|
51771
51772
|
return false;
|
|
51772
51773
|
}
|
|
51773
51774
|
}
|
|
@@ -51795,6 +51796,7 @@
|
|
|
51795
51796
|
}
|
|
51796
51797
|
const data = action.data;
|
|
51797
51798
|
data.body.fields = { ...data.body.fields, ...fields };
|
|
51799
|
+
action.status = DraftActionStatus.Pending;
|
|
51798
51800
|
await this.draftQueue.updateDraftAction(action);
|
|
51799
51801
|
return this.buildDraftQueueItem(action);
|
|
51800
51802
|
}
|
|
@@ -55383,8 +55385,12 @@
|
|
|
55383
55385
|
// handles spanning field filter. For example, for 'OwnerId' field within 'Account' objectInfo, both 'OwnerId' and 'Owner' can be
|
|
55384
55386
|
// treated as reference type, while 'Owner' field spanns since it equals to 'relationshipName'
|
|
55385
55387
|
if (fieldInfo.dataType === 'Reference' && fieldInfo.relationshipName === field) {
|
|
55388
|
+
let leftPath = `$.fields.${fieldInfo.apiName}.value`;
|
|
55389
|
+
if (fieldInfo.apiName === 'RecordTypeId') {
|
|
55390
|
+
leftPath = '$.recordTypeId';
|
|
55391
|
+
}
|
|
55386
55392
|
const path = {
|
|
55387
|
-
leftPath:
|
|
55393
|
+
leftPath: leftPath,
|
|
55388
55394
|
rightPath: `$.id`,
|
|
55389
55395
|
};
|
|
55390
55396
|
const childAlias = `${alias}_${field}`;
|
|
@@ -59749,8 +59755,9 @@
|
|
|
59749
59755
|
},
|
|
59750
59756
|
};
|
|
59751
59757
|
}
|
|
59752
|
-
function createLocalEvalSnapshot(data, seenRecords, recordId, rebuildWithLocalEval) {
|
|
59758
|
+
function createLocalEvalSnapshot(data, seenRecords, recordId, rebuildWithLocalEval, refresh) {
|
|
59753
59759
|
return {
|
|
59760
|
+
refresh,
|
|
59754
59761
|
recordId,
|
|
59755
59762
|
variables: {},
|
|
59756
59763
|
seenRecords,
|
|
@@ -59968,11 +59975,11 @@
|
|
|
59968
59975
|
isDraftId,
|
|
59969
59976
|
getCanonicalId,
|
|
59970
59977
|
};
|
|
59978
|
+
const eventEmitter = createCustomAdapterEventEmitter(GRAPHQL_EVAL_NAMESPACE, requestContext.eventObservers || []);
|
|
59971
59979
|
try {
|
|
59972
59980
|
// NB: This occurs BEFORE synthetic field injection on purpose to
|
|
59973
59981
|
// ensure we don't charge the caller for spanning records we inject
|
|
59974
59982
|
// on their behalf.
|
|
59975
|
-
const eventEmitter = createCustomAdapterEventEmitter(GRAPHQL_EVAL_NAMESPACE, requestContext.eventObservers || []);
|
|
59976
59983
|
const queryInstrumentation = instrumentLimits(copy, config.variables || {});
|
|
59977
59984
|
eventEmitter({
|
|
59978
59985
|
type: 'graphql-query-instrumentation',
|
|
@@ -60104,7 +60111,7 @@
|
|
|
60104
60111
|
// the error is network error or 504), otherwise we spread over
|
|
60105
60112
|
// the non-eval'ed snapshot (which will be either Fulfilled or Stale)
|
|
60106
60113
|
const resultSnapshot = nonEvaluatedSnapshot.state === 'Error'
|
|
60107
|
-
? createLocalEvalSnapshot(gqlResult, seenRecords, recordId, rebuildWithLocalEval)
|
|
60114
|
+
? createLocalEvalSnapshot(gqlResult, seenRecords, recordId, rebuildWithLocalEval, nonEvaluatedSnapshot.refresh)
|
|
60108
60115
|
: {
|
|
60109
60116
|
...nonEvaluatedSnapshot,
|
|
60110
60117
|
data: gqlResult,
|
|
@@ -60127,6 +60134,9 @@
|
|
|
60127
60134
|
},
|
|
60128
60135
|
};
|
|
60129
60136
|
}
|
|
60137
|
+
if (refresh === undefined) {
|
|
60138
|
+
eventEmitter({ type: 'graphql-luvio-refresh-undefined' });
|
|
60139
|
+
}
|
|
60130
60140
|
if (possibleStaleRecordMap.size > 0) {
|
|
60131
60141
|
initiateStaleRecordRefresh(luvio, possibleStaleRecordMap);
|
|
60132
60142
|
resultSnapshot.state = 'Stale';
|
|
@@ -61341,6 +61351,7 @@
|
|
|
61341
61351
|
const GRAPHQL_EVAL_TOTAL_QUERY_COUNT = 'gql-eval-total-query-count';
|
|
61342
61352
|
const GRAPHQL_EVAL_MAX_CHILD_RELATIONSHIPS_COUNT = 'gql-eval-max-child-count';
|
|
61343
61353
|
const GRAPHQL_EVAL_QUERY_RECORD_COUNT = 'gql-eval-query-record-count';
|
|
61354
|
+
const GRAPHQL_SNAPSHOT_REFRESH_UNDEFINED = 'gql-snapshot-refresh-undefined';
|
|
61344
61355
|
/** Draft Queue */
|
|
61345
61356
|
const DRAFT_QUEUE_STATE_STARTED = 'draft-queue-state-started';
|
|
61346
61357
|
const DRAFT_QUEUE_STATE_ERROR = 'draft-queue-state-error';
|
|
@@ -61408,6 +61419,9 @@
|
|
|
61408
61419
|
ldsMobileInstrumentation$2.bucketValue(GRAPHQL_EVAL_MAX_CHILD_RELATIONSHIPS_COUNT, data.maxChildRelationships, queryBuckets);
|
|
61409
61420
|
ldsMobileInstrumentation$2.bucketValue(GRAPHQL_EVAL_QUERY_RECORD_COUNT, data.requestedRecordCount, recordBuckets);
|
|
61410
61421
|
}
|
|
61422
|
+
function incrementGraphQLRefreshUndfined() {
|
|
61423
|
+
ldsMobileInstrumentation$2.incrementCounter(GRAPHQL_SNAPSHOT_REFRESH_UNDEFINED);
|
|
61424
|
+
}
|
|
61411
61425
|
function reportDraftActionEvent(state) {
|
|
61412
61426
|
switch (state) {
|
|
61413
61427
|
case 'added':
|
|
@@ -61824,6 +61838,9 @@
|
|
|
61824
61838
|
case 'graphql-query-instrumentation':
|
|
61825
61839
|
reportGraphqlQueryInstrumentation(data.data);
|
|
61826
61840
|
break;
|
|
61841
|
+
case 'graphql-luvio-refresh-undefined':
|
|
61842
|
+
incrementGraphQLRefreshUndfined();
|
|
61843
|
+
break;
|
|
61827
61844
|
}
|
|
61828
61845
|
}
|
|
61829
61846
|
},
|
|
@@ -64081,7 +64098,7 @@
|
|
|
64081
64098
|
id: '@salesforce/lds-network-adapter',
|
|
64082
64099
|
instrument: instrument$2,
|
|
64083
64100
|
});
|
|
64084
|
-
// version: 1.309.0-
|
|
64101
|
+
// version: 1.309.0-dev13-579febfe20
|
|
64085
64102
|
|
|
64086
64103
|
const { create: create$3, keys: keys$3 } = Object;
|
|
64087
64104
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -84117,7 +84134,7 @@
|
|
|
84117
84134
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
84118
84135
|
instrument: instrument$1,
|
|
84119
84136
|
});
|
|
84120
|
-
// version: 1.309.0-
|
|
84137
|
+
// version: 1.309.0-dev13-f443187b81
|
|
84121
84138
|
|
|
84122
84139
|
// On core the unstable adapters are re-exported with different names,
|
|
84123
84140
|
// we want to match them here.
|
|
@@ -86373,7 +86390,7 @@
|
|
|
86373
86390
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
86374
86391
|
graphQLImperative = ldsAdapter;
|
|
86375
86392
|
});
|
|
86376
|
-
// version: 1.309.0-
|
|
86393
|
+
// version: 1.309.0-dev13-f443187b81
|
|
86377
86394
|
|
|
86378
86395
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
86379
86396
|
__proto__: null,
|
|
@@ -87114,7 +87131,7 @@
|
|
|
87114
87131
|
function register(r) {
|
|
87115
87132
|
callbacks$1.forEach((callback) => callback(r));
|
|
87116
87133
|
}
|
|
87117
|
-
// version: 1.309.0-
|
|
87134
|
+
// version: 1.309.0-dev13-579febfe20
|
|
87118
87135
|
|
|
87119
87136
|
/**
|
|
87120
87137
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -92095,4 +92112,4 @@
|
|
|
92095
92112
|
exports.subscribeToAdapter = subscribeToAdapter;
|
|
92096
92113
|
|
|
92097
92114
|
}));
|
|
92098
|
-
// version: 1.309.0-
|
|
92115
|
+
// version: 1.309.0-dev13-579febfe20
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-worker-api",
|
|
3
|
-
"version": "1.309.0-
|
|
3
|
+
"version": "1.309.0-dev13",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "dist/standalone/es/lds-worker-api.js",
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@oat-sa/rollup-plugin-wildcard-external": "^1.0.0",
|
|
38
|
-
"@salesforce/lds-adapters-graphql": "^1.309.0-
|
|
39
|
-
"@salesforce/lds-adapters-uiapi": "^1.309.0-
|
|
40
|
-
"@salesforce/lds-default-luvio": "^1.309.0-
|
|
41
|
-
"@salesforce/lds-drafts": "^1.309.0-
|
|
42
|
-
"@salesforce/lds-graphql-parser": "^1.309.0-
|
|
43
|
-
"@salesforce/lds-luvio-engine": "^1.309.0-
|
|
44
|
-
"@salesforce/lds-priming": "^1.309.0-
|
|
45
|
-
"@salesforce/lds-runtime-mobile": "^1.309.0-
|
|
46
|
-
"@salesforce/nimbus-plugin-lds": "^1.309.0-
|
|
38
|
+
"@salesforce/lds-adapters-graphql": "^1.309.0-dev13",
|
|
39
|
+
"@salesforce/lds-adapters-uiapi": "^1.309.0-dev13",
|
|
40
|
+
"@salesforce/lds-default-luvio": "^1.309.0-dev13",
|
|
41
|
+
"@salesforce/lds-drafts": "^1.309.0-dev13",
|
|
42
|
+
"@salesforce/lds-graphql-parser": "^1.309.0-dev13",
|
|
43
|
+
"@salesforce/lds-luvio-engine": "^1.309.0-dev13",
|
|
44
|
+
"@salesforce/lds-priming": "^1.309.0-dev13",
|
|
45
|
+
"@salesforce/lds-runtime-mobile": "^1.309.0-dev13",
|
|
46
|
+
"@salesforce/nimbus-plugin-lds": "^1.309.0-dev13",
|
|
47
47
|
"ajv": "^8.11.0",
|
|
48
48
|
"glob": "^7.1.5",
|
|
49
49
|
"nimbus-types": "^2.0.0-alpha1",
|