@salesforce/lds-worker-api 1.385.0 → 1.387.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.
|
@@ -21,7 +21,7 @@ var SnapshotState$3;
|
|
|
21
21
|
})(SnapshotState$3 || (SnapshotState$3 = {}));
|
|
22
22
|
|
|
23
23
|
const { create: create$b, entries: entries$7, freeze: freeze$7, keys: keys$b, values: values$3, assign: assign$8 } = Object;
|
|
24
|
-
const { hasOwnProperty: hasOwnProperty$
|
|
24
|
+
const { hasOwnProperty: hasOwnProperty$6 } = Object.prototype;
|
|
25
25
|
const { isArray: isArray$a } = Array;
|
|
26
26
|
const { push: push$5, indexOf, slice: slice$2 } = Array.prototype;
|
|
27
27
|
const { parse: parse$c, stringify: stringify$c } = JSON;
|
|
@@ -623,9 +623,9 @@ class StringKeyInMemoryStore {
|
|
|
623
623
|
readMetadataWhere(query) {
|
|
624
624
|
const keys$1 = keys$b(this.metadata);
|
|
625
625
|
const results = [];
|
|
626
|
-
const hasNamespaceQuery = hasOwnProperty$
|
|
627
|
-
const hasRepresentationNameQuery = hasOwnProperty$
|
|
628
|
-
const hasTtlOverrideQuery = hasOwnProperty$
|
|
626
|
+
const hasNamespaceQuery = hasOwnProperty$6.call(query, 'namespace');
|
|
627
|
+
const hasRepresentationNameQuery = hasOwnProperty$6.call(query, 'representationName');
|
|
628
|
+
const hasTtlOverrideQuery = hasOwnProperty$6.call(query, 'ttlOverride');
|
|
629
629
|
for (let i = 0, length = keys$1.length; i < length; i++) {
|
|
630
630
|
const key = keys$1[i];
|
|
631
631
|
const storeMetadata = this.metadata[key];
|
|
@@ -649,7 +649,7 @@ class StringKeyInMemoryStore {
|
|
|
649
649
|
put(recordId, record) {
|
|
650
650
|
const { records, insertedIds, pendingTrimKeys, retainedIds } = this;
|
|
651
651
|
const canonicalKey = this.getCanonicalRecordId(recordId);
|
|
652
|
-
if (hasOwnProperty$
|
|
652
|
+
if (hasOwnProperty$6.call(records, canonicalKey) === false) {
|
|
653
653
|
insertedIds[canonicalKey] = true;
|
|
654
654
|
}
|
|
655
655
|
records[canonicalKey] = record;
|
|
@@ -1324,9 +1324,9 @@ class InMemoryStore {
|
|
|
1324
1324
|
return this.fallbackStringKeyInMemoryStore.readMetadataWhere(query);
|
|
1325
1325
|
}
|
|
1326
1326
|
const results = [];
|
|
1327
|
-
const hasNamespaceQuery = hasOwnProperty$
|
|
1328
|
-
const hasRepresentationNameQuery = hasOwnProperty$
|
|
1329
|
-
const hasTtlOverrideQuery = hasOwnProperty$
|
|
1327
|
+
const hasNamespaceQuery = hasOwnProperty$6.call(query, 'namespace');
|
|
1328
|
+
const hasRepresentationNameQuery = hasOwnProperty$6.call(query, 'representationName');
|
|
1329
|
+
const hasTtlOverrideQuery = hasOwnProperty$6.call(query, 'ttlOverride');
|
|
1330
1330
|
for (let i = 0, length = keys.length; i < length; i++) {
|
|
1331
1331
|
const key = keys[i];
|
|
1332
1332
|
const storeMetadata = this.metadataMap.get(key);
|
|
@@ -1981,7 +1981,7 @@ function adapterToNetworkPriority(priority) {
|
|
|
1981
1981
|
return 'normal';
|
|
1982
1982
|
}
|
|
1983
1983
|
}
|
|
1984
|
-
var HttpStatusCode$
|
|
1984
|
+
var HttpStatusCode$2;
|
|
1985
1985
|
(function (HttpStatusCode) {
|
|
1986
1986
|
HttpStatusCode[HttpStatusCode["Ok"] = 200] = "Ok";
|
|
1987
1987
|
HttpStatusCode[HttpStatusCode["Created"] = 201] = "Created";
|
|
@@ -1993,7 +1993,7 @@ var HttpStatusCode$1;
|
|
|
1993
1993
|
HttpStatusCode[HttpStatusCode["NotFound"] = 404] = "NotFound";
|
|
1994
1994
|
HttpStatusCode[HttpStatusCode["ServerError"] = 500] = "ServerError";
|
|
1995
1995
|
HttpStatusCode[HttpStatusCode["GatewayTimeout"] = 504] = "GatewayTimeout";
|
|
1996
|
-
})(HttpStatusCode$
|
|
1996
|
+
})(HttpStatusCode$2 || (HttpStatusCode$2 = {}));
|
|
1997
1997
|
/**
|
|
1998
1998
|
* A type guard function for determining if an unknown object is a {@link FileReference}
|
|
1999
1999
|
*/
|
|
@@ -2111,7 +2111,7 @@ const onlyIfCachedImplementation = function (args) {
|
|
|
2111
2111
|
body: undefined,
|
|
2112
2112
|
headers: {},
|
|
2113
2113
|
ok: false,
|
|
2114
|
-
status: HttpStatusCode$
|
|
2114
|
+
status: HttpStatusCode$2.GatewayTimeout,
|
|
2115
2115
|
statusText: 'Data requested with only-if-cached policy and not found in the cache.',
|
|
2116
2116
|
errorType: 'fetchResponse',
|
|
2117
2117
|
}, refresh);
|
|
@@ -2165,8 +2165,8 @@ function buildValidAtImplementation(basePolicyImplementation, timestamp) {
|
|
|
2165
2165
|
function isNodeLink(node) {
|
|
2166
2166
|
return (typeof node === 'object' &&
|
|
2167
2167
|
node !== null &&
|
|
2168
|
-
(hasOwnProperty$
|
|
2169
|
-
hasOwnProperty$
|
|
2168
|
+
(hasOwnProperty$6.call(node, '__ref') ||
|
|
2169
|
+
hasOwnProperty$6.call(node, 'isMissing')));
|
|
2170
2170
|
}
|
|
2171
2171
|
function isGraphNode$2(node) {
|
|
2172
2172
|
return node !== null && node.type === GraphNodeType$1.Node;
|
|
@@ -2311,7 +2311,7 @@ function formatStorageKey(name, argValues) {
|
|
|
2311
2311
|
}
|
|
2312
2312
|
var values = [];
|
|
2313
2313
|
for (var _argName in argValues) {
|
|
2314
|
-
if (hasOwnProperty$
|
|
2314
|
+
if (hasOwnProperty$6.call(argValues, _argName)) {
|
|
2315
2315
|
var value = argValues[_argName];
|
|
2316
2316
|
if (value !== null || value !== undefined) {
|
|
2317
2317
|
values.push(_argName + ':' + stringify$c(value));
|
|
@@ -2651,7 +2651,7 @@ class Reader {
|
|
|
2651
2651
|
data[key] = items;
|
|
2652
2652
|
}
|
|
2653
2653
|
else {
|
|
2654
|
-
if (hasOwnProperty$
|
|
2654
|
+
if (hasOwnProperty$6.call(visitedKeys, nextRecordId) === true) {
|
|
2655
2655
|
throw new Error(`Invalid eager selection on records with circular references.`);
|
|
2656
2656
|
}
|
|
2657
2657
|
const lookupResult = this.resolveKey(nextRecordId);
|
|
@@ -3133,7 +3133,7 @@ class Reader {
|
|
|
3133
3133
|
}
|
|
3134
3134
|
}
|
|
3135
3135
|
readScalar(propertyName, record, data, required) {
|
|
3136
|
-
if (!hasOwnProperty$
|
|
3136
|
+
if (!hasOwnProperty$6.call(record, propertyName)) {
|
|
3137
3137
|
if (required !== false) {
|
|
3138
3138
|
this.markMissing();
|
|
3139
3139
|
return;
|
|
@@ -3374,7 +3374,7 @@ class Environment {
|
|
|
3374
3374
|
isErrorCacheable(errorSnapshot) {
|
|
3375
3375
|
const { error } = errorSnapshot;
|
|
3376
3376
|
if (error.errorType === 'fetchResponse') {
|
|
3377
|
-
return error.status === HttpStatusCode$
|
|
3377
|
+
return error.status === HttpStatusCode$2.NotFound;
|
|
3378
3378
|
}
|
|
3379
3379
|
return false;
|
|
3380
3380
|
}
|
|
@@ -4274,7 +4274,7 @@ function withDefaultLuvio(callback) {
|
|
|
4274
4274
|
}
|
|
4275
4275
|
callbacks.push(callback);
|
|
4276
4276
|
}
|
|
4277
|
-
// version: 1.
|
|
4277
|
+
// version: 1.387.0-8c93a5dd2c
|
|
4278
4278
|
|
|
4279
4279
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4280
4280
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -5318,7 +5318,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
|
|
|
5318
5318
|
const { apiFamily, name } = metadata;
|
|
5319
5319
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
5320
5320
|
}
|
|
5321
|
-
// version: 1.
|
|
5321
|
+
// version: 1.387.0-8c93a5dd2c
|
|
5322
5322
|
|
|
5323
5323
|
/**
|
|
5324
5324
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -5362,7 +5362,7 @@ var StoreResolveResultState;
|
|
|
5362
5362
|
StoreResolveResultState[StoreResolveResultState["NotPresent"] = 3] = "NotPresent";
|
|
5363
5363
|
StoreResolveResultState[StoreResolveResultState["Stale"] = 4] = "Stale";
|
|
5364
5364
|
})(StoreResolveResultState || (StoreResolveResultState = {}));
|
|
5365
|
-
var HttpStatusCode;
|
|
5365
|
+
var HttpStatusCode$1;
|
|
5366
5366
|
(function (HttpStatusCode) {
|
|
5367
5367
|
HttpStatusCode[HttpStatusCode["Ok"] = 200] = "Ok";
|
|
5368
5368
|
HttpStatusCode[HttpStatusCode["Created"] = 201] = "Created";
|
|
@@ -5374,7 +5374,7 @@ var HttpStatusCode;
|
|
|
5374
5374
|
HttpStatusCode[HttpStatusCode["NotFound"] = 404] = "NotFound";
|
|
5375
5375
|
HttpStatusCode[HttpStatusCode["ServerError"] = 500] = "ServerError";
|
|
5376
5376
|
HttpStatusCode[HttpStatusCode["GatewayTimeout"] = 504] = "GatewayTimeout";
|
|
5377
|
-
})(HttpStatusCode || (HttpStatusCode = {}));
|
|
5377
|
+
})(HttpStatusCode$1 || (HttpStatusCode$1 = {}));
|
|
5378
5378
|
var GraphNodeType;
|
|
5379
5379
|
(function (GraphNodeType) {
|
|
5380
5380
|
GraphNodeType["Link"] = "Link";
|
|
@@ -6139,7 +6139,7 @@ function buildAdapterValidationConfig$3(displayName, paramsMeta) {
|
|
|
6139
6139
|
const keyPrefix$3 = 'UiApi';
|
|
6140
6140
|
|
|
6141
6141
|
const { assign: assign$6, create: create$8, freeze: freeze$5, isFrozen: isFrozen$3, keys: keys$9 } = Object;
|
|
6142
|
-
const { hasOwnProperty: hasOwnProperty$
|
|
6142
|
+
const { hasOwnProperty: hasOwnProperty$5 } = Object.prototype;
|
|
6143
6143
|
const { split: split$1, endsWith: endsWith$1 } = String.prototype;
|
|
6144
6144
|
const { isArray: isArray$8 } = Array;
|
|
6145
6145
|
const { concat: concat$3, filter: filter$3, includes: includes$3, push: push$4, reduce: reduce$3 } = Array.prototype;
|
|
@@ -9352,7 +9352,7 @@ function extractTrackedFieldsToTrie$1(recordId, node, root, config, visitedRecor
|
|
|
9352
9352
|
}
|
|
9353
9353
|
// Stop the traversal if the key has already been visited, since the fields for this record
|
|
9354
9354
|
// have already been gathered at this point.
|
|
9355
|
-
if (hasOwnProperty$
|
|
9355
|
+
if (hasOwnProperty$5.call(visitedRecordIds, recordId)) {
|
|
9356
9356
|
return;
|
|
9357
9357
|
}
|
|
9358
9358
|
// The visitedRecordIds object passed to the spanning record is a copy of the original
|
|
@@ -10158,20 +10158,20 @@ function unionFields$1(fields, optionalFields) {
|
|
|
10158
10158
|
return [...fieldsArray, ...optionalFieldsArray];
|
|
10159
10159
|
}
|
|
10160
10160
|
function getRecordIdsFromUrlParams$1(urlParams) {
|
|
10161
|
-
if (hasOwnProperty$
|
|
10161
|
+
if (hasOwnProperty$5.call(urlParams, 'recordId')) {
|
|
10162
10162
|
return [urlParams.recordId];
|
|
10163
10163
|
}
|
|
10164
|
-
else if (hasOwnProperty$
|
|
10164
|
+
else if (hasOwnProperty$5.call(urlParams, 'recordIds')) {
|
|
10165
10165
|
return urlParams.recordIds;
|
|
10166
10166
|
}
|
|
10167
10167
|
return [];
|
|
10168
10168
|
}
|
|
10169
10169
|
function isSingleBatchRecordRequest$1(urlParams) {
|
|
10170
|
-
return (hasOwnProperty$
|
|
10170
|
+
return (hasOwnProperty$5.call(urlParams, 'recordIds') &&
|
|
10171
10171
|
urlParams.recordIds.length === 1);
|
|
10172
10172
|
}
|
|
10173
10173
|
function isSingleRecordRequest$1(urlParams) {
|
|
10174
|
-
return hasOwnProperty$
|
|
10174
|
+
return hasOwnProperty$5.call(urlParams, 'recordId');
|
|
10175
10175
|
}
|
|
10176
10176
|
function isRestrictedPathCondition$1(existingPath, path) {
|
|
10177
10177
|
// should not dedupe getRecordUi and getRecord as both of their representation is different
|
|
@@ -15121,7 +15121,7 @@ function getLayoutMapAndObjectInfo$1(recordId, data) {
|
|
|
15121
15121
|
// W-12697744 - Return an empty layoutMap if the entity does not have a layout.
|
|
15122
15122
|
// Temp fix until we can mimic the server behavior for non-layoutable entities.
|
|
15123
15123
|
let layoutMap = {};
|
|
15124
|
-
if (hasOwnProperty$
|
|
15124
|
+
if (hasOwnProperty$5.call(layouts, apiName)) {
|
|
15125
15125
|
layoutMap = layouts[apiName][recordTypeId] || {};
|
|
15126
15126
|
}
|
|
15127
15127
|
return {
|
|
@@ -32839,7 +32839,7 @@ const createResourceParams$4$1 = /*#__PURE__*/ createResourceParams$14(createRec
|
|
|
32839
32839
|
|
|
32840
32840
|
function onResponseSuccess(luvio, response, recordIngest, conflictMap) {
|
|
32841
32841
|
const { body, status } = response;
|
|
32842
|
-
if (status === HttpStatusCode$
|
|
32842
|
+
if (status === HttpStatusCode$2.NoContent) {
|
|
32843
32843
|
const syntheticSnapshot = {
|
|
32844
32844
|
state: 'Fulfilled',
|
|
32845
32845
|
data: {},
|
|
@@ -33116,7 +33116,7 @@ function buildNetworkSnapshot$2$1(luvio, config, clientOptions) {
|
|
|
33116
33116
|
const recordIngest = createRecordIngest$1(fieldTrie, optionalFieldTrie, conflictMap);
|
|
33117
33117
|
return luvio.dispatchResourceRequest(request).then((response) => {
|
|
33118
33118
|
return luvio.handleSuccessResponse(() => {
|
|
33119
|
-
if (response.status === HttpStatusCode$
|
|
33119
|
+
if (response.status === HttpStatusCode$2.NoContent) {
|
|
33120
33120
|
const syntheticSnapshot = {
|
|
33121
33121
|
state: 'Fulfilled',
|
|
33122
33122
|
data: {},
|
|
@@ -34154,7 +34154,7 @@ withDefaultLuvio((luvio) => {
|
|
|
34154
34154
|
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
34155
34155
|
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
34156
34156
|
});
|
|
34157
|
-
// version: 1.
|
|
34157
|
+
// version: 1.387.0-1c34f8f965
|
|
34158
34158
|
|
|
34159
34159
|
function requestIdleDetectedCallback(_callback) { }
|
|
34160
34160
|
function declareNotifierTaskSingle(_name) {
|
|
@@ -43124,7 +43124,7 @@ function coerceVariableValues(schema, varDefNodes, inputs, onError) {
|
|
|
43124
43124
|
return "continue";
|
|
43125
43125
|
}
|
|
43126
43126
|
|
|
43127
|
-
if (!hasOwnProperty$
|
|
43127
|
+
if (!hasOwnProperty$4(inputs, varName)) {
|
|
43128
43128
|
if (varDefNode.defaultValue) {
|
|
43129
43129
|
coercedValues[varName] = valueFromAST(varDefNode.defaultValue, varType);
|
|
43130
43130
|
} else if (isNonNullType(varType)) {
|
|
@@ -43208,7 +43208,7 @@ function getArgumentValues(def, node, variableValues) {
|
|
|
43208
43208
|
if (valueNode.kind === Kind$3.VARIABLE) {
|
|
43209
43209
|
var variableName = valueNode.name.value;
|
|
43210
43210
|
|
|
43211
|
-
if (variableValues == null || !hasOwnProperty$
|
|
43211
|
+
if (variableValues == null || !hasOwnProperty$4(variableValues, variableName)) {
|
|
43212
43212
|
if (argDef.defaultValue !== undefined) {
|
|
43213
43213
|
coercedValues[name] = argDef.defaultValue;
|
|
43214
43214
|
} else if (isNonNullType(argType)) {
|
|
@@ -43261,7 +43261,7 @@ function getDirectiveValues(directiveDef, node, variableValues) {
|
|
|
43261
43261
|
}
|
|
43262
43262
|
}
|
|
43263
43263
|
|
|
43264
|
-
function hasOwnProperty$
|
|
43264
|
+
function hasOwnProperty$4(obj, prop) {
|
|
43265
43265
|
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
43266
43266
|
}
|
|
43267
43267
|
|
|
@@ -45779,7 +45779,7 @@ var useOneStore = {
|
|
|
45779
45779
|
* For full license text, see the LICENSE.txt file
|
|
45780
45780
|
*/
|
|
45781
45781
|
const { create: create$7, freeze: freeze$4, keys: keys$8, entries: entries$6 } = Object;
|
|
45782
|
-
const { hasOwnProperty: hasOwnProperty$
|
|
45782
|
+
const { hasOwnProperty: hasOwnProperty$3 } = Object.prototype;
|
|
45783
45783
|
const { isArray: isArray$7 } = Array;
|
|
45784
45784
|
const { stringify: stringify$9, parse: parse$9 } = JSON;
|
|
45785
45785
|
let Ok$4 = class Ok {
|
|
@@ -46161,7 +46161,7 @@ const MAX_STRING_LENGTH_PER_CHUNK = 10000;
|
|
|
46161
46161
|
const MAX_AGGREGATE_UI_CHUNK_LIMIT = 50;
|
|
46162
46162
|
function createOkResponse$1(body) {
|
|
46163
46163
|
return {
|
|
46164
|
-
status: HttpStatusCode$
|
|
46164
|
+
status: HttpStatusCode$2.Ok,
|
|
46165
46165
|
body,
|
|
46166
46166
|
statusText: 'ok',
|
|
46167
46167
|
headers: {},
|
|
@@ -46170,15 +46170,15 @@ function createOkResponse$1(body) {
|
|
|
46170
46170
|
}
|
|
46171
46171
|
function getErrorResponseText(status) {
|
|
46172
46172
|
switch (status) {
|
|
46173
|
-
case HttpStatusCode$
|
|
46173
|
+
case HttpStatusCode$2.Ok:
|
|
46174
46174
|
return 'OK';
|
|
46175
|
-
case HttpStatusCode$
|
|
46175
|
+
case HttpStatusCode$2.NotModified:
|
|
46176
46176
|
return 'Not Modified';
|
|
46177
|
-
case HttpStatusCode$
|
|
46177
|
+
case HttpStatusCode$2.NotFound:
|
|
46178
46178
|
return 'Not Found';
|
|
46179
|
-
case HttpStatusCode$
|
|
46179
|
+
case HttpStatusCode$2.BadRequest:
|
|
46180
46180
|
return 'Bad Request';
|
|
46181
|
-
case HttpStatusCode$
|
|
46181
|
+
case HttpStatusCode$2.ServerError:
|
|
46182
46182
|
return 'Server Error';
|
|
46183
46183
|
default:
|
|
46184
46184
|
return `Unexpected HTTP Status Code: ${status}`;
|
|
@@ -46230,14 +46230,14 @@ function dispatchSplitRecordAggregateUiAction(recordId, networkAdapter, resource
|
|
|
46230
46230
|
body.compositeResponse === undefined ||
|
|
46231
46231
|
body.compositeResponse.length === 0) {
|
|
46232
46232
|
// We shouldn't even get into this state - a 200 with no body?
|
|
46233
|
-
throw createErrorResponse(HttpStatusCode$
|
|
46233
|
+
throw createErrorResponse(HttpStatusCode$2.ServerError, {
|
|
46234
46234
|
error: 'No response body in executeAggregateUi found',
|
|
46235
46235
|
});
|
|
46236
46236
|
}
|
|
46237
46237
|
const merged = body.compositeResponse.reduce((seed, response) => {
|
|
46238
|
-
if (response.httpStatusCode !== HttpStatusCode$
|
|
46238
|
+
if (response.httpStatusCode !== HttpStatusCode$2.Ok) {
|
|
46239
46239
|
instrumentation$3.getRecordAggregateReject(() => recordId);
|
|
46240
|
-
throw createErrorResponse(HttpStatusCode$
|
|
46240
|
+
throw createErrorResponse(HttpStatusCode$2.ServerError, {
|
|
46241
46241
|
error: response.message,
|
|
46242
46242
|
});
|
|
46243
46243
|
}
|
|
@@ -46319,8 +46319,8 @@ const UIAPI_RECORDS_BATCH_PATH = `${UI_API_BASE_URI}/records/batch/`;
|
|
|
46319
46319
|
const QUERY_TOO_COMPLICATED_ERROR_CODE = 'QUERY_TOO_COMPLICATED';
|
|
46320
46320
|
function fetchResponseIsQueryTooComplicated(error) {
|
|
46321
46321
|
const { body } = error;
|
|
46322
|
-
if (error.status === HttpStatusCode$
|
|
46323
|
-
return (body.statusCode === HttpStatusCode$
|
|
46322
|
+
if (error.status === HttpStatusCode$2.BadRequest && body !== undefined) {
|
|
46323
|
+
return (body.statusCode === HttpStatusCode$2.BadRequest &&
|
|
46324
46324
|
body.errorCode === QUERY_TOO_COMPLICATED_ERROR_CODE);
|
|
46325
46325
|
}
|
|
46326
46326
|
return false;
|
|
@@ -47933,15 +47933,15 @@ class DraftFetchResponse {
|
|
|
47933
47933
|
get statusText() {
|
|
47934
47934
|
const { status } = this;
|
|
47935
47935
|
switch (status) {
|
|
47936
|
-
case HttpStatusCode$
|
|
47936
|
+
case HttpStatusCode$2.Ok:
|
|
47937
47937
|
return 'OK';
|
|
47938
|
-
case HttpStatusCode$
|
|
47938
|
+
case HttpStatusCode$2.Created:
|
|
47939
47939
|
return 'Created';
|
|
47940
|
-
case HttpStatusCode$
|
|
47940
|
+
case HttpStatusCode$2.NoContent:
|
|
47941
47941
|
return 'No Content';
|
|
47942
|
-
case HttpStatusCode$
|
|
47942
|
+
case HttpStatusCode$2.BadRequest:
|
|
47943
47943
|
return 'Bad Request';
|
|
47944
|
-
case HttpStatusCode$
|
|
47944
|
+
case HttpStatusCode$2.ServerError:
|
|
47945
47945
|
return 'Server Error';
|
|
47946
47946
|
default:
|
|
47947
47947
|
return `Unexpected HTTP Status Code: ${status}`;
|
|
@@ -47962,11 +47962,11 @@ class DraftErrorFetchResponse {
|
|
|
47962
47962
|
get statusText() {
|
|
47963
47963
|
const { status } = this;
|
|
47964
47964
|
switch (status) {
|
|
47965
|
-
case HttpStatusCode$
|
|
47965
|
+
case HttpStatusCode$2.BadRequest:
|
|
47966
47966
|
return 'Bad Request';
|
|
47967
|
-
case HttpStatusCode$
|
|
47967
|
+
case HttpStatusCode$2.ServerError:
|
|
47968
47968
|
return 'Server Error';
|
|
47969
|
-
case HttpStatusCode$
|
|
47969
|
+
case HttpStatusCode$2.NotFound:
|
|
47970
47970
|
return 'Not Found';
|
|
47971
47971
|
default:
|
|
47972
47972
|
return `Unexpected HTTP Status Code: ${status}`;
|
|
@@ -47974,13 +47974,13 @@ class DraftErrorFetchResponse {
|
|
|
47974
47974
|
}
|
|
47975
47975
|
}
|
|
47976
47976
|
function createOkResponse(body) {
|
|
47977
|
-
return new DraftFetchResponse(HttpStatusCode$
|
|
47977
|
+
return new DraftFetchResponse(HttpStatusCode$2.Ok, body);
|
|
47978
47978
|
}
|
|
47979
47979
|
function createBadRequestResponse(body) {
|
|
47980
|
-
return new DraftErrorFetchResponse(HttpStatusCode$
|
|
47980
|
+
return new DraftErrorFetchResponse(HttpStatusCode$2.BadRequest, body);
|
|
47981
47981
|
}
|
|
47982
47982
|
function createNotFoundResponse(body) {
|
|
47983
|
-
return new DraftErrorFetchResponse(HttpStatusCode$
|
|
47983
|
+
return new DraftErrorFetchResponse(HttpStatusCode$2.NotFound, body);
|
|
47984
47984
|
}
|
|
47985
47985
|
function transformErrorToDraftSynthesisError(error) {
|
|
47986
47986
|
if (isDraftSynthesisError(error)) {
|
|
@@ -47997,7 +47997,7 @@ function createDraftSynthesisErrorResponse(message = 'failed to synthesize draft
|
|
|
47997
47997
|
if (errorType !== undefined) {
|
|
47998
47998
|
error.errorType = errorType;
|
|
47999
47999
|
}
|
|
48000
|
-
return new DraftErrorFetchResponse(HttpStatusCode$
|
|
48000
|
+
return new DraftErrorFetchResponse(HttpStatusCode$2.BadRequest, error);
|
|
48001
48001
|
}
|
|
48002
48002
|
|
|
48003
48003
|
/**
|
|
@@ -49288,7 +49288,7 @@ function buildAdapterValidationConfig$2(displayName, paramsMeta) {
|
|
|
49288
49288
|
const keyPrefix$2 = 'UiApi';
|
|
49289
49289
|
|
|
49290
49290
|
const { assign: assign$2, create: create$3$1, entries: entries$3, freeze: freeze$1$1, isFrozen: isFrozen$2, keys: keys$3$1, values: values$1 } = Object;
|
|
49291
|
-
const { hasOwnProperty: hasOwnProperty$
|
|
49291
|
+
const { hasOwnProperty: hasOwnProperty$2 } = Object.prototype;
|
|
49292
49292
|
const { split, endsWith } = String.prototype;
|
|
49293
49293
|
const { from: from$1, isArray: isArray$3$1 } = Array;
|
|
49294
49294
|
const { concat: concat$2, filter: filter$2, includes: includes$2, push: push$1$1, reduce: reduce$2, shift, slice: slice$1 } = Array.prototype;
|
|
@@ -51410,20 +51410,20 @@ function unionFields(fields, optionalFields) {
|
|
|
51410
51410
|
return [...fieldsArray, ...optionalFieldsArray];
|
|
51411
51411
|
}
|
|
51412
51412
|
function getRecordIdsFromUrlParams(urlParams) {
|
|
51413
|
-
if (hasOwnProperty$
|
|
51413
|
+
if (hasOwnProperty$2.call(urlParams, 'recordId')) {
|
|
51414
51414
|
return [urlParams.recordId];
|
|
51415
51415
|
}
|
|
51416
|
-
else if (hasOwnProperty$
|
|
51416
|
+
else if (hasOwnProperty$2.call(urlParams, 'recordIds')) {
|
|
51417
51417
|
return urlParams.recordIds;
|
|
51418
51418
|
}
|
|
51419
51419
|
return [];
|
|
51420
51420
|
}
|
|
51421
51421
|
function isSingleBatchRecordRequest(urlParams) {
|
|
51422
|
-
return (hasOwnProperty$
|
|
51422
|
+
return (hasOwnProperty$2.call(urlParams, 'recordIds') &&
|
|
51423
51423
|
urlParams.recordIds.length === 1);
|
|
51424
51424
|
}
|
|
51425
51425
|
function isSingleRecordRequest(urlParams) {
|
|
51426
|
-
return hasOwnProperty$
|
|
51426
|
+
return hasOwnProperty$2.call(urlParams, 'recordId');
|
|
51427
51427
|
}
|
|
51428
51428
|
function isRestrictedPathCondition(existingPath, path) {
|
|
51429
51429
|
// should not dedupe getRecordUi and getRecord as both of their representation is different
|
|
@@ -55946,7 +55946,7 @@ function getLayoutMapAndObjectInfo(recordId, data) {
|
|
|
55946
55946
|
// W-12697744 - Return an empty layoutMap if the entity does not have a layout.
|
|
55947
55947
|
// Temp fix until we can mimic the server behavior for non-layoutable entities.
|
|
55948
55948
|
let layoutMap = {};
|
|
55949
|
-
if (hasOwnProperty$
|
|
55949
|
+
if (hasOwnProperty$2.call(layouts, apiName)) {
|
|
55950
55950
|
layoutMap = layouts[apiName][recordTypeId] || {};
|
|
55951
55951
|
}
|
|
55952
55952
|
return {
|
|
@@ -79941,7 +79941,7 @@ class AbstractResourceRequestActionHandler {
|
|
|
79941
79941
|
retryDelayInMs = getRetryAfterInMs(response.headers);
|
|
79942
79942
|
shouldRetry = true;
|
|
79943
79943
|
break;
|
|
79944
|
-
case HttpStatusCode$
|
|
79944
|
+
case HttpStatusCode$2.ServerError: {
|
|
79945
79945
|
shouldRetry = true;
|
|
79946
79946
|
if (this.handleIdempotencyServerError(response.body, updatedAction, false, ERROR_CODE_IDEMPOTENCY_BACKEND_OPERATION_ERROR)) {
|
|
79947
79947
|
this.isIdempotencySupported = false;
|
|
@@ -79964,7 +79964,7 @@ class AbstractResourceRequestActionHandler {
|
|
|
79964
79964
|
}
|
|
79965
79965
|
break;
|
|
79966
79966
|
}
|
|
79967
|
-
case HttpStatusCode$
|
|
79967
|
+
case HttpStatusCode$2.BadRequest: {
|
|
79968
79968
|
if (this.handleIdempotencyServerError(response.body, updatedAction, false, ERROR_CODE_IDEMPOTENCY_FEATURE_NOT_ENABLED, ERROR_CODE_IDEMPOTENCY_NOT_SUPPORTED)) {
|
|
79969
79969
|
retryDelayInMs = 0;
|
|
79970
79970
|
actionDataChanged = true;
|
|
@@ -79982,13 +79982,13 @@ class AbstractResourceRequestActionHandler {
|
|
|
79982
79982
|
}
|
|
79983
79983
|
}
|
|
79984
79984
|
}
|
|
79985
|
-
if (response.status === HttpStatusCode$
|
|
79985
|
+
if (response.status === HttpStatusCode$2.BadRequest &&
|
|
79986
79986
|
this.hasIdempotencySupport() &&
|
|
79987
79987
|
updatedAction.data.headers[HTTP_HEADER_IDEMPOTENCY_KEY] !== undefined) {
|
|
79988
79988
|
updatedAction.data.headers[HTTP_HEADER_IDEMPOTENCY_KEY] = uuidv4();
|
|
79989
79989
|
actionDataChanged = true;
|
|
79990
79990
|
}
|
|
79991
|
-
if (response.status === HttpStatusCode$
|
|
79991
|
+
if (response.status === HttpStatusCode$2.BadRequest &&
|
|
79992
79992
|
this.isBackdatingError(response.body, action)) {
|
|
79993
79993
|
updatedAction.timestamp = Date.now();
|
|
79994
79994
|
updatedAction.data.body.fields = {
|
|
@@ -85676,7 +85676,7 @@ function isRecordType(type) {
|
|
|
85676
85676
|
return Boolean(interfaces.find((iface) => iface.name === 'Record'));
|
|
85677
85677
|
}
|
|
85678
85678
|
|
|
85679
|
-
var uiapiSchemaString = "scalar String\nscalar DateTime\nscalar Currency\nscalar ID\nscalar Boolean\nscalar Longitude\nscalar Float\nscalar MultiPicklist\nscalar Base64\nscalar Url\nscalar PhoneNumber\nscalar Email\nscalar TextArea\nscalar Latitude\nscalar Picklist\nscalar RichTextArea\nscalar EncryptedString\nscalar Double\nscalar Long\nscalar JSON\nscalar Time\nscalar Int\nscalar Percent\nscalar LongTextArea\nscalar IdOrRef\nscalar Date\ntype PercentAggregate implements FieldValue {\n value: Percent\n displayValue: String\n avg: DoubleValue\n count: LongValue\n countDistinct: LongValue\n format: String\n max: PercentValue\n min: PercentValue\n sum: PercentValue\n}\n\ntype StringAggregate implements FieldValue {\n value: String\n displayValue: String\n count: LongValue\n countDistinct: LongValue\n grouping: IntValue\n label: String\n max: StringValue\n min: StringValue\n}\n\ntype Query {\n uiapi: UIAPI!\n analytics: Analytics__Analytics! @fieldCategory\n setup: Setup__Setup! @fieldCategory\n}\n\ninput EmailOperators {\n eq: Email\n ne: Email\n like: Email\n lt: Email\n gt: Email\n lte: Email\n gte: Email\n in: [Email]\n nin: [Email]\n}\n\ninput PolymorphicParentRelationshipRecordOrderBy @generic {\n RecordOrderBy: RecordOrderBy @fieldCategory\n}\n\ninput DoubleOperators {\n eq: Double\n ne: Double\n lt: Double\n gt: Double\n lte: Double\n gte: Double\n in: [Double]\n nin: [Double]\n}\n\ntype DateOnlyAggregation {\n value: Date\n format: String\n}\n\ntype RecordCreatePayload @generic {\n Record: RecordRepresentation\n}\n\ntype DateAggregate implements FieldValue {\n value: Date\n displayValue: String\n calendarMonth: DateFunctionAggregation\n calendarQuarter: DateFunctionAggregation\n calendarYear: DateFunctionAggregation\n count: LongValue\n countDistinct: LongValue\n dayInMonth: DateFunctionAggregation\n dayInWeek: DateFunctionAggregation\n dayInYear: DateFunctionAggregation\n fiscalMonth: DateFunctionAggregation\n fiscalQuarter: DateFunctionAggregation\n fiscalYear: DateFunctionAggregation\n format: String\n grouping: IntValue\n max: DateValue\n min: DateValue\n weekInMonth: DateFunctionAggregation\n weekInYear: DateFunctionAggregation\n}\n\ninput PolymorphicParentRelationshipGroupBy @generic {\n RecordGroupBy: RecordGroupBy @fieldCategory\n}\n\nenum GroupByFunction {\n DAY_IN_WEEK\n DAY_IN_MONTH\n DAY_IN_YEAR\n WEEK_IN_MONTH\n WEEK_IN_YEAR\n CALENDAR_MONTH\n CALENDAR_QUARTER\n CALENDAR_YEAR\n FISCAL_MONTH\n FISCAL_QUARTER\n FISCAL_YEAR\n DAY_ONLY\n HOUR_IN_DAY\n}\n\ntype RecordTypeInfo {\n available: Boolean!\n defaultRecordTypeMapping: Boolean!\n master: Boolean!\n name: String\n recordTypeId: ID\n}\n\ninput UIAPIMutationsInput {\n allOrNone: Boolean = true\n}\n\ntype BooleanValue implements FieldValue {\n value: Boolean\n displayValue: String\n}\n\ntype ReferenceToInfo {\n ApiName: String!\n nameFields: [String]!\n objectInfo: ObjectInfo\n}\n\ninterface FieldValue {\n displayValue: String\n}\n\ntype LongitudeValue implements FieldValue {\n value: Longitude\n displayValue: String\n}\n\ntype StringValue implements FieldValue {\n value: String\n displayValue: String\n label: String\n}\n\ntype IntValue implements FieldValue {\n value: Int\n displayValue: String\n format: String\n}\n\ntype UrlValue implements FieldValue {\n value: Url\n displayValue: String\n}\n\ninput IdOperators {\n eq: ID\n ne: ID\n lt: ID\n gt: ID\n lte: ID\n gte: ID\n in: [ID]\n nin: [ID]\n inq: JoinInput\n ninq: JoinInput\n}\n\ninput Setup__SetupOrderBy @generic {\n orderableField: OrderByClause @fieldCategory\n orderableGeolocationField: OrderByGeolocationClause @fieldCategory\n orderableParentRelationship: Setup__SetupOrderBy @fieldCategory\n orderablePolymorphicParentRelationship: Setup__SetupPolymorphicParentRelationshipRecordOrderBy @fieldCategory\n}\n\ntype LongAggregate implements FieldValue {\n value: Long\n displayValue: String\n avg: DoubleValue\n count: LongValue\n countDistinct: LongValue\n format: String\n grouping: IntValue\n max: LongValue\n min: LongValue\n sum: LongValue\n}\n\ntype PhoneNumberAggregate implements FieldValue {\n value: PhoneNumber\n displayValue: String\n count: LongValue\n countDistinct: LongValue\n grouping: IntValue\n max: PhoneNumberValue\n min: PhoneNumberValue\n}\n\ninput TimeOperators {\n eq: Time\n ne: Time\n lt: Time\n gt: Time\n lte: Time\n gte: Time\n in: [Time]\n nin: [Time]\n}\n\ntype PicklistValue implements FieldValue {\n value: Picklist\n displayValue: String\n label: String\n}\n\ntype CurrencyAggregate implements FieldValue {\n value: Currency\n displayValue: String\n avg: DoubleValue\n count: LongValue\n countDistinct: LongValue\n format: String\n max: CurrencyValue\n min: CurrencyValue\n sum: CurrencyValue\n}\n\ntype RelatedListInfo {\n childApiName: String!\n relatedListName: String!\n label: String!\n displayColumns: [ListColumn!]!\n orderedByInfo: [ListOrder!]!\n parentApiName: String!\n fieldApiName: String!\n}\n\ninput StringOperators {\n eq: String\n ne: String\n like: String\n lt: String\n gt: String\n lte: String\n gte: String\n in: [String]\n nin: [String]\n}\n\ntype UIAPI {\n query: RecordQuery!\n aggregate: RecordQueryAggregate!\n objectInfos(apiNames: [String], locale: String): [ObjectInfo]\n relatedListByName(parentApiName: String!, relatedListName: String!): RelatedListInfo\n}\n\ninput MultiPicklistOperators {\n eq: MultiPicklist\n ne: MultiPicklist\n includes: [MultiPicklist]\n excludes: [MultiPicklist]\n}\n\ntype DateTimeAggregate implements FieldValue {\n value: DateTime\n displayValue: String\n calendarMonth: DateFunctionAggregation\n calendarQuarter: DateFunctionAggregation\n calendarYear: DateFunctionAggregation\n count: LongValue\n countDistinct: LongValue\n dayInMonth: DateFunctionAggregation\n dayInWeek: DateFunctionAggregation\n dayInYear: DateFunctionAggregation\n dayOnly: DateOnlyAggregation\n fiscalMonth: DateFunctionAggregation\n fiscalQuarter: DateFunctionAggregation\n fiscalYear: DateFunctionAggregation\n format: String\n hourInDay: DateFunctionAggregation\n max: DateTimeValue\n min: DateTimeValue\n weekInMonth: DateFunctionAggregation\n weekInYear: DateFunctionAggregation\n}\n\ninput BooleanOperators {\n eq: Boolean\n ne: Boolean\n}\n\ntype EmailAggregate implements FieldValue {\n value: Email\n displayValue: String\n count: LongValue\n countDistinct: LongValue\n grouping: IntValue\n max: EmailValue\n min: EmailValue\n}\n\n#enum OrderByType {\n#}\n\ninput GroupByDateFunction {\n function: GroupByFunction\n}\n\ntype RichTextAreaValue implements FieldValue {\n value: RichTextArea\n displayValue: String\n}\n\ntype MultiPicklistValue implements FieldValue {\n value: MultiPicklist\n displayValue: String\n label: String\n}\n\ntype Setup__SetupEdge @generic {\n node: Setup__EntityRepresentation\n cursor: String!\n}\n\ninput DatePrimitiveOperators {\n eq: Date\n ne: Date\n lt: Date\n gt: Date\n lte: Date\n gte: Date\n in: [Date]\n nin: [Date]\n}\n\ntype TimeAggregate implements FieldValue {\n value: Time\n displayValue: String\n format: String\n hourInDay: DateFunctionAggregation\n}\n\ntype __Type {\n kind: __TypeKind!\n name: String\n description: String\n fields(includeDeprecated: Boolean = false): [__Field!]\n interfaces: [__Type!]\n possibleTypes: [__Type!]\n enumValues(includeDeprecated: Boolean = false): [__EnumValue!]\n inputFields: [__InputValue!]\n ofType: __Type\n}\n\ntype ListColumn {\n fieldApiName: String!\n label: String!\n lookupId: String\n sortable: Boolean\n}\n\ntype Setup__SetupQuery {\n # scope should be RecordScope, but it is an empty enum\n recordQuery(after: String, first: Int, orderBy: Setup__SetupOrderBy, scope: String @fieldCategory, upperBound: Int, where: Setup__SetupFilter): Setup__SetupConnection @fieldCategory\n}\n\ntype Setup__SetupQueryAggregate {\n recordQueryAggregate(after: String, first: Int, groupBy: Setup__SetupGroupBy, orderBy: Setup__SetupAggregateOrderBy, scope: String @fieldCategory, upperBound: Int, where: Setup__SetupFilter): Setup__SetupAggregateConnection @fieldCategory\n}\n\ntype Setup__SetupRecordAggregate @generic {\n ApiName: String!\n BooleanAggregate: BooleanAggregate @fieldCategory\n CurrencyAggregate: CurrencyAggregate @fieldCategory\n DateAggregate: DateAggregate @fieldCategory\n DoubleAggregate: DoubleAggregate @fieldCategory\n EmailAggregate: EmailAggregate @fieldCategory\n IDAggregate: IDAggregate @fieldCategory\n IntAggregate: IntAggregate @fieldCategory\n LatitudeAggregate: LatitudeAggregate @fieldCategory\n LongAggregate: LongAggregate @fieldCategory\n LongitudeAggregate: LongitudeAggregate @fieldCategory\n PercentAggregate: PercentAggregate @fieldCategory\n PhoneNumberAggregate: PhoneNumberAggregate @fieldCategory\n PicklistAggregate: PicklistAggregate @fieldCategory\n StringAggregate: StringAggregate @fieldCategory\n TextAreaAggregate: TextAreaAggregate @fieldCategory\n TimeAggregate: TimeAggregate @fieldCategory\n UrlAggregate: UrlAggregate @fieldCategory\n parentRelationship: Setup__SetupRecordAggregate @fieldCategory\n polymorphicParentRelationship: Setup__SetupPolymorphicAggregateParentRelationship @fieldCategory\n}\n\ntype Setup__SetupRecordResult @generic {\n aggregate: Setup__SetupRecordAggregate\n}\n\ntype SObject__Field {\n name: String!\n value: String\n}\n\nenum SObject__FieldType {\n ALL\n CUSTOM\n STANDARD\n}\n\ntype Setup__EntityRepresentation @generic {\n Id: ID!\n ApiName: String!\n IntValue: IntValue @fieldCategory\n StringValue: StringValue @fieldCategory\n BooleanValue: BooleanValue @fieldCategory\n IDValue: IDValue @fieldCategory\n DateTimeValue: DateTimeValue @fieldCategory\n TimeValue: TimeValue @fieldCategory\n DateValue: DateValue @fieldCategory\n TextAreaValue: TextAreaValue @fieldCategory\n LongTextAreaValue: LongTextAreaValue @fieldCategory\n RichTextAreaValue: RichTextAreaValue @fieldCategory\n PhoneNumberValue: PhoneNumberValue @fieldCategory\n EmailValue: EmailValue @fieldCategory\n UrlValue: UrlValue @fieldCategory\n EncryptedStringValue: EncryptedStringValue @fieldCategory\n Entity__fields(type: SObject__FieldType): [SObject__Field]!\n CurrencyValue: CurrencyValue @fieldCategory\n LongitudeValue: LongitudeValue @fieldCategory\n LatitudeValue: LatitudeValue @fieldCategory\n PicklistValue: PicklistValue @fieldCategory\n MultiPicklistValue: MultiPicklistValue @fieldCategory\n LongValue: LongValue @fieldCategory\n DoubleValue: DoubleValue @fieldCategory\n PercentValue: PercentValue @fieldCategory\n Base64Value: Base64Value @fieldCategory\n JSONValue: JSONValue @fieldCategory\n parentRelationship: Setup__EntityRepresentation @fieldCategory\n polymorphicParentRelationship: Setup__SetupPolymorphicParentRelationship @fieldCategory\n childRelationship(first: Int, after: String, where: Setup__SetupFilter, orderBy: Setup__SetupOrderBy, upperBound: Int): Setup__SetupConnection @fieldCategory\n CompoundField: CompoundField @fieldCategory\n AnyType: AnyType @fieldCategory\n}\n\ntype LatitudeAggregate implements FieldValue {\n value: Latitude\n displayValue: String\n avg: DoubleValue\n count: LongValue\n countDistinct: LongValue\n max: LatitudeValue\n min: LatitudeValue\n sum: DoubleValue\n}\n\ninput CurrencyOperators {\n eq: Currency\n ne: Currency\n lt: Currency\n gt: Currency\n lte: Currency\n gte: Currency\n in: [Currency]\n nin: [Currency]\n}\n\ninput DistanceInput {\n latitude: Latitude!\n longitude: Longitude!\n}\n\nunion PolymorphicAggregateParentRelationship @generic = RecordAggregate\n\nunion PolymorphicParentRelationship @generic = RecordRepresentation\n\nenum AggregateOrderByNumberFunction {\n AVG\n COUNT\n COUNT_DISTINCT\n MAX\n MIN\n SUM\n}\n\ntype LongTextAreaValue implements FieldValue {\n value: LongTextArea\n displayValue: String\n}\n\ntype LatitudeValue implements FieldValue {\n value: Latitude\n displayValue: String\n}\n\ninput OrderByClause {\n order: ResultOrder\n nulls: NullOrder\n}\n\ninput GroupByClause {\n group: Boolean\n}\n\ntype RecordAggregateConnection @generic {\n edges: [RecordAggregateEdge]\n pageInfo: PageInfo!\n totalCount: Int!\n}\n\ntype LongitudeAggregate implements FieldValue {\n value: Longitude\n displayValue: String\n avg: DoubleValue\n count: LongValue\n countDistinct: LongValue\n max: LongitudeValue\n min: LongitudeValue\n sum: DoubleValue\n}\n\ntype RecordEdge @generic {\n node: RecordRepresentation\n cursor: String!\n}\n\nunion Setup__SetupPolymorphicParentRelationship @generic = Setup__EntityRepresentation\n\ntype DateValue implements FieldValue {\n value: Date\n displayValue: String\n format: String\n}\n\ninput URLOperators {\n eq: Url\n ne: Url\n like: Url\n lt: Url\n gt: Url\n lte: Url\n gte: Url\n in: [Url]\n nin: [Url]\n}\n\ninput LongOperators {\n eq: Long\n ne: Long\n lt: Long\n gt: Long\n lte: Long\n gte: Long\n in: [Long]\n nin: [Long]\n}\n\nenum DataType {\n STRING\n TEXTAREA\n PHONE\n EMAIL\n URL\n ENCRYPTEDSTRING\n BOOLEAN\n CURRENCY\n INT\n LONG\n DOUBLE\n PERCENT\n DATETIME\n TIME\n DATE\n REFERENCE\n PICKLIST\n MULTIPICKLIST\n ADDRESS\n LOCATION\n BASE64\n COMPLEXVALUE\n COMBOBOX\n JSON\n JUNCTIONIDLIST\n ANYTYPE\n}\n\nenum NullOrder {\n FIRST\n LAST\n}\n\ntype PhoneNumberValue implements FieldValue {\n value: PhoneNumber\n displayValue: String\n}\n\n# Cannot have empty enum\n# enum RecordScope @generic {\n# }\n\ninput Setup__SetupFilter @generic {\n and: [Setup__SetupFilter]\n or: [Setup__SetupFilter]\n not: Setup__SetupFilter\n parentRelationshipRecordFilter: Setup__SetupFilter @fieldCategory\n polymorphicParentRelationshipRecordFilter: Setup__SetupPolymorphicParentRelationshipRecordFilter @fieldCategory\n IntegerOperator: IntegerOperators @fieldCategory\n LongOperator: LongOperators @fieldCategory\n StringOperator: StringOperators @fieldCategory\n DoubleOperator: DoubleOperators @fieldCategory\n PercentOperator: PercentOperators @fieldCategory\n LongitudeOperator: LongitudeOperators @fieldCategory\n LatitudeOperator: LatitudeOperators @fieldCategory\n EmailOperator: EmailOperators @fieldCategory\n TextAreaOperator: TextAreaOperators @fieldCategory\n LongTextAreaOperator: LongTextAreaOperators @fieldCategory\n URLOperator: URLOperators @fieldCategory\n PhoneNumberOperator: PhoneNumberOperators @fieldCategory\n BooleanOperator: BooleanOperators @fieldCategory\n Setup__IdOperator: Setup__IdOperators @fieldCategory\n CurrencyOperator: CurrencyOperators @fieldCategory\n TimeOperator: TimeOperators @fieldCategory\n DateOperator: DateOperators @fieldCategory\n DateTimeOperator: DateTimeOperators @fieldCategory\n PicklistOperator: PicklistOperators @fieldCategory\n MultiPicklistOperator: MultiPicklistOperators @fieldCategory\n GeolocationOperator: GeolocationOperators @fieldCategory\n}\n\ntype DoubleAggregate implements FieldValue {\n value: Double\n displayValue: String\n avg: DoubleValue\n count: LongValue\n countDistinct: LongValue\n format: String\n max: DoubleValue\n min: DoubleValue\n sum: DoubleValue\n}\n\ntype __Field {\n name: String!\n description: String\n args: [__InputValue!]!\n type: __Type!\n isDeprecated: Boolean!\n deprecationReason: String\n}\n\ninput DateOperators {\n eq: DateInput\n ne: DateInput\n lt: DateInput\n gt: DateInput\n lte: DateInput\n gte: DateInput\n in: [DateInput]\n nin: [DateInput]\n DAY_IN_WEEK: DateFunctionInput\n DAY_IN_MONTH: DateFunctionInput\n DAY_IN_YEAR: DateFunctionInput\n WEEK_IN_MONTH: DateFunctionInput\n WEEK_IN_YEAR: DateFunctionInput\n CALENDAR_MONTH: DateFunctionInput\n CALENDAR_QUARTER: DateFunctionInput\n CALENDAR_YEAR: DateFunctionInput\n FISCAL_MONTH: DateFunctionInput\n FISCAL_QUARTER: DateFunctionInput\n FISCAL_YEAR: DateFunctionInput\n}\n\ninput GeolocationInput {\n latitude: Latitude!\n longitude: Longitude!\n radius: Float!\n unit: Unit!\n}\n\ninput JoinInput {\n Record: RecordFilter @fieldCategory\n ApiName: String\n}\n\ninput TextAreaOperators {\n eq: TextArea\n ne: TextArea\n like: TextArea\n lt: TextArea\n gt: TextArea\n lte: TextArea\n gte: TextArea\n in: [TextArea]\n nin: [TextArea]\n}\n\ntype TextAreaValue implements FieldValue {\n value: TextArea\n displayValue: String\n}\n\ntype RecordUpdatePayload @generic {\n success: Boolean\n}\n\ninput PercentOperators {\n eq: Percent\n ne: Percent\n lt: Percent\n gt: Percent\n lte: Percent\n gte: Percent\n in: [Percent]\n nin: [Percent]\n}\n\ninput Setup__SetupPolymorphicParentRelationshipRecordOrderBy @generic {\n Setup__SetupOrderBy: Setup__SetupOrderBy @fieldCategory\n}\n\ntype DoubleValue implements FieldValue {\n value: Double\n displayValue: String\n format: String\n}\n\ntype IDAggregate implements FieldValue {\n value: ID\n displayValue: String\n count: LongValue\n countDistinct: LongValue\n grouping: IntValue\n max: IDValue\n min: IDValue\n}\n\ntype __InputValue {\n name: String!\n description: String\n type: __Type!\n defaultValue: String\n}\n\ntype RecordAggregateEdge @generic {\n node: RecordResult\n cursor: String!\n}\n\ntype __Directive {\n name: String\n description: String\n locations: [__DirectiveLocation!]\n args: [__InputValue!]!\n}\n\ninput RecordCreateInput @generic {\n record: RecordCreateRepresentation! @fieldCategory\n}\n\ntype ThemeInfo {\n color: String\n iconUrl: String\n}\n\ninput AggregateOrderByStringClause {\n function: AggregateOrderByStringFunction\n order: ResultsOrder\n nulls: NullsOrder\n}\n\ntype RecordDeletePayload {\n Id: ID\n}\n\ntype UrlAggregate implements FieldValue {\n value: Url\n displayValue: String\n count: LongValue\n countDistinct: LongValue\n grouping: IntValue\n max: UrlValue\n min: UrlValue\n}\n\nenum DateLiteral {\n LAST_YEAR\n LAST_WEEK\n THIS_QUARTER\n NEXT_FISCAL_YEAR\n LAST_QUARTER\n TOMORROW\n NEXT_FISCAL_QUARTER\n YESTERDAY\n NEXT_QUARTER\n THIS_FISCAL_QUARTER\n THIS_WEEK\n LAST_MONTH\n LAST_90_DAYS\n NEXT_90_DAYS\n THIS_FISCAL_YEAR\n NEXT_WEEK\n TODAY\n NEXT_YEAR\n NEXT_MONTH\n LAST_FISCAL_QUARTER\n THIS_MONTH\n LAST_FISCAL_YEAR\n THIS_YEAR\n}\n\ntype __EnumValue {\n name: String!\n description: String\n isDeprecated: Boolean!\n deprecationReason: String\n}\n\ntype RecordRepresentation implements Record @generic {\n Id: ID!\n ApiName: String!\n WeakEtag: Long!\n DisplayValue: String\n LastModifiedById: IDValue\n LastModifiedDate: DateTimeValue\n SystemModstamp: DateTimeValue\n RecordTypeId(fallback: Boolean): IDValue\n IntValue: IntValue @fieldCategory\n StringValue: StringValue @fieldCategory\n BooleanValue: BooleanValue @fieldCategory\n IDValue: IDValue @fieldCategory\n DateTimeValue: DateTimeValue @fieldCategory\n TimeValue: TimeValue @fieldCategory\n DateValue: DateValue @fieldCategory\n TextAreaValue: TextAreaValue @fieldCategory\n LongTextAreaValue: LongTextAreaValue @fieldCategory\n RichTextAreaValue: RichTextAreaValue @fieldCategory\n PhoneNumberValue: PhoneNumberValue @fieldCategory\n EmailValue: EmailValue @fieldCategory\n UrlValue: UrlValue @fieldCategory\n EncryptedStringValue: EncryptedStringValue @fieldCategory\n CurrencyValue: CurrencyValue @fieldCategory\n LongitudeValue: LongitudeValue @fieldCategory\n LatitudeValue: LatitudeValue @fieldCategory\n PicklistValue: PicklistValue @fieldCategory\n MultiPicklistValue: MultiPicklistValue @fieldCategory\n LongValue: LongValue @fieldCategory\n DoubleValue: DoubleValue @fieldCategory\n PercentValue: PercentValue @fieldCategory\n Base64Value: Base64Value @fieldCategory\n JSONValue: JSONValue @fieldCategory\n parentRelationship: RecordRepresentation @fieldCategory\n polymorphicParentRelationship: PolymorphicParentRelationship @fieldCategory\n childRelationship(first: Int, after: String, where: RecordFilter, orderBy: RecordOrderBy, upperBound: Int): RecordConnection @fieldCategory\n CompoundField: CompoundField @fieldCategory\n AnyType: AnyType @fieldCategory\n}\n\nunion AnyType = BooleanValue | DateValue | DateTimeValue | DoubleValue | StringValue\n\ntype IDValue implements FieldValue {\n value: ID\n displayValue: String\n}\n\nenum Unit {\n MI\n KM\n}\n\ninput PolymorphicParentRelationshipOrderBy @generic {\n RecordAggregateOrderBy: RecordAggregateOrderBy @fieldCategory\n}\n\ninput OrderByGeolocationClause {\n distance: DistanceInput\n order: ResultOrder\n nulls: NullOrder\n}\n\ninput Setup__IdOperators {\n eq: ID\n ne: ID\n lt: ID\n gt: ID\n lte: ID\n gte: ID\n in: [ID]\n nin: [ID]\n inq: Setup__JoinInput\n ninq: Setup__JoinInput\n}\n\nenum NullsOrder {\n FIRST\n LAST\n}\n\ntype TextAreaAggregate implements FieldValue {\n value: TextArea\n displayValue: String\n count: LongValue\n countDistinct: LongValue\n grouping: IntValue\n max: TextAreaValue\n min: TextAreaValue\n}\n\nenum GroupByType {\n GROUP_BY\n ROLLUP\n CUBE\n}\n\nenum ResultOrder {\n ASC\n DESC\n}\n\ninput RecordOrderBy @generic {\n orderableField: OrderByClause @fieldCategory\n orderableGeolocationField: OrderByGeolocationClause @fieldCategory\n orderableParentRelationship: RecordOrderBy @fieldCategory\n orderablePolymorphicParentRelationship: PolymorphicParentRelationshipRecordOrderBy @fieldCategory\n}\n\ninput Setup__JoinInput {\n Record: Setup__SetupFilter @fieldCategory\n ApiName: String\n}\n\ninput PicklistOperators {\n eq: Picklist\n ne: Picklist\n in: [Picklist]\n nin: [Picklist]\n like: Picklist\n lt: Picklist\n gt: Picklist\n lte: Picklist\n gte: Picklist\n}\n\nenum ResultsOrder {\n ASC\n DESC\n}\n\ninput RecordFilter @generic {\n and: [RecordFilter]\n or: [RecordFilter]\n not: RecordFilter\n parentRelationshipRecordFilter: RecordFilter @fieldCategory\n polymorphicParentRelationshipRecordFilter: PolymorphicParentRelationshipRecordFilter @fieldCategory\n IntegerOperator: IntegerOperators @fieldCategory\n LongOperator: LongOperators @fieldCategory\n StringOperator: StringOperators @fieldCategory\n DoubleOperator: DoubleOperators @fieldCategory\n PercentOperator: PercentOperators @fieldCategory\n LongitudeOperator: LongitudeOperators @fieldCategory\n LatitudeOperator: LatitudeOperators @fieldCategory\n EmailOperator: EmailOperators @fieldCategory\n TextAreaOperator: TextAreaOperators @fieldCategory\n LongTextAreaOperator: LongTextAreaOperators @fieldCategory\n URLOperator: URLOperators @fieldCategory\n PhoneNumberOperator: PhoneNumberOperators @fieldCategory\n BooleanOperator: BooleanOperators @fieldCategory\n IdOperator: IdOperators @fieldCategory\n CurrencyOperator: CurrencyOperators @fieldCategory\n TimeOperator: TimeOperators @fieldCategory\n DateOperator: DateOperators @fieldCategory\n DateTimeOperator: DateTimeOperators @fieldCategory\n PicklistOperator: PicklistOperators @fieldCategory\n MultiPicklistOperator: MultiPicklistOperators @fieldCategory\n GeolocationOperator: GeolocationOperators @fieldCategory\n}\n\ntype TimeValue implements FieldValue {\n value: Time\n displayValue: String\n format: String\n}\n\ninput GeolocationOperators {\n lt: GeolocationInput\n gt: GeolocationInput\n}\n\ntype PicklistAggregate implements FieldValue {\n value: Picklist\n displayValue: String\n count: LongValue\n countDistinct: LongValue\n grouping: IntValue\n label: String\n max: PicklistValue\n min: PicklistValue\n}\n\ninput LatitudeOperators {\n eq: Latitude\n ne: Latitude\n lt: Latitude\n gt: Latitude\n lte: Latitude\n gte: Latitude\n in: [Latitude]\n nin: [Latitude]\n}\n\ninput RecordUpdateRepresentation @generic {\n Int: Int @fieldCategory\n String: String @fieldCategory\n Boolean: Boolean @fieldCategory\n ID: IdOrRef @fieldCategory\n DateTime: DateTime @fieldCategory\n Time: Time @fieldCategory\n Date: Date @fieldCategory\n TextArea: TextArea @fieldCategory\n LongTextArea: LongTextArea @fieldCategory\n RichTextArea: RichTextArea @fieldCategory\n PhoneNumber: PhoneNumber @fieldCategory\n Email: Email @fieldCategory\n Url: Url @fieldCategory\n EncryptedString: EncryptedString @fieldCategory\n Currency: Currency @fieldCategory\n Longitude: Longitude @fieldCategory\n Latitude: Latitude @fieldCategory\n Picklist: Picklist @fieldCategory\n MultiPicklist: MultiPicklist @fieldCategory\n Long: Long @fieldCategory\n Double: Double @fieldCategory\n Percent: Percent @fieldCategory\n Base64: Base64 @fieldCategory\n JSON: JSON @fieldCategory\n}\n\ntype DateTimeValue implements FieldValue {\n value: DateTime\n displayValue: String\n format: String\n}\n\ninput RecordDeleteInput {\n Id: IdOrRef!\n}\n\nenum __DirectiveLocation {\n QUERY\n MUTATION\n FIELD\n FRAGMENT_DEFINITION\n FRAGMENT_SPREAD\n INLINE_FRAGMENT\n SCHEMA\n SCALAR\n OBJECT\n FIELD_DEFINITION\n ARGUMENT_DEFINITION\n INTERFACE\n UNION\n ENUM\n ENUM_VALUE\n INPUT_OBJECT\n INPUT_FIELD_DEFINITION\n}\n\ntype IntAggregate implements FieldValue {\n value: Int\n displayValue: String\n avg: DoubleValue\n count: LongValue\n countDistinct: LongValue\n format: String\n grouping: IntValue\n max: IntValue\n min: IntValue\n sum: LongValue\n}\n\ntype ListOrder {\n fieldApiName: String!\n sortDirection: ResultOrder\n}\n\ntype RecordAggregate @generic {\n ApiName: String!\n BooleanAggregate: BooleanAggregate @fieldCategory\n CurrencyAggregate: CurrencyAggregate @fieldCategory\n DateAggregate: DateAggregate @fieldCategory\n DoubleAggregate: DoubleAggregate @fieldCategory\n EmailAggregate: EmailAggregate @fieldCategory\n IDAggregate: IDAggregate @fieldCategory\n IntAggregate: IntAggregate @fieldCategory\n LatitudeAggregate: LatitudeAggregate @fieldCategory\n LongitudeAggregate: LongitudeAggregate @fieldCategory\n LongAggregate: LongAggregate @fieldCategory\n PercentAggregate: PercentAggregate @fieldCategory\n PhoneNumberAggregate: PhoneNumberAggregate @fieldCategory\n PicklistAggregate: PicklistAggregate @fieldCategory\n StringAggregate: StringAggregate @fieldCategory\n TextAreaAggregate: TextAreaAggregate @fieldCategory\n TimeAggregate: TimeAggregate @fieldCategory\n UrlAggregate: UrlAggregate @fieldCategory\n parentRelationship: RecordAggregate @fieldCategory\n polymorphicParentRelationship: PolymorphicAggregateParentRelationship @fieldCategory\n}\n\ntype JSONValue implements FieldValue {\n value: JSON\n displayValue: String\n}\n\ntype EmailValue implements FieldValue {\n value: Email\n displayValue: String\n}\n\ntype Setup__Setup {\n query: Setup__SetupQuery!\n aggregate: Setup__SetupQueryAggregate!\n ListView(\n listViewType: String!,\n label: String,\n displayColumns: [String!],\n filters: [Setup__ListFilterInput!],\n filterLogic: String,\n orderedByInfo: [Setup__ListOrderInput!]!\n ): Setup__ListView!\n ListViewObjectInfo(listViewType: String!): Setup__ListViewObjectInfo!\n}\n\ntype Setup__SetupAggregateConnection @generic {\n edges: [Setup__SetupAggregateEdge]\n pageInfo: PageInfo!\n totalCount: Int!\n}\n\ninput Setup__SetupGroupBy @generic {\n groupableDateField: GroupByDateFunction @fieldCategory\n groupableField: GroupByClause @fieldCategory\n groupableParentRelationship: Setup__SetupGroupBy @fieldCategory\n groupablePolymorphicParentRelationship: Setup__SetupPolymorphicParentRelationshipGroupBy @fieldCategory\n type: GroupByType = GROUP_BY\n}\n\ntype Setup__SetupAggregateEdge @generic {\n cursor: String!\n node: Setup__SetupRecordResult\n}\n\ninput Setup__SetupAggregateOrderBy @generic {\n orderableField: NoFunctionAggregateOrderByClause @fieldCategory\n orderableGeolocationField: OrderByGeolocationClause @fieldCategory\n orderableNumberField: AggregateOrderByNumberClause @fieldCategory\n orderableParentRelationship: Setup__SetupAggregateOrderBy @fieldCategory\n orderablePolymorphicParentRelationship: Setup__SetupPolymorphicParentRelationshipOrderBy @fieldCategory\n orderableStringField: AggregateOrderByStringClause @fieldCategory\n type: String\n}\n\n\nenum AggregateOrderByStringFunction {\n COUNT\n COUNT_DISTINCT\n MAX\n MIN\n}\n\ntype LongValue implements FieldValue {\n value: Long\n displayValue: String\n format: String\n}\n\ninput DateFunctionInput {\n value: LongOperators\n convertTimezoneValue: LongOperators\n}\n\n# Mutations aren't supported yet.\n#type Mutation {\n# uiapi(input: UIAPIMutationsInput): UIAPIMutations!\n#}\n\ntype DependentField {\n controllingField: String!\n dependentFields: [String]!\n}\n\ninput LongTextAreaOperators {\n eq: LongTextArea\n ne: LongTextArea\n like: LongTextArea\n lt: LongTextArea\n gt: LongTextArea\n lte: LongTextArea\n gte: LongTextArea\n in: [LongTextArea]\n nin: [LongTextArea]\n}\n\nenum __TypeKind {\n SCALAR\n OBJECT\n INTERFACE\n UNION\n ENUM\n INPUT_OBJECT\n LIST\n NON_NULL\n}\n\ntype Setup__SetupConnection @generic {\n edges: [Setup__SetupEdge]\n pageInfo: PageInfo!\n totalCount: Int!\n pageResultCount: Int!\n}\n\ntype PercentValue implements FieldValue {\n value: Percent\n displayValue: String\n format: String\n}\n\ninput DateTimeOperators {\n eq: DateTimeInput\n ne: DateTimeInput\n lt: DateTimeInput\n gt: DateTimeInput\n lte: DateTimeInput\n gte: DateTimeInput\n in: [DateTimeInput]\n nin: [DateTimeInput]\n DAY_IN_WEEK: DateFunctionInput\n DAY_IN_MONTH: DateFunctionInput\n DAY_IN_YEAR: DateFunctionInput\n WEEK_IN_MONTH: DateFunctionInput\n WEEK_IN_YEAR: DateFunctionInput\n CALENDAR_MONTH: DateFunctionInput\n CALENDAR_QUARTER: DateFunctionInput\n CALENDAR_YEAR: DateFunctionInput\n FISCAL_MONTH: DateFunctionInput\n FISCAL_QUARTER: DateFunctionInput\n FISCAL_YEAR: DateFunctionInput\n DAY_ONLY: DateTimeFunctionInput\n HOUR_IN_DAY: DateFunctionInput\n}\n\ninput NoFunctionAggregateOrderByClause {\n order: ResultsOrder\n nulls: NullsOrder\n}\n\ntype BooleanAggregate implements FieldValue {\n value: Boolean\n displayValue: String\n grouping: IntValue\n}\n\ntype RecordQueryAggregate {\n # RecordScope is replaced with String\n recordQueryAggregate(after: String, first: Int, groupBy: RecordGroupBy, orderBy: RecordAggregateOrderBy, scope: String @fieldCategory, upperBound: Int, where: RecordFilter): RecordAggregateConnection @fieldCategory\n}\n\ninput RecordAggregateOrderBy @generic {\n orderableField: NoFunctionAggregateOrderByClause @fieldCategory\n orderableGeolocationField: OrderByGeolocationClause @fieldCategory\n orderableNumberField: AggregateOrderByNumberClause @fieldCategory\n orderableParentRelationship: RecordAggregateOrderBy @fieldCategory\n orderablePolymorphicParentRelationship: PolymorphicParentRelationshipOrderBy @fieldCategory\n orderableStringField: AggregateOrderByStringClause @fieldCategory\n type: String\n}\n\ntype RecordConnection @generic {\n edges: [RecordEdge]\n pageInfo: PageInfo!\n totalCount: Int!\n pageResultCount: Int!\n}\n\ntype FilteredLookupInfo {\n controllingFields: [String]!\n dependent: Boolean!\n optionalFilter: Boolean!\n}\n\ninput PhoneNumberOperators {\n eq: PhoneNumber\n ne: PhoneNumber\n like: PhoneNumber\n lt: PhoneNumber\n gt: PhoneNumber\n lte: PhoneNumber\n gte: PhoneNumber\n in: [PhoneNumber]\n nin: [PhoneNumber]\n}\n\ntype ObjectInfo {\n ApiName: String!\n childRelationships: [ChildRelationship]!\n createable: Boolean!\n custom: Boolean!\n defaultRecordTypeId: ID\n deletable: Boolean!\n dependentFields: [DependentField]!\n feedEnabled: Boolean!\n fields: [Field]!\n keyPrefix: String\n label: String\n labelPlural: String\n layoutable: Boolean!\n mruEnabled: Boolean!\n nameFields: [String]!\n queryable: Boolean!\n recordTypeInfos: [RecordTypeInfo]!\n searchable: Boolean!\n themeInfo: ThemeInfo\n updateable: Boolean!\n locale: String\n}\n\ninput LongitudeOperators {\n eq: Longitude\n ne: Longitude\n lt: Longitude\n gt: Longitude\n lte: Longitude\n gte: Longitude\n in: [Longitude]\n nin: [Longitude]\n}\n\ninput RecordCreateRepresentation @generic {\n Int: Int @fieldCategory\n String: String @fieldCategory\n Boolean: Boolean @fieldCategory\n ID: IdOrRef @fieldCategory\n DateTime: DateTime @fieldCategory\n Time: Time @fieldCategory\n Date: Date @fieldCategory\n TextArea: TextArea @fieldCategory\n LongTextArea: LongTextArea @fieldCategory\n RichTextArea: RichTextArea @fieldCategory\n PhoneNumber: PhoneNumber @fieldCategory\n Email: Email @fieldCategory\n Url: Url @fieldCategory\n EncryptedString: EncryptedString @fieldCategory\n Currency: Currency @fieldCategory\n Longitude: Longitude @fieldCategory\n Latitude: Latitude @fieldCategory\n Picklist: Picklist @fieldCategory\n MultiPicklist: MultiPicklist @fieldCategory\n Long: Long @fieldCategory\n Double: Double @fieldCategory\n Percent: Percent @fieldCategory\n Base64: Base64 @fieldCategory\n JSON: JSON @fieldCategory\n}\n\ntype Field {\n ApiName: String!\n calculated: Boolean!\n compound: Boolean!\n compoundComponentName: String\n compoundFieldName: String\n controllerName: String\n controllingFields: [String]!\n createable: Boolean!\n custom: Boolean!\n dataType: DataType\n extraTypeInfo: FieldExtraTypeInfo\n filterable: Boolean!\n filteredLookupInfo: FilteredLookupInfo\n highScaleNumber: Boolean!\n htmlFormatted: Boolean!\n inlineHelpText: String\n label: String\n nameField: Boolean!\n polymorphicForeignKey: Boolean!\n precision: Int\n reference: Boolean!\n referenceTargetField: String\n referenceToInfos: [ReferenceToInfo]!\n relationshipName: String\n required: Boolean!\n scale: Int\n searchPrefilterable: Boolean\n sortable: Boolean!\n updateable: Boolean!\n}\n\nenum FieldExtraTypeInfo {\n IMAGE_URL\n EXTERNAL_LOOKUP\n INDIRECT_LOOKUP\n PERSONNAME\n SWITCHABLE_PERSONNAME\n PLAINTEXTAREA\n RICHTEXTAREA\n}\n\ntype RateLimit {\n cost: Long\n limit: Long\n remaining: Long\n resetAt: DateTime\n}\n\ninput DateRange {\n last_n_days: Int\n next_n_days: Int\n last_n_weeks: Int\n next_n_weeks: Int\n last_n_months: Int\n next_n_months: Int\n last_n_quarters: Int\n next_n_quarters: Int\n last_n_fiscal_quarters: Int\n next_n_fiscal_quarters: Int\n last_n_years: Int\n next_n_years: Int\n last_n_fiscal_years: Int\n next_n_fiscal_years: Int\n n_days_ago: Int\n n_weeks_ago: Int\n n_months_ago: Int\n n_quarters_ago: Int\n n_years_ago: Int\n n_fiscal_quarters_ago: Int\n n_fiscal_years_ago: Int\n}\n\ntype UIAPIMutations {\n recordCreate(input: RecordCreateInput!): RecordCreatePayload @fieldCategory\n recordDelete(input: RecordDeleteInput!): RecordDeletePayload @fieldCategory\n recordUpdate(input: RecordUpdateInput!): RecordUpdatePayload @fieldCategory\n}\n\ninput DateTimeFunctionInput {\n value: DatePrimitiveOperators\n convertTimezoneValue: DatePrimitiveOperators\n}\n\ntype Base64Value implements FieldValue {\n value: Base64\n displayValue: String\n}\n\ninput IntegerOperators {\n eq: Int\n ne: Int\n lt: Int\n gt: Int\n lte: Int\n gte: Int\n in: [Int]\n nin: [Int]\n}\n\ntype EncryptedStringValue implements FieldValue {\n value: EncryptedString\n displayValue: String\n}\n\ninterface Record {\n Id: ID!\n ApiName: String!\n WeakEtag: Long!\n DisplayValue: String\n LastModifiedById: IDValue\n LastModifiedDate: DateTimeValue\n SystemModstamp: DateTimeValue\n RecordTypeId(fallback: Boolean): IDValue\n}\n\ninput PolymorphicParentRelationshipRecordFilter @generic {\n RecordFilter: RecordFilter @fieldCategory\n}\n\ninput AggregateOrderByNumberClause {\n function: AggregateOrderByNumberFunction\n order: ResultsOrder\n nulls: NullsOrder\n}\n\ntype __Schema {\n types: [__Type!]!\n queryType: __Type!\n mutationType: __Type\n directives: [__Directive!]!\n subscriptionType: __Type\n}\n\ninput Setup__SetupPolymorphicParentRelationshipRecordFilter @generic {\n Setup__SetupFilter: Setup__SetupFilter @fieldCategory\n}\n\nunion Setup__SetupPolymorphicAggregateParentRelationship @generic = Setup__SetupRecordAggregate\n\ninput Setup__SetupPolymorphicParentRelationshipGroupBy @generic {\n Setup__SetupGroupBy: Setup__SetupGroupBy @fieldCategory\n}\n\ninput Setup__SetupPolymorphicParentRelationshipOrderBy @generic {\n Setup__SetupAggregateOrderBy: Setup__SetupAggregateOrderBy @fieldCategory\n}\n\ntype CompoundField @generic {\n IntValue: IntValue @fieldCategory\n StringValue: StringValue @fieldCategory\n BooleanValue: BooleanValue @fieldCategory\n IDValue: IDValue @fieldCategory\n DateTimeValue: DateTimeValue @fieldCategory\n TimeValue: TimeValue @fieldCategory\n DateValue: DateValue @fieldCategory\n TextAreaValue: TextAreaValue @fieldCategory\n LongTextAreaValue: LongTextAreaValue @fieldCategory\n RichTextAreaValue: RichTextAreaValue @fieldCategory\n PhoneNumberValue: PhoneNumberValue @fieldCategory\n EmailValue: EmailValue @fieldCategory\n UrlValue: UrlValue @fieldCategory\n EncryptedStringValue: EncryptedStringValue @fieldCategory\n CurrencyValue: CurrencyValue @fieldCategory\n LongitudeValue: LongitudeValue @fieldCategory\n LatitudeValue: LatitudeValue @fieldCategory\n PicklistValue: PicklistValue @fieldCategory\n MultiPicklistValue: MultiPicklistValue @fieldCategory\n LongValue: LongValue @fieldCategory\n DoubleValue: DoubleValue @fieldCategory\n PercentValue: PercentValue @fieldCategory\n Base64Value: Base64Value @fieldCategory\n JSONValue: JSONValue @fieldCategory\n}\n\ninput RecordUpdateInput @generic {\n Id: IdOrRef!\n record: RecordUpdateRepresentation! @fieldCategory\n}\n\ninput DateTimeInput {\n value: DateTime\n literal: DateLiteral\n range: DateRange\n}\n\ntype ChildRelationship {\n childObjectApiName: String!\n fieldName: String\n junctionIdListNames: [String]!\n junctionReferenceTo: [String]!\n relationshipName: String\n objectInfo: ObjectInfo\n}\n\ntype RecordResult @generic {\n aggregate: RecordAggregate\n}\n\ntype PageInfo {\n hasNextPage: Boolean!\n hasPreviousPage: Boolean!\n startCursor: String\n endCursor: String\n}\n\ntype CurrencyValue implements FieldValue {\n value: Currency\n displayValue: String\n format: String\n}\n\ninput DateInput {\n value: Date\n literal: DateLiteral\n range: DateRange\n}\n\ninput RecordGroupBy @generic {\n groupableField: GroupByClause @fieldCategory\n groupableDateField: GroupByDateFunction @fieldCategory\n groupableParentRelationship: RecordGroupBy @fieldCategory\n groupablePolymorphicParentRelationship: PolymorphicParentRelationshipGroupBy @fieldCategory\n type: GroupByType = GROUP_BY\n}\n\ntype DateFunctionAggregation {\n value: Long\n format: String\n}\n\ntype RecordQuery {\n recordQuery(after: String, first: Int, orderBy: RecordOrderBy, scope: String @fieldCategory, upperBound: Int, where: RecordFilter): RecordConnection @fieldCategory\n}\n\n# add browse family schema\ntype Analytics__Analytics {\n # assetTypes: [AnalyticsAssetType], but AnalyticsAssetType is an empty enum\n browse(after: String, assetTypes: [String], first: Int, orderBy: Analytics__AnalyticsOrderBy, where: Analytics__AnalyticsFilter): Analytics__AnalyticsBrowse!\n # Add other fields here if needed\n}\n\n# enum AnalyticsAssetType @generic {\n# }\n\ntype Analytics__AnalyticsBrowse {\n edges: [Analytics__AnalyticsEdge]\n totalCount: Int!\n pageResultCount: Int!\n pageInfo: PageInfo!\n}\n\ntype Analytics__AnalyticsEdge {\n node: Analytics__AnalyticsRepresentation\n cursor: String!\n}\n\ninterface Analytics__AnalyticsRepresentationInterface {\n MasterLabel: StringValue\n DeveloperName: StringValue\n CreatedById: IDValue\n LastModifiedById: IDValue\n LastModifiedDate: DateTimeValue\n CreatedDate: DateTimeValue\n Id: ID!\n ApiName: String!\n NamespacePrefix: StringValue\n AnalyticsWorkspaces: Analytics__AnalyticsWorkspaceAssetConnection\n Dataspaces: [Analytics__DataspaceRepresentation]\n RecordOperations: [String]\n}\n\ntype Analytics__DataspaceRepresentation {\n Id: ID!\n ApiName: String!\n MasterLabel: String\n DeveloperName: String\n}\n\ntype Analytics__AnalyticsRepresentation implements Analytics__AnalyticsRepresentationInterface {\n MasterLabel: StringValue\n DeveloperName: StringValue\n CreatedById: IDValue\n LastModifiedById: IDValue\n LastModifiedDate: DateTimeValue\n CreatedDate: DateTimeValue\n Id: ID!\n ApiName: String!\n NamespacePrefix: StringValue\n RecordOperations: [String]\n AnalyticsWorkspaces: Analytics__AnalyticsWorkspaceAssetConnection\n Dataspaces: [Analytics__DataspaceRepresentation]\n}\n\ntype Analytics__SemanticDefinition implements Analytics__AnalyticsRepresentationInterface {\n MasterLabel: StringValue\n DeveloperName: StringValue\n CreatedById: IDValue\n LastModifiedById: IDValue\n LastModifiedDate: DateTimeValue\n CreatedDate: DateTimeValue\n Id: ID!\n ApiName: String!\n NamespacePrefix: StringValue\n SemanticModel: Analytics__SemanticModel\n AnalyticsWorkspaces: Analytics__AnalyticsWorkspaceAssetConnection\n SubMetrics: Analytics__SemanticSubMetricDefinitionConnection\n Dataspaces: [Analytics__DataspaceRepresentation]\n RecordOperations: [String]\n}\n\ntype Analytics__MktDataConnection implements Analytics__AnalyticsRepresentationInterface {\n MasterLabel: StringValue\n DeveloperName: StringValue\n CreatedById: IDValue\n LastModifiedById: IDValue\n LastModifiedDate: DateTimeValue\n CreatedDate: DateTimeValue\n Id: ID!\n ApiName: String!\n NamespacePrefix: StringValue\n AnalyticsWorkspaces: Analytics__AnalyticsWorkspaceAssetConnection\n Dataspaces: [Analytics__DataspaceRepresentation]\n RecordOperations: [String]\n DataConnectorType: StringValue\n}\n\ninput Analytics__AnalyticsOrderBy {\n MasterLabel: Analytics__OrderByInput\n Id: Analytics__OrderByInput\n ApiName: Analytics__OrderByInput\n CreatedById: Analytics__OrderByInput\n CreatedDate: Analytics__OrderByInput\n LastModifiedDate: Analytics__OrderByInput\n LastModifiedById: Analytics__OrderByInput\n}\n\ninput Analytics__OrderByInput {\n order: Analytics__SortEnumType\n}\n\nenum Analytics__SortEnumType {\n ASC\n DESC\n}\n\ninput Analytics__AnalyticsFilter {\n Id: Setup__IdOperators\n MasterLabel: StringOperators\n DeveloperName: StringOperators\n NamespacePrefix: StringOperators\n DataConnectorType: StringOperators\n CreatedById: Setup__IdOperators\n CreatedDate: DateTimeOperators\n LastModifiedById: Setup__IdOperators\n LastModifiedDate: DateTimeOperators\n SemanticModel: Analytics__SemanticModelFilter\n and: [Analytics__AnalyticsFilter]\n or: [Analytics__AnalyticsFilter]\n not: Analytics__AnalyticsFilter\n}\n\ninput Analytics__SemanticModelFilter {\n DeveloperName: StringOperators\n MasterLabel: StringOperators\n}\n\ntype Analytics__AnalyticsWorkspaceAssetConnection {\n edges: [Analytics__AnalyticsWorkspaceAssetEdge]\n totalCount: Int!\n pageResultCount: Int!\n pageInfo: PageInfo!\n}\n\ntype Analytics__AnalyticsWorkspaceAssetEdge {\n node: Analytics__AnalyticsWorkspaceAsset\n cursor: String!\n}\n\ntype Analytics__AnalyticsWorkspaceAsset {\n AnalyticsWorkspace: Analytics__AnalyticsWorkspace\n AssetUsageType: PicklistValue\n ActivePromotionRequestId: IDValue\n}\n\ntype Analytics__AnalyticsWorkspace {\n MasterLabel: StringValue\n DeveloperName: StringValue\n CreatedById: IDValue\n LastModifiedById: IDValue\n LastModifiedDate: DateTimeValue\n CreatedDate: DateTimeValue\n Id: ID!\n ApiName: String!\n}\n\ntype Analytics__SemanticSubMetricDefinitionConnection {\n edges: [Analytics__SemanticSubMetricDefinitionEdge]\n totalCount: Int!\n pageResultCount: Int!\n pageInfo: PageInfo!\n}\n\ntype Analytics__SemanticSubMetricDefinitionEdge {\n node: Analytics__SemanticSubMetricDefinitionRepresentation\n cursor: String!\n}\n\ntype Analytics__SemanticSubMetricDefinitionRepresentation {\n Id: ID!\n ApiName: String!\n}\n\ntype Analytics__SemanticModel {\n MasterLabel: StringValue\n DeveloperName: StringValue\n CreatedById: IDValue\n LastModifiedById: IDValue\n LastModifiedDate: DateTimeValue\n CreatedDate: DateTimeValue\n Id: ID!\n ApiName: String!\n AnalyticsWorkspaces: Analytics__AnalyticsWorkspaceAssetConnection\n NamespacePrefix: StringValue\n RelatedModel: Analytics__SemanticModelRelatedModelConnection\n Dataspaces: [Analytics__DataspaceRepresentation]\n RecordOperations: [String]\n}\n\ntype Analytics__SemanticModelRelatedModelConnection {\n edges: [Analytics__SemanticModelRelatedModelEdge]\n totalCount: Int!\n pageResultCount: Int!\n pageInfo: PageInfo!\n}\n\ntype Analytics__SemanticModelRelatedModelEdge {\n node: Analytics__SemanticModelRelatedModelRepresentation\n cursor: String!\n}\n\ntype Analytics__SemanticModelRelatedModelRepresentation {\n Id: ID!\n ApiName: String!\n SemanticModelId: IDValue\n RelatedSemanticModel: Analytics__SemanticModel\n}\n\ninput Setup__ListOrderInput {\n apiName: String!\n order: ResultsOrder\n}\n\ntype Setup__ListViewRow {\n id: ID!\n columns(apiNames: [String!]): [Setup__ListScalarField]!\n}\n\ntype Setup__ListView {\n listViewType: String!\n label: String\n displayColumns: [Setup__ListColumn!]!\n filters: [Setup__ListFilter!]\n filterLogic: String\n orderedByInfo: [Setup__ListOrder!]!\n rows(first: Int, after: String, upperBound: Int, orderBy: Setup__ListOrderInput): Setup__ListViewRowConnection\n}\n\ntype Setup__ListFilter {\n apiName: String!\n operator: Setup__ListFilterOperator!\n operand: [String!]!\n}\n\nenum Setup__ListFilterOperator {\n EQUALS\n NOT_EQUAL\n LESS_THAN\n GREATER_THAN\n LESS_OR_EQUAL\n GREATER_OR_EQUAL\n CONTAINS\n NOT_CONTAIN\n STARTS_WITH\n INCLUDES\n EXCLUDES\n WITHIN\n}\n\ntype Setup__ListViewRowConnection {\n edges: [Setup__ListViewRowEdge]\n pageInfo: PageInfo!\n totalCount: Int!\n}\n\ninput Setup__ListFilterInput {\n apiName: String!\n operator: Setup__ListFilterOperator!\n operand: [String!]!\n}\n\ntype Setup__ListOrder {\n apiName: String!\n order: ResultsOrder\n}\n\ntype Setup__ListScalarField {\n apiName: String!\n value: String\n dataType: DataType\n displayValue: String\n format: String\n label: String\n}\n\ntype Setup__ListViewRowEdge {\n cursor: String!\n node: Setup__ListViewRow\n}\n\ntype Setup__ListViewObjectInfo {\n columns(apiNames: [String!], displayable: Boolean, filterable: Boolean) : [Setup__ListColumn!]!\n}\n\ntype Setup__ListColumn {\n apiName: String!\n label: String!\n type: DataType!\n displayable: Boolean!\n filterable: Boolean!\n defaultOperator: Setup__ListFilterOperator\n allowedOperators: [Setup__ListFilterOperator!]\n sortable: Boolean\n lookupIdColumn: String\n}\n\ndirective @generic on OBJECT | INTERFACE | UNION | ENUM | INPUT_OBJECT\ndirective @fieldCategory on FIELD_DEFINITION | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION | ENUM_VALUE\ndirective @category(name: String!) on FIELD\n";
|
|
85679
|
+
var uiapiSchemaString = "scalar String\nscalar DateTime\nscalar Currency\nscalar ID\nscalar Boolean\nscalar Longitude\nscalar Float\nscalar MultiPicklist\nscalar Base64\nscalar Url\nscalar PhoneNumber\nscalar Email\nscalar TextArea\nscalar Latitude\nscalar Picklist\nscalar RichTextArea\nscalar EncryptedString\nscalar Double\nscalar Long\nscalar JSON\nscalar Time\nscalar Int\nscalar Percent\nscalar LongTextArea\nscalar IdOrRef\nscalar Date\ntype PercentAggregate implements FieldValue {\n value: Percent\n displayValue: String\n avg: DoubleValue\n count: LongValue\n countDistinct: LongValue\n format: String\n max: PercentValue\n min: PercentValue\n sum: PercentValue\n}\n\ntype StringAggregate implements FieldValue {\n value: String\n displayValue: String\n count: LongValue\n countDistinct: LongValue\n grouping: IntValue\n label: String\n max: StringValue\n min: StringValue\n}\n\ntype Query {\n uiapi: UIAPI!\n analytics: Analytics__Analytics! @fieldCategory\n setup: Setup__Setup! @fieldCategory\n}\n\ninput EmailOperators {\n eq: Email\n ne: Email\n like: Email\n lt: Email\n gt: Email\n lte: Email\n gte: Email\n in: [Email]\n nin: [Email]\n}\n\ninput PolymorphicParentRelationshipRecordOrderBy @generic {\n RecordOrderBy: RecordOrderBy @fieldCategory\n}\n\ninput DoubleOperators {\n eq: Double\n ne: Double\n lt: Double\n gt: Double\n lte: Double\n gte: Double\n in: [Double]\n nin: [Double]\n}\n\ntype DateOnlyAggregation {\n value: Date\n format: String\n}\n\ntype RecordCreatePayload @generic {\n Record: RecordRepresentation\n}\n\ntype DateAggregate implements FieldValue {\n value: Date\n displayValue: String\n calendarMonth: DateFunctionAggregation\n calendarQuarter: DateFunctionAggregation\n calendarYear: DateFunctionAggregation\n count: LongValue\n countDistinct: LongValue\n dayInMonth: DateFunctionAggregation\n dayInWeek: DateFunctionAggregation\n dayInYear: DateFunctionAggregation\n fiscalMonth: DateFunctionAggregation\n fiscalQuarter: DateFunctionAggregation\n fiscalYear: DateFunctionAggregation\n format: String\n grouping: IntValue\n max: DateValue\n min: DateValue\n weekInMonth: DateFunctionAggregation\n weekInYear: DateFunctionAggregation\n}\n\ninput PolymorphicParentRelationshipGroupBy @generic {\n RecordGroupBy: RecordGroupBy @fieldCategory\n}\n\nenum GroupByFunction {\n DAY_IN_WEEK\n DAY_IN_MONTH\n DAY_IN_YEAR\n WEEK_IN_MONTH\n WEEK_IN_YEAR\n CALENDAR_MONTH\n CALENDAR_QUARTER\n CALENDAR_YEAR\n FISCAL_MONTH\n FISCAL_QUARTER\n FISCAL_YEAR\n DAY_ONLY\n HOUR_IN_DAY\n}\n\ntype RecordTypeInfo {\n available: Boolean!\n defaultRecordTypeMapping: Boolean!\n master: Boolean!\n name: String\n recordTypeId: ID\n}\n\ninput UIAPIMutationsInput {\n allOrNone: Boolean = true\n}\n\ntype BooleanValue implements FieldValue {\n value: Boolean\n displayValue: String\n}\n\ntype ReferenceToInfo {\n ApiName: String!\n nameFields: [String]!\n objectInfo: ObjectInfo\n}\n\ninterface FieldValue {\n displayValue: String\n}\n\ntype LongitudeValue implements FieldValue {\n value: Longitude\n displayValue: String\n}\n\ntype StringValue implements FieldValue {\n value: String\n displayValue: String\n label: String\n}\n\ntype IntValue implements FieldValue {\n value: Int\n displayValue: String\n format: String\n}\n\ntype UrlValue implements FieldValue {\n value: Url\n displayValue: String\n}\n\ninput IdOperators {\n eq: ID\n ne: ID\n lt: ID\n gt: ID\n lte: ID\n gte: ID\n in: [ID]\n nin: [ID]\n inq: JoinInput\n ninq: JoinInput\n}\n\ninput Setup__SetupOrderBy @generic {\n orderableField: OrderByClause @fieldCategory\n orderableGeolocationField: OrderByGeolocationClause @fieldCategory\n orderableParentRelationship: Setup__SetupOrderBy @fieldCategory\n orderablePolymorphicParentRelationship: Setup__SetupPolymorphicParentRelationshipRecordOrderBy @fieldCategory\n}\n\ntype LongAggregate implements FieldValue {\n value: Long\n displayValue: String\n avg: DoubleValue\n count: LongValue\n countDistinct: LongValue\n format: String\n grouping: IntValue\n max: LongValue\n min: LongValue\n sum: LongValue\n}\n\ntype PhoneNumberAggregate implements FieldValue {\n value: PhoneNumber\n displayValue: String\n count: LongValue\n countDistinct: LongValue\n grouping: IntValue\n max: PhoneNumberValue\n min: PhoneNumberValue\n}\n\ninput TimeOperators {\n eq: Time\n ne: Time\n lt: Time\n gt: Time\n lte: Time\n gte: Time\n in: [Time]\n nin: [Time]\n}\n\ntype PicklistValue implements FieldValue {\n value: Picklist\n displayValue: String\n label: String\n}\n\ntype CurrencyAggregate implements FieldValue {\n value: Currency\n displayValue: String\n avg: DoubleValue\n count: LongValue\n countDistinct: LongValue\n format: String\n max: CurrencyValue\n min: CurrencyValue\n sum: CurrencyValue\n}\n\ntype RelatedListInfo {\n childApiName: String!\n relatedListName: String!\n label: String!\n displayColumns: [ListColumn!]!\n orderedByInfo: [ListOrder!]!\n parentApiName: String!\n fieldApiName: String!\n}\n\ninput StringOperators {\n eq: String\n ne: String\n like: String\n lt: String\n gt: String\n lte: String\n gte: String\n in: [String]\n nin: [String]\n}\n\ntype UIAPI {\n query: RecordQuery!\n aggregate: RecordQueryAggregate!\n objectInfos(apiNames: [String], locale: String): [ObjectInfo]\n relatedListByName(parentApiName: String!, relatedListName: String!): RelatedListInfo\n}\n\ninput MultiPicklistOperators {\n eq: MultiPicklist\n ne: MultiPicklist\n includes: [MultiPicklist]\n excludes: [MultiPicklist]\n}\n\ntype DateTimeAggregate implements FieldValue {\n value: DateTime\n displayValue: String\n calendarMonth: DateFunctionAggregation\n calendarQuarter: DateFunctionAggregation\n calendarYear: DateFunctionAggregation\n count: LongValue\n countDistinct: LongValue\n dayInMonth: DateFunctionAggregation\n dayInWeek: DateFunctionAggregation\n dayInYear: DateFunctionAggregation\n dayOnly: DateOnlyAggregation\n fiscalMonth: DateFunctionAggregation\n fiscalQuarter: DateFunctionAggregation\n fiscalYear: DateFunctionAggregation\n format: String\n hourInDay: DateFunctionAggregation\n max: DateTimeValue\n min: DateTimeValue\n weekInMonth: DateFunctionAggregation\n weekInYear: DateFunctionAggregation\n}\n\ninput BooleanOperators {\n eq: Boolean\n ne: Boolean\n}\n\ntype EmailAggregate implements FieldValue {\n value: Email\n displayValue: String\n count: LongValue\n countDistinct: LongValue\n grouping: IntValue\n max: EmailValue\n min: EmailValue\n}\n\n#enum OrderByType {\n#}\n\ninput GroupByDateFunction {\n function: GroupByFunction\n}\n\ntype RichTextAreaValue implements FieldValue {\n value: RichTextArea\n displayValue: String\n}\n\ntype MultiPicklistValue implements FieldValue {\n value: MultiPicklist\n displayValue: String\n label: String\n}\n\ntype Setup__SetupEdge @generic {\n node: Setup__EntityRepresentation\n cursor: String!\n}\n\ninput DatePrimitiveOperators {\n eq: Date\n ne: Date\n lt: Date\n gt: Date\n lte: Date\n gte: Date\n in: [Date]\n nin: [Date]\n}\n\ntype TimeAggregate implements FieldValue {\n value: Time\n displayValue: String\n format: String\n hourInDay: DateFunctionAggregation\n}\n\ntype __Type {\n kind: __TypeKind!\n name: String\n description: String\n fields(includeDeprecated: Boolean = false): [__Field!]\n interfaces: [__Type!]\n possibleTypes: [__Type!]\n enumValues(includeDeprecated: Boolean = false): [__EnumValue!]\n inputFields: [__InputValue!]\n ofType: __Type\n}\n\ntype ListColumn {\n fieldApiName: String!\n label: String!\n lookupId: String\n sortable: Boolean\n}\n\ntype Setup__SetupQuery {\n # scope should be RecordScope, but it is an empty enum\n recordQuery(after: String, first: Int, orderBy: Setup__SetupOrderBy, scope: String @fieldCategory, upperBound: Int, where: Setup__SetupFilter): Setup__SetupConnection @fieldCategory\n}\n\ntype Setup__SetupQueryAggregate {\n recordQueryAggregate(after: String, first: Int, groupBy: Setup__SetupGroupBy, orderBy: Setup__SetupAggregateOrderBy, scope: String @fieldCategory, upperBound: Int, where: Setup__SetupFilter): Setup__SetupAggregateConnection @fieldCategory\n}\n\ntype Setup__SetupRecordAggregate @generic {\n ApiName: String!\n BooleanAggregate: BooleanAggregate @fieldCategory\n CurrencyAggregate: CurrencyAggregate @fieldCategory\n DateAggregate: DateAggregate @fieldCategory\n DoubleAggregate: DoubleAggregate @fieldCategory\n EmailAggregate: EmailAggregate @fieldCategory\n IDAggregate: IDAggregate @fieldCategory\n IntAggregate: IntAggregate @fieldCategory\n LatitudeAggregate: LatitudeAggregate @fieldCategory\n LongAggregate: LongAggregate @fieldCategory\n LongitudeAggregate: LongitudeAggregate @fieldCategory\n PercentAggregate: PercentAggregate @fieldCategory\n PhoneNumberAggregate: PhoneNumberAggregate @fieldCategory\n PicklistAggregate: PicklistAggregate @fieldCategory\n StringAggregate: StringAggregate @fieldCategory\n TextAreaAggregate: TextAreaAggregate @fieldCategory\n TimeAggregate: TimeAggregate @fieldCategory\n UrlAggregate: UrlAggregate @fieldCategory\n parentRelationship: Setup__SetupRecordAggregate @fieldCategory\n polymorphicParentRelationship: Setup__SetupPolymorphicAggregateParentRelationship @fieldCategory\n}\n\ntype Setup__SetupRecordResult @generic {\n aggregate: Setup__SetupRecordAggregate\n}\n\ntype SObject__Field {\n name: String!\n value: String\n}\n\nenum SObject__FieldType {\n ALL\n CUSTOM\n STANDARD\n}\n\ntype Setup__EntityRepresentation @generic {\n Id: ID!\n ApiName: String!\n IntValue: IntValue @fieldCategory\n StringValue: StringValue @fieldCategory\n BooleanValue: BooleanValue @fieldCategory\n IDValue: IDValue @fieldCategory\n DateTimeValue: DateTimeValue @fieldCategory\n TimeValue: TimeValue @fieldCategory\n DateValue: DateValue @fieldCategory\n TextAreaValue: TextAreaValue @fieldCategory\n LongTextAreaValue: LongTextAreaValue @fieldCategory\n RichTextAreaValue: RichTextAreaValue @fieldCategory\n PhoneNumberValue: PhoneNumberValue @fieldCategory\n EmailValue: EmailValue @fieldCategory\n UrlValue: UrlValue @fieldCategory\n EncryptedStringValue: EncryptedStringValue @fieldCategory\n Entity__fields(type: SObject__FieldType): [SObject__Field]!\n CurrencyValue: CurrencyValue @fieldCategory\n LongitudeValue: LongitudeValue @fieldCategory\n LatitudeValue: LatitudeValue @fieldCategory\n PicklistValue: PicklistValue @fieldCategory\n MultiPicklistValue: MultiPicklistValue @fieldCategory\n LongValue: LongValue @fieldCategory\n DoubleValue: DoubleValue @fieldCategory\n PercentValue: PercentValue @fieldCategory\n Base64Value: Base64Value @fieldCategory\n JSONValue: JSONValue @fieldCategory\n parentRelationship: Setup__EntityRepresentation @fieldCategory\n polymorphicParentRelationship: Setup__SetupPolymorphicParentRelationship @fieldCategory\n childRelationship(first: Int, after: String, where: Setup__SetupFilter, orderBy: Setup__SetupOrderBy, upperBound: Int): Setup__SetupConnection @fieldCategory\n CompoundField: CompoundField @fieldCategory\n AnyType: AnyType @fieldCategory\n}\n\ntype LatitudeAggregate implements FieldValue {\n value: Latitude\n displayValue: String\n avg: DoubleValue\n count: LongValue\n countDistinct: LongValue\n max: LatitudeValue\n min: LatitudeValue\n sum: DoubleValue\n}\n\ninput CurrencyOperators {\n eq: Currency\n ne: Currency\n lt: Currency\n gt: Currency\n lte: Currency\n gte: Currency\n in: [Currency]\n nin: [Currency]\n}\n\ninput DistanceInput {\n latitude: Latitude!\n longitude: Longitude!\n}\n\nunion PolymorphicAggregateParentRelationship @generic = RecordAggregate\n\nunion PolymorphicParentRelationship @generic = RecordRepresentation\n\nenum AggregateOrderByNumberFunction {\n AVG\n COUNT\n COUNT_DISTINCT\n MAX\n MIN\n SUM\n}\n\ntype LongTextAreaValue implements FieldValue {\n value: LongTextArea\n displayValue: String\n}\n\ntype LatitudeValue implements FieldValue {\n value: Latitude\n displayValue: String\n}\n\ninput OrderByClause {\n order: ResultOrder\n nulls: NullOrder\n}\n\ninput GroupByClause {\n group: Boolean\n}\n\ntype RecordAggregateConnection @generic {\n edges: [RecordAggregateEdge]\n pageInfo: PageInfo!\n totalCount: Int!\n}\n\ntype LongitudeAggregate implements FieldValue {\n value: Longitude\n displayValue: String\n avg: DoubleValue\n count: LongValue\n countDistinct: LongValue\n max: LongitudeValue\n min: LongitudeValue\n sum: DoubleValue\n}\n\ntype RecordEdge @generic {\n node: RecordRepresentation\n cursor: String!\n}\n\nunion Setup__SetupPolymorphicParentRelationship @generic = Setup__EntityRepresentation\n\ntype DateValue implements FieldValue {\n value: Date\n displayValue: String\n format: String\n}\n\ninput URLOperators {\n eq: Url\n ne: Url\n like: Url\n lt: Url\n gt: Url\n lte: Url\n gte: Url\n in: [Url]\n nin: [Url]\n}\n\ninput LongOperators {\n eq: Long\n ne: Long\n lt: Long\n gt: Long\n lte: Long\n gte: Long\n in: [Long]\n nin: [Long]\n}\n\nenum DataType {\n STRING\n TEXTAREA\n PHONE\n EMAIL\n URL\n ENCRYPTEDSTRING\n BOOLEAN\n CURRENCY\n INT\n LONG\n DOUBLE\n PERCENT\n DATETIME\n TIME\n DATE\n REFERENCE\n PICKLIST\n MULTIPICKLIST\n ADDRESS\n LOCATION\n BASE64\n COMPLEXVALUE\n COMBOBOX\n JSON\n JUNCTIONIDLIST\n ANYTYPE\n}\n\nenum NullOrder {\n FIRST\n LAST\n}\n\ntype PhoneNumberValue implements FieldValue {\n value: PhoneNumber\n displayValue: String\n}\n\n# Cannot have empty enum\n# enum RecordScope @generic {\n# }\n\ninput Setup__SetupFilter @generic {\n and: [Setup__SetupFilter]\n or: [Setup__SetupFilter]\n not: Setup__SetupFilter\n parentRelationshipRecordFilter: Setup__SetupFilter @fieldCategory\n polymorphicParentRelationshipRecordFilter: Setup__SetupPolymorphicParentRelationshipRecordFilter @fieldCategory\n IntegerOperator: IntegerOperators @fieldCategory\n LongOperator: LongOperators @fieldCategory\n StringOperator: StringOperators @fieldCategory\n DoubleOperator: DoubleOperators @fieldCategory\n PercentOperator: PercentOperators @fieldCategory\n LongitudeOperator: LongitudeOperators @fieldCategory\n LatitudeOperator: LatitudeOperators @fieldCategory\n EmailOperator: EmailOperators @fieldCategory\n TextAreaOperator: TextAreaOperators @fieldCategory\n LongTextAreaOperator: LongTextAreaOperators @fieldCategory\n URLOperator: URLOperators @fieldCategory\n PhoneNumberOperator: PhoneNumberOperators @fieldCategory\n BooleanOperator: BooleanOperators @fieldCategory\n Setup__IdOperator: Setup__IdOperators @fieldCategory\n CurrencyOperator: CurrencyOperators @fieldCategory\n TimeOperator: TimeOperators @fieldCategory\n DateOperator: DateOperators @fieldCategory\n DateTimeOperator: DateTimeOperators @fieldCategory\n PicklistOperator: PicklistOperators @fieldCategory\n MultiPicklistOperator: MultiPicklistOperators @fieldCategory\n GeolocationOperator: GeolocationOperators @fieldCategory\n}\n\ntype DoubleAggregate implements FieldValue {\n value: Double\n displayValue: String\n avg: DoubleValue\n count: LongValue\n countDistinct: LongValue\n format: String\n max: DoubleValue\n min: DoubleValue\n sum: DoubleValue\n}\n\ntype __Field {\n name: String!\n description: String\n args: [__InputValue!]!\n type: __Type!\n isDeprecated: Boolean!\n deprecationReason: String\n}\n\ninput DateOperators {\n eq: DateInput\n ne: DateInput\n lt: DateInput\n gt: DateInput\n lte: DateInput\n gte: DateInput\n in: [DateInput]\n nin: [DateInput]\n DAY_IN_WEEK: DateFunctionInput\n DAY_IN_MONTH: DateFunctionInput\n DAY_IN_YEAR: DateFunctionInput\n WEEK_IN_MONTH: DateFunctionInput\n WEEK_IN_YEAR: DateFunctionInput\n CALENDAR_MONTH: DateFunctionInput\n CALENDAR_QUARTER: DateFunctionInput\n CALENDAR_YEAR: DateFunctionInput\n FISCAL_MONTH: DateFunctionInput\n FISCAL_QUARTER: DateFunctionInput\n FISCAL_YEAR: DateFunctionInput\n}\n\ninput GeolocationInput {\n latitude: Latitude!\n longitude: Longitude!\n radius: Float!\n unit: Unit!\n}\n\ninput JoinInput {\n Record: RecordFilter @fieldCategory\n ApiName: String\n}\n\ninput TextAreaOperators {\n eq: TextArea\n ne: TextArea\n like: TextArea\n lt: TextArea\n gt: TextArea\n lte: TextArea\n gte: TextArea\n in: [TextArea]\n nin: [TextArea]\n}\n\ntype TextAreaValue implements FieldValue {\n value: TextArea\n displayValue: String\n}\n\ntype RecordUpdatePayload @generic {\n success: Boolean\n}\n\ninput PercentOperators {\n eq: Percent\n ne: Percent\n lt: Percent\n gt: Percent\n lte: Percent\n gte: Percent\n in: [Percent]\n nin: [Percent]\n}\n\ninput Setup__SetupPolymorphicParentRelationshipRecordOrderBy @generic {\n Setup__SetupOrderBy: Setup__SetupOrderBy @fieldCategory\n}\n\ntype DoubleValue implements FieldValue {\n value: Double\n displayValue: String\n format: String\n}\n\ntype IDAggregate implements FieldValue {\n value: ID\n displayValue: String\n count: LongValue\n countDistinct: LongValue\n grouping: IntValue\n max: IDValue\n min: IDValue\n}\n\ntype __InputValue {\n name: String!\n description: String\n type: __Type!\n defaultValue: String\n}\n\ntype RecordAggregateEdge @generic {\n node: RecordResult\n cursor: String!\n}\n\ntype __Directive {\n name: String\n description: String\n locations: [__DirectiveLocation!]\n args: [__InputValue!]!\n}\n\ninput RecordCreateInput @generic {\n record: RecordCreateRepresentation! @fieldCategory\n}\n\ntype ThemeInfo {\n color: String\n iconUrl: String\n}\n\ninput AggregateOrderByStringClause {\n function: AggregateOrderByStringFunction\n order: ResultsOrder\n nulls: NullsOrder\n}\n\ntype RecordDeletePayload {\n Id: ID\n}\n\ntype UrlAggregate implements FieldValue {\n value: Url\n displayValue: String\n count: LongValue\n countDistinct: LongValue\n grouping: IntValue\n max: UrlValue\n min: UrlValue\n}\n\nenum DateLiteral {\n LAST_YEAR\n LAST_WEEK\n THIS_QUARTER\n NEXT_FISCAL_YEAR\n LAST_QUARTER\n TOMORROW\n NEXT_FISCAL_QUARTER\n YESTERDAY\n NEXT_QUARTER\n THIS_FISCAL_QUARTER\n THIS_WEEK\n LAST_MONTH\n LAST_90_DAYS\n NEXT_90_DAYS\n THIS_FISCAL_YEAR\n NEXT_WEEK\n TODAY\n NEXT_YEAR\n NEXT_MONTH\n LAST_FISCAL_QUARTER\n THIS_MONTH\n LAST_FISCAL_YEAR\n THIS_YEAR\n}\n\ntype __EnumValue {\n name: String!\n description: String\n isDeprecated: Boolean!\n deprecationReason: String\n}\n\ntype RecordRepresentation implements Record @generic {\n Id: ID!\n ApiName: String!\n WeakEtag: Long!\n DisplayValue: String\n LastModifiedById: IDValue\n LastModifiedDate: DateTimeValue\n SystemModstamp: DateTimeValue\n RecordTypeId(fallback: Boolean): IDValue\n IntValue: IntValue @fieldCategory\n StringValue: StringValue @fieldCategory\n BooleanValue: BooleanValue @fieldCategory\n IDValue: IDValue @fieldCategory\n DateTimeValue: DateTimeValue @fieldCategory\n TimeValue: TimeValue @fieldCategory\n DateValue: DateValue @fieldCategory\n TextAreaValue: TextAreaValue @fieldCategory\n LongTextAreaValue: LongTextAreaValue @fieldCategory\n RichTextAreaValue: RichTextAreaValue @fieldCategory\n PhoneNumberValue: PhoneNumberValue @fieldCategory\n EmailValue: EmailValue @fieldCategory\n UrlValue: UrlValue @fieldCategory\n EncryptedStringValue: EncryptedStringValue @fieldCategory\n CurrencyValue: CurrencyValue @fieldCategory\n LongitudeValue: LongitudeValue @fieldCategory\n LatitudeValue: LatitudeValue @fieldCategory\n PicklistValue: PicklistValue @fieldCategory\n MultiPicklistValue: MultiPicklistValue @fieldCategory\n LongValue: LongValue @fieldCategory\n DoubleValue: DoubleValue @fieldCategory\n PercentValue: PercentValue @fieldCategory\n Base64Value: Base64Value @fieldCategory\n JSONValue: JSONValue @fieldCategory\n parentRelationship: RecordRepresentation @fieldCategory\n polymorphicParentRelationship: PolymorphicParentRelationship @fieldCategory\n childRelationship(first: Int, after: String, where: RecordFilter, orderBy: RecordOrderBy, upperBound: Int): RecordConnection @fieldCategory\n CompoundField: CompoundField @fieldCategory\n AnyType: AnyType @fieldCategory\n}\n\nunion AnyType = BooleanValue | DateValue | DateTimeValue | DoubleValue | StringValue\n\ntype IDValue implements FieldValue {\n value: ID\n displayValue: String\n}\n\nenum Unit {\n MI\n KM\n}\n\ninput PolymorphicParentRelationshipOrderBy @generic {\n RecordAggregateOrderBy: RecordAggregateOrderBy @fieldCategory\n}\n\ninput OrderByGeolocationClause {\n distance: DistanceInput\n order: ResultOrder\n nulls: NullOrder\n}\n\ninput Setup__IdOperators {\n eq: ID\n ne: ID\n lt: ID\n gt: ID\n lte: ID\n gte: ID\n in: [ID]\n nin: [ID]\n inq: Setup__JoinInput\n ninq: Setup__JoinInput\n}\n\nenum NullsOrder {\n FIRST\n LAST\n}\n\ntype TextAreaAggregate implements FieldValue {\n value: TextArea\n displayValue: String\n count: LongValue\n countDistinct: LongValue\n grouping: IntValue\n max: TextAreaValue\n min: TextAreaValue\n}\n\nenum GroupByType {\n GROUP_BY\n ROLLUP\n CUBE\n}\n\nenum ResultOrder {\n ASC\n DESC\n}\n\ninput RecordOrderBy @generic {\n orderableField: OrderByClause @fieldCategory\n orderableGeolocationField: OrderByGeolocationClause @fieldCategory\n orderableParentRelationship: RecordOrderBy @fieldCategory\n orderablePolymorphicParentRelationship: PolymorphicParentRelationshipRecordOrderBy @fieldCategory\n}\n\ninput Setup__JoinInput {\n Record: Setup__SetupFilter @fieldCategory\n ApiName: String\n}\n\ninput PicklistOperators {\n eq: Picklist\n ne: Picklist\n in: [Picklist]\n nin: [Picklist]\n like: Picklist\n lt: Picklist\n gt: Picklist\n lte: Picklist\n gte: Picklist\n}\n\nenum ResultsOrder {\n ASC\n DESC\n}\n\ninput RecordFilter @generic {\n and: [RecordFilter]\n or: [RecordFilter]\n not: RecordFilter\n parentRelationshipRecordFilter: RecordFilter @fieldCategory\n polymorphicParentRelationshipRecordFilter: PolymorphicParentRelationshipRecordFilter @fieldCategory\n IntegerOperator: IntegerOperators @fieldCategory\n LongOperator: LongOperators @fieldCategory\n StringOperator: StringOperators @fieldCategory\n DoubleOperator: DoubleOperators @fieldCategory\n PercentOperator: PercentOperators @fieldCategory\n LongitudeOperator: LongitudeOperators @fieldCategory\n LatitudeOperator: LatitudeOperators @fieldCategory\n EmailOperator: EmailOperators @fieldCategory\n TextAreaOperator: TextAreaOperators @fieldCategory\n LongTextAreaOperator: LongTextAreaOperators @fieldCategory\n URLOperator: URLOperators @fieldCategory\n PhoneNumberOperator: PhoneNumberOperators @fieldCategory\n BooleanOperator: BooleanOperators @fieldCategory\n IdOperator: IdOperators @fieldCategory\n CurrencyOperator: CurrencyOperators @fieldCategory\n TimeOperator: TimeOperators @fieldCategory\n DateOperator: DateOperators @fieldCategory\n DateTimeOperator: DateTimeOperators @fieldCategory\n PicklistOperator: PicklistOperators @fieldCategory\n MultiPicklistOperator: MultiPicklistOperators @fieldCategory\n GeolocationOperator: GeolocationOperators @fieldCategory\n}\n\ntype TimeValue implements FieldValue {\n value: Time\n displayValue: String\n format: String\n}\n\ninput GeolocationOperators {\n lt: GeolocationInput\n gt: GeolocationInput\n}\n\ntype PicklistAggregate implements FieldValue {\n value: Picklist\n displayValue: String\n count: LongValue\n countDistinct: LongValue\n grouping: IntValue\n label: String\n max: PicklistValue\n min: PicklistValue\n}\n\ninput LatitudeOperators {\n eq: Latitude\n ne: Latitude\n lt: Latitude\n gt: Latitude\n lte: Latitude\n gte: Latitude\n in: [Latitude]\n nin: [Latitude]\n}\n\ninput RecordUpdateRepresentation @generic {\n Int: Int @fieldCategory\n String: String @fieldCategory\n Boolean: Boolean @fieldCategory\n ID: IdOrRef @fieldCategory\n DateTime: DateTime @fieldCategory\n Time: Time @fieldCategory\n Date: Date @fieldCategory\n TextArea: TextArea @fieldCategory\n LongTextArea: LongTextArea @fieldCategory\n RichTextArea: RichTextArea @fieldCategory\n PhoneNumber: PhoneNumber @fieldCategory\n Email: Email @fieldCategory\n Url: Url @fieldCategory\n EncryptedString: EncryptedString @fieldCategory\n Currency: Currency @fieldCategory\n Longitude: Longitude @fieldCategory\n Latitude: Latitude @fieldCategory\n Picklist: Picklist @fieldCategory\n MultiPicklist: MultiPicklist @fieldCategory\n Long: Long @fieldCategory\n Double: Double @fieldCategory\n Percent: Percent @fieldCategory\n Base64: Base64 @fieldCategory\n JSON: JSON @fieldCategory\n}\n\ntype DateTimeValue implements FieldValue {\n value: DateTime\n displayValue: String\n format: String\n}\n\ninput RecordDeleteInput {\n Id: IdOrRef!\n}\n\nenum __DirectiveLocation {\n QUERY\n MUTATION\n FIELD\n FRAGMENT_DEFINITION\n FRAGMENT_SPREAD\n INLINE_FRAGMENT\n SCHEMA\n SCALAR\n OBJECT\n FIELD_DEFINITION\n ARGUMENT_DEFINITION\n INTERFACE\n UNION\n ENUM\n ENUM_VALUE\n INPUT_OBJECT\n INPUT_FIELD_DEFINITION\n}\n\ntype IntAggregate implements FieldValue {\n value: Int\n displayValue: String\n avg: DoubleValue\n count: LongValue\n countDistinct: LongValue\n format: String\n grouping: IntValue\n max: IntValue\n min: IntValue\n sum: LongValue\n}\n\ntype ListOrder {\n fieldApiName: String!\n sortDirection: ResultOrder\n}\n\ntype RecordAggregate @generic {\n ApiName: String!\n BooleanAggregate: BooleanAggregate @fieldCategory\n CurrencyAggregate: CurrencyAggregate @fieldCategory\n DateAggregate: DateAggregate @fieldCategory\n DoubleAggregate: DoubleAggregate @fieldCategory\n EmailAggregate: EmailAggregate @fieldCategory\n IDAggregate: IDAggregate @fieldCategory\n IntAggregate: IntAggregate @fieldCategory\n LatitudeAggregate: LatitudeAggregate @fieldCategory\n LongitudeAggregate: LongitudeAggregate @fieldCategory\n LongAggregate: LongAggregate @fieldCategory\n PercentAggregate: PercentAggregate @fieldCategory\n PhoneNumberAggregate: PhoneNumberAggregate @fieldCategory\n PicklistAggregate: PicklistAggregate @fieldCategory\n StringAggregate: StringAggregate @fieldCategory\n TextAreaAggregate: TextAreaAggregate @fieldCategory\n TimeAggregate: TimeAggregate @fieldCategory\n UrlAggregate: UrlAggregate @fieldCategory\n parentRelationship: RecordAggregate @fieldCategory\n polymorphicParentRelationship: PolymorphicAggregateParentRelationship @fieldCategory\n}\n\ntype JSONValue implements FieldValue {\n value: JSON\n displayValue: String\n}\n\ntype EmailValue implements FieldValue {\n value: Email\n displayValue: String\n}\n\ntype Setup__Setup {\n query: Setup__SetupQuery!\n aggregate: Setup__SetupQueryAggregate!\n ListView(\n listViewType: String!,\n label: String,\n displayColumns: [String!],\n filters: [Setup__ListFilterInput!],\n filterLogic: String,\n orderedByInfo: [Setup__ListOrderInput!]!\n ): Setup__ListView!\n ListViewObjectInfo(listViewType: String!): Setup__ListViewObjectInfo!\n}\n\ntype Setup__SetupAggregateConnection @generic {\n edges: [Setup__SetupAggregateEdge]\n pageInfo: PageInfo!\n totalCount: Int!\n}\n\ninput Setup__SetupGroupBy @generic {\n groupableDateField: GroupByDateFunction @fieldCategory\n groupableField: GroupByClause @fieldCategory\n groupableParentRelationship: Setup__SetupGroupBy @fieldCategory\n groupablePolymorphicParentRelationship: Setup__SetupPolymorphicParentRelationshipGroupBy @fieldCategory\n type: GroupByType = GROUP_BY\n}\n\ntype Setup__SetupAggregateEdge @generic {\n cursor: String!\n node: Setup__SetupRecordResult\n}\n\ninput Setup__SetupAggregateOrderBy @generic {\n orderableField: NoFunctionAggregateOrderByClause @fieldCategory\n orderableGeolocationField: OrderByGeolocationClause @fieldCategory\n orderableNumberField: AggregateOrderByNumberClause @fieldCategory\n orderableParentRelationship: Setup__SetupAggregateOrderBy @fieldCategory\n orderablePolymorphicParentRelationship: Setup__SetupPolymorphicParentRelationshipOrderBy @fieldCategory\n orderableStringField: AggregateOrderByStringClause @fieldCategory\n type: String\n}\n\n\nenum AggregateOrderByStringFunction {\n COUNT\n COUNT_DISTINCT\n MAX\n MIN\n}\n\ntype LongValue implements FieldValue {\n value: Long\n displayValue: String\n format: String\n}\n\ninput DateFunctionInput {\n value: LongOperators\n convertTimezoneValue: LongOperators\n}\n\n# Mutations aren't supported yet.\n#type Mutation {\n# uiapi(input: UIAPIMutationsInput): UIAPIMutations!\n#}\n\ntype DependentField {\n controllingField: String!\n dependentFields: [String]!\n}\n\ninput LongTextAreaOperators {\n eq: LongTextArea\n ne: LongTextArea\n like: LongTextArea\n lt: LongTextArea\n gt: LongTextArea\n lte: LongTextArea\n gte: LongTextArea\n in: [LongTextArea]\n nin: [LongTextArea]\n}\n\nenum __TypeKind {\n SCALAR\n OBJECT\n INTERFACE\n UNION\n ENUM\n INPUT_OBJECT\n LIST\n NON_NULL\n}\n\ntype Setup__SetupConnection @generic {\n edges: [Setup__SetupEdge]\n pageInfo: PageInfo!\n totalCount: Int!\n pageResultCount: Int!\n}\n\ntype PercentValue implements FieldValue {\n value: Percent\n displayValue: String\n format: String\n}\n\ninput DateTimeOperators {\n eq: DateTimeInput\n ne: DateTimeInput\n lt: DateTimeInput\n gt: DateTimeInput\n lte: DateTimeInput\n gte: DateTimeInput\n in: [DateTimeInput]\n nin: [DateTimeInput]\n DAY_IN_WEEK: DateFunctionInput\n DAY_IN_MONTH: DateFunctionInput\n DAY_IN_YEAR: DateFunctionInput\n WEEK_IN_MONTH: DateFunctionInput\n WEEK_IN_YEAR: DateFunctionInput\n CALENDAR_MONTH: DateFunctionInput\n CALENDAR_QUARTER: DateFunctionInput\n CALENDAR_YEAR: DateFunctionInput\n FISCAL_MONTH: DateFunctionInput\n FISCAL_QUARTER: DateFunctionInput\n FISCAL_YEAR: DateFunctionInput\n DAY_ONLY: DateTimeFunctionInput\n HOUR_IN_DAY: DateFunctionInput\n}\n\ninput NoFunctionAggregateOrderByClause {\n order: ResultsOrder\n nulls: NullsOrder\n}\n\ntype BooleanAggregate implements FieldValue {\n value: Boolean\n displayValue: String\n grouping: IntValue\n}\n\ntype RecordQueryAggregate {\n # RecordScope is replaced with String\n recordQueryAggregate(after: String, first: Int, groupBy: RecordGroupBy, orderBy: RecordAggregateOrderBy, scope: String @fieldCategory, upperBound: Int, where: RecordFilter): RecordAggregateConnection @fieldCategory\n}\n\ninput RecordAggregateOrderBy @generic {\n orderableField: NoFunctionAggregateOrderByClause @fieldCategory\n orderableGeolocationField: OrderByGeolocationClause @fieldCategory\n orderableNumberField: AggregateOrderByNumberClause @fieldCategory\n orderableParentRelationship: RecordAggregateOrderBy @fieldCategory\n orderablePolymorphicParentRelationship: PolymorphicParentRelationshipOrderBy @fieldCategory\n orderableStringField: AggregateOrderByStringClause @fieldCategory\n type: String\n}\n\ntype RecordConnection @generic {\n edges: [RecordEdge]\n pageInfo: PageInfo!\n totalCount: Int!\n pageResultCount: Int!\n}\n\ntype FilteredLookupInfo {\n controllingFields: [String]!\n dependent: Boolean!\n optionalFilter: Boolean!\n}\n\ninput PhoneNumberOperators {\n eq: PhoneNumber\n ne: PhoneNumber\n like: PhoneNumber\n lt: PhoneNumber\n gt: PhoneNumber\n lte: PhoneNumber\n gte: PhoneNumber\n in: [PhoneNumber]\n nin: [PhoneNumber]\n}\n\ntype ObjectInfo {\n ApiName: String!\n childRelationships: [ChildRelationship]!\n createable: Boolean!\n custom: Boolean!\n defaultRecordTypeId: ID\n deletable: Boolean!\n dependentFields: [DependentField]!\n feedEnabled: Boolean!\n fields: [Field]!\n keyPrefix: String\n label: String\n labelPlural: String\n layoutable: Boolean!\n mruEnabled: Boolean!\n nameFields: [String]!\n queryable: Boolean!\n recordTypeInfos: [RecordTypeInfo]!\n searchable: Boolean!\n themeInfo: ThemeInfo\n updateable: Boolean!\n locale: String\n}\n\ninput LongitudeOperators {\n eq: Longitude\n ne: Longitude\n lt: Longitude\n gt: Longitude\n lte: Longitude\n gte: Longitude\n in: [Longitude]\n nin: [Longitude]\n}\n\ninput RecordCreateRepresentation @generic {\n Int: Int @fieldCategory\n String: String @fieldCategory\n Boolean: Boolean @fieldCategory\n ID: IdOrRef @fieldCategory\n DateTime: DateTime @fieldCategory\n Time: Time @fieldCategory\n Date: Date @fieldCategory\n TextArea: TextArea @fieldCategory\n LongTextArea: LongTextArea @fieldCategory\n RichTextArea: RichTextArea @fieldCategory\n PhoneNumber: PhoneNumber @fieldCategory\n Email: Email @fieldCategory\n Url: Url @fieldCategory\n EncryptedString: EncryptedString @fieldCategory\n Currency: Currency @fieldCategory\n Longitude: Longitude @fieldCategory\n Latitude: Latitude @fieldCategory\n Picklist: Picklist @fieldCategory\n MultiPicklist: MultiPicklist @fieldCategory\n Long: Long @fieldCategory\n Double: Double @fieldCategory\n Percent: Percent @fieldCategory\n Base64: Base64 @fieldCategory\n JSON: JSON @fieldCategory\n}\n\ntype Field {\n ApiName: String!\n calculated: Boolean!\n compound: Boolean!\n compoundComponentName: String\n compoundFieldName: String\n controllerName: String\n controllingFields: [String]!\n createable: Boolean!\n custom: Boolean!\n dataType: DataType\n extraTypeInfo: FieldExtraTypeInfo\n filterable: Boolean!\n filteredLookupInfo: FilteredLookupInfo\n highScaleNumber: Boolean!\n htmlFormatted: Boolean!\n inlineHelpText: String\n label: String\n nameField: Boolean!\n polymorphicForeignKey: Boolean!\n precision: Int\n reference: Boolean!\n referenceTargetField: String\n referenceToInfos: [ReferenceToInfo]!\n relationshipName: String\n required: Boolean!\n scale: Int\n searchPrefilterable: Boolean\n sortable: Boolean!\n updateable: Boolean!\n}\n\nenum FieldExtraTypeInfo {\n IMAGE_URL\n EXTERNAL_LOOKUP\n INDIRECT_LOOKUP\n PERSONNAME\n SWITCHABLE_PERSONNAME\n PLAINTEXTAREA\n RICHTEXTAREA\n}\n\ntype RateLimit {\n cost: Long\n limit: Long\n remaining: Long\n resetAt: DateTime\n}\n\ninput DateRange {\n last_n_days: Int\n next_n_days: Int\n last_n_weeks: Int\n next_n_weeks: Int\n last_n_months: Int\n next_n_months: Int\n last_n_quarters: Int\n next_n_quarters: Int\n last_n_fiscal_quarters: Int\n next_n_fiscal_quarters: Int\n last_n_years: Int\n next_n_years: Int\n last_n_fiscal_years: Int\n next_n_fiscal_years: Int\n n_days_ago: Int\n n_weeks_ago: Int\n n_months_ago: Int\n n_quarters_ago: Int\n n_years_ago: Int\n n_fiscal_quarters_ago: Int\n n_fiscal_years_ago: Int\n}\n\ntype UIAPIMutations {\n recordCreate(input: RecordCreateInput!): RecordCreatePayload @fieldCategory\n recordDelete(input: RecordDeleteInput!): RecordDeletePayload @fieldCategory\n recordUpdate(input: RecordUpdateInput!): RecordUpdatePayload @fieldCategory\n}\n\ninput DateTimeFunctionInput {\n value: DatePrimitiveOperators\n convertTimezoneValue: DatePrimitiveOperators\n}\n\ntype Base64Value implements FieldValue {\n value: Base64\n displayValue: String\n}\n\ninput IntegerOperators {\n eq: Int\n ne: Int\n lt: Int\n gt: Int\n lte: Int\n gte: Int\n in: [Int]\n nin: [Int]\n}\n\ntype EncryptedStringValue implements FieldValue {\n value: EncryptedString\n displayValue: String\n}\n\ninterface Record {\n Id: ID!\n ApiName: String!\n WeakEtag: Long!\n DisplayValue: String\n LastModifiedById: IDValue\n LastModifiedDate: DateTimeValue\n SystemModstamp: DateTimeValue\n RecordTypeId(fallback: Boolean): IDValue\n}\n\ninput PolymorphicParentRelationshipRecordFilter @generic {\n RecordFilter: RecordFilter @fieldCategory\n}\n\ninput AggregateOrderByNumberClause {\n function: AggregateOrderByNumberFunction\n order: ResultsOrder\n nulls: NullsOrder\n}\n\ntype __Schema {\n types: [__Type!]!\n queryType: __Type!\n mutationType: __Type\n directives: [__Directive!]!\n subscriptionType: __Type\n}\n\ninput Setup__SetupPolymorphicParentRelationshipRecordFilter @generic {\n Setup__SetupFilter: Setup__SetupFilter @fieldCategory\n}\n\nunion Setup__SetupPolymorphicAggregateParentRelationship @generic = Setup__SetupRecordAggregate\n\ninput Setup__SetupPolymorphicParentRelationshipGroupBy @generic {\n Setup__SetupGroupBy: Setup__SetupGroupBy @fieldCategory\n}\n\ninput Setup__SetupPolymorphicParentRelationshipOrderBy @generic {\n Setup__SetupAggregateOrderBy: Setup__SetupAggregateOrderBy @fieldCategory\n}\n\ntype CompoundField @generic {\n IntValue: IntValue @fieldCategory\n StringValue: StringValue @fieldCategory\n BooleanValue: BooleanValue @fieldCategory\n IDValue: IDValue @fieldCategory\n DateTimeValue: DateTimeValue @fieldCategory\n TimeValue: TimeValue @fieldCategory\n DateValue: DateValue @fieldCategory\n TextAreaValue: TextAreaValue @fieldCategory\n LongTextAreaValue: LongTextAreaValue @fieldCategory\n RichTextAreaValue: RichTextAreaValue @fieldCategory\n PhoneNumberValue: PhoneNumberValue @fieldCategory\n EmailValue: EmailValue @fieldCategory\n UrlValue: UrlValue @fieldCategory\n EncryptedStringValue: EncryptedStringValue @fieldCategory\n CurrencyValue: CurrencyValue @fieldCategory\n LongitudeValue: LongitudeValue @fieldCategory\n LatitudeValue: LatitudeValue @fieldCategory\n PicklistValue: PicklistValue @fieldCategory\n MultiPicklistValue: MultiPicklistValue @fieldCategory\n LongValue: LongValue @fieldCategory\n DoubleValue: DoubleValue @fieldCategory\n PercentValue: PercentValue @fieldCategory\n Base64Value: Base64Value @fieldCategory\n JSONValue: JSONValue @fieldCategory\n}\n\ninput RecordUpdateInput @generic {\n Id: IdOrRef!\n record: RecordUpdateRepresentation! @fieldCategory\n}\n\ninput DateTimeInput {\n value: DateTime\n literal: DateLiteral\n range: DateRange\n}\n\ntype ChildRelationship {\n childObjectApiName: String!\n fieldName: String\n junctionIdListNames: [String]!\n junctionReferenceTo: [String]!\n relationshipName: String\n objectInfo: ObjectInfo\n}\n\ntype RecordResult @generic {\n aggregate: RecordAggregate\n}\n\ntype PageInfo {\n hasNextPage: Boolean!\n hasPreviousPage: Boolean!\n startCursor: String\n endCursor: String\n}\n\ntype CurrencyValue implements FieldValue {\n value: Currency\n displayValue: String\n format: String\n}\n\ninput DateInput {\n value: Date\n literal: DateLiteral\n range: DateRange\n}\n\ninput RecordGroupBy @generic {\n groupableField: GroupByClause @fieldCategory\n groupableDateField: GroupByDateFunction @fieldCategory\n groupableParentRelationship: RecordGroupBy @fieldCategory\n groupablePolymorphicParentRelationship: PolymorphicParentRelationshipGroupBy @fieldCategory\n type: GroupByType = GROUP_BY\n}\n\ntype DateFunctionAggregation {\n value: Long\n format: String\n}\n\ntype RecordQuery {\n recordQuery(after: String, first: Int, orderBy: RecordOrderBy, scope: String @fieldCategory, upperBound: Int, where: RecordFilter): RecordConnection @fieldCategory\n}\n\n# add browse family schema\ntype Analytics__Analytics {\n # assetTypes: [AnalyticsAssetType], but AnalyticsAssetType is an empty enum\n browse(after: String, assetTypes: [String], first: Int, orderBy: Analytics__AnalyticsOrderBy, where: Analytics__AnalyticsFilter): Analytics__AnalyticsBrowse!\n # Add other fields here if needed\n}\n\n# enum AnalyticsAssetType @generic {\n# }\n\ntype Analytics__AnalyticsBrowse {\n edges: [Analytics__AnalyticsEdge]\n totalCount: Int!\n pageResultCount: Int!\n pageInfo: PageInfo!\n}\n\ntype Analytics__AnalyticsEdge {\n node: Analytics__AnalyticsRepresentation\n cursor: String!\n}\n\ninterface Analytics__AnalyticsRepresentationInterface {\n MasterLabel: StringValue\n DeveloperName: StringValue\n CreatedById: IDValue\n LastModifiedById: IDValue\n LastModifiedDate: DateTimeValue\n CreatedDate: DateTimeValue\n Id: ID!\n ApiName: String!\n NamespacePrefix: StringValue\n AnalyticsWorkspaces: Analytics__AnalyticsWorkspaceAssetConnection\n Dataspaces: [Analytics__DataspaceRepresentation]\n RecordOperations: [String]\n}\n\ntype Analytics__DataspaceRepresentation {\n Id: ID!\n ApiName: String!\n MasterLabel: String\n DeveloperName: String\n}\n\ntype Analytics__AnalyticsRepresentation implements Analytics__AnalyticsRepresentationInterface {\n MasterLabel: StringValue\n DeveloperName: StringValue\n CreatedById: IDValue\n LastModifiedById: IDValue\n LastModifiedDate: DateTimeValue\n CreatedDate: DateTimeValue\n Id: ID!\n ApiName: String!\n NamespacePrefix: StringValue\n RecordOperations: [String]\n AnalyticsWorkspaces: Analytics__AnalyticsWorkspaceAssetConnection\n Dataspaces: [Analytics__DataspaceRepresentation]\n}\n\ntype Analytics__SemanticDefinition implements Analytics__AnalyticsRepresentationInterface {\n MasterLabel: StringValue\n DeveloperName: StringValue\n CreatedById: IDValue\n LastModifiedById: IDValue\n LastModifiedDate: DateTimeValue\n CreatedDate: DateTimeValue\n Id: ID!\n ApiName: String!\n NamespacePrefix: StringValue\n SemanticModel: Analytics__SemanticModel\n AnalyticsWorkspaces: Analytics__AnalyticsWorkspaceAssetConnection\n SubMetrics: Analytics__SemanticSubMetricDefinitionConnection\n Dataspaces: [Analytics__DataspaceRepresentation]\n RecordOperations: [String]\n}\n\ntype Analytics__MktDataConnector implements Analytics__AnalyticsRepresentationInterface {\n MasterLabel: StringValue\n DeveloperName: StringValue\n CreatedById: IDValue\n LastModifiedById: IDValue\n LastModifiedDate: DateTimeValue\n CreatedDate: DateTimeValue\n Id: ID!\n ApiName: String!\n NamespacePrefix: StringValue\n AnalyticsWorkspaces: Analytics__AnalyticsWorkspaceAssetConnection\n Dataspaces: [Analytics__DataspaceRepresentation]\n RecordOperations: [String]\n DataConnectorType: StringValue\n}\n\ninput Analytics__AnalyticsOrderBy {\n MasterLabel: Analytics__OrderByInput\n Id: Analytics__OrderByInput\n ApiName: Analytics__OrderByInput\n CreatedById: Analytics__OrderByInput\n CreatedDate: Analytics__OrderByInput\n LastModifiedDate: Analytics__OrderByInput\n LastModifiedById: Analytics__OrderByInput\n}\n\ninput Analytics__OrderByInput {\n order: Analytics__SortEnumType\n}\n\nenum Analytics__SortEnumType {\n ASC\n DESC\n}\n\ninput Analytics__AnalyticsFilter {\n Id: Setup__IdOperators\n MasterLabel: StringOperators\n DeveloperName: StringOperators\n NamespacePrefix: StringOperators\n DataConnectorType: StringOperators\n CreatedById: Setup__IdOperators\n CreatedDate: DateTimeOperators\n LastModifiedById: Setup__IdOperators\n LastModifiedDate: DateTimeOperators\n SemanticModel: Analytics__SemanticModelFilter\n and: [Analytics__AnalyticsFilter]\n or: [Analytics__AnalyticsFilter]\n not: Analytics__AnalyticsFilter\n}\n\ninput Analytics__SemanticModelFilter {\n DeveloperName: StringOperators\n MasterLabel: StringOperators\n}\n\ntype Analytics__AnalyticsWorkspaceAssetConnection {\n edges: [Analytics__AnalyticsWorkspaceAssetEdge]\n totalCount: Int!\n pageResultCount: Int!\n pageInfo: PageInfo!\n}\n\ntype Analytics__AnalyticsWorkspaceAssetEdge {\n node: Analytics__AnalyticsWorkspaceAsset\n cursor: String!\n}\n\ntype Analytics__AnalyticsWorkspaceAsset {\n AnalyticsWorkspace: Analytics__AnalyticsWorkspace\n AssetUsageType: PicklistValue\n ActivePromotionRequestId: IDValue\n MetadataSourceType: PicklistValue\n}\n\ntype Analytics__AnalyticsWorkspace {\n MasterLabel: StringValue\n DeveloperName: StringValue\n CreatedById: IDValue\n LastModifiedById: IDValue\n LastModifiedDate: DateTimeValue\n CreatedDate: DateTimeValue\n Id: ID!\n ApiName: String!\n}\n\ntype Analytics__SemanticSubMetricDefinitionConnection {\n edges: [Analytics__SemanticSubMetricDefinitionEdge]\n totalCount: Int!\n pageResultCount: Int!\n pageInfo: PageInfo!\n}\n\ntype Analytics__SemanticSubMetricDefinitionEdge {\n node: Analytics__SemanticSubMetricDefinitionRepresentation\n cursor: String!\n}\n\ntype Analytics__SemanticSubMetricDefinitionRepresentation {\n Id: ID!\n ApiName: String!\n}\n\ntype Analytics__SemanticModel {\n MasterLabel: StringValue\n DeveloperName: StringValue\n CreatedById: IDValue\n LastModifiedById: IDValue\n LastModifiedDate: DateTimeValue\n CreatedDate: DateTimeValue\n Id: ID!\n ApiName: String!\n AnalyticsWorkspaces: Analytics__AnalyticsWorkspaceAssetConnection\n NamespacePrefix: StringValue\n RelatedModel: Analytics__SemanticModelRelatedModelConnection\n Dataspaces: [Analytics__DataspaceRepresentation]\n RecordOperations: [String]\n}\n\ntype Analytics__SemanticModelRelatedModelConnection {\n edges: [Analytics__SemanticModelRelatedModelEdge]\n totalCount: Int!\n pageResultCount: Int!\n pageInfo: PageInfo!\n}\n\ntype Analytics__SemanticModelRelatedModelEdge {\n node: Analytics__SemanticModelRelatedModelRepresentation\n cursor: String!\n}\n\ntype Analytics__SemanticModelRelatedModelRepresentation {\n Id: ID!\n ApiName: String!\n SemanticModelId: IDValue\n RelatedSemanticModel: Analytics__SemanticModel\n}\n\ninput Setup__ListOrderInput {\n apiName: String!\n order: ResultsOrder\n}\n\ntype Setup__ListViewRow {\n id: ID!\n columns(apiNames: [String!]): [Setup__ListScalarField]!\n}\n\ntype Setup__ListView {\n listViewType: String!\n label: String\n displayColumns: [Setup__ListColumn!]!\n filters: [Setup__ListFilter!]\n filterLogic: String\n orderedByInfo: [Setup__ListOrder!]!\n rows(first: Int, after: String, upperBound: Int, orderBy: Setup__ListOrderInput): Setup__ListViewRowConnection\n}\n\ntype Setup__ListFilter {\n apiName: String!\n operator: Setup__ListFilterOperator!\n operand: [String!]!\n}\n\nenum Setup__ListFilterOperator {\n EQUALS\n NOT_EQUAL\n LESS_THAN\n GREATER_THAN\n LESS_OR_EQUAL\n GREATER_OR_EQUAL\n CONTAINS\n NOT_CONTAIN\n STARTS_WITH\n INCLUDES\n EXCLUDES\n WITHIN\n}\n\ntype Setup__ListViewRowConnection {\n edges: [Setup__ListViewRowEdge]\n pageInfo: PageInfo!\n totalCount: Int!\n}\n\ninput Setup__ListFilterInput {\n apiName: String!\n operator: Setup__ListFilterOperator!\n operand: [String!]!\n}\n\ntype Setup__ListOrder {\n apiName: String!\n order: ResultsOrder\n}\n\ntype Setup__ListScalarField {\n apiName: String!\n value: String\n dataType: DataType\n displayValue: String\n format: String\n label: String\n}\n\ntype Setup__ListViewRowEdge {\n cursor: String!\n node: Setup__ListViewRow\n}\n\ntype Setup__ListViewObjectInfo {\n columns(apiNames: [String!], displayable: Boolean, filterable: Boolean) : [Setup__ListColumn!]!\n}\n\ntype Setup__ListColumn {\n apiName: String!\n label: String!\n type: DataType!\n displayable: Boolean!\n filterable: Boolean!\n defaultOperator: Setup__ListFilterOperator\n allowedOperators: [Setup__ListFilterOperator!]\n sortable: Boolean\n lookupIdColumn: String\n}\n\ndirective @generic on OBJECT | INTERFACE | UNION | ENUM | INPUT_OBJECT\ndirective @fieldCategory on FIELD_DEFINITION | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION | ENUM_VALUE\ndirective @category(name: String!) on FIELD\n";
|
|
85680
85680
|
|
|
85681
85681
|
// Define additional schema that is missing from uiapi that we use in local evaluation
|
|
85682
85682
|
const additionalSchemaDefinitions = /* GraphQL */ `
|
|
@@ -88591,7 +88591,7 @@ function environmentAwareGraphQLBatchAdapterFactory(objectInfoService, luvio, is
|
|
|
88591
88591
|
// remove injected fields from response.
|
|
88592
88592
|
const data = snapshot.data;
|
|
88593
88593
|
const userResults = data.results.map((compositeResult, index) => {
|
|
88594
|
-
if (compositeResult.statusCode === HttpStatusCode$
|
|
88594
|
+
if (compositeResult.statusCode === HttpStatusCode$2.Ok) {
|
|
88595
88595
|
return {
|
|
88596
88596
|
result: removeSyntheticFields(compositeResult.result, config.batchQuery[index].query),
|
|
88597
88597
|
statusCode: compositeResult.statusCode,
|
|
@@ -88808,15 +88808,15 @@ function ldsParamsToString(params) {
|
|
|
88808
88808
|
}
|
|
88809
88809
|
function statusTextFromStatusCode(status) {
|
|
88810
88810
|
switch (status) {
|
|
88811
|
-
case HttpStatusCode$
|
|
88811
|
+
case HttpStatusCode$2.Ok:
|
|
88812
88812
|
return 'OK';
|
|
88813
|
-
case HttpStatusCode$
|
|
88813
|
+
case HttpStatusCode$2.NotModified:
|
|
88814
88814
|
return 'Not Modified';
|
|
88815
|
-
case HttpStatusCode$
|
|
88815
|
+
case HttpStatusCode$2.NotFound:
|
|
88816
88816
|
return 'Not Found';
|
|
88817
|
-
case HttpStatusCode$
|
|
88817
|
+
case HttpStatusCode$2.BadRequest:
|
|
88818
88818
|
return 'Bad Request';
|
|
88819
|
-
case HttpStatusCode$
|
|
88819
|
+
case HttpStatusCode$2.ServerError:
|
|
88820
88820
|
return 'Server Error';
|
|
88821
88821
|
default:
|
|
88822
88822
|
return `Unexpected HTTP Status Code: ${status}`;
|
|
@@ -89183,7 +89183,7 @@ function mergeAggregateUiResponse(response, mergeFunc) {
|
|
|
89183
89183
|
return {
|
|
89184
89184
|
...response,
|
|
89185
89185
|
ok: false,
|
|
89186
|
-
status: HttpStatusCode$
|
|
89186
|
+
status: HttpStatusCode$2.ServerError,
|
|
89187
89187
|
statusText: PARSE_ERROR,
|
|
89188
89188
|
body: [
|
|
89189
89189
|
{
|
|
@@ -89241,9 +89241,9 @@ function mergeBatchRecordsFields(first, second, collectionMergeFunc) {
|
|
|
89241
89241
|
for (let i = 0, len = targetResults.length; i < len; i += 1) {
|
|
89242
89242
|
const targetResult = targetResults[i];
|
|
89243
89243
|
const sourceResult = sourceResults[i];
|
|
89244
|
-
if (targetResult.statusCode !== HttpStatusCode$
|
|
89244
|
+
if (targetResult.statusCode !== HttpStatusCode$2.Ok)
|
|
89245
89245
|
continue;
|
|
89246
|
-
if (sourceResult.statusCode !== HttpStatusCode$
|
|
89246
|
+
if (sourceResult.statusCode !== HttpStatusCode$2.Ok) {
|
|
89247
89247
|
targetResults[i] = sourceResult;
|
|
89248
89248
|
continue;
|
|
89249
89249
|
}
|
|
@@ -93849,18 +93849,24 @@ let Err$1$1 = class Err {
|
|
|
93849
93849
|
};
|
|
93850
93850
|
const ok$1$1 = (value) => new Ok$1$1(value);
|
|
93851
93851
|
const err$1$1 = (err2) => new Err$1$1(err2);
|
|
93852
|
+
function isResult$1(value) {
|
|
93853
|
+
return value != null && typeof value === "object" && "isOk" in value && "isErr" in value && typeof value.isOk === "function" && typeof value.isErr === "function" && (value.isOk() === true && value.isErr() === false && "value" in value || value.isOk() === false && value.isErr() === true && "error" in value);
|
|
93854
|
+
}
|
|
93855
|
+
function isSubscribable$1(obj) {
|
|
93856
|
+
return typeof obj === "object" && obj !== null && "subscribe" in obj && typeof obj.subscribe === "function" && "refresh" in obj && typeof obj.refresh === "function";
|
|
93857
|
+
}
|
|
93852
93858
|
function isSubscribableResult$1(x) {
|
|
93853
|
-
if (
|
|
93859
|
+
if (!isResult$1(x)) {
|
|
93854
93860
|
return false;
|
|
93855
93861
|
}
|
|
93856
|
-
|
|
93857
|
-
|
|
93858
|
-
|
|
93859
|
-
|
|
93860
|
-
|
|
93861
|
-
|
|
93862
|
+
return isSubscribable$1(x.isOk() ? x.value : x.error);
|
|
93863
|
+
}
|
|
93864
|
+
function buildSubscribableResult$1(result, subscribe, refresh) {
|
|
93865
|
+
if (result.isOk()) {
|
|
93866
|
+
return ok$1$1({ data: result.value, subscribe, refresh });
|
|
93867
|
+
} else {
|
|
93868
|
+
return err$1$1({ failure: result.error, subscribe, refresh });
|
|
93862
93869
|
}
|
|
93863
|
-
return false;
|
|
93864
93870
|
}
|
|
93865
93871
|
function resolvedPromiseLike$3(result) {
|
|
93866
93872
|
if (isPromiseLike$3(result)) {
|
|
@@ -93948,6 +93954,47 @@ function toError(x) {
|
|
|
93948
93954
|
}
|
|
93949
93955
|
return new Error(typeof x === "string" ? x : JSON.stringify(x));
|
|
93950
93956
|
}
|
|
93957
|
+
var HttpStatusCode = /* @__PURE__ */ ((HttpStatusCode2) => {
|
|
93958
|
+
HttpStatusCode2[HttpStatusCode2["Ok"] = 200] = "Ok";
|
|
93959
|
+
HttpStatusCode2[HttpStatusCode2["Created"] = 201] = "Created";
|
|
93960
|
+
HttpStatusCode2[HttpStatusCode2["NoContent"] = 204] = "NoContent";
|
|
93961
|
+
HttpStatusCode2[HttpStatusCode2["NotModified"] = 304] = "NotModified";
|
|
93962
|
+
HttpStatusCode2[HttpStatusCode2["BadRequest"] = 400] = "BadRequest";
|
|
93963
|
+
HttpStatusCode2[HttpStatusCode2["Unauthorized"] = 401] = "Unauthorized";
|
|
93964
|
+
HttpStatusCode2[HttpStatusCode2["Forbidden"] = 403] = "Forbidden";
|
|
93965
|
+
HttpStatusCode2[HttpStatusCode2["NotFound"] = 404] = "NotFound";
|
|
93966
|
+
HttpStatusCode2[HttpStatusCode2["ServerError"] = 500] = "ServerError";
|
|
93967
|
+
HttpStatusCode2[HttpStatusCode2["GatewayTimeout"] = 504] = "GatewayTimeout";
|
|
93968
|
+
return HttpStatusCode2;
|
|
93969
|
+
})(HttpStatusCode || {});
|
|
93970
|
+
function getStatusText(status) {
|
|
93971
|
+
switch (status) {
|
|
93972
|
+
case 200:
|
|
93973
|
+
return "OK";
|
|
93974
|
+
case 201:
|
|
93975
|
+
return "Created";
|
|
93976
|
+
case 304:
|
|
93977
|
+
return "Not Modified";
|
|
93978
|
+
case 400:
|
|
93979
|
+
return "Bad Request";
|
|
93980
|
+
case 404:
|
|
93981
|
+
return "Not Found";
|
|
93982
|
+
case 500:
|
|
93983
|
+
return "Server Error";
|
|
93984
|
+
default:
|
|
93985
|
+
return `Unexpected HTTP Status Code: ${status}`;
|
|
93986
|
+
}
|
|
93987
|
+
}
|
|
93988
|
+
class FetchResponse extends Error {
|
|
93989
|
+
constructor(status, body, headers) {
|
|
93990
|
+
super();
|
|
93991
|
+
this.status = status;
|
|
93992
|
+
this.body = body;
|
|
93993
|
+
this.headers = headers || {};
|
|
93994
|
+
this.ok = status >= 200 && this.status <= 299;
|
|
93995
|
+
this.statusText = getStatusText(status);
|
|
93996
|
+
}
|
|
93997
|
+
}
|
|
93951
93998
|
let InternalError$1 = class InternalError extends Error {
|
|
93952
93999
|
constructor(data) {
|
|
93953
94000
|
super();
|
|
@@ -93992,35 +94039,27 @@ let NetworkCommand$1 = class NetworkCommand extends BaseCommand {
|
|
|
93992
94039
|
}
|
|
93993
94040
|
fetchSubscribableResult(res) {
|
|
93994
94041
|
return res.then((networkResult) => {
|
|
93995
|
-
|
|
93996
|
-
|
|
93997
|
-
|
|
93998
|
-
|
|
93999
|
-
|
|
94000
|
-
|
|
94001
|
-
|
|
94002
|
-
|
|
94003
|
-
|
|
94004
|
-
|
|
94005
|
-
};
|
|
94006
|
-
},
|
|
94007
|
-
refresh: () => this.refresh()
|
|
94008
|
-
});
|
|
94009
|
-
}
|
|
94042
|
+
return buildSubscribableResult$1(
|
|
94043
|
+
networkResult,
|
|
94044
|
+
(cb) => {
|
|
94045
|
+
this.subscriptions.push(cb);
|
|
94046
|
+
return () => {
|
|
94047
|
+
this.subscriptions = this.subscriptions.filter((cb2) => cb2 !== cb);
|
|
94048
|
+
};
|
|
94049
|
+
},
|
|
94050
|
+
() => this.refresh()
|
|
94051
|
+
);
|
|
94010
94052
|
});
|
|
94011
94053
|
}
|
|
94012
94054
|
refresh() {
|
|
94013
94055
|
return this.execute().then((newResult) => {
|
|
94014
|
-
if (newResult
|
|
94015
|
-
|
|
94016
|
-
|
|
94017
|
-
|
|
94018
|
-
|
|
94019
|
-
});
|
|
94020
|
-
}
|
|
94021
|
-
return ok$1$1(void 0);
|
|
94056
|
+
if (isSubscribableResult$1(newResult)) {
|
|
94057
|
+
const value = newResult.isOk() ? ok$1$1(newResult.value.data) : err$1$1(newResult.error.failure);
|
|
94058
|
+
this.subscriptions.forEach((cb) => {
|
|
94059
|
+
cb(value);
|
|
94060
|
+
});
|
|
94022
94061
|
}
|
|
94023
|
-
return
|
|
94062
|
+
return ok$1$1(void 0);
|
|
94024
94063
|
});
|
|
94025
94064
|
}
|
|
94026
94065
|
async afterRequestHooks(_options) {
|
|
@@ -94171,6 +94210,13 @@ let Err$2 = class Err {
|
|
|
94171
94210
|
};
|
|
94172
94211
|
const ok$3 = (value) => new Ok$3(value);
|
|
94173
94212
|
const err$2 = (err2) => new Err$2(err2);
|
|
94213
|
+
function buildSubscribableResult(result, subscribe, refresh) {
|
|
94214
|
+
if (result.isOk()) {
|
|
94215
|
+
return ok$3({ data: result.value, subscribe, refresh });
|
|
94216
|
+
} else {
|
|
94217
|
+
return err$2({ failure: result.error, subscribe, refresh });
|
|
94218
|
+
}
|
|
94219
|
+
}
|
|
94174
94220
|
function resolvedPromiseLike$2(result) {
|
|
94175
94221
|
if (isPromiseLike$2(result)) {
|
|
94176
94222
|
return result.then((nextResult) => nextResult);
|
|
@@ -94270,7 +94316,7 @@ class CacheControlRequestRunner {
|
|
|
94270
94316
|
const resultPromise = this.readFromCacheInternal(cache);
|
|
94271
94317
|
return resultPromise.then((result) => {
|
|
94272
94318
|
if (result.isErr()) {
|
|
94273
|
-
return err$2(result.error);
|
|
94319
|
+
return err$2(result.error.failure);
|
|
94274
94320
|
}
|
|
94275
94321
|
this.returnData = result;
|
|
94276
94322
|
return ok$3(void 0);
|
|
@@ -94299,7 +94345,7 @@ class CacheControlCommand extends BaseCommand {
|
|
|
94299
94345
|
this.keysUsed = /* @__PURE__ */ new Set();
|
|
94300
94346
|
this.keysUpdated = void 0;
|
|
94301
94347
|
this.operationType = "query";
|
|
94302
|
-
this.
|
|
94348
|
+
this.lastResult = void 0;
|
|
94303
94349
|
this.unsubscribeFromKeysImpl = () => void 0;
|
|
94304
94350
|
this.subscriptions = [];
|
|
94305
94351
|
this.instantiationTime = Date.now() / 1e3;
|
|
@@ -94316,32 +94362,54 @@ class CacheControlCommand extends BaseCommand {
|
|
|
94316
94362
|
instrumentationAttributes: this.instrumentationAttributes
|
|
94317
94363
|
});
|
|
94318
94364
|
return resultPromise.then((result) => {
|
|
94319
|
-
return this.handleCacheControllerResult(result, requestRunner)
|
|
94365
|
+
return this.handleCacheControllerResult(result, requestRunner).then((result2) => {
|
|
94366
|
+
if (this.lastResult === void 0) {
|
|
94367
|
+
if (result2.isErr()) {
|
|
94368
|
+
this.lastResult = { type: "error", error: result2.error.failure };
|
|
94369
|
+
} else {
|
|
94370
|
+
this.lastResult = { type: "data", data: result2.value.data };
|
|
94371
|
+
}
|
|
94372
|
+
}
|
|
94373
|
+
return result2;
|
|
94374
|
+
});
|
|
94320
94375
|
});
|
|
94321
94376
|
}
|
|
94322
94377
|
handleCacheControllerResult(result, requestRunner) {
|
|
94323
94378
|
const { networkError, networkData, returnData } = requestRunner;
|
|
94324
94379
|
return this.publishUpdatedKeys().then(() => {
|
|
94325
94380
|
if (networkError) {
|
|
94326
|
-
return
|
|
94381
|
+
return buildSubscribableResult(
|
|
94382
|
+
networkError,
|
|
94383
|
+
this.buildSubscribe(),
|
|
94384
|
+
() => this.refresh()
|
|
94385
|
+
);
|
|
94327
94386
|
}
|
|
94328
94387
|
if (result.isErr()) {
|
|
94329
94388
|
if (networkData) {
|
|
94330
|
-
return
|
|
94389
|
+
return buildSubscribableResult(
|
|
94390
|
+
networkData,
|
|
94391
|
+
this.buildSubscribe(),
|
|
94392
|
+
() => this.refresh()
|
|
94393
|
+
);
|
|
94331
94394
|
}
|
|
94332
|
-
return
|
|
94395
|
+
return buildSubscribableResult(result, this.buildSubscribe(), () => this.refresh());
|
|
94333
94396
|
}
|
|
94334
94397
|
if (this.subscriptions.length > 0) {
|
|
94335
94398
|
this.subscribeToKeysUsed();
|
|
94336
94399
|
}
|
|
94337
94400
|
if (returnData === void 0) {
|
|
94338
94401
|
if (networkData) {
|
|
94339
|
-
return
|
|
94402
|
+
return buildSubscribableResult(
|
|
94403
|
+
networkData,
|
|
94404
|
+
this.buildSubscribe(),
|
|
94405
|
+
() => this.refresh()
|
|
94406
|
+
);
|
|
94340
94407
|
}
|
|
94341
|
-
return
|
|
94342
|
-
|
|
94343
|
-
|
|
94344
|
-
|
|
94408
|
+
return buildSubscribableResult(
|
|
94409
|
+
err$2(new Error("Cache miss after fetching from network")),
|
|
94410
|
+
this.buildSubscribe(),
|
|
94411
|
+
() => this.refresh()
|
|
94412
|
+
);
|
|
94345
94413
|
}
|
|
94346
94414
|
return returnData;
|
|
94347
94415
|
});
|
|
@@ -94401,7 +94469,7 @@ class CacheControlCommand extends BaseCommand {
|
|
|
94401
94469
|
refresh() {
|
|
94402
94470
|
return this.rerun({ cacheControlConfig: { type: "no-cache" } }).then((result) => {
|
|
94403
94471
|
if (result.isErr()) {
|
|
94404
|
-
return err$2(result.error);
|
|
94472
|
+
return err$2(result.error.failure);
|
|
94405
94473
|
}
|
|
94406
94474
|
return ok$3(void 0);
|
|
94407
94475
|
});
|
|
@@ -94419,22 +94487,22 @@ class CacheControlCommand extends BaseCommand {
|
|
|
94419
94487
|
const result = this.readFromCache(recordableCache);
|
|
94420
94488
|
return result.then((readResult) => {
|
|
94421
94489
|
if (readResult.isErr()) {
|
|
94422
|
-
return
|
|
94490
|
+
return buildSubscribableResult(
|
|
94491
|
+
readResult,
|
|
94492
|
+
this.buildSubscribe(),
|
|
94493
|
+
() => this.refresh()
|
|
94494
|
+
);
|
|
94423
94495
|
} else {
|
|
94424
94496
|
const data = readResult.value;
|
|
94425
94497
|
this.keysUsed = recordableCache.keysRead;
|
|
94426
|
-
return
|
|
94498
|
+
return buildSubscribableResult(
|
|
94499
|
+
ok$3(data),
|
|
94500
|
+
this.buildSubscribe(),
|
|
94501
|
+
() => this.refresh()
|
|
94502
|
+
);
|
|
94427
94503
|
}
|
|
94428
94504
|
});
|
|
94429
94505
|
}
|
|
94430
|
-
constructSubscribableResult(data) {
|
|
94431
|
-
return ok$3({
|
|
94432
|
-
data,
|
|
94433
|
-
// this cast is in case we need to return Network data as a fallback for caching errors
|
|
94434
|
-
subscribe: this.buildSubscribe(),
|
|
94435
|
-
refresh: () => this.refresh()
|
|
94436
|
-
});
|
|
94437
|
-
}
|
|
94438
94506
|
/**
|
|
94439
94507
|
* Builds a function that subscribes to cache changes via the pubsub service. Whenever
|
|
94440
94508
|
* relevant cache updates occur, it re-reads the data and compares it against
|
|
@@ -94461,11 +94529,12 @@ class CacheControlCommand extends BaseCommand {
|
|
|
94461
94529
|
rerun(overrides) {
|
|
94462
94530
|
return this.execute(overrides).then((result) => {
|
|
94463
94531
|
if (result.isErr()) {
|
|
94464
|
-
this.
|
|
94532
|
+
this.lastResult = { type: "error", error: result.error.failure };
|
|
94533
|
+
this.invokeConsumerCallbacks(err$2(result.error.failure));
|
|
94465
94534
|
return result;
|
|
94466
94535
|
}
|
|
94467
|
-
if (!this.equals(this.
|
|
94468
|
-
this.
|
|
94536
|
+
if (this.lastResult === void 0 || this.lastResult.type === "error" || !this.equals(this.lastResult.data, result.value.data)) {
|
|
94537
|
+
this.lastResult = { type: "data", data: result.value.data };
|
|
94469
94538
|
this.invokeConsumerCallbacks(ok$3(result.value.data));
|
|
94470
94539
|
}
|
|
94471
94540
|
return result;
|
|
@@ -94748,9 +94817,6 @@ class AuraResourceCacheControlCommand extends AuraCacheControlCommand {
|
|
|
94748
94817
|
super(services);
|
|
94749
94818
|
this.services = services;
|
|
94750
94819
|
}
|
|
94751
|
-
execute() {
|
|
94752
|
-
return super.execute();
|
|
94753
|
-
}
|
|
94754
94820
|
readFromCache(cache) {
|
|
94755
94821
|
var _a;
|
|
94756
94822
|
const data = (_a = cache.get(this.buildKey())) == null ? void 0 : _a.value;
|
|
@@ -94808,35 +94874,27 @@ class NetworkCommand extends BaseCommand {
|
|
|
94808
94874
|
}
|
|
94809
94875
|
fetchSubscribableResult(res) {
|
|
94810
94876
|
return res.then((networkResult) => {
|
|
94811
|
-
|
|
94812
|
-
|
|
94813
|
-
|
|
94814
|
-
|
|
94815
|
-
|
|
94816
|
-
|
|
94817
|
-
|
|
94818
|
-
|
|
94819
|
-
|
|
94820
|
-
|
|
94821
|
-
};
|
|
94822
|
-
},
|
|
94823
|
-
refresh: () => this.refresh()
|
|
94824
|
-
});
|
|
94825
|
-
}
|
|
94877
|
+
return buildSubscribableResult$1(
|
|
94878
|
+
networkResult,
|
|
94879
|
+
(cb) => {
|
|
94880
|
+
this.subscriptions.push(cb);
|
|
94881
|
+
return () => {
|
|
94882
|
+
this.subscriptions = this.subscriptions.filter((cb2) => cb2 !== cb);
|
|
94883
|
+
};
|
|
94884
|
+
},
|
|
94885
|
+
() => this.refresh()
|
|
94886
|
+
);
|
|
94826
94887
|
});
|
|
94827
94888
|
}
|
|
94828
94889
|
refresh() {
|
|
94829
94890
|
return this.execute().then((newResult) => {
|
|
94830
|
-
if (newResult
|
|
94831
|
-
|
|
94832
|
-
|
|
94833
|
-
|
|
94834
|
-
|
|
94835
|
-
});
|
|
94836
|
-
}
|
|
94837
|
-
return ok$1$1(void 0);
|
|
94891
|
+
if (isSubscribableResult$1(newResult)) {
|
|
94892
|
+
const value = newResult.isOk() ? ok$1$1(newResult.value.data) : err$1$1(newResult.error.failure);
|
|
94893
|
+
this.subscriptions.forEach((cb) => {
|
|
94894
|
+
cb(value);
|
|
94895
|
+
});
|
|
94838
94896
|
}
|
|
94839
|
-
return
|
|
94897
|
+
return ok$1$1(void 0);
|
|
94840
94898
|
});
|
|
94841
94899
|
}
|
|
94842
94900
|
async afterRequestHooks(_options) {
|
|
@@ -95360,6 +95418,59 @@ class MaxAgeCacheControlStrategy extends CacheControlStrategy {
|
|
|
95360
95418
|
];
|
|
95361
95419
|
}
|
|
95362
95420
|
}
|
|
95421
|
+
class OnlyIfCachedCacheControlStrategy extends CacheControlStrategy {
|
|
95422
|
+
execute(options) {
|
|
95423
|
+
const startTime = this.services.instrumentation ? this.services.instrumentation.currentTimeMs() : 0;
|
|
95424
|
+
return this.services.cacheInclusionPolicy.read({
|
|
95425
|
+
l1: this.filteredCache,
|
|
95426
|
+
readFromL1: (l1) => this.requestRunner.readFromCache(l1)
|
|
95427
|
+
}).then((result) => {
|
|
95428
|
+
if (result.isOk()) {
|
|
95429
|
+
this.collectCacheHitInstrumentation(
|
|
95430
|
+
startTime,
|
|
95431
|
+
options == null ? void 0 : options.instrumentationAttributes
|
|
95432
|
+
);
|
|
95433
|
+
return ok$1$1(void 0);
|
|
95434
|
+
}
|
|
95435
|
+
this.collectCacheMissInstrumentation(startTime, options == null ? void 0 : options.instrumentationAttributes);
|
|
95436
|
+
const error = new UserVisibleError(
|
|
95437
|
+
new FetchResponse(HttpStatusCode.GatewayTimeout, {
|
|
95438
|
+
error: "Cache miss for only-if-cached request"
|
|
95439
|
+
})
|
|
95440
|
+
);
|
|
95441
|
+
return err$1$1(error);
|
|
95442
|
+
});
|
|
95443
|
+
}
|
|
95444
|
+
get expiredChecks() {
|
|
95445
|
+
return [
|
|
95446
|
+
(cacheControlMetadata) => cacheControlMetadata.type === "no-store"
|
|
95447
|
+
];
|
|
95448
|
+
}
|
|
95449
|
+
collectCacheHitInstrumentation(startTime, instrumentationAttributes) {
|
|
95450
|
+
if (this.services.instrumentation) {
|
|
95451
|
+
const meter = this.services.instrumentation.metrics.getMeter("onestore");
|
|
95452
|
+
meter.createCounter(`command.only-if-cached.cache-hit.count`).add(1, instrumentationAttributes);
|
|
95453
|
+
meter.createHistogram(
|
|
95454
|
+
`command.only-if-cached.cache-hit.duration`
|
|
95455
|
+
).record(
|
|
95456
|
+
this.services.instrumentation.currentTimeMs() - startTime,
|
|
95457
|
+
instrumentationAttributes
|
|
95458
|
+
);
|
|
95459
|
+
}
|
|
95460
|
+
}
|
|
95461
|
+
collectCacheMissInstrumentation(startTime, instrumentationAttributes) {
|
|
95462
|
+
if (this.services.instrumentation) {
|
|
95463
|
+
const meter = this.services.instrumentation.metrics.getMeter("onestore");
|
|
95464
|
+
meter.createCounter(`command.only-if-cached.cache-miss.count`).add(1, instrumentationAttributes);
|
|
95465
|
+
meter.createHistogram(
|
|
95466
|
+
`command.only-if-cached.cache-miss.duration`
|
|
95467
|
+
).record(
|
|
95468
|
+
this.services.instrumentation.currentTimeMs() - startTime,
|
|
95469
|
+
instrumentationAttributes
|
|
95470
|
+
);
|
|
95471
|
+
}
|
|
95472
|
+
}
|
|
95473
|
+
}
|
|
95363
95474
|
class CacheController {
|
|
95364
95475
|
constructor(services) {
|
|
95365
95476
|
this.services = services;
|
|
@@ -95373,6 +95484,8 @@ class CacheController {
|
|
|
95373
95484
|
return new MaxAgeCacheControlStrategy(this.services, config, requestRunner);
|
|
95374
95485
|
} else if (config.type === "no-cache") {
|
|
95375
95486
|
return new NoCacheCacheControlStrategy(this.services, config, requestRunner);
|
|
95487
|
+
} else if (config.type === "only-if-cached") {
|
|
95488
|
+
return new OnlyIfCachedCacheControlStrategy(this.services, config, requestRunner);
|
|
95376
95489
|
}
|
|
95377
95490
|
throw new Error(`Unknown cache control strategy ${config.type}`);
|
|
95378
95491
|
}
|
|
@@ -95891,7 +96004,7 @@ function buildServiceDescriptor$5(luvio) {
|
|
|
95891
96004
|
},
|
|
95892
96005
|
};
|
|
95893
96006
|
}
|
|
95894
|
-
// version: 1.
|
|
96007
|
+
// version: 1.387.0-1c34f8f965
|
|
95895
96008
|
|
|
95896
96009
|
/**
|
|
95897
96010
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -95917,7 +96030,7 @@ function buildServiceDescriptor$4(notifyRecordUpdateAvailable, getNormalizedLuvi
|
|
|
95917
96030
|
},
|
|
95918
96031
|
};
|
|
95919
96032
|
}
|
|
95920
|
-
// version: 1.
|
|
96033
|
+
// version: 1.387.0-1c34f8f965
|
|
95921
96034
|
|
|
95922
96035
|
/*!
|
|
95923
96036
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -96952,22 +97065,22 @@ class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheContro
|
|
|
96952
97065
|
),
|
|
96953
97066
|
(errs) => this.coerceError(errs)
|
|
96954
97067
|
).then((result) => {
|
|
96955
|
-
|
|
96956
|
-
return this.constructSubscribableResult(result.value);
|
|
96957
|
-
}
|
|
96958
|
-
return result;
|
|
97068
|
+
return buildSubscribableResult$1(result, this.buildSubscribe(), () => this.refresh());
|
|
96959
97069
|
});
|
|
96960
97070
|
} else if (this.shouldUseFetch()) {
|
|
96961
97071
|
return this.convertFetchResponseToData(
|
|
96962
97072
|
this.services.fetch(...this.originalFetchParams)
|
|
96963
97073
|
).then((result) => {
|
|
96964
|
-
|
|
96965
|
-
return this.constructSubscribableResult(result.value);
|
|
96966
|
-
}
|
|
96967
|
-
return result;
|
|
97074
|
+
return buildSubscribableResult$1(result, this.buildSubscribe(), () => this.refresh());
|
|
96968
97075
|
});
|
|
96969
97076
|
}
|
|
96970
|
-
return resolvedPromiseLike$3(
|
|
97077
|
+
return resolvedPromiseLike$3(
|
|
97078
|
+
buildSubscribableResult$1(
|
|
97079
|
+
err$1$1(toError("Aura/Fetch network services not found")),
|
|
97080
|
+
this.buildSubscribe(),
|
|
97081
|
+
() => this.refresh()
|
|
97082
|
+
)
|
|
97083
|
+
);
|
|
96971
97084
|
}
|
|
96972
97085
|
buildRequestQuery() {
|
|
96973
97086
|
const augmentedQueryResult = this.documentRootType.buildAugmentedQuery(this.config);
|
|
@@ -96996,9 +97109,6 @@ class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheContro
|
|
|
96996
97109
|
if (this.subscriptions.length > 0) {
|
|
96997
97110
|
this.subscribeToKeysUsed();
|
|
96998
97111
|
}
|
|
96999
|
-
if (this.lastEmittedData === void 0) {
|
|
97000
|
-
this.lastEmittedData = returnData.value.data;
|
|
97001
|
-
}
|
|
97002
97112
|
return returnData;
|
|
97003
97113
|
});
|
|
97004
97114
|
}
|
|
@@ -97090,10 +97200,7 @@ class HttpGraphQLNormalizedCacheControlCommand extends HttpNormalizedCacheContro
|
|
|
97090
97200
|
return this.convertFetchResponseToData(
|
|
97091
97201
|
this.services.fetch(...this.originalFetchParams)
|
|
97092
97202
|
).then((result) => {
|
|
97093
|
-
|
|
97094
|
-
return this.constructSubscribableResult(result.value);
|
|
97095
|
-
}
|
|
97096
|
-
return result;
|
|
97203
|
+
return buildSubscribableResult$1(result, this.buildSubscribe(), () => this.refresh());
|
|
97097
97204
|
});
|
|
97098
97205
|
}
|
|
97099
97206
|
// Any changes to this method should most likely be duplicated in the aura command as well
|
|
@@ -97106,9 +97213,6 @@ class HttpGraphQLNormalizedCacheControlCommand extends HttpNormalizedCacheContro
|
|
|
97106
97213
|
if (this.subscriptions.length > 0) {
|
|
97107
97214
|
this.subscribeToKeysUsed();
|
|
97108
97215
|
}
|
|
97109
|
-
if (this.lastEmittedData === void 0) {
|
|
97110
|
-
this.lastEmittedData = returnData.value.data;
|
|
97111
|
-
}
|
|
97112
97216
|
return returnData;
|
|
97113
97217
|
});
|
|
97114
97218
|
}
|
|
@@ -98117,7 +98221,7 @@ register$1({
|
|
|
98117
98221
|
id: '@salesforce/lds-network-adapter',
|
|
98118
98222
|
instrument: instrument$2,
|
|
98119
98223
|
});
|
|
98120
|
-
// version: 1.
|
|
98224
|
+
// version: 1.387.0-8c93a5dd2c
|
|
98121
98225
|
|
|
98122
98226
|
const { create: create$3, keys: keys$3 } = Object;
|
|
98123
98227
|
const { stringify: stringify$1, parse } = JSON;
|
|
@@ -99006,7 +99110,7 @@ function validateExpectedType(value, expectedType) {
|
|
|
99006
99110
|
function deepMerge$2(target, ...sources) {
|
|
99007
99111
|
for (const source of sources) {
|
|
99008
99112
|
for (const key in source) {
|
|
99009
|
-
if (hasOwnProperty$
|
|
99113
|
+
if (hasOwnProperty$3.call(source, key)) {
|
|
99010
99114
|
const targetValue = target[key];
|
|
99011
99115
|
const sourceValue = source[key];
|
|
99012
99116
|
if (Array.isArray(targetValue) && Array.isArray(sourceValue)) {
|
|
@@ -100370,18 +100474,17 @@ let Ok$1 = class Ok {
|
|
|
100370
100474
|
}
|
|
100371
100475
|
};
|
|
100372
100476
|
const ok$1 = (value) => new Ok$1(value);
|
|
100477
|
+
function isResult(value) {
|
|
100478
|
+
return value != null && typeof value === "object" && "isOk" in value && "isErr" in value && typeof value.isOk === "function" && typeof value.isErr === "function" && (value.isOk() === true && value.isErr() === false && "value" in value || value.isOk() === false && value.isErr() === true && "error" in value);
|
|
100479
|
+
}
|
|
100480
|
+
function isSubscribable(obj) {
|
|
100481
|
+
return typeof obj === "object" && obj !== null && "subscribe" in obj && typeof obj.subscribe === "function" && "refresh" in obj && typeof obj.refresh === "function";
|
|
100482
|
+
}
|
|
100373
100483
|
function isSubscribableResult(x) {
|
|
100374
|
-
if (
|
|
100484
|
+
if (!isResult(x)) {
|
|
100375
100485
|
return false;
|
|
100376
100486
|
}
|
|
100377
|
-
|
|
100378
|
-
if (x.isOk()) {
|
|
100379
|
-
return "value" in x && typeof x.value === "object" && x.value !== null && "subscribe" in x.value && typeof x.value.subscribe === "function" && "refresh" in x.value && typeof x.value.refresh === "function";
|
|
100380
|
-
} else {
|
|
100381
|
-
return "error" in x;
|
|
100382
|
-
}
|
|
100383
|
-
}
|
|
100384
|
-
return false;
|
|
100487
|
+
return isSubscribable(x.isOk() ? x.value : x.error);
|
|
100385
100488
|
}
|
|
100386
100489
|
const deeplyFrozen = new WeakSetConstructor();
|
|
100387
100490
|
function deepFreeze(value) {
|
|
@@ -100475,6 +100578,18 @@ function logError(error) {
|
|
|
100475
100578
|
}
|
|
100476
100579
|
console.error("OneStore Command threw an error that we did not expect", error);
|
|
100477
100580
|
}
|
|
100581
|
+
const supportedCachePolicyTypes = ["no-cache", "only-if-cached"];
|
|
100582
|
+
function requestContextIsSupportedCachePolicy(requestContext) {
|
|
100583
|
+
return typeof requestContext === "object" && requestContext !== null && "cachePolicy" in requestContext && typeof requestContext.cachePolicy === "object" && requestContext.cachePolicy !== null && "type" in requestContext.cachePolicy && typeof requestContext.cachePolicy.type === "string" && supportedCachePolicyTypes.includes(
|
|
100584
|
+
requestContext.cachePolicy.type
|
|
100585
|
+
);
|
|
100586
|
+
}
|
|
100587
|
+
function getOverridesForLegacyRequestContext(requestContext) {
|
|
100588
|
+
if (requestContextIsSupportedCachePolicy(requestContext)) {
|
|
100589
|
+
return { cacheControlConfig: { type: requestContext.cachePolicy.type } };
|
|
100590
|
+
}
|
|
100591
|
+
return {};
|
|
100592
|
+
}
|
|
100478
100593
|
class CommandWireAdapterConstructor {
|
|
100479
100594
|
constructor(callback, sourceContext, options) {
|
|
100480
100595
|
this.callback = callback;
|
|
@@ -100532,7 +100647,11 @@ class CommandWireAdapterConstructor {
|
|
|
100532
100647
|
consumerEmittedData.refresh = consumerEmittedRefresh;
|
|
100533
100648
|
}
|
|
100534
100649
|
if (result.isErr()) {
|
|
100535
|
-
|
|
100650
|
+
if (isSubscribableResult(result)) {
|
|
100651
|
+
consumerEmittedData.error = result.error.failure;
|
|
100652
|
+
} else {
|
|
100653
|
+
consumerEmittedData.error = result.error;
|
|
100654
|
+
}
|
|
100536
100655
|
} else {
|
|
100537
100656
|
if (isSubscribableResult(result)) {
|
|
100538
100657
|
deepFreeze(result.value.data);
|
|
@@ -100555,11 +100674,11 @@ class CommandWireAdapterConstructor {
|
|
|
100555
100674
|
if (this.configSchema) {
|
|
100556
100675
|
try {
|
|
100557
100676
|
assertIsValid(this.config, this.configSchema);
|
|
100558
|
-
} catch (
|
|
100559
|
-
if (isIncompleteConfigError(
|
|
100677
|
+
} catch (err2) {
|
|
100678
|
+
if (isIncompleteConfigError(err2)) {
|
|
100560
100679
|
return;
|
|
100561
100680
|
}
|
|
100562
|
-
throw
|
|
100681
|
+
throw err2;
|
|
100563
100682
|
}
|
|
100564
100683
|
}
|
|
100565
100684
|
const initialConfig = this.config;
|
|
@@ -100586,9 +100705,22 @@ class CommandWireAdapterConstructor {
|
|
|
100586
100705
|
this.emit(result);
|
|
100587
100706
|
}
|
|
100588
100707
|
} else {
|
|
100589
|
-
|
|
100590
|
-
|
|
100591
|
-
|
|
100708
|
+
if (isSubscribableResult(result)) {
|
|
100709
|
+
const value = result.error;
|
|
100710
|
+
this.unsubscriber = value.subscribe((updatedResult) => {
|
|
100711
|
+
if (!this.connected || this.config !== initialConfig) {
|
|
100712
|
+
this.unsubscribe();
|
|
100713
|
+
return;
|
|
100714
|
+
}
|
|
100715
|
+
this.emit(updatedResult);
|
|
100716
|
+
});
|
|
100717
|
+
this.refresh = value.refresh;
|
|
100718
|
+
this.emit(result);
|
|
100719
|
+
} else {
|
|
100720
|
+
this.unsubscriber = () => {
|
|
100721
|
+
};
|
|
100722
|
+
this.emit(result);
|
|
100723
|
+
}
|
|
100592
100724
|
}
|
|
100593
100725
|
});
|
|
100594
100726
|
} catch (e) {
|
|
@@ -100605,8 +100737,8 @@ class CommandWireAdapterConstructor {
|
|
|
100605
100737
|
}
|
|
100606
100738
|
}
|
|
100607
100739
|
}
|
|
100608
|
-
function isIncompleteConfigError(
|
|
100609
|
-
return
|
|
100740
|
+
function isIncompleteConfigError(err2) {
|
|
100741
|
+
return err2 instanceof MissingRequiredPropertyError || err2 instanceof JsonSchemaViolationError && err2.validationErrors.find(
|
|
100610
100742
|
(validationError) => validationError instanceof MissingRequiredPropertyError
|
|
100611
100743
|
) !== void 0;
|
|
100612
100744
|
}
|
|
@@ -100650,16 +100782,31 @@ function resolveAst(ast) {
|
|
|
100650
100782
|
}
|
|
100651
100783
|
return result;
|
|
100652
100784
|
}
|
|
100653
|
-
function wrapConfigAndVerify(config) {
|
|
100785
|
+
function wrapConfigAndVerify(config, options) {
|
|
100654
100786
|
if (config == null ? void 0 : config.query) {
|
|
100655
100787
|
config = { ...config, query: resolveAst(config.query) };
|
|
100656
100788
|
if (config.query === void 0) {
|
|
100657
100789
|
throw new Error("Internal error in GraphQL adapter occurred: Unable to resolve query");
|
|
100658
100790
|
}
|
|
100659
|
-
validateGraphQLOperations(config, {
|
|
100791
|
+
validateGraphQLOperations(config, {
|
|
100792
|
+
acceptedOperations: (options == null ? void 0 : options.acceptedOperations) ?? ["query"]
|
|
100793
|
+
});
|
|
100660
100794
|
}
|
|
100661
100795
|
return config;
|
|
100662
100796
|
}
|
|
100797
|
+
function toGraphQLResponseFromFailure(failure) {
|
|
100798
|
+
if (isUserVisibleError(failure)) {
|
|
100799
|
+
return {
|
|
100800
|
+
data: failure.data.data,
|
|
100801
|
+
errors: failure.data.errors
|
|
100802
|
+
};
|
|
100803
|
+
}
|
|
100804
|
+
logError(failure);
|
|
100805
|
+
return {
|
|
100806
|
+
data: void 0,
|
|
100807
|
+
errors: [{ message: "Internal error in GraphQL adapter occurred", locations: [] }]
|
|
100808
|
+
};
|
|
100809
|
+
}
|
|
100663
100810
|
class GraphQLCommandWireAdapterConstructor extends CommandWireAdapterConstructor {
|
|
100664
100811
|
emit(result) {
|
|
100665
100812
|
try {
|
|
@@ -100696,18 +100843,10 @@ class GraphQLCommandWireAdapterConstructor extends CommandWireAdapterConstructor
|
|
|
100696
100843
|
consumerEmittedData.refresh = consumerEmittedRefresh;
|
|
100697
100844
|
}
|
|
100698
100845
|
if (result.isErr()) {
|
|
100699
|
-
|
|
100700
|
-
|
|
100701
|
-
|
|
100702
|
-
|
|
100703
|
-
} else {
|
|
100704
|
-
consumerEmittedData.errors = [
|
|
100705
|
-
{
|
|
100706
|
-
message: "Internal error in GraphQL adapter occurred",
|
|
100707
|
-
locations: []
|
|
100708
|
-
}
|
|
100709
|
-
];
|
|
100710
|
-
}
|
|
100846
|
+
const failure = isSubscribableResult(result) ? result.error.failure : result.error;
|
|
100847
|
+
const resp = toGraphQLResponseFromFailure(failure);
|
|
100848
|
+
consumerEmittedData.data = resp.data;
|
|
100849
|
+
consumerEmittedData.errors = resp.errors;
|
|
100711
100850
|
} else {
|
|
100712
100851
|
consumerEmittedData.data = result.value.data;
|
|
100713
100852
|
}
|
|
@@ -100809,15 +100948,9 @@ function buildAsyncGraphQLImperativeInvoker(getCommand, exposeRefresh = false) {
|
|
|
100809
100948
|
};
|
|
100810
100949
|
}
|
|
100811
100950
|
} else {
|
|
100812
|
-
|
|
100813
|
-
|
|
100814
|
-
|
|
100815
|
-
} else {
|
|
100816
|
-
logError(result.error);
|
|
100817
|
-
consumerEmittedData.errors = [
|
|
100818
|
-
{ message: "Internal error in GraphQL adapter occurred", locations: [] }
|
|
100819
|
-
];
|
|
100820
|
-
}
|
|
100951
|
+
const resp = toGraphQLResponseFromFailure(result.error.failure);
|
|
100952
|
+
consumerEmittedData.data = resp.data;
|
|
100953
|
+
consumerEmittedData.errors = resp.errors;
|
|
100821
100954
|
}
|
|
100822
100955
|
return consumerEmittedData;
|
|
100823
100956
|
} catch (error) {
|
|
@@ -100834,7 +100967,7 @@ function buildAsyncGraphQLImperativeLegacyInvoker(getCommand) {
|
|
|
100834
100967
|
config = wrapConfigAndVerify(config);
|
|
100835
100968
|
const command = getCommand({ config, assertIsValid });
|
|
100836
100969
|
try {
|
|
100837
|
-
const overrides =
|
|
100970
|
+
const overrides = getOverridesForLegacyRequestContext(requestContext);
|
|
100838
100971
|
const result = await command.execute(overrides);
|
|
100839
100972
|
const consumerEmittedData = {
|
|
100840
100973
|
data: void 0,
|
|
@@ -100844,15 +100977,9 @@ function buildAsyncGraphQLImperativeLegacyInvoker(getCommand) {
|
|
|
100844
100977
|
deepFreeze(result.value);
|
|
100845
100978
|
consumerEmittedData.data = result.value.data.data;
|
|
100846
100979
|
} else {
|
|
100847
|
-
|
|
100848
|
-
|
|
100849
|
-
|
|
100850
|
-
} else {
|
|
100851
|
-
logError(result.error);
|
|
100852
|
-
consumerEmittedData.errors = [
|
|
100853
|
-
{ message: "Internal error in GraphQL adapter occurred", locations: [] }
|
|
100854
|
-
];
|
|
100855
|
-
}
|
|
100980
|
+
const { data, errors } = toGraphQLResponseFromFailure(result.error.failure);
|
|
100981
|
+
consumerEmittedData.data = data;
|
|
100982
|
+
consumerEmittedData.errors = errors;
|
|
100856
100983
|
}
|
|
100857
100984
|
callback(consumerEmittedData);
|
|
100858
100985
|
} catch (error) {
|
|
@@ -100868,7 +100995,7 @@ function buildAsyncGraphQLImperativeLegacyInvoker(getCommand) {
|
|
|
100868
100995
|
const command = getCommand({ config, assertIsValid });
|
|
100869
100996
|
let unsubscribe = () => {
|
|
100870
100997
|
};
|
|
100871
|
-
const overrides =
|
|
100998
|
+
const overrides = getOverridesForLegacyRequestContext(requestContext);
|
|
100872
100999
|
command.execute(overrides).then((result) => {
|
|
100873
101000
|
const consumerEmittedData = {
|
|
100874
101001
|
data: void 0,
|
|
@@ -100877,42 +101004,20 @@ function buildAsyncGraphQLImperativeLegacyInvoker(getCommand) {
|
|
|
100877
101004
|
if (result.isOk()) {
|
|
100878
101005
|
deepFreeze(result.value);
|
|
100879
101006
|
consumerEmittedData.data = result.value.data.data;
|
|
100880
|
-
unsubscribe = result.value.subscribe(
|
|
100881
|
-
|
|
100882
|
-
|
|
100883
|
-
errors: void 0
|
|
100884
|
-
};
|
|
100885
|
-
if (res.isOk()) {
|
|
100886
|
-
consumerEmittedData2.data = res.value.data;
|
|
100887
|
-
} else {
|
|
100888
|
-
if (isUserVisibleError(res.error)) {
|
|
100889
|
-
consumerEmittedData2.data = res.error.data.data;
|
|
100890
|
-
consumerEmittedData2.errors = res.error.data.errors;
|
|
100891
|
-
} else {
|
|
100892
|
-
logError(res.error);
|
|
100893
|
-
consumerEmittedData2.errors = [
|
|
100894
|
-
{
|
|
100895
|
-
message: "Internal error in GraphQL adapter occurred",
|
|
100896
|
-
locations: []
|
|
100897
|
-
}
|
|
100898
|
-
];
|
|
100899
|
-
}
|
|
101007
|
+
unsubscribe = result.value.subscribe(
|
|
101008
|
+
(res) => {
|
|
101009
|
+
handleEmit(res, callback);
|
|
100900
101010
|
}
|
|
100901
|
-
|
|
100902
|
-
});
|
|
101011
|
+
);
|
|
100903
101012
|
} else {
|
|
100904
|
-
|
|
100905
|
-
|
|
100906
|
-
|
|
100907
|
-
|
|
100908
|
-
|
|
100909
|
-
|
|
100910
|
-
|
|
100911
|
-
|
|
100912
|
-
locations: []
|
|
100913
|
-
}
|
|
100914
|
-
];
|
|
100915
|
-
}
|
|
101013
|
+
const { data, errors } = toGraphQLResponseFromFailure(result.error.failure);
|
|
101014
|
+
consumerEmittedData.data = data;
|
|
101015
|
+
consumerEmittedData.errors = errors;
|
|
101016
|
+
unsubscribe = result.error.subscribe(
|
|
101017
|
+
(res) => {
|
|
101018
|
+
handleEmit(res, callback);
|
|
101019
|
+
}
|
|
101020
|
+
);
|
|
100916
101021
|
}
|
|
100917
101022
|
callback(consumerEmittedData);
|
|
100918
101023
|
});
|
|
@@ -100922,10 +101027,21 @@ function buildAsyncGraphQLImperativeLegacyInvoker(getCommand) {
|
|
|
100922
101027
|
};
|
|
100923
101028
|
return { invoke, subscribe };
|
|
100924
101029
|
}
|
|
100925
|
-
function
|
|
100926
|
-
|
|
101030
|
+
function handleEmit(res, callback) {
|
|
101031
|
+
const consumerEmittedData = {
|
|
101032
|
+
data: void 0,
|
|
101033
|
+
errors: void 0
|
|
101034
|
+
};
|
|
101035
|
+
if (res.isOk()) {
|
|
101036
|
+
consumerEmittedData.data = res.value.data;
|
|
101037
|
+
} else {
|
|
101038
|
+
const { data, errors } = toGraphQLResponseFromFailure(res.error);
|
|
101039
|
+
consumerEmittedData.data = data;
|
|
101040
|
+
consumerEmittedData.errors = errors;
|
|
101041
|
+
}
|
|
101042
|
+
callback(consumerEmittedData);
|
|
100927
101043
|
}
|
|
100928
|
-
// version: 1.
|
|
101044
|
+
// version: 1.387.0-1c34f8f965
|
|
100929
101045
|
|
|
100930
101046
|
class Analytics__AnalyticsBrowseRepository extends UnidentifiableGraphQLTypeRepository {
|
|
100931
101047
|
constructor(services, typeRegistry) {
|
|
@@ -103583,6 +103699,7 @@ class GraphQLTypeRegistry {
|
|
|
103583
103699
|
* All rights reserved.
|
|
103584
103700
|
* For full license text, see the LICENSE.txt file
|
|
103585
103701
|
*/
|
|
103702
|
+
const { hasOwnProperty: hasOwnProperty$1 } = Object.prototype;
|
|
103586
103703
|
class Ok {
|
|
103587
103704
|
constructor(value) {
|
|
103588
103705
|
this.value = value;
|
|
@@ -104008,18 +104125,133 @@ class RecordQueryAggregateRepository extends RecordQueryAggregateRepository$1 {
|
|
|
104008
104125
|
}
|
|
104009
104126
|
}
|
|
104010
104127
|
|
|
104011
|
-
|
|
104012
|
-
|
|
104013
|
-
|
|
104014
|
-
|
|
104015
|
-
|
|
104016
|
-
|
|
104017
|
-
|
|
104018
|
-
|
|
104019
|
-
|
|
104020
|
-
|
|
104021
|
-
|
|
104022
|
-
|
|
104128
|
+
class BlobObjectRepository extends UnidentifiableGraphQLTypeRepository {
|
|
104129
|
+
constructor() {
|
|
104130
|
+
super(...arguments);
|
|
104131
|
+
this.namespace = 'uiapi';
|
|
104132
|
+
this.typeName = 'Blob';
|
|
104133
|
+
this.fields = {};
|
|
104134
|
+
this.implementedInterfaces = [];
|
|
104135
|
+
}
|
|
104136
|
+
normalizeFragment(_cache, _input, _fragment, errorCollector) {
|
|
104137
|
+
errorCollector.push({
|
|
104138
|
+
type: 'unknown',
|
|
104139
|
+
error: new Error('Fragments are not supported for Blob fields'),
|
|
104140
|
+
});
|
|
104141
|
+
return {};
|
|
104142
|
+
}
|
|
104143
|
+
denormalizeFragment(_cache, _input, _fragment, errorCollector) {
|
|
104144
|
+
errorCollector.push({
|
|
104145
|
+
type: 'unknown',
|
|
104146
|
+
error: new Error('Fragments are not supported for Blob fields'),
|
|
104147
|
+
});
|
|
104148
|
+
return {};
|
|
104149
|
+
}
|
|
104150
|
+
getFieldDef(_input, _selection) {
|
|
104151
|
+
return new BlobFieldDef({});
|
|
104152
|
+
}
|
|
104153
|
+
}
|
|
104154
|
+
class BlobFieldDef {
|
|
104155
|
+
constructor(services) {
|
|
104156
|
+
this.objectRepository = new BlobObjectRepository(services);
|
|
104157
|
+
}
|
|
104158
|
+
read(cache, input) {
|
|
104159
|
+
const errors = [];
|
|
104160
|
+
if (input.normalizedData.type === 'array') {
|
|
104161
|
+
const data = input.normalizedData.data.map((item) => {
|
|
104162
|
+
const result = this.read(cache, { ...input, normalizedData: item });
|
|
104163
|
+
if (result.isErr()) {
|
|
104164
|
+
errors.push(...result.error);
|
|
104165
|
+
return undefined;
|
|
104166
|
+
}
|
|
104167
|
+
return result.value;
|
|
104168
|
+
});
|
|
104169
|
+
if (errors.length > 0) {
|
|
104170
|
+
return err(errors);
|
|
104171
|
+
}
|
|
104172
|
+
return ok(data);
|
|
104173
|
+
}
|
|
104174
|
+
else if (input.normalizedData.type === 'object') {
|
|
104175
|
+
const selections = input.selection.selectionSet?.selections;
|
|
104176
|
+
if (!selections) {
|
|
104177
|
+
return err([
|
|
104178
|
+
{
|
|
104179
|
+
type: 'unknown',
|
|
104180
|
+
error: new Error('Object data must have a selection set'),
|
|
104181
|
+
},
|
|
104182
|
+
]);
|
|
104183
|
+
}
|
|
104184
|
+
const result = this.objectRepository.read(cache, {
|
|
104185
|
+
...input,
|
|
104186
|
+
normalizedData: input.normalizedData.data,
|
|
104187
|
+
selections,
|
|
104188
|
+
request: input.request,
|
|
104189
|
+
});
|
|
104190
|
+
if (result.isErr()) {
|
|
104191
|
+
return err(result.error);
|
|
104192
|
+
}
|
|
104193
|
+
return ok(result.value);
|
|
104194
|
+
}
|
|
104195
|
+
else {
|
|
104196
|
+
return ok(input.normalizedData.data);
|
|
104197
|
+
}
|
|
104198
|
+
}
|
|
104199
|
+
write(cache, input) {
|
|
104200
|
+
if (Array.isArray(input.data)) {
|
|
104201
|
+
const errors = [];
|
|
104202
|
+
const result = {
|
|
104203
|
+
type: 'array',
|
|
104204
|
+
data: input.data.map((item) => {
|
|
104205
|
+
const result = this.write(cache, { ...input, data: item });
|
|
104206
|
+
if (result.isErr()) {
|
|
104207
|
+
errors.push(...result.error);
|
|
104208
|
+
return undefined;
|
|
104209
|
+
}
|
|
104210
|
+
return result.value;
|
|
104211
|
+
}),
|
|
104212
|
+
};
|
|
104213
|
+
if (errors.length > 0) {
|
|
104214
|
+
return err(errors);
|
|
104215
|
+
}
|
|
104216
|
+
return ok(result);
|
|
104217
|
+
}
|
|
104218
|
+
else if (typeof input.data === 'object' && input.data !== null) {
|
|
104219
|
+
const selections = input.selection.selectionSet?.selections;
|
|
104220
|
+
if (!selections) {
|
|
104221
|
+
return err([
|
|
104222
|
+
{
|
|
104223
|
+
type: 'unknown',
|
|
104224
|
+
error: new Error('Object data must have a selection set'),
|
|
104225
|
+
},
|
|
104226
|
+
]);
|
|
104227
|
+
}
|
|
104228
|
+
const result = this.objectRepository.write(cache, {
|
|
104229
|
+
...input,
|
|
104230
|
+
selections,
|
|
104231
|
+
request: input.request,
|
|
104232
|
+
});
|
|
104233
|
+
if (result.isErr()) {
|
|
104234
|
+
return err(result.error);
|
|
104235
|
+
}
|
|
104236
|
+
return ok({
|
|
104237
|
+
type: 'object',
|
|
104238
|
+
data: result.value,
|
|
104239
|
+
});
|
|
104240
|
+
}
|
|
104241
|
+
else {
|
|
104242
|
+
return ok({
|
|
104243
|
+
type: 'scalar',
|
|
104244
|
+
data: input.data,
|
|
104245
|
+
});
|
|
104246
|
+
}
|
|
104247
|
+
}
|
|
104248
|
+
buildFieldKey(selection, variables) {
|
|
104249
|
+
return buildFieldKey(selection.name.value, selection.arguments, variables);
|
|
104250
|
+
}
|
|
104251
|
+
augmentSelections(input) {
|
|
104252
|
+
return input;
|
|
104253
|
+
}
|
|
104254
|
+
}
|
|
104023
104255
|
|
|
104024
104256
|
// The generated repository is identifiable, since setup data isn't cached,
|
|
104025
104257
|
// there's no need for an identifiable repository
|
|
@@ -104075,7 +104307,7 @@ class SetupEntityRepresentationRepository extends UnidentifiableGraphQLTypeRepos
|
|
|
104075
104307
|
return super.getFieldDef(input, selection);
|
|
104076
104308
|
}
|
|
104077
104309
|
// We should make this smarter, storing and returning blobs isn't great since it could, and likely will, include unrequested field data
|
|
104078
|
-
return
|
|
104310
|
+
return new BlobFieldDef(this.services);
|
|
104079
104311
|
}
|
|
104080
104312
|
satisfiesFragmentTypeCondition(input, fragment) {
|
|
104081
104313
|
return genericSatisfiesFragmentTypeCondition(super.satisfiesFragmentTypeCondition.bind(this), input, fragment, this.typeName);
|
|
@@ -104115,7 +104347,7 @@ class SetupRecordAggregateRepository extends Setup__SetupRecordAggregateReposito
|
|
|
104115
104347
|
if (staticFields.includes(selection.name.value)) {
|
|
104116
104348
|
return super.getFieldDef(input, selection);
|
|
104117
104349
|
}
|
|
104118
|
-
return
|
|
104350
|
+
return new BlobFieldDef(this.services);
|
|
104119
104351
|
}
|
|
104120
104352
|
satisfiesFragmentTypeCondition(_input, fragment) {
|
|
104121
104353
|
return genericSatisfiesFragmentTypeCondition(super.satisfiesFragmentTypeCondition.bind(this), _input, fragment, this.typeName);
|
|
@@ -104637,9 +104869,56 @@ function buildCommandClass(baseClass) {
|
|
|
104637
104869
|
};
|
|
104638
104870
|
}
|
|
104639
104871
|
|
|
104872
|
+
function validateNonQueryGraphQLConfig(config) {
|
|
104873
|
+
if (config !== null && typeof config === 'object') {
|
|
104874
|
+
if (hasOwnProperty$1.call(config, 'operationName') &&
|
|
104875
|
+
config.operationName === undefined) {
|
|
104876
|
+
return err('operationName is undefined');
|
|
104877
|
+
}
|
|
104878
|
+
if (hasOwnProperty$1.call(config, 'variables') &&
|
|
104879
|
+
config.variables === undefined) {
|
|
104880
|
+
return err('variables is undefined');
|
|
104881
|
+
}
|
|
104882
|
+
return ok(config);
|
|
104883
|
+
}
|
|
104884
|
+
return err('config is not an object');
|
|
104885
|
+
}
|
|
104886
|
+
|
|
104887
|
+
class GraphQLCommandWireAdapterConstructorV1Import extends GraphQLCommandWireAdapterConstructor {
|
|
104888
|
+
update(config, _context) {
|
|
104889
|
+
const validatedConfig = validateNonQueryGraphQLConfig(config);
|
|
104890
|
+
if (validatedConfig.isErr()) {
|
|
104891
|
+
// config is incomplete, delay execution
|
|
104892
|
+
return;
|
|
104893
|
+
}
|
|
104894
|
+
super.update(validatedConfig.value, _context);
|
|
104895
|
+
}
|
|
104896
|
+
}
|
|
104897
|
+
|
|
104898
|
+
function buildAsyncGraphQLImperativeLegacyInvokerV1Import(getCommand) {
|
|
104899
|
+
const { invoke: invokeOriginal, subscribe: subscribeOriginal } = buildAsyncGraphQLImperativeLegacyInvoker(getCommand);
|
|
104900
|
+
const invoke = async (config, requestContext, callback) => {
|
|
104901
|
+
const validatedConfig = validateNonQueryGraphQLConfig(config);
|
|
104902
|
+
if (validatedConfig.isErr()) {
|
|
104903
|
+
throw new Error(`Invalid configuration passed to GraphQL: ${validatedConfig.error}`);
|
|
104904
|
+
}
|
|
104905
|
+
return invokeOriginal(validatedConfig.value, requestContext, callback);
|
|
104906
|
+
};
|
|
104907
|
+
const subscribe = (config, requestContext, callback) => {
|
|
104908
|
+
const validatedConfig = validateNonQueryGraphQLConfig(config);
|
|
104909
|
+
if (validatedConfig.isErr()) {
|
|
104910
|
+
throw new Error(`Invalid configuration passed to GraphQL: ${validatedConfig.error}`);
|
|
104911
|
+
}
|
|
104912
|
+
return subscribeOriginal(validatedConfig.value, requestContext, callback);
|
|
104913
|
+
};
|
|
104914
|
+
return { invoke, subscribe };
|
|
104915
|
+
}
|
|
104916
|
+
|
|
104640
104917
|
let graphql$1;
|
|
104918
|
+
let graphql_v1_import;
|
|
104641
104919
|
let graphql_imperative$1;
|
|
104642
104920
|
let graphql_imperative_legacy;
|
|
104921
|
+
let graphql_imperative_legacy_v1_import;
|
|
104643
104922
|
let useOneStoreGraphQL = false;
|
|
104644
104923
|
const serviceRequirements = {
|
|
104645
104924
|
instrumentCommand: {
|
|
@@ -104702,6 +104981,16 @@ getServices(serviceRequirements).then((services) => {
|
|
|
104702
104981
|
return new graphql_ctor(this.config, documentRootType, services);
|
|
104703
104982
|
}
|
|
104704
104983
|
};
|
|
104984
|
+
graphql_v1_import = class extends GraphQLCommandWireAdapterConstructorV1Import {
|
|
104985
|
+
constructor() {
|
|
104986
|
+
super(...arguments);
|
|
104987
|
+
this.configSchema = CONFIG_SCHEMA;
|
|
104988
|
+
this.exposeRefresh = true;
|
|
104989
|
+
}
|
|
104990
|
+
getCommand() {
|
|
104991
|
+
return new graphql_ctor(this.config, documentRootType, services);
|
|
104992
|
+
}
|
|
104993
|
+
};
|
|
104705
104994
|
const graphql_imperative_ctor = services.instrumentCommand(buildCommandClass(services.auraGraphQLNormalizedCacheControlCommand), 'graphql_imperative');
|
|
104706
104995
|
graphql_imperative$1 = buildAsyncGraphQLImperativeInvoker(({ params, assertIsValid }) => {
|
|
104707
104996
|
const config = params[0];
|
|
@@ -104714,6 +105003,12 @@ getServices(serviceRequirements).then((services) => {
|
|
|
104714
105003
|
_(config, CONFIG_SCHEMA);
|
|
104715
105004
|
return new graphql_imperative_ctor(config, documentRootType, services);
|
|
104716
105005
|
});
|
|
105006
|
+
graphql_imperative_legacy_v1_import =
|
|
105007
|
+
buildAsyncGraphQLImperativeLegacyInvokerV1Import(({ config, assertIsValid }) => {
|
|
105008
|
+
const _ = assertIsValid;
|
|
105009
|
+
_(config, CONFIG_SCHEMA);
|
|
105010
|
+
return new graphql_imperative_ctor(config, documentRootType, services);
|
|
105011
|
+
});
|
|
104717
105012
|
useOneStoreGraphQL = services.featureFlags?.get('useOneStoreGraphQL') ?? false;
|
|
104718
105013
|
if (provisionedCallback) {
|
|
104719
105014
|
provisionedCallback(graphql$1, graphql_imperative$1, graphql_imperative_legacy, useOneStoreGraphQL);
|
|
@@ -104724,10 +105019,10 @@ function registerCallback(cb) {
|
|
|
104724
105019
|
provisionedCallback = cb;
|
|
104725
105020
|
}
|
|
104726
105021
|
else {
|
|
104727
|
-
cb(
|
|
105022
|
+
cb(graphql_v1_import, graphql_imperative$1, graphql_imperative_legacy_v1_import, useOneStoreGraphQL);
|
|
104728
105023
|
}
|
|
104729
105024
|
}
|
|
104730
|
-
// version: 1.
|
|
105025
|
+
// version: 1.387.0-1c34f8f965
|
|
104731
105026
|
|
|
104732
105027
|
function createFragmentMap(documentNode) {
|
|
104733
105028
|
const fragments = {};
|
|
@@ -120469,7 +120764,7 @@ function getInContextFragmentType$P(fragment, fragmentMap) {
|
|
|
120469
120764
|
}
|
|
120470
120765
|
|
|
120471
120766
|
const name$s = 'Analytics__AnalyticsWorkspaceAsset';
|
|
120472
|
-
const VERSION$C = '
|
|
120767
|
+
const VERSION$C = 'f690ef611baad86daab14c35ec199929';
|
|
120473
120768
|
function keyBuilder$w(luvio, path, data) {
|
|
120474
120769
|
return path.fullPath;
|
|
120475
120770
|
}
|
|
@@ -120599,6 +120894,11 @@ function getTypeCacheKeys$v(cacheKeySink, astNode, state) {
|
|
|
120599
120894
|
getTypeCacheKeys$1w(cacheKeySink, requestedField, ActivePromotionRequestIdState);
|
|
120600
120895
|
break;
|
|
120601
120896
|
}
|
|
120897
|
+
case 'PicklistValue': {
|
|
120898
|
+
const MetadataSourceTypeState = buildFieldState(state, rootKey + '__' + fieldKey, fieldData);
|
|
120899
|
+
getTypeCacheKeys$1h(cacheKeySink, requestedField, MetadataSourceTypeState);
|
|
120900
|
+
break;
|
|
120901
|
+
}
|
|
120602
120902
|
}
|
|
120603
120903
|
}
|
|
120604
120904
|
// Deal with mapped types' cache keys
|
|
@@ -120629,6 +120929,12 @@ function getFieldType$N(field) {
|
|
|
120629
120929
|
typename: 'IDValue'
|
|
120630
120930
|
};
|
|
120631
120931
|
}
|
|
120932
|
+
case 'MetadataSourceType': {
|
|
120933
|
+
return {
|
|
120934
|
+
isArray: false,
|
|
120935
|
+
typename: 'PicklistValue'
|
|
120936
|
+
};
|
|
120937
|
+
}
|
|
120632
120938
|
default:
|
|
120633
120939
|
return undefined;
|
|
120634
120940
|
}
|
|
@@ -129349,7 +129655,7 @@ function getQueryTransformerForType(typename, fragmentMap) {
|
|
|
129349
129655
|
getFieldType: getFieldType$2,
|
|
129350
129656
|
getInContextFragmentType: getInContextFragmentType$2
|
|
129351
129657
|
};
|
|
129352
|
-
case "
|
|
129658
|
+
case "Analytics__MktDataConnector": return {
|
|
129353
129659
|
getMinimumSelections: getMinimumSelections$1,
|
|
129354
129660
|
getFieldType: getFieldType$1,
|
|
129355
129661
|
getInContextFragmentType: getInContextFragmentType$1
|
|
@@ -131349,7 +131655,7 @@ register$1({
|
|
|
131349
131655
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
131350
131656
|
instrument: instrument$1,
|
|
131351
131657
|
});
|
|
131352
|
-
// version: 1.
|
|
131658
|
+
// version: 1.387.0-1c34f8f965
|
|
131353
131659
|
|
|
131354
131660
|
// On core the unstable adapters are re-exported with different names,
|
|
131355
131661
|
// we want to match them here.
|
|
@@ -131501,7 +131807,7 @@ withDefaultLuvio((luvio) => {
|
|
|
131501
131807
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
131502
131808
|
graphQLImperative = ldsAdapter;
|
|
131503
131809
|
});
|
|
131504
|
-
// version: 1.
|
|
131810
|
+
// version: 1.387.0-1c34f8f965
|
|
131505
131811
|
|
|
131506
131812
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
131507
131813
|
__proto__: null,
|
|
@@ -131588,15 +131894,15 @@ class NativeFetchResponse {
|
|
|
131588
131894
|
get statusText() {
|
|
131589
131895
|
const { status } = this;
|
|
131590
131896
|
switch (status) {
|
|
131591
|
-
case HttpStatusCode$
|
|
131897
|
+
case HttpStatusCode$2.Ok:
|
|
131592
131898
|
return 'OK';
|
|
131593
|
-
case HttpStatusCode$
|
|
131899
|
+
case HttpStatusCode$2.Created:
|
|
131594
131900
|
return 'Created';
|
|
131595
|
-
case HttpStatusCode$
|
|
131901
|
+
case HttpStatusCode$2.NoContent:
|
|
131596
131902
|
return 'No Content';
|
|
131597
|
-
case HttpStatusCode$
|
|
131903
|
+
case HttpStatusCode$2.BadRequest:
|
|
131598
131904
|
return 'Bad Request';
|
|
131599
|
-
case HttpStatusCode$
|
|
131905
|
+
case HttpStatusCode$2.ServerError:
|
|
131600
131906
|
return 'Server Error';
|
|
131601
131907
|
default:
|
|
131602
131908
|
return `Unexpected HTTP Status Code: ${status}`;
|
|
@@ -131613,7 +131919,7 @@ class NativeFetchErrorResponse extends NativeFetchResponse {
|
|
|
131613
131919
|
}
|
|
131614
131920
|
}
|
|
131615
131921
|
function createNativeFetchErrorResponse(message) {
|
|
131616
|
-
return new NativeFetchErrorResponse(HttpStatusCode$
|
|
131922
|
+
return new NativeFetchErrorResponse(HttpStatusCode$2.BadRequest, {
|
|
131617
131923
|
errorCode: NATIVE_ERROR_CODE,
|
|
131618
131924
|
message: message,
|
|
131619
131925
|
});
|
|
@@ -132300,7 +132606,7 @@ const callbacks$1 = [];
|
|
|
132300
132606
|
function register(r) {
|
|
132301
132607
|
callbacks$1.forEach((callback) => callback(r));
|
|
132302
132608
|
}
|
|
132303
|
-
// version: 1.
|
|
132609
|
+
// version: 1.387.0-8c93a5dd2c
|
|
132304
132610
|
|
|
132305
132611
|
/**
|
|
132306
132612
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -133616,4 +133922,4 @@ const { luvio } = getRuntime();
|
|
|
133616
133922
|
setDefaultLuvio({ luvio });
|
|
133617
133923
|
|
|
133618
133924
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, importLuvioAdapterModule, importOneStoreAdapterModule, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
133619
|
-
// version: 1.
|
|
133925
|
+
// version: 1.387.0-8c93a5dd2c
|