@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.
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
})(SnapshotState$3 || (SnapshotState$3 = {}));
|
|
28
28
|
|
|
29
29
|
const { create: create$b, entries: entries$7, freeze: freeze$7, keys: keys$b, values: values$3, assign: assign$8 } = Object;
|
|
30
|
-
const { hasOwnProperty: hasOwnProperty$
|
|
30
|
+
const { hasOwnProperty: hasOwnProperty$6 } = Object.prototype;
|
|
31
31
|
const { isArray: isArray$a } = Array;
|
|
32
32
|
const { push: push$5, indexOf, slice: slice$2 } = Array.prototype;
|
|
33
33
|
const { parse: parse$c, stringify: stringify$c } = JSON;
|
|
@@ -629,9 +629,9 @@
|
|
|
629
629
|
readMetadataWhere(query) {
|
|
630
630
|
const keys$1 = keys$b(this.metadata);
|
|
631
631
|
const results = [];
|
|
632
|
-
const hasNamespaceQuery = hasOwnProperty$
|
|
633
|
-
const hasRepresentationNameQuery = hasOwnProperty$
|
|
634
|
-
const hasTtlOverrideQuery = hasOwnProperty$
|
|
632
|
+
const hasNamespaceQuery = hasOwnProperty$6.call(query, 'namespace');
|
|
633
|
+
const hasRepresentationNameQuery = hasOwnProperty$6.call(query, 'representationName');
|
|
634
|
+
const hasTtlOverrideQuery = hasOwnProperty$6.call(query, 'ttlOverride');
|
|
635
635
|
for (let i = 0, length = keys$1.length; i < length; i++) {
|
|
636
636
|
const key = keys$1[i];
|
|
637
637
|
const storeMetadata = this.metadata[key];
|
|
@@ -655,7 +655,7 @@
|
|
|
655
655
|
put(recordId, record) {
|
|
656
656
|
const { records, insertedIds, pendingTrimKeys, retainedIds } = this;
|
|
657
657
|
const canonicalKey = this.getCanonicalRecordId(recordId);
|
|
658
|
-
if (hasOwnProperty$
|
|
658
|
+
if (hasOwnProperty$6.call(records, canonicalKey) === false) {
|
|
659
659
|
insertedIds[canonicalKey] = true;
|
|
660
660
|
}
|
|
661
661
|
records[canonicalKey] = record;
|
|
@@ -1330,9 +1330,9 @@
|
|
|
1330
1330
|
return this.fallbackStringKeyInMemoryStore.readMetadataWhere(query);
|
|
1331
1331
|
}
|
|
1332
1332
|
const results = [];
|
|
1333
|
-
const hasNamespaceQuery = hasOwnProperty$
|
|
1334
|
-
const hasRepresentationNameQuery = hasOwnProperty$
|
|
1335
|
-
const hasTtlOverrideQuery = hasOwnProperty$
|
|
1333
|
+
const hasNamespaceQuery = hasOwnProperty$6.call(query, 'namespace');
|
|
1334
|
+
const hasRepresentationNameQuery = hasOwnProperty$6.call(query, 'representationName');
|
|
1335
|
+
const hasTtlOverrideQuery = hasOwnProperty$6.call(query, 'ttlOverride');
|
|
1336
1336
|
for (let i = 0, length = keys.length; i < length; i++) {
|
|
1337
1337
|
const key = keys[i];
|
|
1338
1338
|
const storeMetadata = this.metadataMap.get(key);
|
|
@@ -1987,7 +1987,7 @@
|
|
|
1987
1987
|
return 'normal';
|
|
1988
1988
|
}
|
|
1989
1989
|
}
|
|
1990
|
-
var HttpStatusCode$
|
|
1990
|
+
var HttpStatusCode$2;
|
|
1991
1991
|
(function (HttpStatusCode) {
|
|
1992
1992
|
HttpStatusCode[HttpStatusCode["Ok"] = 200] = "Ok";
|
|
1993
1993
|
HttpStatusCode[HttpStatusCode["Created"] = 201] = "Created";
|
|
@@ -1999,7 +1999,7 @@
|
|
|
1999
1999
|
HttpStatusCode[HttpStatusCode["NotFound"] = 404] = "NotFound";
|
|
2000
2000
|
HttpStatusCode[HttpStatusCode["ServerError"] = 500] = "ServerError";
|
|
2001
2001
|
HttpStatusCode[HttpStatusCode["GatewayTimeout"] = 504] = "GatewayTimeout";
|
|
2002
|
-
})(HttpStatusCode$
|
|
2002
|
+
})(HttpStatusCode$2 || (HttpStatusCode$2 = {}));
|
|
2003
2003
|
/**
|
|
2004
2004
|
* A type guard function for determining if an unknown object is a {@link FileReference}
|
|
2005
2005
|
*/
|
|
@@ -2117,7 +2117,7 @@
|
|
|
2117
2117
|
body: undefined,
|
|
2118
2118
|
headers: {},
|
|
2119
2119
|
ok: false,
|
|
2120
|
-
status: HttpStatusCode$
|
|
2120
|
+
status: HttpStatusCode$2.GatewayTimeout,
|
|
2121
2121
|
statusText: 'Data requested with only-if-cached policy and not found in the cache.',
|
|
2122
2122
|
errorType: 'fetchResponse',
|
|
2123
2123
|
}, refresh);
|
|
@@ -2171,8 +2171,8 @@
|
|
|
2171
2171
|
function isNodeLink(node) {
|
|
2172
2172
|
return (typeof node === 'object' &&
|
|
2173
2173
|
node !== null &&
|
|
2174
|
-
(hasOwnProperty$
|
|
2175
|
-
hasOwnProperty$
|
|
2174
|
+
(hasOwnProperty$6.call(node, '__ref') ||
|
|
2175
|
+
hasOwnProperty$6.call(node, 'isMissing')));
|
|
2176
2176
|
}
|
|
2177
2177
|
function isGraphNode$2(node) {
|
|
2178
2178
|
return node !== null && node.type === GraphNodeType$1.Node;
|
|
@@ -2317,7 +2317,7 @@
|
|
|
2317
2317
|
}
|
|
2318
2318
|
var values = [];
|
|
2319
2319
|
for (var _argName in argValues) {
|
|
2320
|
-
if (hasOwnProperty$
|
|
2320
|
+
if (hasOwnProperty$6.call(argValues, _argName)) {
|
|
2321
2321
|
var value = argValues[_argName];
|
|
2322
2322
|
if (value !== null || value !== undefined) {
|
|
2323
2323
|
values.push(_argName + ':' + stringify$c(value));
|
|
@@ -2657,7 +2657,7 @@
|
|
|
2657
2657
|
data[key] = items;
|
|
2658
2658
|
}
|
|
2659
2659
|
else {
|
|
2660
|
-
if (hasOwnProperty$
|
|
2660
|
+
if (hasOwnProperty$6.call(visitedKeys, nextRecordId) === true) {
|
|
2661
2661
|
throw new Error(`Invalid eager selection on records with circular references.`);
|
|
2662
2662
|
}
|
|
2663
2663
|
const lookupResult = this.resolveKey(nextRecordId);
|
|
@@ -3139,7 +3139,7 @@
|
|
|
3139
3139
|
}
|
|
3140
3140
|
}
|
|
3141
3141
|
readScalar(propertyName, record, data, required) {
|
|
3142
|
-
if (!hasOwnProperty$
|
|
3142
|
+
if (!hasOwnProperty$6.call(record, propertyName)) {
|
|
3143
3143
|
if (required !== false) {
|
|
3144
3144
|
this.markMissing();
|
|
3145
3145
|
return;
|
|
@@ -3380,7 +3380,7 @@
|
|
|
3380
3380
|
isErrorCacheable(errorSnapshot) {
|
|
3381
3381
|
const { error } = errorSnapshot;
|
|
3382
3382
|
if (error.errorType === 'fetchResponse') {
|
|
3383
|
-
return error.status === HttpStatusCode$
|
|
3383
|
+
return error.status === HttpStatusCode$2.NotFound;
|
|
3384
3384
|
}
|
|
3385
3385
|
return false;
|
|
3386
3386
|
}
|
|
@@ -4280,7 +4280,7 @@
|
|
|
4280
4280
|
}
|
|
4281
4281
|
callbacks.push(callback);
|
|
4282
4282
|
}
|
|
4283
|
-
// version: 1.
|
|
4283
|
+
// version: 1.387.0-8c93a5dd2c
|
|
4284
4284
|
|
|
4285
4285
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4286
4286
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -5324,7 +5324,7 @@
|
|
|
5324
5324
|
const { apiFamily, name } = metadata;
|
|
5325
5325
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
5326
5326
|
}
|
|
5327
|
-
// version: 1.
|
|
5327
|
+
// version: 1.387.0-8c93a5dd2c
|
|
5328
5328
|
|
|
5329
5329
|
/**
|
|
5330
5330
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -5368,7 +5368,7 @@
|
|
|
5368
5368
|
StoreResolveResultState[StoreResolveResultState["NotPresent"] = 3] = "NotPresent";
|
|
5369
5369
|
StoreResolveResultState[StoreResolveResultState["Stale"] = 4] = "Stale";
|
|
5370
5370
|
})(StoreResolveResultState || (StoreResolveResultState = {}));
|
|
5371
|
-
var HttpStatusCode;
|
|
5371
|
+
var HttpStatusCode$1;
|
|
5372
5372
|
(function (HttpStatusCode) {
|
|
5373
5373
|
HttpStatusCode[HttpStatusCode["Ok"] = 200] = "Ok";
|
|
5374
5374
|
HttpStatusCode[HttpStatusCode["Created"] = 201] = "Created";
|
|
@@ -5380,7 +5380,7 @@
|
|
|
5380
5380
|
HttpStatusCode[HttpStatusCode["NotFound"] = 404] = "NotFound";
|
|
5381
5381
|
HttpStatusCode[HttpStatusCode["ServerError"] = 500] = "ServerError";
|
|
5382
5382
|
HttpStatusCode[HttpStatusCode["GatewayTimeout"] = 504] = "GatewayTimeout";
|
|
5383
|
-
})(HttpStatusCode || (HttpStatusCode = {}));
|
|
5383
|
+
})(HttpStatusCode$1 || (HttpStatusCode$1 = {}));
|
|
5384
5384
|
var GraphNodeType;
|
|
5385
5385
|
(function (GraphNodeType) {
|
|
5386
5386
|
GraphNodeType["Link"] = "Link";
|
|
@@ -6145,7 +6145,7 @@
|
|
|
6145
6145
|
const keyPrefix$3 = 'UiApi';
|
|
6146
6146
|
|
|
6147
6147
|
const { assign: assign$6, create: create$8, freeze: freeze$5, isFrozen: isFrozen$3, keys: keys$9 } = Object;
|
|
6148
|
-
const { hasOwnProperty: hasOwnProperty$
|
|
6148
|
+
const { hasOwnProperty: hasOwnProperty$5 } = Object.prototype;
|
|
6149
6149
|
const { split: split$1, endsWith: endsWith$1 } = String.prototype;
|
|
6150
6150
|
const { isArray: isArray$8 } = Array;
|
|
6151
6151
|
const { concat: concat$3, filter: filter$3, includes: includes$3, push: push$4, reduce: reduce$3 } = Array.prototype;
|
|
@@ -9358,7 +9358,7 @@
|
|
|
9358
9358
|
}
|
|
9359
9359
|
// Stop the traversal if the key has already been visited, since the fields for this record
|
|
9360
9360
|
// have already been gathered at this point.
|
|
9361
|
-
if (hasOwnProperty$
|
|
9361
|
+
if (hasOwnProperty$5.call(visitedRecordIds, recordId)) {
|
|
9362
9362
|
return;
|
|
9363
9363
|
}
|
|
9364
9364
|
// The visitedRecordIds object passed to the spanning record is a copy of the original
|
|
@@ -10164,20 +10164,20 @@
|
|
|
10164
10164
|
return [...fieldsArray, ...optionalFieldsArray];
|
|
10165
10165
|
}
|
|
10166
10166
|
function getRecordIdsFromUrlParams$1(urlParams) {
|
|
10167
|
-
if (hasOwnProperty$
|
|
10167
|
+
if (hasOwnProperty$5.call(urlParams, 'recordId')) {
|
|
10168
10168
|
return [urlParams.recordId];
|
|
10169
10169
|
}
|
|
10170
|
-
else if (hasOwnProperty$
|
|
10170
|
+
else if (hasOwnProperty$5.call(urlParams, 'recordIds')) {
|
|
10171
10171
|
return urlParams.recordIds;
|
|
10172
10172
|
}
|
|
10173
10173
|
return [];
|
|
10174
10174
|
}
|
|
10175
10175
|
function isSingleBatchRecordRequest$1(urlParams) {
|
|
10176
|
-
return (hasOwnProperty$
|
|
10176
|
+
return (hasOwnProperty$5.call(urlParams, 'recordIds') &&
|
|
10177
10177
|
urlParams.recordIds.length === 1);
|
|
10178
10178
|
}
|
|
10179
10179
|
function isSingleRecordRequest$1(urlParams) {
|
|
10180
|
-
return hasOwnProperty$
|
|
10180
|
+
return hasOwnProperty$5.call(urlParams, 'recordId');
|
|
10181
10181
|
}
|
|
10182
10182
|
function isRestrictedPathCondition$1(existingPath, path) {
|
|
10183
10183
|
// should not dedupe getRecordUi and getRecord as both of their representation is different
|
|
@@ -15127,7 +15127,7 @@
|
|
|
15127
15127
|
// W-12697744 - Return an empty layoutMap if the entity does not have a layout.
|
|
15128
15128
|
// Temp fix until we can mimic the server behavior for non-layoutable entities.
|
|
15129
15129
|
let layoutMap = {};
|
|
15130
|
-
if (hasOwnProperty$
|
|
15130
|
+
if (hasOwnProperty$5.call(layouts, apiName)) {
|
|
15131
15131
|
layoutMap = layouts[apiName][recordTypeId] || {};
|
|
15132
15132
|
}
|
|
15133
15133
|
return {
|
|
@@ -32845,7 +32845,7 @@
|
|
|
32845
32845
|
|
|
32846
32846
|
function onResponseSuccess(luvio, response, recordIngest, conflictMap) {
|
|
32847
32847
|
const { body, status } = response;
|
|
32848
|
-
if (status === HttpStatusCode$
|
|
32848
|
+
if (status === HttpStatusCode$2.NoContent) {
|
|
32849
32849
|
const syntheticSnapshot = {
|
|
32850
32850
|
state: 'Fulfilled',
|
|
32851
32851
|
data: {},
|
|
@@ -33122,7 +33122,7 @@
|
|
|
33122
33122
|
const recordIngest = createRecordIngest$1(fieldTrie, optionalFieldTrie, conflictMap);
|
|
33123
33123
|
return luvio.dispatchResourceRequest(request).then((response) => {
|
|
33124
33124
|
return luvio.handleSuccessResponse(() => {
|
|
33125
|
-
if (response.status === HttpStatusCode$
|
|
33125
|
+
if (response.status === HttpStatusCode$2.NoContent) {
|
|
33126
33126
|
const syntheticSnapshot = {
|
|
33127
33127
|
state: 'Fulfilled',
|
|
33128
33128
|
data: {},
|
|
@@ -34160,7 +34160,7 @@
|
|
|
34160
34160
|
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
34161
34161
|
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
34162
34162
|
});
|
|
34163
|
-
// version: 1.
|
|
34163
|
+
// version: 1.387.0-1c34f8f965
|
|
34164
34164
|
|
|
34165
34165
|
function requestIdleDetectedCallback(_callback) { }
|
|
34166
34166
|
function declareNotifierTaskSingle(_name) {
|
|
@@ -43130,7 +43130,7 @@
|
|
|
43130
43130
|
return "continue";
|
|
43131
43131
|
}
|
|
43132
43132
|
|
|
43133
|
-
if (!hasOwnProperty$
|
|
43133
|
+
if (!hasOwnProperty$4(inputs, varName)) {
|
|
43134
43134
|
if (varDefNode.defaultValue) {
|
|
43135
43135
|
coercedValues[varName] = valueFromAST(varDefNode.defaultValue, varType);
|
|
43136
43136
|
} else if (isNonNullType(varType)) {
|
|
@@ -43214,7 +43214,7 @@
|
|
|
43214
43214
|
if (valueNode.kind === Kind$3.VARIABLE) {
|
|
43215
43215
|
var variableName = valueNode.name.value;
|
|
43216
43216
|
|
|
43217
|
-
if (variableValues == null || !hasOwnProperty$
|
|
43217
|
+
if (variableValues == null || !hasOwnProperty$4(variableValues, variableName)) {
|
|
43218
43218
|
if (argDef.defaultValue !== undefined) {
|
|
43219
43219
|
coercedValues[name] = argDef.defaultValue;
|
|
43220
43220
|
} else if (isNonNullType(argType)) {
|
|
@@ -43267,7 +43267,7 @@
|
|
|
43267
43267
|
}
|
|
43268
43268
|
}
|
|
43269
43269
|
|
|
43270
|
-
function hasOwnProperty$
|
|
43270
|
+
function hasOwnProperty$4(obj, prop) {
|
|
43271
43271
|
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
43272
43272
|
}
|
|
43273
43273
|
|
|
@@ -45785,7 +45785,7 @@
|
|
|
45785
45785
|
* For full license text, see the LICENSE.txt file
|
|
45786
45786
|
*/
|
|
45787
45787
|
const { create: create$7, freeze: freeze$4, keys: keys$8, entries: entries$6 } = Object;
|
|
45788
|
-
const { hasOwnProperty: hasOwnProperty$
|
|
45788
|
+
const { hasOwnProperty: hasOwnProperty$3 } = Object.prototype;
|
|
45789
45789
|
const { isArray: isArray$7 } = Array;
|
|
45790
45790
|
const { stringify: stringify$9, parse: parse$9 } = JSON;
|
|
45791
45791
|
let Ok$4 = class Ok {
|
|
@@ -46167,7 +46167,7 @@
|
|
|
46167
46167
|
const MAX_AGGREGATE_UI_CHUNK_LIMIT = 50;
|
|
46168
46168
|
function createOkResponse$1(body) {
|
|
46169
46169
|
return {
|
|
46170
|
-
status: HttpStatusCode$
|
|
46170
|
+
status: HttpStatusCode$2.Ok,
|
|
46171
46171
|
body,
|
|
46172
46172
|
statusText: 'ok',
|
|
46173
46173
|
headers: {},
|
|
@@ -46176,15 +46176,15 @@
|
|
|
46176
46176
|
}
|
|
46177
46177
|
function getErrorResponseText(status) {
|
|
46178
46178
|
switch (status) {
|
|
46179
|
-
case HttpStatusCode$
|
|
46179
|
+
case HttpStatusCode$2.Ok:
|
|
46180
46180
|
return 'OK';
|
|
46181
|
-
case HttpStatusCode$
|
|
46181
|
+
case HttpStatusCode$2.NotModified:
|
|
46182
46182
|
return 'Not Modified';
|
|
46183
|
-
case HttpStatusCode$
|
|
46183
|
+
case HttpStatusCode$2.NotFound:
|
|
46184
46184
|
return 'Not Found';
|
|
46185
|
-
case HttpStatusCode$
|
|
46185
|
+
case HttpStatusCode$2.BadRequest:
|
|
46186
46186
|
return 'Bad Request';
|
|
46187
|
-
case HttpStatusCode$
|
|
46187
|
+
case HttpStatusCode$2.ServerError:
|
|
46188
46188
|
return 'Server Error';
|
|
46189
46189
|
default:
|
|
46190
46190
|
return `Unexpected HTTP Status Code: ${status}`;
|
|
@@ -46236,14 +46236,14 @@
|
|
|
46236
46236
|
body.compositeResponse === undefined ||
|
|
46237
46237
|
body.compositeResponse.length === 0) {
|
|
46238
46238
|
// We shouldn't even get into this state - a 200 with no body?
|
|
46239
|
-
throw createErrorResponse(HttpStatusCode$
|
|
46239
|
+
throw createErrorResponse(HttpStatusCode$2.ServerError, {
|
|
46240
46240
|
error: 'No response body in executeAggregateUi found',
|
|
46241
46241
|
});
|
|
46242
46242
|
}
|
|
46243
46243
|
const merged = body.compositeResponse.reduce((seed, response) => {
|
|
46244
|
-
if (response.httpStatusCode !== HttpStatusCode$
|
|
46244
|
+
if (response.httpStatusCode !== HttpStatusCode$2.Ok) {
|
|
46245
46245
|
instrumentation$3.getRecordAggregateReject(() => recordId);
|
|
46246
|
-
throw createErrorResponse(HttpStatusCode$
|
|
46246
|
+
throw createErrorResponse(HttpStatusCode$2.ServerError, {
|
|
46247
46247
|
error: response.message,
|
|
46248
46248
|
});
|
|
46249
46249
|
}
|
|
@@ -46325,8 +46325,8 @@
|
|
|
46325
46325
|
const QUERY_TOO_COMPLICATED_ERROR_CODE = 'QUERY_TOO_COMPLICATED';
|
|
46326
46326
|
function fetchResponseIsQueryTooComplicated(error) {
|
|
46327
46327
|
const { body } = error;
|
|
46328
|
-
if (error.status === HttpStatusCode$
|
|
46329
|
-
return (body.statusCode === HttpStatusCode$
|
|
46328
|
+
if (error.status === HttpStatusCode$2.BadRequest && body !== undefined) {
|
|
46329
|
+
return (body.statusCode === HttpStatusCode$2.BadRequest &&
|
|
46330
46330
|
body.errorCode === QUERY_TOO_COMPLICATED_ERROR_CODE);
|
|
46331
46331
|
}
|
|
46332
46332
|
return false;
|
|
@@ -47939,15 +47939,15 @@
|
|
|
47939
47939
|
get statusText() {
|
|
47940
47940
|
const { status } = this;
|
|
47941
47941
|
switch (status) {
|
|
47942
|
-
case HttpStatusCode$
|
|
47942
|
+
case HttpStatusCode$2.Ok:
|
|
47943
47943
|
return 'OK';
|
|
47944
|
-
case HttpStatusCode$
|
|
47944
|
+
case HttpStatusCode$2.Created:
|
|
47945
47945
|
return 'Created';
|
|
47946
|
-
case HttpStatusCode$
|
|
47946
|
+
case HttpStatusCode$2.NoContent:
|
|
47947
47947
|
return 'No Content';
|
|
47948
|
-
case HttpStatusCode$
|
|
47948
|
+
case HttpStatusCode$2.BadRequest:
|
|
47949
47949
|
return 'Bad Request';
|
|
47950
|
-
case HttpStatusCode$
|
|
47950
|
+
case HttpStatusCode$2.ServerError:
|
|
47951
47951
|
return 'Server Error';
|
|
47952
47952
|
default:
|
|
47953
47953
|
return `Unexpected HTTP Status Code: ${status}`;
|
|
@@ -47968,11 +47968,11 @@
|
|
|
47968
47968
|
get statusText() {
|
|
47969
47969
|
const { status } = this;
|
|
47970
47970
|
switch (status) {
|
|
47971
|
-
case HttpStatusCode$
|
|
47971
|
+
case HttpStatusCode$2.BadRequest:
|
|
47972
47972
|
return 'Bad Request';
|
|
47973
|
-
case HttpStatusCode$
|
|
47973
|
+
case HttpStatusCode$2.ServerError:
|
|
47974
47974
|
return 'Server Error';
|
|
47975
|
-
case HttpStatusCode$
|
|
47975
|
+
case HttpStatusCode$2.NotFound:
|
|
47976
47976
|
return 'Not Found';
|
|
47977
47977
|
default:
|
|
47978
47978
|
return `Unexpected HTTP Status Code: ${status}`;
|
|
@@ -47980,13 +47980,13 @@
|
|
|
47980
47980
|
}
|
|
47981
47981
|
}
|
|
47982
47982
|
function createOkResponse(body) {
|
|
47983
|
-
return new DraftFetchResponse(HttpStatusCode$
|
|
47983
|
+
return new DraftFetchResponse(HttpStatusCode$2.Ok, body);
|
|
47984
47984
|
}
|
|
47985
47985
|
function createBadRequestResponse(body) {
|
|
47986
|
-
return new DraftErrorFetchResponse(HttpStatusCode$
|
|
47986
|
+
return new DraftErrorFetchResponse(HttpStatusCode$2.BadRequest, body);
|
|
47987
47987
|
}
|
|
47988
47988
|
function createNotFoundResponse(body) {
|
|
47989
|
-
return new DraftErrorFetchResponse(HttpStatusCode$
|
|
47989
|
+
return new DraftErrorFetchResponse(HttpStatusCode$2.NotFound, body);
|
|
47990
47990
|
}
|
|
47991
47991
|
function transformErrorToDraftSynthesisError(error) {
|
|
47992
47992
|
if (isDraftSynthesisError(error)) {
|
|
@@ -48003,7 +48003,7 @@
|
|
|
48003
48003
|
if (errorType !== undefined) {
|
|
48004
48004
|
error.errorType = errorType;
|
|
48005
48005
|
}
|
|
48006
|
-
return new DraftErrorFetchResponse(HttpStatusCode$
|
|
48006
|
+
return new DraftErrorFetchResponse(HttpStatusCode$2.BadRequest, error);
|
|
48007
48007
|
}
|
|
48008
48008
|
|
|
48009
48009
|
/**
|
|
@@ -49294,7 +49294,7 @@
|
|
|
49294
49294
|
const keyPrefix$2 = 'UiApi';
|
|
49295
49295
|
|
|
49296
49296
|
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;
|
|
49297
|
-
const { hasOwnProperty: hasOwnProperty$
|
|
49297
|
+
const { hasOwnProperty: hasOwnProperty$2 } = Object.prototype;
|
|
49298
49298
|
const { split, endsWith } = String.prototype;
|
|
49299
49299
|
const { from: from$1, isArray: isArray$3$1 } = Array;
|
|
49300
49300
|
const { concat: concat$2, filter: filter$2, includes: includes$2, push: push$1$1, reduce: reduce$2, shift, slice: slice$1 } = Array.prototype;
|
|
@@ -51416,20 +51416,20 @@
|
|
|
51416
51416
|
return [...fieldsArray, ...optionalFieldsArray];
|
|
51417
51417
|
}
|
|
51418
51418
|
function getRecordIdsFromUrlParams(urlParams) {
|
|
51419
|
-
if (hasOwnProperty$
|
|
51419
|
+
if (hasOwnProperty$2.call(urlParams, 'recordId')) {
|
|
51420
51420
|
return [urlParams.recordId];
|
|
51421
51421
|
}
|
|
51422
|
-
else if (hasOwnProperty$
|
|
51422
|
+
else if (hasOwnProperty$2.call(urlParams, 'recordIds')) {
|
|
51423
51423
|
return urlParams.recordIds;
|
|
51424
51424
|
}
|
|
51425
51425
|
return [];
|
|
51426
51426
|
}
|
|
51427
51427
|
function isSingleBatchRecordRequest(urlParams) {
|
|
51428
|
-
return (hasOwnProperty$
|
|
51428
|
+
return (hasOwnProperty$2.call(urlParams, 'recordIds') &&
|
|
51429
51429
|
urlParams.recordIds.length === 1);
|
|
51430
51430
|
}
|
|
51431
51431
|
function isSingleRecordRequest(urlParams) {
|
|
51432
|
-
return hasOwnProperty$
|
|
51432
|
+
return hasOwnProperty$2.call(urlParams, 'recordId');
|
|
51433
51433
|
}
|
|
51434
51434
|
function isRestrictedPathCondition(existingPath, path) {
|
|
51435
51435
|
// should not dedupe getRecordUi and getRecord as both of their representation is different
|
|
@@ -55952,7 +55952,7 @@
|
|
|
55952
55952
|
// W-12697744 - Return an empty layoutMap if the entity does not have a layout.
|
|
55953
55953
|
// Temp fix until we can mimic the server behavior for non-layoutable entities.
|
|
55954
55954
|
let layoutMap = {};
|
|
55955
|
-
if (hasOwnProperty$
|
|
55955
|
+
if (hasOwnProperty$2.call(layouts, apiName)) {
|
|
55956
55956
|
layoutMap = layouts[apiName][recordTypeId] || {};
|
|
55957
55957
|
}
|
|
55958
55958
|
return {
|
|
@@ -79947,7 +79947,7 @@
|
|
|
79947
79947
|
retryDelayInMs = getRetryAfterInMs(response.headers);
|
|
79948
79948
|
shouldRetry = true;
|
|
79949
79949
|
break;
|
|
79950
|
-
case HttpStatusCode$
|
|
79950
|
+
case HttpStatusCode$2.ServerError: {
|
|
79951
79951
|
shouldRetry = true;
|
|
79952
79952
|
if (this.handleIdempotencyServerError(response.body, updatedAction, false, ERROR_CODE_IDEMPOTENCY_BACKEND_OPERATION_ERROR)) {
|
|
79953
79953
|
this.isIdempotencySupported = false;
|
|
@@ -79970,7 +79970,7 @@
|
|
|
79970
79970
|
}
|
|
79971
79971
|
break;
|
|
79972
79972
|
}
|
|
79973
|
-
case HttpStatusCode$
|
|
79973
|
+
case HttpStatusCode$2.BadRequest: {
|
|
79974
79974
|
if (this.handleIdempotencyServerError(response.body, updatedAction, false, ERROR_CODE_IDEMPOTENCY_FEATURE_NOT_ENABLED, ERROR_CODE_IDEMPOTENCY_NOT_SUPPORTED)) {
|
|
79975
79975
|
retryDelayInMs = 0;
|
|
79976
79976
|
actionDataChanged = true;
|
|
@@ -79988,13 +79988,13 @@
|
|
|
79988
79988
|
}
|
|
79989
79989
|
}
|
|
79990
79990
|
}
|
|
79991
|
-
if (response.status === HttpStatusCode$
|
|
79991
|
+
if (response.status === HttpStatusCode$2.BadRequest &&
|
|
79992
79992
|
this.hasIdempotencySupport() &&
|
|
79993
79993
|
updatedAction.data.headers[HTTP_HEADER_IDEMPOTENCY_KEY] !== undefined) {
|
|
79994
79994
|
updatedAction.data.headers[HTTP_HEADER_IDEMPOTENCY_KEY] = uuidv4();
|
|
79995
79995
|
actionDataChanged = true;
|
|
79996
79996
|
}
|
|
79997
|
-
if (response.status === HttpStatusCode$
|
|
79997
|
+
if (response.status === HttpStatusCode$2.BadRequest &&
|
|
79998
79998
|
this.isBackdatingError(response.body, action)) {
|
|
79999
79999
|
updatedAction.timestamp = Date.now();
|
|
80000
80000
|
updatedAction.data.body.fields = {
|
|
@@ -85682,7 +85682,7 @@
|
|
|
85682
85682
|
return Boolean(interfaces.find((iface) => iface.name === 'Record'));
|
|
85683
85683
|
}
|
|
85684
85684
|
|
|
85685
|
-
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";
|
|
85685
|
+
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";
|
|
85686
85686
|
|
|
85687
85687
|
// Define additional schema that is missing from uiapi that we use in local evaluation
|
|
85688
85688
|
const additionalSchemaDefinitions = /* GraphQL */ `
|
|
@@ -88597,7 +88597,7 @@
|
|
|
88597
88597
|
// remove injected fields from response.
|
|
88598
88598
|
const data = snapshot.data;
|
|
88599
88599
|
const userResults = data.results.map((compositeResult, index) => {
|
|
88600
|
-
if (compositeResult.statusCode === HttpStatusCode$
|
|
88600
|
+
if (compositeResult.statusCode === HttpStatusCode$2.Ok) {
|
|
88601
88601
|
return {
|
|
88602
88602
|
result: removeSyntheticFields(compositeResult.result, config.batchQuery[index].query),
|
|
88603
88603
|
statusCode: compositeResult.statusCode,
|
|
@@ -88814,15 +88814,15 @@
|
|
|
88814
88814
|
}
|
|
88815
88815
|
function statusTextFromStatusCode(status) {
|
|
88816
88816
|
switch (status) {
|
|
88817
|
-
case HttpStatusCode$
|
|
88817
|
+
case HttpStatusCode$2.Ok:
|
|
88818
88818
|
return 'OK';
|
|
88819
|
-
case HttpStatusCode$
|
|
88819
|
+
case HttpStatusCode$2.NotModified:
|
|
88820
88820
|
return 'Not Modified';
|
|
88821
|
-
case HttpStatusCode$
|
|
88821
|
+
case HttpStatusCode$2.NotFound:
|
|
88822
88822
|
return 'Not Found';
|
|
88823
|
-
case HttpStatusCode$
|
|
88823
|
+
case HttpStatusCode$2.BadRequest:
|
|
88824
88824
|
return 'Bad Request';
|
|
88825
|
-
case HttpStatusCode$
|
|
88825
|
+
case HttpStatusCode$2.ServerError:
|
|
88826
88826
|
return 'Server Error';
|
|
88827
88827
|
default:
|
|
88828
88828
|
return `Unexpected HTTP Status Code: ${status}`;
|
|
@@ -89189,7 +89189,7 @@
|
|
|
89189
89189
|
return {
|
|
89190
89190
|
...response,
|
|
89191
89191
|
ok: false,
|
|
89192
|
-
status: HttpStatusCode$
|
|
89192
|
+
status: HttpStatusCode$2.ServerError,
|
|
89193
89193
|
statusText: PARSE_ERROR,
|
|
89194
89194
|
body: [
|
|
89195
89195
|
{
|
|
@@ -89247,9 +89247,9 @@
|
|
|
89247
89247
|
for (let i = 0, len = targetResults.length; i < len; i += 1) {
|
|
89248
89248
|
const targetResult = targetResults[i];
|
|
89249
89249
|
const sourceResult = sourceResults[i];
|
|
89250
|
-
if (targetResult.statusCode !== HttpStatusCode$
|
|
89250
|
+
if (targetResult.statusCode !== HttpStatusCode$2.Ok)
|
|
89251
89251
|
continue;
|
|
89252
|
-
if (sourceResult.statusCode !== HttpStatusCode$
|
|
89252
|
+
if (sourceResult.statusCode !== HttpStatusCode$2.Ok) {
|
|
89253
89253
|
targetResults[i] = sourceResult;
|
|
89254
89254
|
continue;
|
|
89255
89255
|
}
|
|
@@ -93855,18 +93855,24 @@
|
|
|
93855
93855
|
};
|
|
93856
93856
|
const ok$1$1 = (value) => new Ok$1$1(value);
|
|
93857
93857
|
const err$1$1 = (err2) => new Err$1$1(err2);
|
|
93858
|
+
function isResult$1(value) {
|
|
93859
|
+
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);
|
|
93860
|
+
}
|
|
93861
|
+
function isSubscribable$1(obj) {
|
|
93862
|
+
return typeof obj === "object" && obj !== null && "subscribe" in obj && typeof obj.subscribe === "function" && "refresh" in obj && typeof obj.refresh === "function";
|
|
93863
|
+
}
|
|
93858
93864
|
function isSubscribableResult$1(x) {
|
|
93859
|
-
if (
|
|
93865
|
+
if (!isResult$1(x)) {
|
|
93860
93866
|
return false;
|
|
93861
93867
|
}
|
|
93862
|
-
|
|
93863
|
-
|
|
93864
|
-
|
|
93865
|
-
|
|
93866
|
-
|
|
93867
|
-
|
|
93868
|
+
return isSubscribable$1(x.isOk() ? x.value : x.error);
|
|
93869
|
+
}
|
|
93870
|
+
function buildSubscribableResult$1(result, subscribe, refresh) {
|
|
93871
|
+
if (result.isOk()) {
|
|
93872
|
+
return ok$1$1({ data: result.value, subscribe, refresh });
|
|
93873
|
+
} else {
|
|
93874
|
+
return err$1$1({ failure: result.error, subscribe, refresh });
|
|
93868
93875
|
}
|
|
93869
|
-
return false;
|
|
93870
93876
|
}
|
|
93871
93877
|
function resolvedPromiseLike$3(result) {
|
|
93872
93878
|
if (isPromiseLike$3(result)) {
|
|
@@ -93954,6 +93960,47 @@
|
|
|
93954
93960
|
}
|
|
93955
93961
|
return new Error(typeof x === "string" ? x : JSON.stringify(x));
|
|
93956
93962
|
}
|
|
93963
|
+
var HttpStatusCode = /* @__PURE__ */ ((HttpStatusCode2) => {
|
|
93964
|
+
HttpStatusCode2[HttpStatusCode2["Ok"] = 200] = "Ok";
|
|
93965
|
+
HttpStatusCode2[HttpStatusCode2["Created"] = 201] = "Created";
|
|
93966
|
+
HttpStatusCode2[HttpStatusCode2["NoContent"] = 204] = "NoContent";
|
|
93967
|
+
HttpStatusCode2[HttpStatusCode2["NotModified"] = 304] = "NotModified";
|
|
93968
|
+
HttpStatusCode2[HttpStatusCode2["BadRequest"] = 400] = "BadRequest";
|
|
93969
|
+
HttpStatusCode2[HttpStatusCode2["Unauthorized"] = 401] = "Unauthorized";
|
|
93970
|
+
HttpStatusCode2[HttpStatusCode2["Forbidden"] = 403] = "Forbidden";
|
|
93971
|
+
HttpStatusCode2[HttpStatusCode2["NotFound"] = 404] = "NotFound";
|
|
93972
|
+
HttpStatusCode2[HttpStatusCode2["ServerError"] = 500] = "ServerError";
|
|
93973
|
+
HttpStatusCode2[HttpStatusCode2["GatewayTimeout"] = 504] = "GatewayTimeout";
|
|
93974
|
+
return HttpStatusCode2;
|
|
93975
|
+
})(HttpStatusCode || {});
|
|
93976
|
+
function getStatusText(status) {
|
|
93977
|
+
switch (status) {
|
|
93978
|
+
case 200:
|
|
93979
|
+
return "OK";
|
|
93980
|
+
case 201:
|
|
93981
|
+
return "Created";
|
|
93982
|
+
case 304:
|
|
93983
|
+
return "Not Modified";
|
|
93984
|
+
case 400:
|
|
93985
|
+
return "Bad Request";
|
|
93986
|
+
case 404:
|
|
93987
|
+
return "Not Found";
|
|
93988
|
+
case 500:
|
|
93989
|
+
return "Server Error";
|
|
93990
|
+
default:
|
|
93991
|
+
return `Unexpected HTTP Status Code: ${status}`;
|
|
93992
|
+
}
|
|
93993
|
+
}
|
|
93994
|
+
class FetchResponse extends Error {
|
|
93995
|
+
constructor(status, body, headers) {
|
|
93996
|
+
super();
|
|
93997
|
+
this.status = status;
|
|
93998
|
+
this.body = body;
|
|
93999
|
+
this.headers = headers || {};
|
|
94000
|
+
this.ok = status >= 200 && this.status <= 299;
|
|
94001
|
+
this.statusText = getStatusText(status);
|
|
94002
|
+
}
|
|
94003
|
+
}
|
|
93957
94004
|
let InternalError$1 = class InternalError extends Error {
|
|
93958
94005
|
constructor(data) {
|
|
93959
94006
|
super();
|
|
@@ -93998,35 +94045,27 @@
|
|
|
93998
94045
|
}
|
|
93999
94046
|
fetchSubscribableResult(res) {
|
|
94000
94047
|
return res.then((networkResult) => {
|
|
94001
|
-
|
|
94002
|
-
|
|
94003
|
-
|
|
94004
|
-
|
|
94005
|
-
|
|
94006
|
-
|
|
94007
|
-
|
|
94008
|
-
|
|
94009
|
-
|
|
94010
|
-
|
|
94011
|
-
};
|
|
94012
|
-
},
|
|
94013
|
-
refresh: () => this.refresh()
|
|
94014
|
-
});
|
|
94015
|
-
}
|
|
94048
|
+
return buildSubscribableResult$1(
|
|
94049
|
+
networkResult,
|
|
94050
|
+
(cb) => {
|
|
94051
|
+
this.subscriptions.push(cb);
|
|
94052
|
+
return () => {
|
|
94053
|
+
this.subscriptions = this.subscriptions.filter((cb2) => cb2 !== cb);
|
|
94054
|
+
};
|
|
94055
|
+
},
|
|
94056
|
+
() => this.refresh()
|
|
94057
|
+
);
|
|
94016
94058
|
});
|
|
94017
94059
|
}
|
|
94018
94060
|
refresh() {
|
|
94019
94061
|
return this.execute().then((newResult) => {
|
|
94020
|
-
if (newResult
|
|
94021
|
-
|
|
94022
|
-
|
|
94023
|
-
|
|
94024
|
-
|
|
94025
|
-
});
|
|
94026
|
-
}
|
|
94027
|
-
return ok$1$1(void 0);
|
|
94062
|
+
if (isSubscribableResult$1(newResult)) {
|
|
94063
|
+
const value = newResult.isOk() ? ok$1$1(newResult.value.data) : err$1$1(newResult.error.failure);
|
|
94064
|
+
this.subscriptions.forEach((cb) => {
|
|
94065
|
+
cb(value);
|
|
94066
|
+
});
|
|
94028
94067
|
}
|
|
94029
|
-
return
|
|
94068
|
+
return ok$1$1(void 0);
|
|
94030
94069
|
});
|
|
94031
94070
|
}
|
|
94032
94071
|
async afterRequestHooks(_options) {
|
|
@@ -94177,6 +94216,13 @@
|
|
|
94177
94216
|
};
|
|
94178
94217
|
const ok$3 = (value) => new Ok$3(value);
|
|
94179
94218
|
const err$2 = (err2) => new Err$2(err2);
|
|
94219
|
+
function buildSubscribableResult(result, subscribe, refresh) {
|
|
94220
|
+
if (result.isOk()) {
|
|
94221
|
+
return ok$3({ data: result.value, subscribe, refresh });
|
|
94222
|
+
} else {
|
|
94223
|
+
return err$2({ failure: result.error, subscribe, refresh });
|
|
94224
|
+
}
|
|
94225
|
+
}
|
|
94180
94226
|
function resolvedPromiseLike$2(result) {
|
|
94181
94227
|
if (isPromiseLike$2(result)) {
|
|
94182
94228
|
return result.then((nextResult) => nextResult);
|
|
@@ -94276,7 +94322,7 @@
|
|
|
94276
94322
|
const resultPromise = this.readFromCacheInternal(cache);
|
|
94277
94323
|
return resultPromise.then((result) => {
|
|
94278
94324
|
if (result.isErr()) {
|
|
94279
|
-
return err$2(result.error);
|
|
94325
|
+
return err$2(result.error.failure);
|
|
94280
94326
|
}
|
|
94281
94327
|
this.returnData = result;
|
|
94282
94328
|
return ok$3(void 0);
|
|
@@ -94305,7 +94351,7 @@
|
|
|
94305
94351
|
this.keysUsed = /* @__PURE__ */ new Set();
|
|
94306
94352
|
this.keysUpdated = void 0;
|
|
94307
94353
|
this.operationType = "query";
|
|
94308
|
-
this.
|
|
94354
|
+
this.lastResult = void 0;
|
|
94309
94355
|
this.unsubscribeFromKeysImpl = () => void 0;
|
|
94310
94356
|
this.subscriptions = [];
|
|
94311
94357
|
this.instantiationTime = Date.now() / 1e3;
|
|
@@ -94322,32 +94368,54 @@
|
|
|
94322
94368
|
instrumentationAttributes: this.instrumentationAttributes
|
|
94323
94369
|
});
|
|
94324
94370
|
return resultPromise.then((result) => {
|
|
94325
|
-
return this.handleCacheControllerResult(result, requestRunner)
|
|
94371
|
+
return this.handleCacheControllerResult(result, requestRunner).then((result2) => {
|
|
94372
|
+
if (this.lastResult === void 0) {
|
|
94373
|
+
if (result2.isErr()) {
|
|
94374
|
+
this.lastResult = { type: "error", error: result2.error.failure };
|
|
94375
|
+
} else {
|
|
94376
|
+
this.lastResult = { type: "data", data: result2.value.data };
|
|
94377
|
+
}
|
|
94378
|
+
}
|
|
94379
|
+
return result2;
|
|
94380
|
+
});
|
|
94326
94381
|
});
|
|
94327
94382
|
}
|
|
94328
94383
|
handleCacheControllerResult(result, requestRunner) {
|
|
94329
94384
|
const { networkError, networkData, returnData } = requestRunner;
|
|
94330
94385
|
return this.publishUpdatedKeys().then(() => {
|
|
94331
94386
|
if (networkError) {
|
|
94332
|
-
return
|
|
94387
|
+
return buildSubscribableResult(
|
|
94388
|
+
networkError,
|
|
94389
|
+
this.buildSubscribe(),
|
|
94390
|
+
() => this.refresh()
|
|
94391
|
+
);
|
|
94333
94392
|
}
|
|
94334
94393
|
if (result.isErr()) {
|
|
94335
94394
|
if (networkData) {
|
|
94336
|
-
return
|
|
94395
|
+
return buildSubscribableResult(
|
|
94396
|
+
networkData,
|
|
94397
|
+
this.buildSubscribe(),
|
|
94398
|
+
() => this.refresh()
|
|
94399
|
+
);
|
|
94337
94400
|
}
|
|
94338
|
-
return
|
|
94401
|
+
return buildSubscribableResult(result, this.buildSubscribe(), () => this.refresh());
|
|
94339
94402
|
}
|
|
94340
94403
|
if (this.subscriptions.length > 0) {
|
|
94341
94404
|
this.subscribeToKeysUsed();
|
|
94342
94405
|
}
|
|
94343
94406
|
if (returnData === void 0) {
|
|
94344
94407
|
if (networkData) {
|
|
94345
|
-
return
|
|
94408
|
+
return buildSubscribableResult(
|
|
94409
|
+
networkData,
|
|
94410
|
+
this.buildSubscribe(),
|
|
94411
|
+
() => this.refresh()
|
|
94412
|
+
);
|
|
94346
94413
|
}
|
|
94347
|
-
return
|
|
94348
|
-
|
|
94349
|
-
|
|
94350
|
-
|
|
94414
|
+
return buildSubscribableResult(
|
|
94415
|
+
err$2(new Error("Cache miss after fetching from network")),
|
|
94416
|
+
this.buildSubscribe(),
|
|
94417
|
+
() => this.refresh()
|
|
94418
|
+
);
|
|
94351
94419
|
}
|
|
94352
94420
|
return returnData;
|
|
94353
94421
|
});
|
|
@@ -94407,7 +94475,7 @@
|
|
|
94407
94475
|
refresh() {
|
|
94408
94476
|
return this.rerun({ cacheControlConfig: { type: "no-cache" } }).then((result) => {
|
|
94409
94477
|
if (result.isErr()) {
|
|
94410
|
-
return err$2(result.error);
|
|
94478
|
+
return err$2(result.error.failure);
|
|
94411
94479
|
}
|
|
94412
94480
|
return ok$3(void 0);
|
|
94413
94481
|
});
|
|
@@ -94425,22 +94493,22 @@
|
|
|
94425
94493
|
const result = this.readFromCache(recordableCache);
|
|
94426
94494
|
return result.then((readResult) => {
|
|
94427
94495
|
if (readResult.isErr()) {
|
|
94428
|
-
return
|
|
94496
|
+
return buildSubscribableResult(
|
|
94497
|
+
readResult,
|
|
94498
|
+
this.buildSubscribe(),
|
|
94499
|
+
() => this.refresh()
|
|
94500
|
+
);
|
|
94429
94501
|
} else {
|
|
94430
94502
|
const data = readResult.value;
|
|
94431
94503
|
this.keysUsed = recordableCache.keysRead;
|
|
94432
|
-
return
|
|
94504
|
+
return buildSubscribableResult(
|
|
94505
|
+
ok$3(data),
|
|
94506
|
+
this.buildSubscribe(),
|
|
94507
|
+
() => this.refresh()
|
|
94508
|
+
);
|
|
94433
94509
|
}
|
|
94434
94510
|
});
|
|
94435
94511
|
}
|
|
94436
|
-
constructSubscribableResult(data) {
|
|
94437
|
-
return ok$3({
|
|
94438
|
-
data,
|
|
94439
|
-
// this cast is in case we need to return Network data as a fallback for caching errors
|
|
94440
|
-
subscribe: this.buildSubscribe(),
|
|
94441
|
-
refresh: () => this.refresh()
|
|
94442
|
-
});
|
|
94443
|
-
}
|
|
94444
94512
|
/**
|
|
94445
94513
|
* Builds a function that subscribes to cache changes via the pubsub service. Whenever
|
|
94446
94514
|
* relevant cache updates occur, it re-reads the data and compares it against
|
|
@@ -94467,11 +94535,12 @@
|
|
|
94467
94535
|
rerun(overrides) {
|
|
94468
94536
|
return this.execute(overrides).then((result) => {
|
|
94469
94537
|
if (result.isErr()) {
|
|
94470
|
-
this.
|
|
94538
|
+
this.lastResult = { type: "error", error: result.error.failure };
|
|
94539
|
+
this.invokeConsumerCallbacks(err$2(result.error.failure));
|
|
94471
94540
|
return result;
|
|
94472
94541
|
}
|
|
94473
|
-
if (!this.equals(this.
|
|
94474
|
-
this.
|
|
94542
|
+
if (this.lastResult === void 0 || this.lastResult.type === "error" || !this.equals(this.lastResult.data, result.value.data)) {
|
|
94543
|
+
this.lastResult = { type: "data", data: result.value.data };
|
|
94475
94544
|
this.invokeConsumerCallbacks(ok$3(result.value.data));
|
|
94476
94545
|
}
|
|
94477
94546
|
return result;
|
|
@@ -94754,9 +94823,6 @@
|
|
|
94754
94823
|
super(services);
|
|
94755
94824
|
this.services = services;
|
|
94756
94825
|
}
|
|
94757
|
-
execute() {
|
|
94758
|
-
return super.execute();
|
|
94759
|
-
}
|
|
94760
94826
|
readFromCache(cache) {
|
|
94761
94827
|
var _a;
|
|
94762
94828
|
const data = (_a = cache.get(this.buildKey())) == null ? void 0 : _a.value;
|
|
@@ -94814,35 +94880,27 @@
|
|
|
94814
94880
|
}
|
|
94815
94881
|
fetchSubscribableResult(res) {
|
|
94816
94882
|
return res.then((networkResult) => {
|
|
94817
|
-
|
|
94818
|
-
|
|
94819
|
-
|
|
94820
|
-
|
|
94821
|
-
|
|
94822
|
-
|
|
94823
|
-
|
|
94824
|
-
|
|
94825
|
-
|
|
94826
|
-
|
|
94827
|
-
};
|
|
94828
|
-
},
|
|
94829
|
-
refresh: () => this.refresh()
|
|
94830
|
-
});
|
|
94831
|
-
}
|
|
94883
|
+
return buildSubscribableResult$1(
|
|
94884
|
+
networkResult,
|
|
94885
|
+
(cb) => {
|
|
94886
|
+
this.subscriptions.push(cb);
|
|
94887
|
+
return () => {
|
|
94888
|
+
this.subscriptions = this.subscriptions.filter((cb2) => cb2 !== cb);
|
|
94889
|
+
};
|
|
94890
|
+
},
|
|
94891
|
+
() => this.refresh()
|
|
94892
|
+
);
|
|
94832
94893
|
});
|
|
94833
94894
|
}
|
|
94834
94895
|
refresh() {
|
|
94835
94896
|
return this.execute().then((newResult) => {
|
|
94836
|
-
if (newResult
|
|
94837
|
-
|
|
94838
|
-
|
|
94839
|
-
|
|
94840
|
-
|
|
94841
|
-
});
|
|
94842
|
-
}
|
|
94843
|
-
return ok$1$1(void 0);
|
|
94897
|
+
if (isSubscribableResult$1(newResult)) {
|
|
94898
|
+
const value = newResult.isOk() ? ok$1$1(newResult.value.data) : err$1$1(newResult.error.failure);
|
|
94899
|
+
this.subscriptions.forEach((cb) => {
|
|
94900
|
+
cb(value);
|
|
94901
|
+
});
|
|
94844
94902
|
}
|
|
94845
|
-
return
|
|
94903
|
+
return ok$1$1(void 0);
|
|
94846
94904
|
});
|
|
94847
94905
|
}
|
|
94848
94906
|
async afterRequestHooks(_options) {
|
|
@@ -95366,6 +95424,59 @@
|
|
|
95366
95424
|
];
|
|
95367
95425
|
}
|
|
95368
95426
|
}
|
|
95427
|
+
class OnlyIfCachedCacheControlStrategy extends CacheControlStrategy {
|
|
95428
|
+
execute(options) {
|
|
95429
|
+
const startTime = this.services.instrumentation ? this.services.instrumentation.currentTimeMs() : 0;
|
|
95430
|
+
return this.services.cacheInclusionPolicy.read({
|
|
95431
|
+
l1: this.filteredCache,
|
|
95432
|
+
readFromL1: (l1) => this.requestRunner.readFromCache(l1)
|
|
95433
|
+
}).then((result) => {
|
|
95434
|
+
if (result.isOk()) {
|
|
95435
|
+
this.collectCacheHitInstrumentation(
|
|
95436
|
+
startTime,
|
|
95437
|
+
options == null ? void 0 : options.instrumentationAttributes
|
|
95438
|
+
);
|
|
95439
|
+
return ok$1$1(void 0);
|
|
95440
|
+
}
|
|
95441
|
+
this.collectCacheMissInstrumentation(startTime, options == null ? void 0 : options.instrumentationAttributes);
|
|
95442
|
+
const error = new UserVisibleError(
|
|
95443
|
+
new FetchResponse(HttpStatusCode.GatewayTimeout, {
|
|
95444
|
+
error: "Cache miss for only-if-cached request"
|
|
95445
|
+
})
|
|
95446
|
+
);
|
|
95447
|
+
return err$1$1(error);
|
|
95448
|
+
});
|
|
95449
|
+
}
|
|
95450
|
+
get expiredChecks() {
|
|
95451
|
+
return [
|
|
95452
|
+
(cacheControlMetadata) => cacheControlMetadata.type === "no-store"
|
|
95453
|
+
];
|
|
95454
|
+
}
|
|
95455
|
+
collectCacheHitInstrumentation(startTime, instrumentationAttributes) {
|
|
95456
|
+
if (this.services.instrumentation) {
|
|
95457
|
+
const meter = this.services.instrumentation.metrics.getMeter("onestore");
|
|
95458
|
+
meter.createCounter(`command.only-if-cached.cache-hit.count`).add(1, instrumentationAttributes);
|
|
95459
|
+
meter.createHistogram(
|
|
95460
|
+
`command.only-if-cached.cache-hit.duration`
|
|
95461
|
+
).record(
|
|
95462
|
+
this.services.instrumentation.currentTimeMs() - startTime,
|
|
95463
|
+
instrumentationAttributes
|
|
95464
|
+
);
|
|
95465
|
+
}
|
|
95466
|
+
}
|
|
95467
|
+
collectCacheMissInstrumentation(startTime, instrumentationAttributes) {
|
|
95468
|
+
if (this.services.instrumentation) {
|
|
95469
|
+
const meter = this.services.instrumentation.metrics.getMeter("onestore");
|
|
95470
|
+
meter.createCounter(`command.only-if-cached.cache-miss.count`).add(1, instrumentationAttributes);
|
|
95471
|
+
meter.createHistogram(
|
|
95472
|
+
`command.only-if-cached.cache-miss.duration`
|
|
95473
|
+
).record(
|
|
95474
|
+
this.services.instrumentation.currentTimeMs() - startTime,
|
|
95475
|
+
instrumentationAttributes
|
|
95476
|
+
);
|
|
95477
|
+
}
|
|
95478
|
+
}
|
|
95479
|
+
}
|
|
95369
95480
|
class CacheController {
|
|
95370
95481
|
constructor(services) {
|
|
95371
95482
|
this.services = services;
|
|
@@ -95379,6 +95490,8 @@
|
|
|
95379
95490
|
return new MaxAgeCacheControlStrategy(this.services, config, requestRunner);
|
|
95380
95491
|
} else if (config.type === "no-cache") {
|
|
95381
95492
|
return new NoCacheCacheControlStrategy(this.services, config, requestRunner);
|
|
95493
|
+
} else if (config.type === "only-if-cached") {
|
|
95494
|
+
return new OnlyIfCachedCacheControlStrategy(this.services, config, requestRunner);
|
|
95382
95495
|
}
|
|
95383
95496
|
throw new Error(`Unknown cache control strategy ${config.type}`);
|
|
95384
95497
|
}
|
|
@@ -95897,7 +96010,7 @@
|
|
|
95897
96010
|
},
|
|
95898
96011
|
};
|
|
95899
96012
|
}
|
|
95900
|
-
// version: 1.
|
|
96013
|
+
// version: 1.387.0-1c34f8f965
|
|
95901
96014
|
|
|
95902
96015
|
/**
|
|
95903
96016
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -95923,7 +96036,7 @@
|
|
|
95923
96036
|
},
|
|
95924
96037
|
};
|
|
95925
96038
|
}
|
|
95926
|
-
// version: 1.
|
|
96039
|
+
// version: 1.387.0-1c34f8f965
|
|
95927
96040
|
|
|
95928
96041
|
/*!
|
|
95929
96042
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -96958,22 +97071,22 @@
|
|
|
96958
97071
|
),
|
|
96959
97072
|
(errs) => this.coerceError(errs)
|
|
96960
97073
|
).then((result) => {
|
|
96961
|
-
|
|
96962
|
-
return this.constructSubscribableResult(result.value);
|
|
96963
|
-
}
|
|
96964
|
-
return result;
|
|
97074
|
+
return buildSubscribableResult$1(result, this.buildSubscribe(), () => this.refresh());
|
|
96965
97075
|
});
|
|
96966
97076
|
} else if (this.shouldUseFetch()) {
|
|
96967
97077
|
return this.convertFetchResponseToData(
|
|
96968
97078
|
this.services.fetch(...this.originalFetchParams)
|
|
96969
97079
|
).then((result) => {
|
|
96970
|
-
|
|
96971
|
-
return this.constructSubscribableResult(result.value);
|
|
96972
|
-
}
|
|
96973
|
-
return result;
|
|
97080
|
+
return buildSubscribableResult$1(result, this.buildSubscribe(), () => this.refresh());
|
|
96974
97081
|
});
|
|
96975
97082
|
}
|
|
96976
|
-
return resolvedPromiseLike$3(
|
|
97083
|
+
return resolvedPromiseLike$3(
|
|
97084
|
+
buildSubscribableResult$1(
|
|
97085
|
+
err$1$1(toError("Aura/Fetch network services not found")),
|
|
97086
|
+
this.buildSubscribe(),
|
|
97087
|
+
() => this.refresh()
|
|
97088
|
+
)
|
|
97089
|
+
);
|
|
96977
97090
|
}
|
|
96978
97091
|
buildRequestQuery() {
|
|
96979
97092
|
const augmentedQueryResult = this.documentRootType.buildAugmentedQuery(this.config);
|
|
@@ -97002,9 +97115,6 @@
|
|
|
97002
97115
|
if (this.subscriptions.length > 0) {
|
|
97003
97116
|
this.subscribeToKeysUsed();
|
|
97004
97117
|
}
|
|
97005
|
-
if (this.lastEmittedData === void 0) {
|
|
97006
|
-
this.lastEmittedData = returnData.value.data;
|
|
97007
|
-
}
|
|
97008
97118
|
return returnData;
|
|
97009
97119
|
});
|
|
97010
97120
|
}
|
|
@@ -97096,10 +97206,7 @@
|
|
|
97096
97206
|
return this.convertFetchResponseToData(
|
|
97097
97207
|
this.services.fetch(...this.originalFetchParams)
|
|
97098
97208
|
).then((result) => {
|
|
97099
|
-
|
|
97100
|
-
return this.constructSubscribableResult(result.value);
|
|
97101
|
-
}
|
|
97102
|
-
return result;
|
|
97209
|
+
return buildSubscribableResult$1(result, this.buildSubscribe(), () => this.refresh());
|
|
97103
97210
|
});
|
|
97104
97211
|
}
|
|
97105
97212
|
// Any changes to this method should most likely be duplicated in the aura command as well
|
|
@@ -97112,9 +97219,6 @@
|
|
|
97112
97219
|
if (this.subscriptions.length > 0) {
|
|
97113
97220
|
this.subscribeToKeysUsed();
|
|
97114
97221
|
}
|
|
97115
|
-
if (this.lastEmittedData === void 0) {
|
|
97116
|
-
this.lastEmittedData = returnData.value.data;
|
|
97117
|
-
}
|
|
97118
97222
|
return returnData;
|
|
97119
97223
|
});
|
|
97120
97224
|
}
|
|
@@ -98123,7 +98227,7 @@
|
|
|
98123
98227
|
id: '@salesforce/lds-network-adapter',
|
|
98124
98228
|
instrument: instrument$2,
|
|
98125
98229
|
});
|
|
98126
|
-
// version: 1.
|
|
98230
|
+
// version: 1.387.0-8c93a5dd2c
|
|
98127
98231
|
|
|
98128
98232
|
const { create: create$3, keys: keys$3 } = Object;
|
|
98129
98233
|
const { stringify: stringify$1, parse } = JSON;
|
|
@@ -99012,7 +99116,7 @@
|
|
|
99012
99116
|
function deepMerge$2(target, ...sources) {
|
|
99013
99117
|
for (const source of sources) {
|
|
99014
99118
|
for (const key in source) {
|
|
99015
|
-
if (hasOwnProperty$
|
|
99119
|
+
if (hasOwnProperty$3.call(source, key)) {
|
|
99016
99120
|
const targetValue = target[key];
|
|
99017
99121
|
const sourceValue = source[key];
|
|
99018
99122
|
if (Array.isArray(targetValue) && Array.isArray(sourceValue)) {
|
|
@@ -100376,18 +100480,17 @@
|
|
|
100376
100480
|
}
|
|
100377
100481
|
};
|
|
100378
100482
|
const ok$1 = (value) => new Ok$1(value);
|
|
100483
|
+
function isResult(value) {
|
|
100484
|
+
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);
|
|
100485
|
+
}
|
|
100486
|
+
function isSubscribable(obj) {
|
|
100487
|
+
return typeof obj === "object" && obj !== null && "subscribe" in obj && typeof obj.subscribe === "function" && "refresh" in obj && typeof obj.refresh === "function";
|
|
100488
|
+
}
|
|
100379
100489
|
function isSubscribableResult(x) {
|
|
100380
|
-
if (
|
|
100490
|
+
if (!isResult(x)) {
|
|
100381
100491
|
return false;
|
|
100382
100492
|
}
|
|
100383
|
-
|
|
100384
|
-
if (x.isOk()) {
|
|
100385
|
-
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";
|
|
100386
|
-
} else {
|
|
100387
|
-
return "error" in x;
|
|
100388
|
-
}
|
|
100389
|
-
}
|
|
100390
|
-
return false;
|
|
100493
|
+
return isSubscribable(x.isOk() ? x.value : x.error);
|
|
100391
100494
|
}
|
|
100392
100495
|
const deeplyFrozen = new WeakSetConstructor();
|
|
100393
100496
|
function deepFreeze(value) {
|
|
@@ -100481,6 +100584,18 @@
|
|
|
100481
100584
|
}
|
|
100482
100585
|
console.error("OneStore Command threw an error that we did not expect", error);
|
|
100483
100586
|
}
|
|
100587
|
+
const supportedCachePolicyTypes = ["no-cache", "only-if-cached"];
|
|
100588
|
+
function requestContextIsSupportedCachePolicy(requestContext) {
|
|
100589
|
+
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(
|
|
100590
|
+
requestContext.cachePolicy.type
|
|
100591
|
+
);
|
|
100592
|
+
}
|
|
100593
|
+
function getOverridesForLegacyRequestContext(requestContext) {
|
|
100594
|
+
if (requestContextIsSupportedCachePolicy(requestContext)) {
|
|
100595
|
+
return { cacheControlConfig: { type: requestContext.cachePolicy.type } };
|
|
100596
|
+
}
|
|
100597
|
+
return {};
|
|
100598
|
+
}
|
|
100484
100599
|
class CommandWireAdapterConstructor {
|
|
100485
100600
|
constructor(callback, sourceContext, options) {
|
|
100486
100601
|
this.callback = callback;
|
|
@@ -100538,7 +100653,11 @@
|
|
|
100538
100653
|
consumerEmittedData.refresh = consumerEmittedRefresh;
|
|
100539
100654
|
}
|
|
100540
100655
|
if (result.isErr()) {
|
|
100541
|
-
|
|
100656
|
+
if (isSubscribableResult(result)) {
|
|
100657
|
+
consumerEmittedData.error = result.error.failure;
|
|
100658
|
+
} else {
|
|
100659
|
+
consumerEmittedData.error = result.error;
|
|
100660
|
+
}
|
|
100542
100661
|
} else {
|
|
100543
100662
|
if (isSubscribableResult(result)) {
|
|
100544
100663
|
deepFreeze(result.value.data);
|
|
@@ -100561,11 +100680,11 @@
|
|
|
100561
100680
|
if (this.configSchema) {
|
|
100562
100681
|
try {
|
|
100563
100682
|
assertIsValid(this.config, this.configSchema);
|
|
100564
|
-
} catch (
|
|
100565
|
-
if (isIncompleteConfigError(
|
|
100683
|
+
} catch (err2) {
|
|
100684
|
+
if (isIncompleteConfigError(err2)) {
|
|
100566
100685
|
return;
|
|
100567
100686
|
}
|
|
100568
|
-
throw
|
|
100687
|
+
throw err2;
|
|
100569
100688
|
}
|
|
100570
100689
|
}
|
|
100571
100690
|
const initialConfig = this.config;
|
|
@@ -100592,9 +100711,22 @@
|
|
|
100592
100711
|
this.emit(result);
|
|
100593
100712
|
}
|
|
100594
100713
|
} else {
|
|
100595
|
-
|
|
100596
|
-
|
|
100597
|
-
|
|
100714
|
+
if (isSubscribableResult(result)) {
|
|
100715
|
+
const value = result.error;
|
|
100716
|
+
this.unsubscriber = value.subscribe((updatedResult) => {
|
|
100717
|
+
if (!this.connected || this.config !== initialConfig) {
|
|
100718
|
+
this.unsubscribe();
|
|
100719
|
+
return;
|
|
100720
|
+
}
|
|
100721
|
+
this.emit(updatedResult);
|
|
100722
|
+
});
|
|
100723
|
+
this.refresh = value.refresh;
|
|
100724
|
+
this.emit(result);
|
|
100725
|
+
} else {
|
|
100726
|
+
this.unsubscriber = () => {
|
|
100727
|
+
};
|
|
100728
|
+
this.emit(result);
|
|
100729
|
+
}
|
|
100598
100730
|
}
|
|
100599
100731
|
});
|
|
100600
100732
|
} catch (e) {
|
|
@@ -100611,8 +100743,8 @@
|
|
|
100611
100743
|
}
|
|
100612
100744
|
}
|
|
100613
100745
|
}
|
|
100614
|
-
function isIncompleteConfigError(
|
|
100615
|
-
return
|
|
100746
|
+
function isIncompleteConfigError(err2) {
|
|
100747
|
+
return err2 instanceof MissingRequiredPropertyError || err2 instanceof JsonSchemaViolationError && err2.validationErrors.find(
|
|
100616
100748
|
(validationError) => validationError instanceof MissingRequiredPropertyError
|
|
100617
100749
|
) !== void 0;
|
|
100618
100750
|
}
|
|
@@ -100656,16 +100788,31 @@
|
|
|
100656
100788
|
}
|
|
100657
100789
|
return result;
|
|
100658
100790
|
}
|
|
100659
|
-
function wrapConfigAndVerify(config) {
|
|
100791
|
+
function wrapConfigAndVerify(config, options) {
|
|
100660
100792
|
if (config == null ? void 0 : config.query) {
|
|
100661
100793
|
config = { ...config, query: resolveAst(config.query) };
|
|
100662
100794
|
if (config.query === void 0) {
|
|
100663
100795
|
throw new Error("Internal error in GraphQL adapter occurred: Unable to resolve query");
|
|
100664
100796
|
}
|
|
100665
|
-
validateGraphQLOperations(config, {
|
|
100797
|
+
validateGraphQLOperations(config, {
|
|
100798
|
+
acceptedOperations: (options == null ? void 0 : options.acceptedOperations) ?? ["query"]
|
|
100799
|
+
});
|
|
100666
100800
|
}
|
|
100667
100801
|
return config;
|
|
100668
100802
|
}
|
|
100803
|
+
function toGraphQLResponseFromFailure(failure) {
|
|
100804
|
+
if (isUserVisibleError(failure)) {
|
|
100805
|
+
return {
|
|
100806
|
+
data: failure.data.data,
|
|
100807
|
+
errors: failure.data.errors
|
|
100808
|
+
};
|
|
100809
|
+
}
|
|
100810
|
+
logError(failure);
|
|
100811
|
+
return {
|
|
100812
|
+
data: void 0,
|
|
100813
|
+
errors: [{ message: "Internal error in GraphQL adapter occurred", locations: [] }]
|
|
100814
|
+
};
|
|
100815
|
+
}
|
|
100669
100816
|
class GraphQLCommandWireAdapterConstructor extends CommandWireAdapterConstructor {
|
|
100670
100817
|
emit(result) {
|
|
100671
100818
|
try {
|
|
@@ -100702,18 +100849,10 @@
|
|
|
100702
100849
|
consumerEmittedData.refresh = consumerEmittedRefresh;
|
|
100703
100850
|
}
|
|
100704
100851
|
if (result.isErr()) {
|
|
100705
|
-
|
|
100706
|
-
|
|
100707
|
-
|
|
100708
|
-
|
|
100709
|
-
} else {
|
|
100710
|
-
consumerEmittedData.errors = [
|
|
100711
|
-
{
|
|
100712
|
-
message: "Internal error in GraphQL adapter occurred",
|
|
100713
|
-
locations: []
|
|
100714
|
-
}
|
|
100715
|
-
];
|
|
100716
|
-
}
|
|
100852
|
+
const failure = isSubscribableResult(result) ? result.error.failure : result.error;
|
|
100853
|
+
const resp = toGraphQLResponseFromFailure(failure);
|
|
100854
|
+
consumerEmittedData.data = resp.data;
|
|
100855
|
+
consumerEmittedData.errors = resp.errors;
|
|
100717
100856
|
} else {
|
|
100718
100857
|
consumerEmittedData.data = result.value.data;
|
|
100719
100858
|
}
|
|
@@ -100815,15 +100954,9 @@
|
|
|
100815
100954
|
};
|
|
100816
100955
|
}
|
|
100817
100956
|
} else {
|
|
100818
|
-
|
|
100819
|
-
|
|
100820
|
-
|
|
100821
|
-
} else {
|
|
100822
|
-
logError(result.error);
|
|
100823
|
-
consumerEmittedData.errors = [
|
|
100824
|
-
{ message: "Internal error in GraphQL adapter occurred", locations: [] }
|
|
100825
|
-
];
|
|
100826
|
-
}
|
|
100957
|
+
const resp = toGraphQLResponseFromFailure(result.error.failure);
|
|
100958
|
+
consumerEmittedData.data = resp.data;
|
|
100959
|
+
consumerEmittedData.errors = resp.errors;
|
|
100827
100960
|
}
|
|
100828
100961
|
return consumerEmittedData;
|
|
100829
100962
|
} catch (error) {
|
|
@@ -100840,7 +100973,7 @@
|
|
|
100840
100973
|
config = wrapConfigAndVerify(config);
|
|
100841
100974
|
const command = getCommand({ config, assertIsValid });
|
|
100842
100975
|
try {
|
|
100843
|
-
const overrides =
|
|
100976
|
+
const overrides = getOverridesForLegacyRequestContext(requestContext);
|
|
100844
100977
|
const result = await command.execute(overrides);
|
|
100845
100978
|
const consumerEmittedData = {
|
|
100846
100979
|
data: void 0,
|
|
@@ -100850,15 +100983,9 @@
|
|
|
100850
100983
|
deepFreeze(result.value);
|
|
100851
100984
|
consumerEmittedData.data = result.value.data.data;
|
|
100852
100985
|
} else {
|
|
100853
|
-
|
|
100854
|
-
|
|
100855
|
-
|
|
100856
|
-
} else {
|
|
100857
|
-
logError(result.error);
|
|
100858
|
-
consumerEmittedData.errors = [
|
|
100859
|
-
{ message: "Internal error in GraphQL adapter occurred", locations: [] }
|
|
100860
|
-
];
|
|
100861
|
-
}
|
|
100986
|
+
const { data, errors } = toGraphQLResponseFromFailure(result.error.failure);
|
|
100987
|
+
consumerEmittedData.data = data;
|
|
100988
|
+
consumerEmittedData.errors = errors;
|
|
100862
100989
|
}
|
|
100863
100990
|
callback(consumerEmittedData);
|
|
100864
100991
|
} catch (error) {
|
|
@@ -100874,7 +101001,7 @@
|
|
|
100874
101001
|
const command = getCommand({ config, assertIsValid });
|
|
100875
101002
|
let unsubscribe = () => {
|
|
100876
101003
|
};
|
|
100877
|
-
const overrides =
|
|
101004
|
+
const overrides = getOverridesForLegacyRequestContext(requestContext);
|
|
100878
101005
|
command.execute(overrides).then((result) => {
|
|
100879
101006
|
const consumerEmittedData = {
|
|
100880
101007
|
data: void 0,
|
|
@@ -100883,42 +101010,20 @@
|
|
|
100883
101010
|
if (result.isOk()) {
|
|
100884
101011
|
deepFreeze(result.value);
|
|
100885
101012
|
consumerEmittedData.data = result.value.data.data;
|
|
100886
|
-
unsubscribe = result.value.subscribe(
|
|
100887
|
-
|
|
100888
|
-
|
|
100889
|
-
errors: void 0
|
|
100890
|
-
};
|
|
100891
|
-
if (res.isOk()) {
|
|
100892
|
-
consumerEmittedData2.data = res.value.data;
|
|
100893
|
-
} else {
|
|
100894
|
-
if (isUserVisibleError(res.error)) {
|
|
100895
|
-
consumerEmittedData2.data = res.error.data.data;
|
|
100896
|
-
consumerEmittedData2.errors = res.error.data.errors;
|
|
100897
|
-
} else {
|
|
100898
|
-
logError(res.error);
|
|
100899
|
-
consumerEmittedData2.errors = [
|
|
100900
|
-
{
|
|
100901
|
-
message: "Internal error in GraphQL adapter occurred",
|
|
100902
|
-
locations: []
|
|
100903
|
-
}
|
|
100904
|
-
];
|
|
100905
|
-
}
|
|
101013
|
+
unsubscribe = result.value.subscribe(
|
|
101014
|
+
(res) => {
|
|
101015
|
+
handleEmit(res, callback);
|
|
100906
101016
|
}
|
|
100907
|
-
|
|
100908
|
-
});
|
|
101017
|
+
);
|
|
100909
101018
|
} else {
|
|
100910
|
-
|
|
100911
|
-
|
|
100912
|
-
|
|
100913
|
-
|
|
100914
|
-
|
|
100915
|
-
|
|
100916
|
-
|
|
100917
|
-
|
|
100918
|
-
locations: []
|
|
100919
|
-
}
|
|
100920
|
-
];
|
|
100921
|
-
}
|
|
101019
|
+
const { data, errors } = toGraphQLResponseFromFailure(result.error.failure);
|
|
101020
|
+
consumerEmittedData.data = data;
|
|
101021
|
+
consumerEmittedData.errors = errors;
|
|
101022
|
+
unsubscribe = result.error.subscribe(
|
|
101023
|
+
(res) => {
|
|
101024
|
+
handleEmit(res, callback);
|
|
101025
|
+
}
|
|
101026
|
+
);
|
|
100922
101027
|
}
|
|
100923
101028
|
callback(consumerEmittedData);
|
|
100924
101029
|
});
|
|
@@ -100928,10 +101033,21 @@
|
|
|
100928
101033
|
};
|
|
100929
101034
|
return { invoke, subscribe };
|
|
100930
101035
|
}
|
|
100931
|
-
function
|
|
100932
|
-
|
|
101036
|
+
function handleEmit(res, callback) {
|
|
101037
|
+
const consumerEmittedData = {
|
|
101038
|
+
data: void 0,
|
|
101039
|
+
errors: void 0
|
|
101040
|
+
};
|
|
101041
|
+
if (res.isOk()) {
|
|
101042
|
+
consumerEmittedData.data = res.value.data;
|
|
101043
|
+
} else {
|
|
101044
|
+
const { data, errors } = toGraphQLResponseFromFailure(res.error);
|
|
101045
|
+
consumerEmittedData.data = data;
|
|
101046
|
+
consumerEmittedData.errors = errors;
|
|
101047
|
+
}
|
|
101048
|
+
callback(consumerEmittedData);
|
|
100933
101049
|
}
|
|
100934
|
-
// version: 1.
|
|
101050
|
+
// version: 1.387.0-1c34f8f965
|
|
100935
101051
|
|
|
100936
101052
|
class Analytics__AnalyticsBrowseRepository extends UnidentifiableGraphQLTypeRepository {
|
|
100937
101053
|
constructor(services, typeRegistry) {
|
|
@@ -103589,6 +103705,7 @@
|
|
|
103589
103705
|
* All rights reserved.
|
|
103590
103706
|
* For full license text, see the LICENSE.txt file
|
|
103591
103707
|
*/
|
|
103708
|
+
const { hasOwnProperty: hasOwnProperty$1 } = Object.prototype;
|
|
103592
103709
|
class Ok {
|
|
103593
103710
|
constructor(value) {
|
|
103594
103711
|
this.value = value;
|
|
@@ -104014,18 +104131,133 @@
|
|
|
104014
104131
|
}
|
|
104015
104132
|
}
|
|
104016
104133
|
|
|
104017
|
-
|
|
104018
|
-
|
|
104019
|
-
|
|
104020
|
-
|
|
104021
|
-
|
|
104022
|
-
|
|
104023
|
-
|
|
104024
|
-
|
|
104025
|
-
|
|
104026
|
-
|
|
104027
|
-
|
|
104028
|
-
|
|
104134
|
+
class BlobObjectRepository extends UnidentifiableGraphQLTypeRepository {
|
|
104135
|
+
constructor() {
|
|
104136
|
+
super(...arguments);
|
|
104137
|
+
this.namespace = 'uiapi';
|
|
104138
|
+
this.typeName = 'Blob';
|
|
104139
|
+
this.fields = {};
|
|
104140
|
+
this.implementedInterfaces = [];
|
|
104141
|
+
}
|
|
104142
|
+
normalizeFragment(_cache, _input, _fragment, errorCollector) {
|
|
104143
|
+
errorCollector.push({
|
|
104144
|
+
type: 'unknown',
|
|
104145
|
+
error: new Error('Fragments are not supported for Blob fields'),
|
|
104146
|
+
});
|
|
104147
|
+
return {};
|
|
104148
|
+
}
|
|
104149
|
+
denormalizeFragment(_cache, _input, _fragment, errorCollector) {
|
|
104150
|
+
errorCollector.push({
|
|
104151
|
+
type: 'unknown',
|
|
104152
|
+
error: new Error('Fragments are not supported for Blob fields'),
|
|
104153
|
+
});
|
|
104154
|
+
return {};
|
|
104155
|
+
}
|
|
104156
|
+
getFieldDef(_input, _selection) {
|
|
104157
|
+
return new BlobFieldDef({});
|
|
104158
|
+
}
|
|
104159
|
+
}
|
|
104160
|
+
class BlobFieldDef {
|
|
104161
|
+
constructor(services) {
|
|
104162
|
+
this.objectRepository = new BlobObjectRepository(services);
|
|
104163
|
+
}
|
|
104164
|
+
read(cache, input) {
|
|
104165
|
+
const errors = [];
|
|
104166
|
+
if (input.normalizedData.type === 'array') {
|
|
104167
|
+
const data = input.normalizedData.data.map((item) => {
|
|
104168
|
+
const result = this.read(cache, { ...input, normalizedData: item });
|
|
104169
|
+
if (result.isErr()) {
|
|
104170
|
+
errors.push(...result.error);
|
|
104171
|
+
return undefined;
|
|
104172
|
+
}
|
|
104173
|
+
return result.value;
|
|
104174
|
+
});
|
|
104175
|
+
if (errors.length > 0) {
|
|
104176
|
+
return err(errors);
|
|
104177
|
+
}
|
|
104178
|
+
return ok(data);
|
|
104179
|
+
}
|
|
104180
|
+
else if (input.normalizedData.type === 'object') {
|
|
104181
|
+
const selections = input.selection.selectionSet?.selections;
|
|
104182
|
+
if (!selections) {
|
|
104183
|
+
return err([
|
|
104184
|
+
{
|
|
104185
|
+
type: 'unknown',
|
|
104186
|
+
error: new Error('Object data must have a selection set'),
|
|
104187
|
+
},
|
|
104188
|
+
]);
|
|
104189
|
+
}
|
|
104190
|
+
const result = this.objectRepository.read(cache, {
|
|
104191
|
+
...input,
|
|
104192
|
+
normalizedData: input.normalizedData.data,
|
|
104193
|
+
selections,
|
|
104194
|
+
request: input.request,
|
|
104195
|
+
});
|
|
104196
|
+
if (result.isErr()) {
|
|
104197
|
+
return err(result.error);
|
|
104198
|
+
}
|
|
104199
|
+
return ok(result.value);
|
|
104200
|
+
}
|
|
104201
|
+
else {
|
|
104202
|
+
return ok(input.normalizedData.data);
|
|
104203
|
+
}
|
|
104204
|
+
}
|
|
104205
|
+
write(cache, input) {
|
|
104206
|
+
if (Array.isArray(input.data)) {
|
|
104207
|
+
const errors = [];
|
|
104208
|
+
const result = {
|
|
104209
|
+
type: 'array',
|
|
104210
|
+
data: input.data.map((item) => {
|
|
104211
|
+
const result = this.write(cache, { ...input, data: item });
|
|
104212
|
+
if (result.isErr()) {
|
|
104213
|
+
errors.push(...result.error);
|
|
104214
|
+
return undefined;
|
|
104215
|
+
}
|
|
104216
|
+
return result.value;
|
|
104217
|
+
}),
|
|
104218
|
+
};
|
|
104219
|
+
if (errors.length > 0) {
|
|
104220
|
+
return err(errors);
|
|
104221
|
+
}
|
|
104222
|
+
return ok(result);
|
|
104223
|
+
}
|
|
104224
|
+
else if (typeof input.data === 'object' && input.data !== null) {
|
|
104225
|
+
const selections = input.selection.selectionSet?.selections;
|
|
104226
|
+
if (!selections) {
|
|
104227
|
+
return err([
|
|
104228
|
+
{
|
|
104229
|
+
type: 'unknown',
|
|
104230
|
+
error: new Error('Object data must have a selection set'),
|
|
104231
|
+
},
|
|
104232
|
+
]);
|
|
104233
|
+
}
|
|
104234
|
+
const result = this.objectRepository.write(cache, {
|
|
104235
|
+
...input,
|
|
104236
|
+
selections,
|
|
104237
|
+
request: input.request,
|
|
104238
|
+
});
|
|
104239
|
+
if (result.isErr()) {
|
|
104240
|
+
return err(result.error);
|
|
104241
|
+
}
|
|
104242
|
+
return ok({
|
|
104243
|
+
type: 'object',
|
|
104244
|
+
data: result.value,
|
|
104245
|
+
});
|
|
104246
|
+
}
|
|
104247
|
+
else {
|
|
104248
|
+
return ok({
|
|
104249
|
+
type: 'scalar',
|
|
104250
|
+
data: input.data,
|
|
104251
|
+
});
|
|
104252
|
+
}
|
|
104253
|
+
}
|
|
104254
|
+
buildFieldKey(selection, variables) {
|
|
104255
|
+
return buildFieldKey(selection.name.value, selection.arguments, variables);
|
|
104256
|
+
}
|
|
104257
|
+
augmentSelections(input) {
|
|
104258
|
+
return input;
|
|
104259
|
+
}
|
|
104260
|
+
}
|
|
104029
104261
|
|
|
104030
104262
|
// The generated repository is identifiable, since setup data isn't cached,
|
|
104031
104263
|
// there's no need for an identifiable repository
|
|
@@ -104081,7 +104313,7 @@
|
|
|
104081
104313
|
return super.getFieldDef(input, selection);
|
|
104082
104314
|
}
|
|
104083
104315
|
// We should make this smarter, storing and returning blobs isn't great since it could, and likely will, include unrequested field data
|
|
104084
|
-
return
|
|
104316
|
+
return new BlobFieldDef(this.services);
|
|
104085
104317
|
}
|
|
104086
104318
|
satisfiesFragmentTypeCondition(input, fragment) {
|
|
104087
104319
|
return genericSatisfiesFragmentTypeCondition(super.satisfiesFragmentTypeCondition.bind(this), input, fragment, this.typeName);
|
|
@@ -104121,7 +104353,7 @@
|
|
|
104121
104353
|
if (staticFields.includes(selection.name.value)) {
|
|
104122
104354
|
return super.getFieldDef(input, selection);
|
|
104123
104355
|
}
|
|
104124
|
-
return
|
|
104356
|
+
return new BlobFieldDef(this.services);
|
|
104125
104357
|
}
|
|
104126
104358
|
satisfiesFragmentTypeCondition(_input, fragment) {
|
|
104127
104359
|
return genericSatisfiesFragmentTypeCondition(super.satisfiesFragmentTypeCondition.bind(this), _input, fragment, this.typeName);
|
|
@@ -104643,9 +104875,56 @@
|
|
|
104643
104875
|
};
|
|
104644
104876
|
}
|
|
104645
104877
|
|
|
104878
|
+
function validateNonQueryGraphQLConfig(config) {
|
|
104879
|
+
if (config !== null && typeof config === 'object') {
|
|
104880
|
+
if (hasOwnProperty$1.call(config, 'operationName') &&
|
|
104881
|
+
config.operationName === undefined) {
|
|
104882
|
+
return err('operationName is undefined');
|
|
104883
|
+
}
|
|
104884
|
+
if (hasOwnProperty$1.call(config, 'variables') &&
|
|
104885
|
+
config.variables === undefined) {
|
|
104886
|
+
return err('variables is undefined');
|
|
104887
|
+
}
|
|
104888
|
+
return ok(config);
|
|
104889
|
+
}
|
|
104890
|
+
return err('config is not an object');
|
|
104891
|
+
}
|
|
104892
|
+
|
|
104893
|
+
class GraphQLCommandWireAdapterConstructorV1Import extends GraphQLCommandWireAdapterConstructor {
|
|
104894
|
+
update(config, _context) {
|
|
104895
|
+
const validatedConfig = validateNonQueryGraphQLConfig(config);
|
|
104896
|
+
if (validatedConfig.isErr()) {
|
|
104897
|
+
// config is incomplete, delay execution
|
|
104898
|
+
return;
|
|
104899
|
+
}
|
|
104900
|
+
super.update(validatedConfig.value, _context);
|
|
104901
|
+
}
|
|
104902
|
+
}
|
|
104903
|
+
|
|
104904
|
+
function buildAsyncGraphQLImperativeLegacyInvokerV1Import(getCommand) {
|
|
104905
|
+
const { invoke: invokeOriginal, subscribe: subscribeOriginal } = buildAsyncGraphQLImperativeLegacyInvoker(getCommand);
|
|
104906
|
+
const invoke = async (config, requestContext, callback) => {
|
|
104907
|
+
const validatedConfig = validateNonQueryGraphQLConfig(config);
|
|
104908
|
+
if (validatedConfig.isErr()) {
|
|
104909
|
+
throw new Error(`Invalid configuration passed to GraphQL: ${validatedConfig.error}`);
|
|
104910
|
+
}
|
|
104911
|
+
return invokeOriginal(validatedConfig.value, requestContext, callback);
|
|
104912
|
+
};
|
|
104913
|
+
const subscribe = (config, requestContext, callback) => {
|
|
104914
|
+
const validatedConfig = validateNonQueryGraphQLConfig(config);
|
|
104915
|
+
if (validatedConfig.isErr()) {
|
|
104916
|
+
throw new Error(`Invalid configuration passed to GraphQL: ${validatedConfig.error}`);
|
|
104917
|
+
}
|
|
104918
|
+
return subscribeOriginal(validatedConfig.value, requestContext, callback);
|
|
104919
|
+
};
|
|
104920
|
+
return { invoke, subscribe };
|
|
104921
|
+
}
|
|
104922
|
+
|
|
104646
104923
|
let graphql$1;
|
|
104924
|
+
let graphql_v1_import;
|
|
104647
104925
|
let graphql_imperative$1;
|
|
104648
104926
|
let graphql_imperative_legacy;
|
|
104927
|
+
let graphql_imperative_legacy_v1_import;
|
|
104649
104928
|
let useOneStoreGraphQL = false;
|
|
104650
104929
|
const serviceRequirements = {
|
|
104651
104930
|
instrumentCommand: {
|
|
@@ -104708,6 +104987,16 @@
|
|
|
104708
104987
|
return new graphql_ctor(this.config, documentRootType, services);
|
|
104709
104988
|
}
|
|
104710
104989
|
};
|
|
104990
|
+
graphql_v1_import = class extends GraphQLCommandWireAdapterConstructorV1Import {
|
|
104991
|
+
constructor() {
|
|
104992
|
+
super(...arguments);
|
|
104993
|
+
this.configSchema = CONFIG_SCHEMA;
|
|
104994
|
+
this.exposeRefresh = true;
|
|
104995
|
+
}
|
|
104996
|
+
getCommand() {
|
|
104997
|
+
return new graphql_ctor(this.config, documentRootType, services);
|
|
104998
|
+
}
|
|
104999
|
+
};
|
|
104711
105000
|
const graphql_imperative_ctor = services.instrumentCommand(buildCommandClass(services.auraGraphQLNormalizedCacheControlCommand), 'graphql_imperative');
|
|
104712
105001
|
graphql_imperative$1 = buildAsyncGraphQLImperativeInvoker(({ params, assertIsValid }) => {
|
|
104713
105002
|
const config = params[0];
|
|
@@ -104720,6 +105009,12 @@
|
|
|
104720
105009
|
_(config, CONFIG_SCHEMA);
|
|
104721
105010
|
return new graphql_imperative_ctor(config, documentRootType, services);
|
|
104722
105011
|
});
|
|
105012
|
+
graphql_imperative_legacy_v1_import =
|
|
105013
|
+
buildAsyncGraphQLImperativeLegacyInvokerV1Import(({ config, assertIsValid }) => {
|
|
105014
|
+
const _ = assertIsValid;
|
|
105015
|
+
_(config, CONFIG_SCHEMA);
|
|
105016
|
+
return new graphql_imperative_ctor(config, documentRootType, services);
|
|
105017
|
+
});
|
|
104723
105018
|
useOneStoreGraphQL = services.featureFlags?.get('useOneStoreGraphQL') ?? false;
|
|
104724
105019
|
if (provisionedCallback) {
|
|
104725
105020
|
provisionedCallback(graphql$1, graphql_imperative$1, graphql_imperative_legacy, useOneStoreGraphQL);
|
|
@@ -104730,10 +105025,10 @@
|
|
|
104730
105025
|
provisionedCallback = cb;
|
|
104731
105026
|
}
|
|
104732
105027
|
else {
|
|
104733
|
-
cb(
|
|
105028
|
+
cb(graphql_v1_import, graphql_imperative$1, graphql_imperative_legacy_v1_import, useOneStoreGraphQL);
|
|
104734
105029
|
}
|
|
104735
105030
|
}
|
|
104736
|
-
// version: 1.
|
|
105031
|
+
// version: 1.387.0-1c34f8f965
|
|
104737
105032
|
|
|
104738
105033
|
function createFragmentMap(documentNode) {
|
|
104739
105034
|
const fragments = {};
|
|
@@ -120475,7 +120770,7 @@
|
|
|
120475
120770
|
}
|
|
120476
120771
|
|
|
120477
120772
|
const name$s = 'Analytics__AnalyticsWorkspaceAsset';
|
|
120478
|
-
const VERSION$C = '
|
|
120773
|
+
const VERSION$C = 'f690ef611baad86daab14c35ec199929';
|
|
120479
120774
|
function keyBuilder$w(luvio, path, data) {
|
|
120480
120775
|
return path.fullPath;
|
|
120481
120776
|
}
|
|
@@ -120605,6 +120900,11 @@
|
|
|
120605
120900
|
getTypeCacheKeys$1w(cacheKeySink, requestedField, ActivePromotionRequestIdState);
|
|
120606
120901
|
break;
|
|
120607
120902
|
}
|
|
120903
|
+
case 'PicklistValue': {
|
|
120904
|
+
const MetadataSourceTypeState = buildFieldState(state, rootKey + '__' + fieldKey, fieldData);
|
|
120905
|
+
getTypeCacheKeys$1h(cacheKeySink, requestedField, MetadataSourceTypeState);
|
|
120906
|
+
break;
|
|
120907
|
+
}
|
|
120608
120908
|
}
|
|
120609
120909
|
}
|
|
120610
120910
|
// Deal with mapped types' cache keys
|
|
@@ -120635,6 +120935,12 @@
|
|
|
120635
120935
|
typename: 'IDValue'
|
|
120636
120936
|
};
|
|
120637
120937
|
}
|
|
120938
|
+
case 'MetadataSourceType': {
|
|
120939
|
+
return {
|
|
120940
|
+
isArray: false,
|
|
120941
|
+
typename: 'PicklistValue'
|
|
120942
|
+
};
|
|
120943
|
+
}
|
|
120638
120944
|
default:
|
|
120639
120945
|
return undefined;
|
|
120640
120946
|
}
|
|
@@ -129355,7 +129661,7 @@
|
|
|
129355
129661
|
getFieldType: getFieldType$2,
|
|
129356
129662
|
getInContextFragmentType: getInContextFragmentType$2
|
|
129357
129663
|
};
|
|
129358
|
-
case "
|
|
129664
|
+
case "Analytics__MktDataConnector": return {
|
|
129359
129665
|
getMinimumSelections: getMinimumSelections$1,
|
|
129360
129666
|
getFieldType: getFieldType$1,
|
|
129361
129667
|
getInContextFragmentType: getInContextFragmentType$1
|
|
@@ -131355,7 +131661,7 @@
|
|
|
131355
131661
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
131356
131662
|
instrument: instrument$1,
|
|
131357
131663
|
});
|
|
131358
|
-
// version: 1.
|
|
131664
|
+
// version: 1.387.0-1c34f8f965
|
|
131359
131665
|
|
|
131360
131666
|
// On core the unstable adapters are re-exported with different names,
|
|
131361
131667
|
// we want to match them here.
|
|
@@ -131507,7 +131813,7 @@
|
|
|
131507
131813
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
131508
131814
|
graphQLImperative = ldsAdapter;
|
|
131509
131815
|
});
|
|
131510
|
-
// version: 1.
|
|
131816
|
+
// version: 1.387.0-1c34f8f965
|
|
131511
131817
|
|
|
131512
131818
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
131513
131819
|
__proto__: null,
|
|
@@ -131594,15 +131900,15 @@
|
|
|
131594
131900
|
get statusText() {
|
|
131595
131901
|
const { status } = this;
|
|
131596
131902
|
switch (status) {
|
|
131597
|
-
case HttpStatusCode$
|
|
131903
|
+
case HttpStatusCode$2.Ok:
|
|
131598
131904
|
return 'OK';
|
|
131599
|
-
case HttpStatusCode$
|
|
131905
|
+
case HttpStatusCode$2.Created:
|
|
131600
131906
|
return 'Created';
|
|
131601
|
-
case HttpStatusCode$
|
|
131907
|
+
case HttpStatusCode$2.NoContent:
|
|
131602
131908
|
return 'No Content';
|
|
131603
|
-
case HttpStatusCode$
|
|
131909
|
+
case HttpStatusCode$2.BadRequest:
|
|
131604
131910
|
return 'Bad Request';
|
|
131605
|
-
case HttpStatusCode$
|
|
131911
|
+
case HttpStatusCode$2.ServerError:
|
|
131606
131912
|
return 'Server Error';
|
|
131607
131913
|
default:
|
|
131608
131914
|
return `Unexpected HTTP Status Code: ${status}`;
|
|
@@ -131619,7 +131925,7 @@
|
|
|
131619
131925
|
}
|
|
131620
131926
|
}
|
|
131621
131927
|
function createNativeFetchErrorResponse(message) {
|
|
131622
|
-
return new NativeFetchErrorResponse(HttpStatusCode$
|
|
131928
|
+
return new NativeFetchErrorResponse(HttpStatusCode$2.BadRequest, {
|
|
131623
131929
|
errorCode: NATIVE_ERROR_CODE,
|
|
131624
131930
|
message: message,
|
|
131625
131931
|
});
|
|
@@ -132306,7 +132612,7 @@
|
|
|
132306
132612
|
function register(r) {
|
|
132307
132613
|
callbacks$1.forEach((callback) => callback(r));
|
|
132308
132614
|
}
|
|
132309
|
-
// version: 1.
|
|
132615
|
+
// version: 1.387.0-8c93a5dd2c
|
|
132310
132616
|
|
|
132311
132617
|
/**
|
|
132312
132618
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -133643,4 +133949,4 @@
|
|
|
133643
133949
|
exports.subscribeToAdapter = subscribeToAdapter;
|
|
133644
133950
|
|
|
133645
133951
|
}));
|
|
133646
|
-
// version: 1.
|
|
133952
|
+
// version: 1.387.0-8c93a5dd2c
|