@salesforce/lds-worker-api 1.413.0 → 1.414.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4280,7 +4280,7 @@
|
|
|
4280
4280
|
}
|
|
4281
4281
|
callbacks.push(callback);
|
|
4282
4282
|
}
|
|
4283
|
-
// version: 1.
|
|
4283
|
+
// version: 1.414.0-ff06871479
|
|
4284
4284
|
|
|
4285
4285
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4286
4286
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -5324,7 +5324,7 @@
|
|
|
5324
5324
|
const { apiFamily, name } = metadata;
|
|
5325
5325
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
5326
5326
|
}
|
|
5327
|
-
// version: 1.
|
|
5327
|
+
// version: 1.414.0-ff06871479
|
|
5328
5328
|
|
|
5329
5329
|
/**
|
|
5330
5330
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -35479,7 +35479,7 @@
|
|
|
35479
35479
|
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
35480
35480
|
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
35481
35481
|
});
|
|
35482
|
-
// version: 1.
|
|
35482
|
+
// version: 1.414.0-3d95b40524
|
|
35483
35483
|
|
|
35484
35484
|
var allowUpdatesForNonCachedRecords = {
|
|
35485
35485
|
isOpen: function (e) {
|
|
@@ -47125,7 +47125,7 @@
|
|
|
47125
47125
|
const { hasOwnProperty: hasOwnProperty$5 } = Object.prototype;
|
|
47126
47126
|
const { isArray: isArray$7 } = Array;
|
|
47127
47127
|
const { stringify: stringify$9, parse: parse$9 } = JSON;
|
|
47128
|
-
let Ok$
|
|
47128
|
+
let Ok$4 = class Ok {
|
|
47129
47129
|
constructor(value) {
|
|
47130
47130
|
this.value = value;
|
|
47131
47131
|
}
|
|
@@ -47136,7 +47136,7 @@
|
|
|
47136
47136
|
return !this.isOk();
|
|
47137
47137
|
}
|
|
47138
47138
|
};
|
|
47139
|
-
let Err$
|
|
47139
|
+
let Err$4 = class Err {
|
|
47140
47140
|
constructor(error) {
|
|
47141
47141
|
this.error = error;
|
|
47142
47142
|
}
|
|
@@ -47147,8 +47147,8 @@
|
|
|
47147
47147
|
return !this.isOk();
|
|
47148
47148
|
}
|
|
47149
47149
|
};
|
|
47150
|
-
const ok$
|
|
47151
|
-
const err$
|
|
47150
|
+
const ok$4 = (value) => new Ok$4(value);
|
|
47151
|
+
const err$4 = (err2) => new Err$4(err2);
|
|
47152
47152
|
function resolvedPromiseLike$4(result) {
|
|
47153
47153
|
if (isPromiseLike$4(result)) {
|
|
47154
47154
|
return result.then((nextResult) => nextResult);
|
|
@@ -47390,20 +47390,20 @@
|
|
|
47390
47390
|
const existingNormalizedData = (_a = cache.get(key)) == null ? void 0 : _a.value;
|
|
47391
47391
|
const normalized = this.normalizeData(cache, { ...input, existingNormalizedData });
|
|
47392
47392
|
if (normalized.isErr()) {
|
|
47393
|
-
return err$
|
|
47393
|
+
return err$4(normalized.error);
|
|
47394
47394
|
}
|
|
47395
47395
|
cache.set(key, {
|
|
47396
47396
|
value: normalized.value,
|
|
47397
47397
|
metadata: this.cacheMetadata
|
|
47398
47398
|
});
|
|
47399
|
-
return ok$
|
|
47399
|
+
return ok$4({
|
|
47400
47400
|
type: "link",
|
|
47401
47401
|
linkedKey: key
|
|
47402
47402
|
});
|
|
47403
47403
|
}
|
|
47404
47404
|
validateEntry(entry) {
|
|
47405
47405
|
if (!isCacheEntryForType(entry, this)) {
|
|
47406
|
-
return err$
|
|
47406
|
+
return err$4([
|
|
47407
47407
|
{
|
|
47408
47408
|
type: "incorrectType",
|
|
47409
47409
|
expectedType: this.typeName,
|
|
@@ -47411,7 +47411,7 @@
|
|
|
47411
47411
|
}
|
|
47412
47412
|
]);
|
|
47413
47413
|
}
|
|
47414
|
-
return ok$
|
|
47414
|
+
return ok$4(void 0);
|
|
47415
47415
|
}
|
|
47416
47416
|
query(cache, query) {
|
|
47417
47417
|
return this.read(cache, {
|
|
@@ -47429,12 +47429,12 @@
|
|
|
47429
47429
|
if (cacheEntry) {
|
|
47430
47430
|
const validationResult = this.validateEntry(cacheEntry);
|
|
47431
47431
|
if (validationResult.isErr()) {
|
|
47432
|
-
return err$
|
|
47432
|
+
return err$4([...validationResult.error]);
|
|
47433
47433
|
}
|
|
47434
47434
|
const normalizedData = cacheEntry.value;
|
|
47435
47435
|
return this.denormalizeData(cache, { ...input, normalizedData });
|
|
47436
47436
|
}
|
|
47437
|
-
return err$
|
|
47437
|
+
return err$4([this.buildMissingDataError()]);
|
|
47438
47438
|
}
|
|
47439
47439
|
equals(x, y) {
|
|
47440
47440
|
return deepEquals$2(x, y);
|
|
@@ -47457,9 +47457,9 @@
|
|
|
47457
47457
|
}
|
|
47458
47458
|
function buildReadWriteResult(data, errors) {
|
|
47459
47459
|
if (errors.length > 0) {
|
|
47460
|
-
return err$
|
|
47460
|
+
return err$4(errors);
|
|
47461
47461
|
}
|
|
47462
|
-
return ok$
|
|
47462
|
+
return ok$4(data);
|
|
47463
47463
|
}
|
|
47464
47464
|
|
|
47465
47465
|
/**
|
|
@@ -48307,8 +48307,40 @@
|
|
|
48307
48307
|
}
|
|
48308
48308
|
const referenceMap = /* @__PURE__ */ new WeakMap();
|
|
48309
48309
|
const astResolver = function(astReference) {
|
|
48310
|
+
if (typeof astReference !== "object" || astReference === null) {
|
|
48311
|
+
return void 0;
|
|
48312
|
+
}
|
|
48310
48313
|
return referenceMap.get(astReference);
|
|
48311
48314
|
};
|
|
48315
|
+
/*!
|
|
48316
|
+
* Copyright (c) 2022, Salesforce, Inc.,
|
|
48317
|
+
* All rights reserved.
|
|
48318
|
+
* For full license text, see the LICENSE.txt file
|
|
48319
|
+
*/
|
|
48320
|
+
let Ok$3 = class Ok {
|
|
48321
|
+
constructor(value) {
|
|
48322
|
+
this.value = value;
|
|
48323
|
+
}
|
|
48324
|
+
isOk() {
|
|
48325
|
+
return true;
|
|
48326
|
+
}
|
|
48327
|
+
isErr() {
|
|
48328
|
+
return !this.isOk();
|
|
48329
|
+
}
|
|
48330
|
+
};
|
|
48331
|
+
let Err$3 = class Err {
|
|
48332
|
+
constructor(error) {
|
|
48333
|
+
this.error = error;
|
|
48334
|
+
}
|
|
48335
|
+
isOk() {
|
|
48336
|
+
return false;
|
|
48337
|
+
}
|
|
48338
|
+
isErr() {
|
|
48339
|
+
return !this.isOk();
|
|
48340
|
+
}
|
|
48341
|
+
};
|
|
48342
|
+
const ok$3 = (value) => new Ok$3(value);
|
|
48343
|
+
const err$3 = (err2) => new Err$3(err2);
|
|
48312
48344
|
function findExecutableOperation$2(document, operationName) {
|
|
48313
48345
|
const operations = document.definitions.filter(
|
|
48314
48346
|
(def) => def.kind === Kind$2.OPERATION_DEFINITION
|
|
@@ -48341,25 +48373,40 @@
|
|
|
48341
48373
|
}
|
|
48342
48374
|
function resolveAst(ast) {
|
|
48343
48375
|
if (ast === null || ast === void 0) {
|
|
48344
|
-
return;
|
|
48376
|
+
return void 0;
|
|
48345
48377
|
}
|
|
48346
|
-
|
|
48347
|
-
|
|
48348
|
-
|
|
48378
|
+
return astResolver(ast);
|
|
48379
|
+
}
|
|
48380
|
+
function resolveAndValidateGraphQLConfig(config, options) {
|
|
48381
|
+
const query = config.query;
|
|
48382
|
+
if (query === null || query === void 0) {
|
|
48383
|
+
return void 0;
|
|
48349
48384
|
}
|
|
48350
|
-
|
|
48385
|
+
const result = resolveAndValidateGraphQLDocument(query, config.operationName, options);
|
|
48386
|
+
if (result.isErr()) {
|
|
48387
|
+
return err$3(result.error);
|
|
48388
|
+
}
|
|
48389
|
+
return ok$3({
|
|
48390
|
+
...config,
|
|
48391
|
+
query: result.value
|
|
48392
|
+
});
|
|
48351
48393
|
}
|
|
48352
|
-
function
|
|
48353
|
-
|
|
48354
|
-
|
|
48355
|
-
|
|
48356
|
-
|
|
48357
|
-
|
|
48358
|
-
|
|
48359
|
-
acceptedOperations: (options == null ? void 0 : options.acceptedOperations) ?? ["query"]
|
|
48360
|
-
});
|
|
48394
|
+
function resolveAndValidateGraphQLDocument(query, operationName, options) {
|
|
48395
|
+
const resolved = resolveAst(query);
|
|
48396
|
+
if (resolved === void 0) {
|
|
48397
|
+
throw new Error("Could not resolve AST. Did you parse the query with gql?");
|
|
48398
|
+
}
|
|
48399
|
+
if (resolved.type === "error") {
|
|
48400
|
+
return err$3(resolved.error);
|
|
48361
48401
|
}
|
|
48362
|
-
|
|
48402
|
+
const document = resolved.document;
|
|
48403
|
+
validateGraphQLOperations(
|
|
48404
|
+
{ query: document, operationName },
|
|
48405
|
+
{
|
|
48406
|
+
acceptedOperations: (options == null ? void 0 : options.acceptedOperations) ?? ["query"]
|
|
48407
|
+
}
|
|
48408
|
+
);
|
|
48409
|
+
return ok$3(document);
|
|
48363
48410
|
}
|
|
48364
48411
|
|
|
48365
48412
|
var productConsumedSideEffects = {
|
|
@@ -98650,7 +98697,7 @@
|
|
|
98650
98697
|
},
|
|
98651
98698
|
};
|
|
98652
98699
|
}
|
|
98653
|
-
// version: 1.
|
|
98700
|
+
// version: 1.414.0-3d95b40524
|
|
98654
98701
|
|
|
98655
98702
|
/**
|
|
98656
98703
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -98676,7 +98723,7 @@
|
|
|
98676
98723
|
},
|
|
98677
98724
|
};
|
|
98678
98725
|
}
|
|
98679
|
-
// version: 1.
|
|
98726
|
+
// version: 1.414.0-3d95b40524
|
|
98680
98727
|
|
|
98681
98728
|
/*!
|
|
98682
98729
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -99679,7 +99726,16 @@
|
|
|
99679
99726
|
return async (...params) => {
|
|
99680
99727
|
try {
|
|
99681
99728
|
if (params.length) {
|
|
99682
|
-
|
|
99729
|
+
const options = {
|
|
99730
|
+
acceptedOperations: ["query"]
|
|
99731
|
+
};
|
|
99732
|
+
const result = resolveAndValidateGraphQLConfig(params[0], options);
|
|
99733
|
+
if (result == null ? void 0 : result.isErr()) {
|
|
99734
|
+
return result.error;
|
|
99735
|
+
}
|
|
99736
|
+
if (result == null ? void 0 : result.isOk()) {
|
|
99737
|
+
params[0] = result.value;
|
|
99738
|
+
}
|
|
99683
99739
|
}
|
|
99684
99740
|
return await buildBaseImperativeInvoker(getCommand, (result) => this.transformResult(result, exposeRefresh))(...params);
|
|
99685
99741
|
} catch (error) {
|
|
@@ -99770,7 +99826,19 @@
|
|
|
99770
99826
|
class GraphQLLegacyImperativeBindingsService {
|
|
99771
99827
|
bind(getCommand) {
|
|
99772
99828
|
const invoke = async (config, requestContext, callback) => {
|
|
99773
|
-
|
|
99829
|
+
if (config) {
|
|
99830
|
+
const options = {
|
|
99831
|
+
acceptedOperations: ["query"]
|
|
99832
|
+
};
|
|
99833
|
+
const result = resolveAndValidateGraphQLConfig(config, options);
|
|
99834
|
+
if (result == null ? void 0 : result.isErr()) {
|
|
99835
|
+
callback(result.error);
|
|
99836
|
+
return;
|
|
99837
|
+
}
|
|
99838
|
+
if (result == null ? void 0 : result.isOk()) {
|
|
99839
|
+
config = result.value;
|
|
99840
|
+
}
|
|
99841
|
+
}
|
|
99774
99842
|
const command = getCommand({ config, assertIsValid: assertIsValid$1 });
|
|
99775
99843
|
try {
|
|
99776
99844
|
const overrides = getOverridesForLegacyRequestContext(requestContext);
|
|
@@ -99799,7 +99867,20 @@
|
|
|
99799
99867
|
}
|
|
99800
99868
|
};
|
|
99801
99869
|
const subscribe = (config, requestContext, callback) => {
|
|
99802
|
-
|
|
99870
|
+
if (config) {
|
|
99871
|
+
const options = {
|
|
99872
|
+
acceptedOperations: ["query"]
|
|
99873
|
+
};
|
|
99874
|
+
const result = resolveAndValidateGraphQLConfig(config, options);
|
|
99875
|
+
if (result == null ? void 0 : result.isErr()) {
|
|
99876
|
+
callback(result.error);
|
|
99877
|
+
return () => {
|
|
99878
|
+
};
|
|
99879
|
+
}
|
|
99880
|
+
if (result == null ? void 0 : result.isOk()) {
|
|
99881
|
+
config = result.value;
|
|
99882
|
+
}
|
|
99883
|
+
}
|
|
99803
99884
|
const command = getCommand({ config, assertIsValid: assertIsValid$1 });
|
|
99804
99885
|
let unsubscribe = () => {
|
|
99805
99886
|
};
|
|
@@ -99848,9 +99929,19 @@
|
|
|
99848
99929
|
return async (...params) => {
|
|
99849
99930
|
try {
|
|
99850
99931
|
if (params.length) {
|
|
99851
|
-
|
|
99932
|
+
const options = {
|
|
99852
99933
|
acceptedOperations: ["mutation"]
|
|
99853
|
-
}
|
|
99934
|
+
};
|
|
99935
|
+
const result2 = resolveAndValidateGraphQLConfig(params[0], options);
|
|
99936
|
+
if (result2 == null ? void 0 : result2.isErr()) {
|
|
99937
|
+
return {
|
|
99938
|
+
data: void 0,
|
|
99939
|
+
errors: result2.error.errors
|
|
99940
|
+
};
|
|
99941
|
+
}
|
|
99942
|
+
if (result2 == null ? void 0 : result2.isOk()) {
|
|
99943
|
+
params[0] = result2.value;
|
|
99944
|
+
}
|
|
99854
99945
|
}
|
|
99855
99946
|
const command = getCommand({ params, assertIsValid: assertIsValid$1 });
|
|
99856
99947
|
const result = await command.execute({ cacheControlConfig: { type: "no-cache" } });
|
|
@@ -100180,16 +100271,25 @@
|
|
|
100180
100271
|
}
|
|
100181
100272
|
update(config, _context) {
|
|
100182
100273
|
this.unsubscribe();
|
|
100183
|
-
const
|
|
100184
|
-
|
|
100185
|
-
|
|
100186
|
-
|
|
100187
|
-
|
|
100188
|
-
|
|
100274
|
+
const options = {
|
|
100275
|
+
acceptedOperations: ["query"]
|
|
100276
|
+
};
|
|
100277
|
+
const result = resolveAndValidateGraphQLConfig(config, options);
|
|
100278
|
+
if (!result) {
|
|
100279
|
+
return;
|
|
100280
|
+
}
|
|
100281
|
+
if (result.isErr()) {
|
|
100282
|
+
const error = result.error;
|
|
100283
|
+
this.callback({
|
|
100284
|
+
data: void 0,
|
|
100285
|
+
errors: error.errors
|
|
100286
|
+
});
|
|
100287
|
+
return;
|
|
100189
100288
|
}
|
|
100289
|
+
const { query, ...rest } = result.value;
|
|
100190
100290
|
this.config = {
|
|
100191
|
-
|
|
100192
|
-
|
|
100291
|
+
query,
|
|
100292
|
+
...sanitize(rest)
|
|
100193
100293
|
};
|
|
100194
100294
|
this.invokeAdapter();
|
|
100195
100295
|
}
|
|
@@ -101261,7 +101361,7 @@
|
|
|
101261
101361
|
id: '@salesforce/lds-network-adapter',
|
|
101262
101362
|
instrument: instrument$2,
|
|
101263
101363
|
});
|
|
101264
|
-
// version: 1.
|
|
101364
|
+
// version: 1.414.0-ff06871479
|
|
101265
101365
|
|
|
101266
101366
|
const { create: create$3, keys: keys$3 } = Object;
|
|
101267
101367
|
const { stringify, parse } = JSON;
|
|
@@ -101310,7 +101410,7 @@
|
|
|
101310
101410
|
this.errors.unshift(error);
|
|
101311
101411
|
}
|
|
101312
101412
|
toValidationResponse() {
|
|
101313
|
-
return !this.hasErrors() ? ok$
|
|
101413
|
+
return !this.hasErrors() ? ok$4(true) : err$4(this.errors);
|
|
101314
101414
|
}
|
|
101315
101415
|
}
|
|
101316
101416
|
function createThrowableError(errors) {
|
|
@@ -101346,10 +101446,10 @@
|
|
|
101346
101446
|
);
|
|
101347
101447
|
}
|
|
101348
101448
|
function validSchemaResponse() {
|
|
101349
|
-
return ok$
|
|
101449
|
+
return ok$4(true);
|
|
101350
101450
|
}
|
|
101351
101451
|
function invalidSchemaResponseWithError(error) {
|
|
101352
|
-
return err$
|
|
101452
|
+
return err$4([error]);
|
|
101353
101453
|
}
|
|
101354
101454
|
function validateJsonSchema(data, schema, path = "$", document = schema) {
|
|
101355
101455
|
if (schema === true) return validSchemaResponse();
|
|
@@ -101862,35 +101962,35 @@
|
|
|
101862
101962
|
function extractVariableValue(variableName, variableDefinitions) {
|
|
101863
101963
|
const variable = variableDefinitions[variableName];
|
|
101864
101964
|
if (!variable) {
|
|
101865
|
-
return err$
|
|
101965
|
+
return err$4(
|
|
101866
101966
|
new Error(`Variable '${variableName}' was used in the query but was not defined`)
|
|
101867
101967
|
);
|
|
101868
101968
|
}
|
|
101869
101969
|
if (variable.value !== void 0) {
|
|
101870
|
-
return ok$
|
|
101970
|
+
return ok$4(variable.value);
|
|
101871
101971
|
}
|
|
101872
101972
|
if (variable.definition.defaultValue) {
|
|
101873
101973
|
return extractValue(variable.definition.defaultValue, variableDefinitions);
|
|
101874
101974
|
}
|
|
101875
|
-
return ok$
|
|
101975
|
+
return ok$4(void 0);
|
|
101876
101976
|
}
|
|
101877
101977
|
function validateExpectedType(value, expectedType) {
|
|
101878
101978
|
if (!expectedType) {
|
|
101879
|
-
return ok$
|
|
101979
|
+
return ok$4(value);
|
|
101880
101980
|
}
|
|
101881
101981
|
if (value === null) {
|
|
101882
101982
|
if (expectedType.nullable) {
|
|
101883
|
-
return ok$
|
|
101983
|
+
return ok$4(value);
|
|
101884
101984
|
} else {
|
|
101885
|
-
return err$
|
|
101985
|
+
return err$4(new Error(`Expected ${expectedType.type}, but got null`));
|
|
101886
101986
|
}
|
|
101887
101987
|
}
|
|
101888
101988
|
const actualType = typeof value;
|
|
101889
101989
|
if (actualType === expectedType.type) {
|
|
101890
|
-
return ok$
|
|
101990
|
+
return ok$4(value);
|
|
101891
101991
|
}
|
|
101892
101992
|
const expectedTypeString = expectedType.nullable ? `${expectedType.type} | null` : expectedType.type;
|
|
101893
|
-
return err$
|
|
101993
|
+
return err$4(
|
|
101894
101994
|
new Error(`Expected ${expectedTypeString}, but got ${actualType}: ${JSON.stringify(value)}`)
|
|
101895
101995
|
);
|
|
101896
101996
|
}
|
|
@@ -101933,10 +102033,10 @@
|
|
|
101933
102033
|
(def) => def.kind === Kind.OPERATION_DEFINITION
|
|
101934
102034
|
);
|
|
101935
102035
|
if (operations.length === 0) {
|
|
101936
|
-
return err$
|
|
102036
|
+
return err$4(new Error("No operations found in query"));
|
|
101937
102037
|
}
|
|
101938
102038
|
if (operations.length === 1 && !input.operationName) {
|
|
101939
|
-
return ok$
|
|
102039
|
+
return ok$4(operations[0]);
|
|
101940
102040
|
}
|
|
101941
102041
|
if (input.operationName) {
|
|
101942
102042
|
const specifiedOperation = operations.find((op) => {
|
|
@@ -101944,16 +102044,16 @@
|
|
|
101944
102044
|
return ((_a = op.name) == null ? void 0 : _a.value) === input.operationName;
|
|
101945
102045
|
});
|
|
101946
102046
|
if (specifiedOperation) {
|
|
101947
|
-
return ok$
|
|
102047
|
+
return ok$4(specifiedOperation);
|
|
101948
102048
|
}
|
|
101949
|
-
return err$
|
|
102049
|
+
return err$4(new Error(`Operation "${input.operationName}" not found in query`));
|
|
101950
102050
|
}
|
|
101951
|
-
return err$
|
|
102051
|
+
return err$4(new Error("Multiple operations found in query, and no operation name provided"));
|
|
101952
102052
|
}
|
|
101953
102053
|
function buildGraphQLInputExtension(input) {
|
|
101954
102054
|
const operationResult = findExecutableOperation(input);
|
|
101955
102055
|
if (operationResult.isErr()) {
|
|
101956
|
-
return err$
|
|
102056
|
+
return err$4(operationResult.error);
|
|
101957
102057
|
}
|
|
101958
102058
|
const operation = operationResult.value;
|
|
101959
102059
|
const selections = operation.selectionSet.selections;
|
|
@@ -101970,7 +102070,7 @@
|
|
|
101970
102070
|
prev[fragment.name.value] = fragment;
|
|
101971
102071
|
return prev;
|
|
101972
102072
|
}, {});
|
|
101973
|
-
return ok$
|
|
102073
|
+
return ok$4({
|
|
101974
102074
|
selections,
|
|
101975
102075
|
request: { definitions: { variables, fragments } },
|
|
101976
102076
|
parentFieldSelection: void 0
|
|
@@ -102126,13 +102226,13 @@
|
|
|
102126
102226
|
}
|
|
102127
102227
|
function buildFieldKey(canonicalFieldName, fieldArguments, variables) {
|
|
102128
102228
|
if (fieldArguments === void 0 || fieldArguments.length === 0) {
|
|
102129
|
-
return ok$
|
|
102229
|
+
return ok$4(canonicalFieldName);
|
|
102130
102230
|
}
|
|
102131
102231
|
const formattedArguments = {};
|
|
102132
102232
|
for (const arg of fieldArguments) {
|
|
102133
102233
|
const result = extractValue(arg.value, variables);
|
|
102134
102234
|
if (result.isErr()) {
|
|
102135
|
-
return err$
|
|
102235
|
+
return err$4(
|
|
102136
102236
|
new Error(
|
|
102137
102237
|
`Failed to extract argument '${arg.name.value}' for field '${canonicalFieldName}': ${result.error.message}`
|
|
102138
102238
|
)
|
|
@@ -102140,7 +102240,7 @@
|
|
|
102140
102240
|
}
|
|
102141
102241
|
formattedArguments[arg.name.value] = result.value;
|
|
102142
102242
|
}
|
|
102143
|
-
return ok$
|
|
102243
|
+
return ok$4(`${canonicalFieldName}::${stableJSONStringify$3({ args: formattedArguments })}`);
|
|
102144
102244
|
}
|
|
102145
102245
|
({
|
|
102146
102246
|
kind: Kind.FIELD,
|
|
@@ -102165,17 +102265,17 @@
|
|
|
102165
102265
|
var _a;
|
|
102166
102266
|
const ifArg = (_a = directive.arguments) == null ? void 0 : _a.find((arg) => arg.name.value === "if");
|
|
102167
102267
|
if (!ifArg) {
|
|
102168
|
-
return err$
|
|
102268
|
+
return err$4(new Error(`@${directiveName} directive requires an 'if' argument`));
|
|
102169
102269
|
}
|
|
102170
102270
|
const result = extractValue(ifArg.value, variables, { type: "boolean", nullable: false });
|
|
102171
102271
|
if (result.isErr()) {
|
|
102172
|
-
return err$
|
|
102272
|
+
return err$4(result.error);
|
|
102173
102273
|
}
|
|
102174
|
-
return ok$
|
|
102274
|
+
return ok$4(result.value);
|
|
102175
102275
|
}
|
|
102176
102276
|
function shouldSkip(selection, variables) {
|
|
102177
102277
|
if (!selection.directives || selection.directives.length === 0) {
|
|
102178
|
-
return ok$
|
|
102278
|
+
return ok$4(false);
|
|
102179
102279
|
}
|
|
102180
102280
|
for (const directive of selection.directives) {
|
|
102181
102281
|
if (directive.name.value === "skip") {
|
|
@@ -102184,7 +102284,7 @@
|
|
|
102184
102284
|
return ifResult;
|
|
102185
102285
|
}
|
|
102186
102286
|
if (ifResult.value === true) {
|
|
102187
|
-
return ok$
|
|
102287
|
+
return ok$4(true);
|
|
102188
102288
|
}
|
|
102189
102289
|
}
|
|
102190
102290
|
if (directive.name.value === "include") {
|
|
@@ -102193,11 +102293,11 @@
|
|
|
102193
102293
|
return ifResult;
|
|
102194
102294
|
}
|
|
102195
102295
|
if (ifResult.value === false) {
|
|
102196
|
-
return ok$
|
|
102296
|
+
return ok$4(true);
|
|
102197
102297
|
}
|
|
102198
102298
|
}
|
|
102199
102299
|
}
|
|
102200
|
-
return ok$
|
|
102300
|
+
return ok$4(false);
|
|
102201
102301
|
}
|
|
102202
102302
|
class BaseScalarFieldDef {
|
|
102203
102303
|
constructor(nullable) {
|
|
@@ -102205,11 +102305,11 @@
|
|
|
102205
102305
|
}
|
|
102206
102306
|
write(_cache, input) {
|
|
102207
102307
|
if (input.data === void 0) {
|
|
102208
|
-
return ok$
|
|
102308
|
+
return ok$4({ type: "missing" });
|
|
102209
102309
|
}
|
|
102210
102310
|
if (input.data === null) {
|
|
102211
102311
|
if (!this.nullable) {
|
|
102212
|
-
return err$
|
|
102312
|
+
return err$4([
|
|
102213
102313
|
{
|
|
102214
102314
|
type: "unknown",
|
|
102215
102315
|
error: new Error(
|
|
@@ -102219,14 +102319,14 @@
|
|
|
102219
102319
|
]);
|
|
102220
102320
|
}
|
|
102221
102321
|
}
|
|
102222
|
-
return ok$
|
|
102322
|
+
return ok$4({ type: "data", data: input.data });
|
|
102223
102323
|
}
|
|
102224
102324
|
read(_cache, input) {
|
|
102225
102325
|
const normalizedData = input.normalizedData;
|
|
102226
102326
|
if (normalizedData.type === "missing") {
|
|
102227
|
-
return ok$
|
|
102327
|
+
return ok$4(void 0);
|
|
102228
102328
|
}
|
|
102229
|
-
return ok$
|
|
102329
|
+
return ok$4(normalizedData.data);
|
|
102230
102330
|
}
|
|
102231
102331
|
augmentSelections(input) {
|
|
102232
102332
|
return input;
|
|
@@ -102248,11 +102348,11 @@
|
|
|
102248
102348
|
}
|
|
102249
102349
|
write(cache, input) {
|
|
102250
102350
|
if (input.data === void 0) {
|
|
102251
|
-
return ok$
|
|
102351
|
+
return ok$4({ type: "missing" });
|
|
102252
102352
|
}
|
|
102253
102353
|
if (input.data === null) {
|
|
102254
102354
|
if (!this.nullable) {
|
|
102255
|
-
return err$
|
|
102355
|
+
return err$4([
|
|
102256
102356
|
{
|
|
102257
102357
|
type: "unknown",
|
|
102258
102358
|
error: new Error(
|
|
@@ -102261,10 +102361,10 @@
|
|
|
102261
102361
|
}
|
|
102262
102362
|
]);
|
|
102263
102363
|
}
|
|
102264
|
-
return ok$
|
|
102364
|
+
return ok$4({ type: "data", data: input.data });
|
|
102265
102365
|
}
|
|
102266
102366
|
if (!Array.isArray(input.data)) {
|
|
102267
|
-
return err$
|
|
102367
|
+
return err$4([
|
|
102268
102368
|
{
|
|
102269
102369
|
type: "unknown",
|
|
102270
102370
|
error: new Error(
|
|
@@ -102292,18 +102392,18 @@
|
|
|
102292
102392
|
}
|
|
102293
102393
|
});
|
|
102294
102394
|
if (arrayNormalizationErrors.length > 0) {
|
|
102295
|
-
return err$
|
|
102395
|
+
return err$4(arrayNormalizationErrors);
|
|
102296
102396
|
}
|
|
102297
|
-
return ok$
|
|
102397
|
+
return ok$4({ type: "data", data: normalizedArray });
|
|
102298
102398
|
}
|
|
102299
102399
|
read(cache, input) {
|
|
102300
102400
|
const normalizedData = input.normalizedData;
|
|
102301
102401
|
if (normalizedData.type === "missing") {
|
|
102302
|
-
return ok$
|
|
102402
|
+
return ok$4(void 0);
|
|
102303
102403
|
}
|
|
102304
102404
|
if (normalizedData.data === null) {
|
|
102305
102405
|
if (!this.nullable) {
|
|
102306
|
-
return err$
|
|
102406
|
+
return err$4([
|
|
102307
102407
|
{
|
|
102308
102408
|
type: "unknown",
|
|
102309
102409
|
error: new Error(
|
|
@@ -102312,10 +102412,10 @@
|
|
|
102312
102412
|
}
|
|
102313
102413
|
]);
|
|
102314
102414
|
}
|
|
102315
|
-
return ok$
|
|
102415
|
+
return ok$4({ type: "data", data: null });
|
|
102316
102416
|
}
|
|
102317
102417
|
if (!Array.isArray(normalizedData.data)) {
|
|
102318
|
-
return err$
|
|
102418
|
+
return err$4([
|
|
102319
102419
|
{
|
|
102320
102420
|
type: "unknown",
|
|
102321
102421
|
error: new Error(
|
|
@@ -102340,9 +102440,9 @@
|
|
|
102340
102440
|
}
|
|
102341
102441
|
});
|
|
102342
102442
|
if (arrayDenormalizationErrors.length > 0) {
|
|
102343
|
-
return err$
|
|
102443
|
+
return err$4(arrayDenormalizationErrors);
|
|
102344
102444
|
}
|
|
102345
|
-
return ok$
|
|
102445
|
+
return ok$4(denormalizedArray);
|
|
102346
102446
|
}
|
|
102347
102447
|
}
|
|
102348
102448
|
class BaseObjectFieldDef {
|
|
@@ -102359,7 +102459,7 @@
|
|
|
102359
102459
|
write(cache, input) {
|
|
102360
102460
|
var _a;
|
|
102361
102461
|
if (!input.selection.selectionSet) {
|
|
102362
|
-
return err$
|
|
102462
|
+
return err$4([
|
|
102363
102463
|
{
|
|
102364
102464
|
type: "unknown",
|
|
102365
102465
|
error: new Error(
|
|
@@ -102369,11 +102469,11 @@
|
|
|
102369
102469
|
]);
|
|
102370
102470
|
}
|
|
102371
102471
|
if (input.data === void 0) {
|
|
102372
|
-
return ok$
|
|
102472
|
+
return ok$4({ type: "missing" });
|
|
102373
102473
|
}
|
|
102374
102474
|
if (input.data === null) {
|
|
102375
102475
|
if (!this.nullable) {
|
|
102376
|
-
return err$
|
|
102476
|
+
return err$4([
|
|
102377
102477
|
{
|
|
102378
102478
|
type: "unknown",
|
|
102379
102479
|
error: new Error(
|
|
@@ -102382,7 +102482,7 @@
|
|
|
102382
102482
|
}
|
|
102383
102483
|
]);
|
|
102384
102484
|
}
|
|
102385
|
-
return ok$
|
|
102485
|
+
return ok$4({ type: "data", data: null });
|
|
102386
102486
|
}
|
|
102387
102487
|
const writeResult = this.repository.write(cache, {
|
|
102388
102488
|
...input,
|
|
@@ -102395,12 +102495,12 @@
|
|
|
102395
102495
|
if (writeResult.isErr()) {
|
|
102396
102496
|
return writeResult;
|
|
102397
102497
|
}
|
|
102398
|
-
return ok$
|
|
102498
|
+
return ok$4({ type: "data", data: writeResult.value });
|
|
102399
102499
|
}
|
|
102400
102500
|
read(cache, input) {
|
|
102401
102501
|
var _a;
|
|
102402
102502
|
if (!input.selection.selectionSet) {
|
|
102403
|
-
return err$
|
|
102503
|
+
return err$4([
|
|
102404
102504
|
{
|
|
102405
102505
|
type: "unknown",
|
|
102406
102506
|
error: new Error(
|
|
@@ -102411,11 +102511,11 @@
|
|
|
102411
102511
|
}
|
|
102412
102512
|
const normalizedData = input.normalizedData;
|
|
102413
102513
|
if (normalizedData.type === "missing") {
|
|
102414
|
-
return ok$
|
|
102514
|
+
return ok$4(void 0);
|
|
102415
102515
|
}
|
|
102416
102516
|
if (normalizedData.data === null) {
|
|
102417
102517
|
if (!this.nullable) {
|
|
102418
|
-
return err$
|
|
102518
|
+
return err$4([
|
|
102419
102519
|
{
|
|
102420
102520
|
type: "unknown",
|
|
102421
102521
|
error: new Error(
|
|
@@ -102424,7 +102524,7 @@
|
|
|
102424
102524
|
}
|
|
102425
102525
|
]);
|
|
102426
102526
|
}
|
|
102427
|
-
return ok$
|
|
102527
|
+
return ok$4(null);
|
|
102428
102528
|
}
|
|
102429
102529
|
return this.repository.read(cache, {
|
|
102430
102530
|
...input,
|
|
@@ -102707,7 +102807,7 @@
|
|
|
102707
102807
|
var _a;
|
|
102708
102808
|
const fieldDef = this.getFieldDef(input, selection);
|
|
102709
102809
|
if (!fieldDef) {
|
|
102710
|
-
return err$
|
|
102810
|
+
return err$4(
|
|
102711
102811
|
new Error(
|
|
102712
102812
|
`Unknown field "${selection.name.value}" on type "${this.typeName}". Expected one of fields ${Object.keys(this.fields)}.`
|
|
102713
102813
|
)
|
|
@@ -102718,10 +102818,10 @@
|
|
|
102718
102818
|
input.request.definitions.variables
|
|
102719
102819
|
);
|
|
102720
102820
|
if (cacheFieldKeyResult.isErr()) {
|
|
102721
|
-
return err$
|
|
102821
|
+
return err$4(cacheFieldKeyResult.error);
|
|
102722
102822
|
}
|
|
102723
102823
|
const cacheFieldKey = cacheFieldKeyResult.value;
|
|
102724
|
-
return ok$
|
|
102824
|
+
return ok$4((_a = input.existingNormalizedData || input.normalizedData) == null ? void 0 : _a[cacheFieldKey]);
|
|
102725
102825
|
}
|
|
102726
102826
|
denormalizeFieldSelection(cache, input, selection, errorCollector) {
|
|
102727
102827
|
var _a;
|
|
@@ -102827,22 +102927,22 @@
|
|
|
102827
102927
|
return shouldSkipResult;
|
|
102828
102928
|
}
|
|
102829
102929
|
if (shouldSkipResult.value) {
|
|
102830
|
-
return ok$
|
|
102930
|
+
return ok$4(false);
|
|
102831
102931
|
}
|
|
102832
102932
|
return this.satisfiesFragmentTypeCondition(input, fragment);
|
|
102833
102933
|
}
|
|
102834
102934
|
satisfiesFragmentTypeCondition(_input, fragment) {
|
|
102835
102935
|
if (!fragment.typeCondition) {
|
|
102836
|
-
return ok$
|
|
102936
|
+
return ok$4(true);
|
|
102837
102937
|
}
|
|
102838
102938
|
const conditionalTypeName = fragment.typeCondition.name.value;
|
|
102839
102939
|
if (conditionalTypeName === this.typeName) {
|
|
102840
|
-
return ok$
|
|
102940
|
+
return ok$4(true);
|
|
102841
102941
|
}
|
|
102842
102942
|
if (this.implementedInterfaces.includes(conditionalTypeName)) {
|
|
102843
|
-
return ok$
|
|
102943
|
+
return ok$4(true);
|
|
102844
102944
|
}
|
|
102845
|
-
return ok$
|
|
102945
|
+
return ok$4(false);
|
|
102846
102946
|
}
|
|
102847
102947
|
getCacheKeyFieldArguments(selection) {
|
|
102848
102948
|
return selection.arguments;
|
|
@@ -102901,7 +103001,7 @@
|
|
|
102901
103001
|
const key = this.buildKey(this.buildKeyParams(input));
|
|
102902
103002
|
const normalized = this.normalizeData(cache, input);
|
|
102903
103003
|
if (normalized.isErr()) {
|
|
102904
|
-
return err$
|
|
103004
|
+
return err$4(normalized.error);
|
|
102905
103005
|
}
|
|
102906
103006
|
const existing = cache.get(key);
|
|
102907
103007
|
if (!deepEquals$2(existing == null ? void 0 : existing.value, normalized.value)) {
|
|
@@ -102910,7 +103010,7 @@
|
|
|
102910
103010
|
metadata: this.cacheMetadata
|
|
102911
103011
|
});
|
|
102912
103012
|
}
|
|
102913
|
-
return ok$
|
|
103013
|
+
return ok$4({
|
|
102914
103014
|
type: "link",
|
|
102915
103015
|
linkedKey: key
|
|
102916
103016
|
});
|
|
@@ -102925,7 +103025,7 @@
|
|
|
102925
103025
|
if (normalizeDataResult.isErr()) {
|
|
102926
103026
|
return normalizeDataResult;
|
|
102927
103027
|
}
|
|
102928
|
-
return ok$
|
|
103028
|
+
return ok$4(
|
|
102929
103029
|
deepMerge$2(
|
|
102930
103030
|
{},
|
|
102931
103031
|
(existingNormalizedData == null ? void 0 : existingNormalizedData.value) || {},
|
|
@@ -102995,7 +103095,7 @@
|
|
|
102995
103095
|
if (result.isErr()) {
|
|
102996
103096
|
return result;
|
|
102997
103097
|
}
|
|
102998
|
-
return ok$
|
|
103098
|
+
return ok$4({
|
|
102999
103099
|
data: result.value
|
|
103000
103100
|
});
|
|
103001
103101
|
}
|
|
@@ -103003,7 +103103,7 @@
|
|
|
103003
103103
|
var _a;
|
|
103004
103104
|
const operationResult = findExecutableOperation(input);
|
|
103005
103105
|
if (operationResult.isErr()) {
|
|
103006
|
-
return err$
|
|
103106
|
+
return err$4(operationResult.error);
|
|
103007
103107
|
}
|
|
103008
103108
|
const operation = operationResult.value;
|
|
103009
103109
|
const fragmentDefinitions = input.query.definitions.filter(
|
|
@@ -103026,7 +103126,7 @@
|
|
|
103026
103126
|
...operation,
|
|
103027
103127
|
selectionSet: { kind: Kind.SELECTION_SET, selections: augmentedOperationSelections }
|
|
103028
103128
|
};
|
|
103029
|
-
return ok$
|
|
103129
|
+
return ok$4({
|
|
103030
103130
|
...input.query,
|
|
103031
103131
|
definitions: [
|
|
103032
103132
|
...input.query.definitions.filter((def) => def.kind !== Kind.FRAGMENT_DEFINITION).map((def) => {
|
|
@@ -103061,7 +103161,7 @@
|
|
|
103061
103161
|
}
|
|
103062
103162
|
write(cache, input) {
|
|
103063
103163
|
if (typeof input.data !== "object") {
|
|
103064
|
-
return err$
|
|
103164
|
+
return err$4([
|
|
103065
103165
|
{
|
|
103066
103166
|
type: "unknown",
|
|
103067
103167
|
error: new Error(`Got a non-object value for ${this.typeName} field"`)
|
|
@@ -103071,7 +103171,7 @@
|
|
|
103071
103171
|
const discriminator = this.getTypeDiscriminator(input.data, input.selections);
|
|
103072
103172
|
const concreteTypeRepository = this.possibleTypes[discriminator];
|
|
103073
103173
|
if (!concreteTypeRepository) {
|
|
103074
|
-
return err$
|
|
103174
|
+
return err$4([
|
|
103075
103175
|
{
|
|
103076
103176
|
type: "unknown",
|
|
103077
103177
|
error: new Error(
|
|
@@ -103082,7 +103182,7 @@
|
|
|
103082
103182
|
}
|
|
103083
103183
|
const selectionErr = this.verifyInterfaceFields(input.selections);
|
|
103084
103184
|
if (selectionErr) {
|
|
103085
|
-
return err$
|
|
103185
|
+
return err$4(selectionErr);
|
|
103086
103186
|
}
|
|
103087
103187
|
const normalizeInput = {
|
|
103088
103188
|
...input,
|
|
@@ -103094,14 +103194,14 @@
|
|
|
103094
103194
|
};
|
|
103095
103195
|
const result = concreteTypeRepository.write(cache, normalizeInput);
|
|
103096
103196
|
if (result.isOk()) {
|
|
103097
|
-
return ok$
|
|
103197
|
+
return ok$4({ discriminator, data: result.value });
|
|
103098
103198
|
}
|
|
103099
103199
|
return result;
|
|
103100
103200
|
}
|
|
103101
103201
|
read(cache, input) {
|
|
103102
103202
|
const unionRep = input.normalizedData;
|
|
103103
103203
|
if (typeof unionRep.data !== "object" || unionRep.data === null) {
|
|
103104
|
-
return err$
|
|
103204
|
+
return err$4([
|
|
103105
103205
|
{
|
|
103106
103206
|
type: "unknown",
|
|
103107
103207
|
error: new Error(`Got a non-object value for ${this.typeName} field.`)
|
|
@@ -103111,7 +103211,7 @@
|
|
|
103111
103211
|
const discriminator = unionRep.discriminator;
|
|
103112
103212
|
const concreteRepository = this.possibleTypes[discriminator];
|
|
103113
103213
|
if (!concreteRepository) {
|
|
103114
|
-
return err$
|
|
103214
|
+
return err$4([
|
|
103115
103215
|
{
|
|
103116
103216
|
type: "unknown",
|
|
103117
103217
|
error: new Error(
|
|
@@ -103122,7 +103222,7 @@
|
|
|
103122
103222
|
}
|
|
103123
103223
|
const selectionErr = this.verifyInterfaceFields(input.selections);
|
|
103124
103224
|
if (selectionErr) {
|
|
103125
|
-
return err$
|
|
103225
|
+
return err$4(selectionErr);
|
|
103126
103226
|
}
|
|
103127
103227
|
const denormalizeInput = {
|
|
103128
103228
|
...input,
|
|
@@ -103227,7 +103327,7 @@
|
|
|
103227
103327
|
}
|
|
103228
103328
|
write(cache, input) {
|
|
103229
103329
|
if (typeof input.data !== "object") {
|
|
103230
|
-
return err$
|
|
103330
|
+
return err$4([
|
|
103231
103331
|
{
|
|
103232
103332
|
type: "unknown",
|
|
103233
103333
|
error: new Error(`Got a non-object value for ${this.typeName} field"`)
|
|
@@ -103237,7 +103337,7 @@
|
|
|
103237
103337
|
const discriminator = this.getTypeDiscriminator(input.data, input.selections);
|
|
103238
103338
|
const concreteTypeRepository = this.possibleTypes[discriminator];
|
|
103239
103339
|
if (!concreteTypeRepository) {
|
|
103240
|
-
return err$
|
|
103340
|
+
return err$4([
|
|
103241
103341
|
{
|
|
103242
103342
|
type: "unknown",
|
|
103243
103343
|
error: new Error(
|
|
@@ -103248,7 +103348,7 @@
|
|
|
103248
103348
|
}
|
|
103249
103349
|
const selectionErr = this.verifyUnionFields(input.selections);
|
|
103250
103350
|
if (selectionErr) {
|
|
103251
|
-
return err$
|
|
103351
|
+
return err$4(selectionErr);
|
|
103252
103352
|
}
|
|
103253
103353
|
const normalizeInput = {
|
|
103254
103354
|
...input,
|
|
@@ -103260,14 +103360,14 @@
|
|
|
103260
103360
|
};
|
|
103261
103361
|
const result = concreteTypeRepository.write(cache, normalizeInput);
|
|
103262
103362
|
if (result.isOk()) {
|
|
103263
|
-
return ok$
|
|
103363
|
+
return ok$4({ discriminator, data: result.value });
|
|
103264
103364
|
}
|
|
103265
103365
|
return result;
|
|
103266
103366
|
}
|
|
103267
103367
|
read(cache, input) {
|
|
103268
103368
|
const unionRep = input.normalizedData;
|
|
103269
103369
|
if (typeof unionRep.data !== "object" || unionRep.data === null) {
|
|
103270
|
-
return err$
|
|
103370
|
+
return err$4([
|
|
103271
103371
|
{
|
|
103272
103372
|
type: "unknown",
|
|
103273
103373
|
error: new Error(`Got a non-object value for ${this.typeName} field.`)
|
|
@@ -103277,7 +103377,7 @@
|
|
|
103277
103377
|
const discriminator = unionRep.discriminator;
|
|
103278
103378
|
const concreteRepository = this.possibleTypes[discriminator];
|
|
103279
103379
|
if (!concreteRepository) {
|
|
103280
|
-
return err$
|
|
103380
|
+
return err$4([
|
|
103281
103381
|
{
|
|
103282
103382
|
type: "unknown",
|
|
103283
103383
|
error: new Error(
|
|
@@ -103288,7 +103388,7 @@
|
|
|
103288
103388
|
}
|
|
103289
103389
|
const selectionErr = this.verifyUnionFields(input.selections);
|
|
103290
103390
|
if (selectionErr) {
|
|
103291
|
-
return err$
|
|
103391
|
+
return err$4(selectionErr);
|
|
103292
103392
|
}
|
|
103293
103393
|
const denormalizeInput = {
|
|
103294
103394
|
...input,
|
|
@@ -115041,15 +115141,13 @@ keys: keys$2,
|
|
|
115041
115141
|
const graphql_state_manager_ctor = services.instrumentCommand(buildCommandClass(services.auraGraphQLNormalizedCacheControlCommand), 'graphql_state_manager');
|
|
115042
115142
|
const factory = (config) => {
|
|
115043
115143
|
assertIsValid(config, CONFIG_SCHEMA);
|
|
115044
|
-
|
|
115045
|
-
|
|
115046
|
-
|
|
115047
|
-
|
|
115048
|
-
|
|
115049
|
-
}
|
|
115050
|
-
config = { ...config, query };
|
|
115144
|
+
const validatedConfig = resolveAndValidateGraphQLConfig(config, {
|
|
115145
|
+
acceptedOperations: ['query'],
|
|
115146
|
+
});
|
|
115147
|
+
if (validatedConfig === undefined || validatedConfig.isErr()) {
|
|
115148
|
+
throw new Error('Internal error in GraphQL adapter occurred: Unable to resolve query');
|
|
115051
115149
|
}
|
|
115052
|
-
return new graphql_state_manager_ctor(
|
|
115150
|
+
return new graphql_state_manager_ctor(validatedConfig.value, documentRootType, services);
|
|
115053
115151
|
};
|
|
115054
115152
|
graphql_state_manager = createStateManager(factory, ['query'], ['variables', 'operationName']);
|
|
115055
115153
|
const executeMutation_ctor = services.instrumentCommand(buildCommandClass(services.auraGraphQLNormalizedCacheControlCommand), 'graphqlCommand');
|
|
@@ -115074,7 +115172,7 @@ keys: keys$2,
|
|
|
115074
115172
|
cb(graphql_v1_import, graphql_imperative$1, graphql_imperative_legacy_v1_import, graphql_state_manager, useOneStoreGraphQL);
|
|
115075
115173
|
}
|
|
115076
115174
|
}
|
|
115077
|
-
// version: 1.
|
|
115175
|
+
// version: 1.414.0-3d95b40524
|
|
115078
115176
|
|
|
115079
115177
|
function createFragmentMap(documentNode) {
|
|
115080
115178
|
const fragments = {};
|
|
@@ -144299,7 +144397,7 @@ keys: keys$2,
|
|
|
144299
144397
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
144300
144398
|
instrument: instrument$1,
|
|
144301
144399
|
});
|
|
144302
|
-
// version: 1.
|
|
144400
|
+
// version: 1.414.0-3d95b40524
|
|
144303
144401
|
|
|
144304
144402
|
// On core the unstable adapters are re-exported with different names,
|
|
144305
144403
|
// we want to match them here.
|
|
@@ -144451,7 +144549,7 @@ keys: keys$2,
|
|
|
144451
144549
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
144452
144550
|
graphQLImperative = ldsAdapter;
|
|
144453
144551
|
});
|
|
144454
|
-
// version: 1.
|
|
144552
|
+
// version: 1.414.0-3d95b40524
|
|
144455
144553
|
|
|
144456
144554
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
144457
144555
|
__proto__: null,
|
|
@@ -145250,7 +145348,7 @@ keys: keys$2,
|
|
|
145250
145348
|
function register(r) {
|
|
145251
145349
|
callbacks$1.forEach((callback) => callback(r));
|
|
145252
145350
|
}
|
|
145253
|
-
// version: 1.
|
|
145351
|
+
// version: 1.414.0-ff06871479
|
|
145254
145352
|
|
|
145255
145353
|
/**
|
|
145256
145354
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -146587,4 +146685,4 @@ keys: keys$2,
|
|
|
146587
146685
|
exports.subscribeToAdapter = subscribeToAdapter;
|
|
146588
146686
|
|
|
146589
146687
|
}));
|
|
146590
|
-
// version: 1.
|
|
146688
|
+
// version: 1.414.0-ff06871479
|