@salesforce/lds-runtime-one-app 1.457.0 → 1.458.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.
- package/dist/oneAppLdsEngineCreator.js +19 -250
- package/dist/types/network-fetch.d.ts +2 -28
- package/dist/types/retry-policies/luvio-fetch-throttling-retry-policy.d.ts +3 -3
- package/package.json +43 -43
- package/dist/types/__mocks__/@salesforce/lds-ads-bridge.d.ts +0 -2
- package/dist/types/__mocks__/@salesforce/lds-durable-storage.d.ts +0 -5
- package/dist/types/__mocks__/@salesforce/lds-environment-settings.d.ts +0 -2
- package/dist/types/__mocks__/@salesforce/lds-instrumentation.d.ts +0 -15
- package/dist/types/__mocks__/@salesforce/lds-network-aura.d.ts +0 -4
- package/dist/types/__mocks__/@salesforce/lds-network-fetch.d.ts +0 -2
- package/dist/types/__mocks__/aura.d.ts +0 -3
- package/dist/types/__mocks__/force/ldsGraphqlParser.d.ts +0 -3
- package/dist/types/__mocks__/instrumentation/service.d.ts +0 -33
- package/dist/types/__mocks__/instrumentation:thirdPartyTracker.d.ts +0 -4
- package/dist/types/__mocks__/lwc.d.ts +0 -6
- package/dist/types/__mocks__/o11y/activity.d.ts +0 -12
- package/dist/types/__mocks__/o11y/client.d.ts +0 -11
- package/dist/types/__mocks__/o11y/idleDetector.d.ts +0 -18
- package/dist/types/__mocks__/o11y/instrumentation.d.ts +0 -15
- package/dist/types/__mocks__/o11y_schema/sf_lds.d.ts +0 -1
- package/dist/types/http-utils.d.ts +0 -30
|
@@ -28,7 +28,7 @@ import { dispatchGlobalEvent as dispatchGlobalEvent$1, executeGlobalControllerRa
|
|
|
28
28
|
import auraNetworkAdapter, { dispatchAuraAction, defaultActionConfig, instrument as instrument$1, forceRecordTransactionsDisabled as forceRecordTransactionsDisabled$1, ldsNetworkAdapterInstrument, CrudEventState, CrudEventType, UIAPI_RECORDS_PATH, UIAPI_RELATED_LIST_RECORDS_BATCH_PATH, UIAPI_RELATED_LIST_RECORDS_PATH } from 'force/ldsNetwork';
|
|
29
29
|
import { ThirdPartyTracker } from 'instrumentation:thirdPartyTracker';
|
|
30
30
|
import { markStart, markEnd, counter, registerCacheStats, perfStart, perfEnd, registerPeriodicLogger, interaction, timer, mark } from 'instrumentation/service';
|
|
31
|
-
import { instrument as instrument$2, setupLexNetworkAdapter } from 'force/ldsNetworkFetch';
|
|
31
|
+
import { instrument as instrument$2, isCsrfMethod, getFetchMethod, isRetryableMethod, isRetryableReadPost, compilePathMatchers, setupLexNetworkAdapter, UIAPI_PUBLIC_PATHS, UIAPI_PRIVATE_PATHS, isRetryableOperationType } from 'force/ldsNetworkFetch';
|
|
32
32
|
import { REFRESH_ADAPTER_EVENT, ADAPTER_UNFULFILLED_ERROR, instrument as instrument$3 } from 'force/ldsBindings';
|
|
33
33
|
import { stateManagerInstrumentation, OperationTypeValue, LRUCache, instrumentAdapter, instrumentLuvio, logMessage as logMessage$1, setupInstrumentation as setupInstrumentation$1, logObjectInfoChanged as logObjectInfoChanged$1, updatePercentileHistogramMetric, incrementCounterMetric, incrementGetRecordNotifyChangeAllowCount, incrementGetRecordNotifyChangeDropCount, incrementNotifyRecordUpdateAvailableAllowCount, incrementNotifyRecordUpdateAvailableDropCount, setLdsAdaptersUiapiInstrumentation, logError as logError$2, setLdsNetworkAdapterInstrumentation, executeAsyncActivity, METRIC_KEYS, onIdleDetected } from 'force/ldsInstrumentation';
|
|
34
34
|
import { instrument as instrument$4 } from 'force/adsBridge';
|
|
@@ -2601,7 +2601,7 @@ function buildServiceDescriptor$d(luvio) {
|
|
|
2601
2601
|
},
|
|
2602
2602
|
};
|
|
2603
2603
|
}
|
|
2604
|
-
// version: 1.
|
|
2604
|
+
// version: 1.458.0-5aef0572f2
|
|
2605
2605
|
|
|
2606
2606
|
class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheControlCommand {
|
|
2607
2607
|
constructor(config, documentRootType, services) {
|
|
@@ -2940,7 +2940,7 @@ function buildServiceDescriptor$9(notifyRecordUpdateAvailable, getNormalizedLuvi
|
|
|
2940
2940
|
},
|
|
2941
2941
|
};
|
|
2942
2942
|
}
|
|
2943
|
-
// version: 1.
|
|
2943
|
+
// version: 1.458.0-5aef0572f2
|
|
2944
2944
|
|
|
2945
2945
|
class RetryService {
|
|
2946
2946
|
constructor(defaultRetryPolicy) {
|
|
@@ -5862,7 +5862,7 @@ function getEnvironmentSetting(name) {
|
|
|
5862
5862
|
}
|
|
5863
5863
|
return undefined;
|
|
5864
5864
|
}
|
|
5865
|
-
// version: 1.
|
|
5865
|
+
// version: 1.458.0-6d15707ed2
|
|
5866
5866
|
|
|
5867
5867
|
/**
|
|
5868
5868
|
* Helpers for reaching the Aura framework from the LDS Aura runtime.
|
|
@@ -6435,57 +6435,6 @@ function getCsrfTokenManager() {
|
|
|
6435
6435
|
return cached;
|
|
6436
6436
|
}
|
|
6437
6437
|
|
|
6438
|
-
/**
|
|
6439
|
-
* Extracts the HTTP method from FetchParameters, matching the Fetch API's own
|
|
6440
|
-
* precedence: an options.method override wins over a Request object's method
|
|
6441
|
-
* (e.g. `fetch(new Request(url, { method: 'GET' }), { method: 'POST' })`
|
|
6442
|
-
* resolves to `POST`).
|
|
6443
|
-
*/
|
|
6444
|
-
function getFetchMethod([urlOrRequest, options]) {
|
|
6445
|
-
if (options && 'method' in options) {
|
|
6446
|
-
return options.method;
|
|
6447
|
-
}
|
|
6448
|
-
if (typeof urlOrRequest !== 'string' && 'method' in urlOrRequest) {
|
|
6449
|
-
return urlOrRequest.method;
|
|
6450
|
-
}
|
|
6451
|
-
return undefined;
|
|
6452
|
-
}
|
|
6453
|
-
/**
|
|
6454
|
-
* Only GET requests are safe to replay automatically on 429/503 — replaying a
|
|
6455
|
-
* write (POST/PUT/PATCH/DELETE) risks executing a mutation more than once.
|
|
6456
|
-
* Shared by both the Luvio and generic-fetch throttling retry policies so the
|
|
6457
|
-
* write-guard rule lives in exactly one place.
|
|
6458
|
-
*/
|
|
6459
|
-
function isRetryableMethod(method) {
|
|
6460
|
-
return method?.toLowerCase() === 'get';
|
|
6461
|
-
}
|
|
6462
|
-
/**
|
|
6463
|
-
* A request whose operationType is `query` is a read, so it is safe to replay
|
|
6464
|
-
* automatically on 429/503 even when the transport uses a non-GET method (e.g.
|
|
6465
|
-
* a GraphQL/aggregate-ui read issued as a POST). This complements
|
|
6466
|
-
* `isRetryableMethod`: OneStore seeds the command's operationType into the
|
|
6467
|
-
* per-request context, and the throttling policy retries when either the method
|
|
6468
|
-
* is GET or the operationType is `query`. Only `query` is retryable — `mutation`
|
|
6469
|
-
* and an absent/`graphql` operationType are never replayed.
|
|
6470
|
-
*/
|
|
6471
|
-
function isRetryableOperationType(operationType) {
|
|
6472
|
-
return operationType === 'query';
|
|
6473
|
-
}
|
|
6474
|
-
/**
|
|
6475
|
-
* Determines if the HTTP method requires CSRF protection.
|
|
6476
|
-
* Only mutating operations (POST, PUT, PATCH, DELETE) require CSRF tokens.
|
|
6477
|
-
*/
|
|
6478
|
-
function isCsrfMethod(method) {
|
|
6479
|
-
if (!method) {
|
|
6480
|
-
return false;
|
|
6481
|
-
}
|
|
6482
|
-
const normalizedMethod = method.toLowerCase();
|
|
6483
|
-
return (normalizedMethod === 'post' ||
|
|
6484
|
-
normalizedMethod === 'put' ||
|
|
6485
|
-
normalizedMethod === 'patch' ||
|
|
6486
|
-
normalizedMethod === 'delete');
|
|
6487
|
-
}
|
|
6488
|
-
|
|
6489
6438
|
const CSRF_TOKEN_HEADER = 'X-CSRF-Token';
|
|
6490
6439
|
/**
|
|
6491
6440
|
* Resolves the CSRF token manager and returns the current token. Returns
|
|
@@ -6940,13 +6889,22 @@ const DEFAULT_CONFIG$2 = {
|
|
|
6940
6889
|
jitterPercent: 0.5,
|
|
6941
6890
|
};
|
|
6942
6891
|
class LuvioFetchThrottlingRetryPolicy extends RetryPolicy {
|
|
6943
|
-
|
|
6892
|
+
// The request is read-only here: `shouldRetry` only inspects its `method` and
|
|
6893
|
+
// `basePath` to decide replay safety, and neither changes across retries. This
|
|
6894
|
+
// is why we take the plain `ResourceRequest` rather than the mutable-container
|
|
6895
|
+
// pattern the CSRF policy uses — that policy rewrites the request (new token)
|
|
6896
|
+
// between attempts; this one never mutates it.
|
|
6897
|
+
constructor(config = DEFAULT_CONFIG$2, request) {
|
|
6944
6898
|
super();
|
|
6945
6899
|
this.config = config;
|
|
6946
|
-
this.
|
|
6900
|
+
this.request = request;
|
|
6947
6901
|
}
|
|
6948
6902
|
async shouldRetry(result, context) {
|
|
6949
|
-
|
|
6903
|
+
// A request is safe to replay when it's a GET or when its path is a known
|
|
6904
|
+
// read issued over POST (e.g. GraphQL, aggregate-ui, search). Writes stay
|
|
6905
|
+
// non-retryable.
|
|
6906
|
+
return ((isRetryableMethod(this.request?.method) ||
|
|
6907
|
+
isRetryableReadPost(this.request?.basePath)) &&
|
|
6950
6908
|
(result.status === 429 || result.status === 503) &&
|
|
6951
6909
|
context.attempt < this.config.maxRetries &&
|
|
6952
6910
|
context.totalElapsedMs <= this.config.maxTimeToRetry);
|
|
@@ -7010,7 +6968,7 @@ function buildLuvioFetchRetryInterceptor() {
|
|
|
7010
6968
|
return (request, doFetch) => {
|
|
7011
6969
|
const csrfPolicy = new LuvioCsrfTokenRetryPolicy();
|
|
7012
6970
|
const composedPolicy = new ComposedRetryPolicy([
|
|
7013
|
-
new LuvioFetchThrottlingRetryPolicy(undefined, request
|
|
6971
|
+
new LuvioFetchThrottlingRetryPolicy(undefined, request),
|
|
7014
6972
|
csrfPolicy,
|
|
7015
6973
|
]);
|
|
7016
6974
|
const retryService = new RetryService(composedPolicy);
|
|
@@ -7121,189 +7079,6 @@ function buildLuvioActionMarksSendInterceptor() {
|
|
|
7121
7079
|
};
|
|
7122
7080
|
}
|
|
7123
7081
|
|
|
7124
|
-
/**
|
|
7125
|
-
* Public UIAPI url paths verified for HTTP transport.
|
|
7126
|
-
*
|
|
7127
|
-
* Inclusion criteria:
|
|
7128
|
-
* 1. The path's underlying Connect resource does NOT carry
|
|
7129
|
-
* `clientFilters=@ConnectClientFilters({@ConnectClientFilter(key = "UiTier")...})`.
|
|
7130
|
-
* 2. LDS actually invokes this URL via a Luvio adapter wired into
|
|
7131
|
-
* `ldsEngineCreator.js` (i.e. there is a corresponding `*AdapterFactory`
|
|
7132
|
-
* import). Connect resources with no LDS adapter are intentionally
|
|
7133
|
-
* excluded — adding them produces no traffic and just bloats the matcher.
|
|
7134
|
-
*
|
|
7135
|
-
* Where a single Connect resource exposes multiple URL shapes (e.g. a 4-segment
|
|
7136
|
-
* GET form alongside a 3-segment POST form), all forms LDS adapters can hit at
|
|
7137
|
-
* runtime are registered.
|
|
7138
|
-
*/
|
|
7139
|
-
const UIAPI_PUBLIC_PATHS = [
|
|
7140
|
-
// ----- Object Info -----
|
|
7141
|
-
// getObjectInfo — IObjectInfoResource
|
|
7142
|
-
'/ui-api/object-info/{objectApiName}',
|
|
7143
|
-
// getObjectInfos (batch) — IObjectInfoBatchResource
|
|
7144
|
-
'/ui-api/object-info/batch/{objectApiNames}',
|
|
7145
|
-
// getPicklistValues — IPicklistValuesResource
|
|
7146
|
-
'/ui-api/object-info/{objectApiName}/picklist-values/{recordTypeId}/{fieldApiName}',
|
|
7147
|
-
// getPicklistValuesByRecordType — IPicklistValuesByRecordTypeResource
|
|
7148
|
-
'/ui-api/object-info/{objectApiName}/picklist-values/{recordTypeId}',
|
|
7149
|
-
// ----- Records -----
|
|
7150
|
-
// createRecord (POST) — IRecordDataCollectionResource
|
|
7151
|
-
'/ui-api/records',
|
|
7152
|
-
// getRecord / updateRecord (PATCH) / deleteRecord (DELETE) — IRecordDataResource
|
|
7153
|
-
'/ui-api/records/{recordId}',
|
|
7154
|
-
// getRecords (batch GET) — IBatchRecordDataResource
|
|
7155
|
-
'/ui-api/records/batch/{recordIds}',
|
|
7156
|
-
// executeBatchRecordOperations (POST, no recordIds segment) — IBatchRecordResource
|
|
7157
|
-
'/ui-api/records/batch',
|
|
7158
|
-
// getRecordUi — IRecordUiResource
|
|
7159
|
-
'/ui-api/record-ui/{recordIds}',
|
|
7160
|
-
// ----- Layout -----
|
|
7161
|
-
// getLayout — ILayoutResource
|
|
7162
|
-
'/ui-api/layout/{objectApiName}',
|
|
7163
|
-
// getPathLayout — IPathLayoutResource
|
|
7164
|
-
'/ui-api/path/layout/{objectApiName}',
|
|
7165
|
-
// ----- Record Defaults -----
|
|
7166
|
-
// getRecordCreateDefaults — IRecordCreateDefaultsResource
|
|
7167
|
-
'/ui-api/record-defaults/create/{objectApiName}',
|
|
7168
|
-
// getRecordDefaultsTemplateForCreate — IRecordDefaultsTemplateCreateResource
|
|
7169
|
-
'/ui-api/record-defaults/template/create/{objectApiName}',
|
|
7170
|
-
// getRecordDefaultsTemplateClone — IRecordDefaultsTemplateCloneResource
|
|
7171
|
-
'/ui-api/record-defaults/template/clone/{recordId}',
|
|
7172
|
-
// ----- Duplicates -----
|
|
7173
|
-
// getDuplicateConfig — IDuplicateConfigResource
|
|
7174
|
-
'/ui-api/duplicates/{objectApiName}',
|
|
7175
|
-
// findDuplicates (POST) — IPredupeResource
|
|
7176
|
-
'/ui-api/predupe',
|
|
7177
|
-
// ----- GraphQL -----
|
|
7178
|
-
// executeGraphQL (POST) — IGraphQLResource (no /ui-api prefix)
|
|
7179
|
-
'/graphql',
|
|
7180
|
-
// ----- List UI -----
|
|
7181
|
-
// getListUiByName (2-segment form) — IListUiResource212
|
|
7182
|
-
'/ui-api/list-ui/{objectApiName}/{listViewApiName}',
|
|
7183
|
-
// 1-segment form covers both:
|
|
7184
|
-
// /ui-api/list-ui/{listViewId} — IListUiResource
|
|
7185
|
-
// /ui-api/list-ui/{objectApiName} — IListCollectionResource
|
|
7186
|
-
'/ui-api/list-ui/{objectApiNameOrListViewId}',
|
|
7187
|
-
// getListInfoByName (GET) / updateListInfoByApiName (PATCH) / deleteListInfo (DELETE) — IListInfoResource
|
|
7188
|
-
// (Also covers /ui-api/list-info/{listViewId} via shape collision.)
|
|
7189
|
-
'/ui-api/list-info/{objectApiName}/{listViewApiName}',
|
|
7190
|
-
// getListInfosByObjectName (GET) / createListInfo (POST) — IListInfoCreationAndCollectionResource
|
|
7191
|
-
// (Also covers /ui-api/list-info/batch — IListInfoBatchResource — via shape collision.)
|
|
7192
|
-
'/ui-api/list-info/{objectApiName}',
|
|
7193
|
-
// getListObjectInfo — IListObjectInfoResource
|
|
7194
|
-
'/ui-api/list-object-info/{objectApiName}',
|
|
7195
|
-
// postListRecordsByName (POST) — IListRecordsResource
|
|
7196
|
-
'/ui-api/list-records/{objectApiName}/{listViewApiName}',
|
|
7197
|
-
// getListPreferences (GET) / updateListPreferences (PATCH) — IListPreferencesResource
|
|
7198
|
-
'/ui-api/list-preferences/{objectApiName}/{listViewApiName}',
|
|
7199
|
-
// ----- Related List UI -----
|
|
7200
|
-
// getRelatedListInfo (GET) / updateRelatedListInfo (PATCH) — IRelatedListInfoResource
|
|
7201
|
-
// (Also covers /ui-api/related-list-info/{parentRecordId}/{relatedListId} via shape collision.)
|
|
7202
|
-
'/ui-api/related-list-info/{parentObjectApiName}/{relatedListId}',
|
|
7203
|
-
// getRelatedListInfoBatch — IRelatedListInfoBatchResource
|
|
7204
|
-
'/ui-api/related-list-info/batch/{parentObjectApiName}/{relatedListNames}',
|
|
7205
|
-
// getRelatedListsInfo (collection) — IRelatedListInfoCollectionResource
|
|
7206
|
-
'/ui-api/related-list-info/{parentObjectApiName}',
|
|
7207
|
-
// postRelatedListRecords (POST) — IRelatedListRecordsResource
|
|
7208
|
-
'/ui-api/related-list-records/{parentRecordId}/{relatedListId}',
|
|
7209
|
-
// postRelatedListRecordsBatch (POST, 3-segment form) — IRelatedListRecordsBatchResource
|
|
7210
|
-
'/ui-api/related-list-records/batch/{parentRecordId}',
|
|
7211
|
-
// getRelatedListRecordsBatch (GET, 4-segment form) — IRelatedListRecordsBatchResource [newly added]
|
|
7212
|
-
'/ui-api/related-list-records/batch/{parentRecordId}/{relatedListIds}',
|
|
7213
|
-
// getRelatedListCount — IRelatedListRecordCountResource
|
|
7214
|
-
'/ui-api/related-list-count/{parentRecordId}/{relatedListId}',
|
|
7215
|
-
// getRelatedListsCount (batch) — IRelatedListRecordCountBatchResource
|
|
7216
|
-
'/ui-api/related-list-count/batch/{parentRecordId}/{relatedListNames}',
|
|
7217
|
-
// getRelatedListPreferences (GET) / updateRelatedListPreferences (PATCH) — IRelatedListPreferencesResource
|
|
7218
|
-
'/ui-api/related-list-preferences/{preferencesId}',
|
|
7219
|
-
// getRelatedListPreferencesBatch — IRelatedListPreferencesBatchResource
|
|
7220
|
-
'/ui-api/related-list-preferences/batch/{preferencesIds}',
|
|
7221
|
-
// ----- Actions -----
|
|
7222
|
-
// getGlobalActions — IActionGlobalResource
|
|
7223
|
-
'/ui-api/actions/global',
|
|
7224
|
-
// getActionLayout — IActionLayoutResource
|
|
7225
|
-
'/ui-api/actions/layout/{actionApiName}',
|
|
7226
|
-
// getLookupActions — IActionLookupResource
|
|
7227
|
-
'/ui-api/actions/lookup/{objectApiNames}',
|
|
7228
|
-
// getObjectCreateActions — IActionObjectResource
|
|
7229
|
-
'/ui-api/actions/object/{objectApiName}/record-create',
|
|
7230
|
-
// getActionOverrides — IActionOverrideResource
|
|
7231
|
-
'/ui-api/actions/overrides/{objectApiName}',
|
|
7232
|
-
// performQuickAction (POST) / performUpdateRecordQuickAction (PATCH) — IActionPerformQuickActionResource
|
|
7233
|
-
'/ui-api/actions/perform-quick-action/{actionApiName}',
|
|
7234
|
-
// getQuickActionInfo — IActionQuickActionInfoResource
|
|
7235
|
-
'/ui-api/actions/quick-action-info/{actionApiName}',
|
|
7236
|
-
// getRecordActions — IActionRecordResource
|
|
7237
|
-
'/ui-api/actions/record/{recordIds}',
|
|
7238
|
-
// getRecordEditActions — IActionRecordEditResource
|
|
7239
|
-
'/ui-api/actions/record/{recordIds}/record-edit',
|
|
7240
|
-
// getAllRelatedListActionsForRecord (4-segment form) — IActionRelatedListResource [newly added]
|
|
7241
|
-
'/ui-api/actions/record/{recordIds}/related-list',
|
|
7242
|
-
// postRelatedListActions (POST) — IActionRelatedListResource
|
|
7243
|
-
'/ui-api/actions/record/{recordIds}/related-list/{relatedListId}',
|
|
7244
|
-
// postRelatedListsActions (POST) / getRelatedListsActions (GET, 5-segment form) — IActionRelatedListBatchResource
|
|
7245
|
-
'/ui-api/actions/record/{recordIds}/related-list/batch',
|
|
7246
|
-
// getRelatedListsActions (GET, 6-segment form) — IActionRelatedListBatchResource [newly added]
|
|
7247
|
-
'/ui-api/actions/record/{recordIds}/related-list/batch/{relatedListIds}',
|
|
7248
|
-
// getRelatedListRecordActions — IActionRelatedListRecordResource
|
|
7249
|
-
'/ui-api/actions/record/{recordIds}/related-list-record/{relatedListRecordIds}',
|
|
7250
|
-
// getQuickActionDefaults — IActionQuickActionDefaultsResource
|
|
7251
|
-
'/ui-api/actions/record-defaults/{actionApiName}',
|
|
7252
|
-
// getFlexipageFormulaOverrides — IActionFlexipageFormulaActivationResource
|
|
7253
|
-
'/ui-api/actions/formula-activation/{actionFeature}',
|
|
7254
|
-
// ----- Lookup / Search -----
|
|
7255
|
-
// lookup (POST) — ILookupEntityResource
|
|
7256
|
-
'/ui-api/lookups/{objectApiName}/{keyPrefix}/{targetApiName}',
|
|
7257
|
-
// searchResults (POST) — ISearchResultsResource
|
|
7258
|
-
'/ui-api/search/results',
|
|
7259
|
-
// searchKeywordResults (POST) — IKeywordSearchResultsResource
|
|
7260
|
-
'/ui-api/search/results/keyword',
|
|
7261
|
-
// getSearchFilterMetadata — ISearchInfoFilterMetadataCollectionResource
|
|
7262
|
-
'/ui-api/search-info/{objectApiName}/filters',
|
|
7263
|
-
// getSearchFilterOptions — ISearchInfoFilterOptionsResource
|
|
7264
|
-
'/ui-api/search-info/{objectApiName}/filters/{filterApiName}/options',
|
|
7265
|
-
// getLookupMetadata — ILookupMetadataResource
|
|
7266
|
-
'/ui-api/search-info/{objectApiName}/lookup/{fieldApiName}',
|
|
7267
|
-
// ----- MRU Lists -----
|
|
7268
|
-
// getMruListUi — IMruListUiResource
|
|
7269
|
-
'/ui-api/mru-list-ui/{objectApiName}',
|
|
7270
|
-
// getMruListRecords — IMruListRecordsResource
|
|
7271
|
-
'/ui-api/mru-list-records/{objectApiName}',
|
|
7272
|
-
// ----- Apps / Nav -----
|
|
7273
|
-
// getNavItems — INavItemsResource
|
|
7274
|
-
'/ui-api/nav-items',
|
|
7275
|
-
// getAllApps — IAppsResource
|
|
7276
|
-
'/ui-api/apps',
|
|
7277
|
-
// getAppDetails — IAppResource
|
|
7278
|
-
'/ui-api/apps/{appId}',
|
|
7279
|
-
];
|
|
7280
|
-
/**
|
|
7281
|
-
* Private UIAPI url paths gated by the private-endpoint gates per runtime.
|
|
7282
|
-
*
|
|
7283
|
-
* Inclusion criteria:
|
|
7284
|
-
* 1. The path's underlying Connect resource carries
|
|
7285
|
-
* `clientFilters=@ConnectClientFilters({@ConnectClientFilter(key = "UiTier")...})`,
|
|
7286
|
-
* which restricts callers to the UI tier (one.app / UISDK runtime) and
|
|
7287
|
-
* excludes the public REST API.
|
|
7288
|
-
* 2. LDS actually invokes this URL via a Luvio adapter wired into
|
|
7289
|
-
* `ldsEngineCreator.js`.
|
|
7290
|
-
*/
|
|
7291
|
-
const UIAPI_PRIVATE_PATHS = [
|
|
7292
|
-
// ----- Record Avatars -----
|
|
7293
|
-
// getRecordAvatars (batch) — IRecordAvatarsBatchResource
|
|
7294
|
-
'/ui-api/record-avatars/batch/{recordIds}',
|
|
7295
|
-
// updateRecordAvatar (POST) — IRecordAvatarsAssociationResource
|
|
7296
|
-
'/ui-api/record-avatars/{recordId}/association',
|
|
7297
|
-
// ----- Layout -----
|
|
7298
|
-
// getLayoutUserState (GET) / updateLayoutUserState (PATCH) — ILayoutUserStateResource
|
|
7299
|
-
'/ui-api/layout/{objectApiName}/user-state',
|
|
7300
|
-
// ----- GraphQL -----
|
|
7301
|
-
// executeGraphQLBatch (POST) — IGraphQLBatchResource (no /ui-api prefix)
|
|
7302
|
-
'/graphql/batch',
|
|
7303
|
-
// ----- Aggregate UI -----
|
|
7304
|
-
// executeAggregateUi (POST) — IAggregateUiResource
|
|
7305
|
-
'/ui-api/aggregate-ui',
|
|
7306
|
-
];
|
|
7307
7082
|
/**
|
|
7308
7083
|
* Single content documents version URL enabled/disabled by killswitch.
|
|
7309
7084
|
* Exported for reuse in tests.
|
|
@@ -7362,14 +7137,8 @@ function getEnabledPaths() {
|
|
|
7362
7137
|
}
|
|
7363
7138
|
return Array.from(enabled);
|
|
7364
7139
|
}
|
|
7365
|
-
function buildMatchers(paths) {
|
|
7366
|
-
return paths.map((path) => {
|
|
7367
|
-
const regexString = path.replace(/\{.+?\}/g, '[^/]+');
|
|
7368
|
-
return new RegExp(`^${regexString}$`);
|
|
7369
|
-
});
|
|
7370
|
-
}
|
|
7371
7140
|
// Precompute enabled path matchers at module load to avoid per-request rebuild
|
|
7372
|
-
const ENABLED_PATH_MATCHERS =
|
|
7141
|
+
const ENABLED_PATH_MATCHERS = compilePathMatchers(getEnabledPaths());
|
|
7373
7142
|
/**
|
|
7374
7143
|
* Indicates whether any predicate-enabled path sets are active.
|
|
7375
7144
|
* Used by adapter composition to decide whether to include the fetch adapter.
|
|
@@ -11610,4 +11379,4 @@ function ldsEngineCreator() {
|
|
|
11610
11379
|
}
|
|
11611
11380
|
|
|
11612
11381
|
export { LexRequestStrategy, PDL_ENGINE_REGISTRATION_ID, PdlPrefetcherEventType, PdlRequestPriority, buildPredictorForContext, configService, ldsEngineCreator as default, initializeLDS, initializeOneStore, notifyUpdateAvailableFactory, registerRequestStrategy, saveRequestAsPrediction, subscribeToPrefetcherEvents, unregisterRequestStrategy, whenPredictionsReady };
|
|
11613
|
-
// version: 1.
|
|
11382
|
+
// version: 1.458.0-5aef0572f2
|
|
@@ -1,34 +1,8 @@
|
|
|
1
1
|
import { type ResourceRequest } from '@luvio/engine';
|
|
2
|
+
import { UIAPI_PUBLIC_PATHS, UIAPI_PRIVATE_PATHS } from '@salesforce/lds-network-fetch';
|
|
2
3
|
import type { RequestLogger } from '@salesforce/lds-network-fetch';
|
|
3
4
|
import type { RequestTracker } from './instrumentation-utils';
|
|
4
|
-
|
|
5
|
-
* Public UIAPI url paths verified for HTTP transport.
|
|
6
|
-
*
|
|
7
|
-
* Inclusion criteria:
|
|
8
|
-
* 1. The path's underlying Connect resource does NOT carry
|
|
9
|
-
* `clientFilters=@ConnectClientFilters({@ConnectClientFilter(key = "UiTier")...})`.
|
|
10
|
-
* 2. LDS actually invokes this URL via a Luvio adapter wired into
|
|
11
|
-
* `ldsEngineCreator.js` (i.e. there is a corresponding `*AdapterFactory`
|
|
12
|
-
* import). Connect resources with no LDS adapter are intentionally
|
|
13
|
-
* excluded — adding them produces no traffic and just bloats the matcher.
|
|
14
|
-
*
|
|
15
|
-
* Where a single Connect resource exposes multiple URL shapes (e.g. a 4-segment
|
|
16
|
-
* GET form alongside a 3-segment POST form), all forms LDS adapters can hit at
|
|
17
|
-
* runtime are registered.
|
|
18
|
-
*/
|
|
19
|
-
export declare const UIAPI_PUBLIC_PATHS: string[];
|
|
20
|
-
/**
|
|
21
|
-
* Private UIAPI url paths gated by the private-endpoint gates per runtime.
|
|
22
|
-
*
|
|
23
|
-
* Inclusion criteria:
|
|
24
|
-
* 1. The path's underlying Connect resource carries
|
|
25
|
-
* `clientFilters=@ConnectClientFilters({@ConnectClientFilter(key = "UiTier")...})`,
|
|
26
|
-
* which restricts callers to the UI tier (one.app / UISDK runtime) and
|
|
27
|
-
* excludes the public REST API.
|
|
28
|
-
* 2. LDS actually invokes this URL via a Luvio adapter wired into
|
|
29
|
-
* `ldsEngineCreator.js`.
|
|
30
|
-
*/
|
|
31
|
-
export declare const UIAPI_PRIVATE_PATHS: string[];
|
|
5
|
+
export { UIAPI_PUBLIC_PATHS, UIAPI_PRIVATE_PATHS };
|
|
32
6
|
/**
|
|
33
7
|
* Single content documents version URL enabled/disabled by killswitch.
|
|
34
8
|
* Exported for reuse in tests.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RetryPolicy, type RetryContext } from '@conduit-client/service-retry/v1';
|
|
2
|
-
import type { FetchResponse } from '@luvio/engine';
|
|
2
|
+
import type { FetchResponse, ResourceRequest } from '@luvio/engine';
|
|
3
3
|
type LuvioFetchThrottlingRetryPolicyConfig = {
|
|
4
4
|
maxRetries: number;
|
|
5
5
|
maxTimeToRetry: number;
|
|
@@ -10,8 +10,8 @@ type LuvioFetchThrottlingRetryPolicyConfig = {
|
|
|
10
10
|
};
|
|
11
11
|
export declare class LuvioFetchThrottlingRetryPolicy extends RetryPolicy<FetchResponse<any>> {
|
|
12
12
|
private config;
|
|
13
|
-
private
|
|
14
|
-
constructor(config?: LuvioFetchThrottlingRetryPolicyConfig,
|
|
13
|
+
private request?;
|
|
14
|
+
constructor(config?: LuvioFetchThrottlingRetryPolicyConfig, request?: ResourceRequest | undefined);
|
|
15
15
|
shouldRetry(result: FetchResponse<any>, context: RetryContext<FetchResponse<any>>): Promise<boolean>;
|
|
16
16
|
calculateDelay(result: FetchResponse<any>, context: RetryContext<FetchResponse<any>>): Promise<number>;
|
|
17
17
|
parseRetryAfterHeader(result: FetchResponse<any>): number | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-runtime-one-app",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.458.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "LDS engine for the one.app (LEX) runtime.",
|
|
6
6
|
"main": "dist/oneAppLdsEngineCreator.js",
|
|
@@ -34,61 +34,61 @@
|
|
|
34
34
|
"release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-runtime-one-app"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@conduit-client/service-provisioner": "3.27.
|
|
38
|
-
"@conduit-client/tools-core": "3.27.
|
|
39
|
-
"@salesforce/lds-adapters-apex": "^1.
|
|
40
|
-
"@salesforce/lds-adapters-uiapi": "^1.
|
|
41
|
-
"@salesforce/lds-ads-bridge": "^1.
|
|
42
|
-
"@salesforce/lds-aura-storage": "^1.
|
|
43
|
-
"@salesforce/lds-bindings": "^1.
|
|
44
|
-
"@salesforce/lds-instrumentation": "^1.
|
|
45
|
-
"@salesforce/lds-network-adapter": "^1.
|
|
46
|
-
"@salesforce/lds-network-aura": "^1.
|
|
47
|
-
"@salesforce/lds-network-fetch": "^1.
|
|
37
|
+
"@conduit-client/service-provisioner": "3.27.1",
|
|
38
|
+
"@conduit-client/tools-core": "3.27.1",
|
|
39
|
+
"@salesforce/lds-adapters-apex": "^1.458.0",
|
|
40
|
+
"@salesforce/lds-adapters-uiapi": "^1.458.0",
|
|
41
|
+
"@salesforce/lds-ads-bridge": "^1.458.0",
|
|
42
|
+
"@salesforce/lds-aura-storage": "^1.458.0",
|
|
43
|
+
"@salesforce/lds-bindings": "^1.458.0",
|
|
44
|
+
"@salesforce/lds-instrumentation": "^1.458.0",
|
|
45
|
+
"@salesforce/lds-network-adapter": "^1.458.0",
|
|
46
|
+
"@salesforce/lds-network-aura": "^1.458.0",
|
|
47
|
+
"@salesforce/lds-network-fetch": "^1.458.0",
|
|
48
48
|
"jwt-encode": "1.0.1"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@conduit-client/command-aura-graphql-normalized-cache-control": "3.27.
|
|
52
|
-
"@conduit-client/command-aura-network": "3.27.
|
|
53
|
-
"@conduit-client/command-aura-normalized-cache-control": "3.27.
|
|
54
|
-
"@conduit-client/command-fetch-network": "3.27.
|
|
55
|
-
"@conduit-client/command-http-graphql-normalized-cache-control": "3.27.
|
|
56
|
-
"@conduit-client/command-http-normalized-cache-control": "3.27.
|
|
57
|
-
"@conduit-client/command-ndjson": "3.27.
|
|
58
|
-
"@conduit-client/command-network": "3.27.
|
|
59
|
-
"@conduit-client/command-sse": "3.27.
|
|
60
|
-
"@conduit-client/command-streaming": "3.27.
|
|
61
|
-
"@conduit-client/jwt-manager": "3.27.
|
|
62
|
-
"@conduit-client/service-aura-network": "3.27.
|
|
63
|
-
"@conduit-client/service-bindings-imperative": "3.27.
|
|
64
|
-
"@conduit-client/service-bindings-lwc": "3.27.
|
|
65
|
-
"@conduit-client/service-cache": "3.27.
|
|
66
|
-
"@conduit-client/service-cache-control": "3.27.
|
|
67
|
-
"@conduit-client/service-cache-inclusion-policy": "3.27.
|
|
68
|
-
"@conduit-client/service-config": "3.27.
|
|
69
|
-
"@conduit-client/service-feature-flags": "3.27.
|
|
70
|
-
"@conduit-client/service-fetch-network": "3.27.
|
|
71
|
-
"@conduit-client/service-instrument-command": "3.27.
|
|
72
|
-
"@conduit-client/service-pubsub": "3.27.
|
|
73
|
-
"@conduit-client/service-renewable-resource-manager": "3.27.
|
|
74
|
-
"@conduit-client/service-store": "3.27.
|
|
75
|
-
"@conduit-client/utils": "3.27.
|
|
51
|
+
"@conduit-client/command-aura-graphql-normalized-cache-control": "3.27.1",
|
|
52
|
+
"@conduit-client/command-aura-network": "3.27.1",
|
|
53
|
+
"@conduit-client/command-aura-normalized-cache-control": "3.27.1",
|
|
54
|
+
"@conduit-client/command-fetch-network": "3.27.1",
|
|
55
|
+
"@conduit-client/command-http-graphql-normalized-cache-control": "3.27.1",
|
|
56
|
+
"@conduit-client/command-http-normalized-cache-control": "3.27.1",
|
|
57
|
+
"@conduit-client/command-ndjson": "3.27.1",
|
|
58
|
+
"@conduit-client/command-network": "3.27.1",
|
|
59
|
+
"@conduit-client/command-sse": "3.27.1",
|
|
60
|
+
"@conduit-client/command-streaming": "3.27.1",
|
|
61
|
+
"@conduit-client/jwt-manager": "3.27.1",
|
|
62
|
+
"@conduit-client/service-aura-network": "3.27.1",
|
|
63
|
+
"@conduit-client/service-bindings-imperative": "3.27.1",
|
|
64
|
+
"@conduit-client/service-bindings-lwc": "3.27.1",
|
|
65
|
+
"@conduit-client/service-cache": "3.27.1",
|
|
66
|
+
"@conduit-client/service-cache-control": "3.27.1",
|
|
67
|
+
"@conduit-client/service-cache-inclusion-policy": "3.27.1",
|
|
68
|
+
"@conduit-client/service-config": "3.27.1",
|
|
69
|
+
"@conduit-client/service-feature-flags": "3.27.1",
|
|
70
|
+
"@conduit-client/service-fetch-network": "3.27.1",
|
|
71
|
+
"@conduit-client/service-instrument-command": "3.27.1",
|
|
72
|
+
"@conduit-client/service-pubsub": "3.27.1",
|
|
73
|
+
"@conduit-client/service-renewable-resource-manager": "3.27.1",
|
|
74
|
+
"@conduit-client/service-store": "3.27.1",
|
|
75
|
+
"@conduit-client/utils": "3.27.1",
|
|
76
76
|
"@luvio/network-adapter-composable": "0.161.2",
|
|
77
77
|
"@luvio/network-adapter-fetch": "0.161.2",
|
|
78
78
|
"@lwc/state": "^0.29.0",
|
|
79
|
-
"@salesforce/lds-adapters-onestore-graphql": "^1.
|
|
79
|
+
"@salesforce/lds-adapters-onestore-graphql": "^1.458.0",
|
|
80
80
|
"@salesforce/lds-adapters-uiapi-lex": "^1.415.0",
|
|
81
|
-
"@salesforce/lds-durable-storage": "^1.
|
|
82
|
-
"@salesforce/lds-luvio-service": "^1.
|
|
83
|
-
"@salesforce/lds-luvio-uiapi-records-service": "^1.
|
|
81
|
+
"@salesforce/lds-durable-storage": "^1.458.0",
|
|
82
|
+
"@salesforce/lds-luvio-service": "^1.458.0",
|
|
83
|
+
"@salesforce/lds-luvio-uiapi-records-service": "^1.458.0"
|
|
84
84
|
},
|
|
85
85
|
"luvioBundlesize": [
|
|
86
86
|
{
|
|
87
87
|
"path": "./dist/oneAppLdsEngineCreator.js",
|
|
88
88
|
"maxSize": {
|
|
89
|
-
"none": "
|
|
89
|
+
"none": "425 kB",
|
|
90
90
|
"min": "190 kB",
|
|
91
|
-
"compressed": "
|
|
91
|
+
"compressed": "76 kB"
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
],
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/// <reference types="jest" />
|
|
2
|
-
export declare const createStorage: jest.Mock<any, any, any>;
|
|
3
|
-
export declare const clearStorages: jest.Mock<any, any, any>;
|
|
4
|
-
export declare const setDurableStorageImplementation: jest.Mock<any, any, any>;
|
|
5
|
-
export declare const getDurableStorageImplementation: jest.Mock<any, any, any>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export declare function setupInstrumentation(): void;
|
|
2
|
-
export declare function LRUCache(): Map<any, any>;
|
|
3
|
-
export declare function incrementCounterMetric(): void;
|
|
4
|
-
export declare function updatePercentileHistogramMetric(): void;
|
|
5
|
-
export declare function instrumentAdapter<_C, _D>(adapter: any, _metadata: any): any;
|
|
6
|
-
export declare function instrumentLuvio(): void;
|
|
7
|
-
export declare function instrumentStoreMethods(): void;
|
|
8
|
-
export declare function setLdsAdaptersUiapiInstrumentation(): void;
|
|
9
|
-
export declare function setLdsNetworkAdapterInstrumentation(): void;
|
|
10
|
-
export declare function logObjectInfoChanged(): void;
|
|
11
|
-
export declare function executeAsyncActivity(_name: string, execute: (act: any) => Promise<void>, _options?: any): Promise<void>;
|
|
12
|
-
export declare const METRIC_KEYS: {
|
|
13
|
-
PREDICTIVE_DATA_LOADING_PREDICT: string;
|
|
14
|
-
PREDICTIVE_DATA_LOADING_SAVE_REQUEST: string;
|
|
15
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export declare function counter(): {
|
|
2
|
-
increment(): void;
|
|
3
|
-
decrement(): void;
|
|
4
|
-
getValue(): void;
|
|
5
|
-
reset(): void;
|
|
6
|
-
};
|
|
7
|
-
export declare function gauge(): {
|
|
8
|
-
setValue(): void;
|
|
9
|
-
getValue(): void;
|
|
10
|
-
reset(): void;
|
|
11
|
-
};
|
|
12
|
-
export declare function mark(): {};
|
|
13
|
-
export declare function markStart(): {};
|
|
14
|
-
export declare function markEnd(): {};
|
|
15
|
-
export declare function perfStart(): void;
|
|
16
|
-
export declare function perfEnd(): void;
|
|
17
|
-
export declare function percentileHistogram(): {
|
|
18
|
-
update(): void;
|
|
19
|
-
getValue(): void;
|
|
20
|
-
reset(): void;
|
|
21
|
-
};
|
|
22
|
-
export declare function time(): void;
|
|
23
|
-
export declare function timer(): {
|
|
24
|
-
addDuration(): void;
|
|
25
|
-
getValue(): void;
|
|
26
|
-
time(): void;
|
|
27
|
-
};
|
|
28
|
-
export declare function registerCacheStats(): {
|
|
29
|
-
logHits(): void;
|
|
30
|
-
logMisses(): void;
|
|
31
|
-
};
|
|
32
|
-
export declare function registerPlugin(): void;
|
|
33
|
-
export declare function registerPeriodicLogger(): void;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
/// <reference types="jest" />
|
|
2
|
-
export declare const setTrustedSignalSet: jest.Mock<any, any, any>;
|
|
3
|
-
export declare const setTrustedContextSet: jest.Mock<any, any, any>;
|
|
4
|
-
export declare const setContextKeys: jest.Mock<any, any, any>;
|
|
5
|
-
export declare const __dangerous_do_not_use_addTrustedContext: jest.Mock<any, any, any>;
|
|
6
|
-
export declare const isTrustedSignal: jest.Mock<any, any, any>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
declare function stop(_userSchemaOrText?: any | string, _userData?: any): void;
|
|
2
|
-
declare function error(_error: Error, _userSchemaOrText?: any | string, _userData?: any): void;
|
|
3
|
-
declare function discard(): void;
|
|
4
|
-
declare function terminate(): void;
|
|
5
|
-
export declare const activity: {
|
|
6
|
-
stop: typeof stop;
|
|
7
|
-
error: typeof error;
|
|
8
|
-
discard: typeof discard;
|
|
9
|
-
terminate: typeof terminate;
|
|
10
|
-
getId: () => string;
|
|
11
|
-
};
|
|
12
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export { activity } from './activity';
|
|
2
|
-
export { instrumentation } from './instrumentation';
|
|
3
|
-
export { idleDetector } from './idleDetector';
|
|
4
|
-
export declare function getInstrumentation(_name: string): {
|
|
5
|
-
log: (_schema: any, _data?: any) => void;
|
|
6
|
-
error: (_error: unknown, _userSchemaOrText?: any, _userData?: any) => void;
|
|
7
|
-
startActivity: (_name: string) => any;
|
|
8
|
-
incrementCounter: (_operation: string, _increment?: number | undefined, _hasError?: boolean | undefined, _tags?: any) => void;
|
|
9
|
-
trackValue: (_operation: string, _value: number, _hasError?: boolean | undefined, _tags?: any) => void;
|
|
10
|
-
bucketValue: (_operation: string, _value: number, _buckets: number[]) => void;
|
|
11
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
declare function requestIdleDetectedCallback(_callback: any): void;
|
|
2
|
-
declare function declareNotifierTaskSingle(_name: string): {
|
|
3
|
-
isBusy: boolean;
|
|
4
|
-
done: () => void;
|
|
5
|
-
};
|
|
6
|
-
declare function declareNotifierTaskMulti(_name: string, _existingBusyCount?: number): {
|
|
7
|
-
isBusy: boolean;
|
|
8
|
-
add: () => void;
|
|
9
|
-
done: () => void;
|
|
10
|
-
};
|
|
11
|
-
declare function declarePollableTaskMulti(_name: string, _isBusyChecker: any): void;
|
|
12
|
-
export declare const idleDetector: {
|
|
13
|
-
requestIdleDetectedCallback: typeof requestIdleDetectedCallback;
|
|
14
|
-
declareNotifierTaskSingle: typeof declareNotifierTaskSingle;
|
|
15
|
-
declareNotifierTaskMulti: typeof declareNotifierTaskMulti;
|
|
16
|
-
declarePollableTaskMulti: typeof declarePollableTaskMulti;
|
|
17
|
-
};
|
|
18
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
declare function log(_schema: any, _data?: any): void;
|
|
2
|
-
declare function error(_error: unknown, _userSchemaOrText?: any | string, _userData?: any): void;
|
|
3
|
-
declare function startActivity(_name: string): any;
|
|
4
|
-
declare function incrementCounter(_operation: string, _increment?: number, _hasError?: boolean, _tags?: any): void;
|
|
5
|
-
declare function trackValue(_operation: string, _value: number, _hasError?: boolean, _tags?: any): void;
|
|
6
|
-
declare function bucketValue(_operation: string, _value: number, _buckets: number[]): void;
|
|
7
|
-
export declare const instrumentation: {
|
|
8
|
-
log: typeof log;
|
|
9
|
-
error: typeof error;
|
|
10
|
-
startActivity: typeof startActivity;
|
|
11
|
-
incrementCounter: typeof incrementCounter;
|
|
12
|
-
trackValue: typeof trackValue;
|
|
13
|
-
bucketValue: typeof bucketValue;
|
|
14
|
-
};
|
|
15
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const adapterUnfulfilledErrorSchema: {};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { FetchParameters } from '@conduit-client/service-fetch-network/v1';
|
|
2
|
-
/**
|
|
3
|
-
* Extracts the HTTP method from FetchParameters, matching the Fetch API's own
|
|
4
|
-
* precedence: an options.method override wins over a Request object's method
|
|
5
|
-
* (e.g. `fetch(new Request(url, { method: 'GET' }), { method: 'POST' })`
|
|
6
|
-
* resolves to `POST`).
|
|
7
|
-
*/
|
|
8
|
-
export declare function getFetchMethod([urlOrRequest, options]: FetchParameters): string | undefined;
|
|
9
|
-
/**
|
|
10
|
-
* Only GET requests are safe to replay automatically on 429/503 — replaying a
|
|
11
|
-
* write (POST/PUT/PATCH/DELETE) risks executing a mutation more than once.
|
|
12
|
-
* Shared by both the Luvio and generic-fetch throttling retry policies so the
|
|
13
|
-
* write-guard rule lives in exactly one place.
|
|
14
|
-
*/
|
|
15
|
-
export declare function isRetryableMethod(method: string | undefined): boolean;
|
|
16
|
-
/**
|
|
17
|
-
* A request whose operationType is `query` is a read, so it is safe to replay
|
|
18
|
-
* automatically on 429/503 even when the transport uses a non-GET method (e.g.
|
|
19
|
-
* a GraphQL/aggregate-ui read issued as a POST). This complements
|
|
20
|
-
* `isRetryableMethod`: OneStore seeds the command's operationType into the
|
|
21
|
-
* per-request context, and the throttling policy retries when either the method
|
|
22
|
-
* is GET or the operationType is `query`. Only `query` is retryable — `mutation`
|
|
23
|
-
* and an absent/`graphql` operationType are never replayed.
|
|
24
|
-
*/
|
|
25
|
-
export declare function isRetryableOperationType(operationType: string | undefined): boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Determines if the HTTP method requires CSRF protection.
|
|
28
|
-
* Only mutating operations (POST, PUT, PATCH, DELETE) require CSRF tokens.
|
|
29
|
-
*/
|
|
30
|
-
export declare function isCsrfMethod(method: string | undefined): boolean;
|