@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
|
@@ -4034,7 +4034,7 @@
|
|
|
4034
4034
|
}
|
|
4035
4035
|
return resourceParams;
|
|
4036
4036
|
}
|
|
4037
|
-
// engine version: 0.154.
|
|
4037
|
+
// engine version: 0.154.12-43ac02c6
|
|
4038
4038
|
|
|
4039
4039
|
/**
|
|
4040
4040
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -4162,7 +4162,7 @@
|
|
|
4162
4162
|
}
|
|
4163
4163
|
callbacks.push(callback);
|
|
4164
4164
|
}
|
|
4165
|
-
// version: 1.
|
|
4165
|
+
// version: 1.276.0-dcebc4076
|
|
4166
4166
|
|
|
4167
4167
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4168
4168
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15670,7 +15670,7 @@
|
|
|
15670
15670
|
}
|
|
15671
15671
|
return superResult;
|
|
15672
15672
|
}
|
|
15673
|
-
// version: 1.
|
|
15673
|
+
// version: 1.276.0-dcebc4076
|
|
15674
15674
|
|
|
15675
15675
|
function unwrap(data) {
|
|
15676
15676
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16595,7 +16595,7 @@
|
|
|
16595
16595
|
const { apiFamily, name } = metadata;
|
|
16596
16596
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16597
16597
|
}
|
|
16598
|
-
// version: 1.
|
|
16598
|
+
// version: 1.276.0-dcebc4076
|
|
16599
16599
|
|
|
16600
16600
|
/**
|
|
16601
16601
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -16694,7 +16694,7 @@
|
|
|
16694
16694
|
TypeCheckShapes[TypeCheckShapes["Integer"] = 3] = "Integer";
|
|
16695
16695
|
TypeCheckShapes[TypeCheckShapes["Unsupported"] = 4] = "Unsupported";
|
|
16696
16696
|
})(TypeCheckShapes || (TypeCheckShapes = {}));
|
|
16697
|
-
// engine version: 0.154.
|
|
16697
|
+
// engine version: 0.154.12-43ac02c6
|
|
16698
16698
|
|
|
16699
16699
|
const { keys: ObjectKeys$3, create: ObjectCreate$3 } = Object;
|
|
16700
16700
|
|
|
@@ -22259,6 +22259,461 @@
|
|
|
22259
22259
|
};
|
|
22260
22260
|
}
|
|
22261
22261
|
|
|
22262
|
+
const VERSION$16$1 = "0b29241fd9ed04bb61fde26b3f558ac4";
|
|
22263
|
+
const RepresentationType$R = 'ListInfoSummaryRepresentation';
|
|
22264
|
+
function keyBuilder$1$(luvio, config) {
|
|
22265
|
+
return keyPrefix$2 + '::' + RepresentationType$R + ':' + (config.id === null ? '' : config.id);
|
|
22266
|
+
}
|
|
22267
|
+
function keyBuilderFromType$z(luvio, object) {
|
|
22268
|
+
const keyParams = {
|
|
22269
|
+
id: object.id
|
|
22270
|
+
};
|
|
22271
|
+
return keyBuilder$1$(luvio, keyParams);
|
|
22272
|
+
}
|
|
22273
|
+
function normalize$K(input, existing, path, luvio, store, timestamp) {
|
|
22274
|
+
return input;
|
|
22275
|
+
}
|
|
22276
|
+
const select$1L = function ListInfoSummaryRepresentationSelect() {
|
|
22277
|
+
return {
|
|
22278
|
+
kind: 'Fragment',
|
|
22279
|
+
version: VERSION$16$1,
|
|
22280
|
+
private: [],
|
|
22281
|
+
selections: [
|
|
22282
|
+
{
|
|
22283
|
+
name: 'apiName',
|
|
22284
|
+
kind: 'Scalar'
|
|
22285
|
+
},
|
|
22286
|
+
{
|
|
22287
|
+
name: 'id',
|
|
22288
|
+
kind: 'Scalar'
|
|
22289
|
+
},
|
|
22290
|
+
{
|
|
22291
|
+
name: 'label',
|
|
22292
|
+
kind: 'Scalar'
|
|
22293
|
+
},
|
|
22294
|
+
{
|
|
22295
|
+
name: 'url',
|
|
22296
|
+
kind: 'Scalar'
|
|
22297
|
+
}
|
|
22298
|
+
]
|
|
22299
|
+
};
|
|
22300
|
+
};
|
|
22301
|
+
function equals$Y(existing, incoming) {
|
|
22302
|
+
const existing_apiName = existing.apiName;
|
|
22303
|
+
const incoming_apiName = incoming.apiName;
|
|
22304
|
+
if (!(existing_apiName === incoming_apiName)) {
|
|
22305
|
+
return false;
|
|
22306
|
+
}
|
|
22307
|
+
const existing_label = existing.label;
|
|
22308
|
+
const incoming_label = incoming.label;
|
|
22309
|
+
if (!(existing_label === incoming_label)) {
|
|
22310
|
+
return false;
|
|
22311
|
+
}
|
|
22312
|
+
const existing_url = existing.url;
|
|
22313
|
+
const incoming_url = incoming.url;
|
|
22314
|
+
if (!(existing_url === incoming_url)) {
|
|
22315
|
+
return false;
|
|
22316
|
+
}
|
|
22317
|
+
const existing_id = existing.id;
|
|
22318
|
+
const incoming_id = incoming.id;
|
|
22319
|
+
if (!(existing_id === incoming_id)) {
|
|
22320
|
+
return false;
|
|
22321
|
+
}
|
|
22322
|
+
return true;
|
|
22323
|
+
}
|
|
22324
|
+
const ingest$K$1 = function ListInfoSummaryRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
22325
|
+
const key = keyBuilderFromType$z(luvio, input);
|
|
22326
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
22327
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$K, "UiApi", VERSION$16$1, RepresentationType$R, equals$Y);
|
|
22328
|
+
return createLink$3(key);
|
|
22329
|
+
};
|
|
22330
|
+
function getTypeCacheKeys$R$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
22331
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
22332
|
+
const rootKey = keyBuilderFromType$z(luvio, input);
|
|
22333
|
+
rootKeySet.set(rootKey, {
|
|
22334
|
+
namespace: keyPrefix$2,
|
|
22335
|
+
representationName: RepresentationType$R,
|
|
22336
|
+
mergeable: false
|
|
22337
|
+
});
|
|
22338
|
+
}
|
|
22339
|
+
|
|
22340
|
+
const VERSION$15$1 = "d0cadb0927f908b5b64694e1cff0b2d7";
|
|
22341
|
+
const RepresentationType$Q = 'ListInfoSummaryCollectionRepresentation';
|
|
22342
|
+
function keyBuilder$1_(luvio, config) {
|
|
22343
|
+
return keyPrefix$2 + '::' + RepresentationType$Q + ':' + config.objectApiName + ':' + (config.queryString === null ? '' : config.queryString) + ':' + config.recentListsOnly;
|
|
22344
|
+
}
|
|
22345
|
+
function keyBuilderFromType$y(luvio, object) {
|
|
22346
|
+
const keyParams = {
|
|
22347
|
+
objectApiName: object.objectApiName,
|
|
22348
|
+
queryString: object.queryString,
|
|
22349
|
+
recentListsOnly: object.recentListsOnly
|
|
22350
|
+
};
|
|
22351
|
+
return keyBuilder$1_(luvio, keyParams);
|
|
22352
|
+
}
|
|
22353
|
+
function normalize$J(input, existing, path, luvio, store, timestamp) {
|
|
22354
|
+
const input_lists = input.lists;
|
|
22355
|
+
const input_lists_id = path.fullPath + '__lists';
|
|
22356
|
+
for (let i = 0; i < input_lists.length; i++) {
|
|
22357
|
+
const input_lists_item = input_lists[i];
|
|
22358
|
+
let input_lists_item_id = input_lists_id + '__' + i;
|
|
22359
|
+
input_lists[i] = ingest$K$1(input_lists_item, {
|
|
22360
|
+
fullPath: input_lists_item_id,
|
|
22361
|
+
propertyName: i,
|
|
22362
|
+
parent: {
|
|
22363
|
+
data: input,
|
|
22364
|
+
key: path.fullPath,
|
|
22365
|
+
existing: existing,
|
|
22366
|
+
},
|
|
22367
|
+
ttl: path.ttl
|
|
22368
|
+
}, luvio, store, timestamp);
|
|
22369
|
+
}
|
|
22370
|
+
return input;
|
|
22371
|
+
}
|
|
22372
|
+
const select$1K = function ListInfoSummaryCollectionRepresentationSelect(paginationParams) {
|
|
22373
|
+
return {
|
|
22374
|
+
kind: 'Fragment',
|
|
22375
|
+
reader: true,
|
|
22376
|
+
synthetic: false,
|
|
22377
|
+
version: VERSION$15$1,
|
|
22378
|
+
read: (source, reader) => {
|
|
22379
|
+
const sink = {};
|
|
22380
|
+
if (paginationParams === undefined) {
|
|
22381
|
+
return sink;
|
|
22382
|
+
}
|
|
22383
|
+
const metadata = reader.resolveMetadata(source, PAGINATION_VERSION$1);
|
|
22384
|
+
const currentPageMetadata = getPageMetadata$2(metadata, paginationParams);
|
|
22385
|
+
const { startOffset, endOffset, metadataProperties } = currentPageMetadata;
|
|
22386
|
+
if (metadata !== undefined && startOffset !== undefined && endOffset !== undefined) {
|
|
22387
|
+
const itemsProperty = 'lists';
|
|
22388
|
+
reader.enterPath(itemsProperty);
|
|
22389
|
+
const itemsSource = source[itemsProperty];
|
|
22390
|
+
const itemsSink = [];
|
|
22391
|
+
const allSink = [];
|
|
22392
|
+
for (let i = startOffset; i < endOffset; i++) {
|
|
22393
|
+
reader.enterPath(i);
|
|
22394
|
+
reader.readSingleLink(i, {
|
|
22395
|
+
name: 'lists',
|
|
22396
|
+
kind: 'Link',
|
|
22397
|
+
fragment: select$1L()
|
|
22398
|
+
}, itemsSource, allSink, i - startOffset);
|
|
22399
|
+
if (reader.getIsDataMissing() === false) {
|
|
22400
|
+
itemsSink[i - startOffset] = allSink[i - startOffset];
|
|
22401
|
+
}
|
|
22402
|
+
reader.exitPath();
|
|
22403
|
+
}
|
|
22404
|
+
reader.exitPath();
|
|
22405
|
+
reader.assignNonScalar(sink, itemsProperty, itemsSink);
|
|
22406
|
+
}
|
|
22407
|
+
reader.enterPath('currentPageToken');
|
|
22408
|
+
reader.readScalar('currentPageToken', metadataProperties, sink);
|
|
22409
|
+
reader.exitPath();
|
|
22410
|
+
reader.enterPath('nextPageToken');
|
|
22411
|
+
reader.readScalar('nextPageToken', metadataProperties, sink);
|
|
22412
|
+
reader.exitPath();
|
|
22413
|
+
reader.enterPath('previousPageToken');
|
|
22414
|
+
reader.readScalar('previousPageToken', metadataProperties, sink);
|
|
22415
|
+
reader.exitPath();
|
|
22416
|
+
reader.enterPath('pageSize');
|
|
22417
|
+
reader.readScalar('pageSize', metadataProperties, sink);
|
|
22418
|
+
reader.exitPath();
|
|
22419
|
+
reader.enterPath('count');
|
|
22420
|
+
reader.readScalar('count', metadataProperties, sink);
|
|
22421
|
+
reader.exitPath();
|
|
22422
|
+
reader.enterPath('objectApiName');
|
|
22423
|
+
reader.readScalar('objectApiName', source, sink);
|
|
22424
|
+
reader.exitPath();
|
|
22425
|
+
reader.enterPath('queryString');
|
|
22426
|
+
reader.readScalar('queryString', source, sink);
|
|
22427
|
+
reader.exitPath();
|
|
22428
|
+
reader.enterPath('recentListsOnly');
|
|
22429
|
+
reader.readScalar('recentListsOnly', source, sink);
|
|
22430
|
+
reader.exitPath();
|
|
22431
|
+
return sink;
|
|
22432
|
+
},
|
|
22433
|
+
};
|
|
22434
|
+
};
|
|
22435
|
+
function getPageMetadata$2(paginationMetadata, paginationParams) {
|
|
22436
|
+
const metadataProperties = {};
|
|
22437
|
+
const sink = {
|
|
22438
|
+
metadataProperties
|
|
22439
|
+
};
|
|
22440
|
+
if (paginationMetadata === undefined) {
|
|
22441
|
+
return sink;
|
|
22442
|
+
}
|
|
22443
|
+
const { token, pageSize } = paginationParams;
|
|
22444
|
+
const pageTokenAndOffset = getPageTokenAndOffset$1(paginationMetadata, token);
|
|
22445
|
+
if (pageTokenAndOffset === undefined) {
|
|
22446
|
+
return sink;
|
|
22447
|
+
}
|
|
22448
|
+
const [pageToken, startOffset] = pageTokenAndOffset;
|
|
22449
|
+
const endOffset = pageEndOffset$1(paginationMetadata, startOffset, pageSize);
|
|
22450
|
+
sink.startOffset = startOffset;
|
|
22451
|
+
sink.endOffset = endOffset;
|
|
22452
|
+
metadataProperties.currentPageToken = pageToken;
|
|
22453
|
+
const nextToken = getNextPageToken$1(paginationMetadata, endOffset);
|
|
22454
|
+
if (nextToken !== undefined) {
|
|
22455
|
+
metadataProperties.nextPageToken = nextToken;
|
|
22456
|
+
}
|
|
22457
|
+
const previousToken = getPreviousPageToken(paginationMetadata, startOffset, pageSize);
|
|
22458
|
+
if (previousToken !== undefined) {
|
|
22459
|
+
metadataProperties.previousPageToken = previousToken;
|
|
22460
|
+
}
|
|
22461
|
+
metadataProperties.pageSize = pageSize;
|
|
22462
|
+
metadataProperties.count = endOffset - startOffset;
|
|
22463
|
+
return sink;
|
|
22464
|
+
}
|
|
22465
|
+
function equals$X(existing, incoming) {
|
|
22466
|
+
const existing_recentListsOnly = existing.recentListsOnly;
|
|
22467
|
+
const incoming_recentListsOnly = incoming.recentListsOnly;
|
|
22468
|
+
if (!(existing_recentListsOnly === incoming_recentListsOnly)) {
|
|
22469
|
+
return false;
|
|
22470
|
+
}
|
|
22471
|
+
const existing_count = existing.count;
|
|
22472
|
+
const incoming_count = incoming.count;
|
|
22473
|
+
if (!(existing_count === incoming_count)) {
|
|
22474
|
+
return false;
|
|
22475
|
+
}
|
|
22476
|
+
const existing_pageSize = existing.pageSize;
|
|
22477
|
+
const incoming_pageSize = incoming.pageSize;
|
|
22478
|
+
if (!(existing_pageSize === incoming_pageSize)) {
|
|
22479
|
+
return false;
|
|
22480
|
+
}
|
|
22481
|
+
const existing_currentPageToken = existing.currentPageToken;
|
|
22482
|
+
const incoming_currentPageToken = incoming.currentPageToken;
|
|
22483
|
+
if (!(existing_currentPageToken === incoming_currentPageToken)) {
|
|
22484
|
+
return false;
|
|
22485
|
+
}
|
|
22486
|
+
const existing_currentPageUrl = existing.currentPageUrl;
|
|
22487
|
+
const incoming_currentPageUrl = incoming.currentPageUrl;
|
|
22488
|
+
if (!(existing_currentPageUrl === incoming_currentPageUrl)) {
|
|
22489
|
+
return false;
|
|
22490
|
+
}
|
|
22491
|
+
const existing_eTag = existing.eTag;
|
|
22492
|
+
const incoming_eTag = incoming.eTag;
|
|
22493
|
+
if (!(existing_eTag === incoming_eTag)) {
|
|
22494
|
+
return false;
|
|
22495
|
+
}
|
|
22496
|
+
const existing_objectApiName = existing.objectApiName;
|
|
22497
|
+
const incoming_objectApiName = incoming.objectApiName;
|
|
22498
|
+
if (!(existing_objectApiName === incoming_objectApiName)) {
|
|
22499
|
+
return false;
|
|
22500
|
+
}
|
|
22501
|
+
const existing_lists = existing.lists;
|
|
22502
|
+
const incoming_lists = incoming.lists;
|
|
22503
|
+
const equals_lists_items = equalsArray(existing_lists, incoming_lists, (existing_lists_item, incoming_lists_item) => {
|
|
22504
|
+
if (!(existing_lists_item.__ref === incoming_lists_item.__ref)) {
|
|
22505
|
+
return false;
|
|
22506
|
+
}
|
|
22507
|
+
});
|
|
22508
|
+
if (equals_lists_items === false) {
|
|
22509
|
+
return false;
|
|
22510
|
+
}
|
|
22511
|
+
const existing_nextPageToken = existing.nextPageToken;
|
|
22512
|
+
const incoming_nextPageToken = incoming.nextPageToken;
|
|
22513
|
+
if (!(existing_nextPageToken === incoming_nextPageToken)) {
|
|
22514
|
+
return false;
|
|
22515
|
+
}
|
|
22516
|
+
const existing_nextPageUrl = existing.nextPageUrl;
|
|
22517
|
+
const incoming_nextPageUrl = incoming.nextPageUrl;
|
|
22518
|
+
if (!(existing_nextPageUrl === incoming_nextPageUrl)) {
|
|
22519
|
+
return false;
|
|
22520
|
+
}
|
|
22521
|
+
const existing_previousPageToken = existing.previousPageToken;
|
|
22522
|
+
const incoming_previousPageToken = incoming.previousPageToken;
|
|
22523
|
+
if (!(existing_previousPageToken === incoming_previousPageToken)) {
|
|
22524
|
+
return false;
|
|
22525
|
+
}
|
|
22526
|
+
const existing_previousPageUrl = existing.previousPageUrl;
|
|
22527
|
+
const incoming_previousPageUrl = incoming.previousPageUrl;
|
|
22528
|
+
if (!(existing_previousPageUrl === incoming_previousPageUrl)) {
|
|
22529
|
+
return false;
|
|
22530
|
+
}
|
|
22531
|
+
const existing_queryString = existing.queryString;
|
|
22532
|
+
const incoming_queryString = incoming.queryString;
|
|
22533
|
+
if (!(existing_queryString === incoming_queryString)) {
|
|
22534
|
+
return false;
|
|
22535
|
+
}
|
|
22536
|
+
return true;
|
|
22537
|
+
}
|
|
22538
|
+
const ingest$J$1 = function ListInfoSummaryCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
22539
|
+
const key = keyBuilderFromType$y(luvio, input);
|
|
22540
|
+
const existingRecord = store.readEntry(key);
|
|
22541
|
+
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
22542
|
+
let incomingRecord = normalize$J(input, store.readEntry(key), {
|
|
22543
|
+
fullPath: key,
|
|
22544
|
+
parent: path.parent,
|
|
22545
|
+
propertyName: path.propertyName,
|
|
22546
|
+
ttl: ttlToUse
|
|
22547
|
+
}, luvio, store, timestamp);
|
|
22548
|
+
const paginationKey = key + '__pagination';
|
|
22549
|
+
const existingPaginationMetadata = store.readEntry(paginationKey);
|
|
22550
|
+
const { count: count, currentPageToken: token, nextPageToken: nextToken, pageSize: pageSize, previousPageToken: previousToken, lists: items } = input;
|
|
22551
|
+
const startOffset = existingPaginationMetadata === undefined ? 0 : offsetFromToken$1(existingPaginationMetadata, token);
|
|
22552
|
+
const incomingPaginationMetadata = {
|
|
22553
|
+
[token]: startOffset,
|
|
22554
|
+
};
|
|
22555
|
+
const nextOffset = startOffset + items.length;
|
|
22556
|
+
if (nextToken === null) {
|
|
22557
|
+
incomingPaginationMetadata.__END__ = nextOffset;
|
|
22558
|
+
}
|
|
22559
|
+
else {
|
|
22560
|
+
incomingPaginationMetadata[nextToken] = nextOffset;
|
|
22561
|
+
if (existingPaginationMetadata !== undefined) {
|
|
22562
|
+
const listEndOffset = existingPaginationMetadata.__END__;
|
|
22563
|
+
if (listEndOffset !== undefined && nextOffset >= listEndOffset) {
|
|
22564
|
+
incomingPaginationMetadata.__END__ = undefined;
|
|
22565
|
+
}
|
|
22566
|
+
}
|
|
22567
|
+
}
|
|
22568
|
+
if (previousToken !== null) {
|
|
22569
|
+
incomingPaginationMetadata[previousToken] = Math.max(startOffset - pageSize, 0);
|
|
22570
|
+
}
|
|
22571
|
+
const mergedPaginationMetadata = mergeMetadata$1(existingPaginationMetadata, incomingPaginationMetadata);
|
|
22572
|
+
if (existingPaginationMetadata === undefined ||
|
|
22573
|
+
equalsObject$1(existingPaginationMetadata, mergedPaginationMetadata, (existingProp, incomingProp) => {
|
|
22574
|
+
return existingProp === incomingProp;
|
|
22575
|
+
}) === false) {
|
|
22576
|
+
luvio.storePublish(paginationKey, mergedPaginationMetadata);
|
|
22577
|
+
luvio.publishStoreMetadata(paginationKey, paginationStoreMetadata$1);
|
|
22578
|
+
}
|
|
22579
|
+
assignMetadataLink$1(incomingRecord, paginationKey);
|
|
22580
|
+
if (existingRecord !== undefined && existingRecord.lists !== undefined) {
|
|
22581
|
+
incomingRecord.lists = [
|
|
22582
|
+
...existingRecord.lists.slice(0, startOffset),
|
|
22583
|
+
...incomingRecord.lists,
|
|
22584
|
+
...existingRecord.lists.slice(nextOffset),
|
|
22585
|
+
];
|
|
22586
|
+
}
|
|
22587
|
+
if (existingRecord === undefined || equals$X(existingRecord, incomingRecord) === false) {
|
|
22588
|
+
luvio.storePublish(key, incomingRecord);
|
|
22589
|
+
}
|
|
22590
|
+
if (ttlToUse !== undefined) {
|
|
22591
|
+
const storeMetadataParams = {
|
|
22592
|
+
ttl: ttlToUse,
|
|
22593
|
+
namespace: "UiApi",
|
|
22594
|
+
version: VERSION$15$1,
|
|
22595
|
+
representationName: RepresentationType$Q,
|
|
22596
|
+
ingestionTimestamp: timestamp,
|
|
22597
|
+
};
|
|
22598
|
+
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
22599
|
+
}
|
|
22600
|
+
return createLink$3(key);
|
|
22601
|
+
};
|
|
22602
|
+
function getTypeCacheKeys$Q$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
22603
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
22604
|
+
const rootKey = keyBuilderFromType$y(luvio, input);
|
|
22605
|
+
rootKeySet.set(rootKey, {
|
|
22606
|
+
namespace: keyPrefix$2,
|
|
22607
|
+
representationName: RepresentationType$Q,
|
|
22608
|
+
mergeable: true
|
|
22609
|
+
});
|
|
22610
|
+
rootKeySet.set(rootKey + '__pagination', {
|
|
22611
|
+
namespace: keyPrefix$2,
|
|
22612
|
+
representationName: RepresentationType$Q,
|
|
22613
|
+
mergeable: true
|
|
22614
|
+
});
|
|
22615
|
+
const input_lists_length = input.lists.length;
|
|
22616
|
+
for (let i = 0; i < input_lists_length; i++) {
|
|
22617
|
+
getTypeCacheKeys$R$1(rootKeySet, luvio, input.lists[i]);
|
|
22618
|
+
}
|
|
22619
|
+
}
|
|
22620
|
+
const notifyUpdateAvailableFactory$3 = (luvio) => {
|
|
22621
|
+
return function notifyListInfoSummaryUpdateAvailable(configs) {
|
|
22622
|
+
const keys = configs.map(c => keyBuilder$1_(luvio, c));
|
|
22623
|
+
return luvio.notifyStoreUpdateAvailable(keys);
|
|
22624
|
+
};
|
|
22625
|
+
};
|
|
22626
|
+
|
|
22627
|
+
const LIST_RECORDS_PREFIX = keyPrefix$2 + '::' + RepresentationType$T;
|
|
22628
|
+
const LIST_SUMMARY_PREFIX = keyPrefix$2 + '::' + RepresentationType$Q;
|
|
22629
|
+
/**
|
|
22630
|
+
* Watch a Luvio instance for ListRecordCollection and ListInfoSummaryCollection cache entries.
|
|
22631
|
+
*/
|
|
22632
|
+
let listRecordCollectionCache = new Map();
|
|
22633
|
+
let listSummaryCollectionCache = new Map();
|
|
22634
|
+
function getListRecordCollectionKeys(objectApiName, listViewApiName) {
|
|
22635
|
+
const cacheEntriesByObjectApiName = listRecordCollectionCache.get(objectApiName) || new Map();
|
|
22636
|
+
const keys = cacheEntriesByObjectApiName.get(listViewApiName) || [];
|
|
22637
|
+
return [...keys];
|
|
22638
|
+
}
|
|
22639
|
+
function getListSummaryCollectionKeys(objectApiName, recentLists = undefined) {
|
|
22640
|
+
const cacheEntriesByObjectApiName = listSummaryCollectionCache.get(objectApiName) || new Map();
|
|
22641
|
+
const keys = cacheEntriesByObjectApiName.get(recentLists ? 'true' : 'false') || [];
|
|
22642
|
+
const allKeys = recentLists === undefined ? cacheEntriesByObjectApiName.get('true') || [] : [];
|
|
22643
|
+
return [...keys, ...allKeys];
|
|
22644
|
+
}
|
|
22645
|
+
function addListRecordCollectionKey(objectApiName, listViewApiName, key) {
|
|
22646
|
+
const cacheEntryByObjectName = listRecordCollectionCache.get(objectApiName) || new Map();
|
|
22647
|
+
if (!cacheEntryByObjectName.size) {
|
|
22648
|
+
listRecordCollectionCache.set(objectApiName, cacheEntryByObjectName);
|
|
22649
|
+
}
|
|
22650
|
+
const keys = cacheEntryByObjectName.get(listViewApiName) || new Set();
|
|
22651
|
+
if (!keys.size) {
|
|
22652
|
+
cacheEntryByObjectName.set(listViewApiName, keys);
|
|
22653
|
+
}
|
|
22654
|
+
keys.add(key);
|
|
22655
|
+
}
|
|
22656
|
+
function addListSummaryCollectionKey(objectApiName, recentLists, key) {
|
|
22657
|
+
const cacheEntryByObjectName = listSummaryCollectionCache.get(objectApiName) || new Map();
|
|
22658
|
+
if (!cacheEntryByObjectName.size) {
|
|
22659
|
+
listSummaryCollectionCache.set(objectApiName, cacheEntryByObjectName);
|
|
22660
|
+
}
|
|
22661
|
+
const keys = cacheEntryByObjectName.get(recentLists) || new Set();
|
|
22662
|
+
if (!keys.size) {
|
|
22663
|
+
cacheEntryByObjectName.set(recentLists, keys);
|
|
22664
|
+
}
|
|
22665
|
+
keys.add(key);
|
|
22666
|
+
}
|
|
22667
|
+
function removeListRecordCollectionKeys(objectApiName, listViewApiName) {
|
|
22668
|
+
const cacheEntriesByObjectApiName = listRecordCollectionCache.get(objectApiName) || new Map();
|
|
22669
|
+
cacheEntriesByObjectApiName.delete(listViewApiName);
|
|
22670
|
+
}
|
|
22671
|
+
function removeListSummaryCollectionKeys(objectApiName, recentLists = undefined) {
|
|
22672
|
+
const cacheEntriesByObjectApiName = listSummaryCollectionCache.get(objectApiName) || new Map();
|
|
22673
|
+
cacheEntriesByObjectApiName.delete(recentLists ? 'true' : 'false');
|
|
22674
|
+
if (recentLists === undefined) {
|
|
22675
|
+
cacheEntriesByObjectApiName.delete('true');
|
|
22676
|
+
}
|
|
22677
|
+
}
|
|
22678
|
+
function splitListRecordCollectionKey(key) {
|
|
22679
|
+
const keyElements = key.split(':');
|
|
22680
|
+
return {
|
|
22681
|
+
objectApiName: keyElements[3],
|
|
22682
|
+
listViewApiName: keyElements[7],
|
|
22683
|
+
};
|
|
22684
|
+
}
|
|
22685
|
+
function splitListSummaryCollectionKey(key) {
|
|
22686
|
+
const keyElements = key.split(':');
|
|
22687
|
+
return {
|
|
22688
|
+
objectApiName: keyElements[3],
|
|
22689
|
+
recentLists: keyElements[5],
|
|
22690
|
+
};
|
|
22691
|
+
}
|
|
22692
|
+
function setupListRecordCollectionStoreWatcher(luvio) {
|
|
22693
|
+
luvio.storeWatch(LIST_RECORDS_PREFIX, (entries) => {
|
|
22694
|
+
for (let i = 0, len = entries.length; i < len; i++) {
|
|
22695
|
+
const entry = entries[i];
|
|
22696
|
+
if (entry.id.endsWith('__pagination')) {
|
|
22697
|
+
continue;
|
|
22698
|
+
}
|
|
22699
|
+
const { objectApiName, listViewApiName } = splitListRecordCollectionKey(entry.id);
|
|
22700
|
+
addListRecordCollectionKey(objectApiName, listViewApiName, entry.id);
|
|
22701
|
+
}
|
|
22702
|
+
});
|
|
22703
|
+
}
|
|
22704
|
+
function setupListSummaryCollectionStoreWatcher(luvio) {
|
|
22705
|
+
luvio.storeWatch(LIST_SUMMARY_PREFIX, (entries) => {
|
|
22706
|
+
for (let i = 0, len = entries.length; i < len; i++) {
|
|
22707
|
+
const entry = entries[i];
|
|
22708
|
+
if (entry.id.endsWith('__pagination')) {
|
|
22709
|
+
continue;
|
|
22710
|
+
}
|
|
22711
|
+
const { objectApiName, recentLists } = splitListSummaryCollectionKey(entry.id);
|
|
22712
|
+
addListSummaryCollectionKey(objectApiName, recentLists, entry.id);
|
|
22713
|
+
}
|
|
22714
|
+
});
|
|
22715
|
+
}
|
|
22716
|
+
|
|
22262
22717
|
function buildListRefByIdContextKey(listViewId) {
|
|
22263
22718
|
return `listReferenceById::${listViewId}`;
|
|
22264
22719
|
}
|
|
@@ -22487,12 +22942,26 @@
|
|
|
22487
22942
|
},
|
|
22488
22943
|
};
|
|
22489
22944
|
}
|
|
22945
|
+
function setupNotifyAllListRecordUpdateAvailable(luvio) {
|
|
22946
|
+
return (notifyInput) => {
|
|
22947
|
+
const keys = getListRecordCollectionKeys(notifyInput.objectApiName, notifyInput.listViewApiName);
|
|
22948
|
+
removeListRecordCollectionKeys(notifyInput.objectApiName, notifyInput.listViewApiName);
|
|
22949
|
+
return luvio.notifyStoreUpdateAvailable(keys);
|
|
22950
|
+
};
|
|
22951
|
+
}
|
|
22952
|
+
function setupNotifyAllListInfoSummaryUpdateAvailable(luvio) {
|
|
22953
|
+
return (notifyInput) => {
|
|
22954
|
+
const keys = getListSummaryCollectionKeys(notifyInput.objectApiName, notifyInput.recentLists);
|
|
22955
|
+
removeListSummaryCollectionKeys(notifyInput.objectApiName, notifyInput.recentLists);
|
|
22956
|
+
return luvio.notifyStoreUpdateAvailable(keys);
|
|
22957
|
+
};
|
|
22958
|
+
}
|
|
22490
22959
|
|
|
22491
22960
|
let context$1;
|
|
22492
22961
|
function setContext$1(adapterContext) {
|
|
22493
22962
|
context$1 = adapterContext;
|
|
22494
22963
|
}
|
|
22495
|
-
function keyBuilder$
|
|
22964
|
+
function keyBuilder$1Z(luvio, params) {
|
|
22496
22965
|
const query = {
|
|
22497
22966
|
objectApiName: params.urlParams.objectApiName,
|
|
22498
22967
|
listViewApiName: params.urlParams.listViewApiName,
|
|
@@ -22525,7 +22994,7 @@
|
|
|
22525
22994
|
});
|
|
22526
22995
|
}
|
|
22527
22996
|
|
|
22528
|
-
function select$
|
|
22997
|
+
function select$1J(luvio, params) {
|
|
22529
22998
|
const { fields = [], optionalFields = [] } = params.queryParams;
|
|
22530
22999
|
return dynamicSelect$7({
|
|
22531
23000
|
records: {
|
|
@@ -22542,7 +23011,7 @@
|
|
|
22542
23011
|
}
|
|
22543
23012
|
function ingestSuccess$P(luvio, resourceParams, response, snapshotRefresh) {
|
|
22544
23013
|
const { body } = response;
|
|
22545
|
-
const key = keyBuilder$
|
|
23014
|
+
const key = keyBuilder$1Z(luvio, resourceParams);
|
|
22546
23015
|
luvio.storeIngest(key, ingest$M$1, body);
|
|
22547
23016
|
const optionalFields = resourceParams.queryParams.optionalFields;
|
|
22548
23017
|
if (optionalFields && optionalFields.length > 0) {
|
|
@@ -22551,7 +23020,7 @@
|
|
|
22551
23020
|
}
|
|
22552
23021
|
const snapshot = luvio.storeLookup({
|
|
22553
23022
|
recordId: key,
|
|
22554
|
-
node: select$
|
|
23023
|
+
node: select$1J(luvio, resourceParams),
|
|
22555
23024
|
variables: {},
|
|
22556
23025
|
}, snapshotRefresh);
|
|
22557
23026
|
return snapshot;
|
|
@@ -22579,7 +23048,7 @@
|
|
|
22579
23048
|
getTypeCacheKeys$T$1(storeKeyMap, luvio, response);
|
|
22580
23049
|
}
|
|
22581
23050
|
function ingestError$I(luvio, params, error, snapshotRefresh) {
|
|
22582
|
-
const key = keyBuilder$
|
|
23051
|
+
const key = keyBuilder$1Z(luvio, params);
|
|
22583
23052
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
22584
23053
|
const storeMetadataParams = {
|
|
22585
23054
|
ttl: TTL$x,
|
|
@@ -22657,24 +23126,24 @@
|
|
|
22657
23126
|
return snapshot.state === 'Error';
|
|
22658
23127
|
}
|
|
22659
23128
|
|
|
22660
|
-
const VERSION$
|
|
22661
|
-
const RepresentationType$
|
|
22662
|
-
function keyBuilder$
|
|
22663
|
-
return keyPrefix$2 + '::' + RepresentationType$
|
|
23129
|
+
const VERSION$14$1 = "3529c5f7d0eb2206c90a52c6d9f721d4";
|
|
23130
|
+
const RepresentationType$P = 'ListViewSummaryRepresentation';
|
|
23131
|
+
function keyBuilder$1Y(luvio, config) {
|
|
23132
|
+
return keyPrefix$2 + '::' + RepresentationType$P + ':' + (config.id === null ? '' : config.id);
|
|
22664
23133
|
}
|
|
22665
|
-
function keyBuilderFromType$
|
|
23134
|
+
function keyBuilderFromType$x(luvio, object) {
|
|
22666
23135
|
const keyParams = {
|
|
22667
23136
|
id: object.id
|
|
22668
23137
|
};
|
|
22669
|
-
return keyBuilder$
|
|
23138
|
+
return keyBuilder$1Y(luvio, keyParams);
|
|
22670
23139
|
}
|
|
22671
|
-
function normalize$
|
|
23140
|
+
function normalize$I(input, existing, path, luvio, store, timestamp) {
|
|
22672
23141
|
return input;
|
|
22673
23142
|
}
|
|
22674
|
-
const select$
|
|
23143
|
+
const select$1I = function ListViewSummaryRepresentationSelect() {
|
|
22675
23144
|
return {
|
|
22676
23145
|
kind: 'Fragment',
|
|
22677
|
-
version: VERSION$
|
|
23146
|
+
version: VERSION$14$1,
|
|
22678
23147
|
private: [],
|
|
22679
23148
|
selections: [
|
|
22680
23149
|
{
|
|
@@ -22696,7 +23165,7 @@
|
|
|
22696
23165
|
]
|
|
22697
23166
|
};
|
|
22698
23167
|
};
|
|
22699
|
-
function equals$
|
|
23168
|
+
function equals$W(existing, incoming) {
|
|
22700
23169
|
const existing_apiName = existing.apiName;
|
|
22701
23170
|
const incoming_apiName = incoming.apiName;
|
|
22702
23171
|
if (!(existing_apiName === incoming_apiName)) {
|
|
@@ -22719,42 +23188,42 @@
|
|
|
22719
23188
|
}
|
|
22720
23189
|
return true;
|
|
22721
23190
|
}
|
|
22722
|
-
const ingest$
|
|
22723
|
-
const key = keyBuilderFromType$
|
|
23191
|
+
const ingest$I$1 = function ListViewSummaryRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
23192
|
+
const key = keyBuilderFromType$x(luvio, input);
|
|
22724
23193
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
22725
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
23194
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$I, "UiApi", VERSION$14$1, RepresentationType$P, equals$W);
|
|
22726
23195
|
return createLink$3(key);
|
|
22727
23196
|
};
|
|
22728
|
-
function getTypeCacheKeys$
|
|
23197
|
+
function getTypeCacheKeys$P$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
22729
23198
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
22730
|
-
const rootKey = keyBuilderFromType$
|
|
23199
|
+
const rootKey = keyBuilderFromType$x(luvio, input);
|
|
22731
23200
|
rootKeySet.set(rootKey, {
|
|
22732
23201
|
namespace: keyPrefix$2,
|
|
22733
|
-
representationName: RepresentationType$
|
|
23202
|
+
representationName: RepresentationType$P,
|
|
22734
23203
|
mergeable: false
|
|
22735
23204
|
});
|
|
22736
23205
|
}
|
|
22737
23206
|
|
|
22738
|
-
const VERSION$
|
|
22739
|
-
const RepresentationType$
|
|
22740
|
-
function keyBuilder$
|
|
22741
|
-
return keyPrefix$2 + '::' + RepresentationType$
|
|
23207
|
+
const VERSION$13$1 = "f4c79fe066da3558499d5ee88c72abcd";
|
|
23208
|
+
const RepresentationType$O = 'ListViewSummaryCollectionRepresentation';
|
|
23209
|
+
function keyBuilder$1X(luvio, config) {
|
|
23210
|
+
return keyPrefix$2 + '::' + RepresentationType$O + ':' + config.objectApiName + ':' + (config.queryString === null ? '' : config.queryString) + ':' + config.recentListsOnly;
|
|
22742
23211
|
}
|
|
22743
|
-
function keyBuilderFromType$
|
|
23212
|
+
function keyBuilderFromType$w(luvio, object) {
|
|
22744
23213
|
const keyParams = {
|
|
22745
23214
|
objectApiName: object.objectApiName,
|
|
22746
23215
|
queryString: object.queryString,
|
|
22747
23216
|
recentListsOnly: object.recentListsOnly
|
|
22748
23217
|
};
|
|
22749
|
-
return keyBuilder$
|
|
23218
|
+
return keyBuilder$1X(luvio, keyParams);
|
|
22750
23219
|
}
|
|
22751
|
-
function normalize$
|
|
23220
|
+
function normalize$H(input, existing, path, luvio, store, timestamp) {
|
|
22752
23221
|
const input_lists = input.lists;
|
|
22753
23222
|
const input_lists_id = path.fullPath + '__lists';
|
|
22754
23223
|
for (let i = 0; i < input_lists.length; i++) {
|
|
22755
23224
|
const input_lists_item = input_lists[i];
|
|
22756
23225
|
let input_lists_item_id = input_lists_id + '__' + i;
|
|
22757
|
-
input_lists[i] = ingest$
|
|
23226
|
+
input_lists[i] = ingest$I$1(input_lists_item, {
|
|
22758
23227
|
fullPath: input_lists_item_id,
|
|
22759
23228
|
propertyName: i,
|
|
22760
23229
|
parent: {
|
|
@@ -22767,19 +23236,19 @@
|
|
|
22767
23236
|
}
|
|
22768
23237
|
return input;
|
|
22769
23238
|
}
|
|
22770
|
-
const select$
|
|
23239
|
+
const select$1H = function ListViewSummaryCollectionRepresentationSelect(paginationParams) {
|
|
22771
23240
|
return {
|
|
22772
23241
|
kind: 'Fragment',
|
|
22773
23242
|
reader: true,
|
|
22774
23243
|
synthetic: false,
|
|
22775
|
-
version: VERSION$
|
|
23244
|
+
version: VERSION$13$1,
|
|
22776
23245
|
read: (source, reader) => {
|
|
22777
23246
|
const sink = {};
|
|
22778
23247
|
if (paginationParams === undefined) {
|
|
22779
23248
|
return sink;
|
|
22780
23249
|
}
|
|
22781
23250
|
const metadata = reader.resolveMetadata(source, PAGINATION_VERSION$1);
|
|
22782
|
-
const currentPageMetadata = getPageMetadata$
|
|
23251
|
+
const currentPageMetadata = getPageMetadata$1(metadata, paginationParams);
|
|
22783
23252
|
const { startOffset, endOffset, metadataProperties } = currentPageMetadata;
|
|
22784
23253
|
if (metadata !== undefined && startOffset !== undefined && endOffset !== undefined) {
|
|
22785
23254
|
const itemsProperty = 'lists';
|
|
@@ -22792,7 +23261,7 @@
|
|
|
22792
23261
|
reader.readSingleLink(i, {
|
|
22793
23262
|
name: 'lists',
|
|
22794
23263
|
kind: 'Link',
|
|
22795
|
-
fragment: select$
|
|
23264
|
+
fragment: select$1I()
|
|
22796
23265
|
}, itemsSource, allSink, i - startOffset);
|
|
22797
23266
|
if (reader.getIsDataMissing() === false) {
|
|
22798
23267
|
itemsSink[i - startOffset] = allSink[i - startOffset];
|
|
@@ -22830,7 +23299,7 @@
|
|
|
22830
23299
|
},
|
|
22831
23300
|
};
|
|
22832
23301
|
};
|
|
22833
|
-
function getPageMetadata$
|
|
23302
|
+
function getPageMetadata$1(paginationMetadata, paginationParams) {
|
|
22834
23303
|
const metadataProperties = {};
|
|
22835
23304
|
const sink = {
|
|
22836
23305
|
metadataProperties
|
|
@@ -22860,7 +23329,7 @@
|
|
|
22860
23329
|
metadataProperties.count = endOffset - startOffset;
|
|
22861
23330
|
return sink;
|
|
22862
23331
|
}
|
|
22863
|
-
function equals$
|
|
23332
|
+
function equals$V(existing, incoming) {
|
|
22864
23333
|
const existing_recentListsOnly = existing.recentListsOnly;
|
|
22865
23334
|
const incoming_recentListsOnly = incoming.recentListsOnly;
|
|
22866
23335
|
if (!(existing_recentListsOnly === incoming_recentListsOnly)) {
|
|
@@ -22933,11 +23402,11 @@
|
|
|
22933
23402
|
}
|
|
22934
23403
|
return true;
|
|
22935
23404
|
}
|
|
22936
|
-
const ingest$
|
|
22937
|
-
const key = keyBuilderFromType$
|
|
23405
|
+
const ingest$H$1 = function ListViewSummaryCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
23406
|
+
const key = keyBuilderFromType$w(luvio, input);
|
|
22938
23407
|
const existingRecord = store.readEntry(key);
|
|
22939
23408
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
22940
|
-
let incomingRecord = normalize$
|
|
23409
|
+
let incomingRecord = normalize$H(input, store.readEntry(key), {
|
|
22941
23410
|
fullPath: key,
|
|
22942
23411
|
parent: path.parent,
|
|
22943
23412
|
propertyName: path.propertyName,
|
|
@@ -22982,42 +23451,42 @@
|
|
|
22982
23451
|
...existingRecord.lists.slice(nextOffset),
|
|
22983
23452
|
];
|
|
22984
23453
|
}
|
|
22985
|
-
if (existingRecord === undefined || equals$
|
|
23454
|
+
if (existingRecord === undefined || equals$V(existingRecord, incomingRecord) === false) {
|
|
22986
23455
|
luvio.storePublish(key, incomingRecord);
|
|
22987
23456
|
}
|
|
22988
23457
|
if (ttlToUse !== undefined) {
|
|
22989
23458
|
const storeMetadataParams = {
|
|
22990
23459
|
ttl: ttlToUse,
|
|
22991
23460
|
namespace: "UiApi",
|
|
22992
|
-
version: VERSION$
|
|
22993
|
-
representationName: RepresentationType$
|
|
23461
|
+
version: VERSION$13$1,
|
|
23462
|
+
representationName: RepresentationType$O,
|
|
22994
23463
|
ingestionTimestamp: timestamp,
|
|
22995
23464
|
};
|
|
22996
23465
|
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
22997
23466
|
}
|
|
22998
23467
|
return createLink$3(key);
|
|
22999
23468
|
};
|
|
23000
|
-
function getTypeCacheKeys$
|
|
23469
|
+
function getTypeCacheKeys$O$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
23001
23470
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
23002
|
-
const rootKey = keyBuilderFromType$
|
|
23471
|
+
const rootKey = keyBuilderFromType$w(luvio, input);
|
|
23003
23472
|
rootKeySet.set(rootKey, {
|
|
23004
23473
|
namespace: keyPrefix$2,
|
|
23005
|
-
representationName: RepresentationType$
|
|
23474
|
+
representationName: RepresentationType$O,
|
|
23006
23475
|
mergeable: true
|
|
23007
23476
|
});
|
|
23008
23477
|
rootKeySet.set(rootKey + '__pagination', {
|
|
23009
23478
|
namespace: keyPrefix$2,
|
|
23010
|
-
representationName: RepresentationType$
|
|
23479
|
+
representationName: RepresentationType$O,
|
|
23011
23480
|
mergeable: true
|
|
23012
23481
|
});
|
|
23013
23482
|
const input_lists_length = input.lists.length;
|
|
23014
23483
|
for (let i = 0; i < input_lists_length; i++) {
|
|
23015
|
-
getTypeCacheKeys$
|
|
23484
|
+
getTypeCacheKeys$P$1(rootKeySet, luvio, input.lists[i]);
|
|
23016
23485
|
}
|
|
23017
23486
|
}
|
|
23018
|
-
const notifyUpdateAvailableFactory$
|
|
23487
|
+
const notifyUpdateAvailableFactory$2 = (luvio) => {
|
|
23019
23488
|
return function notifyListViewSummaryUpdateAvailable(configs) {
|
|
23020
|
-
const keys = configs.map(c => keyBuilder$
|
|
23489
|
+
const keys = configs.map(c => keyBuilder$1X(luvio, c));
|
|
23021
23490
|
return luvio.notifyStoreUpdateAvailable(keys);
|
|
23022
23491
|
};
|
|
23023
23492
|
};
|
|
@@ -23029,34 +23498,34 @@
|
|
|
23029
23498
|
pageSize: queryParams.pageSize === undefined ? 20 : queryParams.pageSize
|
|
23030
23499
|
};
|
|
23031
23500
|
}
|
|
23032
|
-
function select$
|
|
23501
|
+
function select$1G(luvio, params) {
|
|
23033
23502
|
const paginationParams = createPaginationParams$3(params);
|
|
23034
|
-
return select$
|
|
23503
|
+
return select$1H(paginationParams);
|
|
23035
23504
|
}
|
|
23036
|
-
function keyBuilder$
|
|
23037
|
-
return keyBuilder$
|
|
23505
|
+
function keyBuilder$1W(luvio, params) {
|
|
23506
|
+
return keyBuilder$1X(luvio, {
|
|
23038
23507
|
objectApiName: params.urlParams.objectApiName,
|
|
23039
23508
|
queryString: params.queryParams.q || null,
|
|
23040
23509
|
recentListsOnly: params.queryParams.recentListsOnly || false
|
|
23041
23510
|
});
|
|
23042
23511
|
}
|
|
23043
23512
|
function getResponseCacheKeys$Z(storeKeyMap, luvio, resourceParams, response) {
|
|
23044
|
-
getTypeCacheKeys$
|
|
23513
|
+
getTypeCacheKeys$O$1(storeKeyMap, luvio, response);
|
|
23045
23514
|
}
|
|
23046
23515
|
function ingestSuccess$O(luvio, resourceParams, response, snapshotRefresh) {
|
|
23047
23516
|
const { body } = response;
|
|
23048
|
-
const key = keyBuilder$
|
|
23049
|
-
luvio.storeIngest(key, ingest$
|
|
23517
|
+
const key = keyBuilder$1W(luvio, resourceParams);
|
|
23518
|
+
luvio.storeIngest(key, ingest$H$1, body);
|
|
23050
23519
|
const snapshot = luvio.storeLookup({
|
|
23051
23520
|
recordId: key,
|
|
23052
|
-
node: select$
|
|
23521
|
+
node: select$1G(luvio, resourceParams),
|
|
23053
23522
|
variables: {},
|
|
23054
23523
|
}, snapshotRefresh);
|
|
23055
23524
|
deepFreeze(snapshot.data);
|
|
23056
23525
|
return snapshot;
|
|
23057
23526
|
}
|
|
23058
23527
|
function ingestError$H(luvio, params, error, snapshotRefresh) {
|
|
23059
|
-
const key = keyBuilder$
|
|
23528
|
+
const key = keyBuilder$1W(luvio, params);
|
|
23060
23529
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
23061
23530
|
luvio.storeIngestError(key, errorSnapshot);
|
|
23062
23531
|
return errorSnapshot;
|
|
@@ -23085,9 +23554,9 @@
|
|
|
23085
23554
|
];
|
|
23086
23555
|
const getListViewSummaryCollection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$2(adapterName$_$1, getListViewSummaryCollection_ConfigPropertyMetadata);
|
|
23087
23556
|
const createResourceParams$Y = /*#__PURE__*/ createResourceParams$12(getListViewSummaryCollection_ConfigPropertyMetadata);
|
|
23088
|
-
function keyBuilder$
|
|
23557
|
+
function keyBuilder$1V(luvio, config) {
|
|
23089
23558
|
const resourceParams = createResourceParams$Y(config);
|
|
23090
|
-
return keyBuilder$
|
|
23559
|
+
return keyBuilder$1W(luvio, resourceParams);
|
|
23091
23560
|
}
|
|
23092
23561
|
function typeCheckConfig$13(untrustedConfig) {
|
|
23093
23562
|
const config = {};
|
|
@@ -23107,7 +23576,7 @@
|
|
|
23107
23576
|
}
|
|
23108
23577
|
function adapterFragment$G(luvio, config) {
|
|
23109
23578
|
const resourceParams = createResourceParams$Y(config);
|
|
23110
|
-
return select$
|
|
23579
|
+
return select$1G(luvio, resourceParams);
|
|
23111
23580
|
}
|
|
23112
23581
|
function onFetchResponseSuccess$K(luvio, config, resourceParams, response) {
|
|
23113
23582
|
const snapshot = ingestSuccess$O(luvio, resourceParams, response, {
|
|
@@ -23170,12 +23639,12 @@
|
|
|
23170
23639
|
return items.length;
|
|
23171
23640
|
}
|
|
23172
23641
|
function getPaginationMetadata$3(luvio, resourceParams) {
|
|
23173
|
-
const key = keyBuilder$
|
|
23642
|
+
const key = keyBuilder$1W(luvio, resourceParams);
|
|
23174
23643
|
const selector = {
|
|
23175
23644
|
recordId: key,
|
|
23176
23645
|
node: {
|
|
23177
23646
|
kind: 'Fragment',
|
|
23178
|
-
version: VERSION$
|
|
23647
|
+
version: VERSION$13$1,
|
|
23179
23648
|
private: [],
|
|
23180
23649
|
selections: [
|
|
23181
23650
|
{
|
|
@@ -23218,7 +23687,7 @@
|
|
|
23218
23687
|
function buildCachedSnapshotCachePolicy$N(context, storeLookup) {
|
|
23219
23688
|
const { luvio, config } = context;
|
|
23220
23689
|
const selector = {
|
|
23221
|
-
recordId: keyBuilder$
|
|
23690
|
+
recordId: keyBuilder$1V(luvio, config),
|
|
23222
23691
|
node: adapterFragment$G(luvio, config),
|
|
23223
23692
|
variables: {},
|
|
23224
23693
|
};
|
|
@@ -23248,7 +23717,7 @@
|
|
|
23248
23717
|
pageSize: queryParams.pageSize === undefined ? 50 : queryParams.pageSize
|
|
23249
23718
|
};
|
|
23250
23719
|
}
|
|
23251
|
-
function keyBuilder$
|
|
23720
|
+
function keyBuilder$1U(luvio, params) {
|
|
23252
23721
|
return keyBuilder$20(luvio, {
|
|
23253
23722
|
listViewApiName: null,
|
|
23254
23723
|
objectApiName: params.urlParams.objectApiName,
|
|
@@ -23409,7 +23878,7 @@
|
|
|
23409
23878
|
const listFields_ = fields || listFields(luvio, config, listInfo);
|
|
23410
23879
|
const resourceParams = createResourceParams$X(config);
|
|
23411
23880
|
const selector = {
|
|
23412
|
-
recordId: keyBuilder$
|
|
23881
|
+
recordId: keyBuilder$1U(luvio, resourceParams),
|
|
23413
23882
|
node: buildListUiFragment$1(config, listFields_),
|
|
23414
23883
|
variables: {},
|
|
23415
23884
|
};
|
|
@@ -24070,24 +24539,24 @@
|
|
|
24070
24539
|
};
|
|
24071
24540
|
|
|
24072
24541
|
const TTL$w = 900000;
|
|
24073
|
-
const VERSION$
|
|
24074
|
-
const RepresentationType$
|
|
24075
|
-
function keyBuilder$
|
|
24076
|
-
return keyPrefix$2 + '::' + RepresentationType$
|
|
24542
|
+
const VERSION$12$1 = "ec9370a0cd56f4769fe9ec5cd942ff30";
|
|
24543
|
+
const RepresentationType$N = 'ObjectInfoRepresentation';
|
|
24544
|
+
function keyBuilder$1T(luvio, config) {
|
|
24545
|
+
return keyPrefix$2 + '::' + RepresentationType$N + ':' + config.apiName;
|
|
24077
24546
|
}
|
|
24078
|
-
function keyBuilderFromType$
|
|
24547
|
+
function keyBuilderFromType$v(luvio, object) {
|
|
24079
24548
|
const keyParams = {
|
|
24080
24549
|
apiName: object.apiName
|
|
24081
24550
|
};
|
|
24082
|
-
return keyBuilder$
|
|
24551
|
+
return keyBuilder$1T(luvio, keyParams);
|
|
24083
24552
|
}
|
|
24084
|
-
function normalize$
|
|
24553
|
+
function normalize$G(input, existing, path, luvio, store, timestamp) {
|
|
24085
24554
|
return input;
|
|
24086
24555
|
}
|
|
24087
|
-
const select$
|
|
24556
|
+
const select$1F = function ObjectInfoRepresentationSelect() {
|
|
24088
24557
|
return {
|
|
24089
24558
|
kind: 'Fragment',
|
|
24090
|
-
version: VERSION$
|
|
24559
|
+
version: VERSION$12$1,
|
|
24091
24560
|
private: [
|
|
24092
24561
|
'eTag'
|
|
24093
24562
|
],
|
|
@@ -24189,59 +24658,59 @@
|
|
|
24189
24658
|
]
|
|
24190
24659
|
};
|
|
24191
24660
|
};
|
|
24192
|
-
function equals$
|
|
24661
|
+
function equals$U(existing, incoming) {
|
|
24193
24662
|
if (existing.eTag !== incoming.eTag) {
|
|
24194
24663
|
return false;
|
|
24195
24664
|
}
|
|
24196
24665
|
return true;
|
|
24197
24666
|
}
|
|
24198
|
-
const ingest$
|
|
24199
|
-
const key = keyBuilderFromType$
|
|
24667
|
+
const ingest$G$1 = function ObjectInfoRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
24668
|
+
const key = keyBuilderFromType$v(luvio, input);
|
|
24200
24669
|
const ttlToUse = TTL$w;
|
|
24201
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
24670
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$G, "UiApi", VERSION$12$1, RepresentationType$N, equals$U);
|
|
24202
24671
|
return createLink$3(key);
|
|
24203
24672
|
};
|
|
24204
|
-
function getTypeCacheKeys$
|
|
24673
|
+
function getTypeCacheKeys$N$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
24205
24674
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
24206
|
-
const rootKey = keyBuilderFromType$
|
|
24675
|
+
const rootKey = keyBuilderFromType$v(luvio, input);
|
|
24207
24676
|
rootKeySet.set(rootKey, {
|
|
24208
24677
|
namespace: keyPrefix$2,
|
|
24209
|
-
representationName: RepresentationType$
|
|
24678
|
+
representationName: RepresentationType$N,
|
|
24210
24679
|
mergeable: false
|
|
24211
24680
|
});
|
|
24212
24681
|
}
|
|
24213
24682
|
|
|
24214
|
-
function select$
|
|
24215
|
-
return select$
|
|
24683
|
+
function select$1E(luvio, params) {
|
|
24684
|
+
return select$1F();
|
|
24216
24685
|
}
|
|
24217
|
-
function keyBuilder$
|
|
24218
|
-
return keyBuilder$
|
|
24686
|
+
function keyBuilder$1S(luvio, params) {
|
|
24687
|
+
return keyBuilder$1T(luvio, {
|
|
24219
24688
|
apiName: params.urlParams.objectApiName
|
|
24220
24689
|
});
|
|
24221
24690
|
}
|
|
24222
24691
|
function getResponseCacheKeys$Y(storeKeyMap, luvio, resourceParams, response) {
|
|
24223
|
-
getTypeCacheKeys$
|
|
24692
|
+
getTypeCacheKeys$N$1(storeKeyMap, luvio, response);
|
|
24224
24693
|
}
|
|
24225
24694
|
function ingestSuccess$N(luvio, resourceParams, response, snapshotRefresh) {
|
|
24226
24695
|
const { body } = response;
|
|
24227
|
-
const key = keyBuilder$
|
|
24228
|
-
luvio.storeIngest(key, ingest$
|
|
24696
|
+
const key = keyBuilder$1S(luvio, resourceParams);
|
|
24697
|
+
luvio.storeIngest(key, ingest$G$1, body);
|
|
24229
24698
|
const snapshot = luvio.storeLookup({
|
|
24230
24699
|
recordId: key,
|
|
24231
|
-
node: select$
|
|
24700
|
+
node: select$1E(),
|
|
24232
24701
|
variables: {},
|
|
24233
24702
|
}, snapshotRefresh);
|
|
24234
24703
|
deepFreeze(snapshot.data);
|
|
24235
24704
|
return snapshot;
|
|
24236
24705
|
}
|
|
24237
24706
|
function ingestError$G(luvio, params, error, snapshotRefresh) {
|
|
24238
|
-
const key = keyBuilder$
|
|
24707
|
+
const key = keyBuilder$1S(luvio, params);
|
|
24239
24708
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
24240
24709
|
const storeMetadataParams = {
|
|
24241
24710
|
ttl: TTL$w,
|
|
24242
24711
|
namespace: keyPrefix$2,
|
|
24243
|
-
version: VERSION$
|
|
24244
|
-
representationName: RepresentationType$
|
|
24712
|
+
version: VERSION$12$1,
|
|
24713
|
+
representationName: RepresentationType$N
|
|
24245
24714
|
};
|
|
24246
24715
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
24247
24716
|
return errorSnapshot;
|
|
@@ -24266,9 +24735,9 @@
|
|
|
24266
24735
|
];
|
|
24267
24736
|
const getObjectInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$2(adapterName$Y, getObjectInfo_ConfigPropertyMetadata);
|
|
24268
24737
|
const createResourceParams$W = /*#__PURE__*/ createResourceParams$12(getObjectInfo_ConfigPropertyMetadata);
|
|
24269
|
-
function keyBuilder$
|
|
24738
|
+
function keyBuilder$1R(luvio, config) {
|
|
24270
24739
|
const resourceParams = createResourceParams$W(config);
|
|
24271
|
-
return keyBuilder$
|
|
24740
|
+
return keyBuilder$1S(luvio, resourceParams);
|
|
24272
24741
|
}
|
|
24273
24742
|
function typeCheckConfig$11(untrustedConfig) {
|
|
24274
24743
|
const config = {};
|
|
@@ -24288,7 +24757,7 @@
|
|
|
24288
24757
|
}
|
|
24289
24758
|
function adapterFragment$F(luvio, config) {
|
|
24290
24759
|
createResourceParams$W(config);
|
|
24291
|
-
return select$
|
|
24760
|
+
return select$1E();
|
|
24292
24761
|
}
|
|
24293
24762
|
function onFetchResponseSuccess$J(luvio, config, resourceParams, response) {
|
|
24294
24763
|
const snapshot = ingestSuccess$N(luvio, resourceParams, response, {
|
|
@@ -24324,7 +24793,7 @@
|
|
|
24324
24793
|
function buildCachedSnapshotCachePolicy$M(context, storeLookup) {
|
|
24325
24794
|
const { luvio, config } = context;
|
|
24326
24795
|
const selector = {
|
|
24327
|
-
recordId: keyBuilder$
|
|
24796
|
+
recordId: keyBuilder$1R(luvio, config),
|
|
24328
24797
|
node: adapterFragment$F(luvio, config),
|
|
24329
24798
|
variables: {},
|
|
24330
24799
|
};
|
|
@@ -24355,27 +24824,27 @@
|
|
|
24355
24824
|
})(DiscriminatorValues$5$1 || (DiscriminatorValues$5$1 = {}));
|
|
24356
24825
|
|
|
24357
24826
|
const TTL$v = 900000;
|
|
24358
|
-
const VERSION$
|
|
24359
|
-
const RepresentationType$
|
|
24360
|
-
function keyBuilder$
|
|
24361
|
-
return keyPrefix$2 + '::' + RepresentationType$
|
|
24827
|
+
const VERSION$11$1 = "fb515e25a89ca1ec154dc865e72b913a";
|
|
24828
|
+
const RepresentationType$M = 'RecordLayoutRepresentation';
|
|
24829
|
+
function keyBuilder$1Q(luvio, config) {
|
|
24830
|
+
return keyPrefix$2 + '::' + RepresentationType$M + ':' + (config.recordTypeId === null ? '' : config.recordTypeId) + ':' + (config.objectApiName === null ? '' : config.objectApiName) + ':' + config.layoutType + ':' + config.mode;
|
|
24362
24831
|
}
|
|
24363
|
-
function keyBuilderFromType$
|
|
24832
|
+
function keyBuilderFromType$u(luvio, object) {
|
|
24364
24833
|
const keyParams = {
|
|
24365
24834
|
recordTypeId: object.recordTypeId,
|
|
24366
24835
|
objectApiName: object.objectApiName,
|
|
24367
24836
|
layoutType: object.layoutType,
|
|
24368
24837
|
mode: object.mode
|
|
24369
24838
|
};
|
|
24370
|
-
return keyBuilder$
|
|
24839
|
+
return keyBuilder$1Q(luvio, keyParams);
|
|
24371
24840
|
}
|
|
24372
|
-
function normalize$
|
|
24841
|
+
function normalize$F(input, existing, path, luvio, store, timestamp) {
|
|
24373
24842
|
return input;
|
|
24374
24843
|
}
|
|
24375
|
-
const select$
|
|
24844
|
+
const select$1D = function RecordLayoutRepresentationSelect() {
|
|
24376
24845
|
return {
|
|
24377
24846
|
kind: 'Fragment',
|
|
24378
|
-
version: VERSION$
|
|
24847
|
+
version: VERSION$11$1,
|
|
24379
24848
|
private: [
|
|
24380
24849
|
'eTag'
|
|
24381
24850
|
],
|
|
@@ -24413,24 +24882,24 @@
|
|
|
24413
24882
|
]
|
|
24414
24883
|
};
|
|
24415
24884
|
};
|
|
24416
|
-
function equals$
|
|
24885
|
+
function equals$T(existing, incoming) {
|
|
24417
24886
|
if (existing.eTag !== incoming.eTag) {
|
|
24418
24887
|
return false;
|
|
24419
24888
|
}
|
|
24420
24889
|
return true;
|
|
24421
24890
|
}
|
|
24422
|
-
const ingest$
|
|
24423
|
-
const key = keyBuilderFromType$
|
|
24891
|
+
const ingest$F$1 = function RecordLayoutRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
24892
|
+
const key = keyBuilderFromType$u(luvio, input);
|
|
24424
24893
|
const ttlToUse = TTL$v;
|
|
24425
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
24894
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$F, "UiApi", VERSION$11$1, RepresentationType$M, equals$T);
|
|
24426
24895
|
return createLink$3(key);
|
|
24427
24896
|
};
|
|
24428
|
-
function getTypeCacheKeys$
|
|
24897
|
+
function getTypeCacheKeys$M$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
24429
24898
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
24430
|
-
const rootKey = keyBuilderFromType$
|
|
24899
|
+
const rootKey = keyBuilderFromType$u(luvio, input);
|
|
24431
24900
|
rootKeySet.set(rootKey, {
|
|
24432
24901
|
namespace: keyPrefix$2,
|
|
24433
|
-
representationName: RepresentationType$
|
|
24902
|
+
representationName: RepresentationType$M,
|
|
24434
24903
|
mergeable: false
|
|
24435
24904
|
});
|
|
24436
24905
|
}
|
|
@@ -24458,27 +24927,27 @@
|
|
|
24458
24927
|
}
|
|
24459
24928
|
|
|
24460
24929
|
const TTL$u = 900000;
|
|
24461
|
-
const VERSION$
|
|
24462
|
-
const RepresentationType$
|
|
24463
|
-
function keyBuilder$
|
|
24464
|
-
return keyPrefix$2 + '::' + RepresentationType$
|
|
24930
|
+
const VERSION$10$1 = "4ba42e1fa0fb00cf78fce86082da41c9";
|
|
24931
|
+
const RepresentationType$L = 'RecordLayoutUserStateRepresentation';
|
|
24932
|
+
function keyBuilder$1P(luvio, config) {
|
|
24933
|
+
return keyPrefix$2 + '::' + RepresentationType$L + ':' + config.recordTypeId + ':' + config.apiName + ':' + config.layoutType + ':' + config.mode;
|
|
24465
24934
|
}
|
|
24466
|
-
function keyBuilderFromType$
|
|
24935
|
+
function keyBuilderFromType$t(luvio, object) {
|
|
24467
24936
|
const keyParams = {
|
|
24468
24937
|
recordTypeId: object.recordTypeId,
|
|
24469
24938
|
apiName: object.apiName,
|
|
24470
24939
|
layoutType: object.layoutType,
|
|
24471
24940
|
mode: object.mode
|
|
24472
24941
|
};
|
|
24473
|
-
return keyBuilder$
|
|
24942
|
+
return keyBuilder$1P(luvio, keyParams);
|
|
24474
24943
|
}
|
|
24475
|
-
function normalize$
|
|
24944
|
+
function normalize$E(input, existing, path, luvio, store, timestamp) {
|
|
24476
24945
|
return input;
|
|
24477
24946
|
}
|
|
24478
|
-
const select$
|
|
24947
|
+
const select$1C = function RecordLayoutUserStateRepresentationSelect() {
|
|
24479
24948
|
return {
|
|
24480
24949
|
kind: 'Fragment',
|
|
24481
|
-
version: VERSION$
|
|
24950
|
+
version: VERSION$10$1,
|
|
24482
24951
|
private: [
|
|
24483
24952
|
'apiName',
|
|
24484
24953
|
'recordTypeId',
|
|
@@ -24498,32 +24967,32 @@
|
|
|
24498
24967
|
]
|
|
24499
24968
|
};
|
|
24500
24969
|
};
|
|
24501
|
-
function equals$
|
|
24970
|
+
function equals$S(existing, incoming) {
|
|
24502
24971
|
if (JSONStringify$2(incoming) !== JSONStringify$2(existing)) {
|
|
24503
24972
|
return false;
|
|
24504
24973
|
}
|
|
24505
24974
|
return true;
|
|
24506
24975
|
}
|
|
24507
|
-
const ingest$
|
|
24508
|
-
const key = keyBuilderFromType$
|
|
24976
|
+
const ingest$E$1 = function RecordLayoutUserStateRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
24977
|
+
const key = keyBuilderFromType$t(luvio, input);
|
|
24509
24978
|
const ttlToUse = TTL$u;
|
|
24510
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
24979
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$E, "UiApi", VERSION$10$1, RepresentationType$L, equals$S);
|
|
24511
24980
|
return createLink$3(key);
|
|
24512
24981
|
};
|
|
24513
|
-
function getTypeCacheKeys$
|
|
24982
|
+
function getTypeCacheKeys$L$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
24514
24983
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
24515
|
-
const rootKey = keyBuilderFromType$
|
|
24984
|
+
const rootKey = keyBuilderFromType$t(luvio, input);
|
|
24516
24985
|
rootKeySet.set(rootKey, {
|
|
24517
24986
|
namespace: keyPrefix$2,
|
|
24518
|
-
representationName: RepresentationType$
|
|
24987
|
+
representationName: RepresentationType$L,
|
|
24519
24988
|
mergeable: false
|
|
24520
24989
|
});
|
|
24521
24990
|
}
|
|
24522
24991
|
|
|
24523
24992
|
const TTL$t = 900000;
|
|
24524
|
-
const VERSION
|
|
24525
|
-
const RepresentationType$
|
|
24526
|
-
function normalize$
|
|
24993
|
+
const VERSION$$$1 = "49cdd4bc235a6094c3559cc7735b3b6d";
|
|
24994
|
+
const RepresentationType$K = 'RecordUiRepresentation';
|
|
24995
|
+
function normalize$D(input, existing, path, luvio, store, timestamp) {
|
|
24527
24996
|
const input_layoutUserStates = input.layoutUserStates;
|
|
24528
24997
|
const input_layoutUserStates_id = path.fullPath + '__layoutUserStates';
|
|
24529
24998
|
const input_layoutUserStates_keys = Object.keys(input_layoutUserStates);
|
|
@@ -24532,7 +25001,7 @@
|
|
|
24532
25001
|
const key = input_layoutUserStates_keys[i];
|
|
24533
25002
|
const input_layoutUserStates_prop = input_layoutUserStates[key];
|
|
24534
25003
|
const input_layoutUserStates_prop_id = input_layoutUserStates_id + '__' + key;
|
|
24535
|
-
input_layoutUserStates[key] = ingest$
|
|
25004
|
+
input_layoutUserStates[key] = ingest$E$1(input_layoutUserStates_prop, {
|
|
24536
25005
|
fullPath: input_layoutUserStates_prop_id,
|
|
24537
25006
|
propertyName: key,
|
|
24538
25007
|
parent: {
|
|
@@ -24569,7 +25038,7 @@
|
|
|
24569
25038
|
const key = input_layouts_prop_prop_prop_keys[i];
|
|
24570
25039
|
const input_layouts_prop_prop_prop_prop = input_layouts_prop_prop_prop[key];
|
|
24571
25040
|
const input_layouts_prop_prop_prop_prop_id = input_layouts_prop_prop_prop_id + '__' + key;
|
|
24572
|
-
input_layouts_prop_prop_prop[key] = ingest$
|
|
25041
|
+
input_layouts_prop_prop_prop[key] = ingest$F$1(input_layouts_prop_prop_prop_prop, {
|
|
24573
25042
|
fullPath: input_layouts_prop_prop_prop_prop_id,
|
|
24574
25043
|
propertyName: key,
|
|
24575
25044
|
parent: {
|
|
@@ -24591,7 +25060,7 @@
|
|
|
24591
25060
|
const key = input_objectInfos_keys[i];
|
|
24592
25061
|
const input_objectInfos_prop = input_objectInfos[key];
|
|
24593
25062
|
const input_objectInfos_prop_id = input_objectInfos_id + '__' + key;
|
|
24594
|
-
input_objectInfos[key] = ingest$
|
|
25063
|
+
input_objectInfos[key] = ingest$G$1(input_objectInfos_prop, {
|
|
24595
25064
|
fullPath: input_objectInfos_prop_id,
|
|
24596
25065
|
propertyName: key,
|
|
24597
25066
|
parent: {
|
|
@@ -24623,7 +25092,7 @@
|
|
|
24623
25092
|
}
|
|
24624
25093
|
return input;
|
|
24625
25094
|
}
|
|
24626
|
-
function equals$
|
|
25095
|
+
function equals$R(existing, incoming) {
|
|
24627
25096
|
const existing_eTag = existing.eTag;
|
|
24628
25097
|
const incoming_eTag = incoming.eTag;
|
|
24629
25098
|
if (!(existing_eTag === incoming_eTag)) {
|
|
@@ -24686,10 +25155,10 @@
|
|
|
24686
25155
|
}
|
|
24687
25156
|
return true;
|
|
24688
25157
|
}
|
|
24689
|
-
const ingest$
|
|
25158
|
+
const ingest$D$1 = function RecordUiRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
24690
25159
|
const key = path.fullPath;
|
|
24691
25160
|
const ttlToUse = TTL$t;
|
|
24692
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
25161
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$D, "UiApi", VERSION$$$1, RepresentationType$K, equals$R);
|
|
24693
25162
|
return createLink$3(key);
|
|
24694
25163
|
};
|
|
24695
25164
|
|
|
@@ -24734,9 +25203,9 @@
|
|
|
24734
25203
|
return config;
|
|
24735
25204
|
}
|
|
24736
25205
|
|
|
24737
|
-
const layoutSelections$2 = select$
|
|
24738
|
-
const objectInfoPathSelection = select$
|
|
24739
|
-
const layoutUserStatePathSelector = select$
|
|
25206
|
+
const layoutSelections$2 = select$1D();
|
|
25207
|
+
const objectInfoPathSelection = select$1F();
|
|
25208
|
+
const layoutUserStatePathSelector = select$1C();
|
|
24740
25209
|
function buildRecordUiSelector(recordDefs, layoutTypes, modes, recordOptionalFields) {
|
|
24741
25210
|
const layoutTypeSelections = [];
|
|
24742
25211
|
for (let i = 0, len = layoutTypes.length; i < len; i += 1) {
|
|
@@ -24784,7 +25253,7 @@
|
|
|
24784
25253
|
return {
|
|
24785
25254
|
kind: 'Fragment',
|
|
24786
25255
|
private: ['eTag'],
|
|
24787
|
-
version: VERSION
|
|
25256
|
+
version: VERSION$$$1,
|
|
24788
25257
|
selections: [
|
|
24789
25258
|
{
|
|
24790
25259
|
kind: 'Link',
|
|
@@ -24986,7 +25455,7 @@
|
|
|
24986
25455
|
}
|
|
24987
25456
|
return recordDefs;
|
|
24988
25457
|
}
|
|
24989
|
-
function keyBuilder$
|
|
25458
|
+
function keyBuilder$1O(recordIds, layoutTypes, modes, optionalFields) {
|
|
24990
25459
|
const joinedRecordIds = recordIds.sort().join(',');
|
|
24991
25460
|
const joinedOptionalFields = optionalFields.sort().join(',');
|
|
24992
25461
|
const joinedLayoutTypes = layoutTypes.sort().join(',');
|
|
@@ -25020,7 +25489,7 @@
|
|
|
25020
25489
|
}
|
|
25021
25490
|
function prepareRequest$5(luvio, config) {
|
|
25022
25491
|
const { recordIds, layoutTypes, modes, optionalFields } = config;
|
|
25023
|
-
const key = keyBuilder$
|
|
25492
|
+
const key = keyBuilder$1O(recordIds, layoutTypes, modes, optionalFields);
|
|
25024
25493
|
const selectorKey = buildCachedSelectorKey(key);
|
|
25025
25494
|
const resourceRequest = createResourceRequest$$({
|
|
25026
25495
|
urlParams: {
|
|
@@ -25062,7 +25531,7 @@
|
|
|
25062
25531
|
node: selPath,
|
|
25063
25532
|
variables: {},
|
|
25064
25533
|
};
|
|
25065
|
-
luvio.storeIngest(key, ingest$
|
|
25534
|
+
luvio.storeIngest(key, ingest$D$1, responseBody);
|
|
25066
25535
|
const snapshot = luvio.storeLookup(sel, buildSnapshotRefresh$4(luvio, config));
|
|
25067
25536
|
if (snapshot.state === 'Error') {
|
|
25068
25537
|
return new StoreKeyMap();
|
|
@@ -25107,7 +25576,7 @@
|
|
|
25107
25576
|
variables: {},
|
|
25108
25577
|
};
|
|
25109
25578
|
luvio.storePublish(selectorKey, sel);
|
|
25110
|
-
luvio.storeIngest(key, ingest$
|
|
25579
|
+
luvio.storeIngest(key, ingest$D$1, responseBody);
|
|
25111
25580
|
// During ingestion, only valid records are stored.
|
|
25112
25581
|
const recordNodes = [];
|
|
25113
25582
|
const validRecordIds = [];
|
|
@@ -25184,7 +25653,7 @@
|
|
|
25184
25653
|
function buildCachedSelectorSnapshot(context, storeLookup) {
|
|
25185
25654
|
const { config } = context;
|
|
25186
25655
|
const { recordIds, layoutTypes, modes, optionalFields } = config;
|
|
25187
|
-
const key = keyBuilder$
|
|
25656
|
+
const key = keyBuilder$1O(recordIds, layoutTypes, modes, optionalFields);
|
|
25188
25657
|
const cachedSelectorKey = buildCachedSelectorKey(key);
|
|
25189
25658
|
return storeLookup({
|
|
25190
25659
|
recordId: cachedSelectorKey,
|
|
@@ -25264,7 +25733,7 @@
|
|
|
25264
25733
|
})(LayoutMode$2 || (LayoutMode$2 = {}));
|
|
25265
25734
|
|
|
25266
25735
|
const DEFAULT_MODE = LayoutMode$2.View;
|
|
25267
|
-
const layoutSelections$1 = select$
|
|
25736
|
+
const layoutSelections$1 = select$1D();
|
|
25268
25737
|
function buildSnapshotRefresh$3(luvio, config) {
|
|
25269
25738
|
return {
|
|
25270
25739
|
config,
|
|
@@ -25272,7 +25741,7 @@
|
|
|
25272
25741
|
};
|
|
25273
25742
|
}
|
|
25274
25743
|
function buildObjectInfoSelectorKey(luvio, objectInfo) {
|
|
25275
|
-
const key = keyBuilderFromType$
|
|
25744
|
+
const key = keyBuilderFromType$v(luvio, objectInfo);
|
|
25276
25745
|
return `${key}__implicit__fields__selector`;
|
|
25277
25746
|
}
|
|
25278
25747
|
function refresh$1(luvio, config) {
|
|
@@ -25494,7 +25963,7 @@
|
|
|
25494
25963
|
};
|
|
25495
25964
|
const buildLayoutModeCacheSnapshot = (apiName, recordTypeId, layoutType, mode) => (context, storeLookup) => {
|
|
25496
25965
|
const { luvio } = context;
|
|
25497
|
-
const key = keyBuilder$
|
|
25966
|
+
const key = keyBuilder$1Q(luvio, {
|
|
25498
25967
|
objectApiName: apiName,
|
|
25499
25968
|
recordTypeId,
|
|
25500
25969
|
layoutType,
|
|
@@ -25803,371 +26272,6 @@
|
|
|
25803
26272
|
}, { contextId: contextId$4 });
|
|
25804
26273
|
};
|
|
25805
26274
|
|
|
25806
|
-
const VERSION$10$1 = "0b29241fd9ed04bb61fde26b3f558ac4";
|
|
25807
|
-
const RepresentationType$L = 'ListInfoSummaryRepresentation';
|
|
25808
|
-
function keyBuilder$1P(luvio, config) {
|
|
25809
|
-
return keyPrefix$2 + '::' + RepresentationType$L + ':' + (config.id === null ? '' : config.id);
|
|
25810
|
-
}
|
|
25811
|
-
function keyBuilderFromType$u(luvio, object) {
|
|
25812
|
-
const keyParams = {
|
|
25813
|
-
id: object.id
|
|
25814
|
-
};
|
|
25815
|
-
return keyBuilder$1P(luvio, keyParams);
|
|
25816
|
-
}
|
|
25817
|
-
function normalize$E(input, existing, path, luvio, store, timestamp) {
|
|
25818
|
-
return input;
|
|
25819
|
-
}
|
|
25820
|
-
const select$1D = function ListInfoSummaryRepresentationSelect() {
|
|
25821
|
-
return {
|
|
25822
|
-
kind: 'Fragment',
|
|
25823
|
-
version: VERSION$10$1,
|
|
25824
|
-
private: [],
|
|
25825
|
-
selections: [
|
|
25826
|
-
{
|
|
25827
|
-
name: 'apiName',
|
|
25828
|
-
kind: 'Scalar'
|
|
25829
|
-
},
|
|
25830
|
-
{
|
|
25831
|
-
name: 'id',
|
|
25832
|
-
kind: 'Scalar'
|
|
25833
|
-
},
|
|
25834
|
-
{
|
|
25835
|
-
name: 'label',
|
|
25836
|
-
kind: 'Scalar'
|
|
25837
|
-
},
|
|
25838
|
-
{
|
|
25839
|
-
name: 'url',
|
|
25840
|
-
kind: 'Scalar'
|
|
25841
|
-
}
|
|
25842
|
-
]
|
|
25843
|
-
};
|
|
25844
|
-
};
|
|
25845
|
-
function equals$S(existing, incoming) {
|
|
25846
|
-
const existing_apiName = existing.apiName;
|
|
25847
|
-
const incoming_apiName = incoming.apiName;
|
|
25848
|
-
if (!(existing_apiName === incoming_apiName)) {
|
|
25849
|
-
return false;
|
|
25850
|
-
}
|
|
25851
|
-
const existing_label = existing.label;
|
|
25852
|
-
const incoming_label = incoming.label;
|
|
25853
|
-
if (!(existing_label === incoming_label)) {
|
|
25854
|
-
return false;
|
|
25855
|
-
}
|
|
25856
|
-
const existing_url = existing.url;
|
|
25857
|
-
const incoming_url = incoming.url;
|
|
25858
|
-
if (!(existing_url === incoming_url)) {
|
|
25859
|
-
return false;
|
|
25860
|
-
}
|
|
25861
|
-
const existing_id = existing.id;
|
|
25862
|
-
const incoming_id = incoming.id;
|
|
25863
|
-
if (!(existing_id === incoming_id)) {
|
|
25864
|
-
return false;
|
|
25865
|
-
}
|
|
25866
|
-
return true;
|
|
25867
|
-
}
|
|
25868
|
-
const ingest$E$1 = function ListInfoSummaryRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
25869
|
-
const key = keyBuilderFromType$u(luvio, input);
|
|
25870
|
-
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
25871
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$E, "UiApi", VERSION$10$1, RepresentationType$L, equals$S);
|
|
25872
|
-
return createLink$3(key);
|
|
25873
|
-
};
|
|
25874
|
-
function getTypeCacheKeys$M$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
25875
|
-
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
25876
|
-
const rootKey = keyBuilderFromType$u(luvio, input);
|
|
25877
|
-
rootKeySet.set(rootKey, {
|
|
25878
|
-
namespace: keyPrefix$2,
|
|
25879
|
-
representationName: RepresentationType$L,
|
|
25880
|
-
mergeable: false
|
|
25881
|
-
});
|
|
25882
|
-
}
|
|
25883
|
-
|
|
25884
|
-
const VERSION$$$1 = "d0cadb0927f908b5b64694e1cff0b2d7";
|
|
25885
|
-
const RepresentationType$K = 'ListInfoSummaryCollectionRepresentation';
|
|
25886
|
-
function keyBuilder$1O(luvio, config) {
|
|
25887
|
-
return keyPrefix$2 + '::' + RepresentationType$K + ':' + config.objectApiName + ':' + (config.queryString === null ? '' : config.queryString) + ':' + config.recentListsOnly;
|
|
25888
|
-
}
|
|
25889
|
-
function keyBuilderFromType$t(luvio, object) {
|
|
25890
|
-
const keyParams = {
|
|
25891
|
-
objectApiName: object.objectApiName,
|
|
25892
|
-
queryString: object.queryString,
|
|
25893
|
-
recentListsOnly: object.recentListsOnly
|
|
25894
|
-
};
|
|
25895
|
-
return keyBuilder$1O(luvio, keyParams);
|
|
25896
|
-
}
|
|
25897
|
-
function normalize$D(input, existing, path, luvio, store, timestamp) {
|
|
25898
|
-
const input_lists = input.lists;
|
|
25899
|
-
const input_lists_id = path.fullPath + '__lists';
|
|
25900
|
-
for (let i = 0; i < input_lists.length; i++) {
|
|
25901
|
-
const input_lists_item = input_lists[i];
|
|
25902
|
-
let input_lists_item_id = input_lists_id + '__' + i;
|
|
25903
|
-
input_lists[i] = ingest$E$1(input_lists_item, {
|
|
25904
|
-
fullPath: input_lists_item_id,
|
|
25905
|
-
propertyName: i,
|
|
25906
|
-
parent: {
|
|
25907
|
-
data: input,
|
|
25908
|
-
key: path.fullPath,
|
|
25909
|
-
existing: existing,
|
|
25910
|
-
},
|
|
25911
|
-
ttl: path.ttl
|
|
25912
|
-
}, luvio, store, timestamp);
|
|
25913
|
-
}
|
|
25914
|
-
return input;
|
|
25915
|
-
}
|
|
25916
|
-
const select$1C = function ListInfoSummaryCollectionRepresentationSelect(paginationParams) {
|
|
25917
|
-
return {
|
|
25918
|
-
kind: 'Fragment',
|
|
25919
|
-
reader: true,
|
|
25920
|
-
synthetic: false,
|
|
25921
|
-
version: VERSION$$$1,
|
|
25922
|
-
read: (source, reader) => {
|
|
25923
|
-
const sink = {};
|
|
25924
|
-
if (paginationParams === undefined) {
|
|
25925
|
-
return sink;
|
|
25926
|
-
}
|
|
25927
|
-
const metadata = reader.resolveMetadata(source, PAGINATION_VERSION$1);
|
|
25928
|
-
const currentPageMetadata = getPageMetadata$1(metadata, paginationParams);
|
|
25929
|
-
const { startOffset, endOffset, metadataProperties } = currentPageMetadata;
|
|
25930
|
-
if (metadata !== undefined && startOffset !== undefined && endOffset !== undefined) {
|
|
25931
|
-
const itemsProperty = 'lists';
|
|
25932
|
-
reader.enterPath(itemsProperty);
|
|
25933
|
-
const itemsSource = source[itemsProperty];
|
|
25934
|
-
const itemsSink = [];
|
|
25935
|
-
const allSink = [];
|
|
25936
|
-
for (let i = startOffset; i < endOffset; i++) {
|
|
25937
|
-
reader.enterPath(i);
|
|
25938
|
-
reader.readSingleLink(i, {
|
|
25939
|
-
name: 'lists',
|
|
25940
|
-
kind: 'Link',
|
|
25941
|
-
fragment: select$1D()
|
|
25942
|
-
}, itemsSource, allSink, i - startOffset);
|
|
25943
|
-
if (reader.getIsDataMissing() === false) {
|
|
25944
|
-
itemsSink[i - startOffset] = allSink[i - startOffset];
|
|
25945
|
-
}
|
|
25946
|
-
reader.exitPath();
|
|
25947
|
-
}
|
|
25948
|
-
reader.exitPath();
|
|
25949
|
-
reader.assignNonScalar(sink, itemsProperty, itemsSink);
|
|
25950
|
-
}
|
|
25951
|
-
reader.enterPath('currentPageToken');
|
|
25952
|
-
reader.readScalar('currentPageToken', metadataProperties, sink);
|
|
25953
|
-
reader.exitPath();
|
|
25954
|
-
reader.enterPath('nextPageToken');
|
|
25955
|
-
reader.readScalar('nextPageToken', metadataProperties, sink);
|
|
25956
|
-
reader.exitPath();
|
|
25957
|
-
reader.enterPath('previousPageToken');
|
|
25958
|
-
reader.readScalar('previousPageToken', metadataProperties, sink);
|
|
25959
|
-
reader.exitPath();
|
|
25960
|
-
reader.enterPath('pageSize');
|
|
25961
|
-
reader.readScalar('pageSize', metadataProperties, sink);
|
|
25962
|
-
reader.exitPath();
|
|
25963
|
-
reader.enterPath('count');
|
|
25964
|
-
reader.readScalar('count', metadataProperties, sink);
|
|
25965
|
-
reader.exitPath();
|
|
25966
|
-
reader.enterPath('objectApiName');
|
|
25967
|
-
reader.readScalar('objectApiName', source, sink);
|
|
25968
|
-
reader.exitPath();
|
|
25969
|
-
reader.enterPath('queryString');
|
|
25970
|
-
reader.readScalar('queryString', source, sink);
|
|
25971
|
-
reader.exitPath();
|
|
25972
|
-
reader.enterPath('recentListsOnly');
|
|
25973
|
-
reader.readScalar('recentListsOnly', source, sink);
|
|
25974
|
-
reader.exitPath();
|
|
25975
|
-
return sink;
|
|
25976
|
-
},
|
|
25977
|
-
};
|
|
25978
|
-
};
|
|
25979
|
-
function getPageMetadata$1(paginationMetadata, paginationParams) {
|
|
25980
|
-
const metadataProperties = {};
|
|
25981
|
-
const sink = {
|
|
25982
|
-
metadataProperties
|
|
25983
|
-
};
|
|
25984
|
-
if (paginationMetadata === undefined) {
|
|
25985
|
-
return sink;
|
|
25986
|
-
}
|
|
25987
|
-
const { token, pageSize } = paginationParams;
|
|
25988
|
-
const pageTokenAndOffset = getPageTokenAndOffset$1(paginationMetadata, token);
|
|
25989
|
-
if (pageTokenAndOffset === undefined) {
|
|
25990
|
-
return sink;
|
|
25991
|
-
}
|
|
25992
|
-
const [pageToken, startOffset] = pageTokenAndOffset;
|
|
25993
|
-
const endOffset = pageEndOffset$1(paginationMetadata, startOffset, pageSize);
|
|
25994
|
-
sink.startOffset = startOffset;
|
|
25995
|
-
sink.endOffset = endOffset;
|
|
25996
|
-
metadataProperties.currentPageToken = pageToken;
|
|
25997
|
-
const nextToken = getNextPageToken$1(paginationMetadata, endOffset);
|
|
25998
|
-
if (nextToken !== undefined) {
|
|
25999
|
-
metadataProperties.nextPageToken = nextToken;
|
|
26000
|
-
}
|
|
26001
|
-
const previousToken = getPreviousPageToken(paginationMetadata, startOffset, pageSize);
|
|
26002
|
-
if (previousToken !== undefined) {
|
|
26003
|
-
metadataProperties.previousPageToken = previousToken;
|
|
26004
|
-
}
|
|
26005
|
-
metadataProperties.pageSize = pageSize;
|
|
26006
|
-
metadataProperties.count = endOffset - startOffset;
|
|
26007
|
-
return sink;
|
|
26008
|
-
}
|
|
26009
|
-
function equals$R(existing, incoming) {
|
|
26010
|
-
const existing_recentListsOnly = existing.recentListsOnly;
|
|
26011
|
-
const incoming_recentListsOnly = incoming.recentListsOnly;
|
|
26012
|
-
if (!(existing_recentListsOnly === incoming_recentListsOnly)) {
|
|
26013
|
-
return false;
|
|
26014
|
-
}
|
|
26015
|
-
const existing_count = existing.count;
|
|
26016
|
-
const incoming_count = incoming.count;
|
|
26017
|
-
if (!(existing_count === incoming_count)) {
|
|
26018
|
-
return false;
|
|
26019
|
-
}
|
|
26020
|
-
const existing_pageSize = existing.pageSize;
|
|
26021
|
-
const incoming_pageSize = incoming.pageSize;
|
|
26022
|
-
if (!(existing_pageSize === incoming_pageSize)) {
|
|
26023
|
-
return false;
|
|
26024
|
-
}
|
|
26025
|
-
const existing_currentPageToken = existing.currentPageToken;
|
|
26026
|
-
const incoming_currentPageToken = incoming.currentPageToken;
|
|
26027
|
-
if (!(existing_currentPageToken === incoming_currentPageToken)) {
|
|
26028
|
-
return false;
|
|
26029
|
-
}
|
|
26030
|
-
const existing_currentPageUrl = existing.currentPageUrl;
|
|
26031
|
-
const incoming_currentPageUrl = incoming.currentPageUrl;
|
|
26032
|
-
if (!(existing_currentPageUrl === incoming_currentPageUrl)) {
|
|
26033
|
-
return false;
|
|
26034
|
-
}
|
|
26035
|
-
const existing_eTag = existing.eTag;
|
|
26036
|
-
const incoming_eTag = incoming.eTag;
|
|
26037
|
-
if (!(existing_eTag === incoming_eTag)) {
|
|
26038
|
-
return false;
|
|
26039
|
-
}
|
|
26040
|
-
const existing_objectApiName = existing.objectApiName;
|
|
26041
|
-
const incoming_objectApiName = incoming.objectApiName;
|
|
26042
|
-
if (!(existing_objectApiName === incoming_objectApiName)) {
|
|
26043
|
-
return false;
|
|
26044
|
-
}
|
|
26045
|
-
const existing_lists = existing.lists;
|
|
26046
|
-
const incoming_lists = incoming.lists;
|
|
26047
|
-
const equals_lists_items = equalsArray(existing_lists, incoming_lists, (existing_lists_item, incoming_lists_item) => {
|
|
26048
|
-
if (!(existing_lists_item.__ref === incoming_lists_item.__ref)) {
|
|
26049
|
-
return false;
|
|
26050
|
-
}
|
|
26051
|
-
});
|
|
26052
|
-
if (equals_lists_items === false) {
|
|
26053
|
-
return false;
|
|
26054
|
-
}
|
|
26055
|
-
const existing_nextPageToken = existing.nextPageToken;
|
|
26056
|
-
const incoming_nextPageToken = incoming.nextPageToken;
|
|
26057
|
-
if (!(existing_nextPageToken === incoming_nextPageToken)) {
|
|
26058
|
-
return false;
|
|
26059
|
-
}
|
|
26060
|
-
const existing_nextPageUrl = existing.nextPageUrl;
|
|
26061
|
-
const incoming_nextPageUrl = incoming.nextPageUrl;
|
|
26062
|
-
if (!(existing_nextPageUrl === incoming_nextPageUrl)) {
|
|
26063
|
-
return false;
|
|
26064
|
-
}
|
|
26065
|
-
const existing_previousPageToken = existing.previousPageToken;
|
|
26066
|
-
const incoming_previousPageToken = incoming.previousPageToken;
|
|
26067
|
-
if (!(existing_previousPageToken === incoming_previousPageToken)) {
|
|
26068
|
-
return false;
|
|
26069
|
-
}
|
|
26070
|
-
const existing_previousPageUrl = existing.previousPageUrl;
|
|
26071
|
-
const incoming_previousPageUrl = incoming.previousPageUrl;
|
|
26072
|
-
if (!(existing_previousPageUrl === incoming_previousPageUrl)) {
|
|
26073
|
-
return false;
|
|
26074
|
-
}
|
|
26075
|
-
const existing_queryString = existing.queryString;
|
|
26076
|
-
const incoming_queryString = incoming.queryString;
|
|
26077
|
-
if (!(existing_queryString === incoming_queryString)) {
|
|
26078
|
-
return false;
|
|
26079
|
-
}
|
|
26080
|
-
return true;
|
|
26081
|
-
}
|
|
26082
|
-
const ingest$D$1 = function ListInfoSummaryCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
26083
|
-
const key = keyBuilderFromType$t(luvio, input);
|
|
26084
|
-
const existingRecord = store.readEntry(key);
|
|
26085
|
-
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
26086
|
-
let incomingRecord = normalize$D(input, store.readEntry(key), {
|
|
26087
|
-
fullPath: key,
|
|
26088
|
-
parent: path.parent,
|
|
26089
|
-
propertyName: path.propertyName,
|
|
26090
|
-
ttl: ttlToUse
|
|
26091
|
-
}, luvio, store, timestamp);
|
|
26092
|
-
const paginationKey = key + '__pagination';
|
|
26093
|
-
const existingPaginationMetadata = store.readEntry(paginationKey);
|
|
26094
|
-
const { count: count, currentPageToken: token, nextPageToken: nextToken, pageSize: pageSize, previousPageToken: previousToken, lists: items } = input;
|
|
26095
|
-
const startOffset = existingPaginationMetadata === undefined ? 0 : offsetFromToken$1(existingPaginationMetadata, token);
|
|
26096
|
-
const incomingPaginationMetadata = {
|
|
26097
|
-
[token]: startOffset,
|
|
26098
|
-
};
|
|
26099
|
-
const nextOffset = startOffset + items.length;
|
|
26100
|
-
if (nextToken === null) {
|
|
26101
|
-
incomingPaginationMetadata.__END__ = nextOffset;
|
|
26102
|
-
}
|
|
26103
|
-
else {
|
|
26104
|
-
incomingPaginationMetadata[nextToken] = nextOffset;
|
|
26105
|
-
if (existingPaginationMetadata !== undefined) {
|
|
26106
|
-
const listEndOffset = existingPaginationMetadata.__END__;
|
|
26107
|
-
if (listEndOffset !== undefined && nextOffset >= listEndOffset) {
|
|
26108
|
-
incomingPaginationMetadata.__END__ = undefined;
|
|
26109
|
-
}
|
|
26110
|
-
}
|
|
26111
|
-
}
|
|
26112
|
-
if (previousToken !== null) {
|
|
26113
|
-
incomingPaginationMetadata[previousToken] = Math.max(startOffset - pageSize, 0);
|
|
26114
|
-
}
|
|
26115
|
-
const mergedPaginationMetadata = mergeMetadata$1(existingPaginationMetadata, incomingPaginationMetadata);
|
|
26116
|
-
if (existingPaginationMetadata === undefined ||
|
|
26117
|
-
equalsObject$1(existingPaginationMetadata, mergedPaginationMetadata, (existingProp, incomingProp) => {
|
|
26118
|
-
return existingProp === incomingProp;
|
|
26119
|
-
}) === false) {
|
|
26120
|
-
luvio.storePublish(paginationKey, mergedPaginationMetadata);
|
|
26121
|
-
luvio.publishStoreMetadata(paginationKey, paginationStoreMetadata$1);
|
|
26122
|
-
}
|
|
26123
|
-
assignMetadataLink$1(incomingRecord, paginationKey);
|
|
26124
|
-
if (existingRecord !== undefined && existingRecord.lists !== undefined) {
|
|
26125
|
-
incomingRecord.lists = [
|
|
26126
|
-
...existingRecord.lists.slice(0, startOffset),
|
|
26127
|
-
...incomingRecord.lists,
|
|
26128
|
-
...existingRecord.lists.slice(nextOffset),
|
|
26129
|
-
];
|
|
26130
|
-
}
|
|
26131
|
-
if (existingRecord === undefined || equals$R(existingRecord, incomingRecord) === false) {
|
|
26132
|
-
luvio.storePublish(key, incomingRecord);
|
|
26133
|
-
}
|
|
26134
|
-
if (ttlToUse !== undefined) {
|
|
26135
|
-
const storeMetadataParams = {
|
|
26136
|
-
ttl: ttlToUse,
|
|
26137
|
-
namespace: "UiApi",
|
|
26138
|
-
version: VERSION$$$1,
|
|
26139
|
-
representationName: RepresentationType$K,
|
|
26140
|
-
ingestionTimestamp: timestamp,
|
|
26141
|
-
};
|
|
26142
|
-
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
26143
|
-
}
|
|
26144
|
-
return createLink$3(key);
|
|
26145
|
-
};
|
|
26146
|
-
function getTypeCacheKeys$L$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
26147
|
-
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
26148
|
-
const rootKey = keyBuilderFromType$t(luvio, input);
|
|
26149
|
-
rootKeySet.set(rootKey, {
|
|
26150
|
-
namespace: keyPrefix$2,
|
|
26151
|
-
representationName: RepresentationType$K,
|
|
26152
|
-
mergeable: true
|
|
26153
|
-
});
|
|
26154
|
-
rootKeySet.set(rootKey + '__pagination', {
|
|
26155
|
-
namespace: keyPrefix$2,
|
|
26156
|
-
representationName: RepresentationType$K,
|
|
26157
|
-
mergeable: true
|
|
26158
|
-
});
|
|
26159
|
-
const input_lists_length = input.lists.length;
|
|
26160
|
-
for (let i = 0; i < input_lists_length; i++) {
|
|
26161
|
-
getTypeCacheKeys$M$1(rootKeySet, luvio, input.lists[i]);
|
|
26162
|
-
}
|
|
26163
|
-
}
|
|
26164
|
-
const notifyUpdateAvailableFactory$2 = (luvio) => {
|
|
26165
|
-
return function notifyListInfoSummaryUpdateAvailable(configs) {
|
|
26166
|
-
const keys = configs.map(c => keyBuilder$1O(luvio, c));
|
|
26167
|
-
return luvio.notifyStoreUpdateAvailable(keys);
|
|
26168
|
-
};
|
|
26169
|
-
};
|
|
26170
|
-
|
|
26171
26275
|
const notifyUpdateAvailableFactory$1 = (luvio) => {
|
|
26172
26276
|
return function notifyListInfoUpdateAvailable(configs) {
|
|
26173
26277
|
const generated_notifyUpdateAvailable = notifyUpdateAvailableFactory$6(luvio);
|
|
@@ -28459,7 +28563,7 @@
|
|
|
28459
28563
|
buildCachedSnapshotCachePolicy$D, buildNetworkSnapshotCachePolicy$E);
|
|
28460
28564
|
};
|
|
28461
28565
|
|
|
28462
|
-
function validate$
|
|
28566
|
+
function validate$1f(obj, path = 'ActionRelatedListSingleBatchInputRepresentation') {
|
|
28463
28567
|
const v_error = (() => {
|
|
28464
28568
|
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
28465
28569
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -28870,7 +28974,7 @@
|
|
|
28870
28974
|
const untrustedConfig_relatedListsActionParameters_array = [];
|
|
28871
28975
|
for (let i = 0, arrayLength = untrustedConfig_relatedListsActionParameters.length; i < arrayLength; i++) {
|
|
28872
28976
|
const untrustedConfig_relatedListsActionParameters_item = untrustedConfig_relatedListsActionParameters[i];
|
|
28873
|
-
const referenceActionRelatedListSingleBatchInputRepresentationValidationError = validate$
|
|
28977
|
+
const referenceActionRelatedListSingleBatchInputRepresentationValidationError = validate$1f(untrustedConfig_relatedListsActionParameters_item);
|
|
28874
28978
|
if (referenceActionRelatedListSingleBatchInputRepresentationValidationError === null) {
|
|
28875
28979
|
untrustedConfig_relatedListsActionParameters_array.push(untrustedConfig_relatedListsActionParameters_item);
|
|
28876
28980
|
}
|
|
@@ -30375,7 +30479,7 @@
|
|
|
30375
30479
|
return keyPrefix$2 + '::RecordLayoutRepresentation:(' + 'formFactor:' + params.queryParams.formFactor + ',' + 'layoutType:' + params.queryParams.layoutType + ',' + 'mode:' + params.queryParams.mode + ',' + 'recordTypeId:' + params.queryParams.recordTypeId + ',' + 'objectApiName:' + params.urlParams.objectApiName + ')';
|
|
30376
30480
|
}
|
|
30377
30481
|
function getResponseCacheKeys$I(storeKeyMap, luvio, resourceParams, response) {
|
|
30378
|
-
getTypeCacheKeys$
|
|
30482
|
+
getTypeCacheKeys$M$1(storeKeyMap, luvio, response);
|
|
30379
30483
|
}
|
|
30380
30484
|
function ingestError$q(luvio, params, error, snapshotRefresh) {
|
|
30381
30485
|
const key = keyBuilder$1b(luvio, params);
|
|
@@ -30383,8 +30487,8 @@
|
|
|
30383
30487
|
const storeMetadataParams = {
|
|
30384
30488
|
ttl: TTL$v,
|
|
30385
30489
|
namespace: keyPrefix$2,
|
|
30386
|
-
version: VERSION$
|
|
30387
|
-
representationName: RepresentationType$
|
|
30490
|
+
version: VERSION$11$1,
|
|
30491
|
+
representationName: RepresentationType$M
|
|
30388
30492
|
};
|
|
30389
30493
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
30390
30494
|
return errorSnapshot;
|
|
@@ -30405,11 +30509,11 @@
|
|
|
30405
30509
|
|
|
30406
30510
|
function onFetchResponseSuccess$t(luvio, config, resourceParams, response) {
|
|
30407
30511
|
const { body } = response;
|
|
30408
|
-
const key = keyBuilder$
|
|
30409
|
-
luvio.storeIngest(key, ingest$
|
|
30512
|
+
const key = keyBuilder$1Q(luvio, config);
|
|
30513
|
+
luvio.storeIngest(key, ingest$F$1, body);
|
|
30410
30514
|
const snapshot = luvio.storeLookup({
|
|
30411
30515
|
recordId: key,
|
|
30412
|
-
node: select$
|
|
30516
|
+
node: select$1D(),
|
|
30413
30517
|
variables: {},
|
|
30414
30518
|
}, {
|
|
30415
30519
|
config,
|
|
@@ -30454,8 +30558,8 @@
|
|
|
30454
30558
|
function buildCachedSnapshotCachePolicy$w(context, storeLookup) {
|
|
30455
30559
|
const { luvio, config } = context;
|
|
30456
30560
|
const selector = {
|
|
30457
|
-
recordId: keyBuilder$
|
|
30458
|
-
node: select$
|
|
30561
|
+
recordId: keyBuilder$1Q(luvio, config),
|
|
30562
|
+
node: select$1D(),
|
|
30459
30563
|
variables: {},
|
|
30460
30564
|
};
|
|
30461
30565
|
return storeLookup(selector, {
|
|
@@ -30524,7 +30628,7 @@
|
|
|
30524
30628
|
};
|
|
30525
30629
|
|
|
30526
30630
|
function getResponseCacheKeys$H(storeKeyMap, luvio, resourceParams, response) {
|
|
30527
|
-
getTypeCacheKeys$
|
|
30631
|
+
getTypeCacheKeys$L$1(storeKeyMap, luvio, response);
|
|
30528
30632
|
}
|
|
30529
30633
|
function createResourceRequest$K(config) {
|
|
30530
30634
|
const headers = {};
|
|
@@ -30542,7 +30646,7 @@
|
|
|
30542
30646
|
|
|
30543
30647
|
function buildCachedSnapshot$5(luvio, config) {
|
|
30544
30648
|
const { objectApiName, recordTypeId, layoutType, mode } = config;
|
|
30545
|
-
const key = keyBuilder$
|
|
30649
|
+
const key = keyBuilder$1P(luvio, {
|
|
30546
30650
|
apiName: objectApiName,
|
|
30547
30651
|
recordTypeId,
|
|
30548
30652
|
layoutType,
|
|
@@ -30550,7 +30654,7 @@
|
|
|
30550
30654
|
});
|
|
30551
30655
|
const selector = {
|
|
30552
30656
|
recordId: key,
|
|
30553
|
-
node: select$
|
|
30657
|
+
node: select$1C(),
|
|
30554
30658
|
variables: {},
|
|
30555
30659
|
};
|
|
30556
30660
|
return luvio.storeLookup(selector, {
|
|
@@ -30583,7 +30687,7 @@
|
|
|
30583
30687
|
body.recordTypeId = recordTypeId;
|
|
30584
30688
|
body.layoutType = layoutType;
|
|
30585
30689
|
body.mode = mode;
|
|
30586
|
-
luvio.storeIngest(key, ingest$
|
|
30690
|
+
luvio.storeIngest(key, ingest$E$1, body);
|
|
30587
30691
|
const snapshot = buildCachedSnapshot$5(luvio, config);
|
|
30588
30692
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
30589
30693
|
}
|
|
@@ -30597,7 +30701,7 @@
|
|
|
30597
30701
|
}
|
|
30598
30702
|
function prepareRequest$4(luvio, config) {
|
|
30599
30703
|
const { recordTypeId, layoutType, mode, objectApiName } = config;
|
|
30600
|
-
const key = keyBuilder$
|
|
30704
|
+
const key = keyBuilder$1P(luvio, {
|
|
30601
30705
|
apiName: objectApiName,
|
|
30602
30706
|
recordTypeId,
|
|
30603
30707
|
layoutType,
|
|
@@ -30662,13 +30766,13 @@
|
|
|
30662
30766
|
const { config, luvio } = context;
|
|
30663
30767
|
const { objectApiName, recordTypeId, layoutType, mode } = config;
|
|
30664
30768
|
const selector = {
|
|
30665
|
-
recordId: keyBuilder$
|
|
30769
|
+
recordId: keyBuilder$1P(luvio, {
|
|
30666
30770
|
apiName: objectApiName,
|
|
30667
30771
|
recordTypeId,
|
|
30668
30772
|
layoutType,
|
|
30669
30773
|
mode,
|
|
30670
30774
|
}),
|
|
30671
|
-
node: select$
|
|
30775
|
+
node: select$1C(),
|
|
30672
30776
|
variables: {},
|
|
30673
30777
|
};
|
|
30674
30778
|
return storeLookup(selector, {
|
|
@@ -31118,22 +31222,22 @@
|
|
|
31118
31222
|
}
|
|
31119
31223
|
function select$13$1(luvio, params) {
|
|
31120
31224
|
const paginationParams = createPaginationParams$1(params);
|
|
31121
|
-
return select$
|
|
31225
|
+
return select$1K(paginationParams);
|
|
31122
31226
|
}
|
|
31123
31227
|
function keyBuilder$17$1(luvio, params) {
|
|
31124
|
-
return keyBuilder$
|
|
31228
|
+
return keyBuilder$1_(luvio, {
|
|
31125
31229
|
objectApiName: params.urlParams.objectApiName,
|
|
31126
31230
|
queryString: params.queryParams.q || null,
|
|
31127
31231
|
recentListsOnly: params.queryParams.recentListsOnly || false
|
|
31128
31232
|
});
|
|
31129
31233
|
}
|
|
31130
31234
|
function getResponseCacheKeys$E(storeKeyMap, luvio, resourceParams, response) {
|
|
31131
|
-
getTypeCacheKeys$
|
|
31235
|
+
getTypeCacheKeys$Q$1(storeKeyMap, luvio, response);
|
|
31132
31236
|
}
|
|
31133
31237
|
function ingestSuccess$w(luvio, resourceParams, response, snapshotRefresh) {
|
|
31134
31238
|
const { body } = response;
|
|
31135
31239
|
const key = keyBuilder$17$1(luvio, resourceParams);
|
|
31136
|
-
luvio.storeIngest(key, ingest$
|
|
31240
|
+
luvio.storeIngest(key, ingest$J$1, body);
|
|
31137
31241
|
const snapshot = luvio.storeLookup({
|
|
31138
31242
|
recordId: key,
|
|
31139
31243
|
node: select$13$1(luvio, resourceParams),
|
|
@@ -31261,7 +31365,7 @@
|
|
|
31261
31365
|
recordId: key,
|
|
31262
31366
|
node: {
|
|
31263
31367
|
kind: 'Fragment',
|
|
31264
|
-
version: VERSION
|
|
31368
|
+
version: VERSION$15$1,
|
|
31265
31369
|
private: [],
|
|
31266
31370
|
selections: [
|
|
31267
31371
|
{
|
|
@@ -31327,7 +31431,7 @@
|
|
|
31327
31431
|
buildCachedSnapshotCachePolicy$t, buildNetworkSnapshotCachePolicy$u);
|
|
31328
31432
|
};
|
|
31329
31433
|
|
|
31330
|
-
function validate$
|
|
31434
|
+
function validate$15(obj, path = 'ListFilterByInfoInputRepresentation') {
|
|
31331
31435
|
const v_error = (() => {
|
|
31332
31436
|
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
31333
31437
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -31358,7 +31462,7 @@
|
|
|
31358
31462
|
return v_error === undefined ? null : v_error;
|
|
31359
31463
|
}
|
|
31360
31464
|
|
|
31361
|
-
function validate$
|
|
31465
|
+
function validate$14(obj, path = 'ListScopeInputRepresentation') {
|
|
31362
31466
|
const v_error = (() => {
|
|
31363
31467
|
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
31364
31468
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -31482,7 +31586,7 @@
|
|
|
31482
31586
|
const untrustedConfig_filteredByInfo_array = [];
|
|
31483
31587
|
for (let i = 0, arrayLength = untrustedConfig_filteredByInfo.length; i < arrayLength; i++) {
|
|
31484
31588
|
const untrustedConfig_filteredByInfo_item = untrustedConfig_filteredByInfo[i];
|
|
31485
|
-
const referenceListFilterByInfoInputRepresentationValidationError = validate$
|
|
31589
|
+
const referenceListFilterByInfoInputRepresentationValidationError = validate$15(untrustedConfig_filteredByInfo_item);
|
|
31486
31590
|
if (referenceListFilterByInfoInputRepresentationValidationError === null) {
|
|
31487
31591
|
untrustedConfig_filteredByInfo_array.push(untrustedConfig_filteredByInfo_item);
|
|
31488
31592
|
}
|
|
@@ -31490,7 +31594,7 @@
|
|
|
31490
31594
|
config.filteredByInfo = untrustedConfig_filteredByInfo_array;
|
|
31491
31595
|
}
|
|
31492
31596
|
const untrustedConfig_scope = untrustedConfig.scope;
|
|
31493
|
-
const referenceListScopeInputRepresentationValidationError = validate$
|
|
31597
|
+
const referenceListScopeInputRepresentationValidationError = validate$14(untrustedConfig_scope);
|
|
31494
31598
|
if (referenceListScopeInputRepresentationValidationError === null) {
|
|
31495
31599
|
config.scope = untrustedConfig_scope;
|
|
31496
31600
|
}
|
|
@@ -31758,7 +31862,7 @@
|
|
|
31758
31862
|
const untrustedConfig_filteredByInfo_array = [];
|
|
31759
31863
|
for (let i = 0, arrayLength = untrustedConfig_filteredByInfo.length; i < arrayLength; i++) {
|
|
31760
31864
|
const untrustedConfig_filteredByInfo_item = untrustedConfig_filteredByInfo[i];
|
|
31761
|
-
const referenceListFilterByInfoInputRepresentationValidationError = validate$
|
|
31865
|
+
const referenceListFilterByInfoInputRepresentationValidationError = validate$15(untrustedConfig_filteredByInfo_item);
|
|
31762
31866
|
if (referenceListFilterByInfoInputRepresentationValidationError === null) {
|
|
31763
31867
|
untrustedConfig_filteredByInfo_array.push(untrustedConfig_filteredByInfo_item);
|
|
31764
31868
|
}
|
|
@@ -31766,7 +31870,7 @@
|
|
|
31766
31870
|
config.filteredByInfo = untrustedConfig_filteredByInfo_array;
|
|
31767
31871
|
}
|
|
31768
31872
|
const untrustedConfig_scope = untrustedConfig.scope;
|
|
31769
|
-
const referenceListScopeInputRepresentationValidationError = validate$
|
|
31873
|
+
const referenceListScopeInputRepresentationValidationError = validate$14(untrustedConfig_scope);
|
|
31770
31874
|
if (referenceListScopeInputRepresentationValidationError === null) {
|
|
31771
31875
|
config.scope = untrustedConfig_scope;
|
|
31772
31876
|
}
|
|
@@ -32517,7 +32621,7 @@
|
|
|
32517
32621
|
buildCachedSnapshotCachePolicy$q, buildNetworkSnapshotCachePolicy$r);
|
|
32518
32622
|
};
|
|
32519
32623
|
|
|
32520
|
-
function validate$
|
|
32624
|
+
function validate$Z(obj, path = 'ListOrderedByInfoInputRepresentation') {
|
|
32521
32625
|
const v_error = (() => {
|
|
32522
32626
|
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
32523
32627
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -32620,7 +32724,7 @@
|
|
|
32620
32724
|
const untrustedConfig_orderedBy_array = [];
|
|
32621
32725
|
for (let i = 0, arrayLength = untrustedConfig_orderedBy.length; i < arrayLength; i++) {
|
|
32622
32726
|
const untrustedConfig_orderedBy_item = untrustedConfig_orderedBy[i];
|
|
32623
|
-
const referenceListOrderedByInfoInputRepresentationValidationError = validate$
|
|
32727
|
+
const referenceListOrderedByInfoInputRepresentationValidationError = validate$Z(untrustedConfig_orderedBy_item);
|
|
32624
32728
|
if (referenceListOrderedByInfoInputRepresentationValidationError === null) {
|
|
32625
32729
|
untrustedConfig_orderedBy_array.push(untrustedConfig_orderedBy_item);
|
|
32626
32730
|
}
|
|
@@ -33053,8 +33157,8 @@
|
|
|
33053
33157
|
reader.enterPath(i);
|
|
33054
33158
|
reader.enterPath(envelopeBodyPath);
|
|
33055
33159
|
const childResource = childResources[i];
|
|
33056
|
-
const childKey = keyBuilder$
|
|
33057
|
-
const childFragment = select$
|
|
33160
|
+
const childKey = keyBuilder$1S(luvio, childResource);
|
|
33161
|
+
const childFragment = select$1E();
|
|
33058
33162
|
const isMissingDataBeforeChildRead = reader.getIsDataMissing();
|
|
33059
33163
|
const childSnapshot = reader.read({
|
|
33060
33164
|
recordId: childKey,
|
|
@@ -33153,10 +33257,10 @@
|
|
|
33153
33257
|
getResponseCacheKeys$Y(keys, luvio, childResourceParams, childBody);
|
|
33154
33258
|
}
|
|
33155
33259
|
else if (childStatusCode === 404) {
|
|
33156
|
-
const childKey = keyBuilder$
|
|
33260
|
+
const childKey = keyBuilder$1S(luvio, childResourceParams);
|
|
33157
33261
|
keys.set(childKey, {
|
|
33158
33262
|
namespace: keyPrefix$2,
|
|
33159
|
-
representationName: RepresentationType$
|
|
33263
|
+
representationName: RepresentationType$N,
|
|
33160
33264
|
mergeable: false
|
|
33161
33265
|
});
|
|
33162
33266
|
}
|
|
@@ -33169,7 +33273,7 @@
|
|
|
33169
33273
|
const now = Date.now();
|
|
33170
33274
|
for (let index = 0, len = childResourceParamsArray.length; index < len; index += 1) {
|
|
33171
33275
|
const childResourceParams = childResourceParamsArray[index];
|
|
33172
|
-
const childKey = keyBuilder$
|
|
33276
|
+
const childKey = keyBuilder$1S(luvio, childResourceParams);
|
|
33173
33277
|
const result = childEnvelopes[index];
|
|
33174
33278
|
const { statusCode: childStatusCode, result: childBody } = result;
|
|
33175
33279
|
if (childStatusCode === 200) {
|
|
@@ -36682,7 +36786,7 @@
|
|
|
36682
36786
|
buildCachedSnapshotCachePolicy$d, buildNetworkSnapshotCachePolicy$e);
|
|
36683
36787
|
};
|
|
36684
36788
|
|
|
36685
|
-
function validate$
|
|
36789
|
+
function validate$z(obj, path = 'ListUserPreferenceInputRepresentation') {
|
|
36686
36790
|
const v_error = (() => {
|
|
36687
36791
|
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
36688
36792
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -36759,7 +36863,7 @@
|
|
|
36759
36863
|
const untrustedConfig_orderedByInfo_array = [];
|
|
36760
36864
|
for (let i = 0, arrayLength = untrustedConfig_orderedByInfo.length; i < arrayLength; i++) {
|
|
36761
36865
|
const untrustedConfig_orderedByInfo_item = untrustedConfig_orderedByInfo[i];
|
|
36762
|
-
const referenceListOrderedByInfoInputRepresentationValidationError = validate$
|
|
36866
|
+
const referenceListOrderedByInfoInputRepresentationValidationError = validate$Z(untrustedConfig_orderedByInfo_item);
|
|
36763
36867
|
if (referenceListOrderedByInfoInputRepresentationValidationError === null) {
|
|
36764
36868
|
untrustedConfig_orderedByInfo_array.push(untrustedConfig_orderedByInfo_item);
|
|
36765
36869
|
}
|
|
@@ -36767,7 +36871,7 @@
|
|
|
36767
36871
|
config.orderedByInfo = untrustedConfig_orderedByInfo_array;
|
|
36768
36872
|
}
|
|
36769
36873
|
const untrustedConfig_userPreferences = untrustedConfig.userPreferences;
|
|
36770
|
-
const referenceListUserPreferenceInputRepresentationValidationError = validate$
|
|
36874
|
+
const referenceListUserPreferenceInputRepresentationValidationError = validate$z(untrustedConfig_userPreferences);
|
|
36771
36875
|
if (referenceListUserPreferenceInputRepresentationValidationError === null) {
|
|
36772
36876
|
config.userPreferences = untrustedConfig_userPreferences;
|
|
36773
36877
|
}
|
|
@@ -37422,7 +37526,7 @@
|
|
|
37422
37526
|
const untrustedConfig_orderedBy_array = [];
|
|
37423
37527
|
for (let i = 0, arrayLength = untrustedConfig_orderedBy.length; i < arrayLength; i++) {
|
|
37424
37528
|
const untrustedConfig_orderedBy_item = untrustedConfig_orderedBy[i];
|
|
37425
|
-
const referenceListOrderedByInfoInputRepresentationValidationError = validate$
|
|
37529
|
+
const referenceListOrderedByInfoInputRepresentationValidationError = validate$Z(untrustedConfig_orderedBy_item);
|
|
37426
37530
|
if (referenceListOrderedByInfoInputRepresentationValidationError === null) {
|
|
37427
37531
|
untrustedConfig_orderedBy_array.push(untrustedConfig_orderedBy_item);
|
|
37428
37532
|
}
|
|
@@ -37470,7 +37574,7 @@
|
|
|
37470
37574
|
};
|
|
37471
37575
|
};
|
|
37472
37576
|
|
|
37473
|
-
function validate$
|
|
37577
|
+
function validate$x(obj, path = 'RelatedListRecordsSingleBatchInputRepresentation') {
|
|
37474
37578
|
const v_error = (() => {
|
|
37475
37579
|
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
37476
37580
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -38424,7 +38528,7 @@
|
|
|
38424
38528
|
const untrustedConfig_relatedListParameters_array = [];
|
|
38425
38529
|
for (let i = 0, arrayLength = untrustedConfig_relatedListParameters.length; i < arrayLength; i++) {
|
|
38426
38530
|
const untrustedConfig_relatedListParameters_item = untrustedConfig_relatedListParameters[i];
|
|
38427
|
-
const referenceRelatedListRecordsSingleBatchInputRepresentationValidationError = validate$
|
|
38531
|
+
const referenceRelatedListRecordsSingleBatchInputRepresentationValidationError = validate$x(untrustedConfig_relatedListParameters_item);
|
|
38428
38532
|
if (referenceRelatedListRecordsSingleBatchInputRepresentationValidationError === null) {
|
|
38429
38533
|
untrustedConfig_relatedListParameters_array.push(untrustedConfig_relatedListParameters_item);
|
|
38430
38534
|
}
|
|
@@ -39218,7 +39322,7 @@
|
|
|
39218
39322
|
buildCachedSnapshotCachePolicy$6, buildNetworkSnapshotCachePolicy$7);
|
|
39219
39323
|
};
|
|
39220
39324
|
|
|
39221
|
-
function validate$
|
|
39325
|
+
function validate$m(obj, path = 'SearchDataCategoryInputRepresentation') {
|
|
39222
39326
|
const v_error = (() => {
|
|
39223
39327
|
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
39224
39328
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -39249,7 +39353,7 @@
|
|
|
39249
39353
|
return v_error === undefined ? null : v_error;
|
|
39250
39354
|
}
|
|
39251
39355
|
|
|
39252
|
-
function validate$
|
|
39356
|
+
function validate$l(obj, path = 'SearchFilterInputRepresentation') {
|
|
39253
39357
|
const v_error = (() => {
|
|
39254
39358
|
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
39255
39359
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -39318,7 +39422,7 @@
|
|
|
39318
39422
|
return v_error === undefined ? null : v_error;
|
|
39319
39423
|
}
|
|
39320
39424
|
|
|
39321
|
-
function validate$
|
|
39425
|
+
function validate$k(obj, path = 'SearchObjectOptionsRepresentation') {
|
|
39322
39426
|
const v_error = (() => {
|
|
39323
39427
|
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
39324
39428
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -39331,7 +39435,7 @@
|
|
|
39331
39435
|
for (let i = 0; i < obj_dataCategories.length; i++) {
|
|
39332
39436
|
const obj_dataCategories_item = obj_dataCategories[i];
|
|
39333
39437
|
const path_dataCategories_item = path_dataCategories + '[' + i + ']';
|
|
39334
|
-
const referencepath_dataCategories_itemValidationError = validate$
|
|
39438
|
+
const referencepath_dataCategories_itemValidationError = validate$m(obj_dataCategories_item, path_dataCategories_item);
|
|
39335
39439
|
if (referencepath_dataCategories_itemValidationError !== null) {
|
|
39336
39440
|
let message = 'Object doesn\'t match SearchDataCategoryInputRepresentation (at "' + path_dataCategories_item + '")\n';
|
|
39337
39441
|
message += referencepath_dataCategories_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -39346,7 +39450,7 @@
|
|
|
39346
39450
|
for (let i = 0; i < obj_filters.length; i++) {
|
|
39347
39451
|
const obj_filters_item = obj_filters[i];
|
|
39348
39452
|
const path_filters_item = path_filters + '[' + i + ']';
|
|
39349
|
-
const referencepath_filters_itemValidationError = validate$
|
|
39453
|
+
const referencepath_filters_itemValidationError = validate$l(obj_filters_item, path_filters_item);
|
|
39350
39454
|
if (referencepath_filters_itemValidationError !== null) {
|
|
39351
39455
|
let message = 'Object doesn\'t match SearchFilterInputRepresentation (at "' + path_filters_item + '")\n';
|
|
39352
39456
|
message += referencepath_filters_itemValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -39477,7 +39581,7 @@
|
|
|
39477
39581
|
for (let i = 0, arrayLength = untrustedConfig_searchObjectOptions_keys.length; i < arrayLength; i++) {
|
|
39478
39582
|
const key = untrustedConfig_searchObjectOptions_keys[i];
|
|
39479
39583
|
const untrustedConfig_searchObjectOptions_prop = untrustedConfig_searchObjectOptions[key];
|
|
39480
|
-
const referenceSearchObjectOptionsRepresentationValidationError = validate$
|
|
39584
|
+
const referenceSearchObjectOptionsRepresentationValidationError = validate$k(untrustedConfig_searchObjectOptions_prop);
|
|
39481
39585
|
if (referenceSearchObjectOptionsRepresentationValidationError === null) {
|
|
39482
39586
|
if (untrustedConfig_searchObjectOptions_object !== undefined) {
|
|
39483
39587
|
untrustedConfig_searchObjectOptions_object[key] = untrustedConfig_searchObjectOptions_prop;
|
|
@@ -39680,7 +39784,7 @@
|
|
|
39680
39784
|
const untrustedConfig_filters_array = [];
|
|
39681
39785
|
for (let i = 0, arrayLength = untrustedConfig_filters.length; i < arrayLength; i++) {
|
|
39682
39786
|
const untrustedConfig_filters_item = untrustedConfig_filters[i];
|
|
39683
|
-
const referenceSearchFilterInputRepresentationValidationError = validate$
|
|
39787
|
+
const referenceSearchFilterInputRepresentationValidationError = validate$l(untrustedConfig_filters_item);
|
|
39684
39788
|
if (referenceSearchFilterInputRepresentationValidationError === null) {
|
|
39685
39789
|
untrustedConfig_filters_array.push(untrustedConfig_filters_item);
|
|
39686
39790
|
}
|
|
@@ -40268,7 +40372,7 @@
|
|
|
40268
40372
|
const { body } = response;
|
|
40269
40373
|
return luvio.handleSuccessResponse(() => ingestAndBroadcast(luvio, key, config, body), () => {
|
|
40270
40374
|
const cache = new StoreKeyMap();
|
|
40271
|
-
getTypeCacheKeys$
|
|
40375
|
+
getTypeCacheKeys$L$1(cache, luvio, body);
|
|
40272
40376
|
return cache;
|
|
40273
40377
|
});
|
|
40274
40378
|
}, (err) => {
|
|
@@ -40278,7 +40382,7 @@
|
|
|
40278
40382
|
}
|
|
40279
40383
|
function ingestAndBroadcast(luvio, key, config, body) {
|
|
40280
40384
|
addAdditionalFieldsForNorming(body, config.objectApiName, config.recordTypeId, config.layoutType, config.mode);
|
|
40281
|
-
luvio.storeIngest(key, ingest$
|
|
40385
|
+
luvio.storeIngest(key, ingest$E$1, body);
|
|
40282
40386
|
return luvio.storeBroadcast().then(() => {
|
|
40283
40387
|
return buildCachedSnapshot$5(luvio, config);
|
|
40284
40388
|
});
|
|
@@ -40349,7 +40453,7 @@
|
|
|
40349
40453
|
recordTypeId,
|
|
40350
40454
|
},
|
|
40351
40455
|
});
|
|
40352
|
-
const key = keyBuilder$
|
|
40456
|
+
const key = keyBuilder$1P(luvio, {
|
|
40353
40457
|
apiName: objectApiName,
|
|
40354
40458
|
recordTypeId,
|
|
40355
40459
|
layoutType,
|
|
@@ -40412,7 +40516,7 @@
|
|
|
40412
40516
|
const createResourceParams$8 = /*#__PURE__*/ createResourceParams$12(getListRecordsByName_ConfigPropertyMetadata);
|
|
40413
40517
|
function keyBuilder$9$1(luvio, config) {
|
|
40414
40518
|
const resourceParams = createResourceParams$8(config);
|
|
40415
|
-
return keyBuilder$
|
|
40519
|
+
return keyBuilder$1Z(luvio, resourceParams);
|
|
40416
40520
|
}
|
|
40417
40521
|
function typeCheckConfig$b(untrustedConfig) {
|
|
40418
40522
|
const config = {};
|
|
@@ -40431,7 +40535,7 @@
|
|
|
40431
40535
|
}
|
|
40432
40536
|
function adapterFragment$1$1(luvio, config) {
|
|
40433
40537
|
const resourceParams = createResourceParams$8(config);
|
|
40434
|
-
return select$
|
|
40538
|
+
return select$1J(luvio, resourceParams);
|
|
40435
40539
|
}
|
|
40436
40540
|
function onFetchResponseSuccess$2$1(luvio, config, resourceParams, response) {
|
|
40437
40541
|
const snapshot = ingestSuccess$P(luvio, resourceParams, response, {
|
|
@@ -40494,7 +40598,7 @@
|
|
|
40494
40598
|
return items.length;
|
|
40495
40599
|
}
|
|
40496
40600
|
function getPaginationMetadata(luvio, resourceParams) {
|
|
40497
|
-
const key = keyBuilder$
|
|
40601
|
+
const key = keyBuilder$1Z(luvio, resourceParams);
|
|
40498
40602
|
const selector = {
|
|
40499
40603
|
recordId: key,
|
|
40500
40604
|
node: {
|
|
@@ -41148,7 +41252,7 @@
|
|
|
41148
41252
|
const input_layout = input.layout;
|
|
41149
41253
|
const input_layout_id = path.fullPath + '__layout';
|
|
41150
41254
|
if (input_layout !== null && typeof input_layout === 'object') {
|
|
41151
|
-
input.layout = ingest$
|
|
41255
|
+
input.layout = ingest$F$1(input_layout, {
|
|
41152
41256
|
fullPath: input_layout_id,
|
|
41153
41257
|
propertyName: 'layout',
|
|
41154
41258
|
parent: {
|
|
@@ -41167,7 +41271,7 @@
|
|
|
41167
41271
|
const key = input_objectInfos_keys[i];
|
|
41168
41272
|
const input_objectInfos_prop = input_objectInfos[key];
|
|
41169
41273
|
const input_objectInfos_prop_id = input_objectInfos_id + '__' + key;
|
|
41170
|
-
input_objectInfos[key] = ingest$
|
|
41274
|
+
input_objectInfos[key] = ingest$G$1(input_objectInfos_prop, {
|
|
41171
41275
|
fullPath: input_objectInfos_prop_id,
|
|
41172
41276
|
propertyName: key,
|
|
41173
41277
|
parent: {
|
|
@@ -41235,14 +41339,14 @@
|
|
|
41235
41339
|
mergeable: false
|
|
41236
41340
|
});
|
|
41237
41341
|
if (input.layout !== null && typeof input.layout === 'object') {
|
|
41238
|
-
getTypeCacheKeys$
|
|
41342
|
+
getTypeCacheKeys$M$1(rootKeySet, luvio, input.layout);
|
|
41239
41343
|
}
|
|
41240
41344
|
const input_objectInfos = input.objectInfos;
|
|
41241
41345
|
const input_objectInfos_keys = ObjectKeys$2(input_objectInfos);
|
|
41242
41346
|
const input_objectInfos_length = input_objectInfos_keys.length;
|
|
41243
41347
|
for (let i = 0; i < input_objectInfos_length; i++) {
|
|
41244
41348
|
const key = input_objectInfos_keys[i];
|
|
41245
|
-
getTypeCacheKeys$
|
|
41349
|
+
getTypeCacheKeys$N$1(rootKeySet, luvio, input_objectInfos[key]);
|
|
41246
41350
|
}
|
|
41247
41351
|
getTypeCacheKeys$6$1(rootKeySet, luvio, input.record, () => rootKey + "__" + "record");
|
|
41248
41352
|
}
|
|
@@ -41294,8 +41398,8 @@
|
|
|
41294
41398
|
}
|
|
41295
41399
|
|
|
41296
41400
|
const contextId$2 = `${keyPrefix$2}__${adapterName$4$1}`;
|
|
41297
|
-
const layoutSelections = select$
|
|
41298
|
-
const objectInfoSelections = select$
|
|
41401
|
+
const layoutSelections = select$1D();
|
|
41402
|
+
const objectInfoSelections = select$1F();
|
|
41299
41403
|
function buildSelector(resp) {
|
|
41300
41404
|
const recordSelections = buildSelectionFromRecord(resp.record);
|
|
41301
41405
|
return [
|
|
@@ -41641,7 +41745,7 @@
|
|
|
41641
41745
|
name: 'objectInfos',
|
|
41642
41746
|
kind: 'Link',
|
|
41643
41747
|
map: true,
|
|
41644
|
-
fragment: select$
|
|
41748
|
+
fragment: select$1F()
|
|
41645
41749
|
} : params.objectInfos;
|
|
41646
41750
|
const recordPathSelection = params.record === undefined ? {
|
|
41647
41751
|
name: 'record',
|
|
@@ -41689,7 +41793,7 @@
|
|
|
41689
41793
|
const input_objectInfos_length = input_objectInfos_keys.length;
|
|
41690
41794
|
for (let i = 0; i < input_objectInfos_length; i++) {
|
|
41691
41795
|
const key = input_objectInfos_keys[i];
|
|
41692
|
-
getTypeCacheKeys$
|
|
41796
|
+
getTypeCacheKeys$N$1(rootKeySet, luvio, input_objectInfos[key]);
|
|
41693
41797
|
}
|
|
41694
41798
|
getTypeCacheKeys$4$1(rootKeySet, luvio, input.record);
|
|
41695
41799
|
}
|
|
@@ -41723,7 +41827,7 @@
|
|
|
41723
41827
|
function createFieldsIngest$2(params) {
|
|
41724
41828
|
const { fields, optionalFields, trackedFields, recordConflictMap } = params;
|
|
41725
41829
|
const ingest = dynamicIngest$2({
|
|
41726
|
-
objectInfos: ingest$
|
|
41830
|
+
objectInfos: ingest$G$1,
|
|
41727
41831
|
record: createFieldsIngest$3(params)
|
|
41728
41832
|
});
|
|
41729
41833
|
return (data, path, luvio, store, timestamp) => {
|
|
@@ -42167,7 +42271,7 @@
|
|
|
42167
42271
|
name: 'objectInfos',
|
|
42168
42272
|
kind: 'Link',
|
|
42169
42273
|
map: true,
|
|
42170
|
-
fragment: select$
|
|
42274
|
+
fragment: select$1F()
|
|
42171
42275
|
} : params.objectInfos;
|
|
42172
42276
|
const recordPathSelection = params.record === undefined ? {
|
|
42173
42277
|
name: 'record',
|
|
@@ -42215,7 +42319,7 @@
|
|
|
42215
42319
|
const input_objectInfos_length = input_objectInfos_keys.length;
|
|
42216
42320
|
for (let i = 0; i < input_objectInfos_length; i++) {
|
|
42217
42321
|
const key = input_objectInfos_keys[i];
|
|
42218
|
-
getTypeCacheKeys$
|
|
42322
|
+
getTypeCacheKeys$N$1(rootKeySet, luvio, input_objectInfos[key]);
|
|
42219
42323
|
}
|
|
42220
42324
|
getTypeCacheKeys$2$1(rootKeySet, luvio, input.record);
|
|
42221
42325
|
}
|
|
@@ -42249,7 +42353,7 @@
|
|
|
42249
42353
|
function createFieldsIngest(params) {
|
|
42250
42354
|
const { fields, optionalFields, trackedFields, recordConflictMap } = params;
|
|
42251
42355
|
const ingest = dynamicIngest({
|
|
42252
|
-
objectInfos: ingest$
|
|
42356
|
+
objectInfos: ingest$G$1,
|
|
42253
42357
|
record: createFieldsIngest$1(params)
|
|
42254
42358
|
});
|
|
42255
42359
|
return (data, path, luvio, store, timestamp) => {
|
|
@@ -43781,13 +43885,19 @@
|
|
|
43781
43885
|
allowFunction: instrumentation$3.notifyRecordUpdateAvailableAllowed,
|
|
43782
43886
|
dropFunction: instrumentation$3.notifyRecordUpdateAvailableDropped,
|
|
43783
43887
|
});
|
|
43784
|
-
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListViewSummaryUpdateAvailable', notifyUpdateAvailableFactory$
|
|
43785
|
-
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoSummaryUpdateAvailable', notifyUpdateAvailableFactory$
|
|
43888
|
+
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListViewSummaryUpdateAvailable', notifyUpdateAvailableFactory$2));
|
|
43889
|
+
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoSummaryUpdateAvailable', notifyUpdateAvailableFactory$3));
|
|
43786
43890
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoUpdateAvailable', notifyUpdateAvailableFactory$1));
|
|
43787
43891
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListRecordCollectionUpdateAvailable', notifyUpdateAvailableFactory$4));
|
|
43788
43892
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyQuickActionDefaultsUpdateAvailable', notifyUpdateAvailableFactory));
|
|
43893
|
+
// Setting up storeWatchers for custom notifyUpdateAvailable endpoints
|
|
43894
|
+
setupListRecordCollectionStoreWatcher(luvio);
|
|
43895
|
+
setupListSummaryCollectionStoreWatcher(luvio);
|
|
43896
|
+
// Custom notifyUpdateAvailable endpoints for partial key support
|
|
43897
|
+
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
43898
|
+
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
43789
43899
|
});
|
|
43790
|
-
// version: 1.
|
|
43900
|
+
// version: 1.276.0-58fd72593
|
|
43791
43901
|
|
|
43792
43902
|
var ldsIdempotencyWriteDisabled = {
|
|
43793
43903
|
isOpen: function (e) {
|
|
@@ -44725,10 +44835,7 @@
|
|
|
44725
44835
|
const entries = wasVisited === true || enableDurableMetadataRefresh === false
|
|
44726
44836
|
? durableRecords
|
|
44727
44837
|
: refreshedDurableRecords;
|
|
44728
|
-
|
|
44729
|
-
setRecordTo(entries, key,
|
|
44730
|
-
// dont send record data with metadata refresh
|
|
44731
|
-
isMetadataRefresh ? undefined : record, metadata);
|
|
44838
|
+
setRecordTo(entries, key, record, metadata);
|
|
44732
44839
|
}
|
|
44733
44840
|
const durableStoreOperations = additionalDurableStoreOperations;
|
|
44734
44841
|
const recordKeys = keys$7(durableRecords);
|
|
@@ -56269,13 +56376,21 @@
|
|
|
56269
56376
|
draftFields[DEFAULT_FIELD_LAST_MODIFIED_DATE] = { value: timestampString, displayValue: null };
|
|
56270
56377
|
draftFields[DEFAULT_FIELD_OWNER_ID] = { value: userId, displayValue: null };
|
|
56271
56378
|
draftFields[DEFAULT_FIELD_ID] = { value: recordId, displayValue: null };
|
|
56272
|
-
|
|
56273
|
-
|
|
56274
|
-
|
|
56275
|
-
|
|
56276
|
-
|
|
56277
|
-
|
|
56278
|
-
|
|
56379
|
+
const allObjectFields = keys$3$1(objectInfo.fields);
|
|
56380
|
+
allObjectFields.forEach((fieldName) => {
|
|
56381
|
+
if (draftFields[fieldName] === undefined) {
|
|
56382
|
+
draftFields[fieldName] = { value: null, displayValue: null };
|
|
56383
|
+
}
|
|
56384
|
+
});
|
|
56385
|
+
// TODO [W-14915806]: lightning-record-form injects the `IsPersonAccount`
|
|
56386
|
+
// field for all `Account` and `PersonAccount` records. However, not all
|
|
56387
|
+
// orgs use person accounts, and if that field is not present in the object
|
|
56388
|
+
// info then it is not synthesized. We force it to be synthesized here to
|
|
56389
|
+
// ensure lightning-record-form will work correctly with draft-created
|
|
56390
|
+
// accounts.
|
|
56391
|
+
if ((apiName === 'Account' || apiName === 'PersonAccount') &&
|
|
56392
|
+
draftFields['IsPersonAccount'] === undefined) {
|
|
56393
|
+
draftFields['IsPersonAccount'] = { value: null, displayValue: null };
|
|
56279
56394
|
}
|
|
56280
56395
|
return {
|
|
56281
56396
|
id: recordId,
|
|
@@ -59482,7 +59597,7 @@
|
|
|
59482
59597
|
if (representationName === RepresentationType$U) {
|
|
59483
59598
|
incomingRecords.add(key);
|
|
59484
59599
|
}
|
|
59485
|
-
else if (representationName === RepresentationType$
|
|
59600
|
+
else if (representationName === RepresentationType$N) {
|
|
59486
59601
|
incomingObjectInfos.add(key);
|
|
59487
59602
|
}
|
|
59488
59603
|
}
|
|
@@ -60539,6 +60654,7 @@
|
|
|
60539
60654
|
function buildFieldUnionArray(existingRecord, incomingRecord, objectInfo) {
|
|
60540
60655
|
const allFields = Array.from(new Set([...Object.keys(existingRecord.fields), ...Object.keys(incomingRecord.fields)]));
|
|
60541
60656
|
const fieldUnion = [];
|
|
60657
|
+
let includesSpanningFields = false;
|
|
60542
60658
|
allFields.forEach((fieldName) => {
|
|
60543
60659
|
const objectInfoField = objectInfo.fields[fieldName];
|
|
60544
60660
|
if (objectInfoField === undefined) {
|
|
@@ -60546,13 +60662,14 @@
|
|
|
60546
60662
|
const referenceField = findReferenceFieldForSpanningField(fieldName, objectInfo);
|
|
60547
60663
|
if (referenceField !== undefined) {
|
|
60548
60664
|
fieldUnion.push(`${fieldName}.Id`);
|
|
60665
|
+
includesSpanningFields = true;
|
|
60549
60666
|
}
|
|
60550
60667
|
}
|
|
60551
60668
|
else {
|
|
60552
60669
|
fieldUnion.push(fieldName);
|
|
60553
60670
|
}
|
|
60554
60671
|
});
|
|
60555
|
-
return fieldUnion;
|
|
60672
|
+
return { fields: fieldUnion, includesSpanningFields };
|
|
60556
60673
|
}
|
|
60557
60674
|
/**
|
|
60558
60675
|
* Merges (if possible) an incoming record from a priming session with an existing record in the durable store.
|
|
@@ -60584,7 +60701,7 @@
|
|
|
60584
60701
|
ok: false,
|
|
60585
60702
|
code: 'conflict-drafts',
|
|
60586
60703
|
hasDraft: true,
|
|
60587
|
-
fieldUnion: buildFieldUnionArray(existingRecord, incomingRecord, objectInfo),
|
|
60704
|
+
fieldUnion: buildFieldUnionArray(existingRecord, incomingRecord, objectInfo).fields,
|
|
60588
60705
|
};
|
|
60589
60706
|
}
|
|
60590
60707
|
// Check if incoming record's Etag is equal to the existing one
|
|
@@ -60646,10 +60763,19 @@
|
|
|
60646
60763
|
};
|
|
60647
60764
|
}
|
|
60648
60765
|
// If Etags do not match and the incoming record does not contain all fields, re-request the record
|
|
60766
|
+
const { fields, includesSpanningFields } = buildFieldUnionArray(existingRecord, incomingRecord, objectInfo);
|
|
60767
|
+
if (includesSpanningFields) {
|
|
60768
|
+
return {
|
|
60769
|
+
ok: false,
|
|
60770
|
+
code: 'conflict-spanning-record',
|
|
60771
|
+
fieldUnion: fields,
|
|
60772
|
+
hasDraft: false,
|
|
60773
|
+
};
|
|
60774
|
+
}
|
|
60649
60775
|
return {
|
|
60650
60776
|
ok: false,
|
|
60651
60777
|
code: 'conflict-missing-fields',
|
|
60652
|
-
fieldUnion:
|
|
60778
|
+
fieldUnion: fields,
|
|
60653
60779
|
hasDraft: false,
|
|
60654
60780
|
};
|
|
60655
60781
|
}
|
|
@@ -61697,7 +61823,7 @@
|
|
|
61697
61823
|
id: '@salesforce/lds-network-adapter',
|
|
61698
61824
|
instrument: instrument$2,
|
|
61699
61825
|
});
|
|
61700
|
-
// version: 1.
|
|
61826
|
+
// version: 1.276.0-dcebc4076
|
|
61701
61827
|
|
|
61702
61828
|
const { create: create$3, keys: keys$3 } = Object;
|
|
61703
61829
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -80091,7 +80217,7 @@
|
|
|
80091
80217
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
80092
80218
|
instrument: instrument$1,
|
|
80093
80219
|
});
|
|
80094
|
-
// version: 1.
|
|
80220
|
+
// version: 1.276.0-58fd72593
|
|
80095
80221
|
|
|
80096
80222
|
// On core the unstable adapters are re-exported with different names,
|
|
80097
80223
|
// we want to match them here.
|
|
@@ -82345,7 +82471,7 @@
|
|
|
82345
82471
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
82346
82472
|
graphQLImperative = ldsAdapter;
|
|
82347
82473
|
});
|
|
82348
|
-
// version: 1.
|
|
82474
|
+
// version: 1.276.0-58fd72593
|
|
82349
82475
|
|
|
82350
82476
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
82351
82477
|
__proto__: null,
|
|
@@ -83043,7 +83169,7 @@
|
|
|
83043
83169
|
function register(r) {
|
|
83044
83170
|
callbacks$1.forEach((callback) => callback(r));
|
|
83045
83171
|
}
|
|
83046
|
-
// version: 1.
|
|
83172
|
+
// version: 1.276.0-dcebc4076
|
|
83047
83173
|
|
|
83048
83174
|
/**
|
|
83049
83175
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -87966,4 +88092,4 @@
|
|
|
87966
88092
|
exports.subscribeToAdapter = subscribeToAdapter;
|
|
87967
88093
|
|
|
87968
88094
|
}));
|
|
87969
|
-
// version: 1.
|
|
88095
|
+
// version: 1.276.0-dcebc4076
|