@salesforce/lds-worker-api 1.380.0-dev4 → 1.380.0-dev6
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.
|
@@ -1981,7 +1981,7 @@ function adapterToNetworkPriority(priority) {
|
|
|
1981
1981
|
return 'normal';
|
|
1982
1982
|
}
|
|
1983
1983
|
}
|
|
1984
|
-
var HttpStatusCode$
|
|
1984
|
+
var HttpStatusCode$2;
|
|
1985
1985
|
(function (HttpStatusCode) {
|
|
1986
1986
|
HttpStatusCode[HttpStatusCode["Ok"] = 200] = "Ok";
|
|
1987
1987
|
HttpStatusCode[HttpStatusCode["Created"] = 201] = "Created";
|
|
@@ -1993,7 +1993,7 @@ var HttpStatusCode$1;
|
|
|
1993
1993
|
HttpStatusCode[HttpStatusCode["NotFound"] = 404] = "NotFound";
|
|
1994
1994
|
HttpStatusCode[HttpStatusCode["ServerError"] = 500] = "ServerError";
|
|
1995
1995
|
HttpStatusCode[HttpStatusCode["GatewayTimeout"] = 504] = "GatewayTimeout";
|
|
1996
|
-
})(HttpStatusCode$
|
|
1996
|
+
})(HttpStatusCode$2 || (HttpStatusCode$2 = {}));
|
|
1997
1997
|
/**
|
|
1998
1998
|
* A type guard function for determining if an unknown object is a {@link FileReference}
|
|
1999
1999
|
*/
|
|
@@ -2111,7 +2111,7 @@ const onlyIfCachedImplementation = function (args) {
|
|
|
2111
2111
|
body: undefined,
|
|
2112
2112
|
headers: {},
|
|
2113
2113
|
ok: false,
|
|
2114
|
-
status: HttpStatusCode$
|
|
2114
|
+
status: HttpStatusCode$2.GatewayTimeout,
|
|
2115
2115
|
statusText: 'Data requested with only-if-cached policy and not found in the cache.',
|
|
2116
2116
|
errorType: 'fetchResponse',
|
|
2117
2117
|
}, refresh);
|
|
@@ -3374,7 +3374,7 @@ class Environment {
|
|
|
3374
3374
|
isErrorCacheable(errorSnapshot) {
|
|
3375
3375
|
const { error } = errorSnapshot;
|
|
3376
3376
|
if (error.errorType === 'fetchResponse') {
|
|
3377
|
-
return error.status === HttpStatusCode$
|
|
3377
|
+
return error.status === HttpStatusCode$2.NotFound;
|
|
3378
3378
|
}
|
|
3379
3379
|
return false;
|
|
3380
3380
|
}
|
|
@@ -4274,7 +4274,7 @@ function withDefaultLuvio(callback) {
|
|
|
4274
4274
|
}
|
|
4275
4275
|
callbacks.push(callback);
|
|
4276
4276
|
}
|
|
4277
|
-
// version: 1.380.0-
|
|
4277
|
+
// version: 1.380.0-dev6-1891f38076
|
|
4278
4278
|
|
|
4279
4279
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4280
4280
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -5318,7 +5318,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
|
|
|
5318
5318
|
const { apiFamily, name } = metadata;
|
|
5319
5319
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
5320
5320
|
}
|
|
5321
|
-
// version: 1.380.0-
|
|
5321
|
+
// version: 1.380.0-dev6-1891f38076
|
|
5322
5322
|
|
|
5323
5323
|
/**
|
|
5324
5324
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -5362,7 +5362,7 @@ var StoreResolveResultState;
|
|
|
5362
5362
|
StoreResolveResultState[StoreResolveResultState["NotPresent"] = 3] = "NotPresent";
|
|
5363
5363
|
StoreResolveResultState[StoreResolveResultState["Stale"] = 4] = "Stale";
|
|
5364
5364
|
})(StoreResolveResultState || (StoreResolveResultState = {}));
|
|
5365
|
-
var HttpStatusCode;
|
|
5365
|
+
var HttpStatusCode$1;
|
|
5366
5366
|
(function (HttpStatusCode) {
|
|
5367
5367
|
HttpStatusCode[HttpStatusCode["Ok"] = 200] = "Ok";
|
|
5368
5368
|
HttpStatusCode[HttpStatusCode["Created"] = 201] = "Created";
|
|
@@ -5374,7 +5374,7 @@ var HttpStatusCode;
|
|
|
5374
5374
|
HttpStatusCode[HttpStatusCode["NotFound"] = 404] = "NotFound";
|
|
5375
5375
|
HttpStatusCode[HttpStatusCode["ServerError"] = 500] = "ServerError";
|
|
5376
5376
|
HttpStatusCode[HttpStatusCode["GatewayTimeout"] = 504] = "GatewayTimeout";
|
|
5377
|
-
})(HttpStatusCode || (HttpStatusCode = {}));
|
|
5377
|
+
})(HttpStatusCode$1 || (HttpStatusCode$1 = {}));
|
|
5378
5378
|
var GraphNodeType;
|
|
5379
5379
|
(function (GraphNodeType) {
|
|
5380
5380
|
GraphNodeType["Link"] = "Link";
|
|
@@ -32839,7 +32839,7 @@ const createResourceParams$4$1 = /*#__PURE__*/ createResourceParams$14(createRec
|
|
|
32839
32839
|
|
|
32840
32840
|
function onResponseSuccess(luvio, response, recordIngest, conflictMap) {
|
|
32841
32841
|
const { body, status } = response;
|
|
32842
|
-
if (status === HttpStatusCode$
|
|
32842
|
+
if (status === HttpStatusCode$2.NoContent) {
|
|
32843
32843
|
const syntheticSnapshot = {
|
|
32844
32844
|
state: 'Fulfilled',
|
|
32845
32845
|
data: {},
|
|
@@ -33116,7 +33116,7 @@ function buildNetworkSnapshot$2$1(luvio, config, clientOptions) {
|
|
|
33116
33116
|
const recordIngest = createRecordIngest$1(fieldTrie, optionalFieldTrie, conflictMap);
|
|
33117
33117
|
return luvio.dispatchResourceRequest(request).then((response) => {
|
|
33118
33118
|
return luvio.handleSuccessResponse(() => {
|
|
33119
|
-
if (response.status === HttpStatusCode$
|
|
33119
|
+
if (response.status === HttpStatusCode$2.NoContent) {
|
|
33120
33120
|
const syntheticSnapshot = {
|
|
33121
33121
|
state: 'Fulfilled',
|
|
33122
33122
|
data: {},
|
|
@@ -34154,7 +34154,7 @@ withDefaultLuvio((luvio) => {
|
|
|
34154
34154
|
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
34155
34155
|
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
34156
34156
|
});
|
|
34157
|
-
// version: 1.380.0-
|
|
34157
|
+
// version: 1.380.0-dev6-9d4fd6e5dc
|
|
34158
34158
|
|
|
34159
34159
|
function requestIdleDetectedCallback(_callback) { }
|
|
34160
34160
|
function declareNotifierTaskSingle(_name) {
|
|
@@ -46161,7 +46161,7 @@ const MAX_STRING_LENGTH_PER_CHUNK = 10000;
|
|
|
46161
46161
|
const MAX_AGGREGATE_UI_CHUNK_LIMIT = 50;
|
|
46162
46162
|
function createOkResponse$1(body) {
|
|
46163
46163
|
return {
|
|
46164
|
-
status: HttpStatusCode$
|
|
46164
|
+
status: HttpStatusCode$2.Ok,
|
|
46165
46165
|
body,
|
|
46166
46166
|
statusText: 'ok',
|
|
46167
46167
|
headers: {},
|
|
@@ -46170,15 +46170,15 @@ function createOkResponse$1(body) {
|
|
|
46170
46170
|
}
|
|
46171
46171
|
function getErrorResponseText(status) {
|
|
46172
46172
|
switch (status) {
|
|
46173
|
-
case HttpStatusCode$
|
|
46173
|
+
case HttpStatusCode$2.Ok:
|
|
46174
46174
|
return 'OK';
|
|
46175
|
-
case HttpStatusCode$
|
|
46175
|
+
case HttpStatusCode$2.NotModified:
|
|
46176
46176
|
return 'Not Modified';
|
|
46177
|
-
case HttpStatusCode$
|
|
46177
|
+
case HttpStatusCode$2.NotFound:
|
|
46178
46178
|
return 'Not Found';
|
|
46179
|
-
case HttpStatusCode$
|
|
46179
|
+
case HttpStatusCode$2.BadRequest:
|
|
46180
46180
|
return 'Bad Request';
|
|
46181
|
-
case HttpStatusCode$
|
|
46181
|
+
case HttpStatusCode$2.ServerError:
|
|
46182
46182
|
return 'Server Error';
|
|
46183
46183
|
default:
|
|
46184
46184
|
return `Unexpected HTTP Status Code: ${status}`;
|
|
@@ -46230,14 +46230,14 @@ function dispatchSplitRecordAggregateUiAction(recordId, networkAdapter, resource
|
|
|
46230
46230
|
body.compositeResponse === undefined ||
|
|
46231
46231
|
body.compositeResponse.length === 0) {
|
|
46232
46232
|
// We shouldn't even get into this state - a 200 with no body?
|
|
46233
|
-
throw createErrorResponse(HttpStatusCode$
|
|
46233
|
+
throw createErrorResponse(HttpStatusCode$2.ServerError, {
|
|
46234
46234
|
error: 'No response body in executeAggregateUi found',
|
|
46235
46235
|
});
|
|
46236
46236
|
}
|
|
46237
46237
|
const merged = body.compositeResponse.reduce((seed, response) => {
|
|
46238
|
-
if (response.httpStatusCode !== HttpStatusCode$
|
|
46238
|
+
if (response.httpStatusCode !== HttpStatusCode$2.Ok) {
|
|
46239
46239
|
instrumentation$3.getRecordAggregateReject(() => recordId);
|
|
46240
|
-
throw createErrorResponse(HttpStatusCode$
|
|
46240
|
+
throw createErrorResponse(HttpStatusCode$2.ServerError, {
|
|
46241
46241
|
error: response.message,
|
|
46242
46242
|
});
|
|
46243
46243
|
}
|
|
@@ -46319,8 +46319,8 @@ const UIAPI_RECORDS_BATCH_PATH = `${UI_API_BASE_URI}/records/batch/`;
|
|
|
46319
46319
|
const QUERY_TOO_COMPLICATED_ERROR_CODE = 'QUERY_TOO_COMPLICATED';
|
|
46320
46320
|
function fetchResponseIsQueryTooComplicated(error) {
|
|
46321
46321
|
const { body } = error;
|
|
46322
|
-
if (error.status === HttpStatusCode$
|
|
46323
|
-
return (body.statusCode === HttpStatusCode$
|
|
46322
|
+
if (error.status === HttpStatusCode$2.BadRequest && body !== undefined) {
|
|
46323
|
+
return (body.statusCode === HttpStatusCode$2.BadRequest &&
|
|
46324
46324
|
body.errorCode === QUERY_TOO_COMPLICATED_ERROR_CODE);
|
|
46325
46325
|
}
|
|
46326
46326
|
return false;
|
|
@@ -47933,15 +47933,15 @@ class DraftFetchResponse {
|
|
|
47933
47933
|
get statusText() {
|
|
47934
47934
|
const { status } = this;
|
|
47935
47935
|
switch (status) {
|
|
47936
|
-
case HttpStatusCode$
|
|
47936
|
+
case HttpStatusCode$2.Ok:
|
|
47937
47937
|
return 'OK';
|
|
47938
|
-
case HttpStatusCode$
|
|
47938
|
+
case HttpStatusCode$2.Created:
|
|
47939
47939
|
return 'Created';
|
|
47940
|
-
case HttpStatusCode$
|
|
47940
|
+
case HttpStatusCode$2.NoContent:
|
|
47941
47941
|
return 'No Content';
|
|
47942
|
-
case HttpStatusCode$
|
|
47942
|
+
case HttpStatusCode$2.BadRequest:
|
|
47943
47943
|
return 'Bad Request';
|
|
47944
|
-
case HttpStatusCode$
|
|
47944
|
+
case HttpStatusCode$2.ServerError:
|
|
47945
47945
|
return 'Server Error';
|
|
47946
47946
|
default:
|
|
47947
47947
|
return `Unexpected HTTP Status Code: ${status}`;
|
|
@@ -47962,11 +47962,11 @@ class DraftErrorFetchResponse {
|
|
|
47962
47962
|
get statusText() {
|
|
47963
47963
|
const { status } = this;
|
|
47964
47964
|
switch (status) {
|
|
47965
|
-
case HttpStatusCode$
|
|
47965
|
+
case HttpStatusCode$2.BadRequest:
|
|
47966
47966
|
return 'Bad Request';
|
|
47967
|
-
case HttpStatusCode$
|
|
47967
|
+
case HttpStatusCode$2.ServerError:
|
|
47968
47968
|
return 'Server Error';
|
|
47969
|
-
case HttpStatusCode$
|
|
47969
|
+
case HttpStatusCode$2.NotFound:
|
|
47970
47970
|
return 'Not Found';
|
|
47971
47971
|
default:
|
|
47972
47972
|
return `Unexpected HTTP Status Code: ${status}`;
|
|
@@ -47974,13 +47974,13 @@ class DraftErrorFetchResponse {
|
|
|
47974
47974
|
}
|
|
47975
47975
|
}
|
|
47976
47976
|
function createOkResponse(body) {
|
|
47977
|
-
return new DraftFetchResponse(HttpStatusCode$
|
|
47977
|
+
return new DraftFetchResponse(HttpStatusCode$2.Ok, body);
|
|
47978
47978
|
}
|
|
47979
47979
|
function createBadRequestResponse(body) {
|
|
47980
|
-
return new DraftErrorFetchResponse(HttpStatusCode$
|
|
47980
|
+
return new DraftErrorFetchResponse(HttpStatusCode$2.BadRequest, body);
|
|
47981
47981
|
}
|
|
47982
47982
|
function createNotFoundResponse(body) {
|
|
47983
|
-
return new DraftErrorFetchResponse(HttpStatusCode$
|
|
47983
|
+
return new DraftErrorFetchResponse(HttpStatusCode$2.NotFound, body);
|
|
47984
47984
|
}
|
|
47985
47985
|
function transformErrorToDraftSynthesisError(error) {
|
|
47986
47986
|
if (isDraftSynthesisError(error)) {
|
|
@@ -47997,7 +47997,7 @@ function createDraftSynthesisErrorResponse(message = 'failed to synthesize draft
|
|
|
47997
47997
|
if (errorType !== undefined) {
|
|
47998
47998
|
error.errorType = errorType;
|
|
47999
47999
|
}
|
|
48000
|
-
return new DraftErrorFetchResponse(HttpStatusCode$
|
|
48000
|
+
return new DraftErrorFetchResponse(HttpStatusCode$2.BadRequest, error);
|
|
48001
48001
|
}
|
|
48002
48002
|
|
|
48003
48003
|
/**
|
|
@@ -79941,7 +79941,7 @@ class AbstractResourceRequestActionHandler {
|
|
|
79941
79941
|
retryDelayInMs = getRetryAfterInMs(response.headers);
|
|
79942
79942
|
shouldRetry = true;
|
|
79943
79943
|
break;
|
|
79944
|
-
case HttpStatusCode$
|
|
79944
|
+
case HttpStatusCode$2.ServerError: {
|
|
79945
79945
|
shouldRetry = true;
|
|
79946
79946
|
if (this.handleIdempotencyServerError(response.body, updatedAction, false, ERROR_CODE_IDEMPOTENCY_BACKEND_OPERATION_ERROR)) {
|
|
79947
79947
|
this.isIdempotencySupported = false;
|
|
@@ -79964,7 +79964,7 @@ class AbstractResourceRequestActionHandler {
|
|
|
79964
79964
|
}
|
|
79965
79965
|
break;
|
|
79966
79966
|
}
|
|
79967
|
-
case HttpStatusCode$
|
|
79967
|
+
case HttpStatusCode$2.BadRequest: {
|
|
79968
79968
|
if (this.handleIdempotencyServerError(response.body, updatedAction, false, ERROR_CODE_IDEMPOTENCY_FEATURE_NOT_ENABLED, ERROR_CODE_IDEMPOTENCY_NOT_SUPPORTED)) {
|
|
79969
79969
|
retryDelayInMs = 0;
|
|
79970
79970
|
actionDataChanged = true;
|
|
@@ -79982,13 +79982,13 @@ class AbstractResourceRequestActionHandler {
|
|
|
79982
79982
|
}
|
|
79983
79983
|
}
|
|
79984
79984
|
}
|
|
79985
|
-
if (response.status === HttpStatusCode$
|
|
79985
|
+
if (response.status === HttpStatusCode$2.BadRequest &&
|
|
79986
79986
|
this.hasIdempotencySupport() &&
|
|
79987
79987
|
updatedAction.data.headers[HTTP_HEADER_IDEMPOTENCY_KEY] !== undefined) {
|
|
79988
79988
|
updatedAction.data.headers[HTTP_HEADER_IDEMPOTENCY_KEY] = uuidv4();
|
|
79989
79989
|
actionDataChanged = true;
|
|
79990
79990
|
}
|
|
79991
|
-
if (response.status === HttpStatusCode$
|
|
79991
|
+
if (response.status === HttpStatusCode$2.BadRequest &&
|
|
79992
79992
|
this.isBackdatingError(response.body, action)) {
|
|
79993
79993
|
updatedAction.timestamp = Date.now();
|
|
79994
79994
|
updatedAction.data.body.fields = {
|
|
@@ -85666,7 +85666,7 @@ function isRecordType(type) {
|
|
|
85666
85666
|
return Boolean(interfaces.find((iface) => iface.name === 'Record'));
|
|
85667
85667
|
}
|
|
85668
85668
|
|
|
85669
|
-
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: String\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 label: 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 label: String\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";
|
|
85669
|
+
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 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: String\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 label: 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 label: String\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";
|
|
85670
85670
|
|
|
85671
85671
|
// Define additional schema that is missing from uiapi that we use in local evaluation
|
|
85672
85672
|
const additionalSchemaDefinitions = /* GraphQL */ `
|
|
@@ -88581,7 +88581,7 @@ function environmentAwareGraphQLBatchAdapterFactory(objectInfoService, luvio, is
|
|
|
88581
88581
|
// remove injected fields from response.
|
|
88582
88582
|
const data = snapshot.data;
|
|
88583
88583
|
const userResults = data.results.map((compositeResult, index) => {
|
|
88584
|
-
if (compositeResult.statusCode === HttpStatusCode$
|
|
88584
|
+
if (compositeResult.statusCode === HttpStatusCode$2.Ok) {
|
|
88585
88585
|
return {
|
|
88586
88586
|
result: removeSyntheticFields(compositeResult.result, config.batchQuery[index].query),
|
|
88587
88587
|
statusCode: compositeResult.statusCode,
|
|
@@ -88798,15 +88798,15 @@ function ldsParamsToString(params) {
|
|
|
88798
88798
|
}
|
|
88799
88799
|
function statusTextFromStatusCode(status) {
|
|
88800
88800
|
switch (status) {
|
|
88801
|
-
case HttpStatusCode$
|
|
88801
|
+
case HttpStatusCode$2.Ok:
|
|
88802
88802
|
return 'OK';
|
|
88803
|
-
case HttpStatusCode$
|
|
88803
|
+
case HttpStatusCode$2.NotModified:
|
|
88804
88804
|
return 'Not Modified';
|
|
88805
|
-
case HttpStatusCode$
|
|
88805
|
+
case HttpStatusCode$2.NotFound:
|
|
88806
88806
|
return 'Not Found';
|
|
88807
|
-
case HttpStatusCode$
|
|
88807
|
+
case HttpStatusCode$2.BadRequest:
|
|
88808
88808
|
return 'Bad Request';
|
|
88809
|
-
case HttpStatusCode$
|
|
88809
|
+
case HttpStatusCode$2.ServerError:
|
|
88810
88810
|
return 'Server Error';
|
|
88811
88811
|
default:
|
|
88812
88812
|
return `Unexpected HTTP Status Code: ${status}`;
|
|
@@ -89173,7 +89173,7 @@ function mergeAggregateUiResponse(response, mergeFunc) {
|
|
|
89173
89173
|
return {
|
|
89174
89174
|
...response,
|
|
89175
89175
|
ok: false,
|
|
89176
|
-
status: HttpStatusCode$
|
|
89176
|
+
status: HttpStatusCode$2.ServerError,
|
|
89177
89177
|
statusText: PARSE_ERROR,
|
|
89178
89178
|
body: [
|
|
89179
89179
|
{
|
|
@@ -89231,9 +89231,9 @@ function mergeBatchRecordsFields(first, second, collectionMergeFunc) {
|
|
|
89231
89231
|
for (let i = 0, len = targetResults.length; i < len; i += 1) {
|
|
89232
89232
|
const targetResult = targetResults[i];
|
|
89233
89233
|
const sourceResult = sourceResults[i];
|
|
89234
|
-
if (targetResult.statusCode !== HttpStatusCode$
|
|
89234
|
+
if (targetResult.statusCode !== HttpStatusCode$2.Ok)
|
|
89235
89235
|
continue;
|
|
89236
|
-
if (sourceResult.statusCode !== HttpStatusCode$
|
|
89236
|
+
if (sourceResult.statusCode !== HttpStatusCode$2.Ok) {
|
|
89237
89237
|
targetResults[i] = sourceResult;
|
|
89238
89238
|
continue;
|
|
89239
89239
|
}
|
|
@@ -93839,18 +93839,24 @@ let Err$1$1 = class Err {
|
|
|
93839
93839
|
};
|
|
93840
93840
|
const ok$1$1 = (value) => new Ok$1$1(value);
|
|
93841
93841
|
const err$1$1 = (err2) => new Err$1$1(err2);
|
|
93842
|
+
function isResult$1(value) {
|
|
93843
|
+
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);
|
|
93844
|
+
}
|
|
93845
|
+
function isSubscribable$1(obj) {
|
|
93846
|
+
return typeof obj === "object" && obj !== null && "subscribe" in obj && typeof obj.subscribe === "function" && "refresh" in obj && typeof obj.refresh === "function";
|
|
93847
|
+
}
|
|
93842
93848
|
function isSubscribableResult$1(x) {
|
|
93843
|
-
if (
|
|
93849
|
+
if (!isResult$1(x)) {
|
|
93844
93850
|
return false;
|
|
93845
93851
|
}
|
|
93846
|
-
|
|
93847
|
-
|
|
93848
|
-
|
|
93849
|
-
|
|
93850
|
-
|
|
93851
|
-
|
|
93852
|
+
return isSubscribable$1(x.isOk() ? x.value : x.error);
|
|
93853
|
+
}
|
|
93854
|
+
function buildSubscribableResult$1(result, subscribe, refresh) {
|
|
93855
|
+
if (result.isOk()) {
|
|
93856
|
+
return ok$1$1({ data: result.value, subscribe, refresh });
|
|
93857
|
+
} else {
|
|
93858
|
+
return err$1$1({ failure: result.error, subscribe, refresh });
|
|
93852
93859
|
}
|
|
93853
|
-
return false;
|
|
93854
93860
|
}
|
|
93855
93861
|
function resolvedPromiseLike$3(result) {
|
|
93856
93862
|
if (isPromiseLike$3(result)) {
|
|
@@ -93938,6 +93944,47 @@ function toError(x) {
|
|
|
93938
93944
|
}
|
|
93939
93945
|
return new Error(typeof x === "string" ? x : JSON.stringify(x));
|
|
93940
93946
|
}
|
|
93947
|
+
var HttpStatusCode = /* @__PURE__ */ ((HttpStatusCode2) => {
|
|
93948
|
+
HttpStatusCode2[HttpStatusCode2["Ok"] = 200] = "Ok";
|
|
93949
|
+
HttpStatusCode2[HttpStatusCode2["Created"] = 201] = "Created";
|
|
93950
|
+
HttpStatusCode2[HttpStatusCode2["NoContent"] = 204] = "NoContent";
|
|
93951
|
+
HttpStatusCode2[HttpStatusCode2["NotModified"] = 304] = "NotModified";
|
|
93952
|
+
HttpStatusCode2[HttpStatusCode2["BadRequest"] = 400] = "BadRequest";
|
|
93953
|
+
HttpStatusCode2[HttpStatusCode2["Unauthorized"] = 401] = "Unauthorized";
|
|
93954
|
+
HttpStatusCode2[HttpStatusCode2["Forbidden"] = 403] = "Forbidden";
|
|
93955
|
+
HttpStatusCode2[HttpStatusCode2["NotFound"] = 404] = "NotFound";
|
|
93956
|
+
HttpStatusCode2[HttpStatusCode2["ServerError"] = 500] = "ServerError";
|
|
93957
|
+
HttpStatusCode2[HttpStatusCode2["GatewayTimeout"] = 504] = "GatewayTimeout";
|
|
93958
|
+
return HttpStatusCode2;
|
|
93959
|
+
})(HttpStatusCode || {});
|
|
93960
|
+
function getStatusText(status) {
|
|
93961
|
+
switch (status) {
|
|
93962
|
+
case 200:
|
|
93963
|
+
return "OK";
|
|
93964
|
+
case 201:
|
|
93965
|
+
return "Created";
|
|
93966
|
+
case 304:
|
|
93967
|
+
return "Not Modified";
|
|
93968
|
+
case 400:
|
|
93969
|
+
return "Bad Request";
|
|
93970
|
+
case 404:
|
|
93971
|
+
return "Not Found";
|
|
93972
|
+
case 500:
|
|
93973
|
+
return "Server Error";
|
|
93974
|
+
default:
|
|
93975
|
+
return `Unexpected HTTP Status Code: ${status}`;
|
|
93976
|
+
}
|
|
93977
|
+
}
|
|
93978
|
+
class FetchResponse extends Error {
|
|
93979
|
+
constructor(status, body, headers) {
|
|
93980
|
+
super();
|
|
93981
|
+
this.status = status;
|
|
93982
|
+
this.body = body;
|
|
93983
|
+
this.headers = headers || {};
|
|
93984
|
+
this.ok = status >= 200 && this.status <= 299;
|
|
93985
|
+
this.statusText = getStatusText(status);
|
|
93986
|
+
}
|
|
93987
|
+
}
|
|
93941
93988
|
let InternalError$1 = class InternalError extends Error {
|
|
93942
93989
|
constructor(data) {
|
|
93943
93990
|
super();
|
|
@@ -93982,35 +94029,27 @@ let NetworkCommand$1 = class NetworkCommand extends BaseCommand {
|
|
|
93982
94029
|
}
|
|
93983
94030
|
fetchSubscribableResult(res) {
|
|
93984
94031
|
return res.then((networkResult) => {
|
|
93985
|
-
|
|
93986
|
-
|
|
93987
|
-
|
|
93988
|
-
|
|
93989
|
-
|
|
93990
|
-
|
|
93991
|
-
|
|
93992
|
-
|
|
93993
|
-
|
|
93994
|
-
|
|
93995
|
-
};
|
|
93996
|
-
},
|
|
93997
|
-
refresh: () => this.refresh()
|
|
93998
|
-
});
|
|
93999
|
-
}
|
|
94032
|
+
return buildSubscribableResult$1(
|
|
94033
|
+
networkResult,
|
|
94034
|
+
(cb) => {
|
|
94035
|
+
this.subscriptions.push(cb);
|
|
94036
|
+
return () => {
|
|
94037
|
+
this.subscriptions = this.subscriptions.filter((cb2) => cb2 !== cb);
|
|
94038
|
+
};
|
|
94039
|
+
},
|
|
94040
|
+
() => this.refresh()
|
|
94041
|
+
);
|
|
94000
94042
|
});
|
|
94001
94043
|
}
|
|
94002
94044
|
refresh() {
|
|
94003
94045
|
return this.execute().then((newResult) => {
|
|
94004
|
-
if (newResult
|
|
94005
|
-
|
|
94006
|
-
|
|
94007
|
-
|
|
94008
|
-
|
|
94009
|
-
});
|
|
94010
|
-
}
|
|
94011
|
-
return ok$1$1(void 0);
|
|
94046
|
+
if (isSubscribableResult$1(newResult)) {
|
|
94047
|
+
const value = newResult.isOk() ? ok$1$1(newResult.value.data) : err$1$1(newResult.error.failure);
|
|
94048
|
+
this.subscriptions.forEach((cb) => {
|
|
94049
|
+
cb(value);
|
|
94050
|
+
});
|
|
94012
94051
|
}
|
|
94013
|
-
return
|
|
94052
|
+
return ok$1$1(void 0);
|
|
94014
94053
|
});
|
|
94015
94054
|
}
|
|
94016
94055
|
async afterRequestHooks(_options) {
|
|
@@ -94161,6 +94200,13 @@ let Err$2 = class Err {
|
|
|
94161
94200
|
};
|
|
94162
94201
|
const ok$3 = (value) => new Ok$3(value);
|
|
94163
94202
|
const err$2 = (err2) => new Err$2(err2);
|
|
94203
|
+
function buildSubscribableResult(result, subscribe, refresh) {
|
|
94204
|
+
if (result.isOk()) {
|
|
94205
|
+
return ok$3({ data: result.value, subscribe, refresh });
|
|
94206
|
+
} else {
|
|
94207
|
+
return err$2({ failure: result.error, subscribe, refresh });
|
|
94208
|
+
}
|
|
94209
|
+
}
|
|
94164
94210
|
function resolvedPromiseLike$2(result) {
|
|
94165
94211
|
if (isPromiseLike$2(result)) {
|
|
94166
94212
|
return result.then((nextResult) => nextResult);
|
|
@@ -94260,7 +94306,7 @@ class CacheControlRequestRunner {
|
|
|
94260
94306
|
const resultPromise = this.readFromCacheInternal(cache);
|
|
94261
94307
|
return resultPromise.then((result) => {
|
|
94262
94308
|
if (result.isErr()) {
|
|
94263
|
-
return err$2(result.error);
|
|
94309
|
+
return err$2(result.error.failure);
|
|
94264
94310
|
}
|
|
94265
94311
|
this.returnData = result;
|
|
94266
94312
|
return ok$3(void 0);
|
|
@@ -94268,7 +94314,7 @@ class CacheControlRequestRunner {
|
|
|
94268
94314
|
}
|
|
94269
94315
|
requestFromNetwork() {
|
|
94270
94316
|
const that = this;
|
|
94271
|
-
return async function* () {
|
|
94317
|
+
return (async function* () {
|
|
94272
94318
|
const result = await that.requestFromNetworkInternal();
|
|
94273
94319
|
if (result.isErr()) {
|
|
94274
94320
|
that.networkError = result;
|
|
@@ -94276,7 +94322,7 @@ class CacheControlRequestRunner {
|
|
|
94276
94322
|
that.networkData = result;
|
|
94277
94323
|
}
|
|
94278
94324
|
yield result;
|
|
94279
|
-
}();
|
|
94325
|
+
})();
|
|
94280
94326
|
}
|
|
94281
94327
|
writeToCache(cache, networkResult) {
|
|
94282
94328
|
return this.writeToCacheInternal(cache, networkResult);
|
|
@@ -94289,7 +94335,7 @@ class CacheControlCommand extends BaseCommand {
|
|
|
94289
94335
|
this.keysUsed = /* @__PURE__ */ new Set();
|
|
94290
94336
|
this.keysUpdated = void 0;
|
|
94291
94337
|
this.operationType = "query";
|
|
94292
|
-
this.
|
|
94338
|
+
this.lastResult = void 0;
|
|
94293
94339
|
this.unsubscribeFromKeysImpl = () => void 0;
|
|
94294
94340
|
this.subscriptions = [];
|
|
94295
94341
|
this.instantiationTime = Date.now() / 1e3;
|
|
@@ -94306,32 +94352,54 @@ class CacheControlCommand extends BaseCommand {
|
|
|
94306
94352
|
instrumentationAttributes: this.instrumentationAttributes
|
|
94307
94353
|
});
|
|
94308
94354
|
return resultPromise.then((result) => {
|
|
94309
|
-
return this.handleCacheControllerResult(result, requestRunner)
|
|
94355
|
+
return this.handleCacheControllerResult(result, requestRunner).then((result2) => {
|
|
94356
|
+
if (this.lastResult === void 0) {
|
|
94357
|
+
if (result2.isErr()) {
|
|
94358
|
+
this.lastResult = { type: "error", error: result2.error.failure };
|
|
94359
|
+
} else {
|
|
94360
|
+
this.lastResult = { type: "data", data: result2.value.data };
|
|
94361
|
+
}
|
|
94362
|
+
}
|
|
94363
|
+
return result2;
|
|
94364
|
+
});
|
|
94310
94365
|
});
|
|
94311
94366
|
}
|
|
94312
94367
|
handleCacheControllerResult(result, requestRunner) {
|
|
94313
94368
|
const { networkError, networkData, returnData } = requestRunner;
|
|
94314
94369
|
return this.publishUpdatedKeys().then(() => {
|
|
94315
94370
|
if (networkError) {
|
|
94316
|
-
return
|
|
94371
|
+
return buildSubscribableResult(
|
|
94372
|
+
networkError,
|
|
94373
|
+
this.buildSubscribe(),
|
|
94374
|
+
() => this.refresh()
|
|
94375
|
+
);
|
|
94317
94376
|
}
|
|
94318
94377
|
if (result.isErr()) {
|
|
94319
94378
|
if (networkData) {
|
|
94320
|
-
return
|
|
94379
|
+
return buildSubscribableResult(
|
|
94380
|
+
networkData,
|
|
94381
|
+
this.buildSubscribe(),
|
|
94382
|
+
() => this.refresh()
|
|
94383
|
+
);
|
|
94321
94384
|
}
|
|
94322
|
-
return
|
|
94385
|
+
return buildSubscribableResult(result, this.buildSubscribe(), () => this.refresh());
|
|
94323
94386
|
}
|
|
94324
94387
|
if (this.subscriptions.length > 0) {
|
|
94325
94388
|
this.subscribeToKeysUsed();
|
|
94326
94389
|
}
|
|
94327
94390
|
if (returnData === void 0) {
|
|
94328
94391
|
if (networkData) {
|
|
94329
|
-
return
|
|
94392
|
+
return buildSubscribableResult(
|
|
94393
|
+
networkData,
|
|
94394
|
+
this.buildSubscribe(),
|
|
94395
|
+
() => this.refresh()
|
|
94396
|
+
);
|
|
94330
94397
|
}
|
|
94331
|
-
return
|
|
94332
|
-
|
|
94333
|
-
|
|
94334
|
-
|
|
94398
|
+
return buildSubscribableResult(
|
|
94399
|
+
err$2(new Error("Cache miss after fetching from network")),
|
|
94400
|
+
this.buildSubscribe(),
|
|
94401
|
+
() => this.refresh()
|
|
94402
|
+
);
|
|
94335
94403
|
}
|
|
94336
94404
|
return returnData;
|
|
94337
94405
|
});
|
|
@@ -94391,7 +94459,7 @@ class CacheControlCommand extends BaseCommand {
|
|
|
94391
94459
|
refresh() {
|
|
94392
94460
|
return this.rerun({ cacheControlConfig: { type: "no-cache" } }).then((result) => {
|
|
94393
94461
|
if (result.isErr()) {
|
|
94394
|
-
return err$2(result.error);
|
|
94462
|
+
return err$2(result.error.failure);
|
|
94395
94463
|
}
|
|
94396
94464
|
return ok$3(void 0);
|
|
94397
94465
|
});
|
|
@@ -94409,22 +94477,22 @@ class CacheControlCommand extends BaseCommand {
|
|
|
94409
94477
|
const result = this.readFromCache(recordableCache);
|
|
94410
94478
|
return result.then((readResult) => {
|
|
94411
94479
|
if (readResult.isErr()) {
|
|
94412
|
-
return
|
|
94480
|
+
return buildSubscribableResult(
|
|
94481
|
+
readResult,
|
|
94482
|
+
this.buildSubscribe(),
|
|
94483
|
+
() => this.refresh()
|
|
94484
|
+
);
|
|
94413
94485
|
} else {
|
|
94414
94486
|
const data = readResult.value;
|
|
94415
94487
|
this.keysUsed = recordableCache.keysRead;
|
|
94416
|
-
return
|
|
94488
|
+
return buildSubscribableResult(
|
|
94489
|
+
ok$3(data),
|
|
94490
|
+
this.buildSubscribe(),
|
|
94491
|
+
() => this.refresh()
|
|
94492
|
+
);
|
|
94417
94493
|
}
|
|
94418
94494
|
});
|
|
94419
94495
|
}
|
|
94420
|
-
constructSubscribableResult(data) {
|
|
94421
|
-
return ok$3({
|
|
94422
|
-
data,
|
|
94423
|
-
// this cast is in case we need to return Network data as a fallback for caching errors
|
|
94424
|
-
subscribe: this.buildSubscribe(),
|
|
94425
|
-
refresh: () => this.refresh()
|
|
94426
|
-
});
|
|
94427
|
-
}
|
|
94428
94496
|
/**
|
|
94429
94497
|
* Builds a function that subscribes to cache changes via the pubsub service. Whenever
|
|
94430
94498
|
* relevant cache updates occur, it re-reads the data and compares it against
|
|
@@ -94451,11 +94519,12 @@ class CacheControlCommand extends BaseCommand {
|
|
|
94451
94519
|
rerun(overrides) {
|
|
94452
94520
|
return this.execute(overrides).then((result) => {
|
|
94453
94521
|
if (result.isErr()) {
|
|
94454
|
-
this.
|
|
94522
|
+
this.lastResult = { type: "error", error: result.error.failure };
|
|
94523
|
+
this.invokeConsumerCallbacks(err$2(result.error.failure));
|
|
94455
94524
|
return result;
|
|
94456
94525
|
}
|
|
94457
|
-
if (!this.equals(this.
|
|
94458
|
-
this.
|
|
94526
|
+
if (this.lastResult === void 0 || this.lastResult.type === "error" || !this.equals(this.lastResult.data, result.value.data)) {
|
|
94527
|
+
this.lastResult = { type: "data", data: result.value.data };
|
|
94459
94528
|
this.invokeConsumerCallbacks(ok$3(result.value.data));
|
|
94460
94529
|
}
|
|
94461
94530
|
return result;
|
|
@@ -94738,9 +94807,6 @@ class AuraResourceCacheControlCommand extends AuraCacheControlCommand {
|
|
|
94738
94807
|
super(services);
|
|
94739
94808
|
this.services = services;
|
|
94740
94809
|
}
|
|
94741
|
-
execute() {
|
|
94742
|
-
return super.execute();
|
|
94743
|
-
}
|
|
94744
94810
|
readFromCache(cache) {
|
|
94745
94811
|
var _a;
|
|
94746
94812
|
const data = (_a = cache.get(this.buildKey())) == null ? void 0 : _a.value;
|
|
@@ -94798,35 +94864,27 @@ class NetworkCommand extends BaseCommand {
|
|
|
94798
94864
|
}
|
|
94799
94865
|
fetchSubscribableResult(res) {
|
|
94800
94866
|
return res.then((networkResult) => {
|
|
94801
|
-
|
|
94802
|
-
|
|
94803
|
-
|
|
94804
|
-
|
|
94805
|
-
|
|
94806
|
-
|
|
94807
|
-
|
|
94808
|
-
|
|
94809
|
-
|
|
94810
|
-
|
|
94811
|
-
};
|
|
94812
|
-
},
|
|
94813
|
-
refresh: () => this.refresh()
|
|
94814
|
-
});
|
|
94815
|
-
}
|
|
94867
|
+
return buildSubscribableResult$1(
|
|
94868
|
+
networkResult,
|
|
94869
|
+
(cb) => {
|
|
94870
|
+
this.subscriptions.push(cb);
|
|
94871
|
+
return () => {
|
|
94872
|
+
this.subscriptions = this.subscriptions.filter((cb2) => cb2 !== cb);
|
|
94873
|
+
};
|
|
94874
|
+
},
|
|
94875
|
+
() => this.refresh()
|
|
94876
|
+
);
|
|
94816
94877
|
});
|
|
94817
94878
|
}
|
|
94818
94879
|
refresh() {
|
|
94819
94880
|
return this.execute().then((newResult) => {
|
|
94820
|
-
if (newResult
|
|
94821
|
-
|
|
94822
|
-
|
|
94823
|
-
|
|
94824
|
-
|
|
94825
|
-
});
|
|
94826
|
-
}
|
|
94827
|
-
return ok$1$1(void 0);
|
|
94881
|
+
if (isSubscribableResult$1(newResult)) {
|
|
94882
|
+
const value = newResult.isOk() ? ok$1$1(newResult.value.data) : err$1$1(newResult.error.failure);
|
|
94883
|
+
this.subscriptions.forEach((cb) => {
|
|
94884
|
+
cb(value);
|
|
94885
|
+
});
|
|
94828
94886
|
}
|
|
94829
|
-
return
|
|
94887
|
+
return ok$1$1(void 0);
|
|
94830
94888
|
});
|
|
94831
94889
|
}
|
|
94832
94890
|
async afterRequestHooks(_options) {
|
|
@@ -95350,6 +95408,59 @@ class MaxAgeCacheControlStrategy extends CacheControlStrategy {
|
|
|
95350
95408
|
];
|
|
95351
95409
|
}
|
|
95352
95410
|
}
|
|
95411
|
+
class OnlyIfCachedCacheControlStrategy extends CacheControlStrategy {
|
|
95412
|
+
execute(options) {
|
|
95413
|
+
const startTime = this.services.instrumentation ? this.services.instrumentation.currentTimeMs() : 0;
|
|
95414
|
+
return this.services.cacheInclusionPolicy.read({
|
|
95415
|
+
l1: this.filteredCache,
|
|
95416
|
+
readFromL1: (l1) => this.requestRunner.readFromCache(l1)
|
|
95417
|
+
}).then((result) => {
|
|
95418
|
+
if (result.isOk()) {
|
|
95419
|
+
this.collectCacheHitInstrumentation(
|
|
95420
|
+
startTime,
|
|
95421
|
+
options == null ? void 0 : options.instrumentationAttributes
|
|
95422
|
+
);
|
|
95423
|
+
return ok$1$1(void 0);
|
|
95424
|
+
}
|
|
95425
|
+
this.collectCacheMissInstrumentation(startTime, options == null ? void 0 : options.instrumentationAttributes);
|
|
95426
|
+
const error = new UserVisibleError(
|
|
95427
|
+
new FetchResponse(HttpStatusCode.GatewayTimeout, {
|
|
95428
|
+
error: "Cache miss for only-if-cached request"
|
|
95429
|
+
})
|
|
95430
|
+
);
|
|
95431
|
+
return err$1$1(error);
|
|
95432
|
+
});
|
|
95433
|
+
}
|
|
95434
|
+
get expiredChecks() {
|
|
95435
|
+
return [
|
|
95436
|
+
(cacheControlMetadata) => cacheControlMetadata.type === "no-store"
|
|
95437
|
+
];
|
|
95438
|
+
}
|
|
95439
|
+
collectCacheHitInstrumentation(startTime, instrumentationAttributes) {
|
|
95440
|
+
if (this.services.instrumentation) {
|
|
95441
|
+
const meter = this.services.instrumentation.metrics.getMeter("onestore");
|
|
95442
|
+
meter.createCounter(`command.only-if-cached.cache-hit.count`).add(1, instrumentationAttributes);
|
|
95443
|
+
meter.createHistogram(
|
|
95444
|
+
`command.only-if-cached.cache-hit.duration`
|
|
95445
|
+
).record(
|
|
95446
|
+
this.services.instrumentation.currentTimeMs() - startTime,
|
|
95447
|
+
instrumentationAttributes
|
|
95448
|
+
);
|
|
95449
|
+
}
|
|
95450
|
+
}
|
|
95451
|
+
collectCacheMissInstrumentation(startTime, instrumentationAttributes) {
|
|
95452
|
+
if (this.services.instrumentation) {
|
|
95453
|
+
const meter = this.services.instrumentation.metrics.getMeter("onestore");
|
|
95454
|
+
meter.createCounter(`command.only-if-cached.cache-miss.count`).add(1, instrumentationAttributes);
|
|
95455
|
+
meter.createHistogram(
|
|
95456
|
+
`command.only-if-cached.cache-miss.duration`
|
|
95457
|
+
).record(
|
|
95458
|
+
this.services.instrumentation.currentTimeMs() - startTime,
|
|
95459
|
+
instrumentationAttributes
|
|
95460
|
+
);
|
|
95461
|
+
}
|
|
95462
|
+
}
|
|
95463
|
+
}
|
|
95353
95464
|
class CacheController {
|
|
95354
95465
|
constructor(services) {
|
|
95355
95466
|
this.services = services;
|
|
@@ -95363,6 +95474,8 @@ class CacheController {
|
|
|
95363
95474
|
return new MaxAgeCacheControlStrategy(this.services, config, requestRunner);
|
|
95364
95475
|
} else if (config.type === "no-cache") {
|
|
95365
95476
|
return new NoCacheCacheControlStrategy(this.services, config, requestRunner);
|
|
95477
|
+
} else if (config.type === "only-if-cached") {
|
|
95478
|
+
return new OnlyIfCachedCacheControlStrategy(this.services, config, requestRunner);
|
|
95366
95479
|
}
|
|
95367
95480
|
throw new Error(`Unknown cache control strategy ${config.type}`);
|
|
95368
95481
|
}
|
|
@@ -95881,7 +95994,7 @@ function buildServiceDescriptor$5(luvio) {
|
|
|
95881
95994
|
},
|
|
95882
95995
|
};
|
|
95883
95996
|
}
|
|
95884
|
-
// version: 1.380.0-
|
|
95997
|
+
// version: 1.380.0-dev6-9d4fd6e5dc
|
|
95885
95998
|
|
|
95886
95999
|
/**
|
|
95887
96000
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -95907,7 +96020,7 @@ function buildServiceDescriptor$4(notifyRecordUpdateAvailable, getNormalizedLuvi
|
|
|
95907
96020
|
},
|
|
95908
96021
|
};
|
|
95909
96022
|
}
|
|
95910
|
-
// version: 1.380.0-
|
|
96023
|
+
// version: 1.380.0-dev6-9d4fd6e5dc
|
|
95911
96024
|
|
|
95912
96025
|
/*!
|
|
95913
96026
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -96752,7 +96865,7 @@ function hasMultilineItems(maybeArray) {
|
|
|
96752
96865
|
* All rights reserved.
|
|
96753
96866
|
* For full license text, see the LICENSE.txt file
|
|
96754
96867
|
*/
|
|
96755
|
-
function findExecutableOperation$
|
|
96868
|
+
function findExecutableOperation$2(input) {
|
|
96756
96869
|
const operations = input.query.definitions.filter(
|
|
96757
96870
|
(def) => def.kind === Kind$2.OPERATION_DEFINITION
|
|
96758
96871
|
);
|
|
@@ -96775,7 +96888,7 @@ function findExecutableOperation$1(input) {
|
|
|
96775
96888
|
return err$1$1(new Error("Multiple operations found in query, and no operation name provided"));
|
|
96776
96889
|
}
|
|
96777
96890
|
function buildGraphQLInputExtension$1(input) {
|
|
96778
|
-
const operationResult = findExecutableOperation$
|
|
96891
|
+
const operationResult = findExecutableOperation$2(input);
|
|
96779
96892
|
if (operationResult.isErr()) {
|
|
96780
96893
|
return err$1$1(operationResult.error);
|
|
96781
96894
|
}
|
|
@@ -96942,22 +97055,22 @@ class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheContro
|
|
|
96942
97055
|
),
|
|
96943
97056
|
(errs) => this.coerceError(errs)
|
|
96944
97057
|
).then((result) => {
|
|
96945
|
-
|
|
96946
|
-
return this.constructSubscribableResult(result.value);
|
|
96947
|
-
}
|
|
96948
|
-
return result;
|
|
97058
|
+
return buildSubscribableResult$1(result, this.buildSubscribe(), () => this.refresh());
|
|
96949
97059
|
});
|
|
96950
97060
|
} else if (this.shouldUseFetch()) {
|
|
96951
97061
|
return this.convertFetchResponseToData(
|
|
96952
97062
|
this.services.fetch(...this.originalFetchParams)
|
|
96953
97063
|
).then((result) => {
|
|
96954
|
-
|
|
96955
|
-
return this.constructSubscribableResult(result.value);
|
|
96956
|
-
}
|
|
96957
|
-
return result;
|
|
97064
|
+
return buildSubscribableResult$1(result, this.buildSubscribe(), () => this.refresh());
|
|
96958
97065
|
});
|
|
96959
97066
|
}
|
|
96960
|
-
return resolvedPromiseLike$3(
|
|
97067
|
+
return resolvedPromiseLike$3(
|
|
97068
|
+
buildSubscribableResult$1(
|
|
97069
|
+
err$1$1(toError("Aura/Fetch network services not found")),
|
|
97070
|
+
this.buildSubscribe(),
|
|
97071
|
+
() => this.refresh()
|
|
97072
|
+
)
|
|
97073
|
+
);
|
|
96961
97074
|
}
|
|
96962
97075
|
buildRequestQuery() {
|
|
96963
97076
|
const augmentedQueryResult = this.documentRootType.buildAugmentedQuery(this.config);
|
|
@@ -96986,9 +97099,6 @@ class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheContro
|
|
|
96986
97099
|
if (this.subscriptions.length > 0) {
|
|
96987
97100
|
this.subscribeToKeysUsed();
|
|
96988
97101
|
}
|
|
96989
|
-
if (this.lastEmittedData === void 0) {
|
|
96990
|
-
this.lastEmittedData = returnData.value.data;
|
|
96991
|
-
}
|
|
96992
97102
|
return returnData;
|
|
96993
97103
|
});
|
|
96994
97104
|
}
|
|
@@ -97080,10 +97190,7 @@ class HttpGraphQLNormalizedCacheControlCommand extends HttpNormalizedCacheContro
|
|
|
97080
97190
|
return this.convertFetchResponseToData(
|
|
97081
97191
|
this.services.fetch(...this.originalFetchParams)
|
|
97082
97192
|
).then((result) => {
|
|
97083
|
-
|
|
97084
|
-
return this.constructSubscribableResult(result.value);
|
|
97085
|
-
}
|
|
97086
|
-
return result;
|
|
97193
|
+
return buildSubscribableResult$1(result, this.buildSubscribe(), () => this.refresh());
|
|
97087
97194
|
});
|
|
97088
97195
|
}
|
|
97089
97196
|
// Any changes to this method should most likely be duplicated in the aura command as well
|
|
@@ -97096,9 +97203,6 @@ class HttpGraphQLNormalizedCacheControlCommand extends HttpNormalizedCacheContro
|
|
|
97096
97203
|
if (this.subscriptions.length > 0) {
|
|
97097
97204
|
this.subscribeToKeysUsed();
|
|
97098
97205
|
}
|
|
97099
|
-
if (this.lastEmittedData === void 0) {
|
|
97100
|
-
this.lastEmittedData = returnData.value.data;
|
|
97101
|
-
}
|
|
97102
97206
|
return returnData;
|
|
97103
97207
|
});
|
|
97104
97208
|
}
|
|
@@ -98064,7 +98168,7 @@ register$1({
|
|
|
98064
98168
|
id: '@salesforce/lds-network-adapter',
|
|
98065
98169
|
instrument: instrument$2,
|
|
98066
98170
|
});
|
|
98067
|
-
// version: 1.380.0-
|
|
98171
|
+
// version: 1.380.0-dev6-1891f38076
|
|
98068
98172
|
|
|
98069
98173
|
const { create: create$3, keys: keys$3 } = Object;
|
|
98070
98174
|
const { stringify: stringify$1, parse } = JSON;
|
|
@@ -98984,7 +99088,7 @@ function deepMerge$2(target, ...sources) {
|
|
|
98984
99088
|
}
|
|
98985
99089
|
return target;
|
|
98986
99090
|
}
|
|
98987
|
-
function findExecutableOperation(input) {
|
|
99091
|
+
function findExecutableOperation$1(input) {
|
|
98988
99092
|
const operations = input.query.definitions.filter(
|
|
98989
99093
|
(def) => def.kind === Kind.OPERATION_DEFINITION
|
|
98990
99094
|
);
|
|
@@ -99007,7 +99111,7 @@ function findExecutableOperation(input) {
|
|
|
99007
99111
|
return err$3(new Error("Multiple operations found in query, and no operation name provided"));
|
|
99008
99112
|
}
|
|
99009
99113
|
function buildGraphQLInputExtension(input) {
|
|
99010
|
-
const operationResult = findExecutableOperation(input);
|
|
99114
|
+
const operationResult = findExecutableOperation$1(input);
|
|
99011
99115
|
if (operationResult.isErr()) {
|
|
99012
99116
|
return err$3(operationResult.error);
|
|
99013
99117
|
}
|
|
@@ -99032,14 +99136,24 @@ function buildGraphQLInputExtension(input) {
|
|
|
99032
99136
|
parentFieldSelection: void 0
|
|
99033
99137
|
});
|
|
99034
99138
|
}
|
|
99035
|
-
function
|
|
99139
|
+
function buildAugmentedFieldSelection(newSelection, selections, fragments) {
|
|
99036
99140
|
var _a;
|
|
99141
|
+
if (selectionExists(newSelection, selections)) {
|
|
99142
|
+
return void 0;
|
|
99143
|
+
}
|
|
99037
99144
|
const baseAlias = ((_a = newSelection.alias) == null ? void 0 : _a.value) || newSelection.name.value;
|
|
99038
99145
|
const baseInjectedAlias = `framework_augmented_${baseAlias}`;
|
|
99039
|
-
const
|
|
99040
|
-
|
|
99041
|
-
|
|
99146
|
+
const baseAliasedSelection = {
|
|
99147
|
+
...newSelection,
|
|
99148
|
+
alias: {
|
|
99149
|
+
kind: Kind.NAME,
|
|
99150
|
+
value: baseInjectedAlias
|
|
99151
|
+
}
|
|
99152
|
+
};
|
|
99153
|
+
if (selectionExists(baseAliasedSelection, selections)) {
|
|
99154
|
+
return void 0;
|
|
99042
99155
|
}
|
|
99156
|
+
const fieldName = getUniqueSelectionName(baseInjectedAlias, selections, fragments);
|
|
99043
99157
|
return {
|
|
99044
99158
|
...newSelection,
|
|
99045
99159
|
alias: {
|
|
@@ -99048,6 +99162,94 @@ function buildUniqueAugmentedFieldSelection(newSelection, selections, fragments)
|
|
|
99048
99162
|
}
|
|
99049
99163
|
};
|
|
99050
99164
|
}
|
|
99165
|
+
function selectionExists(selection, selections) {
|
|
99166
|
+
return selections.some((s) => selectionEquals(selection, s));
|
|
99167
|
+
}
|
|
99168
|
+
function selectionEquals(a, b) {
|
|
99169
|
+
var _a, _b, _c, _d, _e, _f;
|
|
99170
|
+
if (a.kind !== b.kind) {
|
|
99171
|
+
return false;
|
|
99172
|
+
}
|
|
99173
|
+
if (a.kind === Kind.FIELD) {
|
|
99174
|
+
const bField = b;
|
|
99175
|
+
return !!(a.name.value === bField.name.value) && !!(((_a = a.alias) == null ? void 0 : _a.value) === ((_b = bField.alias) == null ? void 0 : _b.value)) && argumentsEqual(a.arguments, bField.arguments) && selectionSetsEqual((_c = a.selectionSet) == null ? void 0 : _c.selections, (_d = bField.selectionSet) == null ? void 0 : _d.selections) && directivesEqual(a.directives, bField.directives);
|
|
99176
|
+
}
|
|
99177
|
+
if (a.kind === Kind.FRAGMENT_SPREAD) {
|
|
99178
|
+
const bFragmentSpread = b;
|
|
99179
|
+
return a.name.value === bFragmentSpread.name.value && directivesEqual(a.directives, bFragmentSpread.directives);
|
|
99180
|
+
}
|
|
99181
|
+
const bInlineFragment = b;
|
|
99182
|
+
return a.typeCondition === bInlineFragment.typeCondition && directivesEqual(a.directives, bInlineFragment.directives) && selectionSetsEqual((_e = a.selectionSet) == null ? void 0 : _e.selections, (_f = bInlineFragment.selectionSet) == null ? void 0 : _f.selections);
|
|
99183
|
+
}
|
|
99184
|
+
function argumentValueEquals(a, b) {
|
|
99185
|
+
if (a.kind !== b.kind) {
|
|
99186
|
+
return false;
|
|
99187
|
+
}
|
|
99188
|
+
switch (a.kind) {
|
|
99189
|
+
case Kind.STRING:
|
|
99190
|
+
case Kind.INT:
|
|
99191
|
+
case Kind.FLOAT:
|
|
99192
|
+
case Kind.BOOLEAN:
|
|
99193
|
+
case Kind.ENUM:
|
|
99194
|
+
return a.value === b.value;
|
|
99195
|
+
case Kind.NULL:
|
|
99196
|
+
return true;
|
|
99197
|
+
case Kind.VARIABLE:
|
|
99198
|
+
return a.name.value === b.name.value;
|
|
99199
|
+
case Kind.LIST:
|
|
99200
|
+
const bList = b;
|
|
99201
|
+
if (a.values.length !== bList.values.length) {
|
|
99202
|
+
return false;
|
|
99203
|
+
}
|
|
99204
|
+
return a.values.every((val, index) => argumentValueEquals(val, bList.values[index]));
|
|
99205
|
+
case Kind.OBJECT:
|
|
99206
|
+
const bObject = b;
|
|
99207
|
+
if (a.fields.length !== bObject.fields.length) {
|
|
99208
|
+
return false;
|
|
99209
|
+
}
|
|
99210
|
+
return a.fields.every((field, index) => {
|
|
99211
|
+
const bField = bObject.fields[index];
|
|
99212
|
+
return field.name.value === bField.name.value && argumentValueEquals(field.value, bField.value);
|
|
99213
|
+
});
|
|
99214
|
+
default:
|
|
99215
|
+
return false;
|
|
99216
|
+
}
|
|
99217
|
+
}
|
|
99218
|
+
function directivesEqual(a, b) {
|
|
99219
|
+
if (a === void 0 && b === void 0) {
|
|
99220
|
+
return true;
|
|
99221
|
+
}
|
|
99222
|
+
if (a === void 0 || b === void 0) {
|
|
99223
|
+
return ((a == null ? void 0 : a.length) || 0) === ((b == null ? void 0 : b.length) || 0);
|
|
99224
|
+
}
|
|
99225
|
+
if (a.length !== b.length) {
|
|
99226
|
+
return false;
|
|
99227
|
+
}
|
|
99228
|
+
return a.every((directive, index) => {
|
|
99229
|
+
const bDirective = b[index];
|
|
99230
|
+
return directive.name.value === bDirective.name.value && argumentsEqual(directive.arguments, bDirective.arguments);
|
|
99231
|
+
});
|
|
99232
|
+
}
|
|
99233
|
+
function argumentsEqual(a, b) {
|
|
99234
|
+
if (a === void 0 && b === void 0) {
|
|
99235
|
+
return true;
|
|
99236
|
+
}
|
|
99237
|
+
if (a === void 0 || b === void 0) {
|
|
99238
|
+
return ((a == null ? void 0 : a.length) || 0) === ((b == null ? void 0 : b.length) || 0);
|
|
99239
|
+
}
|
|
99240
|
+
if (a.length !== b.length) {
|
|
99241
|
+
return false;
|
|
99242
|
+
}
|
|
99243
|
+
return a.every((arg, index) => {
|
|
99244
|
+
const bArg = b[index];
|
|
99245
|
+
return arg.name.value === bArg.name.value && argumentValueEquals(arg.value, bArg.value);
|
|
99246
|
+
});
|
|
99247
|
+
}
|
|
99248
|
+
function selectionSetsEqual(a, b) {
|
|
99249
|
+
return a === void 0 || b === void 0 || !!(a.length === b.length) && !!a.every((selection, index) => {
|
|
99250
|
+
return selectionEquals(selection, b[index]);
|
|
99251
|
+
});
|
|
99252
|
+
}
|
|
99051
99253
|
function getUniqueSelectionName(fieldName, selections, fragments) {
|
|
99052
99254
|
const fieldNames = collectFieldNames(selections, fragments);
|
|
99053
99255
|
if (!fieldNames.includes(fieldName)) {
|
|
@@ -99422,19 +99624,20 @@ class BaseGraphQLTypeRepository {
|
|
|
99422
99624
|
augmentedFragments = augmentedFragmentSelections.fragments;
|
|
99423
99625
|
}
|
|
99424
99626
|
}
|
|
99425
|
-
|
|
99426
|
-
|
|
99427
|
-
|
|
99428
|
-
|
|
99429
|
-
|
|
99430
|
-
|
|
99431
|
-
|
|
99432
|
-
|
|
99433
|
-
|
|
99434
|
-
|
|
99435
|
-
augmentedFragments
|
|
99436
|
-
)
|
|
99627
|
+
const newTypenameSelection = buildAugmentedFieldSelection(
|
|
99628
|
+
{
|
|
99629
|
+
kind: Kind.FIELD,
|
|
99630
|
+
name: {
|
|
99631
|
+
kind: Kind.NAME,
|
|
99632
|
+
value: "__typename"
|
|
99633
|
+
}
|
|
99634
|
+
},
|
|
99635
|
+
[...augmentedSelections, ...input.selections],
|
|
99636
|
+
augmentedFragments
|
|
99437
99637
|
);
|
|
99638
|
+
if (newTypenameSelection) {
|
|
99639
|
+
augmentedSelections.push(newTypenameSelection);
|
|
99640
|
+
}
|
|
99438
99641
|
return { selections: augmentedSelections, fragments: augmentedFragments };
|
|
99439
99642
|
}
|
|
99440
99643
|
augmentFieldSelection(selection, fragments) {
|
|
@@ -99497,21 +99700,21 @@ class BaseGraphQLTypeRepository {
|
|
|
99497
99700
|
fragment
|
|
99498
99701
|
);
|
|
99499
99702
|
if (satisfiedFragmentTypeConditionResult.isErr() || !satisfiedFragmentTypeConditionResult.value) {
|
|
99500
|
-
return { selections: [], fragments };
|
|
99703
|
+
return { selections: [selection], fragments };
|
|
99501
99704
|
}
|
|
99502
|
-
const
|
|
99705
|
+
const augmentedFragment = this.augmentSelections({
|
|
99503
99706
|
selections: ((_a = fragment.selectionSet) == null ? void 0 : _a.selections) || [],
|
|
99504
99707
|
fragments
|
|
99505
99708
|
});
|
|
99506
99709
|
return {
|
|
99507
99710
|
selections: [selection],
|
|
99508
99711
|
fragments: {
|
|
99509
|
-
...fragments,
|
|
99712
|
+
...augmentedFragment.fragments,
|
|
99510
99713
|
[fragment.name.value]: {
|
|
99511
99714
|
...fragment,
|
|
99512
99715
|
selectionSet: {
|
|
99513
99716
|
kind: Kind.SELECTION_SET,
|
|
99514
|
-
selections:
|
|
99717
|
+
selections: augmentedFragment.selections
|
|
99515
99718
|
}
|
|
99516
99719
|
}
|
|
99517
99720
|
}
|
|
@@ -99830,19 +100033,20 @@ class IdentifiableGraphQLTypeRepository extends IdentifiableTypeRepository {
|
|
|
99830
100033
|
const result = super.augmentSelections(input);
|
|
99831
100034
|
const augmentedSelections = result.selections;
|
|
99832
100035
|
let augmentedFragments = result.fragments;
|
|
99833
|
-
|
|
99834
|
-
|
|
99835
|
-
|
|
99836
|
-
|
|
99837
|
-
|
|
99838
|
-
|
|
99839
|
-
|
|
99840
|
-
|
|
99841
|
-
|
|
99842
|
-
|
|
99843
|
-
augmentedFragments
|
|
99844
|
-
)
|
|
100036
|
+
const newSelection = buildAugmentedFieldSelection(
|
|
100037
|
+
{
|
|
100038
|
+
kind: Kind.FIELD,
|
|
100039
|
+
name: {
|
|
100040
|
+
kind: Kind.NAME,
|
|
100041
|
+
value: this.idField
|
|
100042
|
+
}
|
|
100043
|
+
},
|
|
100044
|
+
[...augmentedSelections, ...input.selections],
|
|
100045
|
+
augmentedFragments
|
|
99845
100046
|
);
|
|
100047
|
+
if (newSelection) {
|
|
100048
|
+
augmentedSelections.push(newSelection);
|
|
100049
|
+
}
|
|
99846
100050
|
return { selections: augmentedSelections, fragments: augmentedFragments };
|
|
99847
100051
|
}
|
|
99848
100052
|
};
|
|
@@ -99957,7 +100161,7 @@ class GraphQLDocumentRootTypeRepository extends IdentifiableGraphQLTypeRepositor
|
|
|
99957
100161
|
}
|
|
99958
100162
|
buildAugmentedQuery(input) {
|
|
99959
100163
|
var _a;
|
|
99960
|
-
const operationResult = findExecutableOperation(input);
|
|
100164
|
+
const operationResult = findExecutableOperation$1(input);
|
|
99961
100165
|
if (operationResult.isErr()) {
|
|
99962
100166
|
return err$3(operationResult.error);
|
|
99963
100167
|
}
|
|
@@ -100102,13 +100306,14 @@ class BaseUnionRepository {
|
|
|
100102
100306
|
);
|
|
100103
100307
|
augmentedSelections.push(...result.selections);
|
|
100104
100308
|
augmentedFragments = result.fragments;
|
|
100105
|
-
|
|
100106
|
-
|
|
100107
|
-
|
|
100108
|
-
|
|
100109
|
-
input.fragments
|
|
100110
|
-
)
|
|
100309
|
+
const newSelection = buildAugmentedFieldSelection(
|
|
100310
|
+
{ kind: Kind.FIELD, name: { kind: Kind.NAME, value: "__typename" } },
|
|
100311
|
+
augmentedSelections,
|
|
100312
|
+
input.fragments
|
|
100111
100313
|
);
|
|
100314
|
+
if (newSelection) {
|
|
100315
|
+
augmentedSelections.push(newSelection);
|
|
100316
|
+
}
|
|
100112
100317
|
return { selections: augmentedSelections, fragments: augmentedFragments };
|
|
100113
100318
|
}
|
|
100114
100319
|
getTypeDiscriminator(data, _selections) {
|
|
@@ -100216,18 +100421,17 @@ let Ok$1 = class Ok {
|
|
|
100216
100421
|
}
|
|
100217
100422
|
};
|
|
100218
100423
|
const ok$1 = (value) => new Ok$1(value);
|
|
100424
|
+
function isResult(value) {
|
|
100425
|
+
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);
|
|
100426
|
+
}
|
|
100427
|
+
function isSubscribable(obj) {
|
|
100428
|
+
return typeof obj === "object" && obj !== null && "subscribe" in obj && typeof obj.subscribe === "function" && "refresh" in obj && typeof obj.refresh === "function";
|
|
100429
|
+
}
|
|
100219
100430
|
function isSubscribableResult(x) {
|
|
100220
|
-
if (
|
|
100431
|
+
if (!isResult(x)) {
|
|
100221
100432
|
return false;
|
|
100222
100433
|
}
|
|
100223
|
-
|
|
100224
|
-
if (x.isOk()) {
|
|
100225
|
-
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";
|
|
100226
|
-
} else {
|
|
100227
|
-
return "error" in x;
|
|
100228
|
-
}
|
|
100229
|
-
}
|
|
100230
|
-
return false;
|
|
100434
|
+
return isSubscribable(x.isOk() ? x.value : x.error);
|
|
100231
100435
|
}
|
|
100232
100436
|
const deeplyFrozen = new WeakSetConstructor();
|
|
100233
100437
|
function deepFreeze(value) {
|
|
@@ -100321,6 +100525,18 @@ function logError(error) {
|
|
|
100321
100525
|
}
|
|
100322
100526
|
console.error("OneStore Command threw an error that we did not expect", error);
|
|
100323
100527
|
}
|
|
100528
|
+
const supportedCachePolicyTypes = ["no-cache", "only-if-cached"];
|
|
100529
|
+
function requestContextIsSupportedCachePolicy(requestContext) {
|
|
100530
|
+
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(
|
|
100531
|
+
requestContext.cachePolicy.type
|
|
100532
|
+
);
|
|
100533
|
+
}
|
|
100534
|
+
function getOverridesForLegacyRequestContext(requestContext) {
|
|
100535
|
+
if (requestContextIsSupportedCachePolicy(requestContext)) {
|
|
100536
|
+
return { cacheControlConfig: { type: requestContext.cachePolicy.type } };
|
|
100537
|
+
}
|
|
100538
|
+
return {};
|
|
100539
|
+
}
|
|
100324
100540
|
class CommandWireAdapterConstructor {
|
|
100325
100541
|
constructor(callback, sourceContext, options) {
|
|
100326
100542
|
this.callback = callback;
|
|
@@ -100378,7 +100594,11 @@ class CommandWireAdapterConstructor {
|
|
|
100378
100594
|
consumerEmittedData.refresh = consumerEmittedRefresh;
|
|
100379
100595
|
}
|
|
100380
100596
|
if (result.isErr()) {
|
|
100381
|
-
|
|
100597
|
+
if (isSubscribableResult(result)) {
|
|
100598
|
+
consumerEmittedData.error = result.error.failure;
|
|
100599
|
+
} else {
|
|
100600
|
+
consumerEmittedData.error = result.error;
|
|
100601
|
+
}
|
|
100382
100602
|
} else {
|
|
100383
100603
|
if (isSubscribableResult(result)) {
|
|
100384
100604
|
deepFreeze(result.value.data);
|
|
@@ -100401,11 +100621,11 @@ class CommandWireAdapterConstructor {
|
|
|
100401
100621
|
if (this.configSchema) {
|
|
100402
100622
|
try {
|
|
100403
100623
|
assertIsValid(this.config, this.configSchema);
|
|
100404
|
-
} catch (
|
|
100405
|
-
if (isIncompleteConfigError(
|
|
100624
|
+
} catch (err2) {
|
|
100625
|
+
if (isIncompleteConfigError(err2)) {
|
|
100406
100626
|
return;
|
|
100407
100627
|
}
|
|
100408
|
-
throw
|
|
100628
|
+
throw err2;
|
|
100409
100629
|
}
|
|
100410
100630
|
}
|
|
100411
100631
|
const initialConfig = this.config;
|
|
@@ -100432,9 +100652,22 @@ class CommandWireAdapterConstructor {
|
|
|
100432
100652
|
this.emit(result);
|
|
100433
100653
|
}
|
|
100434
100654
|
} else {
|
|
100435
|
-
|
|
100436
|
-
|
|
100437
|
-
|
|
100655
|
+
if (isSubscribableResult(result)) {
|
|
100656
|
+
const value = result.error;
|
|
100657
|
+
this.unsubscriber = value.subscribe((updatedResult) => {
|
|
100658
|
+
if (!this.connected || this.config !== initialConfig) {
|
|
100659
|
+
this.unsubscribe();
|
|
100660
|
+
return;
|
|
100661
|
+
}
|
|
100662
|
+
this.emit(updatedResult);
|
|
100663
|
+
});
|
|
100664
|
+
this.refresh = value.refresh;
|
|
100665
|
+
this.emit(result);
|
|
100666
|
+
} else {
|
|
100667
|
+
this.unsubscriber = () => {
|
|
100668
|
+
};
|
|
100669
|
+
this.emit(result);
|
|
100670
|
+
}
|
|
100438
100671
|
}
|
|
100439
100672
|
});
|
|
100440
100673
|
} catch (e) {
|
|
@@ -100451,11 +100684,41 @@ class CommandWireAdapterConstructor {
|
|
|
100451
100684
|
}
|
|
100452
100685
|
}
|
|
100453
100686
|
}
|
|
100454
|
-
function isIncompleteConfigError(
|
|
100455
|
-
return
|
|
100687
|
+
function isIncompleteConfigError(err2) {
|
|
100688
|
+
return err2 instanceof MissingRequiredPropertyError || err2 instanceof JsonSchemaViolationError && err2.validationErrors.find(
|
|
100456
100689
|
(validationError) => validationError instanceof MissingRequiredPropertyError
|
|
100457
100690
|
) !== void 0;
|
|
100458
100691
|
}
|
|
100692
|
+
function findExecutableOperation(document, operationName) {
|
|
100693
|
+
const operations = document.definitions.filter(
|
|
100694
|
+
(def) => def.kind === Kind$1.OPERATION_DEFINITION
|
|
100695
|
+
);
|
|
100696
|
+
if (operations.length === 0) {
|
|
100697
|
+
return void 0;
|
|
100698
|
+
}
|
|
100699
|
+
if (operations.length === 1 && !operationName) {
|
|
100700
|
+
return operations[0];
|
|
100701
|
+
}
|
|
100702
|
+
if (operationName) {
|
|
100703
|
+
return operations.find((op) => {
|
|
100704
|
+
var _a;
|
|
100705
|
+
return ((_a = op.name) == null ? void 0 : _a.value) === operationName;
|
|
100706
|
+
});
|
|
100707
|
+
}
|
|
100708
|
+
return void 0;
|
|
100709
|
+
}
|
|
100710
|
+
function validateGraphQLOperations(config, options) {
|
|
100711
|
+
const executableOperation = findExecutableOperation(config.query, config.operationName);
|
|
100712
|
+
if (executableOperation) {
|
|
100713
|
+
const operationType = executableOperation.operation;
|
|
100714
|
+
if (!options.acceptedOperations.includes(operationType)) {
|
|
100715
|
+
const operationTypeCapitalized = operationType.charAt(0).toUpperCase() + operationType.slice(1);
|
|
100716
|
+
throw new Error(
|
|
100717
|
+
`${operationTypeCapitalized} operations are not supported in this context`
|
|
100718
|
+
);
|
|
100719
|
+
}
|
|
100720
|
+
}
|
|
100721
|
+
}
|
|
100459
100722
|
function resolveAst(ast) {
|
|
100460
100723
|
if (ast === null) {
|
|
100461
100724
|
return;
|
|
@@ -100472,6 +100735,7 @@ function wrapConfigAndVerify(config) {
|
|
|
100472
100735
|
if (config.query === void 0) {
|
|
100473
100736
|
throw new Error("Internal error in GraphQL adapter occurred: Unable to resolve query");
|
|
100474
100737
|
}
|
|
100738
|
+
validateGraphQLOperations(config, { acceptedOperations: ["query"] });
|
|
100475
100739
|
}
|
|
100476
100740
|
return config;
|
|
100477
100741
|
}
|
|
@@ -100511,10 +100775,11 @@ class GraphQLCommandWireAdapterConstructor extends CommandWireAdapterConstructor
|
|
|
100511
100775
|
consumerEmittedData.refresh = consumerEmittedRefresh;
|
|
100512
100776
|
}
|
|
100513
100777
|
if (result.isErr()) {
|
|
100514
|
-
|
|
100515
|
-
|
|
100516
|
-
|
|
100517
|
-
consumerEmittedData.
|
|
100778
|
+
const failure = isSubscribableResult(result) ? result.error.failure : result.error;
|
|
100779
|
+
logError(failure);
|
|
100780
|
+
if (isUserVisibleError(failure)) {
|
|
100781
|
+
consumerEmittedData.data = failure.data.data;
|
|
100782
|
+
consumerEmittedData.errors = failure.data.errors;
|
|
100518
100783
|
} else {
|
|
100519
100784
|
consumerEmittedData.errors = [
|
|
100520
100785
|
{
|
|
@@ -100543,9 +100808,16 @@ class GraphQLCommandWireAdapterConstructor extends CommandWireAdapterConstructor
|
|
|
100543
100808
|
}
|
|
100544
100809
|
update(config, _context) {
|
|
100545
100810
|
this.unsubscribe();
|
|
100811
|
+
const resolvedQuery = resolveAst(config.query);
|
|
100812
|
+
if (resolvedQuery) {
|
|
100813
|
+
validateGraphQLOperations(
|
|
100814
|
+
{ query: resolvedQuery, operationName: config == null ? void 0 : config.operationName },
|
|
100815
|
+
{ acceptedOperations: ["query"] }
|
|
100816
|
+
);
|
|
100817
|
+
}
|
|
100546
100818
|
this.config = {
|
|
100547
100819
|
...sanitize(config),
|
|
100548
|
-
query:
|
|
100820
|
+
query: resolvedQuery
|
|
100549
100821
|
};
|
|
100550
100822
|
this.invokeAdapter();
|
|
100551
100823
|
}
|
|
@@ -100555,7 +100827,7 @@ function buildAsyncGraphQLImperativeLegacyInvoker(getCommand) {
|
|
|
100555
100827
|
config = wrapConfigAndVerify(config);
|
|
100556
100828
|
const command = getCommand({ config, assertIsValid });
|
|
100557
100829
|
try {
|
|
100558
|
-
const overrides =
|
|
100830
|
+
const overrides = getOverridesForLegacyRequestContext(requestContext);
|
|
100559
100831
|
const result = await command.execute(overrides);
|
|
100560
100832
|
const consumerEmittedData = {
|
|
100561
100833
|
data: void 0,
|
|
@@ -100565,11 +100837,12 @@ function buildAsyncGraphQLImperativeLegacyInvoker(getCommand) {
|
|
|
100565
100837
|
deepFreeze(result.value);
|
|
100566
100838
|
consumerEmittedData.data = result.value.data.data;
|
|
100567
100839
|
} else {
|
|
100568
|
-
|
|
100569
|
-
|
|
100570
|
-
consumerEmittedData.
|
|
100840
|
+
const failure = result.error.failure;
|
|
100841
|
+
if (isUserVisibleError(failure)) {
|
|
100842
|
+
consumerEmittedData.data = failure.data.data;
|
|
100843
|
+
consumerEmittedData.errors = failure.data.errors;
|
|
100571
100844
|
} else {
|
|
100572
|
-
logError(
|
|
100845
|
+
logError(failure);
|
|
100573
100846
|
consumerEmittedData.errors = [
|
|
100574
100847
|
{ message: "Internal error in GraphQL adapter occurred", locations: [] }
|
|
100575
100848
|
];
|
|
@@ -100589,7 +100862,7 @@ function buildAsyncGraphQLImperativeLegacyInvoker(getCommand) {
|
|
|
100589
100862
|
const command = getCommand({ config, assertIsValid });
|
|
100590
100863
|
let unsubscribe = () => {
|
|
100591
100864
|
};
|
|
100592
|
-
const overrides =
|
|
100865
|
+
const overrides = getOverridesForLegacyRequestContext(requestContext);
|
|
100593
100866
|
command.execute(overrides).then((result) => {
|
|
100594
100867
|
const consumerEmittedData = {
|
|
100595
100868
|
data: void 0,
|
|
@@ -100598,35 +100871,18 @@ function buildAsyncGraphQLImperativeLegacyInvoker(getCommand) {
|
|
|
100598
100871
|
if (result.isOk()) {
|
|
100599
100872
|
deepFreeze(result.value);
|
|
100600
100873
|
consumerEmittedData.data = result.value.data.data;
|
|
100601
|
-
unsubscribe = result.value.subscribe(
|
|
100602
|
-
|
|
100603
|
-
|
|
100604
|
-
errors: void 0
|
|
100605
|
-
};
|
|
100606
|
-
if (res.isOk()) {
|
|
100607
|
-
consumerEmittedData2.data = res.value.data;
|
|
100608
|
-
} else {
|
|
100609
|
-
if (isUserVisibleError(res.error)) {
|
|
100610
|
-
consumerEmittedData2.data = res.error.data.data;
|
|
100611
|
-
consumerEmittedData2.errors = res.error.data.errors;
|
|
100612
|
-
} else {
|
|
100613
|
-
logError(res.error);
|
|
100614
|
-
consumerEmittedData2.errors = [
|
|
100615
|
-
{
|
|
100616
|
-
message: "Internal error in GraphQL adapter occurred",
|
|
100617
|
-
locations: []
|
|
100618
|
-
}
|
|
100619
|
-
];
|
|
100620
|
-
}
|
|
100874
|
+
unsubscribe = result.value.subscribe(
|
|
100875
|
+
(res) => {
|
|
100876
|
+
handleEmit(res, callback);
|
|
100621
100877
|
}
|
|
100622
|
-
|
|
100623
|
-
});
|
|
100878
|
+
);
|
|
100624
100879
|
} else {
|
|
100625
|
-
|
|
100626
|
-
|
|
100627
|
-
consumerEmittedData.
|
|
100880
|
+
const failure = result.error.failure;
|
|
100881
|
+
if (isUserVisibleError(failure)) {
|
|
100882
|
+
consumerEmittedData.data = failure.data.data;
|
|
100883
|
+
consumerEmittedData.errors = failure.data.errors;
|
|
100628
100884
|
} else {
|
|
100629
|
-
logError(
|
|
100885
|
+
logError(failure);
|
|
100630
100886
|
consumerEmittedData.errors = [
|
|
100631
100887
|
{
|
|
100632
100888
|
message: "Internal error in GraphQL adapter occurred",
|
|
@@ -100634,6 +100890,11 @@ function buildAsyncGraphQLImperativeLegacyInvoker(getCommand) {
|
|
|
100634
100890
|
}
|
|
100635
100891
|
];
|
|
100636
100892
|
}
|
|
100893
|
+
unsubscribe = result.error.subscribe(
|
|
100894
|
+
(res) => {
|
|
100895
|
+
handleEmit(res, callback);
|
|
100896
|
+
}
|
|
100897
|
+
);
|
|
100637
100898
|
}
|
|
100638
100899
|
callback(consumerEmittedData);
|
|
100639
100900
|
});
|
|
@@ -100643,10 +100904,30 @@ function buildAsyncGraphQLImperativeLegacyInvoker(getCommand) {
|
|
|
100643
100904
|
};
|
|
100644
100905
|
return { invoke, subscribe };
|
|
100645
100906
|
}
|
|
100646
|
-
function
|
|
100647
|
-
|
|
100907
|
+
function handleEmit(res, callback) {
|
|
100908
|
+
const consumerEmittedData = {
|
|
100909
|
+
data: void 0,
|
|
100910
|
+
errors: void 0
|
|
100911
|
+
};
|
|
100912
|
+
if (res.isOk()) {
|
|
100913
|
+
consumerEmittedData.data = res.value.data;
|
|
100914
|
+
} else {
|
|
100915
|
+
if (isUserVisibleError(res.error)) {
|
|
100916
|
+
consumerEmittedData.data = res.error.data.data;
|
|
100917
|
+
consumerEmittedData.errors = res.error.data.errors;
|
|
100918
|
+
} else {
|
|
100919
|
+
logError(res.error);
|
|
100920
|
+
consumerEmittedData.errors = [
|
|
100921
|
+
{
|
|
100922
|
+
message: "Internal error in GraphQL adapter occurred",
|
|
100923
|
+
locations: []
|
|
100924
|
+
}
|
|
100925
|
+
];
|
|
100926
|
+
}
|
|
100927
|
+
}
|
|
100928
|
+
callback(consumerEmittedData);
|
|
100648
100929
|
}
|
|
100649
|
-
// version: 1.380.0-
|
|
100930
|
+
// version: 1.380.0-dev6-9d4fd6e5dc
|
|
100650
100931
|
|
|
100651
100932
|
class Analytics__AnalyticsBrowseRepository extends UnidentifiableGraphQLTypeRepository {
|
|
100652
100933
|
constructor(services, typeRegistry) {
|
|
@@ -104439,7 +104720,7 @@ function registerCallback(cb) {
|
|
|
104439
104720
|
cb(graphql$1, graphql_imperative$1, useOneStoreGraphQL);
|
|
104440
104721
|
}
|
|
104441
104722
|
}
|
|
104442
|
-
// version: 1.380.0-
|
|
104723
|
+
// version: 1.380.0-dev6-9d4fd6e5dc
|
|
104443
104724
|
|
|
104444
104725
|
function createFragmentMap(documentNode) {
|
|
104445
104726
|
const fragments = {};
|
|
@@ -120181,7 +120462,7 @@ function getInContextFragmentType$P(fragment, fragmentMap) {
|
|
|
120181
120462
|
}
|
|
120182
120463
|
|
|
120183
120464
|
const name$s = 'Analytics__AnalyticsWorkspaceAsset';
|
|
120184
|
-
const VERSION$C = '
|
|
120465
|
+
const VERSION$C = 'f690ef611baad86daab14c35ec199929';
|
|
120185
120466
|
function keyBuilder$w(luvio, path, data) {
|
|
120186
120467
|
return path.fullPath;
|
|
120187
120468
|
}
|
|
@@ -120311,6 +120592,11 @@ function getTypeCacheKeys$v(cacheKeySink, astNode, state) {
|
|
|
120311
120592
|
getTypeCacheKeys$1w(cacheKeySink, requestedField, ActivePromotionRequestIdState);
|
|
120312
120593
|
break;
|
|
120313
120594
|
}
|
|
120595
|
+
case 'PicklistValue': {
|
|
120596
|
+
const MetadataSourceTypeState = buildFieldState(state, rootKey + '__' + fieldKey, fieldData);
|
|
120597
|
+
getTypeCacheKeys$1h(cacheKeySink, requestedField, MetadataSourceTypeState);
|
|
120598
|
+
break;
|
|
120599
|
+
}
|
|
120314
120600
|
}
|
|
120315
120601
|
}
|
|
120316
120602
|
// Deal with mapped types' cache keys
|
|
@@ -120341,6 +120627,12 @@ function getFieldType$N(field) {
|
|
|
120341
120627
|
typename: 'IDValue'
|
|
120342
120628
|
};
|
|
120343
120629
|
}
|
|
120630
|
+
case 'MetadataSourceType': {
|
|
120631
|
+
return {
|
|
120632
|
+
isArray: false,
|
|
120633
|
+
typename: 'PicklistValue'
|
|
120634
|
+
};
|
|
120635
|
+
}
|
|
120344
120636
|
default:
|
|
120345
120637
|
return undefined;
|
|
120346
120638
|
}
|
|
@@ -131057,7 +131349,7 @@ function refreshGraphQL(data) {
|
|
|
131057
131349
|
}
|
|
131058
131350
|
return refresh$3(data, 'refreshUiApi');
|
|
131059
131351
|
}
|
|
131060
|
-
// version: 1.380.0-
|
|
131352
|
+
// version: 1.380.0-dev6-9d4fd6e5dc
|
|
131061
131353
|
|
|
131062
131354
|
// On core the unstable adapters are re-exported with different names,
|
|
131063
131355
|
// we want to match them here.
|
|
@@ -131209,7 +131501,7 @@ withDefaultLuvio((luvio) => {
|
|
|
131209
131501
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
131210
131502
|
graphQLImperative = ldsAdapter;
|
|
131211
131503
|
});
|
|
131212
|
-
// version: 1.380.0-
|
|
131504
|
+
// version: 1.380.0-dev6-9d4fd6e5dc
|
|
131213
131505
|
|
|
131214
131506
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
131215
131507
|
__proto__: null,
|
|
@@ -131296,15 +131588,15 @@ class NativeFetchResponse {
|
|
|
131296
131588
|
get statusText() {
|
|
131297
131589
|
const { status } = this;
|
|
131298
131590
|
switch (status) {
|
|
131299
|
-
case HttpStatusCode$
|
|
131591
|
+
case HttpStatusCode$2.Ok:
|
|
131300
131592
|
return 'OK';
|
|
131301
|
-
case HttpStatusCode$
|
|
131593
|
+
case HttpStatusCode$2.Created:
|
|
131302
131594
|
return 'Created';
|
|
131303
|
-
case HttpStatusCode$
|
|
131595
|
+
case HttpStatusCode$2.NoContent:
|
|
131304
131596
|
return 'No Content';
|
|
131305
|
-
case HttpStatusCode$
|
|
131597
|
+
case HttpStatusCode$2.BadRequest:
|
|
131306
131598
|
return 'Bad Request';
|
|
131307
|
-
case HttpStatusCode$
|
|
131599
|
+
case HttpStatusCode$2.ServerError:
|
|
131308
131600
|
return 'Server Error';
|
|
131309
131601
|
default:
|
|
131310
131602
|
return `Unexpected HTTP Status Code: ${status}`;
|
|
@@ -131321,7 +131613,7 @@ class NativeFetchErrorResponse extends NativeFetchResponse {
|
|
|
131321
131613
|
}
|
|
131322
131614
|
}
|
|
131323
131615
|
function createNativeFetchErrorResponse(message) {
|
|
131324
|
-
return new NativeFetchErrorResponse(HttpStatusCode$
|
|
131616
|
+
return new NativeFetchErrorResponse(HttpStatusCode$2.BadRequest, {
|
|
131325
131617
|
errorCode: NATIVE_ERROR_CODE,
|
|
131326
131618
|
message: message,
|
|
131327
131619
|
});
|
|
@@ -132008,7 +132300,7 @@ const callbacks$1 = [];
|
|
|
132008
132300
|
function register(r) {
|
|
132009
132301
|
callbacks$1.forEach((callback) => callback(r));
|
|
132010
132302
|
}
|
|
132011
|
-
// version: 1.380.0-
|
|
132303
|
+
// version: 1.380.0-dev6-1891f38076
|
|
132012
132304
|
|
|
132013
132305
|
/**
|
|
132014
132306
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -133324,4 +133616,4 @@ const { luvio } = getRuntime();
|
|
|
133324
133616
|
setDefaultLuvio({ luvio });
|
|
133325
133617
|
|
|
133326
133618
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, importLuvioAdapterModule, importOneStoreAdapterModule, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
133327
|
-
// version: 1.380.0-
|
|
133619
|
+
// version: 1.380.0-dev6-1891f38076
|