@salesforce/lds-worker-api 1.419.0 → 1.421.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.
|
@@ -2357,7 +2357,7 @@
|
|
|
2357
2357
|
/**
|
|
2358
2358
|
* Checks if the given variable is an object
|
|
2359
2359
|
*/
|
|
2360
|
-
function isObject$
|
|
2360
|
+
function isObject$3(value) {
|
|
2361
2361
|
return typeof value === 'object' && value !== null;
|
|
2362
2362
|
}
|
|
2363
2363
|
|
|
@@ -2987,10 +2987,10 @@
|
|
|
2987
2987
|
}
|
|
2988
2988
|
if (fragment.opaque) {
|
|
2989
2989
|
this.checkIfChanged(result.value, { useDeepEquals: true });
|
|
2990
|
-
if (isObject$
|
|
2990
|
+
if (isObject$3(result.value) && !readerOpaqueReferenceMap.has(result.value)) {
|
|
2991
2991
|
readerOpaqueReferenceMap.set(result.value, this.opaqueCopy(result.value));
|
|
2992
2992
|
}
|
|
2993
|
-
const opaqueValue = isObject$
|
|
2993
|
+
const opaqueValue = isObject$3(result.value)
|
|
2994
2994
|
? readerOpaqueReferenceMap.get(result.value)
|
|
2995
2995
|
: result.value;
|
|
2996
2996
|
return {
|
|
@@ -4152,7 +4152,7 @@
|
|
|
4152
4152
|
}
|
|
4153
4153
|
return resourceParams;
|
|
4154
4154
|
}
|
|
4155
|
-
// engine version: 0.160.
|
|
4155
|
+
// engine version: 0.160.3-354dc58b
|
|
4156
4156
|
|
|
4157
4157
|
/**
|
|
4158
4158
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -4280,7 +4280,7 @@
|
|
|
4280
4280
|
}
|
|
4281
4281
|
callbacks.push(callback);
|
|
4282
4282
|
}
|
|
4283
|
-
// version: 1.
|
|
4283
|
+
// version: 1.421.0-2828c95aef
|
|
4284
4284
|
|
|
4285
4285
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4286
4286
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -5324,7 +5324,7 @@
|
|
|
5324
5324
|
const { apiFamily, name } = metadata;
|
|
5325
5325
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
5326
5326
|
}
|
|
5327
|
-
// version: 1.
|
|
5327
|
+
// version: 1.421.0-2828c95aef
|
|
5328
5328
|
|
|
5329
5329
|
/**
|
|
5330
5330
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -5423,7 +5423,7 @@
|
|
|
5423
5423
|
TypeCheckShapes[TypeCheckShapes["Integer"] = 3] = "Integer";
|
|
5424
5424
|
TypeCheckShapes[TypeCheckShapes["Unsupported"] = 4] = "Unsupported";
|
|
5425
5425
|
})(TypeCheckShapes || (TypeCheckShapes = {}));
|
|
5426
|
-
// engine version: 0.160.
|
|
5426
|
+
// engine version: 0.160.3-354dc58b
|
|
5427
5427
|
|
|
5428
5428
|
const { keys: ObjectKeys$4, create: ObjectCreate$4 } = Object;
|
|
5429
5429
|
|
|
@@ -35497,7 +35497,7 @@
|
|
|
35497
35497
|
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
35498
35498
|
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
35499
35499
|
});
|
|
35500
|
-
// version: 1.
|
|
35500
|
+
// version: 1.421.0-45320a2742
|
|
35501
35501
|
|
|
35502
35502
|
var allowUpdatesForNonCachedRecords = {
|
|
35503
35503
|
isOpen: function (e) {
|
|
@@ -48928,7 +48928,7 @@
|
|
|
48928
48928
|
const MessagingDurableSegment = 'MESSAGING';
|
|
48929
48929
|
const MessageNotifyStoreUpdateAvailable = 'notifyStoreUpdateAvailable';
|
|
48930
48930
|
|
|
48931
|
-
const { keys: keys$5, create: create$5, assign: assign$4, freeze: freeze$2 } = Object;
|
|
48931
|
+
const { keys: keys$5, create: create$5, assign: assign$4, freeze: freeze$2, isFrozen: isFrozen$1$1 } = Object;
|
|
48932
48932
|
|
|
48933
48933
|
//Durable store error instrumentation key
|
|
48934
48934
|
const DURABLE_STORE_ERROR = 'durable-store-error';
|
|
@@ -49012,6 +49012,74 @@
|
|
|
49012
49012
|
}
|
|
49013
49013
|
return { revivedKeys, hadUnexpectedShape };
|
|
49014
49014
|
}
|
|
49015
|
+
/**
|
|
49016
|
+
* Extracts field filtering configuration from the selection.
|
|
49017
|
+
*/
|
|
49018
|
+
function extractFieldFilteringConfig(select, recordId, baseEnvironment) {
|
|
49019
|
+
const rootRecordKey = serializeStructuredKey(baseEnvironment.storeGetCanonicalKey(recordId));
|
|
49020
|
+
let topLevelFields;
|
|
49021
|
+
let nestedFieldRequirements;
|
|
49022
|
+
if (select &&
|
|
49023
|
+
select.node.kind === 'Fragment' &&
|
|
49024
|
+
'selections' in select.node &&
|
|
49025
|
+
select.node.selections) {
|
|
49026
|
+
topLevelFields = extractRequestedFieldNames(select.node.selections);
|
|
49027
|
+
nestedFieldRequirements = extractNestedFieldRequirements(select.node.selections);
|
|
49028
|
+
}
|
|
49029
|
+
// Merge all nested field requirements into a single set
|
|
49030
|
+
let nestedFields;
|
|
49031
|
+
if (nestedFieldRequirements && nestedFieldRequirements.size > 0) {
|
|
49032
|
+
nestedFields = new Set();
|
|
49033
|
+
for (const fieldSet of nestedFieldRequirements.values()) {
|
|
49034
|
+
for (const field of fieldSet) {
|
|
49035
|
+
nestedFields.add(field);
|
|
49036
|
+
}
|
|
49037
|
+
}
|
|
49038
|
+
}
|
|
49039
|
+
return { rootRecordKey, topLevelFields, nestedFields };
|
|
49040
|
+
}
|
|
49041
|
+
/**
|
|
49042
|
+
* Categorizes keys into different fetch strategies based on filtering requirements.
|
|
49043
|
+
*/
|
|
49044
|
+
function categorizeKeysForL2Fetch(keysToRevive, config, baseEnvironment, shouldFilterFields) {
|
|
49045
|
+
const unfilteredKeys = [];
|
|
49046
|
+
const rootKeysWithTopLevelFields = [];
|
|
49047
|
+
const nestedKeysWithNestedFields = [];
|
|
49048
|
+
const canFilter = config.topLevelFields !== undefined && config.topLevelFields.size > 0;
|
|
49049
|
+
for (let i = 0, len = keysToRevive.length; i < len; i += 1) {
|
|
49050
|
+
const canonicalKey = serializeStructuredKey(baseEnvironment.storeGetCanonicalKey(keysToRevive[i]));
|
|
49051
|
+
if (!shouldFilterFields(canonicalKey) || !canFilter) {
|
|
49052
|
+
unfilteredKeys.push(canonicalKey);
|
|
49053
|
+
continue;
|
|
49054
|
+
}
|
|
49055
|
+
const isRootRecord = canonicalKey === config.rootRecordKey;
|
|
49056
|
+
if (isRootRecord) {
|
|
49057
|
+
rootKeysWithTopLevelFields.push(canonicalKey);
|
|
49058
|
+
}
|
|
49059
|
+
else if (config.nestedFields !== undefined && config.nestedFields.size > 0) {
|
|
49060
|
+
nestedKeysWithNestedFields.push(canonicalKey);
|
|
49061
|
+
}
|
|
49062
|
+
else {
|
|
49063
|
+
unfilteredKeys.push(canonicalKey);
|
|
49064
|
+
}
|
|
49065
|
+
}
|
|
49066
|
+
return { unfilteredKeys, rootKeysWithTopLevelFields, nestedKeysWithNestedFields };
|
|
49067
|
+
}
|
|
49068
|
+
/**
|
|
49069
|
+
* Builds L2 fetch promises for different key categories.
|
|
49070
|
+
*/
|
|
49071
|
+
function buildL2FetchPromises(categorizedKeys, config, durableStore) {
|
|
49072
|
+
const promises = [
|
|
49073
|
+
durableStore.getEntries(categorizedKeys.unfilteredKeys, DefaultDurableSegment),
|
|
49074
|
+
];
|
|
49075
|
+
if (config.topLevelFields && categorizedKeys.rootKeysWithTopLevelFields.length > 0) {
|
|
49076
|
+
promises.push(durableStore.getEntriesWithSpecificFields(categorizedKeys.rootKeysWithTopLevelFields, config.topLevelFields, DefaultDurableSegment));
|
|
49077
|
+
}
|
|
49078
|
+
if (config.nestedFields && categorizedKeys.nestedKeysWithNestedFields.length > 0) {
|
|
49079
|
+
promises.push(durableStore.getEntriesWithSpecificFields(categorizedKeys.nestedKeysWithNestedFields, config.nestedFields, DefaultDurableSegment));
|
|
49080
|
+
}
|
|
49081
|
+
return promises;
|
|
49082
|
+
}
|
|
49015
49083
|
/**
|
|
49016
49084
|
* This method returns a Promise to a snapshot that is revived from L2 cache. If
|
|
49017
49085
|
* L2 does not have the entries necessary to fulfill the snapshot then this method
|
|
@@ -49047,53 +49115,41 @@
|
|
|
49047
49115
|
const keysToRevive = keysToReviveSet.keysAsArray();
|
|
49048
49116
|
const start = Date.now();
|
|
49049
49117
|
const { l2Trips } = reviveMetrics;
|
|
49050
|
-
// Extract
|
|
49051
|
-
|
|
49052
|
-
|
|
49053
|
-
|
|
49054
|
-
|
|
49055
|
-
const
|
|
49056
|
-
|
|
49057
|
-
|
|
49058
|
-
|
|
49059
|
-
|
|
49060
|
-
if (requestedFields !== undefined &&
|
|
49061
|
-
requestedFields.size > 0 &&
|
|
49062
|
-
shouldFilterFields(canonicalKey)) {
|
|
49063
|
-
filteredCanonicalKeys.push(canonicalKey);
|
|
49064
|
-
}
|
|
49065
|
-
else {
|
|
49066
|
-
canonicalKeys.push(canonicalKey);
|
|
49067
|
-
}
|
|
49068
|
-
}
|
|
49069
|
-
const fetchPromises = [
|
|
49070
|
-
durableStore.getEntries(canonicalKeys, DefaultDurableSegment),
|
|
49071
|
-
];
|
|
49072
|
-
if (requestedFields !== undefined &&
|
|
49073
|
-
requestedFields.size > 0 &&
|
|
49074
|
-
filteredCanonicalKeys.length > 0) {
|
|
49075
|
-
fetchPromises.push(durableStore.getEntriesWithSpecificFields(filteredCanonicalKeys, requestedFields, DefaultDurableSegment));
|
|
49076
|
-
}
|
|
49077
|
-
return Promise.all(fetchPromises).then(([durableRecords, filteredDurableRecords]) => {
|
|
49118
|
+
// Extract field filtering requirements from the selection
|
|
49119
|
+
const fieldFilteringConfig = extractFieldFilteringConfig(select, recordId, baseEnvironment);
|
|
49120
|
+
// Categorize keys by how they should be fetched from L2
|
|
49121
|
+
const categorizedKeys = categorizeKeysForL2Fetch(keysToRevive, fieldFilteringConfig, baseEnvironment, shouldFilterFields);
|
|
49122
|
+
// Build fetch promises for each category
|
|
49123
|
+
const fetchPromises = buildL2FetchPromises(categorizedKeys, fieldFilteringConfig, durableStore);
|
|
49124
|
+
return Promise.all(fetchPromises).then(([durableRecords, filteredDurableRecords, nestedFilteredDurableRecords]) => {
|
|
49125
|
+
const totalKeysRequested = categorizedKeys.unfilteredKeys.length +
|
|
49126
|
+
categorizedKeys.rootKeysWithTopLevelFields.length +
|
|
49127
|
+
categorizedKeys.nestedKeysWithNestedFields.length;
|
|
49078
49128
|
l2Trips.push({
|
|
49079
49129
|
duration: Date.now() - start,
|
|
49080
|
-
keysRequestedCount:
|
|
49130
|
+
keysRequestedCount: totalKeysRequested,
|
|
49081
49131
|
});
|
|
49082
|
-
// Process
|
|
49132
|
+
// Process all three categories of records
|
|
49083
49133
|
const revivedKeys = new StoreKeySet();
|
|
49084
49134
|
let hadUnexpectedShape = false;
|
|
49085
|
-
// Process normal records
|
|
49135
|
+
// Process normal records (all fields)
|
|
49086
49136
|
if (durableRecords !== undefined) {
|
|
49087
49137
|
const normalResult = publishDurableStoreEntries(durableRecords, baseEnvironment.storePut.bind(baseEnvironment), baseEnvironment.publishStoreMetadata.bind(baseEnvironment));
|
|
49088
49138
|
revivedKeys.merge(normalResult.revivedKeys);
|
|
49089
49139
|
hadUnexpectedShape = hadUnexpectedShape || normalResult.hadUnexpectedShape;
|
|
49090
49140
|
}
|
|
49091
|
-
// Process filtered records with merging
|
|
49141
|
+
// Process filtered records (root with top-level fields) with merging
|
|
49092
49142
|
if (filteredDurableRecords !== undefined) {
|
|
49093
49143
|
const filteredResult = publishDurableStoreEntries(filteredDurableRecords, createMergeFilteredPut((key) => baseEnvironment.store.readEntry(key), baseEnvironment.storePut.bind(baseEnvironment)), baseEnvironment.publishStoreMetadata.bind(baseEnvironment));
|
|
49094
49144
|
revivedKeys.merge(filteredResult.revivedKeys);
|
|
49095
49145
|
hadUnexpectedShape = hadUnexpectedShape || filteredResult.hadUnexpectedShape;
|
|
49096
49146
|
}
|
|
49147
|
+
// Process nested filtered records with merging
|
|
49148
|
+
if (nestedFilteredDurableRecords !== undefined) {
|
|
49149
|
+
const nestedFilteredResult = publishDurableStoreEntries(nestedFilteredDurableRecords, createMergeFilteredPut((key) => baseEnvironment.store.readEntry(key), baseEnvironment.storePut.bind(baseEnvironment)), baseEnvironment.publishStoreMetadata.bind(baseEnvironment));
|
|
49150
|
+
revivedKeys.merge(nestedFilteredResult.revivedKeys);
|
|
49151
|
+
hadUnexpectedShape = hadUnexpectedShape || nestedFilteredResult.hadUnexpectedShape;
|
|
49152
|
+
}
|
|
49097
49153
|
// if the data coming back from DS had an unexpected shape then just
|
|
49098
49154
|
// return the L1 snapshot
|
|
49099
49155
|
if (hadUnexpectedShape === true) {
|
|
@@ -49139,6 +49195,54 @@
|
|
|
49139
49195
|
return { snapshot: unavailableSnapshot, metrics: reviveMetrics };
|
|
49140
49196
|
});
|
|
49141
49197
|
}
|
|
49198
|
+
/**
|
|
49199
|
+
* Filters out null fields from a fields object (null indicates field doesn't exist in L2).
|
|
49200
|
+
* Returns a new object without null values, or the original if no filtering needed.
|
|
49201
|
+
*/
|
|
49202
|
+
function filterNullFields(fields) {
|
|
49203
|
+
const keys$1 = keys$5(fields);
|
|
49204
|
+
let hasNull = false;
|
|
49205
|
+
// Check if any nulls exist before allocating new object
|
|
49206
|
+
for (let i = 0, len = keys$1.length; i < len; i += 1) {
|
|
49207
|
+
if (fields[keys$1[i]] === null) {
|
|
49208
|
+
hasNull = true;
|
|
49209
|
+
break;
|
|
49210
|
+
}
|
|
49211
|
+
}
|
|
49212
|
+
if (!hasNull) {
|
|
49213
|
+
return fields;
|
|
49214
|
+
}
|
|
49215
|
+
const cleaned = {};
|
|
49216
|
+
for (let i = 0, len = keys$1.length; i < len; i += 1) {
|
|
49217
|
+
const key = keys$1[i];
|
|
49218
|
+
if (fields[key] !== null) {
|
|
49219
|
+
cleaned[key] = fields[key];
|
|
49220
|
+
}
|
|
49221
|
+
}
|
|
49222
|
+
return cleaned;
|
|
49223
|
+
}
|
|
49224
|
+
/**
|
|
49225
|
+
* Merges new fields into existing fields object, skipping null values.
|
|
49226
|
+
* Creates a new object to avoid mutations.
|
|
49227
|
+
*/
|
|
49228
|
+
function mergeFieldsObjects(existing, incoming) {
|
|
49229
|
+
const merged = { ...existing };
|
|
49230
|
+
const keys$1 = keys$5(incoming);
|
|
49231
|
+
for (let i = 0, len = keys$1.length; i < len; i += 1) {
|
|
49232
|
+
const key = keys$1[i];
|
|
49233
|
+
// Skip null values - they indicate the field doesn't exist in L2
|
|
49234
|
+
if (incoming[key] !== null) {
|
|
49235
|
+
merged[key] = incoming[key];
|
|
49236
|
+
}
|
|
49237
|
+
}
|
|
49238
|
+
return merged;
|
|
49239
|
+
}
|
|
49240
|
+
/**
|
|
49241
|
+
* Type guard to check if value is a non-null object.
|
|
49242
|
+
*/
|
|
49243
|
+
function isObject$1(value) {
|
|
49244
|
+
return typeof value === 'object' && value !== null;
|
|
49245
|
+
}
|
|
49142
49246
|
/**
|
|
49143
49247
|
* Creates a put function that merges filtered fields with existing L1 records instead of replacing them.
|
|
49144
49248
|
* This is used when reviving filtered fields from L2 to preserve existing data in L1.
|
|
@@ -49146,28 +49250,36 @@
|
|
|
49146
49250
|
function createMergeFilteredPut(readEntry, storePut) {
|
|
49147
49251
|
return (key, filteredData) => {
|
|
49148
49252
|
const existingRecord = readEntry(key);
|
|
49149
|
-
if
|
|
49150
|
-
|
|
49151
|
-
|
|
49152
|
-
|
|
49153
|
-
|
|
49154
|
-
|
|
49155
|
-
const
|
|
49156
|
-
|
|
49157
|
-
|
|
49158
|
-
|
|
49159
|
-
|
|
49160
|
-
|
|
49161
|
-
|
|
49162
|
-
|
|
49163
|
-
|
|
49164
|
-
|
|
49165
|
-
|
|
49253
|
+
// Merge with existing record if both are objects
|
|
49254
|
+
if (isObject$1(existingRecord) && isObject$1(filteredData)) {
|
|
49255
|
+
// Create target object (copy if frozen to avoid mutation errors)
|
|
49256
|
+
const targetObj = isFrozen$1$1(existingRecord)
|
|
49257
|
+
? { ...existingRecord }
|
|
49258
|
+
: existingRecord;
|
|
49259
|
+
const keys$1 = keys$5(filteredData);
|
|
49260
|
+
for (let i = 0, len = keys$1.length; i < len; i += 1) {
|
|
49261
|
+
const fieldKey = keys$1[i];
|
|
49262
|
+
const incomingValue = filteredData[fieldKey];
|
|
49263
|
+
// Special handling for 'fields' property to merge rather than replace
|
|
49264
|
+
if (fieldKey === 'fields' &&
|
|
49265
|
+
isObject$1(incomingValue) &&
|
|
49266
|
+
isObject$1(targetObj[fieldKey])) {
|
|
49267
|
+
targetObj[fieldKey] = mergeFieldsObjects(targetObj[fieldKey], incomingValue);
|
|
49268
|
+
}
|
|
49269
|
+
else {
|
|
49270
|
+
targetObj[fieldKey] = incomingValue;
|
|
49271
|
+
}
|
|
49166
49272
|
}
|
|
49167
49273
|
storePut(key, targetObj);
|
|
49168
49274
|
}
|
|
49169
49275
|
else {
|
|
49170
|
-
// No existing record
|
|
49276
|
+
// No existing record - clean null fields before storing
|
|
49277
|
+
if (isObject$1(filteredData) && 'fields' in filteredData) {
|
|
49278
|
+
const fields = filteredData.fields;
|
|
49279
|
+
if (isObject$1(fields)) {
|
|
49280
|
+
filteredData.fields = filterNullFields(fields);
|
|
49281
|
+
}
|
|
49282
|
+
}
|
|
49171
49283
|
storePut(key, filteredData);
|
|
49172
49284
|
}
|
|
49173
49285
|
};
|
|
@@ -49181,16 +49293,101 @@
|
|
|
49181
49293
|
return undefined;
|
|
49182
49294
|
}
|
|
49183
49295
|
// Find the 'fields' ObjectSelection
|
|
49184
|
-
|
|
49185
|
-
|
|
49296
|
+
let fieldsSelection;
|
|
49297
|
+
for (let i = 0, len = selections.length; i < len; i += 1) {
|
|
49298
|
+
const sel = selections[i];
|
|
49299
|
+
if (sel.kind === 'Object' && sel.name === 'fields') {
|
|
49300
|
+
fieldsSelection = sel;
|
|
49301
|
+
break;
|
|
49302
|
+
}
|
|
49303
|
+
}
|
|
49304
|
+
if (!fieldsSelection ||
|
|
49305
|
+
!fieldsSelection.selections ||
|
|
49306
|
+
fieldsSelection.selections.length === 0) {
|
|
49186
49307
|
return undefined;
|
|
49187
49308
|
}
|
|
49188
49309
|
// Extract all field names from the fields selections
|
|
49310
|
+
const fieldSelections = fieldsSelection.selections;
|
|
49189
49311
|
const fieldNames = new Set();
|
|
49190
|
-
for (
|
|
49191
|
-
fieldNames.add(
|
|
49312
|
+
for (let i = 0, len = fieldSelections.length; i < len; i += 1) {
|
|
49313
|
+
fieldNames.add(fieldSelections[i].name);
|
|
49192
49314
|
}
|
|
49193
|
-
return fieldNames
|
|
49315
|
+
return fieldNames;
|
|
49316
|
+
}
|
|
49317
|
+
/**
|
|
49318
|
+
* Extracts nested field requirements for spanning fields.
|
|
49319
|
+
* For spanning fields like Case.CreatedBy.Name, we need to extract what fields
|
|
49320
|
+
* are requested from the nested record (User in this case).
|
|
49321
|
+
* The structure is: fields { CreatedBy { value (Link with fragment) { fields { Name } } } }
|
|
49322
|
+
*/
|
|
49323
|
+
function extractNestedFieldRequirements(selections) {
|
|
49324
|
+
if (!selections) {
|
|
49325
|
+
return undefined;
|
|
49326
|
+
}
|
|
49327
|
+
// Find the 'fields' ObjectSelection
|
|
49328
|
+
let fieldsSelection;
|
|
49329
|
+
for (let i = 0, len = selections.length; i < len; i += 1) {
|
|
49330
|
+
const sel = selections[i];
|
|
49331
|
+
if (sel.kind === 'Object' && sel.name === 'fields') {
|
|
49332
|
+
fieldsSelection = sel;
|
|
49333
|
+
break;
|
|
49334
|
+
}
|
|
49335
|
+
}
|
|
49336
|
+
if (!fieldsSelection || !fieldsSelection.selections) {
|
|
49337
|
+
return undefined;
|
|
49338
|
+
}
|
|
49339
|
+
let nestedFieldsMap;
|
|
49340
|
+
// Look for ObjectSelections within fields (these are spanning fields)
|
|
49341
|
+
const fieldSelections = fieldsSelection.selections;
|
|
49342
|
+
for (let i = 0, len = fieldSelections.length; i < len; i += 1) {
|
|
49343
|
+
const fieldSel = fieldSelections[i];
|
|
49344
|
+
if (fieldSel.kind !== 'Object') {
|
|
49345
|
+
continue;
|
|
49346
|
+
}
|
|
49347
|
+
const objSel = fieldSel;
|
|
49348
|
+
if (!objSel.selections) {
|
|
49349
|
+
continue;
|
|
49350
|
+
}
|
|
49351
|
+
// Look for the 'value' Link selection
|
|
49352
|
+
let valueLinkSelection;
|
|
49353
|
+
for (let j = 0, jlen = objSel.selections.length; j < jlen; j += 1) {
|
|
49354
|
+
const sel = objSel.selections[j];
|
|
49355
|
+
if (sel.kind === 'Link' && sel.name === 'value') {
|
|
49356
|
+
valueLinkSelection = sel;
|
|
49357
|
+
break;
|
|
49358
|
+
}
|
|
49359
|
+
}
|
|
49360
|
+
if (!valueLinkSelection || !('fragment' in valueLinkSelection)) {
|
|
49361
|
+
continue;
|
|
49362
|
+
}
|
|
49363
|
+
const fragment = valueLinkSelection.fragment;
|
|
49364
|
+
if (!fragment || !fragment.selections) {
|
|
49365
|
+
continue;
|
|
49366
|
+
}
|
|
49367
|
+
// Look for the 'fields' selection within the fragment
|
|
49368
|
+
let nestedFieldsSelection;
|
|
49369
|
+
for (let j = 0, jlen = fragment.selections.length; j < jlen; j += 1) {
|
|
49370
|
+
const sel = fragment.selections[j];
|
|
49371
|
+
if (sel.kind === 'Object' && sel.name === 'fields') {
|
|
49372
|
+
nestedFieldsSelection = sel;
|
|
49373
|
+
break;
|
|
49374
|
+
}
|
|
49375
|
+
}
|
|
49376
|
+
if (nestedFieldsSelection && nestedFieldsSelection.selections) {
|
|
49377
|
+
const nestedFields = new Set();
|
|
49378
|
+
for (const nestedFieldSel of nestedFieldsSelection.selections) {
|
|
49379
|
+
nestedFields.add(nestedFieldSel.name);
|
|
49380
|
+
}
|
|
49381
|
+
if (nestedFields.size > 0) {
|
|
49382
|
+
// Lazy initialize map only if we have nested fields
|
|
49383
|
+
if (!nestedFieldsMap) {
|
|
49384
|
+
nestedFieldsMap = new Map();
|
|
49385
|
+
}
|
|
49386
|
+
nestedFieldsMap.set(fieldSel.name, nestedFields);
|
|
49387
|
+
}
|
|
49388
|
+
}
|
|
49389
|
+
}
|
|
49390
|
+
return nestedFieldsMap;
|
|
49194
49391
|
}
|
|
49195
49392
|
|
|
49196
49393
|
const TTL_DURABLE_SEGMENT = 'TTL_DURABLE_SEGMENT';
|
|
@@ -91334,7 +91531,7 @@
|
|
|
91334
91531
|
else {
|
|
91335
91532
|
returnParams[key] = `${value}`;
|
|
91336
91533
|
}
|
|
91337
|
-
if (isObject$
|
|
91534
|
+
if (isObject$2(value) === true && keys$2$1(value).length > 0) {
|
|
91338
91535
|
returnParams[key] = stringify$4(value);
|
|
91339
91536
|
}
|
|
91340
91537
|
}
|
|
@@ -91387,7 +91584,7 @@
|
|
|
91387
91584
|
return status >= 200 && status <= 299;
|
|
91388
91585
|
}
|
|
91389
91586
|
// adapted from adapter-utils untrustedIsObject
|
|
91390
|
-
function isObject$
|
|
91587
|
+
function isObject$2(value) {
|
|
91391
91588
|
return typeof value === 'object' && value !== null && isArray$2$1(value) === false;
|
|
91392
91589
|
}
|
|
91393
91590
|
function stringifyIfPresent(value) {
|
|
@@ -98878,7 +99075,7 @@
|
|
|
98878
99075
|
},
|
|
98879
99076
|
};
|
|
98880
99077
|
}
|
|
98881
|
-
// version: 1.
|
|
99078
|
+
// version: 1.421.0-45320a2742
|
|
98882
99079
|
|
|
98883
99080
|
/**
|
|
98884
99081
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -98904,7 +99101,7 @@
|
|
|
98904
99101
|
},
|
|
98905
99102
|
};
|
|
98906
99103
|
}
|
|
98907
|
-
// version: 1.
|
|
99104
|
+
// version: 1.421.0-45320a2742
|
|
98908
99105
|
|
|
98909
99106
|
/*!
|
|
98910
99107
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -101423,7 +101620,7 @@
|
|
|
101423
101620
|
lazyObjectInfoService = new ObjectInfoService(getObjectInfo, getObjectInfos, getObjectInfoDirectory, lazyDurableStore);
|
|
101424
101621
|
const baseEnv = new Environment(store, lazyNetworkAdapter);
|
|
101425
101622
|
const shouldFilterFieldsOnRevive = (key) => {
|
|
101426
|
-
if (reviveOnlyRequestedFields.isOpen({ fallback:
|
|
101623
|
+
if (reviveOnlyRequestedFields.isOpen({ fallback: true })) {
|
|
101427
101624
|
return isStoreKeyRecordId(key);
|
|
101428
101625
|
}
|
|
101429
101626
|
return false;
|
|
@@ -101553,7 +101750,7 @@
|
|
|
101553
101750
|
id: '@salesforce/lds-network-adapter',
|
|
101554
101751
|
instrument: instrument$2,
|
|
101555
101752
|
});
|
|
101556
|
-
// version: 1.
|
|
101753
|
+
// version: 1.421.0-2828c95aef
|
|
101557
101754
|
|
|
101558
101755
|
const { create: create$2, keys: keys$2 } = Object;
|
|
101559
101756
|
const { stringify, parse } = JSON;
|
|
@@ -104198,6 +104395,7 @@
|
|
|
104198
104395
|
return {
|
|
104199
104396
|
__typename: new BaseScalarFieldDef(false),
|
|
104200
104397
|
AnalyticsWorkspace: new BaseObjectFieldDef(this.typeRegistry.Analytics__AnalyticsWorkspace, true),
|
|
104398
|
+
SourceOrgId: new BaseObjectFieldDef(this.typeRegistry.IDValue, true),
|
|
104201
104399
|
AssetUsageType: new BaseObjectFieldDef(this.typeRegistry.PicklistValue, true),
|
|
104202
104400
|
ActivePromotionRequestId: new BaseObjectFieldDef(this.typeRegistry.IDValue, true),
|
|
104203
104401
|
MetadataSourceType: new BaseObjectFieldDef(this.typeRegistry.PicklistValue, true),
|
|
@@ -104616,6 +104814,29 @@
|
|
|
104616
104814
|
}
|
|
104617
104815
|
}
|
|
104618
104816
|
|
|
104817
|
+
class CanvasLayoutComponentRepository extends UnidentifiableGraphQLTypeRepository {
|
|
104818
|
+
constructor(services, typeRegistry) {
|
|
104819
|
+
super(services);
|
|
104820
|
+
this.services = services;
|
|
104821
|
+
this.typeRegistry = typeRegistry;
|
|
104822
|
+
this.namespace = "oas";
|
|
104823
|
+
this.typeName = "CanvasLayoutComponent";
|
|
104824
|
+
this.implementedInterfaces = ["LayoutComponent"];
|
|
104825
|
+
}
|
|
104826
|
+
get fields() {
|
|
104827
|
+
return {
|
|
104828
|
+
__typename: new BaseScalarFieldDef(false),
|
|
104829
|
+
apiName: new BaseScalarFieldDef(true),
|
|
104830
|
+
componentType: new BaseScalarFieldDef(false),
|
|
104831
|
+
displayLocation: new BaseScalarFieldDef(true),
|
|
104832
|
+
height: new BaseScalarFieldDef(true),
|
|
104833
|
+
referenceId: new BaseScalarFieldDef(true),
|
|
104834
|
+
showScroll: new BaseScalarFieldDef(true),
|
|
104835
|
+
width: new BaseScalarFieldDef(true),
|
|
104836
|
+
};
|
|
104837
|
+
}
|
|
104838
|
+
}
|
|
104839
|
+
|
|
104619
104840
|
class ChildRelationshipRepository extends UnidentifiableGraphQLTypeRepository {
|
|
104620
104841
|
constructor(services, typeRegistry) {
|
|
104621
104842
|
super(services);
|
|
@@ -104741,6 +104962,27 @@
|
|
|
104741
104962
|
}
|
|
104742
104963
|
}
|
|
104743
104964
|
|
|
104965
|
+
class CustomLinkLayoutComponentRepository extends UnidentifiableGraphQLTypeRepository {
|
|
104966
|
+
constructor(services, typeRegistry) {
|
|
104967
|
+
super(services);
|
|
104968
|
+
this.services = services;
|
|
104969
|
+
this.typeRegistry = typeRegistry;
|
|
104970
|
+
this.namespace = "oas";
|
|
104971
|
+
this.typeName = "CustomLinkLayoutComponent";
|
|
104972
|
+
this.implementedInterfaces = ["LayoutComponent"];
|
|
104973
|
+
}
|
|
104974
|
+
get fields() {
|
|
104975
|
+
return {
|
|
104976
|
+
__typename: new BaseScalarFieldDef(false),
|
|
104977
|
+
apiName: new BaseScalarFieldDef(true),
|
|
104978
|
+
componentType: new BaseScalarFieldDef(false),
|
|
104979
|
+
behavior: new BaseScalarFieldDef(true),
|
|
104980
|
+
customLinkUrl: new BaseScalarFieldDef(true),
|
|
104981
|
+
label: new BaseScalarFieldDef(true),
|
|
104982
|
+
};
|
|
104983
|
+
}
|
|
104984
|
+
}
|
|
104985
|
+
|
|
104744
104986
|
class DateAggregateRepository extends UnidentifiableGraphQLTypeRepository {
|
|
104745
104987
|
constructor(services, typeRegistry) {
|
|
104746
104988
|
super(services);
|
|
@@ -104935,6 +105177,24 @@
|
|
|
104935
105177
|
}
|
|
104936
105178
|
}
|
|
104937
105179
|
|
|
105180
|
+
class EmptySpaceLayoutComponentRepository extends UnidentifiableGraphQLTypeRepository {
|
|
105181
|
+
constructor(services, typeRegistry) {
|
|
105182
|
+
super(services);
|
|
105183
|
+
this.services = services;
|
|
105184
|
+
this.typeRegistry = typeRegistry;
|
|
105185
|
+
this.namespace = "oas";
|
|
105186
|
+
this.typeName = "EmptySpaceLayoutComponent";
|
|
105187
|
+
this.implementedInterfaces = ["LayoutComponent"];
|
|
105188
|
+
}
|
|
105189
|
+
get fields() {
|
|
105190
|
+
return {
|
|
105191
|
+
__typename: new BaseScalarFieldDef(false),
|
|
105192
|
+
apiName: new BaseScalarFieldDef(true),
|
|
105193
|
+
componentType: new BaseScalarFieldDef(false),
|
|
105194
|
+
};
|
|
105195
|
+
}
|
|
105196
|
+
}
|
|
105197
|
+
|
|
104938
105198
|
class EncryptedStringValueRepository extends UnidentifiableGraphQLTypeRepository {
|
|
104939
105199
|
constructor(services, typeRegistry) {
|
|
104940
105200
|
super(services);
|
|
@@ -104953,6 +105213,25 @@
|
|
|
104953
105213
|
}
|
|
104954
105214
|
}
|
|
104955
105215
|
|
|
105216
|
+
class FieldLayoutComponentRepository extends UnidentifiableGraphQLTypeRepository {
|
|
105217
|
+
constructor(services, typeRegistry) {
|
|
105218
|
+
super(services);
|
|
105219
|
+
this.services = services;
|
|
105220
|
+
this.typeRegistry = typeRegistry;
|
|
105221
|
+
this.namespace = "oas";
|
|
105222
|
+
this.typeName = "FieldLayoutComponent";
|
|
105223
|
+
this.implementedInterfaces = ["LayoutComponent"];
|
|
105224
|
+
}
|
|
105225
|
+
get fields() {
|
|
105226
|
+
return {
|
|
105227
|
+
__typename: new BaseScalarFieldDef(false),
|
|
105228
|
+
apiName: new BaseScalarFieldDef(true),
|
|
105229
|
+
componentType: new BaseScalarFieldDef(false),
|
|
105230
|
+
label: new BaseScalarFieldDef(true),
|
|
105231
|
+
};
|
|
105232
|
+
}
|
|
105233
|
+
}
|
|
105234
|
+
|
|
104956
105235
|
class FieldRepository extends BaseInterfaceRepository {
|
|
104957
105236
|
constructor(services, typeRegistry) {
|
|
104958
105237
|
super(services);
|
|
@@ -105169,6 +105448,189 @@
|
|
|
105169
105448
|
}
|
|
105170
105449
|
}
|
|
105171
105450
|
|
|
105451
|
+
class LayoutComponentRepository extends BaseInterfaceRepository {
|
|
105452
|
+
constructor(services, typeRegistry) {
|
|
105453
|
+
super(services);
|
|
105454
|
+
this.services = services;
|
|
105455
|
+
this.typeRegistry = typeRegistry;
|
|
105456
|
+
this.namespace = "oas";
|
|
105457
|
+
this.typeName = "LayoutComponent";
|
|
105458
|
+
this.implementedInterfaces = [];
|
|
105459
|
+
}
|
|
105460
|
+
get fields() {
|
|
105461
|
+
return {
|
|
105462
|
+
__typename: new BaseScalarFieldDef(false),
|
|
105463
|
+
apiName: new BaseScalarFieldDef(true),
|
|
105464
|
+
componentType: new BaseScalarFieldDef(false),
|
|
105465
|
+
};
|
|
105466
|
+
}
|
|
105467
|
+
get possibleTypes() {
|
|
105468
|
+
return {
|
|
105469
|
+
FieldLayoutComponent: this.typeRegistry.FieldLayoutComponent,
|
|
105470
|
+
VisualforceLayoutComponent: this.typeRegistry.VisualforceLayoutComponent,
|
|
105471
|
+
CanvasLayoutComponent: this.typeRegistry.CanvasLayoutComponent,
|
|
105472
|
+
CustomLinkLayoutComponent: this.typeRegistry.CustomLinkLayoutComponent,
|
|
105473
|
+
ReportLayoutComponent: this.typeRegistry.ReportLayoutComponent,
|
|
105474
|
+
EmptySpaceLayoutComponent: this.typeRegistry.EmptySpaceLayoutComponent,
|
|
105475
|
+
};
|
|
105476
|
+
}
|
|
105477
|
+
}
|
|
105478
|
+
|
|
105479
|
+
class LayoutConnectionRepository extends UnidentifiableGraphQLTypeRepository {
|
|
105480
|
+
constructor(services, typeRegistry) {
|
|
105481
|
+
super(services);
|
|
105482
|
+
this.services = services;
|
|
105483
|
+
this.typeRegistry = typeRegistry;
|
|
105484
|
+
this.namespace = "oas";
|
|
105485
|
+
this.typeName = "LayoutConnection";
|
|
105486
|
+
this.implementedInterfaces = [];
|
|
105487
|
+
}
|
|
105488
|
+
get fields() {
|
|
105489
|
+
return {
|
|
105490
|
+
__typename: new BaseScalarFieldDef(false),
|
|
105491
|
+
edges: new BaseArrayFieldDef(new BaseObjectFieldDef(this.typeRegistry.LayoutEdge, true), true),
|
|
105492
|
+
pageInfo: new BaseObjectFieldDef(this.typeRegistry.PageInfo, false),
|
|
105493
|
+
totalCount: new BaseScalarFieldDef(true),
|
|
105494
|
+
};
|
|
105495
|
+
}
|
|
105496
|
+
}
|
|
105497
|
+
|
|
105498
|
+
class LayoutEdgeRepository extends UnidentifiableGraphQLTypeRepository {
|
|
105499
|
+
constructor(services, typeRegistry) {
|
|
105500
|
+
super(services);
|
|
105501
|
+
this.services = services;
|
|
105502
|
+
this.typeRegistry = typeRegistry;
|
|
105503
|
+
this.namespace = "oas";
|
|
105504
|
+
this.typeName = "LayoutEdge";
|
|
105505
|
+
this.implementedInterfaces = [];
|
|
105506
|
+
}
|
|
105507
|
+
get fields() {
|
|
105508
|
+
return {
|
|
105509
|
+
__typename: new BaseScalarFieldDef(false),
|
|
105510
|
+
node: new BaseObjectFieldDef(this.typeRegistry.Layout, true),
|
|
105511
|
+
cursor: new BaseScalarFieldDef(false),
|
|
105512
|
+
};
|
|
105513
|
+
}
|
|
105514
|
+
}
|
|
105515
|
+
|
|
105516
|
+
class LayoutItemRepository extends UnidentifiableGraphQLTypeRepository {
|
|
105517
|
+
constructor(services, typeRegistry) {
|
|
105518
|
+
super(services);
|
|
105519
|
+
this.services = services;
|
|
105520
|
+
this.typeRegistry = typeRegistry;
|
|
105521
|
+
this.namespace = "oas";
|
|
105522
|
+
this.typeName = "LayoutItem";
|
|
105523
|
+
this.implementedInterfaces = [];
|
|
105524
|
+
}
|
|
105525
|
+
get fields() {
|
|
105526
|
+
return {
|
|
105527
|
+
__typename: new BaseScalarFieldDef(false),
|
|
105528
|
+
editableForNew: new BaseScalarFieldDef(false),
|
|
105529
|
+
editableForUpdate: new BaseScalarFieldDef(false),
|
|
105530
|
+
label: new BaseScalarFieldDef(false),
|
|
105531
|
+
layoutComponents: new BaseArrayFieldDef(new BaseObjectFieldDef(this.typeRegistry.LayoutComponent, false), true),
|
|
105532
|
+
lookupIdApiName: new BaseScalarFieldDef(true),
|
|
105533
|
+
required: new BaseScalarFieldDef(false),
|
|
105534
|
+
sortable: new BaseScalarFieldDef(false),
|
|
105535
|
+
uiBehavior: new BaseScalarFieldDef(true),
|
|
105536
|
+
};
|
|
105537
|
+
}
|
|
105538
|
+
}
|
|
105539
|
+
|
|
105540
|
+
class LayoutRepository extends IdentifiableGraphQLTypeRepository {
|
|
105541
|
+
constructor(services, typeRegistry) {
|
|
105542
|
+
super(services);
|
|
105543
|
+
this.services = services;
|
|
105544
|
+
this.typeRegistry = typeRegistry;
|
|
105545
|
+
this.namespace = "oas";
|
|
105546
|
+
this.typeName = "Layout";
|
|
105547
|
+
this.implementedInterfaces = [];
|
|
105548
|
+
this.idField = "id";
|
|
105549
|
+
}
|
|
105550
|
+
get fields() {
|
|
105551
|
+
return {
|
|
105552
|
+
__typename: new BaseScalarFieldDef(false),
|
|
105553
|
+
id: new BaseScalarFieldDef(true),
|
|
105554
|
+
layoutType: new BaseScalarFieldDef(true),
|
|
105555
|
+
mode: new BaseScalarFieldDef(true),
|
|
105556
|
+
objectApiName: new BaseScalarFieldDef(false),
|
|
105557
|
+
recordTypeId: new BaseScalarFieldDef(true),
|
|
105558
|
+
saveOptions: new BaseArrayFieldDef(new BaseObjectFieldDef(this.typeRegistry.LayoutSaveOption, false), true),
|
|
105559
|
+
sections: new BaseArrayFieldDef(new BaseObjectFieldDef(this.typeRegistry.LayoutSection, false), true),
|
|
105560
|
+
};
|
|
105561
|
+
}
|
|
105562
|
+
get cacheControl() {
|
|
105563
|
+
return { type: "max-age", maxAge: 60 };
|
|
105564
|
+
}
|
|
105565
|
+
}
|
|
105566
|
+
|
|
105567
|
+
class LayoutRowRepository extends UnidentifiableGraphQLTypeRepository {
|
|
105568
|
+
constructor(services, typeRegistry) {
|
|
105569
|
+
super(services);
|
|
105570
|
+
this.services = services;
|
|
105571
|
+
this.typeRegistry = typeRegistry;
|
|
105572
|
+
this.namespace = "oas";
|
|
105573
|
+
this.typeName = "LayoutRow";
|
|
105574
|
+
this.implementedInterfaces = [];
|
|
105575
|
+
}
|
|
105576
|
+
get fields() {
|
|
105577
|
+
return {
|
|
105578
|
+
__typename: new BaseScalarFieldDef(false),
|
|
105579
|
+
layoutItems: new BaseArrayFieldDef(new BaseObjectFieldDef(this.typeRegistry.LayoutItem, false), true),
|
|
105580
|
+
};
|
|
105581
|
+
}
|
|
105582
|
+
}
|
|
105583
|
+
|
|
105584
|
+
class LayoutSaveOptionRepository extends UnidentifiableGraphQLTypeRepository {
|
|
105585
|
+
constructor(services, typeRegistry) {
|
|
105586
|
+
super(services);
|
|
105587
|
+
this.services = services;
|
|
105588
|
+
this.typeRegistry = typeRegistry;
|
|
105589
|
+
this.namespace = "oas";
|
|
105590
|
+
this.typeName = "LayoutSaveOption";
|
|
105591
|
+
this.implementedInterfaces = [];
|
|
105592
|
+
}
|
|
105593
|
+
get fields() {
|
|
105594
|
+
return {
|
|
105595
|
+
__typename: new BaseScalarFieldDef(false),
|
|
105596
|
+
defaultValue: new BaseScalarFieldDef(false),
|
|
105597
|
+
isDisplayed: new BaseScalarFieldDef(false),
|
|
105598
|
+
label: new BaseScalarFieldDef(false),
|
|
105599
|
+
name: new BaseScalarFieldDef(false),
|
|
105600
|
+
restHeaderName: new BaseScalarFieldDef(true),
|
|
105601
|
+
soapHeaderName: new BaseScalarFieldDef(true),
|
|
105602
|
+
};
|
|
105603
|
+
}
|
|
105604
|
+
}
|
|
105605
|
+
|
|
105606
|
+
class LayoutSectionRepository extends IdentifiableGraphQLTypeRepository {
|
|
105607
|
+
constructor(services, typeRegistry) {
|
|
105608
|
+
super(services);
|
|
105609
|
+
this.services = services;
|
|
105610
|
+
this.typeRegistry = typeRegistry;
|
|
105611
|
+
this.namespace = "oas";
|
|
105612
|
+
this.typeName = "LayoutSection";
|
|
105613
|
+
this.implementedInterfaces = [];
|
|
105614
|
+
this.idField = "id";
|
|
105615
|
+
}
|
|
105616
|
+
get fields() {
|
|
105617
|
+
return {
|
|
105618
|
+
__typename: new BaseScalarFieldDef(false),
|
|
105619
|
+
collapsible: new BaseScalarFieldDef(false),
|
|
105620
|
+
columns: new BaseScalarFieldDef(false),
|
|
105621
|
+
heading: new BaseScalarFieldDef(true),
|
|
105622
|
+
id: new BaseScalarFieldDef(true),
|
|
105623
|
+
layoutRows: new BaseArrayFieldDef(new BaseObjectFieldDef(this.typeRegistry.LayoutRow, false), true),
|
|
105624
|
+
rows: new BaseScalarFieldDef(false),
|
|
105625
|
+
tabOrder: new BaseScalarFieldDef(true),
|
|
105626
|
+
useHeading: new BaseScalarFieldDef(false),
|
|
105627
|
+
};
|
|
105628
|
+
}
|
|
105629
|
+
get cacheControl() {
|
|
105630
|
+
return { type: "max-age", maxAge: 60 };
|
|
105631
|
+
}
|
|
105632
|
+
}
|
|
105633
|
+
|
|
105172
105634
|
class ListColumnRepository extends UnidentifiableGraphQLTypeRepository {
|
|
105173
105635
|
constructor(services, typeRegistry) {
|
|
105174
105636
|
super(services);
|
|
@@ -105530,7 +105992,6 @@
|
|
|
105530
105992
|
get fields() {
|
|
105531
105993
|
return {
|
|
105532
105994
|
__typename: new BaseScalarFieldDef(false),
|
|
105533
|
-
picklistAtrributesValueType: new BaseScalarFieldDef(true),
|
|
105534
105995
|
connectDisplayName: new BaseScalarFieldDef(true),
|
|
105535
105996
|
internalName: new BaseScalarFieldDef(true),
|
|
105536
105997
|
};
|
|
@@ -106045,6 +106506,32 @@
|
|
|
106045
106506
|
}
|
|
106046
106507
|
}
|
|
106047
106508
|
|
|
106509
|
+
class ReportLayoutComponentRepository extends UnidentifiableGraphQLTypeRepository {
|
|
106510
|
+
constructor(services, typeRegistry) {
|
|
106511
|
+
super(services);
|
|
106512
|
+
this.services = services;
|
|
106513
|
+
this.typeRegistry = typeRegistry;
|
|
106514
|
+
this.namespace = "oas";
|
|
106515
|
+
this.typeName = "ReportLayoutComponent";
|
|
106516
|
+
this.implementedInterfaces = ["LayoutComponent"];
|
|
106517
|
+
}
|
|
106518
|
+
get fields() {
|
|
106519
|
+
return {
|
|
106520
|
+
__typename: new BaseScalarFieldDef(false),
|
|
106521
|
+
apiName: new BaseScalarFieldDef(true),
|
|
106522
|
+
componentType: new BaseScalarFieldDef(false),
|
|
106523
|
+
cacheData: new BaseScalarFieldDef(true),
|
|
106524
|
+
error: new BaseScalarFieldDef(true),
|
|
106525
|
+
filter: new BaseScalarFieldDef(true),
|
|
106526
|
+
hideOnError: new BaseScalarFieldDef(true),
|
|
106527
|
+
placeholder: new BaseScalarFieldDef(true),
|
|
106528
|
+
reportId: new BaseScalarFieldDef(true),
|
|
106529
|
+
showTitle: new BaseScalarFieldDef(true),
|
|
106530
|
+
size: new BaseScalarFieldDef(true),
|
|
106531
|
+
};
|
|
106532
|
+
}
|
|
106533
|
+
}
|
|
106534
|
+
|
|
106048
106535
|
class RichTextAreaValueRepository extends UnidentifiableGraphQLTypeRepository {
|
|
106049
106536
|
constructor(services, typeRegistry) {
|
|
106050
106537
|
super(services);
|
|
@@ -106155,6 +106642,7 @@
|
|
|
106155
106642
|
allowedOperators: new BaseArrayFieldDef(new BaseScalarFieldDef(false), true),
|
|
106156
106643
|
sortable: new BaseScalarFieldDef(true),
|
|
106157
106644
|
lookupIdColumn: new BaseScalarFieldDef(true),
|
|
106645
|
+
inlineEditAttributes: new BaseObjectFieldDef(this.typeRegistry.Setup__ListInlineEditAttributes, true),
|
|
106158
106646
|
};
|
|
106159
106647
|
}
|
|
106160
106648
|
}
|
|
@@ -106179,6 +106667,44 @@
|
|
|
106179
106667
|
}
|
|
106180
106668
|
}
|
|
106181
106669
|
|
|
106670
|
+
class Setup__ListInlineEditAttributeDetailsRepository extends UnidentifiableGraphQLTypeRepository {
|
|
106671
|
+
constructor(services, typeRegistry) {
|
|
106672
|
+
super(services);
|
|
106673
|
+
this.services = services;
|
|
106674
|
+
this.typeRegistry = typeRegistry;
|
|
106675
|
+
this.namespace = "oas";
|
|
106676
|
+
this.typeName = "Setup__ListInlineEditAttributeDetails";
|
|
106677
|
+
this.implementedInterfaces = [];
|
|
106678
|
+
}
|
|
106679
|
+
get fields() {
|
|
106680
|
+
return {
|
|
106681
|
+
__typename: new BaseScalarFieldDef(false),
|
|
106682
|
+
recordTypeId: new BaseScalarFieldDef(false),
|
|
106683
|
+
editable: new BaseScalarFieldDef(false),
|
|
106684
|
+
required: new BaseScalarFieldDef(false),
|
|
106685
|
+
};
|
|
106686
|
+
}
|
|
106687
|
+
}
|
|
106688
|
+
|
|
106689
|
+
class Setup__ListInlineEditAttributesRepository extends UnidentifiableGraphQLTypeRepository {
|
|
106690
|
+
constructor(services, typeRegistry) {
|
|
106691
|
+
super(services);
|
|
106692
|
+
this.services = services;
|
|
106693
|
+
this.typeRegistry = typeRegistry;
|
|
106694
|
+
this.namespace = "oas";
|
|
106695
|
+
this.typeName = "Setup__ListInlineEditAttributes";
|
|
106696
|
+
this.implementedInterfaces = [];
|
|
106697
|
+
}
|
|
106698
|
+
get fields() {
|
|
106699
|
+
return {
|
|
106700
|
+
__typename: new BaseScalarFieldDef(false),
|
|
106701
|
+
objectApiName: new BaseScalarFieldDef(true),
|
|
106702
|
+
fieldApiName: new BaseScalarFieldDef(true),
|
|
106703
|
+
attributes: new BaseArrayFieldDef(new BaseObjectFieldDef(this.typeRegistry.Setup__ListInlineEditAttributeDetails, true), true),
|
|
106704
|
+
};
|
|
106705
|
+
}
|
|
106706
|
+
}
|
|
106707
|
+
|
|
106182
106708
|
class Setup__ListOrderRepository extends UnidentifiableGraphQLTypeRepository {
|
|
106183
106709
|
constructor(services, typeRegistry) {
|
|
106184
106710
|
super(services);
|
|
@@ -106250,6 +106776,7 @@
|
|
|
106250
106776
|
return {
|
|
106251
106777
|
__typename: new BaseScalarFieldDef(false),
|
|
106252
106778
|
listViewType: new BaseScalarFieldDef(false),
|
|
106779
|
+
isInlineEditable: new BaseScalarFieldDef(true),
|
|
106253
106780
|
label: new BaseScalarFieldDef(true),
|
|
106254
106781
|
displayColumns: new BaseArrayFieldDef(new BaseObjectFieldDef(this.typeRegistry.Setup__ListColumn, false), false),
|
|
106255
106782
|
filters: new BaseArrayFieldDef(new BaseObjectFieldDef(this.typeRegistry.Setup__ListFilter, false), true),
|
|
@@ -106764,6 +107291,8 @@
|
|
|
106764
107291
|
aggregate: new BaseObjectFieldDef(this.typeRegistry.RecordQueryAggregate, false),
|
|
106765
107292
|
objectInfos: new BaseArrayFieldDef(new BaseObjectFieldDef(this.typeRegistry.ObjectInfo, true), true),
|
|
106766
107293
|
relatedListByName: new BaseObjectFieldDef(this.typeRegistry.RelatedListInfo, true),
|
|
107294
|
+
currentUser: new BaseObjectFieldDef(this.typeRegistry.RecordRepresentation, true),
|
|
107295
|
+
recordLayouts: new BaseObjectFieldDef(this.typeRegistry.LayoutConnection, true),
|
|
106767
107296
|
};
|
|
106768
107297
|
}
|
|
106769
107298
|
}
|
|
@@ -106809,6 +107338,29 @@
|
|
|
106809
107338
|
}
|
|
106810
107339
|
}
|
|
106811
107340
|
|
|
107341
|
+
class VisualforceLayoutComponentRepository extends UnidentifiableGraphQLTypeRepository {
|
|
107342
|
+
constructor(services, typeRegistry) {
|
|
107343
|
+
super(services);
|
|
107344
|
+
this.services = services;
|
|
107345
|
+
this.typeRegistry = typeRegistry;
|
|
107346
|
+
this.namespace = "oas";
|
|
107347
|
+
this.typeName = "VisualforceLayoutComponent";
|
|
107348
|
+
this.implementedInterfaces = ["LayoutComponent"];
|
|
107349
|
+
}
|
|
107350
|
+
get fields() {
|
|
107351
|
+
return {
|
|
107352
|
+
__typename: new BaseScalarFieldDef(false),
|
|
107353
|
+
apiName: new BaseScalarFieldDef(true),
|
|
107354
|
+
componentType: new BaseScalarFieldDef(false),
|
|
107355
|
+
height: new BaseScalarFieldDef(true),
|
|
107356
|
+
showLabel: new BaseScalarFieldDef(true),
|
|
107357
|
+
showScroll: new BaseScalarFieldDef(true),
|
|
107358
|
+
visualforceUrl: new BaseScalarFieldDef(true),
|
|
107359
|
+
width: new BaseScalarFieldDef(true),
|
|
107360
|
+
};
|
|
107361
|
+
}
|
|
107362
|
+
}
|
|
107363
|
+
|
|
106812
107364
|
class GraphQLTypeRegistry {
|
|
106813
107365
|
constructor(services) {
|
|
106814
107366
|
this.services = services;
|
|
@@ -106911,6 +107463,28 @@
|
|
|
106911
107463
|
this._ListColumn = new ListColumnRepository(this.services, this);
|
|
106912
107464
|
this._ListOrder = new ListOrderRepository(this.services, this);
|
|
106913
107465
|
this._RelatedListInfo = new RelatedListInfoRepository(this.services, this);
|
|
107466
|
+
this._LayoutSaveOption =
|
|
107467
|
+
new LayoutSaveOptionRepository(this.services, this);
|
|
107468
|
+
this._FieldLayoutComponent =
|
|
107469
|
+
new FieldLayoutComponentRepository(this.services, this);
|
|
107470
|
+
this._VisualforceLayoutComponent =
|
|
107471
|
+
new VisualforceLayoutComponentRepository(this.services, this);
|
|
107472
|
+
this._CanvasLayoutComponent =
|
|
107473
|
+
new CanvasLayoutComponentRepository(this.services, this);
|
|
107474
|
+
this._CustomLinkLayoutComponent =
|
|
107475
|
+
new CustomLinkLayoutComponentRepository(this.services, this);
|
|
107476
|
+
this._ReportLayoutComponent =
|
|
107477
|
+
new ReportLayoutComponentRepository(this.services, this);
|
|
107478
|
+
this._EmptySpaceLayoutComponent =
|
|
107479
|
+
new EmptySpaceLayoutComponentRepository(this.services, this);
|
|
107480
|
+
this._LayoutComponent = new LayoutComponentRepository(this.services, this);
|
|
107481
|
+
this._LayoutItem = new LayoutItemRepository(this.services, this);
|
|
107482
|
+
this._LayoutRow = new LayoutRowRepository(this.services, this);
|
|
107483
|
+
this._LayoutSection = new LayoutSectionRepository(this.services, this);
|
|
107484
|
+
this._Layout = new LayoutRepository(this.services, this);
|
|
107485
|
+
this._LayoutEdge = new LayoutEdgeRepository(this.services, this);
|
|
107486
|
+
this._LayoutConnection =
|
|
107487
|
+
new LayoutConnectionRepository(this.services, this);
|
|
106914
107488
|
this._UIAPI = new UIAPIRepository(this.services, this);
|
|
106915
107489
|
this._SObject__Field = new SObject__FieldRepository(this.services, this);
|
|
106916
107490
|
this._Setup__SetupPolymorphicParentRelationship =
|
|
@@ -106935,6 +107509,10 @@
|
|
|
106935
107509
|
new Setup__SetupAggregateConnectionRepository(this.services, this);
|
|
106936
107510
|
this._Setup__SetupQueryAggregate =
|
|
106937
107511
|
new Setup__SetupQueryAggregateRepository(this.services, this);
|
|
107512
|
+
this._Setup__ListInlineEditAttributeDetails =
|
|
107513
|
+
new Setup__ListInlineEditAttributeDetailsRepository(this.services, this);
|
|
107514
|
+
this._Setup__ListInlineEditAttributes =
|
|
107515
|
+
new Setup__ListInlineEditAttributesRepository(this.services, this);
|
|
106938
107516
|
this._Setup__ListColumn =
|
|
106939
107517
|
new Setup__ListColumnRepository(this.services, this);
|
|
106940
107518
|
this._Setup__ListFilter =
|
|
@@ -107222,6 +107800,48 @@
|
|
|
107222
107800
|
get RelatedListInfo() {
|
|
107223
107801
|
return this._RelatedListInfo;
|
|
107224
107802
|
}
|
|
107803
|
+
get LayoutSaveOption() {
|
|
107804
|
+
return this._LayoutSaveOption;
|
|
107805
|
+
}
|
|
107806
|
+
get FieldLayoutComponent() {
|
|
107807
|
+
return this._FieldLayoutComponent;
|
|
107808
|
+
}
|
|
107809
|
+
get VisualforceLayoutComponent() {
|
|
107810
|
+
return this._VisualforceLayoutComponent;
|
|
107811
|
+
}
|
|
107812
|
+
get CanvasLayoutComponent() {
|
|
107813
|
+
return this._CanvasLayoutComponent;
|
|
107814
|
+
}
|
|
107815
|
+
get CustomLinkLayoutComponent() {
|
|
107816
|
+
return this._CustomLinkLayoutComponent;
|
|
107817
|
+
}
|
|
107818
|
+
get ReportLayoutComponent() {
|
|
107819
|
+
return this._ReportLayoutComponent;
|
|
107820
|
+
}
|
|
107821
|
+
get EmptySpaceLayoutComponent() {
|
|
107822
|
+
return this._EmptySpaceLayoutComponent;
|
|
107823
|
+
}
|
|
107824
|
+
get LayoutComponent() {
|
|
107825
|
+
return this._LayoutComponent;
|
|
107826
|
+
}
|
|
107827
|
+
get LayoutItem() {
|
|
107828
|
+
return this._LayoutItem;
|
|
107829
|
+
}
|
|
107830
|
+
get LayoutRow() {
|
|
107831
|
+
return this._LayoutRow;
|
|
107832
|
+
}
|
|
107833
|
+
get LayoutSection() {
|
|
107834
|
+
return this._LayoutSection;
|
|
107835
|
+
}
|
|
107836
|
+
get Layout() {
|
|
107837
|
+
return this._Layout;
|
|
107838
|
+
}
|
|
107839
|
+
get LayoutEdge() {
|
|
107840
|
+
return this._LayoutEdge;
|
|
107841
|
+
}
|
|
107842
|
+
get LayoutConnection() {
|
|
107843
|
+
return this._LayoutConnection;
|
|
107844
|
+
}
|
|
107225
107845
|
get UIAPI() {
|
|
107226
107846
|
return this._UIAPI;
|
|
107227
107847
|
}
|
|
@@ -107261,6 +107881,12 @@
|
|
|
107261
107881
|
get Setup__SetupQueryAggregate() {
|
|
107262
107882
|
return this._Setup__SetupQueryAggregate;
|
|
107263
107883
|
}
|
|
107884
|
+
get Setup__ListInlineEditAttributeDetails() {
|
|
107885
|
+
return this._Setup__ListInlineEditAttributeDetails;
|
|
107886
|
+
}
|
|
107887
|
+
get Setup__ListInlineEditAttributes() {
|
|
107888
|
+
return this._Setup__ListInlineEditAttributes;
|
|
107889
|
+
}
|
|
107264
107890
|
get Setup__ListColumn() {
|
|
107265
107891
|
return this._Setup__ListColumn;
|
|
107266
107892
|
}
|
|
@@ -109049,15 +109675,16 @@
|
|
|
109049
109675
|
_(config, CONFIG_SCHEMA);
|
|
109050
109676
|
return new graphql_imperative_ctor(config, documentRootType, services);
|
|
109051
109677
|
});
|
|
109052
|
-
graphql_imperative_legacy_v1_import =
|
|
109053
|
-
|
|
109054
|
-
|
|
109055
|
-
|
|
109056
|
-
|
|
109057
|
-
|
|
109058
|
-
|
|
109059
|
-
|
|
109060
|
-
|
|
109678
|
+
graphql_imperative_legacy_v1_import =
|
|
109679
|
+
services.graphQLLegacyImperativeBindings.bind(({ config, assertIsValid }) => {
|
|
109680
|
+
const validatedConfig = validateNonQueryGraphQLConfig(config);
|
|
109681
|
+
if (validatedConfig.isErr()) {
|
|
109682
|
+
throw new Error(`Invalid configuration passed to GraphQL: ${validatedConfig.error}`);
|
|
109683
|
+
}
|
|
109684
|
+
const _ = assertIsValid;
|
|
109685
|
+
_(validatedConfig.value, CONFIG_SCHEMA);
|
|
109686
|
+
return new graphql_imperative_ctor(validatedConfig.value, documentRootType, services);
|
|
109687
|
+
});
|
|
109061
109688
|
/*
|
|
109062
109689
|
* State Manager
|
|
109063
109690
|
*/
|
|
@@ -109095,7 +109722,7 @@
|
|
|
109095
109722
|
cb(graphql_v1_import, graphql_imperative$1, graphql_imperative_legacy_v1_import, graphql_state_manager, useOneStoreGraphQL);
|
|
109096
109723
|
}
|
|
109097
109724
|
}
|
|
109098
|
-
// version: 1.
|
|
109725
|
+
// version: 1.421.0-45320a2742
|
|
109099
109726
|
|
|
109100
109727
|
function createFragmentMap(documentNode) {
|
|
109101
109728
|
const fragments = {};
|
|
@@ -138320,7 +138947,7 @@
|
|
|
138320
138947
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
138321
138948
|
instrument: instrument$1,
|
|
138322
138949
|
});
|
|
138323
|
-
// version: 1.
|
|
138950
|
+
// version: 1.421.0-45320a2742
|
|
138324
138951
|
|
|
138325
138952
|
// On core the unstable adapters are re-exported with different names,
|
|
138326
138953
|
// we want to match them here.
|
|
@@ -138472,7 +139099,7 @@
|
|
|
138472
139099
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
138473
139100
|
graphQLImperative = ldsAdapter;
|
|
138474
139101
|
});
|
|
138475
|
-
// version: 1.
|
|
139102
|
+
// version: 1.421.0-45320a2742
|
|
138476
139103
|
|
|
138477
139104
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
138478
139105
|
__proto__: null,
|
|
@@ -139271,7 +139898,7 @@
|
|
|
139271
139898
|
function register(r) {
|
|
139272
139899
|
callbacks$1.forEach((callback) => callback(r));
|
|
139273
139900
|
}
|
|
139274
|
-
// version: 1.
|
|
139901
|
+
// version: 1.421.0-2828c95aef
|
|
139275
139902
|
|
|
139276
139903
|
/**
|
|
139277
139904
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -140608,4 +141235,4 @@
|
|
|
140608
141235
|
exports.subscribeToAdapter = subscribeToAdapter;
|
|
140609
141236
|
|
|
140610
141237
|
}));
|
|
140611
|
-
// version: 1.
|
|
141238
|
+
// version: 1.421.0-2828c95aef
|