@salesforce/lds-worker-api 1.275.0 → 1.276.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/sfdc/es/ldsWorkerApi.js +1 -1
- package/dist/standalone/es/lds-worker-api.js +734 -608
- package/dist/standalone/umd/lds-worker-api.js +734 -608
- package/package.json +10 -10
|
@@ -4028,7 +4028,7 @@ function createResourceParamsImpl(config, configMetadata) {
|
|
|
4028
4028
|
}
|
|
4029
4029
|
return resourceParams;
|
|
4030
4030
|
}
|
|
4031
|
-
// engine version: 0.154.
|
|
4031
|
+
// engine version: 0.154.12-43ac02c6
|
|
4032
4032
|
|
|
4033
4033
|
/**
|
|
4034
4034
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -4156,7 +4156,7 @@ function withDefaultLuvio(callback) {
|
|
|
4156
4156
|
}
|
|
4157
4157
|
callbacks.push(callback);
|
|
4158
4158
|
}
|
|
4159
|
-
// version: 1.
|
|
4159
|
+
// version: 1.276.0-dcebc4076
|
|
4160
4160
|
|
|
4161
4161
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4162
4162
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15664,7 +15664,7 @@ function gql(literals, ...subs) {
|
|
|
15664
15664
|
}
|
|
15665
15665
|
return superResult;
|
|
15666
15666
|
}
|
|
15667
|
-
// version: 1.
|
|
15667
|
+
// version: 1.276.0-dcebc4076
|
|
15668
15668
|
|
|
15669
15669
|
function unwrap(data) {
|
|
15670
15670
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16589,7 +16589,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
|
|
|
16589
16589
|
const { apiFamily, name } = metadata;
|
|
16590
16590
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16591
16591
|
}
|
|
16592
|
-
// version: 1.
|
|
16592
|
+
// version: 1.276.0-dcebc4076
|
|
16593
16593
|
|
|
16594
16594
|
/**
|
|
16595
16595
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -16688,7 +16688,7 @@ var TypeCheckShapes;
|
|
|
16688
16688
|
TypeCheckShapes[TypeCheckShapes["Integer"] = 3] = "Integer";
|
|
16689
16689
|
TypeCheckShapes[TypeCheckShapes["Unsupported"] = 4] = "Unsupported";
|
|
16690
16690
|
})(TypeCheckShapes || (TypeCheckShapes = {}));
|
|
16691
|
-
// engine version: 0.154.
|
|
16691
|
+
// engine version: 0.154.12-43ac02c6
|
|
16692
16692
|
|
|
16693
16693
|
const { keys: ObjectKeys$3, create: ObjectCreate$3 } = Object;
|
|
16694
16694
|
|
|
@@ -22253,6 +22253,461 @@ function createResourceRequest$15(config) {
|
|
|
22253
22253
|
};
|
|
22254
22254
|
}
|
|
22255
22255
|
|
|
22256
|
+
const VERSION$16$1 = "0b29241fd9ed04bb61fde26b3f558ac4";
|
|
22257
|
+
const RepresentationType$R = 'ListInfoSummaryRepresentation';
|
|
22258
|
+
function keyBuilder$1$(luvio, config) {
|
|
22259
|
+
return keyPrefix$2 + '::' + RepresentationType$R + ':' + (config.id === null ? '' : config.id);
|
|
22260
|
+
}
|
|
22261
|
+
function keyBuilderFromType$z(luvio, object) {
|
|
22262
|
+
const keyParams = {
|
|
22263
|
+
id: object.id
|
|
22264
|
+
};
|
|
22265
|
+
return keyBuilder$1$(luvio, keyParams);
|
|
22266
|
+
}
|
|
22267
|
+
function normalize$K(input, existing, path, luvio, store, timestamp) {
|
|
22268
|
+
return input;
|
|
22269
|
+
}
|
|
22270
|
+
const select$1L = function ListInfoSummaryRepresentationSelect() {
|
|
22271
|
+
return {
|
|
22272
|
+
kind: 'Fragment',
|
|
22273
|
+
version: VERSION$16$1,
|
|
22274
|
+
private: [],
|
|
22275
|
+
selections: [
|
|
22276
|
+
{
|
|
22277
|
+
name: 'apiName',
|
|
22278
|
+
kind: 'Scalar'
|
|
22279
|
+
},
|
|
22280
|
+
{
|
|
22281
|
+
name: 'id',
|
|
22282
|
+
kind: 'Scalar'
|
|
22283
|
+
},
|
|
22284
|
+
{
|
|
22285
|
+
name: 'label',
|
|
22286
|
+
kind: 'Scalar'
|
|
22287
|
+
},
|
|
22288
|
+
{
|
|
22289
|
+
name: 'url',
|
|
22290
|
+
kind: 'Scalar'
|
|
22291
|
+
}
|
|
22292
|
+
]
|
|
22293
|
+
};
|
|
22294
|
+
};
|
|
22295
|
+
function equals$Y(existing, incoming) {
|
|
22296
|
+
const existing_apiName = existing.apiName;
|
|
22297
|
+
const incoming_apiName = incoming.apiName;
|
|
22298
|
+
if (!(existing_apiName === incoming_apiName)) {
|
|
22299
|
+
return false;
|
|
22300
|
+
}
|
|
22301
|
+
const existing_label = existing.label;
|
|
22302
|
+
const incoming_label = incoming.label;
|
|
22303
|
+
if (!(existing_label === incoming_label)) {
|
|
22304
|
+
return false;
|
|
22305
|
+
}
|
|
22306
|
+
const existing_url = existing.url;
|
|
22307
|
+
const incoming_url = incoming.url;
|
|
22308
|
+
if (!(existing_url === incoming_url)) {
|
|
22309
|
+
return false;
|
|
22310
|
+
}
|
|
22311
|
+
const existing_id = existing.id;
|
|
22312
|
+
const incoming_id = incoming.id;
|
|
22313
|
+
if (!(existing_id === incoming_id)) {
|
|
22314
|
+
return false;
|
|
22315
|
+
}
|
|
22316
|
+
return true;
|
|
22317
|
+
}
|
|
22318
|
+
const ingest$K$1 = function ListInfoSummaryRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
22319
|
+
const key = keyBuilderFromType$z(luvio, input);
|
|
22320
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
22321
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$K, "UiApi", VERSION$16$1, RepresentationType$R, equals$Y);
|
|
22322
|
+
return createLink$3(key);
|
|
22323
|
+
};
|
|
22324
|
+
function getTypeCacheKeys$R$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
22325
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
22326
|
+
const rootKey = keyBuilderFromType$z(luvio, input);
|
|
22327
|
+
rootKeySet.set(rootKey, {
|
|
22328
|
+
namespace: keyPrefix$2,
|
|
22329
|
+
representationName: RepresentationType$R,
|
|
22330
|
+
mergeable: false
|
|
22331
|
+
});
|
|
22332
|
+
}
|
|
22333
|
+
|
|
22334
|
+
const VERSION$15$1 = "d0cadb0927f908b5b64694e1cff0b2d7";
|
|
22335
|
+
const RepresentationType$Q = 'ListInfoSummaryCollectionRepresentation';
|
|
22336
|
+
function keyBuilder$1_(luvio, config) {
|
|
22337
|
+
return keyPrefix$2 + '::' + RepresentationType$Q + ':' + config.objectApiName + ':' + (config.queryString === null ? '' : config.queryString) + ':' + config.recentListsOnly;
|
|
22338
|
+
}
|
|
22339
|
+
function keyBuilderFromType$y(luvio, object) {
|
|
22340
|
+
const keyParams = {
|
|
22341
|
+
objectApiName: object.objectApiName,
|
|
22342
|
+
queryString: object.queryString,
|
|
22343
|
+
recentListsOnly: object.recentListsOnly
|
|
22344
|
+
};
|
|
22345
|
+
return keyBuilder$1_(luvio, keyParams);
|
|
22346
|
+
}
|
|
22347
|
+
function normalize$J(input, existing, path, luvio, store, timestamp) {
|
|
22348
|
+
const input_lists = input.lists;
|
|
22349
|
+
const input_lists_id = path.fullPath + '__lists';
|
|
22350
|
+
for (let i = 0; i < input_lists.length; i++) {
|
|
22351
|
+
const input_lists_item = input_lists[i];
|
|
22352
|
+
let input_lists_item_id = input_lists_id + '__' + i;
|
|
22353
|
+
input_lists[i] = ingest$K$1(input_lists_item, {
|
|
22354
|
+
fullPath: input_lists_item_id,
|
|
22355
|
+
propertyName: i,
|
|
22356
|
+
parent: {
|
|
22357
|
+
data: input,
|
|
22358
|
+
key: path.fullPath,
|
|
22359
|
+
existing: existing,
|
|
22360
|
+
},
|
|
22361
|
+
ttl: path.ttl
|
|
22362
|
+
}, luvio, store, timestamp);
|
|
22363
|
+
}
|
|
22364
|
+
return input;
|
|
22365
|
+
}
|
|
22366
|
+
const select$1K = function ListInfoSummaryCollectionRepresentationSelect(paginationParams) {
|
|
22367
|
+
return {
|
|
22368
|
+
kind: 'Fragment',
|
|
22369
|
+
reader: true,
|
|
22370
|
+
synthetic: false,
|
|
22371
|
+
version: VERSION$15$1,
|
|
22372
|
+
read: (source, reader) => {
|
|
22373
|
+
const sink = {};
|
|
22374
|
+
if (paginationParams === undefined) {
|
|
22375
|
+
return sink;
|
|
22376
|
+
}
|
|
22377
|
+
const metadata = reader.resolveMetadata(source, PAGINATION_VERSION$1);
|
|
22378
|
+
const currentPageMetadata = getPageMetadata$2(metadata, paginationParams);
|
|
22379
|
+
const { startOffset, endOffset, metadataProperties } = currentPageMetadata;
|
|
22380
|
+
if (metadata !== undefined && startOffset !== undefined && endOffset !== undefined) {
|
|
22381
|
+
const itemsProperty = 'lists';
|
|
22382
|
+
reader.enterPath(itemsProperty);
|
|
22383
|
+
const itemsSource = source[itemsProperty];
|
|
22384
|
+
const itemsSink = [];
|
|
22385
|
+
const allSink = [];
|
|
22386
|
+
for (let i = startOffset; i < endOffset; i++) {
|
|
22387
|
+
reader.enterPath(i);
|
|
22388
|
+
reader.readSingleLink(i, {
|
|
22389
|
+
name: 'lists',
|
|
22390
|
+
kind: 'Link',
|
|
22391
|
+
fragment: select$1L()
|
|
22392
|
+
}, itemsSource, allSink, i - startOffset);
|
|
22393
|
+
if (reader.getIsDataMissing() === false) {
|
|
22394
|
+
itemsSink[i - startOffset] = allSink[i - startOffset];
|
|
22395
|
+
}
|
|
22396
|
+
reader.exitPath();
|
|
22397
|
+
}
|
|
22398
|
+
reader.exitPath();
|
|
22399
|
+
reader.assignNonScalar(sink, itemsProperty, itemsSink);
|
|
22400
|
+
}
|
|
22401
|
+
reader.enterPath('currentPageToken');
|
|
22402
|
+
reader.readScalar('currentPageToken', metadataProperties, sink);
|
|
22403
|
+
reader.exitPath();
|
|
22404
|
+
reader.enterPath('nextPageToken');
|
|
22405
|
+
reader.readScalar('nextPageToken', metadataProperties, sink);
|
|
22406
|
+
reader.exitPath();
|
|
22407
|
+
reader.enterPath('previousPageToken');
|
|
22408
|
+
reader.readScalar('previousPageToken', metadataProperties, sink);
|
|
22409
|
+
reader.exitPath();
|
|
22410
|
+
reader.enterPath('pageSize');
|
|
22411
|
+
reader.readScalar('pageSize', metadataProperties, sink);
|
|
22412
|
+
reader.exitPath();
|
|
22413
|
+
reader.enterPath('count');
|
|
22414
|
+
reader.readScalar('count', metadataProperties, sink);
|
|
22415
|
+
reader.exitPath();
|
|
22416
|
+
reader.enterPath('objectApiName');
|
|
22417
|
+
reader.readScalar('objectApiName', source, sink);
|
|
22418
|
+
reader.exitPath();
|
|
22419
|
+
reader.enterPath('queryString');
|
|
22420
|
+
reader.readScalar('queryString', source, sink);
|
|
22421
|
+
reader.exitPath();
|
|
22422
|
+
reader.enterPath('recentListsOnly');
|
|
22423
|
+
reader.readScalar('recentListsOnly', source, sink);
|
|
22424
|
+
reader.exitPath();
|
|
22425
|
+
return sink;
|
|
22426
|
+
},
|
|
22427
|
+
};
|
|
22428
|
+
};
|
|
22429
|
+
function getPageMetadata$2(paginationMetadata, paginationParams) {
|
|
22430
|
+
const metadataProperties = {};
|
|
22431
|
+
const sink = {
|
|
22432
|
+
metadataProperties
|
|
22433
|
+
};
|
|
22434
|
+
if (paginationMetadata === undefined) {
|
|
22435
|
+
return sink;
|
|
22436
|
+
}
|
|
22437
|
+
const { token, pageSize } = paginationParams;
|
|
22438
|
+
const pageTokenAndOffset = getPageTokenAndOffset$1(paginationMetadata, token);
|
|
22439
|
+
if (pageTokenAndOffset === undefined) {
|
|
22440
|
+
return sink;
|
|
22441
|
+
}
|
|
22442
|
+
const [pageToken, startOffset] = pageTokenAndOffset;
|
|
22443
|
+
const endOffset = pageEndOffset$1(paginationMetadata, startOffset, pageSize);
|
|
22444
|
+
sink.startOffset = startOffset;
|
|
22445
|
+
sink.endOffset = endOffset;
|
|
22446
|
+
metadataProperties.currentPageToken = pageToken;
|
|
22447
|
+
const nextToken = getNextPageToken$1(paginationMetadata, endOffset);
|
|
22448
|
+
if (nextToken !== undefined) {
|
|
22449
|
+
metadataProperties.nextPageToken = nextToken;
|
|
22450
|
+
}
|
|
22451
|
+
const previousToken = getPreviousPageToken(paginationMetadata, startOffset, pageSize);
|
|
22452
|
+
if (previousToken !== undefined) {
|
|
22453
|
+
metadataProperties.previousPageToken = previousToken;
|
|
22454
|
+
}
|
|
22455
|
+
metadataProperties.pageSize = pageSize;
|
|
22456
|
+
metadataProperties.count = endOffset - startOffset;
|
|
22457
|
+
return sink;
|
|
22458
|
+
}
|
|
22459
|
+
function equals$X(existing, incoming) {
|
|
22460
|
+
const existing_recentListsOnly = existing.recentListsOnly;
|
|
22461
|
+
const incoming_recentListsOnly = incoming.recentListsOnly;
|
|
22462
|
+
if (!(existing_recentListsOnly === incoming_recentListsOnly)) {
|
|
22463
|
+
return false;
|
|
22464
|
+
}
|
|
22465
|
+
const existing_count = existing.count;
|
|
22466
|
+
const incoming_count = incoming.count;
|
|
22467
|
+
if (!(existing_count === incoming_count)) {
|
|
22468
|
+
return false;
|
|
22469
|
+
}
|
|
22470
|
+
const existing_pageSize = existing.pageSize;
|
|
22471
|
+
const incoming_pageSize = incoming.pageSize;
|
|
22472
|
+
if (!(existing_pageSize === incoming_pageSize)) {
|
|
22473
|
+
return false;
|
|
22474
|
+
}
|
|
22475
|
+
const existing_currentPageToken = existing.currentPageToken;
|
|
22476
|
+
const incoming_currentPageToken = incoming.currentPageToken;
|
|
22477
|
+
if (!(existing_currentPageToken === incoming_currentPageToken)) {
|
|
22478
|
+
return false;
|
|
22479
|
+
}
|
|
22480
|
+
const existing_currentPageUrl = existing.currentPageUrl;
|
|
22481
|
+
const incoming_currentPageUrl = incoming.currentPageUrl;
|
|
22482
|
+
if (!(existing_currentPageUrl === incoming_currentPageUrl)) {
|
|
22483
|
+
return false;
|
|
22484
|
+
}
|
|
22485
|
+
const existing_eTag = existing.eTag;
|
|
22486
|
+
const incoming_eTag = incoming.eTag;
|
|
22487
|
+
if (!(existing_eTag === incoming_eTag)) {
|
|
22488
|
+
return false;
|
|
22489
|
+
}
|
|
22490
|
+
const existing_objectApiName = existing.objectApiName;
|
|
22491
|
+
const incoming_objectApiName = incoming.objectApiName;
|
|
22492
|
+
if (!(existing_objectApiName === incoming_objectApiName)) {
|
|
22493
|
+
return false;
|
|
22494
|
+
}
|
|
22495
|
+
const existing_lists = existing.lists;
|
|
22496
|
+
const incoming_lists = incoming.lists;
|
|
22497
|
+
const equals_lists_items = equalsArray(existing_lists, incoming_lists, (existing_lists_item, incoming_lists_item) => {
|
|
22498
|
+
if (!(existing_lists_item.__ref === incoming_lists_item.__ref)) {
|
|
22499
|
+
return false;
|
|
22500
|
+
}
|
|
22501
|
+
});
|
|
22502
|
+
if (equals_lists_items === false) {
|
|
22503
|
+
return false;
|
|
22504
|
+
}
|
|
22505
|
+
const existing_nextPageToken = existing.nextPageToken;
|
|
22506
|
+
const incoming_nextPageToken = incoming.nextPageToken;
|
|
22507
|
+
if (!(existing_nextPageToken === incoming_nextPageToken)) {
|
|
22508
|
+
return false;
|
|
22509
|
+
}
|
|
22510
|
+
const existing_nextPageUrl = existing.nextPageUrl;
|
|
22511
|
+
const incoming_nextPageUrl = incoming.nextPageUrl;
|
|
22512
|
+
if (!(existing_nextPageUrl === incoming_nextPageUrl)) {
|
|
22513
|
+
return false;
|
|
22514
|
+
}
|
|
22515
|
+
const existing_previousPageToken = existing.previousPageToken;
|
|
22516
|
+
const incoming_previousPageToken = incoming.previousPageToken;
|
|
22517
|
+
if (!(existing_previousPageToken === incoming_previousPageToken)) {
|
|
22518
|
+
return false;
|
|
22519
|
+
}
|
|
22520
|
+
const existing_previousPageUrl = existing.previousPageUrl;
|
|
22521
|
+
const incoming_previousPageUrl = incoming.previousPageUrl;
|
|
22522
|
+
if (!(existing_previousPageUrl === incoming_previousPageUrl)) {
|
|
22523
|
+
return false;
|
|
22524
|
+
}
|
|
22525
|
+
const existing_queryString = existing.queryString;
|
|
22526
|
+
const incoming_queryString = incoming.queryString;
|
|
22527
|
+
if (!(existing_queryString === incoming_queryString)) {
|
|
22528
|
+
return false;
|
|
22529
|
+
}
|
|
22530
|
+
return true;
|
|
22531
|
+
}
|
|
22532
|
+
const ingest$J$1 = function ListInfoSummaryCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
22533
|
+
const key = keyBuilderFromType$y(luvio, input);
|
|
22534
|
+
const existingRecord = store.readEntry(key);
|
|
22535
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
22536
|
+
let incomingRecord = normalize$J(input, store.readEntry(key), {
|
|
22537
|
+
fullPath: key,
|
|
22538
|
+
parent: path.parent,
|
|
22539
|
+
propertyName: path.propertyName,
|
|
22540
|
+
ttl: ttlToUse
|
|
22541
|
+
}, luvio, store, timestamp);
|
|
22542
|
+
const paginationKey = key + '__pagination';
|
|
22543
|
+
const existingPaginationMetadata = store.readEntry(paginationKey);
|
|
22544
|
+
const { count: count, currentPageToken: token, nextPageToken: nextToken, pageSize: pageSize, previousPageToken: previousToken, lists: items } = input;
|
|
22545
|
+
const startOffset = existingPaginationMetadata === undefined ? 0 : offsetFromToken$1(existingPaginationMetadata, token);
|
|
22546
|
+
const incomingPaginationMetadata = {
|
|
22547
|
+
[token]: startOffset,
|
|
22548
|
+
};
|
|
22549
|
+
const nextOffset = startOffset + items.length;
|
|
22550
|
+
if (nextToken === null) {
|
|
22551
|
+
incomingPaginationMetadata.__END__ = nextOffset;
|
|
22552
|
+
}
|
|
22553
|
+
else {
|
|
22554
|
+
incomingPaginationMetadata[nextToken] = nextOffset;
|
|
22555
|
+
if (existingPaginationMetadata !== undefined) {
|
|
22556
|
+
const listEndOffset = existingPaginationMetadata.__END__;
|
|
22557
|
+
if (listEndOffset !== undefined && nextOffset >= listEndOffset) {
|
|
22558
|
+
incomingPaginationMetadata.__END__ = undefined;
|
|
22559
|
+
}
|
|
22560
|
+
}
|
|
22561
|
+
}
|
|
22562
|
+
if (previousToken !== null) {
|
|
22563
|
+
incomingPaginationMetadata[previousToken] = Math.max(startOffset - pageSize, 0);
|
|
22564
|
+
}
|
|
22565
|
+
const mergedPaginationMetadata = mergeMetadata$1(existingPaginationMetadata, incomingPaginationMetadata);
|
|
22566
|
+
if (existingPaginationMetadata === undefined ||
|
|
22567
|
+
equalsObject$1(existingPaginationMetadata, mergedPaginationMetadata, (existingProp, incomingProp) => {
|
|
22568
|
+
return existingProp === incomingProp;
|
|
22569
|
+
}) === false) {
|
|
22570
|
+
luvio.storePublish(paginationKey, mergedPaginationMetadata);
|
|
22571
|
+
luvio.publishStoreMetadata(paginationKey, paginationStoreMetadata$1);
|
|
22572
|
+
}
|
|
22573
|
+
assignMetadataLink$1(incomingRecord, paginationKey);
|
|
22574
|
+
if (existingRecord !== undefined && existingRecord.lists !== undefined) {
|
|
22575
|
+
incomingRecord.lists = [
|
|
22576
|
+
...existingRecord.lists.slice(0, startOffset),
|
|
22577
|
+
...incomingRecord.lists,
|
|
22578
|
+
...existingRecord.lists.slice(nextOffset),
|
|
22579
|
+
];
|
|
22580
|
+
}
|
|
22581
|
+
if (existingRecord === undefined || equals$X(existingRecord, incomingRecord) === false) {
|
|
22582
|
+
luvio.storePublish(key, incomingRecord);
|
|
22583
|
+
}
|
|
22584
|
+
if (ttlToUse !== undefined) {
|
|
22585
|
+
const storeMetadataParams = {
|
|
22586
|
+
ttl: ttlToUse,
|
|
22587
|
+
namespace: "UiApi",
|
|
22588
|
+
version: VERSION$15$1,
|
|
22589
|
+
representationName: RepresentationType$Q,
|
|
22590
|
+
ingestionTimestamp: timestamp,
|
|
22591
|
+
};
|
|
22592
|
+
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
22593
|
+
}
|
|
22594
|
+
return createLink$3(key);
|
|
22595
|
+
};
|
|
22596
|
+
function getTypeCacheKeys$Q$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
22597
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
22598
|
+
const rootKey = keyBuilderFromType$y(luvio, input);
|
|
22599
|
+
rootKeySet.set(rootKey, {
|
|
22600
|
+
namespace: keyPrefix$2,
|
|
22601
|
+
representationName: RepresentationType$Q,
|
|
22602
|
+
mergeable: true
|
|
22603
|
+
});
|
|
22604
|
+
rootKeySet.set(rootKey + '__pagination', {
|
|
22605
|
+
namespace: keyPrefix$2,
|
|
22606
|
+
representationName: RepresentationType$Q,
|
|
22607
|
+
mergeable: true
|
|
22608
|
+
});
|
|
22609
|
+
const input_lists_length = input.lists.length;
|
|
22610
|
+
for (let i = 0; i < input_lists_length; i++) {
|
|
22611
|
+
getTypeCacheKeys$R$1(rootKeySet, luvio, input.lists[i]);
|
|
22612
|
+
}
|
|
22613
|
+
}
|
|
22614
|
+
const notifyUpdateAvailableFactory$3 = (luvio) => {
|
|
22615
|
+
return function notifyListInfoSummaryUpdateAvailable(configs) {
|
|
22616
|
+
const keys = configs.map(c => keyBuilder$1_(luvio, c));
|
|
22617
|
+
return luvio.notifyStoreUpdateAvailable(keys);
|
|
22618
|
+
};
|
|
22619
|
+
};
|
|
22620
|
+
|
|
22621
|
+
const LIST_RECORDS_PREFIX = keyPrefix$2 + '::' + RepresentationType$T;
|
|
22622
|
+
const LIST_SUMMARY_PREFIX = keyPrefix$2 + '::' + RepresentationType$Q;
|
|
22623
|
+
/**
|
|
22624
|
+
* Watch a Luvio instance for ListRecordCollection and ListInfoSummaryCollection cache entries.
|
|
22625
|
+
*/
|
|
22626
|
+
let listRecordCollectionCache = new Map();
|
|
22627
|
+
let listSummaryCollectionCache = new Map();
|
|
22628
|
+
function getListRecordCollectionKeys(objectApiName, listViewApiName) {
|
|
22629
|
+
const cacheEntriesByObjectApiName = listRecordCollectionCache.get(objectApiName) || new Map();
|
|
22630
|
+
const keys = cacheEntriesByObjectApiName.get(listViewApiName) || [];
|
|
22631
|
+
return [...keys];
|
|
22632
|
+
}
|
|
22633
|
+
function getListSummaryCollectionKeys(objectApiName, recentLists = undefined) {
|
|
22634
|
+
const cacheEntriesByObjectApiName = listSummaryCollectionCache.get(objectApiName) || new Map();
|
|
22635
|
+
const keys = cacheEntriesByObjectApiName.get(recentLists ? 'true' : 'false') || [];
|
|
22636
|
+
const allKeys = recentLists === undefined ? cacheEntriesByObjectApiName.get('true') || [] : [];
|
|
22637
|
+
return [...keys, ...allKeys];
|
|
22638
|
+
}
|
|
22639
|
+
function addListRecordCollectionKey(objectApiName, listViewApiName, key) {
|
|
22640
|
+
const cacheEntryByObjectName = listRecordCollectionCache.get(objectApiName) || new Map();
|
|
22641
|
+
if (!cacheEntryByObjectName.size) {
|
|
22642
|
+
listRecordCollectionCache.set(objectApiName, cacheEntryByObjectName);
|
|
22643
|
+
}
|
|
22644
|
+
const keys = cacheEntryByObjectName.get(listViewApiName) || new Set();
|
|
22645
|
+
if (!keys.size) {
|
|
22646
|
+
cacheEntryByObjectName.set(listViewApiName, keys);
|
|
22647
|
+
}
|
|
22648
|
+
keys.add(key);
|
|
22649
|
+
}
|
|
22650
|
+
function addListSummaryCollectionKey(objectApiName, recentLists, key) {
|
|
22651
|
+
const cacheEntryByObjectName = listSummaryCollectionCache.get(objectApiName) || new Map();
|
|
22652
|
+
if (!cacheEntryByObjectName.size) {
|
|
22653
|
+
listSummaryCollectionCache.set(objectApiName, cacheEntryByObjectName);
|
|
22654
|
+
}
|
|
22655
|
+
const keys = cacheEntryByObjectName.get(recentLists) || new Set();
|
|
22656
|
+
if (!keys.size) {
|
|
22657
|
+
cacheEntryByObjectName.set(recentLists, keys);
|
|
22658
|
+
}
|
|
22659
|
+
keys.add(key);
|
|
22660
|
+
}
|
|
22661
|
+
function removeListRecordCollectionKeys(objectApiName, listViewApiName) {
|
|
22662
|
+
const cacheEntriesByObjectApiName = listRecordCollectionCache.get(objectApiName) || new Map();
|
|
22663
|
+
cacheEntriesByObjectApiName.delete(listViewApiName);
|
|
22664
|
+
}
|
|
22665
|
+
function removeListSummaryCollectionKeys(objectApiName, recentLists = undefined) {
|
|
22666
|
+
const cacheEntriesByObjectApiName = listSummaryCollectionCache.get(objectApiName) || new Map();
|
|
22667
|
+
cacheEntriesByObjectApiName.delete(recentLists ? 'true' : 'false');
|
|
22668
|
+
if (recentLists === undefined) {
|
|
22669
|
+
cacheEntriesByObjectApiName.delete('true');
|
|
22670
|
+
}
|
|
22671
|
+
}
|
|
22672
|
+
function splitListRecordCollectionKey(key) {
|
|
22673
|
+
const keyElements = key.split(':');
|
|
22674
|
+
return {
|
|
22675
|
+
objectApiName: keyElements[3],
|
|
22676
|
+
listViewApiName: keyElements[7],
|
|
22677
|
+
};
|
|
22678
|
+
}
|
|
22679
|
+
function splitListSummaryCollectionKey(key) {
|
|
22680
|
+
const keyElements = key.split(':');
|
|
22681
|
+
return {
|
|
22682
|
+
objectApiName: keyElements[3],
|
|
22683
|
+
recentLists: keyElements[5],
|
|
22684
|
+
};
|
|
22685
|
+
}
|
|
22686
|
+
function setupListRecordCollectionStoreWatcher(luvio) {
|
|
22687
|
+
luvio.storeWatch(LIST_RECORDS_PREFIX, (entries) => {
|
|
22688
|
+
for (let i = 0, len = entries.length; i < len; i++) {
|
|
22689
|
+
const entry = entries[i];
|
|
22690
|
+
if (entry.id.endsWith('__pagination')) {
|
|
22691
|
+
continue;
|
|
22692
|
+
}
|
|
22693
|
+
const { objectApiName, listViewApiName } = splitListRecordCollectionKey(entry.id);
|
|
22694
|
+
addListRecordCollectionKey(objectApiName, listViewApiName, entry.id);
|
|
22695
|
+
}
|
|
22696
|
+
});
|
|
22697
|
+
}
|
|
22698
|
+
function setupListSummaryCollectionStoreWatcher(luvio) {
|
|
22699
|
+
luvio.storeWatch(LIST_SUMMARY_PREFIX, (entries) => {
|
|
22700
|
+
for (let i = 0, len = entries.length; i < len; i++) {
|
|
22701
|
+
const entry = entries[i];
|
|
22702
|
+
if (entry.id.endsWith('__pagination')) {
|
|
22703
|
+
continue;
|
|
22704
|
+
}
|
|
22705
|
+
const { objectApiName, recentLists } = splitListSummaryCollectionKey(entry.id);
|
|
22706
|
+
addListSummaryCollectionKey(objectApiName, recentLists, entry.id);
|
|
22707
|
+
}
|
|
22708
|
+
});
|
|
22709
|
+
}
|
|
22710
|
+
|
|
22256
22711
|
function buildListRefByIdContextKey(listViewId) {
|
|
22257
22712
|
return `listReferenceById::${listViewId}`;
|
|
22258
22713
|
}
|
|
@@ -22481,12 +22936,26 @@ function listFields(luvio, { fields = [], optionalFields = [], sortBy, }, listIn
|
|
|
22481
22936
|
},
|
|
22482
22937
|
};
|
|
22483
22938
|
}
|
|
22939
|
+
function setupNotifyAllListRecordUpdateAvailable(luvio) {
|
|
22940
|
+
return (notifyInput) => {
|
|
22941
|
+
const keys = getListRecordCollectionKeys(notifyInput.objectApiName, notifyInput.listViewApiName);
|
|
22942
|
+
removeListRecordCollectionKeys(notifyInput.objectApiName, notifyInput.listViewApiName);
|
|
22943
|
+
return luvio.notifyStoreUpdateAvailable(keys);
|
|
22944
|
+
};
|
|
22945
|
+
}
|
|
22946
|
+
function setupNotifyAllListInfoSummaryUpdateAvailable(luvio) {
|
|
22947
|
+
return (notifyInput) => {
|
|
22948
|
+
const keys = getListSummaryCollectionKeys(notifyInput.objectApiName, notifyInput.recentLists);
|
|
22949
|
+
removeListSummaryCollectionKeys(notifyInput.objectApiName, notifyInput.recentLists);
|
|
22950
|
+
return luvio.notifyStoreUpdateAvailable(keys);
|
|
22951
|
+
};
|
|
22952
|
+
}
|
|
22484
22953
|
|
|
22485
22954
|
let context$1;
|
|
22486
22955
|
function setContext$1(adapterContext) {
|
|
22487
22956
|
context$1 = adapterContext;
|
|
22488
22957
|
}
|
|
22489
|
-
function keyBuilder$
|
|
22958
|
+
function keyBuilder$1Z(luvio, params) {
|
|
22490
22959
|
const query = {
|
|
22491
22960
|
objectApiName: params.urlParams.objectApiName,
|
|
22492
22961
|
listViewApiName: params.urlParams.listViewApiName,
|
|
@@ -22519,7 +22988,7 @@ function keyBuilder$1$(luvio, params) {
|
|
|
22519
22988
|
});
|
|
22520
22989
|
}
|
|
22521
22990
|
|
|
22522
|
-
function select$
|
|
22991
|
+
function select$1J(luvio, params) {
|
|
22523
22992
|
const { fields = [], optionalFields = [] } = params.queryParams;
|
|
22524
22993
|
return dynamicSelect$7({
|
|
22525
22994
|
records: {
|
|
@@ -22536,7 +23005,7 @@ function select$1L(luvio, params) {
|
|
|
22536
23005
|
}
|
|
22537
23006
|
function ingestSuccess$P(luvio, resourceParams, response, snapshotRefresh) {
|
|
22538
23007
|
const { body } = response;
|
|
22539
|
-
const key = keyBuilder$
|
|
23008
|
+
const key = keyBuilder$1Z(luvio, resourceParams);
|
|
22540
23009
|
luvio.storeIngest(key, ingest$M$1, body);
|
|
22541
23010
|
const optionalFields = resourceParams.queryParams.optionalFields;
|
|
22542
23011
|
if (optionalFields && optionalFields.length > 0) {
|
|
@@ -22545,7 +23014,7 @@ function ingestSuccess$P(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
22545
23014
|
}
|
|
22546
23015
|
const snapshot = luvio.storeLookup({
|
|
22547
23016
|
recordId: key,
|
|
22548
|
-
node: select$
|
|
23017
|
+
node: select$1J(luvio, resourceParams),
|
|
22549
23018
|
variables: {},
|
|
22550
23019
|
}, snapshotRefresh);
|
|
22551
23020
|
return snapshot;
|
|
@@ -22573,7 +23042,7 @@ function getResponseCacheKeys$_(storeKeyMap, luvio, resourceParams, response) {
|
|
|
22573
23042
|
getTypeCacheKeys$T$1(storeKeyMap, luvio, response);
|
|
22574
23043
|
}
|
|
22575
23044
|
function ingestError$I(luvio, params, error, snapshotRefresh) {
|
|
22576
|
-
const key = keyBuilder$
|
|
23045
|
+
const key = keyBuilder$1Z(luvio, params);
|
|
22577
23046
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
22578
23047
|
const storeMetadataParams = {
|
|
22579
23048
|
ttl: TTL$x,
|
|
@@ -22651,24 +23120,24 @@ function isErrorSnapshot(snapshot) {
|
|
|
22651
23120
|
return snapshot.state === 'Error';
|
|
22652
23121
|
}
|
|
22653
23122
|
|
|
22654
|
-
const VERSION$
|
|
22655
|
-
const RepresentationType$
|
|
22656
|
-
function keyBuilder$
|
|
22657
|
-
return keyPrefix$2 + '::' + RepresentationType$
|
|
23123
|
+
const VERSION$14$1 = "3529c5f7d0eb2206c90a52c6d9f721d4";
|
|
23124
|
+
const RepresentationType$P = 'ListViewSummaryRepresentation';
|
|
23125
|
+
function keyBuilder$1Y(luvio, config) {
|
|
23126
|
+
return keyPrefix$2 + '::' + RepresentationType$P + ':' + (config.id === null ? '' : config.id);
|
|
22658
23127
|
}
|
|
22659
|
-
function keyBuilderFromType$
|
|
23128
|
+
function keyBuilderFromType$x(luvio, object) {
|
|
22660
23129
|
const keyParams = {
|
|
22661
23130
|
id: object.id
|
|
22662
23131
|
};
|
|
22663
|
-
return keyBuilder$
|
|
23132
|
+
return keyBuilder$1Y(luvio, keyParams);
|
|
22664
23133
|
}
|
|
22665
|
-
function normalize$
|
|
23134
|
+
function normalize$I(input, existing, path, luvio, store, timestamp) {
|
|
22666
23135
|
return input;
|
|
22667
23136
|
}
|
|
22668
|
-
const select$
|
|
23137
|
+
const select$1I = function ListViewSummaryRepresentationSelect() {
|
|
22669
23138
|
return {
|
|
22670
23139
|
kind: 'Fragment',
|
|
22671
|
-
version: VERSION$
|
|
23140
|
+
version: VERSION$14$1,
|
|
22672
23141
|
private: [],
|
|
22673
23142
|
selections: [
|
|
22674
23143
|
{
|
|
@@ -22690,7 +23159,7 @@ const select$1K = function ListViewSummaryRepresentationSelect() {
|
|
|
22690
23159
|
]
|
|
22691
23160
|
};
|
|
22692
23161
|
};
|
|
22693
|
-
function equals$
|
|
23162
|
+
function equals$W(existing, incoming) {
|
|
22694
23163
|
const existing_apiName = existing.apiName;
|
|
22695
23164
|
const incoming_apiName = incoming.apiName;
|
|
22696
23165
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -22713,42 +23182,42 @@ function equals$Y(existing, incoming) {
|
|
|
22713
23182
|
}
|
|
22714
23183
|
return true;
|
|
22715
23184
|
}
|
|
22716
|
-
const ingest$
|
|
22717
|
-
const key = keyBuilderFromType$
|
|
23185
|
+
const ingest$I$1 = function ListViewSummaryRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
23186
|
+
const key = keyBuilderFromType$x(luvio, input);
|
|
22718
23187
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
22719
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
23188
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$I, "UiApi", VERSION$14$1, RepresentationType$P, equals$W);
|
|
22720
23189
|
return createLink$3(key);
|
|
22721
23190
|
};
|
|
22722
|
-
function getTypeCacheKeys$
|
|
23191
|
+
function getTypeCacheKeys$P$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
22723
23192
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
22724
|
-
const rootKey = keyBuilderFromType$
|
|
23193
|
+
const rootKey = keyBuilderFromType$x(luvio, input);
|
|
22725
23194
|
rootKeySet.set(rootKey, {
|
|
22726
23195
|
namespace: keyPrefix$2,
|
|
22727
|
-
representationName: RepresentationType$
|
|
23196
|
+
representationName: RepresentationType$P,
|
|
22728
23197
|
mergeable: false
|
|
22729
23198
|
});
|
|
22730
23199
|
}
|
|
22731
23200
|
|
|
22732
|
-
const VERSION$
|
|
22733
|
-
const RepresentationType$
|
|
22734
|
-
function keyBuilder$
|
|
22735
|
-
return keyPrefix$2 + '::' + RepresentationType$
|
|
23201
|
+
const VERSION$13$1 = "f4c79fe066da3558499d5ee88c72abcd";
|
|
23202
|
+
const RepresentationType$O = 'ListViewSummaryCollectionRepresentation';
|
|
23203
|
+
function keyBuilder$1X(luvio, config) {
|
|
23204
|
+
return keyPrefix$2 + '::' + RepresentationType$O + ':' + config.objectApiName + ':' + (config.queryString === null ? '' : config.queryString) + ':' + config.recentListsOnly;
|
|
22736
23205
|
}
|
|
22737
|
-
function keyBuilderFromType$
|
|
23206
|
+
function keyBuilderFromType$w(luvio, object) {
|
|
22738
23207
|
const keyParams = {
|
|
22739
23208
|
objectApiName: object.objectApiName,
|
|
22740
23209
|
queryString: object.queryString,
|
|
22741
23210
|
recentListsOnly: object.recentListsOnly
|
|
22742
23211
|
};
|
|
22743
|
-
return keyBuilder$
|
|
23212
|
+
return keyBuilder$1X(luvio, keyParams);
|
|
22744
23213
|
}
|
|
22745
|
-
function normalize$
|
|
23214
|
+
function normalize$H(input, existing, path, luvio, store, timestamp) {
|
|
22746
23215
|
const input_lists = input.lists;
|
|
22747
23216
|
const input_lists_id = path.fullPath + '__lists';
|
|
22748
23217
|
for (let i = 0; i < input_lists.length; i++) {
|
|
22749
23218
|
const input_lists_item = input_lists[i];
|
|
22750
23219
|
let input_lists_item_id = input_lists_id + '__' + i;
|
|
22751
|
-
input_lists[i] = ingest$
|
|
23220
|
+
input_lists[i] = ingest$I$1(input_lists_item, {
|
|
22752
23221
|
fullPath: input_lists_item_id,
|
|
22753
23222
|
propertyName: i,
|
|
22754
23223
|
parent: {
|
|
@@ -22761,19 +23230,19 @@ function normalize$J(input, existing, path, luvio, store, timestamp) {
|
|
|
22761
23230
|
}
|
|
22762
23231
|
return input;
|
|
22763
23232
|
}
|
|
22764
|
-
const select$
|
|
23233
|
+
const select$1H = function ListViewSummaryCollectionRepresentationSelect(paginationParams) {
|
|
22765
23234
|
return {
|
|
22766
23235
|
kind: 'Fragment',
|
|
22767
23236
|
reader: true,
|
|
22768
23237
|
synthetic: false,
|
|
22769
|
-
version: VERSION$
|
|
23238
|
+
version: VERSION$13$1,
|
|
22770
23239
|
read: (source, reader) => {
|
|
22771
23240
|
const sink = {};
|
|
22772
23241
|
if (paginationParams === undefined) {
|
|
22773
23242
|
return sink;
|
|
22774
23243
|
}
|
|
22775
23244
|
const metadata = reader.resolveMetadata(source, PAGINATION_VERSION$1);
|
|
22776
|
-
const currentPageMetadata = getPageMetadata$
|
|
23245
|
+
const currentPageMetadata = getPageMetadata$1(metadata, paginationParams);
|
|
22777
23246
|
const { startOffset, endOffset, metadataProperties } = currentPageMetadata;
|
|
22778
23247
|
if (metadata !== undefined && startOffset !== undefined && endOffset !== undefined) {
|
|
22779
23248
|
const itemsProperty = 'lists';
|
|
@@ -22786,7 +23255,7 @@ const select$1J = function ListViewSummaryCollectionRepresentationSelect(paginat
|
|
|
22786
23255
|
reader.readSingleLink(i, {
|
|
22787
23256
|
name: 'lists',
|
|
22788
23257
|
kind: 'Link',
|
|
22789
|
-
fragment: select$
|
|
23258
|
+
fragment: select$1I()
|
|
22790
23259
|
}, itemsSource, allSink, i - startOffset);
|
|
22791
23260
|
if (reader.getIsDataMissing() === false) {
|
|
22792
23261
|
itemsSink[i - startOffset] = allSink[i - startOffset];
|
|
@@ -22824,7 +23293,7 @@ const select$1J = function ListViewSummaryCollectionRepresentationSelect(paginat
|
|
|
22824
23293
|
},
|
|
22825
23294
|
};
|
|
22826
23295
|
};
|
|
22827
|
-
function getPageMetadata$
|
|
23296
|
+
function getPageMetadata$1(paginationMetadata, paginationParams) {
|
|
22828
23297
|
const metadataProperties = {};
|
|
22829
23298
|
const sink = {
|
|
22830
23299
|
metadataProperties
|
|
@@ -22854,7 +23323,7 @@ function getPageMetadata$2(paginationMetadata, paginationParams) {
|
|
|
22854
23323
|
metadataProperties.count = endOffset - startOffset;
|
|
22855
23324
|
return sink;
|
|
22856
23325
|
}
|
|
22857
|
-
function equals$
|
|
23326
|
+
function equals$V(existing, incoming) {
|
|
22858
23327
|
const existing_recentListsOnly = existing.recentListsOnly;
|
|
22859
23328
|
const incoming_recentListsOnly = incoming.recentListsOnly;
|
|
22860
23329
|
if (!(existing_recentListsOnly === incoming_recentListsOnly)) {
|
|
@@ -22927,11 +23396,11 @@ function equals$X(existing, incoming) {
|
|
|
22927
23396
|
}
|
|
22928
23397
|
return true;
|
|
22929
23398
|
}
|
|
22930
|
-
const ingest$
|
|
22931
|
-
const key = keyBuilderFromType$
|
|
23399
|
+
const ingest$H$1 = function ListViewSummaryCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
23400
|
+
const key = keyBuilderFromType$w(luvio, input);
|
|
22932
23401
|
const existingRecord = store.readEntry(key);
|
|
22933
23402
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
22934
|
-
let incomingRecord = normalize$
|
|
23403
|
+
let incomingRecord = normalize$H(input, store.readEntry(key), {
|
|
22935
23404
|
fullPath: key,
|
|
22936
23405
|
parent: path.parent,
|
|
22937
23406
|
propertyName: path.propertyName,
|
|
@@ -22976,42 +23445,42 @@ const ingest$J$1 = function ListViewSummaryCollectionRepresentationIngest(input,
|
|
|
22976
23445
|
...existingRecord.lists.slice(nextOffset),
|
|
22977
23446
|
];
|
|
22978
23447
|
}
|
|
22979
|
-
if (existingRecord === undefined || equals$
|
|
23448
|
+
if (existingRecord === undefined || equals$V(existingRecord, incomingRecord) === false) {
|
|
22980
23449
|
luvio.storePublish(key, incomingRecord);
|
|
22981
23450
|
}
|
|
22982
23451
|
if (ttlToUse !== undefined) {
|
|
22983
23452
|
const storeMetadataParams = {
|
|
22984
23453
|
ttl: ttlToUse,
|
|
22985
23454
|
namespace: "UiApi",
|
|
22986
|
-
version: VERSION$
|
|
22987
|
-
representationName: RepresentationType$
|
|
23455
|
+
version: VERSION$13$1,
|
|
23456
|
+
representationName: RepresentationType$O,
|
|
22988
23457
|
ingestionTimestamp: timestamp,
|
|
22989
23458
|
};
|
|
22990
23459
|
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
22991
23460
|
}
|
|
22992
23461
|
return createLink$3(key);
|
|
22993
23462
|
};
|
|
22994
|
-
function getTypeCacheKeys$
|
|
23463
|
+
function getTypeCacheKeys$O$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
22995
23464
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
22996
|
-
const rootKey = keyBuilderFromType$
|
|
23465
|
+
const rootKey = keyBuilderFromType$w(luvio, input);
|
|
22997
23466
|
rootKeySet.set(rootKey, {
|
|
22998
23467
|
namespace: keyPrefix$2,
|
|
22999
|
-
representationName: RepresentationType$
|
|
23468
|
+
representationName: RepresentationType$O,
|
|
23000
23469
|
mergeable: true
|
|
23001
23470
|
});
|
|
23002
23471
|
rootKeySet.set(rootKey + '__pagination', {
|
|
23003
23472
|
namespace: keyPrefix$2,
|
|
23004
|
-
representationName: RepresentationType$
|
|
23473
|
+
representationName: RepresentationType$O,
|
|
23005
23474
|
mergeable: true
|
|
23006
23475
|
});
|
|
23007
23476
|
const input_lists_length = input.lists.length;
|
|
23008
23477
|
for (let i = 0; i < input_lists_length; i++) {
|
|
23009
|
-
getTypeCacheKeys$
|
|
23478
|
+
getTypeCacheKeys$P$1(rootKeySet, luvio, input.lists[i]);
|
|
23010
23479
|
}
|
|
23011
23480
|
}
|
|
23012
|
-
const notifyUpdateAvailableFactory$
|
|
23481
|
+
const notifyUpdateAvailableFactory$2 = (luvio) => {
|
|
23013
23482
|
return function notifyListViewSummaryUpdateAvailable(configs) {
|
|
23014
|
-
const keys = configs.map(c => keyBuilder$
|
|
23483
|
+
const keys = configs.map(c => keyBuilder$1X(luvio, c));
|
|
23015
23484
|
return luvio.notifyStoreUpdateAvailable(keys);
|
|
23016
23485
|
};
|
|
23017
23486
|
};
|
|
@@ -23023,34 +23492,34 @@ function createPaginationParams$3(params) {
|
|
|
23023
23492
|
pageSize: queryParams.pageSize === undefined ? 20 : queryParams.pageSize
|
|
23024
23493
|
};
|
|
23025
23494
|
}
|
|
23026
|
-
function select$
|
|
23495
|
+
function select$1G(luvio, params) {
|
|
23027
23496
|
const paginationParams = createPaginationParams$3(params);
|
|
23028
|
-
return select$
|
|
23497
|
+
return select$1H(paginationParams);
|
|
23029
23498
|
}
|
|
23030
|
-
function keyBuilder$
|
|
23031
|
-
return keyBuilder$
|
|
23499
|
+
function keyBuilder$1W(luvio, params) {
|
|
23500
|
+
return keyBuilder$1X(luvio, {
|
|
23032
23501
|
objectApiName: params.urlParams.objectApiName,
|
|
23033
23502
|
queryString: params.queryParams.q || null,
|
|
23034
23503
|
recentListsOnly: params.queryParams.recentListsOnly || false
|
|
23035
23504
|
});
|
|
23036
23505
|
}
|
|
23037
23506
|
function getResponseCacheKeys$Z(storeKeyMap, luvio, resourceParams, response) {
|
|
23038
|
-
getTypeCacheKeys$
|
|
23507
|
+
getTypeCacheKeys$O$1(storeKeyMap, luvio, response);
|
|
23039
23508
|
}
|
|
23040
23509
|
function ingestSuccess$O(luvio, resourceParams, response, snapshotRefresh) {
|
|
23041
23510
|
const { body } = response;
|
|
23042
|
-
const key = keyBuilder$
|
|
23043
|
-
luvio.storeIngest(key, ingest$
|
|
23511
|
+
const key = keyBuilder$1W(luvio, resourceParams);
|
|
23512
|
+
luvio.storeIngest(key, ingest$H$1, body);
|
|
23044
23513
|
const snapshot = luvio.storeLookup({
|
|
23045
23514
|
recordId: key,
|
|
23046
|
-
node: select$
|
|
23515
|
+
node: select$1G(luvio, resourceParams),
|
|
23047
23516
|
variables: {},
|
|
23048
23517
|
}, snapshotRefresh);
|
|
23049
23518
|
deepFreeze(snapshot.data);
|
|
23050
23519
|
return snapshot;
|
|
23051
23520
|
}
|
|
23052
23521
|
function ingestError$H(luvio, params, error, snapshotRefresh) {
|
|
23053
|
-
const key = keyBuilder$
|
|
23522
|
+
const key = keyBuilder$1W(luvio, params);
|
|
23054
23523
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
23055
23524
|
luvio.storeIngestError(key, errorSnapshot);
|
|
23056
23525
|
return errorSnapshot;
|
|
@@ -23079,9 +23548,9 @@ const getListViewSummaryCollection_ConfigPropertyMetadata = [
|
|
|
23079
23548
|
];
|
|
23080
23549
|
const getListViewSummaryCollection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$2(adapterName$_$1, getListViewSummaryCollection_ConfigPropertyMetadata);
|
|
23081
23550
|
const createResourceParams$Y = /*#__PURE__*/ createResourceParams$12(getListViewSummaryCollection_ConfigPropertyMetadata);
|
|
23082
|
-
function keyBuilder$
|
|
23551
|
+
function keyBuilder$1V(luvio, config) {
|
|
23083
23552
|
const resourceParams = createResourceParams$Y(config);
|
|
23084
|
-
return keyBuilder$
|
|
23553
|
+
return keyBuilder$1W(luvio, resourceParams);
|
|
23085
23554
|
}
|
|
23086
23555
|
function typeCheckConfig$13(untrustedConfig) {
|
|
23087
23556
|
const config = {};
|
|
@@ -23101,7 +23570,7 @@ function validateAdapterConfig$15(untrustedConfig, configPropertyNames) {
|
|
|
23101
23570
|
}
|
|
23102
23571
|
function adapterFragment$G(luvio, config) {
|
|
23103
23572
|
const resourceParams = createResourceParams$Y(config);
|
|
23104
|
-
return select$
|
|
23573
|
+
return select$1G(luvio, resourceParams);
|
|
23105
23574
|
}
|
|
23106
23575
|
function onFetchResponseSuccess$K(luvio, config, resourceParams, response) {
|
|
23107
23576
|
const snapshot = ingestSuccess$O(luvio, resourceParams, response, {
|
|
@@ -23164,12 +23633,12 @@ function getCachedItemsNumber$3(cacheSnapshot) {
|
|
|
23164
23633
|
return items.length;
|
|
23165
23634
|
}
|
|
23166
23635
|
function getPaginationMetadata$3(luvio, resourceParams) {
|
|
23167
|
-
const key = keyBuilder$
|
|
23636
|
+
const key = keyBuilder$1W(luvio, resourceParams);
|
|
23168
23637
|
const selector = {
|
|
23169
23638
|
recordId: key,
|
|
23170
23639
|
node: {
|
|
23171
23640
|
kind: 'Fragment',
|
|
23172
|
-
version: VERSION$
|
|
23641
|
+
version: VERSION$13$1,
|
|
23173
23642
|
private: [],
|
|
23174
23643
|
selections: [
|
|
23175
23644
|
{
|
|
@@ -23212,7 +23681,7 @@ function buildNetworkSnapshotCachePolicy$O(context, coercedAdapterRequestContext
|
|
|
23212
23681
|
function buildCachedSnapshotCachePolicy$N(context, storeLookup) {
|
|
23213
23682
|
const { luvio, config } = context;
|
|
23214
23683
|
const selector = {
|
|
23215
|
-
recordId: keyBuilder$
|
|
23684
|
+
recordId: keyBuilder$1V(luvio, config),
|
|
23216
23685
|
node: adapterFragment$G(luvio, config),
|
|
23217
23686
|
variables: {},
|
|
23218
23687
|
};
|
|
@@ -23242,7 +23711,7 @@ function createPaginationParams$2(params) {
|
|
|
23242
23711
|
pageSize: queryParams.pageSize === undefined ? 50 : queryParams.pageSize
|
|
23243
23712
|
};
|
|
23244
23713
|
}
|
|
23245
|
-
function keyBuilder$
|
|
23714
|
+
function keyBuilder$1U(luvio, params) {
|
|
23246
23715
|
return keyBuilder$20(luvio, {
|
|
23247
23716
|
listViewApiName: null,
|
|
23248
23717
|
objectApiName: params.urlParams.objectApiName,
|
|
@@ -23403,7 +23872,7 @@ function buildCachedSnapshot$8(luvio, storeLookup, config, listInfo, fields) {
|
|
|
23403
23872
|
const listFields_ = fields || listFields(luvio, config, listInfo);
|
|
23404
23873
|
const resourceParams = createResourceParams$X(config);
|
|
23405
23874
|
const selector = {
|
|
23406
|
-
recordId: keyBuilder$
|
|
23875
|
+
recordId: keyBuilder$1U(luvio, resourceParams),
|
|
23407
23876
|
node: buildListUiFragment$1(config, listFields_),
|
|
23408
23877
|
variables: {},
|
|
23409
23878
|
};
|
|
@@ -24064,24 +24533,24 @@ const factory$h = (luvio) => {
|
|
|
24064
24533
|
};
|
|
24065
24534
|
|
|
24066
24535
|
const TTL$w = 900000;
|
|
24067
|
-
const VERSION$
|
|
24068
|
-
const RepresentationType$
|
|
24069
|
-
function keyBuilder$
|
|
24070
|
-
return keyPrefix$2 + '::' + RepresentationType$
|
|
24536
|
+
const VERSION$12$1 = "ec9370a0cd56f4769fe9ec5cd942ff30";
|
|
24537
|
+
const RepresentationType$N = 'ObjectInfoRepresentation';
|
|
24538
|
+
function keyBuilder$1T(luvio, config) {
|
|
24539
|
+
return keyPrefix$2 + '::' + RepresentationType$N + ':' + config.apiName;
|
|
24071
24540
|
}
|
|
24072
|
-
function keyBuilderFromType$
|
|
24541
|
+
function keyBuilderFromType$v(luvio, object) {
|
|
24073
24542
|
const keyParams = {
|
|
24074
24543
|
apiName: object.apiName
|
|
24075
24544
|
};
|
|
24076
|
-
return keyBuilder$
|
|
24545
|
+
return keyBuilder$1T(luvio, keyParams);
|
|
24077
24546
|
}
|
|
24078
|
-
function normalize$
|
|
24547
|
+
function normalize$G(input, existing, path, luvio, store, timestamp) {
|
|
24079
24548
|
return input;
|
|
24080
24549
|
}
|
|
24081
|
-
const select$
|
|
24550
|
+
const select$1F = function ObjectInfoRepresentationSelect() {
|
|
24082
24551
|
return {
|
|
24083
24552
|
kind: 'Fragment',
|
|
24084
|
-
version: VERSION$
|
|
24553
|
+
version: VERSION$12$1,
|
|
24085
24554
|
private: [
|
|
24086
24555
|
'eTag'
|
|
24087
24556
|
],
|
|
@@ -24183,59 +24652,59 @@ const select$1H = function ObjectInfoRepresentationSelect() {
|
|
|
24183
24652
|
]
|
|
24184
24653
|
};
|
|
24185
24654
|
};
|
|
24186
|
-
function equals$
|
|
24655
|
+
function equals$U(existing, incoming) {
|
|
24187
24656
|
if (existing.eTag !== incoming.eTag) {
|
|
24188
24657
|
return false;
|
|
24189
24658
|
}
|
|
24190
24659
|
return true;
|
|
24191
24660
|
}
|
|
24192
|
-
const ingest$
|
|
24193
|
-
const key = keyBuilderFromType$
|
|
24661
|
+
const ingest$G$1 = function ObjectInfoRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
24662
|
+
const key = keyBuilderFromType$v(luvio, input);
|
|
24194
24663
|
const ttlToUse = TTL$w;
|
|
24195
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
24664
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$G, "UiApi", VERSION$12$1, RepresentationType$N, equals$U);
|
|
24196
24665
|
return createLink$3(key);
|
|
24197
24666
|
};
|
|
24198
|
-
function getTypeCacheKeys$
|
|
24667
|
+
function getTypeCacheKeys$N$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
24199
24668
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
24200
|
-
const rootKey = keyBuilderFromType$
|
|
24669
|
+
const rootKey = keyBuilderFromType$v(luvio, input);
|
|
24201
24670
|
rootKeySet.set(rootKey, {
|
|
24202
24671
|
namespace: keyPrefix$2,
|
|
24203
|
-
representationName: RepresentationType$
|
|
24672
|
+
representationName: RepresentationType$N,
|
|
24204
24673
|
mergeable: false
|
|
24205
24674
|
});
|
|
24206
24675
|
}
|
|
24207
24676
|
|
|
24208
|
-
function select$
|
|
24209
|
-
return select$
|
|
24677
|
+
function select$1E(luvio, params) {
|
|
24678
|
+
return select$1F();
|
|
24210
24679
|
}
|
|
24211
|
-
function keyBuilder$
|
|
24212
|
-
return keyBuilder$
|
|
24680
|
+
function keyBuilder$1S(luvio, params) {
|
|
24681
|
+
return keyBuilder$1T(luvio, {
|
|
24213
24682
|
apiName: params.urlParams.objectApiName
|
|
24214
24683
|
});
|
|
24215
24684
|
}
|
|
24216
24685
|
function getResponseCacheKeys$Y(storeKeyMap, luvio, resourceParams, response) {
|
|
24217
|
-
getTypeCacheKeys$
|
|
24686
|
+
getTypeCacheKeys$N$1(storeKeyMap, luvio, response);
|
|
24218
24687
|
}
|
|
24219
24688
|
function ingestSuccess$N(luvio, resourceParams, response, snapshotRefresh) {
|
|
24220
24689
|
const { body } = response;
|
|
24221
|
-
const key = keyBuilder$
|
|
24222
|
-
luvio.storeIngest(key, ingest$
|
|
24690
|
+
const key = keyBuilder$1S(luvio, resourceParams);
|
|
24691
|
+
luvio.storeIngest(key, ingest$G$1, body);
|
|
24223
24692
|
const snapshot = luvio.storeLookup({
|
|
24224
24693
|
recordId: key,
|
|
24225
|
-
node: select$
|
|
24694
|
+
node: select$1E(),
|
|
24226
24695
|
variables: {},
|
|
24227
24696
|
}, snapshotRefresh);
|
|
24228
24697
|
deepFreeze(snapshot.data);
|
|
24229
24698
|
return snapshot;
|
|
24230
24699
|
}
|
|
24231
24700
|
function ingestError$G(luvio, params, error, snapshotRefresh) {
|
|
24232
|
-
const key = keyBuilder$
|
|
24701
|
+
const key = keyBuilder$1S(luvio, params);
|
|
24233
24702
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
24234
24703
|
const storeMetadataParams = {
|
|
24235
24704
|
ttl: TTL$w,
|
|
24236
24705
|
namespace: keyPrefix$2,
|
|
24237
|
-
version: VERSION$
|
|
24238
|
-
representationName: RepresentationType$
|
|
24706
|
+
version: VERSION$12$1,
|
|
24707
|
+
representationName: RepresentationType$N
|
|
24239
24708
|
};
|
|
24240
24709
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
24241
24710
|
return errorSnapshot;
|
|
@@ -24260,9 +24729,9 @@ const getObjectInfo_ConfigPropertyMetadata = [
|
|
|
24260
24729
|
];
|
|
24261
24730
|
const getObjectInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$2(adapterName$Y, getObjectInfo_ConfigPropertyMetadata);
|
|
24262
24731
|
const createResourceParams$W = /*#__PURE__*/ createResourceParams$12(getObjectInfo_ConfigPropertyMetadata);
|
|
24263
|
-
function keyBuilder$
|
|
24732
|
+
function keyBuilder$1R(luvio, config) {
|
|
24264
24733
|
const resourceParams = createResourceParams$W(config);
|
|
24265
|
-
return keyBuilder$
|
|
24734
|
+
return keyBuilder$1S(luvio, resourceParams);
|
|
24266
24735
|
}
|
|
24267
24736
|
function typeCheckConfig$11(untrustedConfig) {
|
|
24268
24737
|
const config = {};
|
|
@@ -24282,7 +24751,7 @@ function validateAdapterConfig$13(untrustedConfig, configPropertyNames) {
|
|
|
24282
24751
|
}
|
|
24283
24752
|
function adapterFragment$F(luvio, config) {
|
|
24284
24753
|
createResourceParams$W(config);
|
|
24285
|
-
return select$
|
|
24754
|
+
return select$1E();
|
|
24286
24755
|
}
|
|
24287
24756
|
function onFetchResponseSuccess$J(luvio, config, resourceParams, response) {
|
|
24288
24757
|
const snapshot = ingestSuccess$N(luvio, resourceParams, response, {
|
|
@@ -24318,7 +24787,7 @@ function buildNetworkSnapshotCachePolicy$N(context, coercedAdapterRequestContext
|
|
|
24318
24787
|
function buildCachedSnapshotCachePolicy$M(context, storeLookup) {
|
|
24319
24788
|
const { luvio, config } = context;
|
|
24320
24789
|
const selector = {
|
|
24321
|
-
recordId: keyBuilder$
|
|
24790
|
+
recordId: keyBuilder$1R(luvio, config),
|
|
24322
24791
|
node: adapterFragment$F(luvio, config),
|
|
24323
24792
|
variables: {},
|
|
24324
24793
|
};
|
|
@@ -24349,27 +24818,27 @@ var DiscriminatorValues$5$1;
|
|
|
24349
24818
|
})(DiscriminatorValues$5$1 || (DiscriminatorValues$5$1 = {}));
|
|
24350
24819
|
|
|
24351
24820
|
const TTL$v = 900000;
|
|
24352
|
-
const VERSION$
|
|
24353
|
-
const RepresentationType$
|
|
24354
|
-
function keyBuilder$
|
|
24355
|
-
return keyPrefix$2 + '::' + RepresentationType$
|
|
24821
|
+
const VERSION$11$1 = "fb515e25a89ca1ec154dc865e72b913a";
|
|
24822
|
+
const RepresentationType$M = 'RecordLayoutRepresentation';
|
|
24823
|
+
function keyBuilder$1Q(luvio, config) {
|
|
24824
|
+
return keyPrefix$2 + '::' + RepresentationType$M + ':' + (config.recordTypeId === null ? '' : config.recordTypeId) + ':' + (config.objectApiName === null ? '' : config.objectApiName) + ':' + config.layoutType + ':' + config.mode;
|
|
24356
24825
|
}
|
|
24357
|
-
function keyBuilderFromType$
|
|
24826
|
+
function keyBuilderFromType$u(luvio, object) {
|
|
24358
24827
|
const keyParams = {
|
|
24359
24828
|
recordTypeId: object.recordTypeId,
|
|
24360
24829
|
objectApiName: object.objectApiName,
|
|
24361
24830
|
layoutType: object.layoutType,
|
|
24362
24831
|
mode: object.mode
|
|
24363
24832
|
};
|
|
24364
|
-
return keyBuilder$
|
|
24833
|
+
return keyBuilder$1Q(luvio, keyParams);
|
|
24365
24834
|
}
|
|
24366
|
-
function normalize$
|
|
24835
|
+
function normalize$F(input, existing, path, luvio, store, timestamp) {
|
|
24367
24836
|
return input;
|
|
24368
24837
|
}
|
|
24369
|
-
const select$
|
|
24838
|
+
const select$1D = function RecordLayoutRepresentationSelect() {
|
|
24370
24839
|
return {
|
|
24371
24840
|
kind: 'Fragment',
|
|
24372
|
-
version: VERSION$
|
|
24841
|
+
version: VERSION$11$1,
|
|
24373
24842
|
private: [
|
|
24374
24843
|
'eTag'
|
|
24375
24844
|
],
|
|
@@ -24407,24 +24876,24 @@ const select$1F = function RecordLayoutRepresentationSelect() {
|
|
|
24407
24876
|
]
|
|
24408
24877
|
};
|
|
24409
24878
|
};
|
|
24410
|
-
function equals$
|
|
24879
|
+
function equals$T(existing, incoming) {
|
|
24411
24880
|
if (existing.eTag !== incoming.eTag) {
|
|
24412
24881
|
return false;
|
|
24413
24882
|
}
|
|
24414
24883
|
return true;
|
|
24415
24884
|
}
|
|
24416
|
-
const ingest$
|
|
24417
|
-
const key = keyBuilderFromType$
|
|
24885
|
+
const ingest$F$1 = function RecordLayoutRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
24886
|
+
const key = keyBuilderFromType$u(luvio, input);
|
|
24418
24887
|
const ttlToUse = TTL$v;
|
|
24419
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
24888
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$F, "UiApi", VERSION$11$1, RepresentationType$M, equals$T);
|
|
24420
24889
|
return createLink$3(key);
|
|
24421
24890
|
};
|
|
24422
|
-
function getTypeCacheKeys$
|
|
24891
|
+
function getTypeCacheKeys$M$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
24423
24892
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
24424
|
-
const rootKey = keyBuilderFromType$
|
|
24893
|
+
const rootKey = keyBuilderFromType$u(luvio, input);
|
|
24425
24894
|
rootKeySet.set(rootKey, {
|
|
24426
24895
|
namespace: keyPrefix$2,
|
|
24427
|
-
representationName: RepresentationType$
|
|
24896
|
+
representationName: RepresentationType$M,
|
|
24428
24897
|
mergeable: false
|
|
24429
24898
|
});
|
|
24430
24899
|
}
|
|
@@ -24452,27 +24921,27 @@ function getRecordId18Array(value) {
|
|
|
24452
24921
|
}
|
|
24453
24922
|
|
|
24454
24923
|
const TTL$u = 900000;
|
|
24455
|
-
const VERSION$
|
|
24456
|
-
const RepresentationType$
|
|
24457
|
-
function keyBuilder$
|
|
24458
|
-
return keyPrefix$2 + '::' + RepresentationType$
|
|
24924
|
+
const VERSION$10$1 = "4ba42e1fa0fb00cf78fce86082da41c9";
|
|
24925
|
+
const RepresentationType$L = 'RecordLayoutUserStateRepresentation';
|
|
24926
|
+
function keyBuilder$1P(luvio, config) {
|
|
24927
|
+
return keyPrefix$2 + '::' + RepresentationType$L + ':' + config.recordTypeId + ':' + config.apiName + ':' + config.layoutType + ':' + config.mode;
|
|
24459
24928
|
}
|
|
24460
|
-
function keyBuilderFromType$
|
|
24929
|
+
function keyBuilderFromType$t(luvio, object) {
|
|
24461
24930
|
const keyParams = {
|
|
24462
24931
|
recordTypeId: object.recordTypeId,
|
|
24463
24932
|
apiName: object.apiName,
|
|
24464
24933
|
layoutType: object.layoutType,
|
|
24465
24934
|
mode: object.mode
|
|
24466
24935
|
};
|
|
24467
|
-
return keyBuilder$
|
|
24936
|
+
return keyBuilder$1P(luvio, keyParams);
|
|
24468
24937
|
}
|
|
24469
|
-
function normalize$
|
|
24938
|
+
function normalize$E(input, existing, path, luvio, store, timestamp) {
|
|
24470
24939
|
return input;
|
|
24471
24940
|
}
|
|
24472
|
-
const select$
|
|
24941
|
+
const select$1C = function RecordLayoutUserStateRepresentationSelect() {
|
|
24473
24942
|
return {
|
|
24474
24943
|
kind: 'Fragment',
|
|
24475
|
-
version: VERSION$
|
|
24944
|
+
version: VERSION$10$1,
|
|
24476
24945
|
private: [
|
|
24477
24946
|
'apiName',
|
|
24478
24947
|
'recordTypeId',
|
|
@@ -24492,32 +24961,32 @@ const select$1E = function RecordLayoutUserStateRepresentationSelect() {
|
|
|
24492
24961
|
]
|
|
24493
24962
|
};
|
|
24494
24963
|
};
|
|
24495
|
-
function equals$
|
|
24964
|
+
function equals$S(existing, incoming) {
|
|
24496
24965
|
if (JSONStringify$2(incoming) !== JSONStringify$2(existing)) {
|
|
24497
24966
|
return false;
|
|
24498
24967
|
}
|
|
24499
24968
|
return true;
|
|
24500
24969
|
}
|
|
24501
|
-
const ingest$
|
|
24502
|
-
const key = keyBuilderFromType$
|
|
24970
|
+
const ingest$E$1 = function RecordLayoutUserStateRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
24971
|
+
const key = keyBuilderFromType$t(luvio, input);
|
|
24503
24972
|
const ttlToUse = TTL$u;
|
|
24504
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
24973
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$E, "UiApi", VERSION$10$1, RepresentationType$L, equals$S);
|
|
24505
24974
|
return createLink$3(key);
|
|
24506
24975
|
};
|
|
24507
|
-
function getTypeCacheKeys$
|
|
24976
|
+
function getTypeCacheKeys$L$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
24508
24977
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
24509
|
-
const rootKey = keyBuilderFromType$
|
|
24978
|
+
const rootKey = keyBuilderFromType$t(luvio, input);
|
|
24510
24979
|
rootKeySet.set(rootKey, {
|
|
24511
24980
|
namespace: keyPrefix$2,
|
|
24512
|
-
representationName: RepresentationType$
|
|
24981
|
+
representationName: RepresentationType$L,
|
|
24513
24982
|
mergeable: false
|
|
24514
24983
|
});
|
|
24515
24984
|
}
|
|
24516
24985
|
|
|
24517
24986
|
const TTL$t = 900000;
|
|
24518
|
-
const VERSION
|
|
24519
|
-
const RepresentationType$
|
|
24520
|
-
function normalize$
|
|
24987
|
+
const VERSION$$$1 = "49cdd4bc235a6094c3559cc7735b3b6d";
|
|
24988
|
+
const RepresentationType$K = 'RecordUiRepresentation';
|
|
24989
|
+
function normalize$D(input, existing, path, luvio, store, timestamp) {
|
|
24521
24990
|
const input_layoutUserStates = input.layoutUserStates;
|
|
24522
24991
|
const input_layoutUserStates_id = path.fullPath + '__layoutUserStates';
|
|
24523
24992
|
const input_layoutUserStates_keys = Object.keys(input_layoutUserStates);
|
|
@@ -24526,7 +24995,7 @@ function normalize$F(input, existing, path, luvio, store, timestamp) {
|
|
|
24526
24995
|
const key = input_layoutUserStates_keys[i];
|
|
24527
24996
|
const input_layoutUserStates_prop = input_layoutUserStates[key];
|
|
24528
24997
|
const input_layoutUserStates_prop_id = input_layoutUserStates_id + '__' + key;
|
|
24529
|
-
input_layoutUserStates[key] = ingest$
|
|
24998
|
+
input_layoutUserStates[key] = ingest$E$1(input_layoutUserStates_prop, {
|
|
24530
24999
|
fullPath: input_layoutUserStates_prop_id,
|
|
24531
25000
|
propertyName: key,
|
|
24532
25001
|
parent: {
|
|
@@ -24563,7 +25032,7 @@ function normalize$F(input, existing, path, luvio, store, timestamp) {
|
|
|
24563
25032
|
const key = input_layouts_prop_prop_prop_keys[i];
|
|
24564
25033
|
const input_layouts_prop_prop_prop_prop = input_layouts_prop_prop_prop[key];
|
|
24565
25034
|
const input_layouts_prop_prop_prop_prop_id = input_layouts_prop_prop_prop_id + '__' + key;
|
|
24566
|
-
input_layouts_prop_prop_prop[key] = ingest$
|
|
25035
|
+
input_layouts_prop_prop_prop[key] = ingest$F$1(input_layouts_prop_prop_prop_prop, {
|
|
24567
25036
|
fullPath: input_layouts_prop_prop_prop_prop_id,
|
|
24568
25037
|
propertyName: key,
|
|
24569
25038
|
parent: {
|
|
@@ -24585,7 +25054,7 @@ function normalize$F(input, existing, path, luvio, store, timestamp) {
|
|
|
24585
25054
|
const key = input_objectInfos_keys[i];
|
|
24586
25055
|
const input_objectInfos_prop = input_objectInfos[key];
|
|
24587
25056
|
const input_objectInfos_prop_id = input_objectInfos_id + '__' + key;
|
|
24588
|
-
input_objectInfos[key] = ingest$
|
|
25057
|
+
input_objectInfos[key] = ingest$G$1(input_objectInfos_prop, {
|
|
24589
25058
|
fullPath: input_objectInfos_prop_id,
|
|
24590
25059
|
propertyName: key,
|
|
24591
25060
|
parent: {
|
|
@@ -24617,7 +25086,7 @@ function normalize$F(input, existing, path, luvio, store, timestamp) {
|
|
|
24617
25086
|
}
|
|
24618
25087
|
return input;
|
|
24619
25088
|
}
|
|
24620
|
-
function equals$
|
|
25089
|
+
function equals$R(existing, incoming) {
|
|
24621
25090
|
const existing_eTag = existing.eTag;
|
|
24622
25091
|
const incoming_eTag = incoming.eTag;
|
|
24623
25092
|
if (!(existing_eTag === incoming_eTag)) {
|
|
@@ -24680,10 +25149,10 @@ function equals$T(existing, incoming) {
|
|
|
24680
25149
|
}
|
|
24681
25150
|
return true;
|
|
24682
25151
|
}
|
|
24683
|
-
const ingest$
|
|
25152
|
+
const ingest$D$1 = function RecordUiRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
24684
25153
|
const key = path.fullPath;
|
|
24685
25154
|
const ttlToUse = TTL$t;
|
|
24686
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
25155
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$D, "UiApi", VERSION$$$1, RepresentationType$K, equals$R);
|
|
24687
25156
|
return createLink$3(key);
|
|
24688
25157
|
};
|
|
24689
25158
|
|
|
@@ -24728,9 +25197,9 @@ function validateAdapterConfig$12(untrustedConfig, configPropertyNames) {
|
|
|
24728
25197
|
return config;
|
|
24729
25198
|
}
|
|
24730
25199
|
|
|
24731
|
-
const layoutSelections$2 = select$
|
|
24732
|
-
const objectInfoPathSelection = select$
|
|
24733
|
-
const layoutUserStatePathSelector = select$
|
|
25200
|
+
const layoutSelections$2 = select$1D();
|
|
25201
|
+
const objectInfoPathSelection = select$1F();
|
|
25202
|
+
const layoutUserStatePathSelector = select$1C();
|
|
24734
25203
|
function buildRecordUiSelector(recordDefs, layoutTypes, modes, recordOptionalFields) {
|
|
24735
25204
|
const layoutTypeSelections = [];
|
|
24736
25205
|
for (let i = 0, len = layoutTypes.length; i < len; i += 1) {
|
|
@@ -24778,7 +25247,7 @@ function buildRecordUiSelector(recordDefs, layoutTypes, modes, recordOptionalFie
|
|
|
24778
25247
|
return {
|
|
24779
25248
|
kind: 'Fragment',
|
|
24780
25249
|
private: ['eTag'],
|
|
24781
|
-
version: VERSION
|
|
25250
|
+
version: VERSION$$$1,
|
|
24782
25251
|
selections: [
|
|
24783
25252
|
{
|
|
24784
25253
|
kind: 'Link',
|
|
@@ -24980,7 +25449,7 @@ function collectRecordDefs(resp, recordIds) {
|
|
|
24980
25449
|
}
|
|
24981
25450
|
return recordDefs;
|
|
24982
25451
|
}
|
|
24983
|
-
function keyBuilder$
|
|
25452
|
+
function keyBuilder$1O(recordIds, layoutTypes, modes, optionalFields) {
|
|
24984
25453
|
const joinedRecordIds = recordIds.sort().join(',');
|
|
24985
25454
|
const joinedOptionalFields = optionalFields.sort().join(',');
|
|
24986
25455
|
const joinedLayoutTypes = layoutTypes.sort().join(',');
|
|
@@ -25014,7 +25483,7 @@ function markRecordUiOptionalFields(optionalFields, recordLookupFields, recordNo
|
|
|
25014
25483
|
}
|
|
25015
25484
|
function prepareRequest$5(luvio, config) {
|
|
25016
25485
|
const { recordIds, layoutTypes, modes, optionalFields } = config;
|
|
25017
|
-
const key = keyBuilder$
|
|
25486
|
+
const key = keyBuilder$1O(recordIds, layoutTypes, modes, optionalFields);
|
|
25018
25487
|
const selectorKey = buildCachedSelectorKey(key);
|
|
25019
25488
|
const resourceRequest = createResourceRequest$$({
|
|
25020
25489
|
urlParams: {
|
|
@@ -25056,7 +25525,7 @@ function getCacheKeys(keySet, luvio, config, key, originalResponseBody) {
|
|
|
25056
25525
|
node: selPath,
|
|
25057
25526
|
variables: {},
|
|
25058
25527
|
};
|
|
25059
|
-
luvio.storeIngest(key, ingest$
|
|
25528
|
+
luvio.storeIngest(key, ingest$D$1, responseBody);
|
|
25060
25529
|
const snapshot = luvio.storeLookup(sel, buildSnapshotRefresh$4(luvio, config));
|
|
25061
25530
|
if (snapshot.state === 'Error') {
|
|
25062
25531
|
return new StoreKeyMap();
|
|
@@ -25101,7 +25570,7 @@ function onFetchResponseSuccess$I(luvio, config, selectorKey, key, responseBody)
|
|
|
25101
25570
|
variables: {},
|
|
25102
25571
|
};
|
|
25103
25572
|
luvio.storePublish(selectorKey, sel);
|
|
25104
|
-
luvio.storeIngest(key, ingest$
|
|
25573
|
+
luvio.storeIngest(key, ingest$D$1, responseBody);
|
|
25105
25574
|
// During ingestion, only valid records are stored.
|
|
25106
25575
|
const recordNodes = [];
|
|
25107
25576
|
const validRecordIds = [];
|
|
@@ -25178,7 +25647,7 @@ function publishDependencies(luvio, recordIds, depKeys) {
|
|
|
25178
25647
|
function buildCachedSelectorSnapshot(context, storeLookup) {
|
|
25179
25648
|
const { config } = context;
|
|
25180
25649
|
const { recordIds, layoutTypes, modes, optionalFields } = config;
|
|
25181
|
-
const key = keyBuilder$
|
|
25650
|
+
const key = keyBuilder$1O(recordIds, layoutTypes, modes, optionalFields);
|
|
25182
25651
|
const cachedSelectorKey = buildCachedSelectorKey(key);
|
|
25183
25652
|
return storeLookup({
|
|
25184
25653
|
recordId: cachedSelectorKey,
|
|
@@ -25258,7 +25727,7 @@ var LayoutMode$2;
|
|
|
25258
25727
|
})(LayoutMode$2 || (LayoutMode$2 = {}));
|
|
25259
25728
|
|
|
25260
25729
|
const DEFAULT_MODE = LayoutMode$2.View;
|
|
25261
|
-
const layoutSelections$1 = select$
|
|
25730
|
+
const layoutSelections$1 = select$1D();
|
|
25262
25731
|
function buildSnapshotRefresh$3(luvio, config) {
|
|
25263
25732
|
return {
|
|
25264
25733
|
config,
|
|
@@ -25266,7 +25735,7 @@ function buildSnapshotRefresh$3(luvio, config) {
|
|
|
25266
25735
|
};
|
|
25267
25736
|
}
|
|
25268
25737
|
function buildObjectInfoSelectorKey(luvio, objectInfo) {
|
|
25269
|
-
const key = keyBuilderFromType$
|
|
25738
|
+
const key = keyBuilderFromType$v(luvio, objectInfo);
|
|
25270
25739
|
return `${key}__implicit__fields__selector`;
|
|
25271
25740
|
}
|
|
25272
25741
|
function refresh$1(luvio, config) {
|
|
@@ -25488,7 +25957,7 @@ const buildObjectInfoCacheSnapshot = (recordLayoutSnapshot) => (context, storeLo
|
|
|
25488
25957
|
};
|
|
25489
25958
|
const buildLayoutModeCacheSnapshot = (apiName, recordTypeId, layoutType, mode) => (context, storeLookup) => {
|
|
25490
25959
|
const { luvio } = context;
|
|
25491
|
-
const key = keyBuilder$
|
|
25960
|
+
const key = keyBuilder$1Q(luvio, {
|
|
25492
25961
|
objectApiName: apiName,
|
|
25493
25962
|
recordTypeId,
|
|
25494
25963
|
layoutType,
|
|
@@ -25797,371 +26266,6 @@ const factory$f = (luvio) => {
|
|
|
25797
26266
|
}, { contextId: contextId$4 });
|
|
25798
26267
|
};
|
|
25799
26268
|
|
|
25800
|
-
const VERSION$10$1 = "0b29241fd9ed04bb61fde26b3f558ac4";
|
|
25801
|
-
const RepresentationType$L = 'ListInfoSummaryRepresentation';
|
|
25802
|
-
function keyBuilder$1P(luvio, config) {
|
|
25803
|
-
return keyPrefix$2 + '::' + RepresentationType$L + ':' + (config.id === null ? '' : config.id);
|
|
25804
|
-
}
|
|
25805
|
-
function keyBuilderFromType$u(luvio, object) {
|
|
25806
|
-
const keyParams = {
|
|
25807
|
-
id: object.id
|
|
25808
|
-
};
|
|
25809
|
-
return keyBuilder$1P(luvio, keyParams);
|
|
25810
|
-
}
|
|
25811
|
-
function normalize$E(input, existing, path, luvio, store, timestamp) {
|
|
25812
|
-
return input;
|
|
25813
|
-
}
|
|
25814
|
-
const select$1D = function ListInfoSummaryRepresentationSelect() {
|
|
25815
|
-
return {
|
|
25816
|
-
kind: 'Fragment',
|
|
25817
|
-
version: VERSION$10$1,
|
|
25818
|
-
private: [],
|
|
25819
|
-
selections: [
|
|
25820
|
-
{
|
|
25821
|
-
name: 'apiName',
|
|
25822
|
-
kind: 'Scalar'
|
|
25823
|
-
},
|
|
25824
|
-
{
|
|
25825
|
-
name: 'id',
|
|
25826
|
-
kind: 'Scalar'
|
|
25827
|
-
},
|
|
25828
|
-
{
|
|
25829
|
-
name: 'label',
|
|
25830
|
-
kind: 'Scalar'
|
|
25831
|
-
},
|
|
25832
|
-
{
|
|
25833
|
-
name: 'url',
|
|
25834
|
-
kind: 'Scalar'
|
|
25835
|
-
}
|
|
25836
|
-
]
|
|
25837
|
-
};
|
|
25838
|
-
};
|
|
25839
|
-
function equals$S(existing, incoming) {
|
|
25840
|
-
const existing_apiName = existing.apiName;
|
|
25841
|
-
const incoming_apiName = incoming.apiName;
|
|
25842
|
-
if (!(existing_apiName === incoming_apiName)) {
|
|
25843
|
-
return false;
|
|
25844
|
-
}
|
|
25845
|
-
const existing_label = existing.label;
|
|
25846
|
-
const incoming_label = incoming.label;
|
|
25847
|
-
if (!(existing_label === incoming_label)) {
|
|
25848
|
-
return false;
|
|
25849
|
-
}
|
|
25850
|
-
const existing_url = existing.url;
|
|
25851
|
-
const incoming_url = incoming.url;
|
|
25852
|
-
if (!(existing_url === incoming_url)) {
|
|
25853
|
-
return false;
|
|
25854
|
-
}
|
|
25855
|
-
const existing_id = existing.id;
|
|
25856
|
-
const incoming_id = incoming.id;
|
|
25857
|
-
if (!(existing_id === incoming_id)) {
|
|
25858
|
-
return false;
|
|
25859
|
-
}
|
|
25860
|
-
return true;
|
|
25861
|
-
}
|
|
25862
|
-
const ingest$E$1 = function ListInfoSummaryRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
25863
|
-
const key = keyBuilderFromType$u(luvio, input);
|
|
25864
|
-
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
25865
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$E, "UiApi", VERSION$10$1, RepresentationType$L, equals$S);
|
|
25866
|
-
return createLink$3(key);
|
|
25867
|
-
};
|
|
25868
|
-
function getTypeCacheKeys$M$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
25869
|
-
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
25870
|
-
const rootKey = keyBuilderFromType$u(luvio, input);
|
|
25871
|
-
rootKeySet.set(rootKey, {
|
|
25872
|
-
namespace: keyPrefix$2,
|
|
25873
|
-
representationName: RepresentationType$L,
|
|
25874
|
-
mergeable: false
|
|
25875
|
-
});
|
|
25876
|
-
}
|
|
25877
|
-
|
|
25878
|
-
const VERSION$$$1 = "d0cadb0927f908b5b64694e1cff0b2d7";
|
|
25879
|
-
const RepresentationType$K = 'ListInfoSummaryCollectionRepresentation';
|
|
25880
|
-
function keyBuilder$1O(luvio, config) {
|
|
25881
|
-
return keyPrefix$2 + '::' + RepresentationType$K + ':' + config.objectApiName + ':' + (config.queryString === null ? '' : config.queryString) + ':' + config.recentListsOnly;
|
|
25882
|
-
}
|
|
25883
|
-
function keyBuilderFromType$t(luvio, object) {
|
|
25884
|
-
const keyParams = {
|
|
25885
|
-
objectApiName: object.objectApiName,
|
|
25886
|
-
queryString: object.queryString,
|
|
25887
|
-
recentListsOnly: object.recentListsOnly
|
|
25888
|
-
};
|
|
25889
|
-
return keyBuilder$1O(luvio, keyParams);
|
|
25890
|
-
}
|
|
25891
|
-
function normalize$D(input, existing, path, luvio, store, timestamp) {
|
|
25892
|
-
const input_lists = input.lists;
|
|
25893
|
-
const input_lists_id = path.fullPath + '__lists';
|
|
25894
|
-
for (let i = 0; i < input_lists.length; i++) {
|
|
25895
|
-
const input_lists_item = input_lists[i];
|
|
25896
|
-
let input_lists_item_id = input_lists_id + '__' + i;
|
|
25897
|
-
input_lists[i] = ingest$E$1(input_lists_item, {
|
|
25898
|
-
fullPath: input_lists_item_id,
|
|
25899
|
-
propertyName: i,
|
|
25900
|
-
parent: {
|
|
25901
|
-
data: input,
|
|
25902
|
-
key: path.fullPath,
|
|
25903
|
-
existing: existing,
|
|
25904
|
-
},
|
|
25905
|
-
ttl: path.ttl
|
|
25906
|
-
}, luvio, store, timestamp);
|
|
25907
|
-
}
|
|
25908
|
-
return input;
|
|
25909
|
-
}
|
|
25910
|
-
const select$1C = function ListInfoSummaryCollectionRepresentationSelect(paginationParams) {
|
|
25911
|
-
return {
|
|
25912
|
-
kind: 'Fragment',
|
|
25913
|
-
reader: true,
|
|
25914
|
-
synthetic: false,
|
|
25915
|
-
version: VERSION$$$1,
|
|
25916
|
-
read: (source, reader) => {
|
|
25917
|
-
const sink = {};
|
|
25918
|
-
if (paginationParams === undefined) {
|
|
25919
|
-
return sink;
|
|
25920
|
-
}
|
|
25921
|
-
const metadata = reader.resolveMetadata(source, PAGINATION_VERSION$1);
|
|
25922
|
-
const currentPageMetadata = getPageMetadata$1(metadata, paginationParams);
|
|
25923
|
-
const { startOffset, endOffset, metadataProperties } = currentPageMetadata;
|
|
25924
|
-
if (metadata !== undefined && startOffset !== undefined && endOffset !== undefined) {
|
|
25925
|
-
const itemsProperty = 'lists';
|
|
25926
|
-
reader.enterPath(itemsProperty);
|
|
25927
|
-
const itemsSource = source[itemsProperty];
|
|
25928
|
-
const itemsSink = [];
|
|
25929
|
-
const allSink = [];
|
|
25930
|
-
for (let i = startOffset; i < endOffset; i++) {
|
|
25931
|
-
reader.enterPath(i);
|
|
25932
|
-
reader.readSingleLink(i, {
|
|
25933
|
-
name: 'lists',
|
|
25934
|
-
kind: 'Link',
|
|
25935
|
-
fragment: select$1D()
|
|
25936
|
-
}, itemsSource, allSink, i - startOffset);
|
|
25937
|
-
if (reader.getIsDataMissing() === false) {
|
|
25938
|
-
itemsSink[i - startOffset] = allSink[i - startOffset];
|
|
25939
|
-
}
|
|
25940
|
-
reader.exitPath();
|
|
25941
|
-
}
|
|
25942
|
-
reader.exitPath();
|
|
25943
|
-
reader.assignNonScalar(sink, itemsProperty, itemsSink);
|
|
25944
|
-
}
|
|
25945
|
-
reader.enterPath('currentPageToken');
|
|
25946
|
-
reader.readScalar('currentPageToken', metadataProperties, sink);
|
|
25947
|
-
reader.exitPath();
|
|
25948
|
-
reader.enterPath('nextPageToken');
|
|
25949
|
-
reader.readScalar('nextPageToken', metadataProperties, sink);
|
|
25950
|
-
reader.exitPath();
|
|
25951
|
-
reader.enterPath('previousPageToken');
|
|
25952
|
-
reader.readScalar('previousPageToken', metadataProperties, sink);
|
|
25953
|
-
reader.exitPath();
|
|
25954
|
-
reader.enterPath('pageSize');
|
|
25955
|
-
reader.readScalar('pageSize', metadataProperties, sink);
|
|
25956
|
-
reader.exitPath();
|
|
25957
|
-
reader.enterPath('count');
|
|
25958
|
-
reader.readScalar('count', metadataProperties, sink);
|
|
25959
|
-
reader.exitPath();
|
|
25960
|
-
reader.enterPath('objectApiName');
|
|
25961
|
-
reader.readScalar('objectApiName', source, sink);
|
|
25962
|
-
reader.exitPath();
|
|
25963
|
-
reader.enterPath('queryString');
|
|
25964
|
-
reader.readScalar('queryString', source, sink);
|
|
25965
|
-
reader.exitPath();
|
|
25966
|
-
reader.enterPath('recentListsOnly');
|
|
25967
|
-
reader.readScalar('recentListsOnly', source, sink);
|
|
25968
|
-
reader.exitPath();
|
|
25969
|
-
return sink;
|
|
25970
|
-
},
|
|
25971
|
-
};
|
|
25972
|
-
};
|
|
25973
|
-
function getPageMetadata$1(paginationMetadata, paginationParams) {
|
|
25974
|
-
const metadataProperties = {};
|
|
25975
|
-
const sink = {
|
|
25976
|
-
metadataProperties
|
|
25977
|
-
};
|
|
25978
|
-
if (paginationMetadata === undefined) {
|
|
25979
|
-
return sink;
|
|
25980
|
-
}
|
|
25981
|
-
const { token, pageSize } = paginationParams;
|
|
25982
|
-
const pageTokenAndOffset = getPageTokenAndOffset$1(paginationMetadata, token);
|
|
25983
|
-
if (pageTokenAndOffset === undefined) {
|
|
25984
|
-
return sink;
|
|
25985
|
-
}
|
|
25986
|
-
const [pageToken, startOffset] = pageTokenAndOffset;
|
|
25987
|
-
const endOffset = pageEndOffset$1(paginationMetadata, startOffset, pageSize);
|
|
25988
|
-
sink.startOffset = startOffset;
|
|
25989
|
-
sink.endOffset = endOffset;
|
|
25990
|
-
metadataProperties.currentPageToken = pageToken;
|
|
25991
|
-
const nextToken = getNextPageToken$1(paginationMetadata, endOffset);
|
|
25992
|
-
if (nextToken !== undefined) {
|
|
25993
|
-
metadataProperties.nextPageToken = nextToken;
|
|
25994
|
-
}
|
|
25995
|
-
const previousToken = getPreviousPageToken(paginationMetadata, startOffset, pageSize);
|
|
25996
|
-
if (previousToken !== undefined) {
|
|
25997
|
-
metadataProperties.previousPageToken = previousToken;
|
|
25998
|
-
}
|
|
25999
|
-
metadataProperties.pageSize = pageSize;
|
|
26000
|
-
metadataProperties.count = endOffset - startOffset;
|
|
26001
|
-
return sink;
|
|
26002
|
-
}
|
|
26003
|
-
function equals$R(existing, incoming) {
|
|
26004
|
-
const existing_recentListsOnly = existing.recentListsOnly;
|
|
26005
|
-
const incoming_recentListsOnly = incoming.recentListsOnly;
|
|
26006
|
-
if (!(existing_recentListsOnly === incoming_recentListsOnly)) {
|
|
26007
|
-
return false;
|
|
26008
|
-
}
|
|
26009
|
-
const existing_count = existing.count;
|
|
26010
|
-
const incoming_count = incoming.count;
|
|
26011
|
-
if (!(existing_count === incoming_count)) {
|
|
26012
|
-
return false;
|
|
26013
|
-
}
|
|
26014
|
-
const existing_pageSize = existing.pageSize;
|
|
26015
|
-
const incoming_pageSize = incoming.pageSize;
|
|
26016
|
-
if (!(existing_pageSize === incoming_pageSize)) {
|
|
26017
|
-
return false;
|
|
26018
|
-
}
|
|
26019
|
-
const existing_currentPageToken = existing.currentPageToken;
|
|
26020
|
-
const incoming_currentPageToken = incoming.currentPageToken;
|
|
26021
|
-
if (!(existing_currentPageToken === incoming_currentPageToken)) {
|
|
26022
|
-
return false;
|
|
26023
|
-
}
|
|
26024
|
-
const existing_currentPageUrl = existing.currentPageUrl;
|
|
26025
|
-
const incoming_currentPageUrl = incoming.currentPageUrl;
|
|
26026
|
-
if (!(existing_currentPageUrl === incoming_currentPageUrl)) {
|
|
26027
|
-
return false;
|
|
26028
|
-
}
|
|
26029
|
-
const existing_eTag = existing.eTag;
|
|
26030
|
-
const incoming_eTag = incoming.eTag;
|
|
26031
|
-
if (!(existing_eTag === incoming_eTag)) {
|
|
26032
|
-
return false;
|
|
26033
|
-
}
|
|
26034
|
-
const existing_objectApiName = existing.objectApiName;
|
|
26035
|
-
const incoming_objectApiName = incoming.objectApiName;
|
|
26036
|
-
if (!(existing_objectApiName === incoming_objectApiName)) {
|
|
26037
|
-
return false;
|
|
26038
|
-
}
|
|
26039
|
-
const existing_lists = existing.lists;
|
|
26040
|
-
const incoming_lists = incoming.lists;
|
|
26041
|
-
const equals_lists_items = equalsArray(existing_lists, incoming_lists, (existing_lists_item, incoming_lists_item) => {
|
|
26042
|
-
if (!(existing_lists_item.__ref === incoming_lists_item.__ref)) {
|
|
26043
|
-
return false;
|
|
26044
|
-
}
|
|
26045
|
-
});
|
|
26046
|
-
if (equals_lists_items === false) {
|
|
26047
|
-
return false;
|
|
26048
|
-
}
|
|
26049
|
-
const existing_nextPageToken = existing.nextPageToken;
|
|
26050
|
-
const incoming_nextPageToken = incoming.nextPageToken;
|
|
26051
|
-
if (!(existing_nextPageToken === incoming_nextPageToken)) {
|
|
26052
|
-
return false;
|
|
26053
|
-
}
|
|
26054
|
-
const existing_nextPageUrl = existing.nextPageUrl;
|
|
26055
|
-
const incoming_nextPageUrl = incoming.nextPageUrl;
|
|
26056
|
-
if (!(existing_nextPageUrl === incoming_nextPageUrl)) {
|
|
26057
|
-
return false;
|
|
26058
|
-
}
|
|
26059
|
-
const existing_previousPageToken = existing.previousPageToken;
|
|
26060
|
-
const incoming_previousPageToken = incoming.previousPageToken;
|
|
26061
|
-
if (!(existing_previousPageToken === incoming_previousPageToken)) {
|
|
26062
|
-
return false;
|
|
26063
|
-
}
|
|
26064
|
-
const existing_previousPageUrl = existing.previousPageUrl;
|
|
26065
|
-
const incoming_previousPageUrl = incoming.previousPageUrl;
|
|
26066
|
-
if (!(existing_previousPageUrl === incoming_previousPageUrl)) {
|
|
26067
|
-
return false;
|
|
26068
|
-
}
|
|
26069
|
-
const existing_queryString = existing.queryString;
|
|
26070
|
-
const incoming_queryString = incoming.queryString;
|
|
26071
|
-
if (!(existing_queryString === incoming_queryString)) {
|
|
26072
|
-
return false;
|
|
26073
|
-
}
|
|
26074
|
-
return true;
|
|
26075
|
-
}
|
|
26076
|
-
const ingest$D$1 = function ListInfoSummaryCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
26077
|
-
const key = keyBuilderFromType$t(luvio, input);
|
|
26078
|
-
const existingRecord = store.readEntry(key);
|
|
26079
|
-
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
26080
|
-
let incomingRecord = normalize$D(input, store.readEntry(key), {
|
|
26081
|
-
fullPath: key,
|
|
26082
|
-
parent: path.parent,
|
|
26083
|
-
propertyName: path.propertyName,
|
|
26084
|
-
ttl: ttlToUse
|
|
26085
|
-
}, luvio, store, timestamp);
|
|
26086
|
-
const paginationKey = key + '__pagination';
|
|
26087
|
-
const existingPaginationMetadata = store.readEntry(paginationKey);
|
|
26088
|
-
const { count: count, currentPageToken: token, nextPageToken: nextToken, pageSize: pageSize, previousPageToken: previousToken, lists: items } = input;
|
|
26089
|
-
const startOffset = existingPaginationMetadata === undefined ? 0 : offsetFromToken$1(existingPaginationMetadata, token);
|
|
26090
|
-
const incomingPaginationMetadata = {
|
|
26091
|
-
[token]: startOffset,
|
|
26092
|
-
};
|
|
26093
|
-
const nextOffset = startOffset + items.length;
|
|
26094
|
-
if (nextToken === null) {
|
|
26095
|
-
incomingPaginationMetadata.__END__ = nextOffset;
|
|
26096
|
-
}
|
|
26097
|
-
else {
|
|
26098
|
-
incomingPaginationMetadata[nextToken] = nextOffset;
|
|
26099
|
-
if (existingPaginationMetadata !== undefined) {
|
|
26100
|
-
const listEndOffset = existingPaginationMetadata.__END__;
|
|
26101
|
-
if (listEndOffset !== undefined && nextOffset >= listEndOffset) {
|
|
26102
|
-
incomingPaginationMetadata.__END__ = undefined;
|
|
26103
|
-
}
|
|
26104
|
-
}
|
|
26105
|
-
}
|
|
26106
|
-
if (previousToken !== null) {
|
|
26107
|
-
incomingPaginationMetadata[previousToken] = Math.max(startOffset - pageSize, 0);
|
|
26108
|
-
}
|
|
26109
|
-
const mergedPaginationMetadata = mergeMetadata$1(existingPaginationMetadata, incomingPaginationMetadata);
|
|
26110
|
-
if (existingPaginationMetadata === undefined ||
|
|
26111
|
-
equalsObject$1(existingPaginationMetadata, mergedPaginationMetadata, (existingProp, incomingProp) => {
|
|
26112
|
-
return existingProp === incomingProp;
|
|
26113
|
-
}) === false) {
|
|
26114
|
-
luvio.storePublish(paginationKey, mergedPaginationMetadata);
|
|
26115
|
-
luvio.publishStoreMetadata(paginationKey, paginationStoreMetadata$1);
|
|
26116
|
-
}
|
|
26117
|
-
assignMetadataLink$1(incomingRecord, paginationKey);
|
|
26118
|
-
if (existingRecord !== undefined && existingRecord.lists !== undefined) {
|
|
26119
|
-
incomingRecord.lists = [
|
|
26120
|
-
...existingRecord.lists.slice(0, startOffset),
|
|
26121
|
-
...incomingRecord.lists,
|
|
26122
|
-
...existingRecord.lists.slice(nextOffset),
|
|
26123
|
-
];
|
|
26124
|
-
}
|
|
26125
|
-
if (existingRecord === undefined || equals$R(existingRecord, incomingRecord) === false) {
|
|
26126
|
-
luvio.storePublish(key, incomingRecord);
|
|
26127
|
-
}
|
|
26128
|
-
if (ttlToUse !== undefined) {
|
|
26129
|
-
const storeMetadataParams = {
|
|
26130
|
-
ttl: ttlToUse,
|
|
26131
|
-
namespace: "UiApi",
|
|
26132
|
-
version: VERSION$$$1,
|
|
26133
|
-
representationName: RepresentationType$K,
|
|
26134
|
-
ingestionTimestamp: timestamp,
|
|
26135
|
-
};
|
|
26136
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
26137
|
-
}
|
|
26138
|
-
return createLink$3(key);
|
|
26139
|
-
};
|
|
26140
|
-
function getTypeCacheKeys$L$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
26141
|
-
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
26142
|
-
const rootKey = keyBuilderFromType$t(luvio, input);
|
|
26143
|
-
rootKeySet.set(rootKey, {
|
|
26144
|
-
namespace: keyPrefix$2,
|
|
26145
|
-
representationName: RepresentationType$K,
|
|
26146
|
-
mergeable: true
|
|
26147
|
-
});
|
|
26148
|
-
rootKeySet.set(rootKey + '__pagination', {
|
|
26149
|
-
namespace: keyPrefix$2,
|
|
26150
|
-
representationName: RepresentationType$K,
|
|
26151
|
-
mergeable: true
|
|
26152
|
-
});
|
|
26153
|
-
const input_lists_length = input.lists.length;
|
|
26154
|
-
for (let i = 0; i < input_lists_length; i++) {
|
|
26155
|
-
getTypeCacheKeys$M$1(rootKeySet, luvio, input.lists[i]);
|
|
26156
|
-
}
|
|
26157
|
-
}
|
|
26158
|
-
const notifyUpdateAvailableFactory$2 = (luvio) => {
|
|
26159
|
-
return function notifyListInfoSummaryUpdateAvailable(configs) {
|
|
26160
|
-
const keys = configs.map(c => keyBuilder$1O(luvio, c));
|
|
26161
|
-
return luvio.notifyStoreUpdateAvailable(keys);
|
|
26162
|
-
};
|
|
26163
|
-
};
|
|
26164
|
-
|
|
26165
26269
|
const notifyUpdateAvailableFactory$1 = (luvio) => {
|
|
26166
26270
|
return function notifyListInfoUpdateAvailable(configs) {
|
|
26167
26271
|
const generated_notifyUpdateAvailable = notifyUpdateAvailableFactory$6(luvio);
|
|
@@ -28453,7 +28557,7 @@ const getRecordEditActionsAdapterFactory = (luvio) => function UiApi__getRecordE
|
|
|
28453
28557
|
buildCachedSnapshotCachePolicy$D, buildNetworkSnapshotCachePolicy$E);
|
|
28454
28558
|
};
|
|
28455
28559
|
|
|
28456
|
-
function validate$
|
|
28560
|
+
function validate$1f(obj, path = 'ActionRelatedListSingleBatchInputRepresentation') {
|
|
28457
28561
|
const v_error = (() => {
|
|
28458
28562
|
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
28459
28563
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -28864,7 +28968,7 @@ function typeCheckConfig$S(untrustedConfig) {
|
|
|
28864
28968
|
const untrustedConfig_relatedListsActionParameters_array = [];
|
|
28865
28969
|
for (let i = 0, arrayLength = untrustedConfig_relatedListsActionParameters.length; i < arrayLength; i++) {
|
|
28866
28970
|
const untrustedConfig_relatedListsActionParameters_item = untrustedConfig_relatedListsActionParameters[i];
|
|
28867
|
-
const referenceActionRelatedListSingleBatchInputRepresentationValidationError = validate$
|
|
28971
|
+
const referenceActionRelatedListSingleBatchInputRepresentationValidationError = validate$1f(untrustedConfig_relatedListsActionParameters_item);
|
|
28868
28972
|
if (referenceActionRelatedListSingleBatchInputRepresentationValidationError === null) {
|
|
28869
28973
|
untrustedConfig_relatedListsActionParameters_array.push(untrustedConfig_relatedListsActionParameters_item);
|
|
28870
28974
|
}
|
|
@@ -30369,7 +30473,7 @@ function keyBuilder$1b(luvio, params) {
|
|
|
30369
30473
|
return keyPrefix$2 + '::RecordLayoutRepresentation:(' + 'formFactor:' + params.queryParams.formFactor + ',' + 'layoutType:' + params.queryParams.layoutType + ',' + 'mode:' + params.queryParams.mode + ',' + 'recordTypeId:' + params.queryParams.recordTypeId + ',' + 'objectApiName:' + params.urlParams.objectApiName + ')';
|
|
30370
30474
|
}
|
|
30371
30475
|
function getResponseCacheKeys$I(storeKeyMap, luvio, resourceParams, response) {
|
|
30372
|
-
getTypeCacheKeys$
|
|
30476
|
+
getTypeCacheKeys$M$1(storeKeyMap, luvio, response);
|
|
30373
30477
|
}
|
|
30374
30478
|
function ingestError$q(luvio, params, error, snapshotRefresh) {
|
|
30375
30479
|
const key = keyBuilder$1b(luvio, params);
|
|
@@ -30377,8 +30481,8 @@ function ingestError$q(luvio, params, error, snapshotRefresh) {
|
|
|
30377
30481
|
const storeMetadataParams = {
|
|
30378
30482
|
ttl: TTL$v,
|
|
30379
30483
|
namespace: keyPrefix$2,
|
|
30380
|
-
version: VERSION$
|
|
30381
|
-
representationName: RepresentationType$
|
|
30484
|
+
version: VERSION$11$1,
|
|
30485
|
+
representationName: RepresentationType$M
|
|
30382
30486
|
};
|
|
30383
30487
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
30384
30488
|
return errorSnapshot;
|
|
@@ -30399,11 +30503,11 @@ function createResourceRequest$L(config) {
|
|
|
30399
30503
|
|
|
30400
30504
|
function onFetchResponseSuccess$t(luvio, config, resourceParams, response) {
|
|
30401
30505
|
const { body } = response;
|
|
30402
|
-
const key = keyBuilder$
|
|
30403
|
-
luvio.storeIngest(key, ingest$
|
|
30506
|
+
const key = keyBuilder$1Q(luvio, config);
|
|
30507
|
+
luvio.storeIngest(key, ingest$F$1, body);
|
|
30404
30508
|
const snapshot = luvio.storeLookup({
|
|
30405
30509
|
recordId: key,
|
|
30406
|
-
node: select$
|
|
30510
|
+
node: select$1D(),
|
|
30407
30511
|
variables: {},
|
|
30408
30512
|
}, {
|
|
30409
30513
|
config,
|
|
@@ -30448,8 +30552,8 @@ function validateAdapterConfig$O(untrustedConfig, _configPropertyNames) {
|
|
|
30448
30552
|
function buildCachedSnapshotCachePolicy$w(context, storeLookup) {
|
|
30449
30553
|
const { luvio, config } = context;
|
|
30450
30554
|
const selector = {
|
|
30451
|
-
recordId: keyBuilder$
|
|
30452
|
-
node: select$
|
|
30555
|
+
recordId: keyBuilder$1Q(luvio, config),
|
|
30556
|
+
node: select$1D(),
|
|
30453
30557
|
variables: {},
|
|
30454
30558
|
};
|
|
30455
30559
|
return storeLookup(selector, {
|
|
@@ -30518,7 +30622,7 @@ const getLayoutAdapterFactory = (luvio) => function UiApi__getLayout(untrustedCo
|
|
|
30518
30622
|
};
|
|
30519
30623
|
|
|
30520
30624
|
function getResponseCacheKeys$H(storeKeyMap, luvio, resourceParams, response) {
|
|
30521
|
-
getTypeCacheKeys$
|
|
30625
|
+
getTypeCacheKeys$L$1(storeKeyMap, luvio, response);
|
|
30522
30626
|
}
|
|
30523
30627
|
function createResourceRequest$K(config) {
|
|
30524
30628
|
const headers = {};
|
|
@@ -30536,7 +30640,7 @@ function createResourceRequest$K(config) {
|
|
|
30536
30640
|
|
|
30537
30641
|
function buildCachedSnapshot$5(luvio, config) {
|
|
30538
30642
|
const { objectApiName, recordTypeId, layoutType, mode } = config;
|
|
30539
|
-
const key = keyBuilder$
|
|
30643
|
+
const key = keyBuilder$1P(luvio, {
|
|
30540
30644
|
apiName: objectApiName,
|
|
30541
30645
|
recordTypeId,
|
|
30542
30646
|
layoutType,
|
|
@@ -30544,7 +30648,7 @@ function buildCachedSnapshot$5(luvio, config) {
|
|
|
30544
30648
|
});
|
|
30545
30649
|
const selector = {
|
|
30546
30650
|
recordId: key,
|
|
30547
|
-
node: select$
|
|
30651
|
+
node: select$1C(),
|
|
30548
30652
|
variables: {},
|
|
30549
30653
|
};
|
|
30550
30654
|
return luvio.storeLookup(selector, {
|
|
@@ -30577,7 +30681,7 @@ function onFetchResponseSuccess$s(luvio, config, key, response) {
|
|
|
30577
30681
|
body.recordTypeId = recordTypeId;
|
|
30578
30682
|
body.layoutType = layoutType;
|
|
30579
30683
|
body.mode = mode;
|
|
30580
|
-
luvio.storeIngest(key, ingest$
|
|
30684
|
+
luvio.storeIngest(key, ingest$E$1, body);
|
|
30581
30685
|
const snapshot = buildCachedSnapshot$5(luvio, config);
|
|
30582
30686
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
30583
30687
|
}
|
|
@@ -30591,7 +30695,7 @@ function onFetchResponseError$s(luvio, config, key, error) {
|
|
|
30591
30695
|
}
|
|
30592
30696
|
function prepareRequest$4(luvio, config) {
|
|
30593
30697
|
const { recordTypeId, layoutType, mode, objectApiName } = config;
|
|
30594
|
-
const key = keyBuilder$
|
|
30698
|
+
const key = keyBuilder$1P(luvio, {
|
|
30595
30699
|
apiName: objectApiName,
|
|
30596
30700
|
recordTypeId,
|
|
30597
30701
|
layoutType,
|
|
@@ -30656,13 +30760,13 @@ function buildCachedSnapshotCachePolicy$v(context, storeLookup) {
|
|
|
30656
30760
|
const { config, luvio } = context;
|
|
30657
30761
|
const { objectApiName, recordTypeId, layoutType, mode } = config;
|
|
30658
30762
|
const selector = {
|
|
30659
|
-
recordId: keyBuilder$
|
|
30763
|
+
recordId: keyBuilder$1P(luvio, {
|
|
30660
30764
|
apiName: objectApiName,
|
|
30661
30765
|
recordTypeId,
|
|
30662
30766
|
layoutType,
|
|
30663
30767
|
mode,
|
|
30664
30768
|
}),
|
|
30665
|
-
node: select$
|
|
30769
|
+
node: select$1C(),
|
|
30666
30770
|
variables: {},
|
|
30667
30771
|
};
|
|
30668
30772
|
return storeLookup(selector, {
|
|
@@ -31112,22 +31216,22 @@ function createPaginationParams$1(params) {
|
|
|
31112
31216
|
}
|
|
31113
31217
|
function select$13$1(luvio, params) {
|
|
31114
31218
|
const paginationParams = createPaginationParams$1(params);
|
|
31115
|
-
return select$
|
|
31219
|
+
return select$1K(paginationParams);
|
|
31116
31220
|
}
|
|
31117
31221
|
function keyBuilder$17$1(luvio, params) {
|
|
31118
|
-
return keyBuilder$
|
|
31222
|
+
return keyBuilder$1_(luvio, {
|
|
31119
31223
|
objectApiName: params.urlParams.objectApiName,
|
|
31120
31224
|
queryString: params.queryParams.q || null,
|
|
31121
31225
|
recentListsOnly: params.queryParams.recentListsOnly || false
|
|
31122
31226
|
});
|
|
31123
31227
|
}
|
|
31124
31228
|
function getResponseCacheKeys$E(storeKeyMap, luvio, resourceParams, response) {
|
|
31125
|
-
getTypeCacheKeys$
|
|
31229
|
+
getTypeCacheKeys$Q$1(storeKeyMap, luvio, response);
|
|
31126
31230
|
}
|
|
31127
31231
|
function ingestSuccess$w(luvio, resourceParams, response, snapshotRefresh) {
|
|
31128
31232
|
const { body } = response;
|
|
31129
31233
|
const key = keyBuilder$17$1(luvio, resourceParams);
|
|
31130
|
-
luvio.storeIngest(key, ingest$
|
|
31234
|
+
luvio.storeIngest(key, ingest$J$1, body);
|
|
31131
31235
|
const snapshot = luvio.storeLookup({
|
|
31132
31236
|
recordId: key,
|
|
31133
31237
|
node: select$13$1(luvio, resourceParams),
|
|
@@ -31255,7 +31359,7 @@ function getPaginationMetadata$2(luvio, resourceParams) {
|
|
|
31255
31359
|
recordId: key,
|
|
31256
31360
|
node: {
|
|
31257
31361
|
kind: 'Fragment',
|
|
31258
|
-
version: VERSION
|
|
31362
|
+
version: VERSION$15$1,
|
|
31259
31363
|
private: [],
|
|
31260
31364
|
selections: [
|
|
31261
31365
|
{
|
|
@@ -31321,7 +31425,7 @@ const getListInfosByObjectNameAdapterFactory = (luvio) => function UiApi__getLis
|
|
|
31321
31425
|
buildCachedSnapshotCachePolicy$t, buildNetworkSnapshotCachePolicy$u);
|
|
31322
31426
|
};
|
|
31323
31427
|
|
|
31324
|
-
function validate$
|
|
31428
|
+
function validate$15(obj, path = 'ListFilterByInfoInputRepresentation') {
|
|
31325
31429
|
const v_error = (() => {
|
|
31326
31430
|
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
31327
31431
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -31352,7 +31456,7 @@ function validate$14(obj, path = 'ListFilterByInfoInputRepresentation') {
|
|
|
31352
31456
|
return v_error === undefined ? null : v_error;
|
|
31353
31457
|
}
|
|
31354
31458
|
|
|
31355
|
-
function validate$
|
|
31459
|
+
function validate$14(obj, path = 'ListScopeInputRepresentation') {
|
|
31356
31460
|
const v_error = (() => {
|
|
31357
31461
|
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
31358
31462
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -31476,7 +31580,7 @@ function typeCheckConfig$I(untrustedConfig) {
|
|
|
31476
31580
|
const untrustedConfig_filteredByInfo_array = [];
|
|
31477
31581
|
for (let i = 0, arrayLength = untrustedConfig_filteredByInfo.length; i < arrayLength; i++) {
|
|
31478
31582
|
const untrustedConfig_filteredByInfo_item = untrustedConfig_filteredByInfo[i];
|
|
31479
|
-
const referenceListFilterByInfoInputRepresentationValidationError = validate$
|
|
31583
|
+
const referenceListFilterByInfoInputRepresentationValidationError = validate$15(untrustedConfig_filteredByInfo_item);
|
|
31480
31584
|
if (referenceListFilterByInfoInputRepresentationValidationError === null) {
|
|
31481
31585
|
untrustedConfig_filteredByInfo_array.push(untrustedConfig_filteredByInfo_item);
|
|
31482
31586
|
}
|
|
@@ -31484,7 +31588,7 @@ function typeCheckConfig$I(untrustedConfig) {
|
|
|
31484
31588
|
config.filteredByInfo = untrustedConfig_filteredByInfo_array;
|
|
31485
31589
|
}
|
|
31486
31590
|
const untrustedConfig_scope = untrustedConfig.scope;
|
|
31487
|
-
const referenceListScopeInputRepresentationValidationError = validate$
|
|
31591
|
+
const referenceListScopeInputRepresentationValidationError = validate$14(untrustedConfig_scope);
|
|
31488
31592
|
if (referenceListScopeInputRepresentationValidationError === null) {
|
|
31489
31593
|
config.scope = untrustedConfig_scope;
|
|
31490
31594
|
}
|
|
@@ -31752,7 +31856,7 @@ function typeCheckConfig$F(untrustedConfig) {
|
|
|
31752
31856
|
const untrustedConfig_filteredByInfo_array = [];
|
|
31753
31857
|
for (let i = 0, arrayLength = untrustedConfig_filteredByInfo.length; i < arrayLength; i++) {
|
|
31754
31858
|
const untrustedConfig_filteredByInfo_item = untrustedConfig_filteredByInfo[i];
|
|
31755
|
-
const referenceListFilterByInfoInputRepresentationValidationError = validate$
|
|
31859
|
+
const referenceListFilterByInfoInputRepresentationValidationError = validate$15(untrustedConfig_filteredByInfo_item);
|
|
31756
31860
|
if (referenceListFilterByInfoInputRepresentationValidationError === null) {
|
|
31757
31861
|
untrustedConfig_filteredByInfo_array.push(untrustedConfig_filteredByInfo_item);
|
|
31758
31862
|
}
|
|
@@ -31760,7 +31864,7 @@ function typeCheckConfig$F(untrustedConfig) {
|
|
|
31760
31864
|
config.filteredByInfo = untrustedConfig_filteredByInfo_array;
|
|
31761
31865
|
}
|
|
31762
31866
|
const untrustedConfig_scope = untrustedConfig.scope;
|
|
31763
|
-
const referenceListScopeInputRepresentationValidationError = validate$
|
|
31867
|
+
const referenceListScopeInputRepresentationValidationError = validate$14(untrustedConfig_scope);
|
|
31764
31868
|
if (referenceListScopeInputRepresentationValidationError === null) {
|
|
31765
31869
|
config.scope = untrustedConfig_scope;
|
|
31766
31870
|
}
|
|
@@ -32511,7 +32615,7 @@ const getListPreferencesAdapterFactory = (luvio) => function UiApi__getListPrefe
|
|
|
32511
32615
|
buildCachedSnapshotCachePolicy$q, buildNetworkSnapshotCachePolicy$r);
|
|
32512
32616
|
};
|
|
32513
32617
|
|
|
32514
|
-
function validate$
|
|
32618
|
+
function validate$Z(obj, path = 'ListOrderedByInfoInputRepresentation') {
|
|
32515
32619
|
const v_error = (() => {
|
|
32516
32620
|
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
32517
32621
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -32614,7 +32718,7 @@ function typeCheckConfig$C(untrustedConfig) {
|
|
|
32614
32718
|
const untrustedConfig_orderedBy_array = [];
|
|
32615
32719
|
for (let i = 0, arrayLength = untrustedConfig_orderedBy.length; i < arrayLength; i++) {
|
|
32616
32720
|
const untrustedConfig_orderedBy_item = untrustedConfig_orderedBy[i];
|
|
32617
|
-
const referenceListOrderedByInfoInputRepresentationValidationError = validate$
|
|
32721
|
+
const referenceListOrderedByInfoInputRepresentationValidationError = validate$Z(untrustedConfig_orderedBy_item);
|
|
32618
32722
|
if (referenceListOrderedByInfoInputRepresentationValidationError === null) {
|
|
32619
32723
|
untrustedConfig_orderedBy_array.push(untrustedConfig_orderedBy_item);
|
|
32620
32724
|
}
|
|
@@ -33047,8 +33151,8 @@ function selectChildResourceParams$4(luvio, childResources, resourceParams) {
|
|
|
33047
33151
|
reader.enterPath(i);
|
|
33048
33152
|
reader.enterPath(envelopeBodyPath);
|
|
33049
33153
|
const childResource = childResources[i];
|
|
33050
|
-
const childKey = keyBuilder$
|
|
33051
|
-
const childFragment = select$
|
|
33154
|
+
const childKey = keyBuilder$1S(luvio, childResource);
|
|
33155
|
+
const childFragment = select$1E();
|
|
33052
33156
|
const isMissingDataBeforeChildRead = reader.getIsDataMissing();
|
|
33053
33157
|
const childSnapshot = reader.read({
|
|
33054
33158
|
recordId: childKey,
|
|
@@ -33147,10 +33251,10 @@ function getResponseCacheKeys$v(keys, luvio, resourceParams, response) {
|
|
|
33147
33251
|
getResponseCacheKeys$Y(keys, luvio, childResourceParams, childBody);
|
|
33148
33252
|
}
|
|
33149
33253
|
else if (childStatusCode === 404) {
|
|
33150
|
-
const childKey = keyBuilder$
|
|
33254
|
+
const childKey = keyBuilder$1S(luvio, childResourceParams);
|
|
33151
33255
|
keys.set(childKey, {
|
|
33152
33256
|
namespace: keyPrefix$2,
|
|
33153
|
-
representationName: RepresentationType$
|
|
33257
|
+
representationName: RepresentationType$N,
|
|
33154
33258
|
mergeable: false
|
|
33155
33259
|
});
|
|
33156
33260
|
}
|
|
@@ -33163,7 +33267,7 @@ function ingestSuccessChildResourceParams$5(luvio, childResourceParamsArray, chi
|
|
|
33163
33267
|
const now = Date.now();
|
|
33164
33268
|
for (let index = 0, len = childResourceParamsArray.length; index < len; index += 1) {
|
|
33165
33269
|
const childResourceParams = childResourceParamsArray[index];
|
|
33166
|
-
const childKey = keyBuilder$
|
|
33270
|
+
const childKey = keyBuilder$1S(luvio, childResourceParams);
|
|
33167
33271
|
const result = childEnvelopes[index];
|
|
33168
33272
|
const { statusCode: childStatusCode, result: childBody } = result;
|
|
33169
33273
|
if (childStatusCode === 200) {
|
|
@@ -36676,7 +36780,7 @@ const getRelatedListInfoAdapterFactory = (luvio) => function UiApi__getRelatedLi
|
|
|
36676
36780
|
buildCachedSnapshotCachePolicy$d, buildNetworkSnapshotCachePolicy$e);
|
|
36677
36781
|
};
|
|
36678
36782
|
|
|
36679
|
-
function validate$
|
|
36783
|
+
function validate$z(obj, path = 'ListUserPreferenceInputRepresentation') {
|
|
36680
36784
|
const v_error = (() => {
|
|
36681
36785
|
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
36682
36786
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -36753,7 +36857,7 @@ function typeCheckConfig$o(untrustedConfig) {
|
|
|
36753
36857
|
const untrustedConfig_orderedByInfo_array = [];
|
|
36754
36858
|
for (let i = 0, arrayLength = untrustedConfig_orderedByInfo.length; i < arrayLength; i++) {
|
|
36755
36859
|
const untrustedConfig_orderedByInfo_item = untrustedConfig_orderedByInfo[i];
|
|
36756
|
-
const referenceListOrderedByInfoInputRepresentationValidationError = validate$
|
|
36860
|
+
const referenceListOrderedByInfoInputRepresentationValidationError = validate$Z(untrustedConfig_orderedByInfo_item);
|
|
36757
36861
|
if (referenceListOrderedByInfoInputRepresentationValidationError === null) {
|
|
36758
36862
|
untrustedConfig_orderedByInfo_array.push(untrustedConfig_orderedByInfo_item);
|
|
36759
36863
|
}
|
|
@@ -36761,7 +36865,7 @@ function typeCheckConfig$o(untrustedConfig) {
|
|
|
36761
36865
|
config.orderedByInfo = untrustedConfig_orderedByInfo_array;
|
|
36762
36866
|
}
|
|
36763
36867
|
const untrustedConfig_userPreferences = untrustedConfig.userPreferences;
|
|
36764
|
-
const referenceListUserPreferenceInputRepresentationValidationError = validate$
|
|
36868
|
+
const referenceListUserPreferenceInputRepresentationValidationError = validate$z(untrustedConfig_userPreferences);
|
|
36765
36869
|
if (referenceListUserPreferenceInputRepresentationValidationError === null) {
|
|
36766
36870
|
config.userPreferences = untrustedConfig_userPreferences;
|
|
36767
36871
|
}
|
|
@@ -37416,7 +37520,7 @@ function typeCheckConfig$l(untrustedConfig) {
|
|
|
37416
37520
|
const untrustedConfig_orderedBy_array = [];
|
|
37417
37521
|
for (let i = 0, arrayLength = untrustedConfig_orderedBy.length; i < arrayLength; i++) {
|
|
37418
37522
|
const untrustedConfig_orderedBy_item = untrustedConfig_orderedBy[i];
|
|
37419
|
-
const referenceListOrderedByInfoInputRepresentationValidationError = validate$
|
|
37523
|
+
const referenceListOrderedByInfoInputRepresentationValidationError = validate$Z(untrustedConfig_orderedBy_item);
|
|
37420
37524
|
if (referenceListOrderedByInfoInputRepresentationValidationError === null) {
|
|
37421
37525
|
untrustedConfig_orderedBy_array.push(untrustedConfig_orderedBy_item);
|
|
37422
37526
|
}
|
|
@@ -37464,7 +37568,7 @@ const updateRelatedListPreferencesAdapterFactory = (luvio) => {
|
|
|
37464
37568
|
};
|
|
37465
37569
|
};
|
|
37466
37570
|
|
|
37467
|
-
function validate$
|
|
37571
|
+
function validate$x(obj, path = 'RelatedListRecordsSingleBatchInputRepresentation') {
|
|
37468
37572
|
const v_error = (() => {
|
|
37469
37573
|
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
37470
37574
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -38418,7 +38522,7 @@ function typeCheckConfig$k(untrustedConfig) {
|
|
|
38418
38522
|
const untrustedConfig_relatedListParameters_array = [];
|
|
38419
38523
|
for (let i = 0, arrayLength = untrustedConfig_relatedListParameters.length; i < arrayLength; i++) {
|
|
38420
38524
|
const untrustedConfig_relatedListParameters_item = untrustedConfig_relatedListParameters[i];
|
|
38421
|
-
const referenceRelatedListRecordsSingleBatchInputRepresentationValidationError = validate$
|
|
38525
|
+
const referenceRelatedListRecordsSingleBatchInputRepresentationValidationError = validate$x(untrustedConfig_relatedListParameters_item);
|
|
38422
38526
|
if (referenceRelatedListRecordsSingleBatchInputRepresentationValidationError === null) {
|
|
38423
38527
|
untrustedConfig_relatedListParameters_array.push(untrustedConfig_relatedListParameters_item);
|
|
38424
38528
|
}
|
|
@@ -39212,7 +39316,7 @@ const getLookupMetadataAdapterFactory = (luvio) => function UiApi__getLookupMeta
|
|
|
39212
39316
|
buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$7);
|
|
39213
39317
|
};
|
|
39214
39318
|
|
|
39215
|
-
function validate$
|
|
39319
|
+
function validate$m(obj, path = 'SearchDataCategoryInputRepresentation') {
|
|
39216
39320
|
const v_error = (() => {
|
|
39217
39321
|
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
39218
39322
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -39243,7 +39347,7 @@ function validate$l(obj, path = 'SearchDataCategoryInputRepresentation') {
|
|
|
39243
39347
|
return v_error === undefined ? null : v_error;
|
|
39244
39348
|
}
|
|
39245
39349
|
|
|
39246
|
-
function validate$
|
|
39350
|
+
function validate$l(obj, path = 'SearchFilterInputRepresentation') {
|
|
39247
39351
|
const v_error = (() => {
|
|
39248
39352
|
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
39249
39353
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -39312,7 +39416,7 @@ function validate$k(obj, path = 'SearchFilterInputRepresentation') {
|
|
|
39312
39416
|
return v_error === undefined ? null : v_error;
|
|
39313
39417
|
}
|
|
39314
39418
|
|
|
39315
|
-
function validate$
|
|
39419
|
+
function validate$k(obj, path = 'SearchObjectOptionsRepresentation') {
|
|
39316
39420
|
const v_error = (() => {
|
|
39317
39421
|
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
39318
39422
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -39325,7 +39429,7 @@ function validate$j(obj, path = 'SearchObjectOptionsRepresentation') {
|
|
|
39325
39429
|
for (let i = 0; i < obj_dataCategories.length; i++) {
|
|
39326
39430
|
const obj_dataCategories_item = obj_dataCategories[i];
|
|
39327
39431
|
const path_dataCategories_item = path_dataCategories + '[' + i + ']';
|
|
39328
|
-
const referencepath_dataCategories_itemValidationError = validate$
|
|
39432
|
+
const referencepath_dataCategories_itemValidationError = validate$m(obj_dataCategories_item, path_dataCategories_item);
|
|
39329
39433
|
if (referencepath_dataCategories_itemValidationError !== null) {
|
|
39330
39434
|
let message = 'Object doesn\'t match SearchDataCategoryInputRepresentation (at "' + path_dataCategories_item + '")\n';
|
|
39331
39435
|
message += referencepath_dataCategories_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -39340,7 +39444,7 @@ function validate$j(obj, path = 'SearchObjectOptionsRepresentation') {
|
|
|
39340
39444
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
39341
39445
|
const obj_filters_item = obj_filters[i];
|
|
39342
39446
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
39343
|
-
const referencepath_filters_itemValidationError = validate$
|
|
39447
|
+
const referencepath_filters_itemValidationError = validate$l(obj_filters_item, path_filters_item);
|
|
39344
39448
|
if (referencepath_filters_itemValidationError !== null) {
|
|
39345
39449
|
let message = 'Object doesn\'t match SearchFilterInputRepresentation (at "' + path_filters_item + '")\n';
|
|
39346
39450
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -39471,7 +39575,7 @@ function typeCheckConfig$f(untrustedConfig) {
|
|
|
39471
39575
|
for (let i = 0, arrayLength = untrustedConfig_searchObjectOptions_keys.length; i < arrayLength; i++) {
|
|
39472
39576
|
const key = untrustedConfig_searchObjectOptions_keys[i];
|
|
39473
39577
|
const untrustedConfig_searchObjectOptions_prop = untrustedConfig_searchObjectOptions[key];
|
|
39474
|
-
const referenceSearchObjectOptionsRepresentationValidationError = validate$
|
|
39578
|
+
const referenceSearchObjectOptionsRepresentationValidationError = validate$k(untrustedConfig_searchObjectOptions_prop);
|
|
39475
39579
|
if (referenceSearchObjectOptionsRepresentationValidationError === null) {
|
|
39476
39580
|
if (untrustedConfig_searchObjectOptions_object !== undefined) {
|
|
39477
39581
|
untrustedConfig_searchObjectOptions_object[key] = untrustedConfig_searchObjectOptions_prop;
|
|
@@ -39674,7 +39778,7 @@ function typeCheckConfig$e(untrustedConfig) {
|
|
|
39674
39778
|
const untrustedConfig_filters_array = [];
|
|
39675
39779
|
for (let i = 0, arrayLength = untrustedConfig_filters.length; i < arrayLength; i++) {
|
|
39676
39780
|
const untrustedConfig_filters_item = untrustedConfig_filters[i];
|
|
39677
|
-
const referenceSearchFilterInputRepresentationValidationError = validate$
|
|
39781
|
+
const referenceSearchFilterInputRepresentationValidationError = validate$l(untrustedConfig_filters_item);
|
|
39678
39782
|
if (referenceSearchFilterInputRepresentationValidationError === null) {
|
|
39679
39783
|
untrustedConfig_filters_array.push(untrustedConfig_filters_item);
|
|
39680
39784
|
}
|
|
@@ -40262,7 +40366,7 @@ function updateLayoutUserState$1(luvio, config, key, updateRequest) {
|
|
|
40262
40366
|
const { body } = response;
|
|
40263
40367
|
return luvio.handleSuccessResponse(() => ingestAndBroadcast(luvio, key, config, body), () => {
|
|
40264
40368
|
const cache = new StoreKeyMap();
|
|
40265
|
-
getTypeCacheKeys$
|
|
40369
|
+
getTypeCacheKeys$L$1(cache, luvio, body);
|
|
40266
40370
|
return cache;
|
|
40267
40371
|
});
|
|
40268
40372
|
}, (err) => {
|
|
@@ -40272,7 +40376,7 @@ function updateLayoutUserState$1(luvio, config, key, updateRequest) {
|
|
|
40272
40376
|
}
|
|
40273
40377
|
function ingestAndBroadcast(luvio, key, config, body) {
|
|
40274
40378
|
addAdditionalFieldsForNorming(body, config.objectApiName, config.recordTypeId, config.layoutType, config.mode);
|
|
40275
|
-
luvio.storeIngest(key, ingest$
|
|
40379
|
+
luvio.storeIngest(key, ingest$E$1, body);
|
|
40276
40380
|
return luvio.storeBroadcast().then(() => {
|
|
40277
40381
|
return buildCachedSnapshot$5(luvio, config);
|
|
40278
40382
|
});
|
|
@@ -40343,7 +40447,7 @@ const factory$b = (luvio) => {
|
|
|
40343
40447
|
recordTypeId,
|
|
40344
40448
|
},
|
|
40345
40449
|
});
|
|
40346
|
-
const key = keyBuilder$
|
|
40450
|
+
const key = keyBuilder$1P(luvio, {
|
|
40347
40451
|
apiName: objectApiName,
|
|
40348
40452
|
recordTypeId,
|
|
40349
40453
|
layoutType,
|
|
@@ -40406,7 +40510,7 @@ const getListRecordsByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValid
|
|
|
40406
40510
|
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$12(getListRecordsByName_ConfigPropertyMetadata);
|
|
40407
40511
|
function keyBuilder$9$1(luvio, config) {
|
|
40408
40512
|
const resourceParams = createResourceParams$8(config);
|
|
40409
|
-
return keyBuilder$
|
|
40513
|
+
return keyBuilder$1Z(luvio, resourceParams);
|
|
40410
40514
|
}
|
|
40411
40515
|
function typeCheckConfig$b(untrustedConfig) {
|
|
40412
40516
|
const config = {};
|
|
@@ -40425,7 +40529,7 @@ function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
|
40425
40529
|
}
|
|
40426
40530
|
function adapterFragment$1$1(luvio, config) {
|
|
40427
40531
|
const resourceParams = createResourceParams$8(config);
|
|
40428
|
-
return select$
|
|
40532
|
+
return select$1J(luvio, resourceParams);
|
|
40429
40533
|
}
|
|
40430
40534
|
function onFetchResponseSuccess$2$1(luvio, config, resourceParams, response) {
|
|
40431
40535
|
const snapshot = ingestSuccess$P(luvio, resourceParams, response, {
|
|
@@ -40488,7 +40592,7 @@ function getCachedItemsNumber(cacheSnapshot) {
|
|
|
40488
40592
|
return items.length;
|
|
40489
40593
|
}
|
|
40490
40594
|
function getPaginationMetadata(luvio, resourceParams) {
|
|
40491
|
-
const key = keyBuilder$
|
|
40595
|
+
const key = keyBuilder$1Z(luvio, resourceParams);
|
|
40492
40596
|
const selector = {
|
|
40493
40597
|
recordId: key,
|
|
40494
40598
|
node: {
|
|
@@ -41142,7 +41246,7 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
|
41142
41246
|
const input_layout = input.layout;
|
|
41143
41247
|
const input_layout_id = path.fullPath + '__layout';
|
|
41144
41248
|
if (input_layout !== null && typeof input_layout === 'object') {
|
|
41145
|
-
input.layout = ingest$
|
|
41249
|
+
input.layout = ingest$F$1(input_layout, {
|
|
41146
41250
|
fullPath: input_layout_id,
|
|
41147
41251
|
propertyName: 'layout',
|
|
41148
41252
|
parent: {
|
|
@@ -41161,7 +41265,7 @@ function normalize$1(input, existing, path, luvio, store, timestamp) {
|
|
|
41161
41265
|
const key = input_objectInfos_keys[i];
|
|
41162
41266
|
const input_objectInfos_prop = input_objectInfos[key];
|
|
41163
41267
|
const input_objectInfos_prop_id = input_objectInfos_id + '__' + key;
|
|
41164
|
-
input_objectInfos[key] = ingest$
|
|
41268
|
+
input_objectInfos[key] = ingest$G$1(input_objectInfos_prop, {
|
|
41165
41269
|
fullPath: input_objectInfos_prop_id,
|
|
41166
41270
|
propertyName: key,
|
|
41167
41271
|
parent: {
|
|
@@ -41229,14 +41333,14 @@ function getTypeCacheKeys$5$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
41229
41333
|
mergeable: false
|
|
41230
41334
|
});
|
|
41231
41335
|
if (input.layout !== null && typeof input.layout === 'object') {
|
|
41232
|
-
getTypeCacheKeys$
|
|
41336
|
+
getTypeCacheKeys$M$1(rootKeySet, luvio, input.layout);
|
|
41233
41337
|
}
|
|
41234
41338
|
const input_objectInfos = input.objectInfos;
|
|
41235
41339
|
const input_objectInfos_keys = ObjectKeys$2(input_objectInfos);
|
|
41236
41340
|
const input_objectInfos_length = input_objectInfos_keys.length;
|
|
41237
41341
|
for (let i = 0; i < input_objectInfos_length; i++) {
|
|
41238
41342
|
const key = input_objectInfos_keys[i];
|
|
41239
|
-
getTypeCacheKeys$
|
|
41343
|
+
getTypeCacheKeys$N$1(rootKeySet, luvio, input_objectInfos[key]);
|
|
41240
41344
|
}
|
|
41241
41345
|
getTypeCacheKeys$6$1(rootKeySet, luvio, input.record, () => rootKey + "__" + "record");
|
|
41242
41346
|
}
|
|
@@ -41288,8 +41392,8 @@ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
|
41288
41392
|
}
|
|
41289
41393
|
|
|
41290
41394
|
const contextId$2 = `${keyPrefix$2}__${adapterName$4$1}`;
|
|
41291
|
-
const layoutSelections = select$
|
|
41292
|
-
const objectInfoSelections = select$
|
|
41395
|
+
const layoutSelections = select$1D();
|
|
41396
|
+
const objectInfoSelections = select$1F();
|
|
41293
41397
|
function buildSelector(resp) {
|
|
41294
41398
|
const recordSelections = buildSelectionFromRecord(resp.record);
|
|
41295
41399
|
return [
|
|
@@ -41635,7 +41739,7 @@ const dynamicSelect$2 = function dynamicRecordDefaultsTemplateCloneRepresentatio
|
|
|
41635
41739
|
name: 'objectInfos',
|
|
41636
41740
|
kind: 'Link',
|
|
41637
41741
|
map: true,
|
|
41638
|
-
fragment: select$
|
|
41742
|
+
fragment: select$1F()
|
|
41639
41743
|
} : params.objectInfos;
|
|
41640
41744
|
const recordPathSelection = params.record === undefined ? {
|
|
41641
41745
|
name: 'record',
|
|
@@ -41683,7 +41787,7 @@ function getTypeCacheKeys$3$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
41683
41787
|
const input_objectInfos_length = input_objectInfos_keys.length;
|
|
41684
41788
|
for (let i = 0; i < input_objectInfos_length; i++) {
|
|
41685
41789
|
const key = input_objectInfos_keys[i];
|
|
41686
|
-
getTypeCacheKeys$
|
|
41790
|
+
getTypeCacheKeys$N$1(rootKeySet, luvio, input_objectInfos[key]);
|
|
41687
41791
|
}
|
|
41688
41792
|
getTypeCacheKeys$4$1(rootKeySet, luvio, input.record);
|
|
41689
41793
|
}
|
|
@@ -41717,7 +41821,7 @@ function selectFields$5(fields) {
|
|
|
41717
41821
|
function createFieldsIngest$2(params) {
|
|
41718
41822
|
const { fields, optionalFields, trackedFields, recordConflictMap } = params;
|
|
41719
41823
|
const ingest = dynamicIngest$2({
|
|
41720
|
-
objectInfos: ingest$
|
|
41824
|
+
objectInfos: ingest$G$1,
|
|
41721
41825
|
record: createFieldsIngest$3(params)
|
|
41722
41826
|
});
|
|
41723
41827
|
return (data, path, luvio, store, timestamp) => {
|
|
@@ -42161,7 +42265,7 @@ const dynamicSelect = function dynamicRecordDefaultsTemplateCreateRepresentation
|
|
|
42161
42265
|
name: 'objectInfos',
|
|
42162
42266
|
kind: 'Link',
|
|
42163
42267
|
map: true,
|
|
42164
|
-
fragment: select$
|
|
42268
|
+
fragment: select$1F()
|
|
42165
42269
|
} : params.objectInfos;
|
|
42166
42270
|
const recordPathSelection = params.record === undefined ? {
|
|
42167
42271
|
name: 'record',
|
|
@@ -42209,7 +42313,7 @@ function getTypeCacheKeys$1$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
42209
42313
|
const input_objectInfos_length = input_objectInfos_keys.length;
|
|
42210
42314
|
for (let i = 0; i < input_objectInfos_length; i++) {
|
|
42211
42315
|
const key = input_objectInfos_keys[i];
|
|
42212
|
-
getTypeCacheKeys$
|
|
42316
|
+
getTypeCacheKeys$N$1(rootKeySet, luvio, input_objectInfos[key]);
|
|
42213
42317
|
}
|
|
42214
42318
|
getTypeCacheKeys$2$1(rootKeySet, luvio, input.record);
|
|
42215
42319
|
}
|
|
@@ -42243,7 +42347,7 @@ function selectFields$2(fields) {
|
|
|
42243
42347
|
function createFieldsIngest(params) {
|
|
42244
42348
|
const { fields, optionalFields, trackedFields, recordConflictMap } = params;
|
|
42245
42349
|
const ingest = dynamicIngest({
|
|
42246
|
-
objectInfos: ingest$
|
|
42350
|
+
objectInfos: ingest$G$1,
|
|
42247
42351
|
record: createFieldsIngest$1(params)
|
|
42248
42352
|
});
|
|
42249
42353
|
return (data, path, luvio, store, timestamp) => {
|
|
@@ -43775,13 +43879,19 @@ withDefaultLuvio((luvio) => {
|
|
|
43775
43879
|
allowFunction: instrumentation$3.notifyRecordUpdateAvailableAllowed,
|
|
43776
43880
|
dropFunction: instrumentation$3.notifyRecordUpdateAvailableDropped,
|
|
43777
43881
|
});
|
|
43778
|
-
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListViewSummaryUpdateAvailable', notifyUpdateAvailableFactory$
|
|
43779
|
-
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoSummaryUpdateAvailable', notifyUpdateAvailableFactory$
|
|
43882
|
+
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListViewSummaryUpdateAvailable', notifyUpdateAvailableFactory$2));
|
|
43883
|
+
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoSummaryUpdateAvailable', notifyUpdateAvailableFactory$3));
|
|
43780
43884
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoUpdateAvailable', notifyUpdateAvailableFactory$1));
|
|
43781
43885
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListRecordCollectionUpdateAvailable', notifyUpdateAvailableFactory$4));
|
|
43782
43886
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyQuickActionDefaultsUpdateAvailable', notifyUpdateAvailableFactory));
|
|
43887
|
+
// Setting up storeWatchers for custom notifyUpdateAvailable endpoints
|
|
43888
|
+
setupListRecordCollectionStoreWatcher(luvio);
|
|
43889
|
+
setupListSummaryCollectionStoreWatcher(luvio);
|
|
43890
|
+
// Custom notifyUpdateAvailable endpoints for partial key support
|
|
43891
|
+
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
43892
|
+
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
43783
43893
|
});
|
|
43784
|
-
// version: 1.
|
|
43894
|
+
// version: 1.276.0-58fd72593
|
|
43785
43895
|
|
|
43786
43896
|
var ldsIdempotencyWriteDisabled = {
|
|
43787
43897
|
isOpen: function (e) {
|
|
@@ -44719,10 +44829,7 @@ function flushInMemoryStoreValuesToDurableStore(store, durableStore, durableStor
|
|
|
44719
44829
|
const entries = wasVisited === true || enableDurableMetadataRefresh === false
|
|
44720
44830
|
? durableRecords
|
|
44721
44831
|
: refreshedDurableRecords;
|
|
44722
|
-
|
|
44723
|
-
setRecordTo(entries, key,
|
|
44724
|
-
// dont send record data with metadata refresh
|
|
44725
|
-
isMetadataRefresh ? undefined : record, metadata);
|
|
44832
|
+
setRecordTo(entries, key, record, metadata);
|
|
44726
44833
|
}
|
|
44727
44834
|
const durableStoreOperations = additionalDurableStoreOperations;
|
|
44728
44835
|
const recordKeys = keys$7(durableRecords);
|
|
@@ -56263,13 +56370,21 @@ function buildSyntheticRecordRepresentation(luvio, createOperation, userId, obje
|
|
|
56263
56370
|
draftFields[DEFAULT_FIELD_LAST_MODIFIED_DATE] = { value: timestampString, displayValue: null };
|
|
56264
56371
|
draftFields[DEFAULT_FIELD_OWNER_ID] = { value: userId, displayValue: null };
|
|
56265
56372
|
draftFields[DEFAULT_FIELD_ID] = { value: recordId, displayValue: null };
|
|
56266
|
-
|
|
56267
|
-
|
|
56268
|
-
|
|
56269
|
-
|
|
56270
|
-
|
|
56271
|
-
|
|
56272
|
-
|
|
56373
|
+
const allObjectFields = keys$3$1(objectInfo.fields);
|
|
56374
|
+
allObjectFields.forEach((fieldName) => {
|
|
56375
|
+
if (draftFields[fieldName] === undefined) {
|
|
56376
|
+
draftFields[fieldName] = { value: null, displayValue: null };
|
|
56377
|
+
}
|
|
56378
|
+
});
|
|
56379
|
+
// TODO [W-14915806]: lightning-record-form injects the `IsPersonAccount`
|
|
56380
|
+
// field for all `Account` and `PersonAccount` records. However, not all
|
|
56381
|
+
// orgs use person accounts, and if that field is not present in the object
|
|
56382
|
+
// info then it is not synthesized. We force it to be synthesized here to
|
|
56383
|
+
// ensure lightning-record-form will work correctly with draft-created
|
|
56384
|
+
// accounts.
|
|
56385
|
+
if ((apiName === 'Account' || apiName === 'PersonAccount') &&
|
|
56386
|
+
draftFields['IsPersonAccount'] === undefined) {
|
|
56387
|
+
draftFields['IsPersonAccount'] = { value: null, displayValue: null };
|
|
56273
56388
|
}
|
|
56274
56389
|
return {
|
|
56275
56390
|
id: recordId,
|
|
@@ -59476,7 +59591,7 @@ function enableObjectInfoCaching(env, ensureObjectInfoCached) {
|
|
|
59476
59591
|
if (representationName === RepresentationType$U) {
|
|
59477
59592
|
incomingRecords.add(key);
|
|
59478
59593
|
}
|
|
59479
|
-
else if (representationName === RepresentationType$
|
|
59594
|
+
else if (representationName === RepresentationType$N) {
|
|
59480
59595
|
incomingObjectInfos.add(key);
|
|
59481
59596
|
}
|
|
59482
59597
|
}
|
|
@@ -60533,6 +60648,7 @@ function findReferenceFieldForSpanningField(fieldName, objectInfo) {
|
|
|
60533
60648
|
function buildFieldUnionArray(existingRecord, incomingRecord, objectInfo) {
|
|
60534
60649
|
const allFields = Array.from(new Set([...Object.keys(existingRecord.fields), ...Object.keys(incomingRecord.fields)]));
|
|
60535
60650
|
const fieldUnion = [];
|
|
60651
|
+
let includesSpanningFields = false;
|
|
60536
60652
|
allFields.forEach((fieldName) => {
|
|
60537
60653
|
const objectInfoField = objectInfo.fields[fieldName];
|
|
60538
60654
|
if (objectInfoField === undefined) {
|
|
@@ -60540,13 +60656,14 @@ function buildFieldUnionArray(existingRecord, incomingRecord, objectInfo) {
|
|
|
60540
60656
|
const referenceField = findReferenceFieldForSpanningField(fieldName, objectInfo);
|
|
60541
60657
|
if (referenceField !== undefined) {
|
|
60542
60658
|
fieldUnion.push(`${fieldName}.Id`);
|
|
60659
|
+
includesSpanningFields = true;
|
|
60543
60660
|
}
|
|
60544
60661
|
}
|
|
60545
60662
|
else {
|
|
60546
60663
|
fieldUnion.push(fieldName);
|
|
60547
60664
|
}
|
|
60548
60665
|
});
|
|
60549
|
-
return fieldUnion;
|
|
60666
|
+
return { fields: fieldUnion, includesSpanningFields };
|
|
60550
60667
|
}
|
|
60551
60668
|
/**
|
|
60552
60669
|
* Merges (if possible) an incoming record from a priming session with an existing record in the durable store.
|
|
@@ -60578,7 +60695,7 @@ function mergeRecord(existingRecord, incomingRecord, objectInfo) {
|
|
|
60578
60695
|
ok: false,
|
|
60579
60696
|
code: 'conflict-drafts',
|
|
60580
60697
|
hasDraft: true,
|
|
60581
|
-
fieldUnion: buildFieldUnionArray(existingRecord, incomingRecord, objectInfo),
|
|
60698
|
+
fieldUnion: buildFieldUnionArray(existingRecord, incomingRecord, objectInfo).fields,
|
|
60582
60699
|
};
|
|
60583
60700
|
}
|
|
60584
60701
|
// Check if incoming record's Etag is equal to the existing one
|
|
@@ -60640,10 +60757,19 @@ function mergeRecord(existingRecord, incomingRecord, objectInfo) {
|
|
|
60640
60757
|
};
|
|
60641
60758
|
}
|
|
60642
60759
|
// If Etags do not match and the incoming record does not contain all fields, re-request the record
|
|
60760
|
+
const { fields, includesSpanningFields } = buildFieldUnionArray(existingRecord, incomingRecord, objectInfo);
|
|
60761
|
+
if (includesSpanningFields) {
|
|
60762
|
+
return {
|
|
60763
|
+
ok: false,
|
|
60764
|
+
code: 'conflict-spanning-record',
|
|
60765
|
+
fieldUnion: fields,
|
|
60766
|
+
hasDraft: false,
|
|
60767
|
+
};
|
|
60768
|
+
}
|
|
60643
60769
|
return {
|
|
60644
60770
|
ok: false,
|
|
60645
60771
|
code: 'conflict-missing-fields',
|
|
60646
|
-
fieldUnion:
|
|
60772
|
+
fieldUnion: fields,
|
|
60647
60773
|
hasDraft: false,
|
|
60648
60774
|
};
|
|
60649
60775
|
}
|
|
@@ -61691,7 +61817,7 @@ register$1({
|
|
|
61691
61817
|
id: '@salesforce/lds-network-adapter',
|
|
61692
61818
|
instrument: instrument$2,
|
|
61693
61819
|
});
|
|
61694
|
-
// version: 1.
|
|
61820
|
+
// version: 1.276.0-dcebc4076
|
|
61695
61821
|
|
|
61696
61822
|
const { create: create$3, keys: keys$3 } = Object;
|
|
61697
61823
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -80085,7 +80211,7 @@ register$1({
|
|
|
80085
80211
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
80086
80212
|
instrument: instrument$1,
|
|
80087
80213
|
});
|
|
80088
|
-
// version: 1.
|
|
80214
|
+
// version: 1.276.0-58fd72593
|
|
80089
80215
|
|
|
80090
80216
|
// On core the unstable adapters are re-exported with different names,
|
|
80091
80217
|
// we want to match them here.
|
|
@@ -82339,7 +82465,7 @@ withDefaultLuvio((luvio) => {
|
|
|
82339
82465
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
82340
82466
|
graphQLImperative = ldsAdapter;
|
|
82341
82467
|
});
|
|
82342
|
-
// version: 1.
|
|
82468
|
+
// version: 1.276.0-58fd72593
|
|
82343
82469
|
|
|
82344
82470
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
82345
82471
|
__proto__: null,
|
|
@@ -83037,7 +83163,7 @@ const callbacks$1 = [];
|
|
|
83037
83163
|
function register(r) {
|
|
83038
83164
|
callbacks$1.forEach((callback) => callback(r));
|
|
83039
83165
|
}
|
|
83040
|
-
// version: 1.
|
|
83166
|
+
// version: 1.276.0-dcebc4076
|
|
83041
83167
|
|
|
83042
83168
|
/**
|
|
83043
83169
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -87942,4 +88068,4 @@ const { luvio } = getRuntime();
|
|
|
87942
88068
|
setDefaultLuvio({ luvio });
|
|
87943
88069
|
|
|
87944
88070
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
87945
|
-
// version: 1.
|
|
88071
|
+
// version: 1.276.0-dcebc4076
|