@salesforce/lds-worker-api 1.405.0 → 1.410.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.
@@ -4274,7 +4274,7 @@ function withDefaultLuvio(callback) {
4274
4274
  }
4275
4275
  callbacks.push(callback);
4276
4276
  }
4277
- // version: 1.405.0-d370cbed0f
4277
+ // version: 1.410.0-19e0e5d352
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.405.0-d370cbed0f
5321
+ // version: 1.410.0-19e0e5d352
5322
5322
 
5323
5323
  /**
5324
5324
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -25678,6 +25678,18 @@ function typeCheckConfig$u(untrustedConfig) {
25678
25678
  untrustedConfig_fields_object[key] = untrustedConfig_fields_prop;
25679
25679
  }
25680
25680
  }
25681
+ if (ArrayIsArray$1$1(untrustedConfig_fields_prop)) {
25682
+ const untrustedConfig_fields_prop_array = [];
25683
+ for (let i = 0, arrayLength = untrustedConfig_fields_prop.length; i < arrayLength; i++) {
25684
+ const untrustedConfig_fields_prop_item = untrustedConfig_fields_prop[i];
25685
+ if (typeof untrustedConfig_fields_prop_item === 'string') {
25686
+ untrustedConfig_fields_prop_array.push(untrustedConfig_fields_prop_item);
25687
+ }
25688
+ }
25689
+ if (untrustedConfig_fields_object !== undefined) {
25690
+ untrustedConfig_fields_object[key] = untrustedConfig_fields_prop_array;
25691
+ }
25692
+ }
25681
25693
  }
25682
25694
  if (untrustedConfig_fields_object !== undefined && Object.keys(untrustedConfig_fields_object).length >= 0) {
25683
25695
  config.fields = untrustedConfig_fields_object;
@@ -32183,12 +32195,29 @@ function validate$7$1(obj, path = 'RecordInputRepresentation') {
32183
32195
  if (obj_fields_prop_union3_error != null) {
32184
32196
  obj_fields_prop_union3 = obj_fields_prop_union3_error.message;
32185
32197
  }
32186
- if (obj_fields_prop_union0 && obj_fields_prop_union1 && obj_fields_prop_union2 && obj_fields_prop_union3) {
32198
+ let obj_fields_prop_union4 = null;
32199
+ const obj_fields_prop_union4_error = (() => {
32200
+ if (!ArrayIsArray$3(obj_fields_prop)) {
32201
+ return new TypeError('Expected "array" but received "' + typeof obj_fields_prop + '" (at "' + path_fields_prop + '")');
32202
+ }
32203
+ for (let i = 0; i < obj_fields_prop.length; i++) {
32204
+ const obj_fields_prop_item = obj_fields_prop[i];
32205
+ const path_fields_prop_item = path_fields_prop + '[' + i + ']';
32206
+ if (typeof obj_fields_prop_item !== 'string') {
32207
+ return new TypeError('Expected "string" but received "' + typeof obj_fields_prop_item + '" (at "' + path_fields_prop_item + '")');
32208
+ }
32209
+ }
32210
+ })();
32211
+ if (obj_fields_prop_union4_error != null) {
32212
+ obj_fields_prop_union4 = obj_fields_prop_union4_error.message;
32213
+ }
32214
+ if (obj_fields_prop_union0 && obj_fields_prop_union1 && obj_fields_prop_union2 && obj_fields_prop_union3 && obj_fields_prop_union4) {
32187
32215
  let message = 'Object doesn\'t match union (at "' + path_fields_prop + '")';
32188
32216
  message += '\n' + obj_fields_prop_union0.split('\n').map((line) => '\t' + line).join('\n');
32189
32217
  message += '\n' + obj_fields_prop_union1.split('\n').map((line) => '\t' + line).join('\n');
32190
32218
  message += '\n' + obj_fields_prop_union2.split('\n').map((line) => '\t' + line).join('\n');
32191
32219
  message += '\n' + obj_fields_prop_union3.split('\n').map((line) => '\t' + line).join('\n');
32220
+ message += '\n' + obj_fields_prop_union4.split('\n').map((line) => '\t' + line).join('\n');
32192
32221
  return new TypeError(message);
32193
32222
  }
32194
32223
  }
@@ -34340,6 +34369,18 @@ function typeCheckConfig$4$1(untrustedConfig) {
34340
34369
  untrustedConfig_fields_object[key] = untrustedConfig_fields_prop;
34341
34370
  }
34342
34371
  }
34372
+ if (ArrayIsArray$1$1(untrustedConfig_fields_prop)) {
34373
+ const untrustedConfig_fields_prop_array = [];
34374
+ for (let i = 0, arrayLength = untrustedConfig_fields_prop.length; i < arrayLength; i++) {
34375
+ const untrustedConfig_fields_prop_item = untrustedConfig_fields_prop[i];
34376
+ if (typeof untrustedConfig_fields_prop_item === 'string') {
34377
+ untrustedConfig_fields_prop_array.push(untrustedConfig_fields_prop_item);
34378
+ }
34379
+ }
34380
+ if (untrustedConfig_fields_object !== undefined) {
34381
+ untrustedConfig_fields_object[key] = untrustedConfig_fields_prop_array;
34382
+ }
34383
+ }
34343
34384
  }
34344
34385
  if (untrustedConfig_fields_object !== undefined && Object.keys(untrustedConfig_fields_object).length >= 0) {
34345
34386
  config.fields = untrustedConfig_fields_object;
@@ -35432,7 +35473,7 @@ withDefaultLuvio((luvio) => {
35432
35473
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
35433
35474
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
35434
35475
  });
35435
- // version: 1.405.0-13ac2fd8fa
35476
+ // version: 1.410.0-7c228ee347
35436
35477
 
35437
35478
  var allowUpdatesForNonCachedRecords = {
35438
35479
  isOpen: function (e) {
@@ -36056,7 +36097,7 @@ function isNode$2(maybeNode) {
36056
36097
  * An exported enum describing the different kinds of tokens that the
36057
36098
  * lexer emits.
36058
36099
  */
36059
- var TokenKind$3 = Object.freeze({
36100
+ var TokenKind$2 = Object.freeze({
36060
36101
  SOF: '<SOF>',
36061
36102
  EOF: '<EOF>',
36062
36103
  BANG: '!',
@@ -36276,7 +36317,7 @@ function isSource(source) {
36276
36317
  /**
36277
36318
  * The set of allowed directive location values.
36278
36319
  */
36279
- var DirectiveLocation$3 = Object.freeze({
36320
+ var DirectiveLocation$2 = Object.freeze({
36280
36321
  // Request Definitions
36281
36322
  QUERY: 'QUERY',
36282
36323
  MUTATION: 'MUTATION',
@@ -36454,7 +36495,7 @@ var Lexer = /*#__PURE__*/function () {
36454
36495
  * The character offset at which the current line begins.
36455
36496
  */
36456
36497
  function Lexer(source) {
36457
- var startOfFileToken = new Token$1(TokenKind$3.SOF, 0, 0, 0, 0, null);
36498
+ var startOfFileToken = new Token$1(TokenKind$2.SOF, 0, 0, 0, 0, null);
36458
36499
  this.source = source;
36459
36500
  this.lastToken = startOfFileToken;
36460
36501
  this.token = startOfFileToken;
@@ -36482,13 +36523,13 @@ var Lexer = /*#__PURE__*/function () {
36482
36523
  _proto.lookahead = function lookahead() {
36483
36524
  var token = this.token;
36484
36525
 
36485
- if (token.kind !== TokenKind$3.EOF) {
36526
+ if (token.kind !== TokenKind$2.EOF) {
36486
36527
  do {
36487
36528
  var _token$next;
36488
36529
 
36489
36530
  // Note: next is only mutable during parsing, so we cast to allow this.
36490
36531
  token = (_token$next = token.next) !== null && _token$next !== void 0 ? _token$next : token.next = readToken(this, token);
36491
- } while (token.kind === TokenKind$3.COMMENT);
36532
+ } while (token.kind === TokenKind$2.COMMENT);
36492
36533
  }
36493
36534
 
36494
36535
  return token;
@@ -36501,12 +36542,12 @@ var Lexer = /*#__PURE__*/function () {
36501
36542
  */
36502
36543
 
36503
36544
  function isPunctuatorTokenKind(kind) {
36504
- return kind === TokenKind$3.BANG || kind === TokenKind$3.DOLLAR || kind === TokenKind$3.AMP || kind === TokenKind$3.PAREN_L || kind === TokenKind$3.PAREN_R || kind === TokenKind$3.SPREAD || kind === TokenKind$3.COLON || kind === TokenKind$3.EQUALS || kind === TokenKind$3.AT || kind === TokenKind$3.BRACKET_L || kind === TokenKind$3.BRACKET_R || kind === TokenKind$3.BRACE_L || kind === TokenKind$3.PIPE || kind === TokenKind$3.BRACE_R;
36545
+ return kind === TokenKind$2.BANG || kind === TokenKind$2.DOLLAR || kind === TokenKind$2.AMP || kind === TokenKind$2.PAREN_L || kind === TokenKind$2.PAREN_R || kind === TokenKind$2.SPREAD || kind === TokenKind$2.COLON || kind === TokenKind$2.EQUALS || kind === TokenKind$2.AT || kind === TokenKind$2.BRACKET_L || kind === TokenKind$2.BRACKET_R || kind === TokenKind$2.BRACE_L || kind === TokenKind$2.PIPE || kind === TokenKind$2.BRACE_R;
36505
36546
  }
36506
36547
 
36507
36548
  function printCharCode(code) {
36508
36549
  return (// NaN/undefined represents access beyond the end of the file.
36509
- isNaN(code) ? TokenKind$3.EOF : // Trust JSON for ASCII.
36550
+ isNaN(code) ? TokenKind$2.EOF : // Trust JSON for ASCII.
36510
36551
  code < 0x007f ? JSON.stringify(String.fromCharCode(code)) : // Otherwise print the escaped form.
36511
36552
  "\"\\u".concat(('00' + code.toString(16).toUpperCase()).slice(-4), "\"")
36512
36553
  );
@@ -36566,7 +36607,7 @@ function readToken(lexer, prev) {
36566
36607
 
36567
36608
  case 33:
36568
36609
  // !
36569
- return new Token$1(TokenKind$3.BANG, pos, pos + 1, _line, _col, prev);
36610
+ return new Token$1(TokenKind$2.BANG, pos, pos + 1, _line, _col, prev);
36570
36611
 
36571
36612
  case 35:
36572
36613
  // #
@@ -36574,59 +36615,59 @@ function readToken(lexer, prev) {
36574
36615
 
36575
36616
  case 36:
36576
36617
  // $
36577
- return new Token$1(TokenKind$3.DOLLAR, pos, pos + 1, _line, _col, prev);
36618
+ return new Token$1(TokenKind$2.DOLLAR, pos, pos + 1, _line, _col, prev);
36578
36619
 
36579
36620
  case 38:
36580
36621
  // &
36581
- return new Token$1(TokenKind$3.AMP, pos, pos + 1, _line, _col, prev);
36622
+ return new Token$1(TokenKind$2.AMP, pos, pos + 1, _line, _col, prev);
36582
36623
 
36583
36624
  case 40:
36584
36625
  // (
36585
- return new Token$1(TokenKind$3.PAREN_L, pos, pos + 1, _line, _col, prev);
36626
+ return new Token$1(TokenKind$2.PAREN_L, pos, pos + 1, _line, _col, prev);
36586
36627
 
36587
36628
  case 41:
36588
36629
  // )
36589
- return new Token$1(TokenKind$3.PAREN_R, pos, pos + 1, _line, _col, prev);
36630
+ return new Token$1(TokenKind$2.PAREN_R, pos, pos + 1, _line, _col, prev);
36590
36631
 
36591
36632
  case 46:
36592
36633
  // .
36593
36634
  if (body.charCodeAt(pos + 1) === 46 && body.charCodeAt(pos + 2) === 46) {
36594
- return new Token$1(TokenKind$3.SPREAD, pos, pos + 3, _line, _col, prev);
36635
+ return new Token$1(TokenKind$2.SPREAD, pos, pos + 3, _line, _col, prev);
36595
36636
  }
36596
36637
 
36597
36638
  break;
36598
36639
 
36599
36640
  case 58:
36600
36641
  // :
36601
- return new Token$1(TokenKind$3.COLON, pos, pos + 1, _line, _col, prev);
36642
+ return new Token$1(TokenKind$2.COLON, pos, pos + 1, _line, _col, prev);
36602
36643
 
36603
36644
  case 61:
36604
36645
  // =
36605
- return new Token$1(TokenKind$3.EQUALS, pos, pos + 1, _line, _col, prev);
36646
+ return new Token$1(TokenKind$2.EQUALS, pos, pos + 1, _line, _col, prev);
36606
36647
 
36607
36648
  case 64:
36608
36649
  // @
36609
- return new Token$1(TokenKind$3.AT, pos, pos + 1, _line, _col, prev);
36650
+ return new Token$1(TokenKind$2.AT, pos, pos + 1, _line, _col, prev);
36610
36651
 
36611
36652
  case 91:
36612
36653
  // [
36613
- return new Token$1(TokenKind$3.BRACKET_L, pos, pos + 1, _line, _col, prev);
36654
+ return new Token$1(TokenKind$2.BRACKET_L, pos, pos + 1, _line, _col, prev);
36614
36655
 
36615
36656
  case 93:
36616
36657
  // ]
36617
- return new Token$1(TokenKind$3.BRACKET_R, pos, pos + 1, _line, _col, prev);
36658
+ return new Token$1(TokenKind$2.BRACKET_R, pos, pos + 1, _line, _col, prev);
36618
36659
 
36619
36660
  case 123:
36620
36661
  // {
36621
- return new Token$1(TokenKind$3.BRACE_L, pos, pos + 1, _line, _col, prev);
36662
+ return new Token$1(TokenKind$2.BRACE_L, pos, pos + 1, _line, _col, prev);
36622
36663
 
36623
36664
  case 124:
36624
36665
  // |
36625
- return new Token$1(TokenKind$3.PIPE, pos, pos + 1, _line, _col, prev);
36666
+ return new Token$1(TokenKind$2.PIPE, pos, pos + 1, _line, _col, prev);
36626
36667
 
36627
36668
  case 125:
36628
36669
  // }
36629
- return new Token$1(TokenKind$3.BRACE_R, pos, pos + 1, _line, _col, prev);
36670
+ return new Token$1(TokenKind$2.BRACE_R, pos, pos + 1, _line, _col, prev);
36630
36671
 
36631
36672
  case 34:
36632
36673
  // "
@@ -36774,7 +36815,7 @@ function readToken(lexer, prev) {
36774
36815
 
36775
36816
  var line = lexer.line;
36776
36817
  var col = 1 + pos - lexer.lineStart;
36777
- return new Token$1(TokenKind$3.EOF, bodyLength, bodyLength, line, col, prev);
36818
+ return new Token$1(TokenKind$2.EOF, bodyLength, bodyLength, line, col, prev);
36778
36819
  }
36779
36820
  /**
36780
36821
  * Report a message that an unexpected character was encountered.
@@ -36810,7 +36851,7 @@ function readComment(source, start, line, col, prev) {
36810
36851
  } while (!isNaN(code) && ( // SourceCharacter but not LineTerminator
36811
36852
  code > 0x001f || code === 0x0009));
36812
36853
 
36813
- return new Token$1(TokenKind$3.COMMENT, start, position, line, col, prev, body.slice(start + 1, position));
36854
+ return new Token$1(TokenKind$2.COMMENT, start, position, line, col, prev, body.slice(start + 1, position));
36814
36855
  }
36815
36856
  /**
36816
36857
  * Reads a number token from the source file, either a float
@@ -36871,7 +36912,7 @@ function readNumber(source, start, firstCode, line, col, prev) {
36871
36912
  throw syntaxError(source, position, "Invalid number, expected digit but got: ".concat(printCharCode(code), "."));
36872
36913
  }
36873
36914
 
36874
- return new Token$1(isFloat ? TokenKind$3.FLOAT : TokenKind$3.INT, start, position, line, col, prev, body.slice(start, position));
36915
+ return new Token$1(isFloat ? TokenKind$2.FLOAT : TokenKind$2.INT, start, position, line, col, prev, body.slice(start, position));
36875
36916
  }
36876
36917
  /**
36877
36918
  * Returns the new position in the source after reading digits.
@@ -36914,7 +36955,7 @@ function readString(source, start, line, col, prev) {
36914
36955
  // Closing Quote (")
36915
36956
  if (code === 34) {
36916
36957
  value += body.slice(chunkStart, position);
36917
- return new Token$1(TokenKind$3.STRING, start, position + 1, line, col, prev, value);
36958
+ return new Token$1(TokenKind$2.STRING, start, position + 1, line, col, prev, value);
36918
36959
  } // SourceCharacter
36919
36960
 
36920
36961
 
@@ -37006,7 +37047,7 @@ function readBlockString(source, start, line, col, prev, lexer) {
37006
37047
  // Closing Triple-Quote (""")
37007
37048
  if (code === 34 && body.charCodeAt(position + 1) === 34 && body.charCodeAt(position + 2) === 34) {
37008
37049
  rawValue += body.slice(chunkStart, position);
37009
- return new Token$1(TokenKind$3.BLOCK_STRING, start, position + 3, line, col, prev, dedentBlockStringValue(rawValue));
37050
+ return new Token$1(TokenKind$2.BLOCK_STRING, start, position + 3, line, col, prev, dedentBlockStringValue(rawValue));
37010
37051
  } // SourceCharacter
37011
37052
 
37012
37053
 
@@ -37093,7 +37134,7 @@ function readName(source, start, line, col, prev) {
37093
37134
  ++position;
37094
37135
  }
37095
37136
 
37096
- return new Token$1(TokenKind$3.NAME, start, position, line, col, prev, body.slice(start, position));
37137
+ return new Token$1(TokenKind$2.NAME, start, position, line, col, prev, body.slice(start, position));
37097
37138
  } // _ A-Z a-z
37098
37139
 
37099
37140
 
@@ -37139,7 +37180,7 @@ var Parser = /*#__PURE__*/function () {
37139
37180
  var _proto = Parser.prototype;
37140
37181
 
37141
37182
  _proto.parseName = function parseName() {
37142
- var token = this.expectToken(TokenKind$3.NAME);
37183
+ var token = this.expectToken(TokenKind$2.NAME);
37143
37184
  return {
37144
37185
  kind: Kind$3.NAME,
37145
37186
  value: token.value,
@@ -37156,7 +37197,7 @@ var Parser = /*#__PURE__*/function () {
37156
37197
  var start = this._lexer.token;
37157
37198
  return {
37158
37199
  kind: Kind$3.DOCUMENT,
37159
- definitions: this.many(TokenKind$3.SOF, this.parseDefinition, TokenKind$3.EOF),
37200
+ definitions: this.many(TokenKind$2.SOF, this.parseDefinition, TokenKind$2.EOF),
37160
37201
  loc: this.loc(start)
37161
37202
  };
37162
37203
  }
@@ -37173,7 +37214,7 @@ var Parser = /*#__PURE__*/function () {
37173
37214
  ;
37174
37215
 
37175
37216
  _proto.parseDefinition = function parseDefinition() {
37176
- if (this.peek(TokenKind$3.NAME)) {
37217
+ if (this.peek(TokenKind$2.NAME)) {
37177
37218
  switch (this._lexer.token.value) {
37178
37219
  case 'query':
37179
37220
  case 'mutation':
@@ -37196,7 +37237,7 @@ var Parser = /*#__PURE__*/function () {
37196
37237
  case 'extend':
37197
37238
  return this.parseTypeSystemExtension();
37198
37239
  }
37199
- } else if (this.peek(TokenKind$3.BRACE_L)) {
37240
+ } else if (this.peek(TokenKind$2.BRACE_L)) {
37200
37241
  return this.parseOperationDefinition();
37201
37242
  } else if (this.peekDescription()) {
37202
37243
  return this.parseTypeSystemDefinition();
@@ -37215,7 +37256,7 @@ var Parser = /*#__PURE__*/function () {
37215
37256
  _proto.parseOperationDefinition = function parseOperationDefinition() {
37216
37257
  var start = this._lexer.token;
37217
37258
 
37218
- if (this.peek(TokenKind$3.BRACE_L)) {
37259
+ if (this.peek(TokenKind$2.BRACE_L)) {
37219
37260
  return {
37220
37261
  kind: Kind$3.OPERATION_DEFINITION,
37221
37262
  operation: 'query',
@@ -37230,7 +37271,7 @@ var Parser = /*#__PURE__*/function () {
37230
37271
  var operation = this.parseOperationType();
37231
37272
  var name;
37232
37273
 
37233
- if (this.peek(TokenKind$3.NAME)) {
37274
+ if (this.peek(TokenKind$2.NAME)) {
37234
37275
  name = this.parseName();
37235
37276
  }
37236
37277
 
@@ -37250,7 +37291,7 @@ var Parser = /*#__PURE__*/function () {
37250
37291
  ;
37251
37292
 
37252
37293
  _proto.parseOperationType = function parseOperationType() {
37253
- var operationToken = this.expectToken(TokenKind$3.NAME);
37294
+ var operationToken = this.expectToken(TokenKind$2.NAME);
37254
37295
 
37255
37296
  switch (operationToken.value) {
37256
37297
  case 'query':
@@ -37271,7 +37312,7 @@ var Parser = /*#__PURE__*/function () {
37271
37312
  ;
37272
37313
 
37273
37314
  _proto.parseVariableDefinitions = function parseVariableDefinitions() {
37274
- return this.optionalMany(TokenKind$3.PAREN_L, this.parseVariableDefinition, TokenKind$3.PAREN_R);
37315
+ return this.optionalMany(TokenKind$2.PAREN_L, this.parseVariableDefinition, TokenKind$2.PAREN_R);
37275
37316
  }
37276
37317
  /**
37277
37318
  * VariableDefinition : Variable : Type DefaultValue? Directives[Const]?
@@ -37283,8 +37324,8 @@ var Parser = /*#__PURE__*/function () {
37283
37324
  return {
37284
37325
  kind: Kind$3.VARIABLE_DEFINITION,
37285
37326
  variable: this.parseVariable(),
37286
- type: (this.expectToken(TokenKind$3.COLON), this.parseTypeReference()),
37287
- defaultValue: this.expectOptionalToken(TokenKind$3.EQUALS) ? this.parseValueLiteral(true) : undefined,
37327
+ type: (this.expectToken(TokenKind$2.COLON), this.parseTypeReference()),
37328
+ defaultValue: this.expectOptionalToken(TokenKind$2.EQUALS) ? this.parseValueLiteral(true) : undefined,
37288
37329
  directives: this.parseDirectives(true),
37289
37330
  loc: this.loc(start)
37290
37331
  };
@@ -37296,7 +37337,7 @@ var Parser = /*#__PURE__*/function () {
37296
37337
 
37297
37338
  _proto.parseVariable = function parseVariable() {
37298
37339
  var start = this._lexer.token;
37299
- this.expectToken(TokenKind$3.DOLLAR);
37340
+ this.expectToken(TokenKind$2.DOLLAR);
37300
37341
  return {
37301
37342
  kind: Kind$3.VARIABLE,
37302
37343
  name: this.parseName(),
@@ -37312,7 +37353,7 @@ var Parser = /*#__PURE__*/function () {
37312
37353
  var start = this._lexer.token;
37313
37354
  return {
37314
37355
  kind: Kind$3.SELECTION_SET,
37315
- selections: this.many(TokenKind$3.BRACE_L, this.parseSelection, TokenKind$3.BRACE_R),
37356
+ selections: this.many(TokenKind$2.BRACE_L, this.parseSelection, TokenKind$2.BRACE_R),
37316
37357
  loc: this.loc(start)
37317
37358
  };
37318
37359
  }
@@ -37325,7 +37366,7 @@ var Parser = /*#__PURE__*/function () {
37325
37366
  ;
37326
37367
 
37327
37368
  _proto.parseSelection = function parseSelection() {
37328
- return this.peek(TokenKind$3.SPREAD) ? this.parseFragment() : this.parseField();
37369
+ return this.peek(TokenKind$2.SPREAD) ? this.parseFragment() : this.parseField();
37329
37370
  }
37330
37371
  /**
37331
37372
  * Field : Alias? Name Arguments? Directives? SelectionSet?
@@ -37340,7 +37381,7 @@ var Parser = /*#__PURE__*/function () {
37340
37381
  var alias;
37341
37382
  var name;
37342
37383
 
37343
- if (this.expectOptionalToken(TokenKind$3.COLON)) {
37384
+ if (this.expectOptionalToken(TokenKind$2.COLON)) {
37344
37385
  alias = nameOrAlias;
37345
37386
  name = this.parseName();
37346
37387
  } else {
@@ -37353,7 +37394,7 @@ var Parser = /*#__PURE__*/function () {
37353
37394
  name: name,
37354
37395
  arguments: this.parseArguments(false),
37355
37396
  directives: this.parseDirectives(false),
37356
- selectionSet: this.peek(TokenKind$3.BRACE_L) ? this.parseSelectionSet() : undefined,
37397
+ selectionSet: this.peek(TokenKind$2.BRACE_L) ? this.parseSelectionSet() : undefined,
37357
37398
  loc: this.loc(start)
37358
37399
  };
37359
37400
  }
@@ -37364,7 +37405,7 @@ var Parser = /*#__PURE__*/function () {
37364
37405
 
37365
37406
  _proto.parseArguments = function parseArguments(isConst) {
37366
37407
  var item = isConst ? this.parseConstArgument : this.parseArgument;
37367
- return this.optionalMany(TokenKind$3.PAREN_L, item, TokenKind$3.PAREN_R);
37408
+ return this.optionalMany(TokenKind$2.PAREN_L, item, TokenKind$2.PAREN_R);
37368
37409
  }
37369
37410
  /**
37370
37411
  * Argument[Const] : Name : Value[?Const]
@@ -37374,7 +37415,7 @@ var Parser = /*#__PURE__*/function () {
37374
37415
  _proto.parseArgument = function parseArgument() {
37375
37416
  var start = this._lexer.token;
37376
37417
  var name = this.parseName();
37377
- this.expectToken(TokenKind$3.COLON);
37418
+ this.expectToken(TokenKind$2.COLON);
37378
37419
  return {
37379
37420
  kind: Kind$3.ARGUMENT,
37380
37421
  name: name,
@@ -37388,7 +37429,7 @@ var Parser = /*#__PURE__*/function () {
37388
37429
  return {
37389
37430
  kind: Kind$3.ARGUMENT,
37390
37431
  name: this.parseName(),
37391
- value: (this.expectToken(TokenKind$3.COLON), this.parseValueLiteral(true)),
37432
+ value: (this.expectToken(TokenKind$2.COLON), this.parseValueLiteral(true)),
37392
37433
  loc: this.loc(start)
37393
37434
  };
37394
37435
  } // Implements the parsing rules in the Fragments section.
@@ -37404,10 +37445,10 @@ var Parser = /*#__PURE__*/function () {
37404
37445
 
37405
37446
  _proto.parseFragment = function parseFragment() {
37406
37447
  var start = this._lexer.token;
37407
- this.expectToken(TokenKind$3.SPREAD);
37448
+ this.expectToken(TokenKind$2.SPREAD);
37408
37449
  var hasTypeCondition = this.expectOptionalKeyword('on');
37409
37450
 
37410
- if (!hasTypeCondition && this.peek(TokenKind$3.NAME)) {
37451
+ if (!hasTypeCondition && this.peek(TokenKind$2.NAME)) {
37411
37452
  return {
37412
37453
  kind: Kind$3.FRAGMENT_SPREAD,
37413
37454
  name: this.parseFragmentName(),
@@ -37498,13 +37539,13 @@ var Parser = /*#__PURE__*/function () {
37498
37539
  var token = this._lexer.token;
37499
37540
 
37500
37541
  switch (token.kind) {
37501
- case TokenKind$3.BRACKET_L:
37542
+ case TokenKind$2.BRACKET_L:
37502
37543
  return this.parseList(isConst);
37503
37544
 
37504
- case TokenKind$3.BRACE_L:
37545
+ case TokenKind$2.BRACE_L:
37505
37546
  return this.parseObject(isConst);
37506
37547
 
37507
- case TokenKind$3.INT:
37548
+ case TokenKind$2.INT:
37508
37549
  this._lexer.advance();
37509
37550
 
37510
37551
  return {
@@ -37513,7 +37554,7 @@ var Parser = /*#__PURE__*/function () {
37513
37554
  loc: this.loc(token)
37514
37555
  };
37515
37556
 
37516
- case TokenKind$3.FLOAT:
37557
+ case TokenKind$2.FLOAT:
37517
37558
  this._lexer.advance();
37518
37559
 
37519
37560
  return {
@@ -37522,11 +37563,11 @@ var Parser = /*#__PURE__*/function () {
37522
37563
  loc: this.loc(token)
37523
37564
  };
37524
37565
 
37525
- case TokenKind$3.STRING:
37526
- case TokenKind$3.BLOCK_STRING:
37566
+ case TokenKind$2.STRING:
37567
+ case TokenKind$2.BLOCK_STRING:
37527
37568
  return this.parseStringLiteral();
37528
37569
 
37529
- case TokenKind$3.NAME:
37570
+ case TokenKind$2.NAME:
37530
37571
  this._lexer.advance();
37531
37572
 
37532
37573
  switch (token.value) {
@@ -37558,7 +37599,7 @@ var Parser = /*#__PURE__*/function () {
37558
37599
  };
37559
37600
  }
37560
37601
 
37561
- case TokenKind$3.DOLLAR:
37602
+ case TokenKind$2.DOLLAR:
37562
37603
  if (!isConst) {
37563
37604
  return this.parseVariable();
37564
37605
  }
@@ -37577,7 +37618,7 @@ var Parser = /*#__PURE__*/function () {
37577
37618
  return {
37578
37619
  kind: Kind$3.STRING,
37579
37620
  value: token.value,
37580
- block: token.kind === TokenKind$3.BLOCK_STRING,
37621
+ block: token.kind === TokenKind$2.BLOCK_STRING,
37581
37622
  loc: this.loc(token)
37582
37623
  };
37583
37624
  }
@@ -37599,7 +37640,7 @@ var Parser = /*#__PURE__*/function () {
37599
37640
 
37600
37641
  return {
37601
37642
  kind: Kind$3.LIST,
37602
- values: this.any(TokenKind$3.BRACKET_L, item, TokenKind$3.BRACKET_R),
37643
+ values: this.any(TokenKind$2.BRACKET_L, item, TokenKind$2.BRACKET_R),
37603
37644
  loc: this.loc(start)
37604
37645
  };
37605
37646
  }
@@ -37621,7 +37662,7 @@ var Parser = /*#__PURE__*/function () {
37621
37662
 
37622
37663
  return {
37623
37664
  kind: Kind$3.OBJECT,
37624
- fields: this.any(TokenKind$3.BRACE_L, item, TokenKind$3.BRACE_R),
37665
+ fields: this.any(TokenKind$2.BRACE_L, item, TokenKind$2.BRACE_R),
37625
37666
  loc: this.loc(start)
37626
37667
  };
37627
37668
  }
@@ -37633,7 +37674,7 @@ var Parser = /*#__PURE__*/function () {
37633
37674
  _proto.parseObjectField = function parseObjectField(isConst) {
37634
37675
  var start = this._lexer.token;
37635
37676
  var name = this.parseName();
37636
- this.expectToken(TokenKind$3.COLON);
37677
+ this.expectToken(TokenKind$2.COLON);
37637
37678
  return {
37638
37679
  kind: Kind$3.OBJECT_FIELD,
37639
37680
  name: name,
@@ -37650,7 +37691,7 @@ var Parser = /*#__PURE__*/function () {
37650
37691
  _proto.parseDirectives = function parseDirectives(isConst) {
37651
37692
  var directives = [];
37652
37693
 
37653
- while (this.peek(TokenKind$3.AT)) {
37694
+ while (this.peek(TokenKind$2.AT)) {
37654
37695
  directives.push(this.parseDirective(isConst));
37655
37696
  }
37656
37697
 
@@ -37663,7 +37704,7 @@ var Parser = /*#__PURE__*/function () {
37663
37704
 
37664
37705
  _proto.parseDirective = function parseDirective(isConst) {
37665
37706
  var start = this._lexer.token;
37666
- this.expectToken(TokenKind$3.AT);
37707
+ this.expectToken(TokenKind$2.AT);
37667
37708
  return {
37668
37709
  kind: Kind$3.DIRECTIVE,
37669
37710
  name: this.parseName(),
@@ -37684,9 +37725,9 @@ var Parser = /*#__PURE__*/function () {
37684
37725
  var start = this._lexer.token;
37685
37726
  var type;
37686
37727
 
37687
- if (this.expectOptionalToken(TokenKind$3.BRACKET_L)) {
37728
+ if (this.expectOptionalToken(TokenKind$2.BRACKET_L)) {
37688
37729
  type = this.parseTypeReference();
37689
- this.expectToken(TokenKind$3.BRACKET_R);
37730
+ this.expectToken(TokenKind$2.BRACKET_R);
37690
37731
  type = {
37691
37732
  kind: Kind$3.LIST_TYPE,
37692
37733
  type: type,
@@ -37696,7 +37737,7 @@ var Parser = /*#__PURE__*/function () {
37696
37737
  type = this.parseNamedType();
37697
37738
  }
37698
37739
 
37699
- if (this.expectOptionalToken(TokenKind$3.BANG)) {
37740
+ if (this.expectOptionalToken(TokenKind$2.BANG)) {
37700
37741
  return {
37701
37742
  kind: Kind$3.NON_NULL_TYPE,
37702
37743
  type: type,
@@ -37740,7 +37781,7 @@ var Parser = /*#__PURE__*/function () {
37740
37781
  // Many definitions begin with a description and require a lookahead.
37741
37782
  var keywordToken = this.peekDescription() ? this._lexer.lookahead() : this._lexer.token;
37742
37783
 
37743
- if (keywordToken.kind === TokenKind$3.NAME) {
37784
+ if (keywordToken.kind === TokenKind$2.NAME) {
37744
37785
  switch (keywordToken.value) {
37745
37786
  case 'schema':
37746
37787
  return this.parseSchemaDefinition();
@@ -37772,7 +37813,7 @@ var Parser = /*#__PURE__*/function () {
37772
37813
  };
37773
37814
 
37774
37815
  _proto.peekDescription = function peekDescription() {
37775
- return this.peek(TokenKind$3.STRING) || this.peek(TokenKind$3.BLOCK_STRING);
37816
+ return this.peek(TokenKind$2.STRING) || this.peek(TokenKind$2.BLOCK_STRING);
37776
37817
  }
37777
37818
  /**
37778
37819
  * Description : StringValue
@@ -37794,7 +37835,7 @@ var Parser = /*#__PURE__*/function () {
37794
37835
  var description = this.parseDescription();
37795
37836
  this.expectKeyword('schema');
37796
37837
  var directives = this.parseDirectives(true);
37797
- var operationTypes = this.many(TokenKind$3.BRACE_L, this.parseOperationTypeDefinition, TokenKind$3.BRACE_R);
37838
+ var operationTypes = this.many(TokenKind$2.BRACE_L, this.parseOperationTypeDefinition, TokenKind$2.BRACE_R);
37798
37839
  return {
37799
37840
  kind: Kind$3.SCHEMA_DEFINITION,
37800
37841
  description: description,
@@ -37811,7 +37852,7 @@ var Parser = /*#__PURE__*/function () {
37811
37852
  _proto.parseOperationTypeDefinition = function parseOperationTypeDefinition() {
37812
37853
  var start = this._lexer.token;
37813
37854
  var operation = this.parseOperationType();
37814
- this.expectToken(TokenKind$3.COLON);
37855
+ this.expectToken(TokenKind$2.COLON);
37815
37856
  var type = this.parseNamedType();
37816
37857
  return {
37817
37858
  kind: Kind$3.OPERATION_TYPE_DEFINITION,
@@ -37881,16 +37922,16 @@ var Parser = /*#__PURE__*/function () {
37881
37922
  if (((_this$_options2 = this._options) === null || _this$_options2 === void 0 ? void 0 : _this$_options2.allowLegacySDLImplementsInterfaces) === true) {
37882
37923
  var types = []; // Optional leading ampersand
37883
37924
 
37884
- this.expectOptionalToken(TokenKind$3.AMP);
37925
+ this.expectOptionalToken(TokenKind$2.AMP);
37885
37926
 
37886
37927
  do {
37887
37928
  types.push(this.parseNamedType());
37888
- } while (this.expectOptionalToken(TokenKind$3.AMP) || this.peek(TokenKind$3.NAME));
37929
+ } while (this.expectOptionalToken(TokenKind$2.AMP) || this.peek(TokenKind$2.NAME));
37889
37930
 
37890
37931
  return types;
37891
37932
  }
37892
37933
 
37893
- return this.delimitedMany(TokenKind$3.AMP, this.parseNamedType);
37934
+ return this.delimitedMany(TokenKind$2.AMP, this.parseNamedType);
37894
37935
  }
37895
37936
  /**
37896
37937
  * FieldsDefinition : { FieldDefinition+ }
@@ -37901,7 +37942,7 @@ var Parser = /*#__PURE__*/function () {
37901
37942
  var _this$_options3;
37902
37943
 
37903
37944
  // Legacy support for the SDL?
37904
- if (((_this$_options3 = this._options) === null || _this$_options3 === void 0 ? void 0 : _this$_options3.allowLegacySDLEmptyFields) === true && this.peek(TokenKind$3.BRACE_L) && this._lexer.lookahead().kind === TokenKind$3.BRACE_R) {
37945
+ if (((_this$_options3 = this._options) === null || _this$_options3 === void 0 ? void 0 : _this$_options3.allowLegacySDLEmptyFields) === true && this.peek(TokenKind$2.BRACE_L) && this._lexer.lookahead().kind === TokenKind$2.BRACE_R) {
37905
37946
  this._lexer.advance();
37906
37947
 
37907
37948
  this._lexer.advance();
@@ -37909,7 +37950,7 @@ var Parser = /*#__PURE__*/function () {
37909
37950
  return [];
37910
37951
  }
37911
37952
 
37912
- return this.optionalMany(TokenKind$3.BRACE_L, this.parseFieldDefinition, TokenKind$3.BRACE_R);
37953
+ return this.optionalMany(TokenKind$2.BRACE_L, this.parseFieldDefinition, TokenKind$2.BRACE_R);
37913
37954
  }
37914
37955
  /**
37915
37956
  * FieldDefinition :
@@ -37922,7 +37963,7 @@ var Parser = /*#__PURE__*/function () {
37922
37963
  var description = this.parseDescription();
37923
37964
  var name = this.parseName();
37924
37965
  var args = this.parseArgumentDefs();
37925
- this.expectToken(TokenKind$3.COLON);
37966
+ this.expectToken(TokenKind$2.COLON);
37926
37967
  var type = this.parseTypeReference();
37927
37968
  var directives = this.parseDirectives(true);
37928
37969
  return {
@@ -37941,7 +37982,7 @@ var Parser = /*#__PURE__*/function () {
37941
37982
  ;
37942
37983
 
37943
37984
  _proto.parseArgumentDefs = function parseArgumentDefs() {
37944
- return this.optionalMany(TokenKind$3.PAREN_L, this.parseInputValueDef, TokenKind$3.PAREN_R);
37985
+ return this.optionalMany(TokenKind$2.PAREN_L, this.parseInputValueDef, TokenKind$2.PAREN_R);
37945
37986
  }
37946
37987
  /**
37947
37988
  * InputValueDefinition :
@@ -37953,11 +37994,11 @@ var Parser = /*#__PURE__*/function () {
37953
37994
  var start = this._lexer.token;
37954
37995
  var description = this.parseDescription();
37955
37996
  var name = this.parseName();
37956
- this.expectToken(TokenKind$3.COLON);
37997
+ this.expectToken(TokenKind$2.COLON);
37957
37998
  var type = this.parseTypeReference();
37958
37999
  var defaultValue;
37959
38000
 
37960
- if (this.expectOptionalToken(TokenKind$3.EQUALS)) {
38001
+ if (this.expectOptionalToken(TokenKind$2.EQUALS)) {
37961
38002
  defaultValue = this.parseValueLiteral(true);
37962
38003
  }
37963
38004
 
@@ -38026,7 +38067,7 @@ var Parser = /*#__PURE__*/function () {
38026
38067
  ;
38027
38068
 
38028
38069
  _proto.parseUnionMemberTypes = function parseUnionMemberTypes() {
38029
- return this.expectOptionalToken(TokenKind$3.EQUALS) ? this.delimitedMany(TokenKind$3.PIPE, this.parseNamedType) : [];
38070
+ return this.expectOptionalToken(TokenKind$2.EQUALS) ? this.delimitedMany(TokenKind$2.PIPE, this.parseNamedType) : [];
38030
38071
  }
38031
38072
  /**
38032
38073
  * EnumTypeDefinition :
@@ -38056,7 +38097,7 @@ var Parser = /*#__PURE__*/function () {
38056
38097
  ;
38057
38098
 
38058
38099
  _proto.parseEnumValuesDefinition = function parseEnumValuesDefinition() {
38059
- return this.optionalMany(TokenKind$3.BRACE_L, this.parseEnumValueDefinition, TokenKind$3.BRACE_R);
38100
+ return this.optionalMany(TokenKind$2.BRACE_L, this.parseEnumValueDefinition, TokenKind$2.BRACE_R);
38060
38101
  }
38061
38102
  /**
38062
38103
  * EnumValueDefinition : Description? EnumValue Directives[Const]?
@@ -38106,7 +38147,7 @@ var Parser = /*#__PURE__*/function () {
38106
38147
  ;
38107
38148
 
38108
38149
  _proto.parseInputFieldsDefinition = function parseInputFieldsDefinition() {
38109
- return this.optionalMany(TokenKind$3.BRACE_L, this.parseInputValueDef, TokenKind$3.BRACE_R);
38150
+ return this.optionalMany(TokenKind$2.BRACE_L, this.parseInputValueDef, TokenKind$2.BRACE_R);
38110
38151
  }
38111
38152
  /**
38112
38153
  * TypeSystemExtension :
@@ -38126,7 +38167,7 @@ var Parser = /*#__PURE__*/function () {
38126
38167
  _proto.parseTypeSystemExtension = function parseTypeSystemExtension() {
38127
38168
  var keywordToken = this._lexer.lookahead();
38128
38169
 
38129
- if (keywordToken.kind === TokenKind$3.NAME) {
38170
+ if (keywordToken.kind === TokenKind$2.NAME) {
38130
38171
  switch (keywordToken.value) {
38131
38172
  case 'schema':
38132
38173
  return this.parseSchemaExtension();
@@ -38165,7 +38206,7 @@ var Parser = /*#__PURE__*/function () {
38165
38206
  this.expectKeyword('extend');
38166
38207
  this.expectKeyword('schema');
38167
38208
  var directives = this.parseDirectives(true);
38168
- var operationTypes = this.optionalMany(TokenKind$3.BRACE_L, this.parseOperationTypeDefinition, TokenKind$3.BRACE_R);
38209
+ var operationTypes = this.optionalMany(TokenKind$2.BRACE_L, this.parseOperationTypeDefinition, TokenKind$2.BRACE_R);
38169
38210
 
38170
38211
  if (directives.length === 0 && operationTypes.length === 0) {
38171
38212
  throw this.unexpected();
@@ -38353,7 +38394,7 @@ var Parser = /*#__PURE__*/function () {
38353
38394
  var start = this._lexer.token;
38354
38395
  var description = this.parseDescription();
38355
38396
  this.expectKeyword('directive');
38356
- this.expectToken(TokenKind$3.AT);
38397
+ this.expectToken(TokenKind$2.AT);
38357
38398
  var name = this.parseName();
38358
38399
  var args = this.parseArgumentDefs();
38359
38400
  var repeatable = this.expectOptionalKeyword('repeatable');
@@ -38377,7 +38418,7 @@ var Parser = /*#__PURE__*/function () {
38377
38418
  ;
38378
38419
 
38379
38420
  _proto.parseDirectiveLocations = function parseDirectiveLocations() {
38380
- return this.delimitedMany(TokenKind$3.PIPE, this.parseDirectiveLocation);
38421
+ return this.delimitedMany(TokenKind$2.PIPE, this.parseDirectiveLocation);
38381
38422
  }
38382
38423
  /*
38383
38424
  * DirectiveLocation :
@@ -38412,7 +38453,7 @@ var Parser = /*#__PURE__*/function () {
38412
38453
  var start = this._lexer.token;
38413
38454
  var name = this.parseName();
38414
38455
 
38415
- if (DirectiveLocation$3[name.value] !== undefined) {
38456
+ if (DirectiveLocation$2[name.value] !== undefined) {
38416
38457
  return name;
38417
38458
  }
38418
38459
 
@@ -38482,7 +38523,7 @@ var Parser = /*#__PURE__*/function () {
38482
38523
  _proto.expectKeyword = function expectKeyword(value) {
38483
38524
  var token = this._lexer.token;
38484
38525
 
38485
- if (token.kind === TokenKind$3.NAME && token.value === value) {
38526
+ if (token.kind === TokenKind$2.NAME && token.value === value) {
38486
38527
  this._lexer.advance();
38487
38528
  } else {
38488
38529
  throw syntaxError(this._lexer.source, token.start, "Expected \"".concat(value, "\", found ").concat(getTokenDesc(token), "."));
@@ -38497,7 +38538,7 @@ var Parser = /*#__PURE__*/function () {
38497
38538
  _proto.expectOptionalKeyword = function expectOptionalKeyword(value) {
38498
38539
  var token = this._lexer.token;
38499
38540
 
38500
- if (token.kind === TokenKind$3.NAME && token.value === value) {
38541
+ if (token.kind === TokenKind$2.NAME && token.value === value) {
38501
38542
  this._lexer.advance();
38502
38543
 
38503
38544
  return true;
@@ -41436,79 +41477,79 @@ var __DirectiveLocation = new GraphQLEnumType({
41436
41477
  description: 'A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.',
41437
41478
  values: {
41438
41479
  QUERY: {
41439
- value: DirectiveLocation$3.QUERY,
41480
+ value: DirectiveLocation$2.QUERY,
41440
41481
  description: 'Location adjacent to a query operation.'
41441
41482
  },
41442
41483
  MUTATION: {
41443
- value: DirectiveLocation$3.MUTATION,
41484
+ value: DirectiveLocation$2.MUTATION,
41444
41485
  description: 'Location adjacent to a mutation operation.'
41445
41486
  },
41446
41487
  SUBSCRIPTION: {
41447
- value: DirectiveLocation$3.SUBSCRIPTION,
41488
+ value: DirectiveLocation$2.SUBSCRIPTION,
41448
41489
  description: 'Location adjacent to a subscription operation.'
41449
41490
  },
41450
41491
  FIELD: {
41451
- value: DirectiveLocation$3.FIELD,
41492
+ value: DirectiveLocation$2.FIELD,
41452
41493
  description: 'Location adjacent to a field.'
41453
41494
  },
41454
41495
  FRAGMENT_DEFINITION: {
41455
- value: DirectiveLocation$3.FRAGMENT_DEFINITION,
41496
+ value: DirectiveLocation$2.FRAGMENT_DEFINITION,
41456
41497
  description: 'Location adjacent to a fragment definition.'
41457
41498
  },
41458
41499
  FRAGMENT_SPREAD: {
41459
- value: DirectiveLocation$3.FRAGMENT_SPREAD,
41500
+ value: DirectiveLocation$2.FRAGMENT_SPREAD,
41460
41501
  description: 'Location adjacent to a fragment spread.'
41461
41502
  },
41462
41503
  INLINE_FRAGMENT: {
41463
- value: DirectiveLocation$3.INLINE_FRAGMENT,
41504
+ value: DirectiveLocation$2.INLINE_FRAGMENT,
41464
41505
  description: 'Location adjacent to an inline fragment.'
41465
41506
  },
41466
41507
  VARIABLE_DEFINITION: {
41467
- value: DirectiveLocation$3.VARIABLE_DEFINITION,
41508
+ value: DirectiveLocation$2.VARIABLE_DEFINITION,
41468
41509
  description: 'Location adjacent to a variable definition.'
41469
41510
  },
41470
41511
  SCHEMA: {
41471
- value: DirectiveLocation$3.SCHEMA,
41512
+ value: DirectiveLocation$2.SCHEMA,
41472
41513
  description: 'Location adjacent to a schema definition.'
41473
41514
  },
41474
41515
  SCALAR: {
41475
- value: DirectiveLocation$3.SCALAR,
41516
+ value: DirectiveLocation$2.SCALAR,
41476
41517
  description: 'Location adjacent to a scalar definition.'
41477
41518
  },
41478
41519
  OBJECT: {
41479
- value: DirectiveLocation$3.OBJECT,
41520
+ value: DirectiveLocation$2.OBJECT,
41480
41521
  description: 'Location adjacent to an object type definition.'
41481
41522
  },
41482
41523
  FIELD_DEFINITION: {
41483
- value: DirectiveLocation$3.FIELD_DEFINITION,
41524
+ value: DirectiveLocation$2.FIELD_DEFINITION,
41484
41525
  description: 'Location adjacent to a field definition.'
41485
41526
  },
41486
41527
  ARGUMENT_DEFINITION: {
41487
- value: DirectiveLocation$3.ARGUMENT_DEFINITION,
41528
+ value: DirectiveLocation$2.ARGUMENT_DEFINITION,
41488
41529
  description: 'Location adjacent to an argument definition.'
41489
41530
  },
41490
41531
  INTERFACE: {
41491
- value: DirectiveLocation$3.INTERFACE,
41532
+ value: DirectiveLocation$2.INTERFACE,
41492
41533
  description: 'Location adjacent to an interface definition.'
41493
41534
  },
41494
41535
  UNION: {
41495
- value: DirectiveLocation$3.UNION,
41536
+ value: DirectiveLocation$2.UNION,
41496
41537
  description: 'Location adjacent to a union definition.'
41497
41538
  },
41498
41539
  ENUM: {
41499
- value: DirectiveLocation$3.ENUM,
41540
+ value: DirectiveLocation$2.ENUM,
41500
41541
  description: 'Location adjacent to an enum definition.'
41501
41542
  },
41502
41543
  ENUM_VALUE: {
41503
- value: DirectiveLocation$3.ENUM_VALUE,
41544
+ value: DirectiveLocation$2.ENUM_VALUE,
41504
41545
  description: 'Location adjacent to an enum value definition.'
41505
41546
  },
41506
41547
  INPUT_OBJECT: {
41507
- value: DirectiveLocation$3.INPUT_OBJECT,
41548
+ value: DirectiveLocation$2.INPUT_OBJECT,
41508
41549
  description: 'Location adjacent to an input object type definition.'
41509
41550
  },
41510
41551
  INPUT_FIELD_DEFINITION: {
41511
- value: DirectiveLocation$3.INPUT_FIELD_DEFINITION,
41552
+ value: DirectiveLocation$2.INPUT_FIELD_DEFINITION,
41512
41553
  description: 'Location adjacent to an input object field definition.'
41513
41554
  }
41514
41555
  }
@@ -41991,7 +42032,7 @@ defineInspect$1(GraphQLDirective);
41991
42032
  var GraphQLIncludeDirective = new GraphQLDirective({
41992
42033
  name: 'include',
41993
42034
  description: 'Directs the executor to include this field or fragment only when the `if` argument is true.',
41994
- locations: [DirectiveLocation$3.FIELD, DirectiveLocation$3.FRAGMENT_SPREAD, DirectiveLocation$3.INLINE_FRAGMENT],
42035
+ locations: [DirectiveLocation$2.FIELD, DirectiveLocation$2.FRAGMENT_SPREAD, DirectiveLocation$2.INLINE_FRAGMENT],
41995
42036
  args: {
41996
42037
  if: {
41997
42038
  type: new GraphQLNonNull(GraphQLBoolean),
@@ -42006,7 +42047,7 @@ var GraphQLIncludeDirective = new GraphQLDirective({
42006
42047
  var GraphQLSkipDirective = new GraphQLDirective({
42007
42048
  name: 'skip',
42008
42049
  description: 'Directs the executor to skip this field or fragment when the `if` argument is true.',
42009
- locations: [DirectiveLocation$3.FIELD, DirectiveLocation$3.FRAGMENT_SPREAD, DirectiveLocation$3.INLINE_FRAGMENT],
42050
+ locations: [DirectiveLocation$2.FIELD, DirectiveLocation$2.FRAGMENT_SPREAD, DirectiveLocation$2.INLINE_FRAGMENT],
42010
42051
  args: {
42011
42052
  if: {
42012
42053
  type: new GraphQLNonNull(GraphQLBoolean),
@@ -42026,7 +42067,7 @@ var DEFAULT_DEPRECATION_REASON = 'No longer supported';
42026
42067
  var GraphQLDeprecatedDirective = new GraphQLDirective({
42027
42068
  name: 'deprecated',
42028
42069
  description: 'Marks an element of a GraphQL schema as no longer supported.',
42029
- locations: [DirectiveLocation$3.FIELD_DEFINITION, DirectiveLocation$3.ARGUMENT_DEFINITION, DirectiveLocation$3.INPUT_FIELD_DEFINITION, DirectiveLocation$3.ENUM_VALUE],
42070
+ locations: [DirectiveLocation$2.FIELD_DEFINITION, DirectiveLocation$2.ARGUMENT_DEFINITION, DirectiveLocation$2.INPUT_FIELD_DEFINITION, DirectiveLocation$2.ENUM_VALUE],
42030
42071
  args: {
42031
42072
  reason: {
42032
42073
  type: GraphQLString,
@@ -42042,7 +42083,7 @@ var GraphQLDeprecatedDirective = new GraphQLDirective({
42042
42083
  var GraphQLSpecifiedByDirective = new GraphQLDirective({
42043
42084
  name: 'specifiedBy',
42044
42085
  description: 'Exposes a URL that specifies the behaviour of this scalar.',
42045
- locations: [DirectiveLocation$3.SCALAR],
42086
+ locations: [DirectiveLocation$2.SCALAR],
42046
42087
  args: {
42047
42088
  url: {
42048
42089
  type: new GraphQLNonNull(GraphQLString),
@@ -43077,58 +43118,58 @@ function getDirectiveLocationForASTPath(ancestors) {
43077
43118
  return getDirectiveLocationForOperation(appliedTo.operation);
43078
43119
 
43079
43120
  case Kind$3.FIELD:
43080
- return DirectiveLocation$3.FIELD;
43121
+ return DirectiveLocation$2.FIELD;
43081
43122
 
43082
43123
  case Kind$3.FRAGMENT_SPREAD:
43083
- return DirectiveLocation$3.FRAGMENT_SPREAD;
43124
+ return DirectiveLocation$2.FRAGMENT_SPREAD;
43084
43125
 
43085
43126
  case Kind$3.INLINE_FRAGMENT:
43086
- return DirectiveLocation$3.INLINE_FRAGMENT;
43127
+ return DirectiveLocation$2.INLINE_FRAGMENT;
43087
43128
 
43088
43129
  case Kind$3.FRAGMENT_DEFINITION:
43089
- return DirectiveLocation$3.FRAGMENT_DEFINITION;
43130
+ return DirectiveLocation$2.FRAGMENT_DEFINITION;
43090
43131
 
43091
43132
  case Kind$3.VARIABLE_DEFINITION:
43092
- return DirectiveLocation$3.VARIABLE_DEFINITION;
43133
+ return DirectiveLocation$2.VARIABLE_DEFINITION;
43093
43134
 
43094
43135
  case Kind$3.SCHEMA_DEFINITION:
43095
43136
  case Kind$3.SCHEMA_EXTENSION:
43096
- return DirectiveLocation$3.SCHEMA;
43137
+ return DirectiveLocation$2.SCHEMA;
43097
43138
 
43098
43139
  case Kind$3.SCALAR_TYPE_DEFINITION:
43099
43140
  case Kind$3.SCALAR_TYPE_EXTENSION:
43100
- return DirectiveLocation$3.SCALAR;
43141
+ return DirectiveLocation$2.SCALAR;
43101
43142
 
43102
43143
  case Kind$3.OBJECT_TYPE_DEFINITION:
43103
43144
  case Kind$3.OBJECT_TYPE_EXTENSION:
43104
- return DirectiveLocation$3.OBJECT;
43145
+ return DirectiveLocation$2.OBJECT;
43105
43146
 
43106
43147
  case Kind$3.FIELD_DEFINITION:
43107
- return DirectiveLocation$3.FIELD_DEFINITION;
43148
+ return DirectiveLocation$2.FIELD_DEFINITION;
43108
43149
 
43109
43150
  case Kind$3.INTERFACE_TYPE_DEFINITION:
43110
43151
  case Kind$3.INTERFACE_TYPE_EXTENSION:
43111
- return DirectiveLocation$3.INTERFACE;
43152
+ return DirectiveLocation$2.INTERFACE;
43112
43153
 
43113
43154
  case Kind$3.UNION_TYPE_DEFINITION:
43114
43155
  case Kind$3.UNION_TYPE_EXTENSION:
43115
- return DirectiveLocation$3.UNION;
43156
+ return DirectiveLocation$2.UNION;
43116
43157
 
43117
43158
  case Kind$3.ENUM_TYPE_DEFINITION:
43118
43159
  case Kind$3.ENUM_TYPE_EXTENSION:
43119
- return DirectiveLocation$3.ENUM;
43160
+ return DirectiveLocation$2.ENUM;
43120
43161
 
43121
43162
  case Kind$3.ENUM_VALUE_DEFINITION:
43122
- return DirectiveLocation$3.ENUM_VALUE;
43163
+ return DirectiveLocation$2.ENUM_VALUE;
43123
43164
 
43124
43165
  case Kind$3.INPUT_OBJECT_TYPE_DEFINITION:
43125
43166
  case Kind$3.INPUT_OBJECT_TYPE_EXTENSION:
43126
- return DirectiveLocation$3.INPUT_OBJECT;
43167
+ return DirectiveLocation$2.INPUT_OBJECT;
43127
43168
 
43128
43169
  case Kind$3.INPUT_VALUE_DEFINITION:
43129
43170
  {
43130
43171
  var parentNode = ancestors[ancestors.length - 3];
43131
- return parentNode.kind === Kind$3.INPUT_OBJECT_TYPE_DEFINITION ? DirectiveLocation$3.INPUT_FIELD_DEFINITION : DirectiveLocation$3.ARGUMENT_DEFINITION;
43172
+ return parentNode.kind === Kind$3.INPUT_OBJECT_TYPE_DEFINITION ? DirectiveLocation$2.INPUT_FIELD_DEFINITION : DirectiveLocation$2.ARGUMENT_DEFINITION;
43132
43173
  }
43133
43174
  }
43134
43175
  }
@@ -43136,13 +43177,13 @@ function getDirectiveLocationForASTPath(ancestors) {
43136
43177
  function getDirectiveLocationForOperation(operation) {
43137
43178
  switch (operation) {
43138
43179
  case 'query':
43139
- return DirectiveLocation$3.QUERY;
43180
+ return DirectiveLocation$2.QUERY;
43140
43181
 
43141
43182
  case 'mutation':
43142
- return DirectiveLocation$3.MUTATION;
43183
+ return DirectiveLocation$2.MUTATION;
43143
43184
 
43144
43185
  case 'subscription':
43145
- return DirectiveLocation$3.SUBSCRIPTION;
43186
+ return DirectiveLocation$2.SUBSCRIPTION;
43146
43187
  } // istanbul ignore next (Not reachable. All possible types have been considered)
43147
43188
 
43148
43189
 
@@ -46029,7 +46070,7 @@ function getLeadingCommentBlock(node) {
46029
46070
  var comments = [];
46030
46071
  var token = loc.startToken.prev;
46031
46072
 
46032
- while (token != null && token.kind === TokenKind$3.COMMENT && token.next && token.prev && token.line + 1 === token.next.line && token.line !== token.prev.line) {
46073
+ while (token != null && token.kind === TokenKind$2.COMMENT && token.next && token.prev && token.line + 1 === token.next.line && token.line !== token.prev.line) {
46033
46074
  var value = String(token.value);
46034
46075
  comments.push(value);
46035
46076
  token = token.prev;
@@ -46191,7 +46232,7 @@ function stripIgnoredCharacters(source) {
46191
46232
  var strippedBody = '';
46192
46233
  var wasLastAddedTokenNonPunctuator = false;
46193
46234
 
46194
- while (lexer.advance().kind !== TokenKind$3.EOF) {
46235
+ while (lexer.advance().kind !== TokenKind$2.EOF) {
46195
46236
  var currentToken = lexer.token;
46196
46237
  var tokenKind = currentToken.kind;
46197
46238
  /**
@@ -46203,14 +46244,14 @@ function stripIgnoredCharacters(source) {
46203
46244
  var isNonPunctuator = !isPunctuatorTokenKind(currentToken.kind);
46204
46245
 
46205
46246
  if (wasLastAddedTokenNonPunctuator) {
46206
- if (isNonPunctuator || currentToken.kind === TokenKind$3.SPREAD) {
46247
+ if (isNonPunctuator || currentToken.kind === TokenKind$2.SPREAD) {
46207
46248
  strippedBody += ' ';
46208
46249
  }
46209
46250
  }
46210
46251
 
46211
46252
  var tokenBody = body.slice(currentToken.start, currentToken.end);
46212
46253
 
46213
- if (tokenKind === TokenKind$3.BLOCK_STRING) {
46254
+ if (tokenKind === TokenKind$2.BLOCK_STRING) {
46214
46255
  strippedBody += dedentBlockString(tokenBody);
46215
46256
  } else {
46216
46257
  strippedBody += tokenBody;
@@ -46643,7 +46684,7 @@ const docMap = new Map();
46643
46684
  * Opaque reference map to return keys to userland
46644
46685
  * As a user shouldn't have access to the Document
46645
46686
  */
46646
- const referenceMap$2 = new WeakMap();
46687
+ const referenceMap$1 = new WeakMap();
46647
46688
  /**
46648
46689
  * Strips characters that are not significant to the validity or execution
46649
46690
  * of a GraphQL document:
@@ -46691,7 +46732,7 @@ function insertFragments(doc, fragments) {
46691
46732
  return doc;
46692
46733
  }
46693
46734
  function updateReferenceMapWithKnownKey(doc, key) {
46694
- referenceMap$2.set(key, doc);
46735
+ referenceMap$1.set(key, doc);
46695
46736
  }
46696
46737
  function updateReferenceMapAndGetKey(doc) {
46697
46738
  // the key is a String object so that legacy locker does not replace its identity.
@@ -46716,7 +46757,7 @@ function processSubstitutions(inputString, substitutions) {
46716
46757
  outputString += substitution;
46717
46758
  }
46718
46759
  else if (typeof substitution === 'object') {
46719
- const doc = referenceMap$2.get(substitution);
46760
+ const doc = referenceMap$1.get(substitution);
46720
46761
  if (doc === undefined) {
46721
46762
  return null;
46722
46763
  }
@@ -46737,8 +46778,8 @@ function processSubstitutions(inputString, substitutions) {
46737
46778
  *
46738
46779
  * @param astReference - ast reference passed from user land
46739
46780
  */
46740
- const astResolver$2 = function (astReference) {
46741
- return referenceMap$2.get(astReference);
46781
+ const astResolver$1 = function (astReference) {
46782
+ return referenceMap$1.get(astReference);
46742
46783
  };
46743
46784
  /**
46744
46785
  *
@@ -46937,6 +46978,15 @@ function parseAndVisit(source) {
46937
46978
  return luvioDocumentNode;
46938
46979
  }
46939
46980
 
46981
+ var graphqlRelationshipFieldsPerf = {
46982
+ isOpen: function (e) {
46983
+ return e.fallback;
46984
+ },
46985
+ hasError: function () {
46986
+ return !0;
46987
+ },
46988
+ };
46989
+
46940
46990
  var FIRST_DAY_OF_WEEK = 0;
46941
46991
 
46942
46992
  var graphqQueryFieldLimit = {
@@ -47395,6 +47445,906 @@ function buildReadWriteResult(data, errors) {
47395
47445
  return ok$3(data);
47396
47446
  }
47397
47447
 
47448
+ /**
47449
+ * Copyright (c) 2022, Salesforce, Inc.,
47450
+ * All rights reserved.
47451
+ * For full license text, see the LICENSE.txt file
47452
+ */
47453
+
47454
+ /*!
47455
+ * Copyright (c) 2022, Salesforce, Inc.,
47456
+ * All rights reserved.
47457
+ * For full license text, see the LICENSE.txt file
47458
+ */
47459
+ function devAssert(condition, message) {
47460
+ const booleanCondition = Boolean(condition);
47461
+ if (!booleanCondition) {
47462
+ throw new Error(message);
47463
+ }
47464
+ }
47465
+ const MAX_ARRAY_LENGTH$1 = 10;
47466
+ const MAX_RECURSIVE_DEPTH$1 = 2;
47467
+ function inspect$1(value) {
47468
+ return formatValue$1(value, []);
47469
+ }
47470
+ function formatValue$1(value, seenValues) {
47471
+ switch (typeof value) {
47472
+ case "string":
47473
+ return JSON.stringify(value);
47474
+ case "function":
47475
+ return value.name ? `[function ${value.name}]` : "[function]";
47476
+ case "object":
47477
+ return formatObjectValue$1(value, seenValues);
47478
+ default:
47479
+ return String(value);
47480
+ }
47481
+ }
47482
+ function formatObjectValue$1(value, previouslySeenValues) {
47483
+ if (value === null) {
47484
+ return "null";
47485
+ }
47486
+ if (previouslySeenValues.includes(value)) {
47487
+ return "[Circular]";
47488
+ }
47489
+ const seenValues = [...previouslySeenValues, value];
47490
+ if (isJSONable(value)) {
47491
+ const jsonValue = value.toJSON();
47492
+ if (jsonValue !== value) {
47493
+ return typeof jsonValue === "string" ? jsonValue : formatValue$1(jsonValue, seenValues);
47494
+ }
47495
+ } else if (Array.isArray(value)) {
47496
+ return formatArray$1(value, seenValues);
47497
+ }
47498
+ return formatObject$1(value, seenValues);
47499
+ }
47500
+ function isJSONable(value) {
47501
+ return typeof value.toJSON === "function";
47502
+ }
47503
+ function formatObject$1(object, seenValues) {
47504
+ const entries = Object.entries(object);
47505
+ if (entries.length === 0) {
47506
+ return "{}";
47507
+ }
47508
+ if (seenValues.length > MAX_RECURSIVE_DEPTH$1) {
47509
+ return "[" + getObjectTag$1(object) + "]";
47510
+ }
47511
+ const properties = entries.map(
47512
+ ([key, value]) => key + ": " + formatValue$1(value, seenValues)
47513
+ );
47514
+ return "{ " + properties.join(", ") + " }";
47515
+ }
47516
+ function formatArray$1(array, seenValues) {
47517
+ if (array.length === 0) {
47518
+ return "[]";
47519
+ }
47520
+ if (seenValues.length > MAX_RECURSIVE_DEPTH$1) {
47521
+ return "[Array]";
47522
+ }
47523
+ const len = Math.min(MAX_ARRAY_LENGTH$1, array.length);
47524
+ const remaining = array.length - len;
47525
+ const items = [];
47526
+ for (let i = 0; i < len; ++i) {
47527
+ items.push(formatValue$1(array[i], seenValues));
47528
+ }
47529
+ if (remaining === 1) {
47530
+ items.push("... 1 more item");
47531
+ } else if (remaining > 1) {
47532
+ items.push(`... ${remaining} more items`);
47533
+ }
47534
+ return "[" + items.join(", ") + "]";
47535
+ }
47536
+ function getObjectTag$1(object) {
47537
+ const tag = Object.prototype.toString.call(object).replace(/^\[object /, "").replace(/]$/, "");
47538
+ if (tag === "Object" && typeof object.constructor === "function") {
47539
+ const name = object.constructor.name;
47540
+ if (typeof name === "string" && name !== "") {
47541
+ return name;
47542
+ }
47543
+ }
47544
+ return tag;
47545
+ }
47546
+ var Kind$2;
47547
+ (function(Kind2) {
47548
+ Kind2["NAME"] = "Name";
47549
+ Kind2["DOCUMENT"] = "Document";
47550
+ Kind2["OPERATION_DEFINITION"] = "OperationDefinition";
47551
+ Kind2["VARIABLE_DEFINITION"] = "VariableDefinition";
47552
+ Kind2["SELECTION_SET"] = "SelectionSet";
47553
+ Kind2["FIELD"] = "Field";
47554
+ Kind2["ARGUMENT"] = "Argument";
47555
+ Kind2["FRAGMENT_SPREAD"] = "FragmentSpread";
47556
+ Kind2["INLINE_FRAGMENT"] = "InlineFragment";
47557
+ Kind2["FRAGMENT_DEFINITION"] = "FragmentDefinition";
47558
+ Kind2["VARIABLE"] = "Variable";
47559
+ Kind2["INT"] = "IntValue";
47560
+ Kind2["FLOAT"] = "FloatValue";
47561
+ Kind2["STRING"] = "StringValue";
47562
+ Kind2["BOOLEAN"] = "BooleanValue";
47563
+ Kind2["NULL"] = "NullValue";
47564
+ Kind2["ENUM"] = "EnumValue";
47565
+ Kind2["LIST"] = "ListValue";
47566
+ Kind2["OBJECT"] = "ObjectValue";
47567
+ Kind2["OBJECT_FIELD"] = "ObjectField";
47568
+ Kind2["DIRECTIVE"] = "Directive";
47569
+ Kind2["NAMED_TYPE"] = "NamedType";
47570
+ Kind2["LIST_TYPE"] = "ListType";
47571
+ Kind2["NON_NULL_TYPE"] = "NonNullType";
47572
+ Kind2["SCHEMA_DEFINITION"] = "SchemaDefinition";
47573
+ Kind2["OPERATION_TYPE_DEFINITION"] = "OperationTypeDefinition";
47574
+ Kind2["SCALAR_TYPE_DEFINITION"] = "ScalarTypeDefinition";
47575
+ Kind2["OBJECT_TYPE_DEFINITION"] = "ObjectTypeDefinition";
47576
+ Kind2["FIELD_DEFINITION"] = "FieldDefinition";
47577
+ Kind2["INPUT_VALUE_DEFINITION"] = "InputValueDefinition";
47578
+ Kind2["INTERFACE_TYPE_DEFINITION"] = "InterfaceTypeDefinition";
47579
+ Kind2["UNION_TYPE_DEFINITION"] = "UnionTypeDefinition";
47580
+ Kind2["ENUM_TYPE_DEFINITION"] = "EnumTypeDefinition";
47581
+ Kind2["ENUM_VALUE_DEFINITION"] = "EnumValueDefinition";
47582
+ Kind2["INPUT_OBJECT_TYPE_DEFINITION"] = "InputObjectTypeDefinition";
47583
+ Kind2["DIRECTIVE_DEFINITION"] = "DirectiveDefinition";
47584
+ Kind2["SCHEMA_EXTENSION"] = "SchemaExtension";
47585
+ Kind2["SCALAR_TYPE_EXTENSION"] = "ScalarTypeExtension";
47586
+ Kind2["OBJECT_TYPE_EXTENSION"] = "ObjectTypeExtension";
47587
+ Kind2["INTERFACE_TYPE_EXTENSION"] = "InterfaceTypeExtension";
47588
+ Kind2["UNION_TYPE_EXTENSION"] = "UnionTypeExtension";
47589
+ Kind2["ENUM_TYPE_EXTENSION"] = "EnumTypeExtension";
47590
+ Kind2["INPUT_OBJECT_TYPE_EXTENSION"] = "InputObjectTypeExtension";
47591
+ })(Kind$2 || (Kind$2 = {}));
47592
+ var TokenKind$1;
47593
+ (function(TokenKind2) {
47594
+ TokenKind2["SOF"] = "<SOF>";
47595
+ TokenKind2["EOF"] = "<EOF>";
47596
+ TokenKind2["BANG"] = "!";
47597
+ TokenKind2["DOLLAR"] = "$";
47598
+ TokenKind2["AMP"] = "&";
47599
+ TokenKind2["PAREN_L"] = "(";
47600
+ TokenKind2["PAREN_R"] = ")";
47601
+ TokenKind2["SPREAD"] = "...";
47602
+ TokenKind2["COLON"] = ":";
47603
+ TokenKind2["EQUALS"] = "=";
47604
+ TokenKind2["AT"] = "@";
47605
+ TokenKind2["BRACKET_L"] = "[";
47606
+ TokenKind2["BRACKET_R"] = "]";
47607
+ TokenKind2["BRACE_L"] = "{";
47608
+ TokenKind2["PIPE"] = "|";
47609
+ TokenKind2["BRACE_R"] = "}";
47610
+ TokenKind2["NAME"] = "Name";
47611
+ TokenKind2["INT"] = "Int";
47612
+ TokenKind2["FLOAT"] = "Float";
47613
+ TokenKind2["STRING"] = "String";
47614
+ TokenKind2["BLOCK_STRING"] = "BlockString";
47615
+ TokenKind2["COMMENT"] = "Comment";
47616
+ })(TokenKind$1 || (TokenKind$1 = {}));
47617
+ const QueryDocumentKeys$2 = {
47618
+ Name: [],
47619
+ Document: ["definitions"],
47620
+ OperationDefinition: [
47621
+ "name",
47622
+ "variableDefinitions",
47623
+ "directives",
47624
+ "selectionSet"
47625
+ ],
47626
+ VariableDefinition: ["variable", "type", "defaultValue", "directives"],
47627
+ Variable: ["name"],
47628
+ SelectionSet: ["selections"],
47629
+ Field: ["alias", "name", "arguments", "directives", "selectionSet"],
47630
+ Argument: ["name", "value"],
47631
+ FragmentSpread: ["name", "directives"],
47632
+ InlineFragment: ["typeCondition", "directives", "selectionSet"],
47633
+ FragmentDefinition: [
47634
+ "name",
47635
+ // Note: fragment variable definitions are deprecated and will removed in v17.0.0
47636
+ "variableDefinitions",
47637
+ "typeCondition",
47638
+ "directives",
47639
+ "selectionSet"
47640
+ ],
47641
+ IntValue: [],
47642
+ FloatValue: [],
47643
+ StringValue: [],
47644
+ BooleanValue: [],
47645
+ NullValue: [],
47646
+ EnumValue: [],
47647
+ ListValue: ["values"],
47648
+ ObjectValue: ["fields"],
47649
+ ObjectField: ["name", "value"],
47650
+ Directive: ["name", "arguments"],
47651
+ NamedType: ["name"],
47652
+ ListType: ["type"],
47653
+ NonNullType: ["type"],
47654
+ SchemaDefinition: ["description", "directives", "operationTypes"],
47655
+ OperationTypeDefinition: ["type"],
47656
+ ScalarTypeDefinition: ["description", "name", "directives"],
47657
+ ObjectTypeDefinition: [
47658
+ "description",
47659
+ "name",
47660
+ "interfaces",
47661
+ "directives",
47662
+ "fields"
47663
+ ],
47664
+ FieldDefinition: ["description", "name", "arguments", "type", "directives"],
47665
+ InputValueDefinition: [
47666
+ "description",
47667
+ "name",
47668
+ "type",
47669
+ "defaultValue",
47670
+ "directives"
47671
+ ],
47672
+ InterfaceTypeDefinition: [
47673
+ "description",
47674
+ "name",
47675
+ "interfaces",
47676
+ "directives",
47677
+ "fields"
47678
+ ],
47679
+ UnionTypeDefinition: ["description", "name", "directives", "types"],
47680
+ EnumTypeDefinition: ["description", "name", "directives", "values"],
47681
+ EnumValueDefinition: ["description", "name", "directives"],
47682
+ InputObjectTypeDefinition: ["description", "name", "directives", "fields"],
47683
+ DirectiveDefinition: ["description", "name", "arguments", "locations"],
47684
+ SchemaExtension: ["directives", "operationTypes"],
47685
+ ScalarTypeExtension: ["name", "directives"],
47686
+ ObjectTypeExtension: ["name", "interfaces", "directives", "fields"],
47687
+ InterfaceTypeExtension: ["name", "interfaces", "directives", "fields"],
47688
+ UnionTypeExtension: ["name", "directives", "types"],
47689
+ EnumTypeExtension: ["name", "directives", "values"],
47690
+ InputObjectTypeExtension: ["name", "directives", "fields"]
47691
+ };
47692
+ const kindValues = new Set(Object.keys(QueryDocumentKeys$2));
47693
+ function isNode$1(maybeNode) {
47694
+ const maybeKind = maybeNode === null || maybeNode === void 0 ? void 0 : maybeNode.kind;
47695
+ return typeof maybeKind === "string" && kindValues.has(maybeKind);
47696
+ }
47697
+ var OperationTypeNode$1;
47698
+ (function(OperationTypeNode2) {
47699
+ OperationTypeNode2["QUERY"] = "query";
47700
+ OperationTypeNode2["MUTATION"] = "mutation";
47701
+ OperationTypeNode2["SUBSCRIPTION"] = "subscription";
47702
+ })(OperationTypeNode$1 || (OperationTypeNode$1 = {}));
47703
+ function isWhiteSpace(code) {
47704
+ return code === 9 || code === 32;
47705
+ }
47706
+ function printBlockString(value, options) {
47707
+ const escapedValue = value.replace(/"""/g, '\\"""');
47708
+ const lines = escapedValue.split(/\r\n|[\n\r]/g);
47709
+ const isSingleLine = lines.length === 1;
47710
+ const forceLeadingNewLine = lines.length > 1 && lines.slice(1).every((line) => line.length === 0 || isWhiteSpace(line.charCodeAt(0)));
47711
+ const hasTrailingTripleQuotes = escapedValue.endsWith('\\"""');
47712
+ const hasTrailingQuote = value.endsWith('"') && !hasTrailingTripleQuotes;
47713
+ const hasTrailingSlash = value.endsWith("\\");
47714
+ const forceTrailingNewline = hasTrailingQuote || hasTrailingSlash;
47715
+ const printAsMultipleLines = !(options !== null && options !== void 0 && options.minimize) && // add leading and trailing new lines only if it improves readability
47716
+ (!isSingleLine || value.length > 70 || forceTrailingNewline || forceLeadingNewLine || hasTrailingTripleQuotes);
47717
+ let result = "";
47718
+ const skipLeadingNewLine = isSingleLine && isWhiteSpace(value.charCodeAt(0));
47719
+ if (printAsMultipleLines && !skipLeadingNewLine || forceLeadingNewLine) {
47720
+ result += "\n";
47721
+ }
47722
+ result += escapedValue;
47723
+ if (printAsMultipleLines || forceTrailingNewline) {
47724
+ result += "\n";
47725
+ }
47726
+ return '"""' + result + '"""';
47727
+ }
47728
+ var DirectiveLocation$1;
47729
+ (function(DirectiveLocation2) {
47730
+ DirectiveLocation2["QUERY"] = "QUERY";
47731
+ DirectiveLocation2["MUTATION"] = "MUTATION";
47732
+ DirectiveLocation2["SUBSCRIPTION"] = "SUBSCRIPTION";
47733
+ DirectiveLocation2["FIELD"] = "FIELD";
47734
+ DirectiveLocation2["FRAGMENT_DEFINITION"] = "FRAGMENT_DEFINITION";
47735
+ DirectiveLocation2["FRAGMENT_SPREAD"] = "FRAGMENT_SPREAD";
47736
+ DirectiveLocation2["INLINE_FRAGMENT"] = "INLINE_FRAGMENT";
47737
+ DirectiveLocation2["VARIABLE_DEFINITION"] = "VARIABLE_DEFINITION";
47738
+ DirectiveLocation2["SCHEMA"] = "SCHEMA";
47739
+ DirectiveLocation2["SCALAR"] = "SCALAR";
47740
+ DirectiveLocation2["OBJECT"] = "OBJECT";
47741
+ DirectiveLocation2["FIELD_DEFINITION"] = "FIELD_DEFINITION";
47742
+ DirectiveLocation2["ARGUMENT_DEFINITION"] = "ARGUMENT_DEFINITION";
47743
+ DirectiveLocation2["INTERFACE"] = "INTERFACE";
47744
+ DirectiveLocation2["UNION"] = "UNION";
47745
+ DirectiveLocation2["ENUM"] = "ENUM";
47746
+ DirectiveLocation2["ENUM_VALUE"] = "ENUM_VALUE";
47747
+ DirectiveLocation2["INPUT_OBJECT"] = "INPUT_OBJECT";
47748
+ DirectiveLocation2["INPUT_FIELD_DEFINITION"] = "INPUT_FIELD_DEFINITION";
47749
+ })(DirectiveLocation$1 || (DirectiveLocation$1 = {}));
47750
+ function printString(str) {
47751
+ return `"${str.replace(escapedRegExp, escapedReplacer)}"`;
47752
+ }
47753
+ const escapedRegExp = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
47754
+ function escapedReplacer(str) {
47755
+ return escapeSequences[str.charCodeAt(0)];
47756
+ }
47757
+ const escapeSequences = [
47758
+ "\\u0000",
47759
+ "\\u0001",
47760
+ "\\u0002",
47761
+ "\\u0003",
47762
+ "\\u0004",
47763
+ "\\u0005",
47764
+ "\\u0006",
47765
+ "\\u0007",
47766
+ "\\b",
47767
+ "\\t",
47768
+ "\\n",
47769
+ "\\u000B",
47770
+ "\\f",
47771
+ "\\r",
47772
+ "\\u000E",
47773
+ "\\u000F",
47774
+ "\\u0010",
47775
+ "\\u0011",
47776
+ "\\u0012",
47777
+ "\\u0013",
47778
+ "\\u0014",
47779
+ "\\u0015",
47780
+ "\\u0016",
47781
+ "\\u0017",
47782
+ "\\u0018",
47783
+ "\\u0019",
47784
+ "\\u001A",
47785
+ "\\u001B",
47786
+ "\\u001C",
47787
+ "\\u001D",
47788
+ "\\u001E",
47789
+ "\\u001F",
47790
+ "",
47791
+ "",
47792
+ '\\"',
47793
+ "",
47794
+ "",
47795
+ "",
47796
+ "",
47797
+ "",
47798
+ "",
47799
+ "",
47800
+ "",
47801
+ "",
47802
+ "",
47803
+ "",
47804
+ "",
47805
+ "",
47806
+ // 2F
47807
+ "",
47808
+ "",
47809
+ "",
47810
+ "",
47811
+ "",
47812
+ "",
47813
+ "",
47814
+ "",
47815
+ "",
47816
+ "",
47817
+ "",
47818
+ "",
47819
+ "",
47820
+ "",
47821
+ "",
47822
+ "",
47823
+ // 3F
47824
+ "",
47825
+ "",
47826
+ "",
47827
+ "",
47828
+ "",
47829
+ "",
47830
+ "",
47831
+ "",
47832
+ "",
47833
+ "",
47834
+ "",
47835
+ "",
47836
+ "",
47837
+ "",
47838
+ "",
47839
+ "",
47840
+ // 4F
47841
+ "",
47842
+ "",
47843
+ "",
47844
+ "",
47845
+ "",
47846
+ "",
47847
+ "",
47848
+ "",
47849
+ "",
47850
+ "",
47851
+ "",
47852
+ "",
47853
+ "\\\\",
47854
+ "",
47855
+ "",
47856
+ "",
47857
+ // 5F
47858
+ "",
47859
+ "",
47860
+ "",
47861
+ "",
47862
+ "",
47863
+ "",
47864
+ "",
47865
+ "",
47866
+ "",
47867
+ "",
47868
+ "",
47869
+ "",
47870
+ "",
47871
+ "",
47872
+ "",
47873
+ "",
47874
+ // 6F
47875
+ "",
47876
+ "",
47877
+ "",
47878
+ "",
47879
+ "",
47880
+ "",
47881
+ "",
47882
+ "",
47883
+ "",
47884
+ "",
47885
+ "",
47886
+ "",
47887
+ "",
47888
+ "",
47889
+ "",
47890
+ "\\u007F",
47891
+ "\\u0080",
47892
+ "\\u0081",
47893
+ "\\u0082",
47894
+ "\\u0083",
47895
+ "\\u0084",
47896
+ "\\u0085",
47897
+ "\\u0086",
47898
+ "\\u0087",
47899
+ "\\u0088",
47900
+ "\\u0089",
47901
+ "\\u008A",
47902
+ "\\u008B",
47903
+ "\\u008C",
47904
+ "\\u008D",
47905
+ "\\u008E",
47906
+ "\\u008F",
47907
+ "\\u0090",
47908
+ "\\u0091",
47909
+ "\\u0092",
47910
+ "\\u0093",
47911
+ "\\u0094",
47912
+ "\\u0095",
47913
+ "\\u0096",
47914
+ "\\u0097",
47915
+ "\\u0098",
47916
+ "\\u0099",
47917
+ "\\u009A",
47918
+ "\\u009B",
47919
+ "\\u009C",
47920
+ "\\u009D",
47921
+ "\\u009E",
47922
+ "\\u009F"
47923
+ ];
47924
+ const BREAK$1 = Object.freeze({});
47925
+ function visit$1(root, visitor, visitorKeys = QueryDocumentKeys$2) {
47926
+ const enterLeaveMap = /* @__PURE__ */ new Map();
47927
+ for (const kind of Object.values(Kind$2)) {
47928
+ enterLeaveMap.set(kind, getEnterLeaveForKind(visitor, kind));
47929
+ }
47930
+ let stack = void 0;
47931
+ let inArray = Array.isArray(root);
47932
+ let keys = [root];
47933
+ let index = -1;
47934
+ let edits = [];
47935
+ let node = root;
47936
+ let key = void 0;
47937
+ let parent = void 0;
47938
+ const path = [];
47939
+ const ancestors = [];
47940
+ do {
47941
+ index++;
47942
+ const isLeaving = index === keys.length;
47943
+ const isEdited = isLeaving && edits.length !== 0;
47944
+ if (isLeaving) {
47945
+ key = ancestors.length === 0 ? void 0 : path[path.length - 1];
47946
+ node = parent;
47947
+ parent = ancestors.pop();
47948
+ if (isEdited) {
47949
+ if (inArray) {
47950
+ node = node.slice();
47951
+ let editOffset = 0;
47952
+ for (const [editKey, editValue] of edits) {
47953
+ const arrayKey = editKey - editOffset;
47954
+ if (editValue === null) {
47955
+ node.splice(arrayKey, 1);
47956
+ editOffset++;
47957
+ } else {
47958
+ node[arrayKey] = editValue;
47959
+ }
47960
+ }
47961
+ } else {
47962
+ node = { ...node };
47963
+ for (const [editKey, editValue] of edits) {
47964
+ node[editKey] = editValue;
47965
+ }
47966
+ }
47967
+ }
47968
+ index = stack.index;
47969
+ keys = stack.keys;
47970
+ edits = stack.edits;
47971
+ inArray = stack.inArray;
47972
+ stack = stack.prev;
47973
+ } else if (parent) {
47974
+ key = inArray ? index : keys[index];
47975
+ node = parent[key];
47976
+ if (node === null || node === void 0) {
47977
+ continue;
47978
+ }
47979
+ path.push(key);
47980
+ }
47981
+ let result;
47982
+ if (!Array.isArray(node)) {
47983
+ var _enterLeaveMap$get, _enterLeaveMap$get2;
47984
+ isNode$1(node) || devAssert(false, `Invalid AST Node: ${inspect$1(node)}.`);
47985
+ const visitFn = isLeaving ? (_enterLeaveMap$get = enterLeaveMap.get(node.kind)) === null || _enterLeaveMap$get === void 0 ? void 0 : _enterLeaveMap$get.leave : (_enterLeaveMap$get2 = enterLeaveMap.get(node.kind)) === null || _enterLeaveMap$get2 === void 0 ? void 0 : _enterLeaveMap$get2.enter;
47986
+ result = visitFn === null || visitFn === void 0 ? void 0 : visitFn.call(visitor, node, key, parent, path, ancestors);
47987
+ if (result === BREAK$1) {
47988
+ break;
47989
+ }
47990
+ if (result === false) {
47991
+ if (!isLeaving) {
47992
+ path.pop();
47993
+ continue;
47994
+ }
47995
+ } else if (result !== void 0) {
47996
+ edits.push([key, result]);
47997
+ if (!isLeaving) {
47998
+ if (isNode$1(result)) {
47999
+ node = result;
48000
+ } else {
48001
+ path.pop();
48002
+ continue;
48003
+ }
48004
+ }
48005
+ }
48006
+ }
48007
+ if (result === void 0 && isEdited) {
48008
+ edits.push([key, node]);
48009
+ }
48010
+ if (isLeaving) {
48011
+ path.pop();
48012
+ } else {
48013
+ var _node$kind;
48014
+ stack = {
48015
+ inArray,
48016
+ index,
48017
+ keys,
48018
+ edits,
48019
+ prev: stack
48020
+ };
48021
+ inArray = Array.isArray(node);
48022
+ keys = inArray ? node : (_node$kind = visitorKeys[node.kind]) !== null && _node$kind !== void 0 ? _node$kind : [];
48023
+ index = -1;
48024
+ edits = [];
48025
+ if (parent) {
48026
+ ancestors.push(parent);
48027
+ }
48028
+ parent = node;
48029
+ }
48030
+ } while (stack !== void 0);
48031
+ if (edits.length !== 0) {
48032
+ return edits[edits.length - 1][1];
48033
+ }
48034
+ return root;
48035
+ }
48036
+ function getEnterLeaveForKind(visitor, kind) {
48037
+ const kindVisitor = visitor[kind];
48038
+ if (typeof kindVisitor === "object") {
48039
+ return kindVisitor;
48040
+ } else if (typeof kindVisitor === "function") {
48041
+ return {
48042
+ enter: kindVisitor,
48043
+ leave: void 0
48044
+ };
48045
+ }
48046
+ return {
48047
+ enter: visitor.enter,
48048
+ leave: visitor.leave
48049
+ };
48050
+ }
48051
+ function print(ast) {
48052
+ return visit$1(ast, printDocASTReducer);
48053
+ }
48054
+ const MAX_LINE_LENGTH = 80;
48055
+ const printDocASTReducer = {
48056
+ Name: {
48057
+ leave: (node) => node.value
48058
+ },
48059
+ Variable: {
48060
+ leave: (node) => "$" + node.name
48061
+ },
48062
+ // Document
48063
+ Document: {
48064
+ leave: (node) => join$2(node.definitions, "\n\n")
48065
+ },
48066
+ OperationDefinition: {
48067
+ leave(node) {
48068
+ const varDefs = wrap("(", join$2(node.variableDefinitions, ", "), ")");
48069
+ const prefix = join$2(
48070
+ [
48071
+ node.operation,
48072
+ join$2([node.name, varDefs]),
48073
+ join$2(node.directives, " ")
48074
+ ],
48075
+ " "
48076
+ );
48077
+ return (prefix === "query" ? "" : prefix + " ") + node.selectionSet;
48078
+ }
48079
+ },
48080
+ VariableDefinition: {
48081
+ leave: ({ variable, type, defaultValue, directives }) => variable + ": " + type + wrap(" = ", defaultValue) + wrap(" ", join$2(directives, " "))
48082
+ },
48083
+ SelectionSet: {
48084
+ leave: ({ selections }) => block(selections)
48085
+ },
48086
+ Field: {
48087
+ leave({ alias, name, arguments: args, directives, selectionSet }) {
48088
+ const prefix = wrap("", alias, ": ") + name;
48089
+ let argsLine = prefix + wrap("(", join$2(args, ", "), ")");
48090
+ if (argsLine.length > MAX_LINE_LENGTH) {
48091
+ argsLine = prefix + wrap("(\n", indent(join$2(args, "\n")), "\n)");
48092
+ }
48093
+ return join$2([argsLine, join$2(directives, " "), selectionSet], " ");
48094
+ }
48095
+ },
48096
+ Argument: {
48097
+ leave: ({ name, value }) => name + ": " + value
48098
+ },
48099
+ // Fragments
48100
+ FragmentSpread: {
48101
+ leave: ({ name, directives }) => "..." + name + wrap(" ", join$2(directives, " "))
48102
+ },
48103
+ InlineFragment: {
48104
+ leave: ({ typeCondition, directives, selectionSet }) => join$2(
48105
+ [
48106
+ "...",
48107
+ wrap("on ", typeCondition),
48108
+ join$2(directives, " "),
48109
+ selectionSet
48110
+ ],
48111
+ " "
48112
+ )
48113
+ },
48114
+ FragmentDefinition: {
48115
+ leave: ({ name, typeCondition, variableDefinitions, directives, selectionSet }) => (
48116
+ // or removed in the future.
48117
+ `fragment ${name}${wrap("(", join$2(variableDefinitions, ", "), ")")} on ${typeCondition} ${wrap("", join$2(directives, " "), " ")}` + selectionSet
48118
+ )
48119
+ },
48120
+ // Value
48121
+ IntValue: {
48122
+ leave: ({ value }) => value
48123
+ },
48124
+ FloatValue: {
48125
+ leave: ({ value }) => value
48126
+ },
48127
+ StringValue: {
48128
+ leave: ({ value, block: isBlockString }) => isBlockString ? printBlockString(value) : printString(value)
48129
+ },
48130
+ BooleanValue: {
48131
+ leave: ({ value }) => value ? "true" : "false"
48132
+ },
48133
+ NullValue: {
48134
+ leave: () => "null"
48135
+ },
48136
+ EnumValue: {
48137
+ leave: ({ value }) => value
48138
+ },
48139
+ ListValue: {
48140
+ leave: ({ values }) => "[" + join$2(values, ", ") + "]"
48141
+ },
48142
+ ObjectValue: {
48143
+ leave: ({ fields }) => "{" + join$2(fields, ", ") + "}"
48144
+ },
48145
+ ObjectField: {
48146
+ leave: ({ name, value }) => name + ": " + value
48147
+ },
48148
+ // Directive
48149
+ Directive: {
48150
+ leave: ({ name, arguments: args }) => "@" + name + wrap("(", join$2(args, ", "), ")")
48151
+ },
48152
+ // Type
48153
+ NamedType: {
48154
+ leave: ({ name }) => name
48155
+ },
48156
+ ListType: {
48157
+ leave: ({ type }) => "[" + type + "]"
48158
+ },
48159
+ NonNullType: {
48160
+ leave: ({ type }) => type + "!"
48161
+ },
48162
+ // Type System Definitions
48163
+ SchemaDefinition: {
48164
+ leave: ({ description, directives, operationTypes }) => wrap("", description, "\n") + join$2(["schema", join$2(directives, " "), block(operationTypes)], " ")
48165
+ },
48166
+ OperationTypeDefinition: {
48167
+ leave: ({ operation, type }) => operation + ": " + type
48168
+ },
48169
+ ScalarTypeDefinition: {
48170
+ leave: ({ description, name, directives }) => wrap("", description, "\n") + join$2(["scalar", name, join$2(directives, " ")], " ")
48171
+ },
48172
+ ObjectTypeDefinition: {
48173
+ leave: ({ description, name, interfaces, directives, fields }) => wrap("", description, "\n") + join$2(
48174
+ [
48175
+ "type",
48176
+ name,
48177
+ wrap("implements ", join$2(interfaces, " & ")),
48178
+ join$2(directives, " "),
48179
+ block(fields)
48180
+ ],
48181
+ " "
48182
+ )
48183
+ },
48184
+ FieldDefinition: {
48185
+ leave: ({ description, name, arguments: args, type, directives }) => wrap("", description, "\n") + name + (hasMultilineItems(args) ? wrap("(\n", indent(join$2(args, "\n")), "\n)") : wrap("(", join$2(args, ", "), ")")) + ": " + type + wrap(" ", join$2(directives, " "))
48186
+ },
48187
+ InputValueDefinition: {
48188
+ leave: ({ description, name, type, defaultValue, directives }) => wrap("", description, "\n") + join$2(
48189
+ [name + ": " + type, wrap("= ", defaultValue), join$2(directives, " ")],
48190
+ " "
48191
+ )
48192
+ },
48193
+ InterfaceTypeDefinition: {
48194
+ leave: ({ description, name, interfaces, directives, fields }) => wrap("", description, "\n") + join$2(
48195
+ [
48196
+ "interface",
48197
+ name,
48198
+ wrap("implements ", join$2(interfaces, " & ")),
48199
+ join$2(directives, " "),
48200
+ block(fields)
48201
+ ],
48202
+ " "
48203
+ )
48204
+ },
48205
+ UnionTypeDefinition: {
48206
+ leave: ({ description, name, directives, types }) => wrap("", description, "\n") + join$2(
48207
+ ["union", name, join$2(directives, " "), wrap("= ", join$2(types, " | "))],
48208
+ " "
48209
+ )
48210
+ },
48211
+ EnumTypeDefinition: {
48212
+ leave: ({ description, name, directives, values }) => wrap("", description, "\n") + join$2(["enum", name, join$2(directives, " "), block(values)], " ")
48213
+ },
48214
+ EnumValueDefinition: {
48215
+ leave: ({ description, name, directives }) => wrap("", description, "\n") + join$2([name, join$2(directives, " ")], " ")
48216
+ },
48217
+ InputObjectTypeDefinition: {
48218
+ leave: ({ description, name, directives, fields }) => wrap("", description, "\n") + join$2(["input", name, join$2(directives, " "), block(fields)], " ")
48219
+ },
48220
+ DirectiveDefinition: {
48221
+ leave: ({ description, name, arguments: args, repeatable, locations }) => wrap("", description, "\n") + "directive @" + name + (hasMultilineItems(args) ? wrap("(\n", indent(join$2(args, "\n")), "\n)") : wrap("(", join$2(args, ", "), ")")) + (repeatable ? " repeatable" : "") + " on " + join$2(locations, " | ")
48222
+ },
48223
+ SchemaExtension: {
48224
+ leave: ({ directives, operationTypes }) => join$2(
48225
+ ["extend schema", join$2(directives, " "), block(operationTypes)],
48226
+ " "
48227
+ )
48228
+ },
48229
+ ScalarTypeExtension: {
48230
+ leave: ({ name, directives }) => join$2(["extend scalar", name, join$2(directives, " ")], " ")
48231
+ },
48232
+ ObjectTypeExtension: {
48233
+ leave: ({ name, interfaces, directives, fields }) => join$2(
48234
+ [
48235
+ "extend type",
48236
+ name,
48237
+ wrap("implements ", join$2(interfaces, " & ")),
48238
+ join$2(directives, " "),
48239
+ block(fields)
48240
+ ],
48241
+ " "
48242
+ )
48243
+ },
48244
+ InterfaceTypeExtension: {
48245
+ leave: ({ name, interfaces, directives, fields }) => join$2(
48246
+ [
48247
+ "extend interface",
48248
+ name,
48249
+ wrap("implements ", join$2(interfaces, " & ")),
48250
+ join$2(directives, " "),
48251
+ block(fields)
48252
+ ],
48253
+ " "
48254
+ )
48255
+ },
48256
+ UnionTypeExtension: {
48257
+ leave: ({ name, directives, types }) => join$2(
48258
+ [
48259
+ "extend union",
48260
+ name,
48261
+ join$2(directives, " "),
48262
+ wrap("= ", join$2(types, " | "))
48263
+ ],
48264
+ " "
48265
+ )
48266
+ },
48267
+ EnumTypeExtension: {
48268
+ leave: ({ name, directives, values }) => join$2(["extend enum", name, join$2(directives, " "), block(values)], " ")
48269
+ },
48270
+ InputObjectTypeExtension: {
48271
+ leave: ({ name, directives, fields }) => join$2(["extend input", name, join$2(directives, " "), block(fields)], " ")
48272
+ }
48273
+ };
48274
+ function join$2(maybeArray, separator = "") {
48275
+ var _maybeArray$filter$jo;
48276
+ return (_maybeArray$filter$jo = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.filter((x) => x).join(separator)) !== null && _maybeArray$filter$jo !== void 0 ? _maybeArray$filter$jo : "";
48277
+ }
48278
+ function block(array) {
48279
+ return wrap("{\n", indent(join$2(array, "\n")), "\n}");
48280
+ }
48281
+ function wrap(start, maybeString, end = "") {
48282
+ return maybeString != null && maybeString !== "" ? start + maybeString + end : "";
48283
+ }
48284
+ function indent(str) {
48285
+ return wrap(" ", str.replace(/\n/g, "\n "));
48286
+ }
48287
+ function hasMultilineItems(maybeArray) {
48288
+ var _maybeArray$some;
48289
+ return (_maybeArray$some = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.some((str) => str.includes("\n"))) !== null && _maybeArray$some !== void 0 ? _maybeArray$some : false;
48290
+ }
48291
+ const referenceMap = /* @__PURE__ */ new WeakMap();
48292
+ const astResolver = function(astReference) {
48293
+ return referenceMap.get(astReference);
48294
+ };
48295
+ function findExecutableOperation$2(document, operationName) {
48296
+ const operations = document.definitions.filter(
48297
+ (def) => def.kind === Kind$2.OPERATION_DEFINITION
48298
+ );
48299
+ if (operations.length === 0) {
48300
+ return void 0;
48301
+ }
48302
+ if (operations.length === 1 && !operationName) {
48303
+ return operations[0];
48304
+ }
48305
+ if (operationName) {
48306
+ return operations.find((op) => {
48307
+ var _a;
48308
+ return ((_a = op.name) == null ? void 0 : _a.value) === operationName;
48309
+ });
48310
+ }
48311
+ return void 0;
48312
+ }
48313
+ function validateGraphQLOperations(config, options) {
48314
+ const executableOperation = findExecutableOperation$2(config.query, config.operationName);
48315
+ if (executableOperation) {
48316
+ const operationType = executableOperation.operation;
48317
+ if (!options.acceptedOperations.includes(operationType)) {
48318
+ const operationTypeCapitalized = operationType.charAt(0).toUpperCase() + operationType.slice(1);
48319
+ throw new Error(
48320
+ `${operationTypeCapitalized} operations are not supported in this context`
48321
+ );
48322
+ }
48323
+ }
48324
+ }
48325
+ function resolveAst(ast) {
48326
+ if (ast === null || ast === void 0) {
48327
+ return;
48328
+ }
48329
+ const result = astResolver(ast);
48330
+ if (result === void 0) {
48331
+ throw new Error("Could not resolve AST. Did you parse the query with gql?");
48332
+ }
48333
+ return result;
48334
+ }
48335
+ function wrapConfigAndVerify(config, options) {
48336
+ if (config == null ? void 0 : config.query) {
48337
+ config = { ...config, query: resolveAst(config.query) };
48338
+ if (config.query === void 0) {
48339
+ throw new Error("Internal error in GraphQL adapter occurred: Unable to resolve query");
48340
+ }
48341
+ validateGraphQLOperations(config, {
48342
+ acceptedOperations: (options == null ? void 0 : options.acceptedOperations) ?? ["query"]
48343
+ });
48344
+ }
48345
+ return config;
48346
+ }
48347
+
47398
48348
  var productConsumedSideEffects = {
47399
48349
  isOpen: function (e) {
47400
48350
  return e.fallback;
@@ -47419,7 +48369,7 @@ var productConsumedSideEffects = {
47419
48369
 
47420
48370
 
47421
48371
  const { parse: parse$7, stringify: stringify$7 } = JSON;
47422
- const { join: join$2, push: push$2, unshift } = Array.prototype;
48372
+ const { join: join$1, push: push$2, unshift } = Array.prototype;
47423
48373
  const { isArray: isArray$5 } = Array;
47424
48374
  const { entries: entries$4, keys: keys$6 } = Object;
47425
48375
 
@@ -47553,14 +48503,14 @@ function buildAggregateUiUrl$1(params, resourceRequest) {
47553
48503
  const { fields, optionalFields } = params;
47554
48504
  const queryString = [];
47555
48505
  if (fields !== undefined && fields.length > 0) {
47556
- const fieldString = join$2.call(fields, ',');
48506
+ const fieldString = join$1.call(fields, ',');
47557
48507
  push$2.call(queryString, `fields=${encodeURIComponent(fieldString)}`);
47558
48508
  }
47559
48509
  if (optionalFields !== undefined && optionalFields.length > 0) {
47560
- const optionalFieldString = join$2.call(optionalFields, ',');
48510
+ const optionalFieldString = join$1.call(optionalFields, ',');
47561
48511
  push$2.call(queryString, `optionalFields=${encodeURIComponent(optionalFieldString)}`);
47562
48512
  }
47563
- return `${resourceRequest.baseUri}${resourceRequest.basePath}?${join$2.call(queryString, '&')}`;
48513
+ return `${resourceRequest.baseUri}${resourceRequest.basePath}?${join$1.call(queryString, '&')}`;
47564
48514
  }
47565
48515
  function buildGetRecordByFieldsCompositeRequest(resourceRequest, recordsCompositeRequest) {
47566
48516
  const { fieldsArray, optionalFieldsArray, fieldsLength, optionalFieldsLength } = recordsCompositeRequest;
@@ -60515,10 +61465,36 @@ function validate$7(obj, path = 'RecordInputRepresentation') {
60515
61465
  if (obj_fields_prop_union3_error != null) {
60516
61466
  obj_fields_prop_union3 = obj_fields_prop_union3_error.message;
60517
61467
  }
61468
+ let obj_fields_prop_union4 = null;
61469
+ const obj_fields_prop_union4_error = (() => {
61470
+ if (!ArrayIsArray$2(obj_fields_prop)) {
61471
+ return new TypeError('Expected "array" but received "' +
61472
+ typeof obj_fields_prop +
61473
+ '" (at "' +
61474
+ path_fields_prop +
61475
+ '")');
61476
+ }
61477
+ for (let j = 0; j < obj_fields_prop.length; j++) {
61478
+ const obj_fields_prop_item = obj_fields_prop[j];
61479
+ const path_fields_prop_item = path_fields_prop + '[' + j + ']';
61480
+ if (typeof obj_fields_prop_item !== 'string') {
61481
+ return new TypeError('Expected "string" but received "' +
61482
+ typeof obj_fields_prop_item +
61483
+ '" (at "' +
61484
+ path_fields_prop_item +
61485
+ '")');
61486
+ }
61487
+ }
61488
+ })();
61489
+ // eslint-disable-next-line eqeqeq
61490
+ if (obj_fields_prop_union4_error != null) {
61491
+ obj_fields_prop_union4 = obj_fields_prop_union4_error.message;
61492
+ }
60518
61493
  if (obj_fields_prop_union0 &&
60519
61494
  obj_fields_prop_union1 &&
60520
61495
  obj_fields_prop_union2 &&
60521
- obj_fields_prop_union3) {
61496
+ obj_fields_prop_union3 &&
61497
+ obj_fields_prop_union4) {
60522
61498
  let message = 'Object doesn\'t match union (at "' + path_fields_prop + '")';
60523
61499
  message +=
60524
61500
  '\n' +
@@ -60544,6 +61520,12 @@ function validate$7(obj, path = 'RecordInputRepresentation') {
60544
61520
  .split('\n')
60545
61521
  .map((line) => '\t' + line)
60546
61522
  .join('\n');
61523
+ message +=
61524
+ '\n' +
61525
+ obj_fields_prop_union4
61526
+ .split('\n')
61527
+ .map((line) => '\t' + line)
61528
+ .join('\n');
60547
61529
  return new TypeError(message);
60548
61530
  }
60549
61531
  }
@@ -83287,18 +84269,34 @@ function recordLoaderFactory(query) {
83287
84269
  async function batchRecordQuery(ids) {
83288
84270
  const varbinds = Array(ids.length).fill('?').join(',');
83289
84271
  const { rows } = await query(`select data from lds_data where key like 'UiApi::RecordRepresentation:%' and json_extract(data,'$.id') in (${varbinds})`, ids);
83290
- return ids.map((id) => {
83291
- let foundRow = null;
84272
+ if (graphqlRelationshipFieldsPerf.isOpen({ fallback: false })) {
84273
+ // old, non-performant logic fallback
84274
+ return ids.map((id) => {
84275
+ let foundRow = null;
84276
+ rows.forEach((row) => {
84277
+ if (!row[0])
84278
+ return null;
84279
+ const record = parse$5(row[0]);
84280
+ if (record.id === id) {
84281
+ foundRow = record;
84282
+ }
84283
+ });
84284
+ return foundRow;
84285
+ });
84286
+ }
84287
+ else {
84288
+ // DEFAULT PERFORMANT LOGIC - Use kill switch gate to revert
84289
+ // Build a map of id -> record (O(m) with single parse per record)
84290
+ const recordMap = new Map();
83292
84291
  rows.forEach((row) => {
83293
84292
  if (!row[0])
83294
- return null;
84293
+ return;
83295
84294
  const record = parse$5(row[0]);
83296
- if (record.id === id) {
83297
- foundRow = record;
83298
- }
84295
+ recordMap.set(record.id, record);
83299
84296
  });
83300
- return foundRow;
83301
- });
84297
+ // Map ids to records (O(n) lookup)
84298
+ return ids.map((id) => recordMap.get(id) || null);
84299
+ }
83302
84300
  }
83303
84301
  return new DataLoader(batchRecordQuery);
83304
84302
  }
@@ -85581,7 +86579,7 @@ const base64decode = typeof atob === 'function' ? atob : atobPolyfill;
85581
86579
  /**
85582
86580
  * The set of allowed kind values for AST nodes.
85583
86581
  */
85584
- var Kind$1$1 = Object.freeze({
86582
+ var Kind$1 = Object.freeze({
85585
86583
  // Name
85586
86584
  NAME: 'Name',
85587
86585
  // Document
@@ -85777,7 +86775,7 @@ defineInspect(Token);
85777
86775
  * @internal
85778
86776
  */
85779
86777
 
85780
- function isNode$1(maybeNode) {
86778
+ function isNode(maybeNode) {
85781
86779
  return maybeNode != null && typeof maybeNode.kind === 'string';
85782
86780
  }
85783
86781
  /**
@@ -85785,17 +86783,17 @@ function isNode$1(maybeNode) {
85785
86783
  */
85786
86784
 
85787
86785
  function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
85788
- var MAX_ARRAY_LENGTH$1 = 10;
85789
- var MAX_RECURSIVE_DEPTH$1 = 2;
86786
+ var MAX_ARRAY_LENGTH = 10;
86787
+ var MAX_RECURSIVE_DEPTH = 2;
85790
86788
  /**
85791
86789
  * Used to print values in error messages.
85792
86790
  */
85793
86791
 
85794
- function inspect$1(value) {
85795
- return formatValue$1(value, []);
86792
+ function inspect(value) {
86793
+ return formatValue(value, []);
85796
86794
  }
85797
86795
 
85798
- function formatValue$1(value, seenValues) {
86796
+ function formatValue(value, seenValues) {
85799
86797
  switch (_typeof(value)) {
85800
86798
  case 'string':
85801
86799
  return JSON.stringify(value);
@@ -85808,14 +86806,14 @@ function formatValue$1(value, seenValues) {
85808
86806
  return 'null';
85809
86807
  }
85810
86808
 
85811
- return formatObjectValue$1(value, seenValues);
86809
+ return formatObjectValue(value, seenValues);
85812
86810
 
85813
86811
  default:
85814
86812
  return String(value);
85815
86813
  }
85816
86814
  }
85817
86815
 
85818
- function formatObjectValue$1(value, previouslySeenValues) {
86816
+ function formatObjectValue(value, previouslySeenValues) {
85819
86817
  if (previouslySeenValues.indexOf(value) !== -1) {
85820
86818
  return '[Circular]';
85821
86819
  }
@@ -85827,48 +86825,48 @@ function formatObjectValue$1(value, previouslySeenValues) {
85827
86825
  var customValue = customInspectFn.call(value); // check for infinite recursion
85828
86826
 
85829
86827
  if (customValue !== value) {
85830
- return typeof customValue === 'string' ? customValue : formatValue$1(customValue, seenValues);
86828
+ return typeof customValue === 'string' ? customValue : formatValue(customValue, seenValues);
85831
86829
  }
85832
86830
  } else if (Array.isArray(value)) {
85833
- return formatArray$1(value, seenValues);
86831
+ return formatArray(value, seenValues);
85834
86832
  }
85835
86833
 
85836
- return formatObject$1(value, seenValues);
86834
+ return formatObject(value, seenValues);
85837
86835
  }
85838
86836
 
85839
- function formatObject$1(object, seenValues) {
86837
+ function formatObject(object, seenValues) {
85840
86838
  var keys = Object.keys(object);
85841
86839
 
85842
86840
  if (keys.length === 0) {
85843
86841
  return '{}';
85844
86842
  }
85845
86843
 
85846
- if (seenValues.length > MAX_RECURSIVE_DEPTH$1) {
85847
- return '[' + getObjectTag$1(object) + ']';
86844
+ if (seenValues.length > MAX_RECURSIVE_DEPTH) {
86845
+ return '[' + getObjectTag(object) + ']';
85848
86846
  }
85849
86847
 
85850
86848
  var properties = keys.map(function (key) {
85851
- var value = formatValue$1(object[key], seenValues);
86849
+ var value = formatValue(object[key], seenValues);
85852
86850
  return key + ': ' + value;
85853
86851
  });
85854
86852
  return '{ ' + properties.join(', ') + ' }';
85855
86853
  }
85856
86854
 
85857
- function formatArray$1(array, seenValues) {
86855
+ function formatArray(array, seenValues) {
85858
86856
  if (array.length === 0) {
85859
86857
  return '[]';
85860
86858
  }
85861
86859
 
85862
- if (seenValues.length > MAX_RECURSIVE_DEPTH$1) {
86860
+ if (seenValues.length > MAX_RECURSIVE_DEPTH) {
85863
86861
  return '[Array]';
85864
86862
  }
85865
86863
 
85866
- var len = Math.min(MAX_ARRAY_LENGTH$1, array.length);
86864
+ var len = Math.min(MAX_ARRAY_LENGTH, array.length);
85867
86865
  var remaining = array.length - len;
85868
86866
  var items = [];
85869
86867
 
85870
86868
  for (var i = 0; i < len; ++i) {
85871
- items.push(formatValue$1(array[i], seenValues));
86869
+ items.push(formatValue(array[i], seenValues));
85872
86870
  }
85873
86871
 
85874
86872
  if (remaining === 1) {
@@ -85892,7 +86890,7 @@ function getCustomFn(object) {
85892
86890
  }
85893
86891
  }
85894
86892
 
85895
- function getObjectTag$1(object) {
86893
+ function getObjectTag(object) {
85896
86894
  var tag = Object.prototype.toString.call(object).replace(/^\[object /, '').replace(/]$/, '');
85897
86895
 
85898
86896
  if (tag === 'Object' && typeof object.constructor === 'function') {
@@ -85911,7 +86909,7 @@ function getObjectTag$1(object) {
85911
86909
  * relevant functions to be called during the visitor's traversal.
85912
86910
  */
85913
86911
 
85914
- var QueryDocumentKeys$1$1 = {
86912
+ var QueryDocumentKeys$1 = {
85915
86913
  Name: [],
85916
86914
  Document: ['definitions'],
85917
86915
  OperationDefinition: ['name', 'variableDefinitions', 'directives', 'selectionSet'],
@@ -85958,7 +86956,7 @@ var QueryDocumentKeys$1$1 = {
85958
86956
  EnumTypeExtension: ['name', 'directives', 'values'],
85959
86957
  InputObjectTypeExtension: ['name', 'directives', 'fields']
85960
86958
  };
85961
- var BREAK$1 = Object.freeze({});
86959
+ var BREAK = Object.freeze({});
85962
86960
  /**
85963
86961
  * visit() will walk through an AST using a depth-first traversal, calling
85964
86962
  * the visitor's enter function at each node in the traversal, and calling the
@@ -86046,8 +87044,8 @@ var BREAK$1 = Object.freeze({});
86046
87044
  * })
86047
87045
  */
86048
87046
 
86049
- function visit$1(root, visitor) {
86050
- var visitorKeys = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : QueryDocumentKeys$1$1;
87047
+ function visit(root, visitor) {
87048
+ var visitorKeys = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : QueryDocumentKeys$1;
86051
87049
 
86052
87050
  /* eslint-disable no-undef-init */
86053
87051
  var stack = undefined;
@@ -86127,8 +87125,8 @@ function visit$1(root, visitor) {
86127
87125
  var result = void 0;
86128
87126
 
86129
87127
  if (!Array.isArray(node)) {
86130
- if (!isNode$1(node)) {
86131
- throw new Error("Invalid AST Node: ".concat(inspect$1(node), "."));
87128
+ if (!isNode(node)) {
87129
+ throw new Error("Invalid AST Node: ".concat(inspect(node), "."));
86132
87130
  }
86133
87131
 
86134
87132
  var visitFn = getVisitFn(visitor, node.kind, isLeaving);
@@ -86136,7 +87134,7 @@ function visit$1(root, visitor) {
86136
87134
  if (visitFn) {
86137
87135
  result = visitFn.call(visitor, node, key, parent, path, ancestors);
86138
87136
 
86139
- if (result === BREAK$1) {
87137
+ if (result === BREAK) {
86140
87138
  break;
86141
87139
  }
86142
87140
 
@@ -86149,7 +87147,7 @@ function visit$1(root, visitor) {
86149
87147
  edits.push([key, result]);
86150
87148
 
86151
87149
  if (!isLeaving) {
86152
- if (isNode$1(result)) {
87150
+ if (isNode(result)) {
86153
87151
  node = result;
86154
87152
  } else {
86155
87153
  path.pop();
@@ -86325,7 +87323,7 @@ function decodeV1Cursor(base64cursor) {
86325
87323
  function selectionIncludesHasNextPage(selections, fragments) {
86326
87324
  for (let selection of selections) {
86327
87325
  switch (selection.kind) {
86328
- case Kind$1$1.FIELD: {
87326
+ case Kind$1.FIELD: {
86329
87327
  if (selection.name.value === 'pageInfo') {
86330
87328
  if (!selection.selectionSet)
86331
87329
  continue;
@@ -86336,7 +87334,7 @@ function selectionIncludesHasNextPage(selections, fragments) {
86336
87334
  }
86337
87335
  break;
86338
87336
  }
86339
- case Kind$1$1.FRAGMENT_SPREAD: {
87337
+ case Kind$1.FRAGMENT_SPREAD: {
86340
87338
  let fragment = fragments[selection.name.value];
86341
87339
  if (!fragment)
86342
87340
  return false;
@@ -86345,7 +87343,7 @@ function selectionIncludesHasNextPage(selections, fragments) {
86345
87343
  }
86346
87344
  break;
86347
87345
  }
86348
- case Kind$1$1.INLINE_FRAGMENT:
87346
+ case Kind$1.INLINE_FRAGMENT:
86349
87347
  if (selectionIncludesHasNextPage(selection.selectionSet.selections, fragments)) {
86350
87348
  return true;
86351
87349
  }
@@ -89460,7 +90458,7 @@ function enforceFieldLimitOnAST(ast, variables, objectInfos, enforcedLimits = {
89460
90458
  }) {
89461
90459
  const { maxFieldCount, maxRecordLimit, singleRecordField, maxFieldSize } = enforcedLimits;
89462
90460
  const fieldsWithDataType = findFieldTypeInObjectInfo(objectInfos, singleRecordField);
89463
- const documentNode = visit$1(ast, {
90461
+ const documentNode = visit(ast, {
89464
90462
  Field(node) {
89465
90463
  // is it a record query?
89466
90464
  if (!isRecordQuery(node)) {
@@ -89510,7 +90508,7 @@ function enforceFieldLimitOnAST(ast, variables, objectInfos, enforcedLimits = {
89510
90508
  return {
89511
90509
  ...argument,
89512
90510
  value: {
89513
- kind: Kind$1$1.INT,
90511
+ kind: Kind$1.INT,
89514
90512
  value: recordLimit,
89515
90513
  },
89516
90514
  };
@@ -90140,7 +91138,7 @@ const recordIdGenerator = (id) => {
90140
91138
 
90141
91139
  const { keys: keys$2$1, create: create$2$1, assign: assign$1$1, entries: entries$2 } = Object;
90142
91140
  const { stringify: stringify$4, parse: parse$4 } = JSON;
90143
- const { push: push$3, join: join$1, slice } = Array.prototype;
91141
+ const { push: push$3, join, slice } = Array.prototype;
90144
91142
  const { isArray: isArray$2$1, from } = Array;
90145
91143
 
90146
91144
  function ldsParamsToString(params) {
@@ -90321,10 +91319,10 @@ class ScopedFields {
90321
91319
  fields.forEach(this.addField, this);
90322
91320
  }
90323
91321
  toQueryParameterValue() {
90324
- const joinedFields = join$1.call(Object.keys(this.fields), SEPARATOR_BETWEEN_FIELDS);
91322
+ const joinedFields = join.call(Object.keys(this.fields), SEPARATOR_BETWEEN_FIELDS);
90325
91323
  return this.isUnScoped()
90326
91324
  ? joinedFields
90327
- : join$1.call([this.scope, joinedFields], SEPARATOR_BETWEEN_SCOPE_AND_FIELDS);
91325
+ : join.call([this.scope, joinedFields], SEPARATOR_BETWEEN_SCOPE_AND_FIELDS);
90328
91326
  }
90329
91327
  toQueryParams() {
90330
91328
  return this.isUnScoped() ? Object.keys(this.fields) : this.toQueryParameterValue();
@@ -90392,7 +91390,7 @@ class ScopedFieldsCollection {
90392
91390
  if (chunk !== undefined)
90393
91391
  result.push(chunk);
90394
91392
  }
90395
- return join$1.call(result, SEPARATOR_BETWEEN_SCOPES);
91393
+ return join.call(result, SEPARATOR_BETWEEN_SCOPES);
90396
91394
  }
90397
91395
  /**
90398
91396
  * split the ScopedFields into multiple ScopedFields
@@ -90569,7 +91567,7 @@ function buildAggregateUiUrl(params, resourceRequest) {
90569
91567
  queryString.push(`${key}=${isArray$2$1(value) ? value.join(',') : value}`);
90570
91568
  }
90571
91569
  }
90572
- return `${resourceRequest.baseUri}${resourceRequest.basePath}?${join$1.call(queryString, '&')}`;
91570
+ return `${resourceRequest.baseUri}${resourceRequest.basePath}?${join.call(queryString, '&')}`;
90573
91571
  }
90574
91572
  function shouldUseAggregateUiForFields(fieldsArray, optionalFieldsArray, maxLengthPerChunk) {
90575
91573
  return fieldsArray.length + optionalFieldsArray.length >= maxLengthPerChunk;
@@ -97605,7 +98603,7 @@ function buildServiceDescriptor$b(luvio) {
97605
98603
  },
97606
98604
  };
97607
98605
  }
97608
- // version: 1.405.0-13ac2fd8fa
98606
+ // version: 1.410.0-7c228ee347
97609
98607
 
97610
98608
  /**
97611
98609
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -97631,908 +98629,14 @@ function buildServiceDescriptor$a(notifyRecordUpdateAvailable, getNormalizedLuvi
97631
98629
  },
97632
98630
  };
97633
98631
  }
97634
- // version: 1.405.0-13ac2fd8fa
97635
-
97636
- /*!
97637
- * Copyright (c) 2022, Salesforce, Inc.,
97638
- * All rights reserved.
97639
- * For full license text, see the LICENSE.txt file
97640
- */
97641
- function devAssert(condition, message) {
97642
- const booleanCondition = Boolean(condition);
97643
- if (!booleanCondition) {
97644
- throw new Error(message);
97645
- }
97646
- }
97647
- const MAX_ARRAY_LENGTH = 10;
97648
- const MAX_RECURSIVE_DEPTH = 2;
97649
- function inspect(value) {
97650
- return formatValue(value, []);
97651
- }
97652
- function formatValue(value, seenValues) {
97653
- switch (typeof value) {
97654
- case "string":
97655
- return JSON.stringify(value);
97656
- case "function":
97657
- return value.name ? `[function ${value.name}]` : "[function]";
97658
- case "object":
97659
- return formatObjectValue(value, seenValues);
97660
- default:
97661
- return String(value);
97662
- }
97663
- }
97664
- function formatObjectValue(value, previouslySeenValues) {
97665
- if (value === null) {
97666
- return "null";
97667
- }
97668
- if (previouslySeenValues.includes(value)) {
97669
- return "[Circular]";
97670
- }
97671
- const seenValues = [...previouslySeenValues, value];
97672
- if (isJSONable(value)) {
97673
- const jsonValue = value.toJSON();
97674
- if (jsonValue !== value) {
97675
- return typeof jsonValue === "string" ? jsonValue : formatValue(jsonValue, seenValues);
97676
- }
97677
- } else if (Array.isArray(value)) {
97678
- return formatArray(value, seenValues);
97679
- }
97680
- return formatObject(value, seenValues);
97681
- }
97682
- function isJSONable(value) {
97683
- return typeof value.toJSON === "function";
97684
- }
97685
- function formatObject(object, seenValues) {
97686
- const entries = Object.entries(object);
97687
- if (entries.length === 0) {
97688
- return "{}";
97689
- }
97690
- if (seenValues.length > MAX_RECURSIVE_DEPTH) {
97691
- return "[" + getObjectTag(object) + "]";
97692
- }
97693
- const properties = entries.map(
97694
- ([key, value]) => key + ": " + formatValue(value, seenValues)
97695
- );
97696
- return "{ " + properties.join(", ") + " }";
97697
- }
97698
- function formatArray(array, seenValues) {
97699
- if (array.length === 0) {
97700
- return "[]";
97701
- }
97702
- if (seenValues.length > MAX_RECURSIVE_DEPTH) {
97703
- return "[Array]";
97704
- }
97705
- const len = Math.min(MAX_ARRAY_LENGTH, array.length);
97706
- const remaining = array.length - len;
97707
- const items = [];
97708
- for (let i = 0; i < len; ++i) {
97709
- items.push(formatValue(array[i], seenValues));
97710
- }
97711
- if (remaining === 1) {
97712
- items.push("... 1 more item");
97713
- } else if (remaining > 1) {
97714
- items.push(`... ${remaining} more items`);
97715
- }
97716
- return "[" + items.join(", ") + "]";
97717
- }
97718
- function getObjectTag(object) {
97719
- const tag = Object.prototype.toString.call(object).replace(/^\[object /, "").replace(/]$/, "");
97720
- if (tag === "Object" && typeof object.constructor === "function") {
97721
- const name = object.constructor.name;
97722
- if (typeof name === "string" && name !== "") {
97723
- return name;
97724
- }
97725
- }
97726
- return tag;
97727
- }
97728
- var Kind$2;
97729
- (function(Kind2) {
97730
- Kind2["NAME"] = "Name";
97731
- Kind2["DOCUMENT"] = "Document";
97732
- Kind2["OPERATION_DEFINITION"] = "OperationDefinition";
97733
- Kind2["VARIABLE_DEFINITION"] = "VariableDefinition";
97734
- Kind2["SELECTION_SET"] = "SelectionSet";
97735
- Kind2["FIELD"] = "Field";
97736
- Kind2["ARGUMENT"] = "Argument";
97737
- Kind2["FRAGMENT_SPREAD"] = "FragmentSpread";
97738
- Kind2["INLINE_FRAGMENT"] = "InlineFragment";
97739
- Kind2["FRAGMENT_DEFINITION"] = "FragmentDefinition";
97740
- Kind2["VARIABLE"] = "Variable";
97741
- Kind2["INT"] = "IntValue";
97742
- Kind2["FLOAT"] = "FloatValue";
97743
- Kind2["STRING"] = "StringValue";
97744
- Kind2["BOOLEAN"] = "BooleanValue";
97745
- Kind2["NULL"] = "NullValue";
97746
- Kind2["ENUM"] = "EnumValue";
97747
- Kind2["LIST"] = "ListValue";
97748
- Kind2["OBJECT"] = "ObjectValue";
97749
- Kind2["OBJECT_FIELD"] = "ObjectField";
97750
- Kind2["DIRECTIVE"] = "Directive";
97751
- Kind2["NAMED_TYPE"] = "NamedType";
97752
- Kind2["LIST_TYPE"] = "ListType";
97753
- Kind2["NON_NULL_TYPE"] = "NonNullType";
97754
- Kind2["SCHEMA_DEFINITION"] = "SchemaDefinition";
97755
- Kind2["OPERATION_TYPE_DEFINITION"] = "OperationTypeDefinition";
97756
- Kind2["SCALAR_TYPE_DEFINITION"] = "ScalarTypeDefinition";
97757
- Kind2["OBJECT_TYPE_DEFINITION"] = "ObjectTypeDefinition";
97758
- Kind2["FIELD_DEFINITION"] = "FieldDefinition";
97759
- Kind2["INPUT_VALUE_DEFINITION"] = "InputValueDefinition";
97760
- Kind2["INTERFACE_TYPE_DEFINITION"] = "InterfaceTypeDefinition";
97761
- Kind2["UNION_TYPE_DEFINITION"] = "UnionTypeDefinition";
97762
- Kind2["ENUM_TYPE_DEFINITION"] = "EnumTypeDefinition";
97763
- Kind2["ENUM_VALUE_DEFINITION"] = "EnumValueDefinition";
97764
- Kind2["INPUT_OBJECT_TYPE_DEFINITION"] = "InputObjectTypeDefinition";
97765
- Kind2["DIRECTIVE_DEFINITION"] = "DirectiveDefinition";
97766
- Kind2["SCHEMA_EXTENSION"] = "SchemaExtension";
97767
- Kind2["SCALAR_TYPE_EXTENSION"] = "ScalarTypeExtension";
97768
- Kind2["OBJECT_TYPE_EXTENSION"] = "ObjectTypeExtension";
97769
- Kind2["INTERFACE_TYPE_EXTENSION"] = "InterfaceTypeExtension";
97770
- Kind2["UNION_TYPE_EXTENSION"] = "UnionTypeExtension";
97771
- Kind2["ENUM_TYPE_EXTENSION"] = "EnumTypeExtension";
97772
- Kind2["INPUT_OBJECT_TYPE_EXTENSION"] = "InputObjectTypeExtension";
97773
- })(Kind$2 || (Kind$2 = {}));
97774
- var TokenKind$2;
97775
- (function(TokenKind2) {
97776
- TokenKind2["SOF"] = "<SOF>";
97777
- TokenKind2["EOF"] = "<EOF>";
97778
- TokenKind2["BANG"] = "!";
97779
- TokenKind2["DOLLAR"] = "$";
97780
- TokenKind2["AMP"] = "&";
97781
- TokenKind2["PAREN_L"] = "(";
97782
- TokenKind2["PAREN_R"] = ")";
97783
- TokenKind2["SPREAD"] = "...";
97784
- TokenKind2["COLON"] = ":";
97785
- TokenKind2["EQUALS"] = "=";
97786
- TokenKind2["AT"] = "@";
97787
- TokenKind2["BRACKET_L"] = "[";
97788
- TokenKind2["BRACKET_R"] = "]";
97789
- TokenKind2["BRACE_L"] = "{";
97790
- TokenKind2["PIPE"] = "|";
97791
- TokenKind2["BRACE_R"] = "}";
97792
- TokenKind2["NAME"] = "Name";
97793
- TokenKind2["INT"] = "Int";
97794
- TokenKind2["FLOAT"] = "Float";
97795
- TokenKind2["STRING"] = "String";
97796
- TokenKind2["BLOCK_STRING"] = "BlockString";
97797
- TokenKind2["COMMENT"] = "Comment";
97798
- })(TokenKind$2 || (TokenKind$2 = {}));
97799
- const QueryDocumentKeys$2 = {
97800
- Name: [],
97801
- Document: ["definitions"],
97802
- OperationDefinition: [
97803
- "name",
97804
- "variableDefinitions",
97805
- "directives",
97806
- "selectionSet"
97807
- ],
97808
- VariableDefinition: ["variable", "type", "defaultValue", "directives"],
97809
- Variable: ["name"],
97810
- SelectionSet: ["selections"],
97811
- Field: ["alias", "name", "arguments", "directives", "selectionSet"],
97812
- Argument: ["name", "value"],
97813
- FragmentSpread: ["name", "directives"],
97814
- InlineFragment: ["typeCondition", "directives", "selectionSet"],
97815
- FragmentDefinition: [
97816
- "name",
97817
- // Note: fragment variable definitions are deprecated and will removed in v17.0.0
97818
- "variableDefinitions",
97819
- "typeCondition",
97820
- "directives",
97821
- "selectionSet"
97822
- ],
97823
- IntValue: [],
97824
- FloatValue: [],
97825
- StringValue: [],
97826
- BooleanValue: [],
97827
- NullValue: [],
97828
- EnumValue: [],
97829
- ListValue: ["values"],
97830
- ObjectValue: ["fields"],
97831
- ObjectField: ["name", "value"],
97832
- Directive: ["name", "arguments"],
97833
- NamedType: ["name"],
97834
- ListType: ["type"],
97835
- NonNullType: ["type"],
97836
- SchemaDefinition: ["description", "directives", "operationTypes"],
97837
- OperationTypeDefinition: ["type"],
97838
- ScalarTypeDefinition: ["description", "name", "directives"],
97839
- ObjectTypeDefinition: [
97840
- "description",
97841
- "name",
97842
- "interfaces",
97843
- "directives",
97844
- "fields"
97845
- ],
97846
- FieldDefinition: ["description", "name", "arguments", "type", "directives"],
97847
- InputValueDefinition: [
97848
- "description",
97849
- "name",
97850
- "type",
97851
- "defaultValue",
97852
- "directives"
97853
- ],
97854
- InterfaceTypeDefinition: [
97855
- "description",
97856
- "name",
97857
- "interfaces",
97858
- "directives",
97859
- "fields"
97860
- ],
97861
- UnionTypeDefinition: ["description", "name", "directives", "types"],
97862
- EnumTypeDefinition: ["description", "name", "directives", "values"],
97863
- EnumValueDefinition: ["description", "name", "directives"],
97864
- InputObjectTypeDefinition: ["description", "name", "directives", "fields"],
97865
- DirectiveDefinition: ["description", "name", "arguments", "locations"],
97866
- SchemaExtension: ["directives", "operationTypes"],
97867
- ScalarTypeExtension: ["name", "directives"],
97868
- ObjectTypeExtension: ["name", "interfaces", "directives", "fields"],
97869
- InterfaceTypeExtension: ["name", "interfaces", "directives", "fields"],
97870
- UnionTypeExtension: ["name", "directives", "types"],
97871
- EnumTypeExtension: ["name", "directives", "values"],
97872
- InputObjectTypeExtension: ["name", "directives", "fields"]
97873
- };
97874
- const kindValues = new Set(Object.keys(QueryDocumentKeys$2));
97875
- function isNode(maybeNode) {
97876
- const maybeKind = maybeNode === null || maybeNode === void 0 ? void 0 : maybeNode.kind;
97877
- return typeof maybeKind === "string" && kindValues.has(maybeKind);
97878
- }
97879
- var OperationTypeNode$2;
97880
- (function(OperationTypeNode2) {
97881
- OperationTypeNode2["QUERY"] = "query";
97882
- OperationTypeNode2["MUTATION"] = "mutation";
97883
- OperationTypeNode2["SUBSCRIPTION"] = "subscription";
97884
- })(OperationTypeNode$2 || (OperationTypeNode$2 = {}));
97885
- function isWhiteSpace(code) {
97886
- return code === 9 || code === 32;
97887
- }
97888
- function printBlockString(value, options) {
97889
- const escapedValue = value.replace(/"""/g, '\\"""');
97890
- const lines = escapedValue.split(/\r\n|[\n\r]/g);
97891
- const isSingleLine = lines.length === 1;
97892
- const forceLeadingNewLine = lines.length > 1 && lines.slice(1).every((line) => line.length === 0 || isWhiteSpace(line.charCodeAt(0)));
97893
- const hasTrailingTripleQuotes = escapedValue.endsWith('\\"""');
97894
- const hasTrailingQuote = value.endsWith('"') && !hasTrailingTripleQuotes;
97895
- const hasTrailingSlash = value.endsWith("\\");
97896
- const forceTrailingNewline = hasTrailingQuote || hasTrailingSlash;
97897
- const printAsMultipleLines = !(options !== null && options !== void 0 && options.minimize) && // add leading and trailing new lines only if it improves readability
97898
- (!isSingleLine || value.length > 70 || forceTrailingNewline || forceLeadingNewLine || hasTrailingTripleQuotes);
97899
- let result = "";
97900
- const skipLeadingNewLine = isSingleLine && isWhiteSpace(value.charCodeAt(0));
97901
- if (printAsMultipleLines && !skipLeadingNewLine || forceLeadingNewLine) {
97902
- result += "\n";
97903
- }
97904
- result += escapedValue;
97905
- if (printAsMultipleLines || forceTrailingNewline) {
97906
- result += "\n";
97907
- }
97908
- return '"""' + result + '"""';
97909
- }
97910
- var DirectiveLocation$2;
97911
- (function(DirectiveLocation2) {
97912
- DirectiveLocation2["QUERY"] = "QUERY";
97913
- DirectiveLocation2["MUTATION"] = "MUTATION";
97914
- DirectiveLocation2["SUBSCRIPTION"] = "SUBSCRIPTION";
97915
- DirectiveLocation2["FIELD"] = "FIELD";
97916
- DirectiveLocation2["FRAGMENT_DEFINITION"] = "FRAGMENT_DEFINITION";
97917
- DirectiveLocation2["FRAGMENT_SPREAD"] = "FRAGMENT_SPREAD";
97918
- DirectiveLocation2["INLINE_FRAGMENT"] = "INLINE_FRAGMENT";
97919
- DirectiveLocation2["VARIABLE_DEFINITION"] = "VARIABLE_DEFINITION";
97920
- DirectiveLocation2["SCHEMA"] = "SCHEMA";
97921
- DirectiveLocation2["SCALAR"] = "SCALAR";
97922
- DirectiveLocation2["OBJECT"] = "OBJECT";
97923
- DirectiveLocation2["FIELD_DEFINITION"] = "FIELD_DEFINITION";
97924
- DirectiveLocation2["ARGUMENT_DEFINITION"] = "ARGUMENT_DEFINITION";
97925
- DirectiveLocation2["INTERFACE"] = "INTERFACE";
97926
- DirectiveLocation2["UNION"] = "UNION";
97927
- DirectiveLocation2["ENUM"] = "ENUM";
97928
- DirectiveLocation2["ENUM_VALUE"] = "ENUM_VALUE";
97929
- DirectiveLocation2["INPUT_OBJECT"] = "INPUT_OBJECT";
97930
- DirectiveLocation2["INPUT_FIELD_DEFINITION"] = "INPUT_FIELD_DEFINITION";
97931
- })(DirectiveLocation$2 || (DirectiveLocation$2 = {}));
97932
- function printString(str) {
97933
- return `"${str.replace(escapedRegExp, escapedReplacer)}"`;
97934
- }
97935
- const escapedRegExp = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
97936
- function escapedReplacer(str) {
97937
- return escapeSequences[str.charCodeAt(0)];
97938
- }
97939
- const escapeSequences = [
97940
- "\\u0000",
97941
- "\\u0001",
97942
- "\\u0002",
97943
- "\\u0003",
97944
- "\\u0004",
97945
- "\\u0005",
97946
- "\\u0006",
97947
- "\\u0007",
97948
- "\\b",
97949
- "\\t",
97950
- "\\n",
97951
- "\\u000B",
97952
- "\\f",
97953
- "\\r",
97954
- "\\u000E",
97955
- "\\u000F",
97956
- "\\u0010",
97957
- "\\u0011",
97958
- "\\u0012",
97959
- "\\u0013",
97960
- "\\u0014",
97961
- "\\u0015",
97962
- "\\u0016",
97963
- "\\u0017",
97964
- "\\u0018",
97965
- "\\u0019",
97966
- "\\u001A",
97967
- "\\u001B",
97968
- "\\u001C",
97969
- "\\u001D",
97970
- "\\u001E",
97971
- "\\u001F",
97972
- "",
97973
- "",
97974
- '\\"',
97975
- "",
97976
- "",
97977
- "",
97978
- "",
97979
- "",
97980
- "",
97981
- "",
97982
- "",
97983
- "",
97984
- "",
97985
- "",
97986
- "",
97987
- "",
97988
- // 2F
97989
- "",
97990
- "",
97991
- "",
97992
- "",
97993
- "",
97994
- "",
97995
- "",
97996
- "",
97997
- "",
97998
- "",
97999
- "",
98000
- "",
98001
- "",
98002
- "",
98003
- "",
98004
- "",
98005
- // 3F
98006
- "",
98007
- "",
98008
- "",
98009
- "",
98010
- "",
98011
- "",
98012
- "",
98013
- "",
98014
- "",
98015
- "",
98016
- "",
98017
- "",
98018
- "",
98019
- "",
98020
- "",
98021
- "",
98022
- // 4F
98023
- "",
98024
- "",
98025
- "",
98026
- "",
98027
- "",
98028
- "",
98029
- "",
98030
- "",
98031
- "",
98032
- "",
98033
- "",
98034
- "",
98035
- "\\\\",
98036
- "",
98037
- "",
98038
- "",
98039
- // 5F
98040
- "",
98041
- "",
98042
- "",
98043
- "",
98044
- "",
98045
- "",
98046
- "",
98047
- "",
98048
- "",
98049
- "",
98050
- "",
98051
- "",
98052
- "",
98053
- "",
98054
- "",
98055
- "",
98056
- // 6F
98057
- "",
98058
- "",
98059
- "",
98060
- "",
98061
- "",
98062
- "",
98063
- "",
98064
- "",
98065
- "",
98066
- "",
98067
- "",
98068
- "",
98069
- "",
98070
- "",
98071
- "",
98072
- "\\u007F",
98073
- "\\u0080",
98074
- "\\u0081",
98075
- "\\u0082",
98076
- "\\u0083",
98077
- "\\u0084",
98078
- "\\u0085",
98079
- "\\u0086",
98080
- "\\u0087",
98081
- "\\u0088",
98082
- "\\u0089",
98083
- "\\u008A",
98084
- "\\u008B",
98085
- "\\u008C",
98086
- "\\u008D",
98087
- "\\u008E",
98088
- "\\u008F",
98089
- "\\u0090",
98090
- "\\u0091",
98091
- "\\u0092",
98092
- "\\u0093",
98093
- "\\u0094",
98094
- "\\u0095",
98095
- "\\u0096",
98096
- "\\u0097",
98097
- "\\u0098",
98098
- "\\u0099",
98099
- "\\u009A",
98100
- "\\u009B",
98101
- "\\u009C",
98102
- "\\u009D",
98103
- "\\u009E",
98104
- "\\u009F"
98105
- ];
98106
- const BREAK = Object.freeze({});
98107
- function visit(root, visitor, visitorKeys = QueryDocumentKeys$2) {
98108
- const enterLeaveMap = /* @__PURE__ */ new Map();
98109
- for (const kind of Object.values(Kind$2)) {
98110
- enterLeaveMap.set(kind, getEnterLeaveForKind(visitor, kind));
98111
- }
98112
- let stack = void 0;
98113
- let inArray = Array.isArray(root);
98114
- let keys = [root];
98115
- let index = -1;
98116
- let edits = [];
98117
- let node = root;
98118
- let key = void 0;
98119
- let parent = void 0;
98120
- const path = [];
98121
- const ancestors = [];
98122
- do {
98123
- index++;
98124
- const isLeaving = index === keys.length;
98125
- const isEdited = isLeaving && edits.length !== 0;
98126
- if (isLeaving) {
98127
- key = ancestors.length === 0 ? void 0 : path[path.length - 1];
98128
- node = parent;
98129
- parent = ancestors.pop();
98130
- if (isEdited) {
98131
- if (inArray) {
98132
- node = node.slice();
98133
- let editOffset = 0;
98134
- for (const [editKey, editValue] of edits) {
98135
- const arrayKey = editKey - editOffset;
98136
- if (editValue === null) {
98137
- node.splice(arrayKey, 1);
98138
- editOffset++;
98139
- } else {
98140
- node[arrayKey] = editValue;
98141
- }
98142
- }
98143
- } else {
98144
- node = { ...node };
98145
- for (const [editKey, editValue] of edits) {
98146
- node[editKey] = editValue;
98147
- }
98148
- }
98149
- }
98150
- index = stack.index;
98151
- keys = stack.keys;
98152
- edits = stack.edits;
98153
- inArray = stack.inArray;
98154
- stack = stack.prev;
98155
- } else if (parent) {
98156
- key = inArray ? index : keys[index];
98157
- node = parent[key];
98158
- if (node === null || node === void 0) {
98159
- continue;
98160
- }
98161
- path.push(key);
98162
- }
98163
- let result;
98164
- if (!Array.isArray(node)) {
98165
- var _enterLeaveMap$get, _enterLeaveMap$get2;
98166
- isNode(node) || devAssert(false, `Invalid AST Node: ${inspect(node)}.`);
98167
- const visitFn = isLeaving ? (_enterLeaveMap$get = enterLeaveMap.get(node.kind)) === null || _enterLeaveMap$get === void 0 ? void 0 : _enterLeaveMap$get.leave : (_enterLeaveMap$get2 = enterLeaveMap.get(node.kind)) === null || _enterLeaveMap$get2 === void 0 ? void 0 : _enterLeaveMap$get2.enter;
98168
- result = visitFn === null || visitFn === void 0 ? void 0 : visitFn.call(visitor, node, key, parent, path, ancestors);
98169
- if (result === BREAK) {
98170
- break;
98171
- }
98172
- if (result === false) {
98173
- if (!isLeaving) {
98174
- path.pop();
98175
- continue;
98176
- }
98177
- } else if (result !== void 0) {
98178
- edits.push([key, result]);
98179
- if (!isLeaving) {
98180
- if (isNode(result)) {
98181
- node = result;
98182
- } else {
98183
- path.pop();
98184
- continue;
98185
- }
98186
- }
98187
- }
98188
- }
98189
- if (result === void 0 && isEdited) {
98190
- edits.push([key, node]);
98191
- }
98192
- if (isLeaving) {
98193
- path.pop();
98194
- } else {
98195
- var _node$kind;
98196
- stack = {
98197
- inArray,
98198
- index,
98199
- keys,
98200
- edits,
98201
- prev: stack
98202
- };
98203
- inArray = Array.isArray(node);
98204
- keys = inArray ? node : (_node$kind = visitorKeys[node.kind]) !== null && _node$kind !== void 0 ? _node$kind : [];
98205
- index = -1;
98206
- edits = [];
98207
- if (parent) {
98208
- ancestors.push(parent);
98209
- }
98210
- parent = node;
98211
- }
98212
- } while (stack !== void 0);
98213
- if (edits.length !== 0) {
98214
- return edits[edits.length - 1][1];
98215
- }
98216
- return root;
98217
- }
98218
- function getEnterLeaveForKind(visitor, kind) {
98219
- const kindVisitor = visitor[kind];
98220
- if (typeof kindVisitor === "object") {
98221
- return kindVisitor;
98222
- } else if (typeof kindVisitor === "function") {
98223
- return {
98224
- enter: kindVisitor,
98225
- leave: void 0
98226
- };
98227
- }
98228
- return {
98229
- enter: visitor.enter,
98230
- leave: visitor.leave
98231
- };
98232
- }
98233
- function print(ast) {
98234
- return visit(ast, printDocASTReducer);
98235
- }
98236
- const MAX_LINE_LENGTH = 80;
98237
- const printDocASTReducer = {
98238
- Name: {
98239
- leave: (node) => node.value
98240
- },
98241
- Variable: {
98242
- leave: (node) => "$" + node.name
98243
- },
98244
- // Document
98245
- Document: {
98246
- leave: (node) => join(node.definitions, "\n\n")
98247
- },
98248
- OperationDefinition: {
98249
- leave(node) {
98250
- const varDefs = wrap("(", join(node.variableDefinitions, ", "), ")");
98251
- const prefix = join(
98252
- [
98253
- node.operation,
98254
- join([node.name, varDefs]),
98255
- join(node.directives, " ")
98256
- ],
98257
- " "
98258
- );
98259
- return (prefix === "query" ? "" : prefix + " ") + node.selectionSet;
98260
- }
98261
- },
98262
- VariableDefinition: {
98263
- leave: ({ variable, type, defaultValue, directives }) => variable + ": " + type + wrap(" = ", defaultValue) + wrap(" ", join(directives, " "))
98264
- },
98265
- SelectionSet: {
98266
- leave: ({ selections }) => block(selections)
98267
- },
98268
- Field: {
98269
- leave({ alias, name, arguments: args, directives, selectionSet }) {
98270
- const prefix = wrap("", alias, ": ") + name;
98271
- let argsLine = prefix + wrap("(", join(args, ", "), ")");
98272
- if (argsLine.length > MAX_LINE_LENGTH) {
98273
- argsLine = prefix + wrap("(\n", indent(join(args, "\n")), "\n)");
98274
- }
98275
- return join([argsLine, join(directives, " "), selectionSet], " ");
98276
- }
98277
- },
98278
- Argument: {
98279
- leave: ({ name, value }) => name + ": " + value
98280
- },
98281
- // Fragments
98282
- FragmentSpread: {
98283
- leave: ({ name, directives }) => "..." + name + wrap(" ", join(directives, " "))
98284
- },
98285
- InlineFragment: {
98286
- leave: ({ typeCondition, directives, selectionSet }) => join(
98287
- [
98288
- "...",
98289
- wrap("on ", typeCondition),
98290
- join(directives, " "),
98291
- selectionSet
98292
- ],
98293
- " "
98294
- )
98295
- },
98296
- FragmentDefinition: {
98297
- leave: ({ name, typeCondition, variableDefinitions, directives, selectionSet }) => (
98298
- // or removed in the future.
98299
- `fragment ${name}${wrap("(", join(variableDefinitions, ", "), ")")} on ${typeCondition} ${wrap("", join(directives, " "), " ")}` + selectionSet
98300
- )
98301
- },
98302
- // Value
98303
- IntValue: {
98304
- leave: ({ value }) => value
98305
- },
98306
- FloatValue: {
98307
- leave: ({ value }) => value
98308
- },
98309
- StringValue: {
98310
- leave: ({ value, block: isBlockString }) => isBlockString ? printBlockString(value) : printString(value)
98311
- },
98312
- BooleanValue: {
98313
- leave: ({ value }) => value ? "true" : "false"
98314
- },
98315
- NullValue: {
98316
- leave: () => "null"
98317
- },
98318
- EnumValue: {
98319
- leave: ({ value }) => value
98320
- },
98321
- ListValue: {
98322
- leave: ({ values }) => "[" + join(values, ", ") + "]"
98323
- },
98324
- ObjectValue: {
98325
- leave: ({ fields }) => "{" + join(fields, ", ") + "}"
98326
- },
98327
- ObjectField: {
98328
- leave: ({ name, value }) => name + ": " + value
98329
- },
98330
- // Directive
98331
- Directive: {
98332
- leave: ({ name, arguments: args }) => "@" + name + wrap("(", join(args, ", "), ")")
98333
- },
98334
- // Type
98335
- NamedType: {
98336
- leave: ({ name }) => name
98337
- },
98338
- ListType: {
98339
- leave: ({ type }) => "[" + type + "]"
98340
- },
98341
- NonNullType: {
98342
- leave: ({ type }) => type + "!"
98343
- },
98344
- // Type System Definitions
98345
- SchemaDefinition: {
98346
- leave: ({ description, directives, operationTypes }) => wrap("", description, "\n") + join(["schema", join(directives, " "), block(operationTypes)], " ")
98347
- },
98348
- OperationTypeDefinition: {
98349
- leave: ({ operation, type }) => operation + ": " + type
98350
- },
98351
- ScalarTypeDefinition: {
98352
- leave: ({ description, name, directives }) => wrap("", description, "\n") + join(["scalar", name, join(directives, " ")], " ")
98353
- },
98354
- ObjectTypeDefinition: {
98355
- leave: ({ description, name, interfaces, directives, fields }) => wrap("", description, "\n") + join(
98356
- [
98357
- "type",
98358
- name,
98359
- wrap("implements ", join(interfaces, " & ")),
98360
- join(directives, " "),
98361
- block(fields)
98362
- ],
98363
- " "
98364
- )
98365
- },
98366
- FieldDefinition: {
98367
- leave: ({ description, name, arguments: args, type, directives }) => wrap("", description, "\n") + name + (hasMultilineItems(args) ? wrap("(\n", indent(join(args, "\n")), "\n)") : wrap("(", join(args, ", "), ")")) + ": " + type + wrap(" ", join(directives, " "))
98368
- },
98369
- InputValueDefinition: {
98370
- leave: ({ description, name, type, defaultValue, directives }) => wrap("", description, "\n") + join(
98371
- [name + ": " + type, wrap("= ", defaultValue), join(directives, " ")],
98372
- " "
98373
- )
98374
- },
98375
- InterfaceTypeDefinition: {
98376
- leave: ({ description, name, interfaces, directives, fields }) => wrap("", description, "\n") + join(
98377
- [
98378
- "interface",
98379
- name,
98380
- wrap("implements ", join(interfaces, " & ")),
98381
- join(directives, " "),
98382
- block(fields)
98383
- ],
98384
- " "
98385
- )
98386
- },
98387
- UnionTypeDefinition: {
98388
- leave: ({ description, name, directives, types }) => wrap("", description, "\n") + join(
98389
- ["union", name, join(directives, " "), wrap("= ", join(types, " | "))],
98390
- " "
98391
- )
98392
- },
98393
- EnumTypeDefinition: {
98394
- leave: ({ description, name, directives, values }) => wrap("", description, "\n") + join(["enum", name, join(directives, " "), block(values)], " ")
98395
- },
98396
- EnumValueDefinition: {
98397
- leave: ({ description, name, directives }) => wrap("", description, "\n") + join([name, join(directives, " ")], " ")
98398
- },
98399
- InputObjectTypeDefinition: {
98400
- leave: ({ description, name, directives, fields }) => wrap("", description, "\n") + join(["input", name, join(directives, " "), block(fields)], " ")
98401
- },
98402
- DirectiveDefinition: {
98403
- leave: ({ description, name, arguments: args, repeatable, locations }) => wrap("", description, "\n") + "directive @" + name + (hasMultilineItems(args) ? wrap("(\n", indent(join(args, "\n")), "\n)") : wrap("(", join(args, ", "), ")")) + (repeatable ? " repeatable" : "") + " on " + join(locations, " | ")
98404
- },
98405
- SchemaExtension: {
98406
- leave: ({ directives, operationTypes }) => join(
98407
- ["extend schema", join(directives, " "), block(operationTypes)],
98408
- " "
98409
- )
98410
- },
98411
- ScalarTypeExtension: {
98412
- leave: ({ name, directives }) => join(["extend scalar", name, join(directives, " ")], " ")
98413
- },
98414
- ObjectTypeExtension: {
98415
- leave: ({ name, interfaces, directives, fields }) => join(
98416
- [
98417
- "extend type",
98418
- name,
98419
- wrap("implements ", join(interfaces, " & ")),
98420
- join(directives, " "),
98421
- block(fields)
98422
- ],
98423
- " "
98424
- )
98425
- },
98426
- InterfaceTypeExtension: {
98427
- leave: ({ name, interfaces, directives, fields }) => join(
98428
- [
98429
- "extend interface",
98430
- name,
98431
- wrap("implements ", join(interfaces, " & ")),
98432
- join(directives, " "),
98433
- block(fields)
98434
- ],
98435
- " "
98436
- )
98437
- },
98438
- UnionTypeExtension: {
98439
- leave: ({ name, directives, types }) => join(
98440
- [
98441
- "extend union",
98442
- name,
98443
- join(directives, " "),
98444
- wrap("= ", join(types, " | "))
98445
- ],
98446
- " "
98447
- )
98448
- },
98449
- EnumTypeExtension: {
98450
- leave: ({ name, directives, values }) => join(["extend enum", name, join(directives, " "), block(values)], " ")
98451
- },
98452
- InputObjectTypeExtension: {
98453
- leave: ({ name, directives, fields }) => join(["extend input", name, join(directives, " "), block(fields)], " ")
98454
- }
98455
- };
98456
- function join(maybeArray, separator = "") {
98457
- var _maybeArray$filter$jo;
98458
- return (_maybeArray$filter$jo = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.filter((x) => x).join(separator)) !== null && _maybeArray$filter$jo !== void 0 ? _maybeArray$filter$jo : "";
98459
- }
98460
- function block(array) {
98461
- return wrap("{\n", indent(join(array, "\n")), "\n}");
98462
- }
98463
- function wrap(start, maybeString, end = "") {
98464
- return maybeString != null && maybeString !== "" ? start + maybeString + end : "";
98465
- }
98466
- function indent(str) {
98467
- return wrap(" ", str.replace(/\n/g, "\n "));
98468
- }
98469
- function hasMultilineItems(maybeArray) {
98470
- var _maybeArray$some;
98471
- return (_maybeArray$some = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.some((str) => str.includes("\n"))) !== null && _maybeArray$some !== void 0 ? _maybeArray$some : false;
98472
- }
98473
- const referenceMap$1 = /* @__PURE__ */ new WeakMap();
98474
- const astResolver$1 = function(astReference) {
98475
- return referenceMap$1.get(astReference);
98476
- };
98477
- function findExecutableOperation$1(document, operationName) {
98478
- const operations = document.definitions.filter(
98479
- (def) => def.kind === Kind$2.OPERATION_DEFINITION
98480
- );
98481
- if (operations.length === 0) {
98482
- return void 0;
98483
- }
98484
- if (operations.length === 1 && !operationName) {
98485
- return operations[0];
98486
- }
98487
- if (operationName) {
98488
- return operations.find((op) => {
98489
- var _a;
98490
- return ((_a = op.name) == null ? void 0 : _a.value) === operationName;
98491
- });
98492
- }
98493
- return void 0;
98494
- }
98495
- function validateGraphQLOperations(config, options) {
98496
- const executableOperation = findExecutableOperation$1(config.query, config.operationName);
98497
- if (executableOperation) {
98498
- const operationType = executableOperation.operation;
98499
- if (!options.acceptedOperations.includes(operationType)) {
98500
- const operationTypeCapitalized = operationType.charAt(0).toUpperCase() + operationType.slice(1);
98501
- throw new Error(
98502
- `${operationTypeCapitalized} operations are not supported in this context`
98503
- );
98504
- }
98505
- }
98506
- }
98507
- function resolveAst$1(ast) {
98508
- if (ast === null || ast === void 0) {
98509
- return;
98510
- }
98511
- const result = astResolver$1(ast);
98512
- if (result === void 0) {
98513
- throw new Error("Could not resolve AST. Did you parse the query with gql?");
98514
- }
98515
- return result;
98516
- }
98517
- function wrapConfigAndVerify(config, options) {
98518
- if (config == null ? void 0 : config.query) {
98519
- config = { ...config, query: resolveAst$1(config.query) };
98520
- if (config.query === void 0) {
98521
- throw new Error("Internal error in GraphQL adapter occurred: Unable to resolve query");
98522
- }
98523
- validateGraphQLOperations(config, {
98524
- acceptedOperations: (options == null ? void 0 : options.acceptedOperations) ?? ["query"]
98525
- });
98526
- }
98527
- return config;
98528
- }
98632
+ // version: 1.410.0-7c228ee347
98529
98633
 
98530
98634
  /*!
98531
98635
  * Copyright (c) 2022, Salesforce, Inc.,
98532
98636
  * All rights reserved.
98533
98637
  * For full license text, see the LICENSE.txt file
98534
98638
  */
98535
- function findExecutableOperation$2(input) {
98639
+ function findExecutableOperation$1(input) {
98536
98640
  const operations = input.query.definitions.filter(
98537
98641
  (def) => def.kind === Kind$2.OPERATION_DEFINITION
98538
98642
  );
@@ -98555,7 +98659,7 @@ function findExecutableOperation$2(input) {
98555
98659
  return err$1(new Error("Multiple operations found in query, and no operation name provided"));
98556
98660
  }
98557
98661
  function buildGraphQLInputExtension$1(input) {
98558
- const operationResult = findExecutableOperation$2(input);
98662
+ const operationResult = findExecutableOperation$1(input);
98559
98663
  if (operationResult.isErr()) {
98560
98664
  return err$1(operationResult.error);
98561
98665
  }
@@ -98588,7 +98692,7 @@ const TYPENAME_FIELD = {
98588
98692
  }
98589
98693
  };
98590
98694
  function addTypenameToDocument(doc) {
98591
- return visit(doc, {
98695
+ return visit$1(doc, {
98592
98696
  SelectionSet: {
98593
98697
  enter(node, _key, parent) {
98594
98698
  if (isOperationDefinition(parent)) {
@@ -98635,7 +98739,7 @@ class AuraGraphQLNormalizedCacheControlCommand extends AuraNormalizedCacheContro
98635
98739
  this.services = services;
98636
98740
  }
98637
98741
  get operationType() {
98638
- const operationResult = findExecutableOperation$2(this.config);
98742
+ const operationResult = findExecutableOperation$1(this.config);
98639
98743
  if (operationResult.isErr()) {
98640
98744
  return "mutation";
98641
98745
  }
@@ -98808,7 +98912,7 @@ class HttpGraphQLNormalizedCacheControlCommand extends HttpNormalizedCacheContro
98808
98912
  return this.documentRootType;
98809
98913
  }
98810
98914
  get operationType() {
98811
- const operationResult = findExecutableOperation$2(this.config);
98915
+ const operationResult = findExecutableOperation$1(this.config);
98812
98916
  if (operationResult.isErr()) {
98813
98917
  return "mutation";
98814
98918
  }
@@ -100014,7 +100118,7 @@ class GraphQLCommandWireAdapterConstructor extends CommandWireAdapterConstructor
100014
100118
  }
100015
100119
  update(config, _context) {
100016
100120
  this.unsubscribe();
100017
- const resolvedQuery = resolveAst$1(config.query);
100121
+ const resolvedQuery = resolveAst(config.query);
100018
100122
  if (resolvedQuery) {
100019
100123
  validateGraphQLOperations(
100020
100124
  { query: resolvedQuery, operationName: config == null ? void 0 : config.operationName },
@@ -100055,7 +100159,12 @@ function buildServiceDescriptor$2() {
100055
100159
  * All rights reserved.
100056
100160
  * For full license text, see the LICENSE.txt file
100057
100161
  */
100058
- function buildServiceDescriptor$1(interceptors = { request: [], response: [], finally: [] }, retryService) {
100162
+ function buildServiceDescriptor$1(interceptors = {
100163
+ request: [],
100164
+ retry: void 0,
100165
+ response: [],
100166
+ finally: []
100167
+ }, retryService) {
100059
100168
  return {
100060
100169
  type: "fetch",
100061
100170
  version: "1.0",
@@ -100064,6 +100173,7 @@ function buildServiceDescriptor$1(interceptors = { request: [], response: [], fi
100064
100173
  const context = (_a = interceptors.createContext) == null ? void 0 : _a.call(interceptors);
100065
100174
  const {
100066
100175
  request: requestInterceptors = [],
100176
+ retry: retryInterceptor = void 0,
100067
100177
  response: responseInterceptors = [],
100068
100178
  finally: finallyInterceptors = []
100069
100179
  } = interceptors;
@@ -100072,10 +100182,14 @@ function buildServiceDescriptor$1(interceptors = { request: [], response: [], fi
100072
100182
  resolvedPromiseLike$2(args)
100073
100183
  );
100074
100184
  return Promise.resolve(pending).then((args2) => {
100075
- if (retryService) {
100076
- return retryService.applyRetry(() => fetch(...args2));
100185
+ if (retryInterceptor) {
100186
+ return retryInterceptor(args2, retryService, context);
100187
+ } else {
100188
+ if (retryService) {
100189
+ return retryService.applyRetry(() => fetch(...args2));
100190
+ }
100191
+ return fetch(...args2);
100077
100192
  }
100078
- return fetch(...args2);
100079
100193
  }).then((response) => {
100080
100194
  return responseInterceptors.reduce(
100081
100195
  (previousPromise, interceptor) => previousPromise.then((response2) => interceptor(response2, context)),
@@ -101085,7 +101199,7 @@ register$1({
101085
101199
  id: '@salesforce/lds-network-adapter',
101086
101200
  instrument: instrument$2,
101087
101201
  });
101088
- // version: 1.405.0-d370cbed0f
101202
+ // version: 1.410.0-19e0e5d352
101089
101203
 
101090
101204
  const { create: create$3, keys: keys$3 } = Object;
101091
101205
  const { stringify, parse } = JSON;
@@ -101462,7 +101576,7 @@ function findSchemaAtPath(document, ref) {
101462
101576
  * All rights reserved.
101463
101577
  * For full license text, see the LICENSE.txt file
101464
101578
  */
101465
- var Kind$1;
101579
+ var Kind;
101466
101580
  (function(Kind2) {
101467
101581
  Kind2["NAME"] = "Name";
101468
101582
  Kind2["DOCUMENT"] = "Document";
@@ -101507,8 +101621,8 @@ var Kind$1;
101507
101621
  Kind2["UNION_TYPE_EXTENSION"] = "UnionTypeExtension";
101508
101622
  Kind2["ENUM_TYPE_EXTENSION"] = "EnumTypeExtension";
101509
101623
  Kind2["INPUT_OBJECT_TYPE_EXTENSION"] = "InputObjectTypeExtension";
101510
- })(Kind$1 || (Kind$1 = {}));
101511
- var TokenKind$1;
101624
+ })(Kind || (Kind = {}));
101625
+ var TokenKind;
101512
101626
  (function(TokenKind2) {
101513
101627
  TokenKind2["SOF"] = "<SOF>";
101514
101628
  TokenKind2["EOF"] = "<EOF>";
@@ -101532,8 +101646,8 @@ var TokenKind$1;
101532
101646
  TokenKind2["STRING"] = "String";
101533
101647
  TokenKind2["BLOCK_STRING"] = "BlockString";
101534
101648
  TokenKind2["COMMENT"] = "Comment";
101535
- })(TokenKind$1 || (TokenKind$1 = {}));
101536
- const QueryDocumentKeys$1 = {
101649
+ })(TokenKind || (TokenKind = {}));
101650
+ const QueryDocumentKeys = {
101537
101651
  Name: [],
101538
101652
  Document: ["definitions"],
101539
101653
  OperationDefinition: [
@@ -101608,14 +101722,14 @@ const QueryDocumentKeys$1 = {
101608
101722
  EnumTypeExtension: ["name", "directives", "values"],
101609
101723
  InputObjectTypeExtension: ["name", "directives", "fields"]
101610
101724
  };
101611
- new Set(Object.keys(QueryDocumentKeys$1));
101612
- var OperationTypeNode$1;
101725
+ new Set(Object.keys(QueryDocumentKeys));
101726
+ var OperationTypeNode;
101613
101727
  (function(OperationTypeNode2) {
101614
101728
  OperationTypeNode2["QUERY"] = "query";
101615
101729
  OperationTypeNode2["MUTATION"] = "mutation";
101616
101730
  OperationTypeNode2["SUBSCRIPTION"] = "subscription";
101617
- })(OperationTypeNode$1 || (OperationTypeNode$1 = {}));
101618
- var DirectiveLocation$1;
101731
+ })(OperationTypeNode || (OperationTypeNode = {}));
101732
+ var DirectiveLocation;
101619
101733
  (function(DirectiveLocation2) {
101620
101734
  DirectiveLocation2["QUERY"] = "QUERY";
101621
101735
  DirectiveLocation2["MUTATION"] = "MUTATION";
@@ -101636,7 +101750,7 @@ var DirectiveLocation$1;
101636
101750
  DirectiveLocation2["ENUM_VALUE"] = "ENUM_VALUE";
101637
101751
  DirectiveLocation2["INPUT_OBJECT"] = "INPUT_OBJECT";
101638
101752
  DirectiveLocation2["INPUT_FIELD_DEFINITION"] = "INPUT_FIELD_DEFINITION";
101639
- })(DirectiveLocation$1 || (DirectiveLocation$1 = {}));
101753
+ })(DirectiveLocation || (DirectiveLocation = {}));
101640
101754
 
101641
101755
  /*!
101642
101756
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -101644,15 +101758,15 @@ var DirectiveLocation$1;
101644
101758
  * For full license text, see the LICENSE.txt file
101645
101759
  */
101646
101760
  function extractValue(valueNode, variableDefinitions, expectedType) {
101647
- if (valueNode.kind === Kind$1.VARIABLE) {
101761
+ if (valueNode.kind === Kind.VARIABLE) {
101648
101762
  const variableResult = extractVariableValue(valueNode.name.value, variableDefinitions);
101649
101763
  if (variableResult.isErr()) {
101650
101764
  return variableResult;
101651
101765
  }
101652
101766
  return validateExpectedType(variableResult.value, expectedType);
101653
- } else if (valueNode.kind === Kind$1.NULL) {
101767
+ } else if (valueNode.kind === Kind.NULL) {
101654
101768
  return validateExpectedType(null, expectedType);
101655
- } else if (valueNode.kind === Kind$1.LIST) {
101769
+ } else if (valueNode.kind === Kind.LIST) {
101656
101770
  const values = [];
101657
101771
  for (const val of valueNode.values) {
101658
101772
  const extractedResult = extractValue(val, variableDefinitions);
@@ -101662,7 +101776,7 @@ function extractValue(valueNode, variableDefinitions, expectedType) {
101662
101776
  values.push(extractedResult.value);
101663
101777
  }
101664
101778
  return validateExpectedType(values, expectedType);
101665
- } else if (valueNode.kind === Kind$1.OBJECT) {
101779
+ } else if (valueNode.kind === Kind.OBJECT) {
101666
101780
  const value = {};
101667
101781
  for (const field of valueNode.fields) {
101668
101782
  const extractedResult = extractValue(field.value, variableDefinitions);
@@ -101672,10 +101786,10 @@ function extractValue(valueNode, variableDefinitions, expectedType) {
101672
101786
  value[field.name.value] = extractedResult.value;
101673
101787
  }
101674
101788
  return validateExpectedType(value, expectedType);
101675
- } else if (valueNode.kind === Kind$1.INT) {
101789
+ } else if (valueNode.kind === Kind.INT) {
101676
101790
  const value = parseInt(valueNode.value, 10);
101677
101791
  return validateExpectedType(value, expectedType);
101678
- } else if (valueNode.kind === Kind$1.FLOAT) {
101792
+ } else if (valueNode.kind === Kind.FLOAT) {
101679
101793
  const value = parseFloat(valueNode.value);
101680
101794
  return validateExpectedType(value, expectedType);
101681
101795
  } else {
@@ -101754,7 +101868,7 @@ function deepMerge$2(target, ...sources) {
101754
101868
  }
101755
101869
  function findExecutableOperation(input) {
101756
101870
  const operations = input.query.definitions.filter(
101757
- (def) => def.kind === Kind$1.OPERATION_DEFINITION
101871
+ (def) => def.kind === Kind.OPERATION_DEFINITION
101758
101872
  );
101759
101873
  if (operations.length === 0) {
101760
101874
  return err$3(new Error("No operations found in query"));
@@ -101810,7 +101924,7 @@ function buildAugmentedFieldSelection(newSelection, selections, fragments) {
101810
101924
  const baseAliasedSelection = {
101811
101925
  ...newSelection,
101812
101926
  alias: {
101813
- kind: Kind$1.NAME,
101927
+ kind: Kind.NAME,
101814
101928
  value: baseInjectedAlias
101815
101929
  }
101816
101930
  };
@@ -101821,7 +101935,7 @@ function buildAugmentedFieldSelection(newSelection, selections, fragments) {
101821
101935
  return {
101822
101936
  ...newSelection,
101823
101937
  alias: {
101824
- kind: Kind$1.NAME,
101938
+ kind: Kind.NAME,
101825
101939
  value: fieldName
101826
101940
  }
101827
101941
  };
@@ -101834,11 +101948,11 @@ function selectionEquals(a, b) {
101834
101948
  if (a.kind !== b.kind) {
101835
101949
  return false;
101836
101950
  }
101837
- if (a.kind === Kind$1.FIELD) {
101951
+ if (a.kind === Kind.FIELD) {
101838
101952
  const bField = b;
101839
101953
  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);
101840
101954
  }
101841
- if (a.kind === Kind$1.FRAGMENT_SPREAD) {
101955
+ if (a.kind === Kind.FRAGMENT_SPREAD) {
101842
101956
  const bFragmentSpread = b;
101843
101957
  return a.name.value === bFragmentSpread.name.value && directivesEqual(a.directives, bFragmentSpread.directives);
101844
101958
  }
@@ -101850,23 +101964,23 @@ function argumentValueEquals(a, b) {
101850
101964
  return false;
101851
101965
  }
101852
101966
  switch (a.kind) {
101853
- case Kind$1.STRING:
101854
- case Kind$1.INT:
101855
- case Kind$1.FLOAT:
101856
- case Kind$1.BOOLEAN:
101857
- case Kind$1.ENUM:
101967
+ case Kind.STRING:
101968
+ case Kind.INT:
101969
+ case Kind.FLOAT:
101970
+ case Kind.BOOLEAN:
101971
+ case Kind.ENUM:
101858
101972
  return a.value === b.value;
101859
- case Kind$1.NULL:
101973
+ case Kind.NULL:
101860
101974
  return true;
101861
- case Kind$1.VARIABLE:
101975
+ case Kind.VARIABLE:
101862
101976
  return a.name.value === b.name.value;
101863
- case Kind$1.LIST:
101977
+ case Kind.LIST:
101864
101978
  const bList = b;
101865
101979
  if (a.values.length !== bList.values.length) {
101866
101980
  return false;
101867
101981
  }
101868
101982
  return a.values.every((val, index) => argumentValueEquals(val, bList.values[index]));
101869
- case Kind$1.OBJECT:
101983
+ case Kind.OBJECT:
101870
101984
  const bObject = b;
101871
101985
  if (a.fields.length !== bObject.fields.length) {
101872
101986
  return false;
@@ -101967,23 +102081,23 @@ function buildFieldKey(canonicalFieldName, fieldArguments, variables) {
101967
102081
  return ok$3(`${canonicalFieldName}::${stableJSONStringify$3({ args: formattedArguments })}`);
101968
102082
  }
101969
102083
  ({
101970
- kind: Kind$1.FIELD,
102084
+ kind: Kind.FIELD,
101971
102085
  name: {
101972
- kind: Kind$1.NAME,
102086
+ kind: Kind.NAME,
101973
102087
  value: "__typename"
101974
102088
  }
101975
102089
  });
101976
102090
  function isField(node) {
101977
- return node.kind === Kind$1.FIELD;
102091
+ return node.kind === Kind.FIELD;
101978
102092
  }
101979
102093
  function isFragmentSpread(node) {
101980
- return node.kind === Kind$1.FRAGMENT_SPREAD;
102094
+ return node.kind === Kind.FRAGMENT_SPREAD;
101981
102095
  }
101982
102096
  function isInlineFragment(node) {
101983
- return node.kind === Kind$1.INLINE_FRAGMENT;
102097
+ return node.kind === Kind.INLINE_FRAGMENT;
101984
102098
  }
101985
102099
  function isFragmentDefinition(node) {
101986
- return node.kind === Kind$1.FRAGMENT_DEFINITION;
102100
+ return node.kind === Kind.FRAGMENT_DEFINITION;
101987
102101
  }
101988
102102
  function extractIfArgument(directive, variables, directiveName) {
101989
102103
  var _a;
@@ -102290,9 +102404,9 @@ class BaseGraphQLTypeRepository {
102290
102404
  }
102291
102405
  const newTypenameSelection = buildAugmentedFieldSelection(
102292
102406
  {
102293
- kind: Kind$1.FIELD,
102407
+ kind: Kind.FIELD,
102294
102408
  name: {
102295
- kind: Kind$1.NAME,
102409
+ kind: Kind.NAME,
102296
102410
  value: "__typename"
102297
102411
  }
102298
102412
  },
@@ -102319,7 +102433,7 @@ class BaseGraphQLTypeRepository {
102319
102433
  {
102320
102434
  ...selection,
102321
102435
  selectionSet: {
102322
- kind: Kind$1.SELECTION_SET,
102436
+ kind: Kind.SELECTION_SET,
102323
102437
  selections: result.selections
102324
102438
  }
102325
102439
  }
@@ -102345,7 +102459,7 @@ class BaseGraphQLTypeRepository {
102345
102459
  {
102346
102460
  ...fragment,
102347
102461
  selectionSet: {
102348
- kind: Kind$1.SELECTION_SET,
102462
+ kind: Kind.SELECTION_SET,
102349
102463
  selections: augmentedFragmentSelections.selections
102350
102464
  }
102351
102465
  }
@@ -102377,7 +102491,7 @@ class BaseGraphQLTypeRepository {
102377
102491
  [fragment.name.value]: {
102378
102492
  ...fragment,
102379
102493
  selectionSet: {
102380
- kind: Kind$1.SELECTION_SET,
102494
+ kind: Kind.SELECTION_SET,
102381
102495
  selections: augmentedFragment.selections
102382
102496
  }
102383
102497
  }
@@ -102699,9 +102813,9 @@ class IdentifiableGraphQLTypeRepository extends IdentifiableTypeRepository {
102699
102813
  let augmentedFragments = result.fragments;
102700
102814
  const newSelection = buildAugmentedFieldSelection(
102701
102815
  {
102702
- kind: Kind$1.FIELD,
102816
+ kind: Kind.FIELD,
102703
102817
  name: {
102704
- kind: Kind$1.NAME,
102818
+ kind: Kind.NAME,
102705
102819
  value: this.idField
102706
102820
  }
102707
102821
  },
@@ -102769,7 +102883,7 @@ class IdentifiableGraphQLTypeRepository extends IdentifiableTypeRepository {
102769
102883
  buildKeyParams(input) {
102770
102884
  var _a;
102771
102885
  const idField = input.selections.find(
102772
- (selection) => selection.kind === Kind$1.FIELD && selection.name.value === this.idField
102886
+ (selection) => selection.kind === Kind.FIELD && selection.name.value === this.idField
102773
102887
  );
102774
102888
  if (!idField) {
102775
102889
  throw new Error(`Id field ${this.idField} not found in selections`);
@@ -102831,7 +102945,7 @@ class GraphQLDocumentRootTypeRepository extends IdentifiableGraphQLTypeRepositor
102831
102945
  }
102832
102946
  const operation = operationResult.value;
102833
102947
  const fragmentDefinitions = input.query.definitions.filter(
102834
- (def) => def.kind === Kind$1.FRAGMENT_DEFINITION
102948
+ (def) => def.kind === Kind.FRAGMENT_DEFINITION
102835
102949
  );
102836
102950
  const fragments = fragmentDefinitions.reduce(
102837
102951
  (acc, def) => {
@@ -102848,13 +102962,13 @@ class GraphQLDocumentRootTypeRepository extends IdentifiableGraphQLTypeRepositor
102848
102962
  let augmentedFragments = result.fragments;
102849
102963
  const augmentedOperation = {
102850
102964
  ...operation,
102851
- selectionSet: { kind: Kind$1.SELECTION_SET, selections: augmentedOperationSelections }
102965
+ selectionSet: { kind: Kind.SELECTION_SET, selections: augmentedOperationSelections }
102852
102966
  };
102853
102967
  return ok$3({
102854
102968
  ...input.query,
102855
102969
  definitions: [
102856
- ...input.query.definitions.filter((def) => def.kind !== Kind$1.FRAGMENT_DEFINITION).map((def) => {
102857
- if (def.kind !== Kind$1.OPERATION_DEFINITION || def !== operation) {
102970
+ ...input.query.definitions.filter((def) => def.kind !== Kind.FRAGMENT_DEFINITION).map((def) => {
102971
+ if (def.kind !== Kind.OPERATION_DEFINITION || def !== operation) {
102858
102972
  return def;
102859
102973
  }
102860
102974
  return augmentedOperation;
@@ -102963,7 +103077,7 @@ class BaseInterfaceRepository {
102963
103077
  let augmentedFragments = { ...input.fragments };
102964
103078
  input.selections.forEach((selection) => {
102965
103079
  var _a;
102966
- if (selection.kind === Kind$1.FIELD) {
103080
+ if (selection.kind === Kind.FIELD) {
102967
103081
  if (Object.keys(this.fields).includes(selection.name.value)) {
102968
103082
  const field = this.fields[selection.name.value];
102969
103083
  const result2 = field.augmentSelections({
@@ -102972,7 +103086,7 @@ class BaseInterfaceRepository {
102972
103086
  });
102973
103087
  augmentedSelections.push({
102974
103088
  ...selection,
102975
- selectionSet: { kind: Kind$1.SELECTION_SET, selections: result2.selections }
103089
+ selectionSet: { kind: Kind.SELECTION_SET, selections: result2.selections }
102976
103090
  });
102977
103091
  augmentedFragments = result2.fragments;
102978
103092
  } else {
@@ -102990,7 +103104,7 @@ class BaseInterfaceRepository {
102990
103104
  augmentedSelections.push(...result.selections);
102991
103105
  augmentedFragments = result.fragments;
102992
103106
  const newSelection = buildAugmentedFieldSelection(
102993
- { kind: Kind$1.FIELD, name: { kind: Kind$1.NAME, value: "__typename" } },
103107
+ { kind: Kind.FIELD, name: { kind: Kind.NAME, value: "__typename" } },
102994
103108
  augmentedSelections,
102995
103109
  input.fragments
102996
103110
  );
@@ -103002,7 +103116,7 @@ class BaseInterfaceRepository {
103002
103116
  getTypeDiscriminator(data, selections) {
103003
103117
  var _a;
103004
103118
  const typenameSelection = selections.find(
103005
- (selection) => selection.kind === Kind$1.FIELD && selection.name.value === "__typename"
103119
+ (selection) => selection.kind === Kind.FIELD && selection.name.value === "__typename"
103006
103120
  );
103007
103121
  if (typenameSelection) {
103008
103122
  return data[((_a = typenameSelection.alias) == null ? void 0 : _a.value) || typenameSelection.name.value];
@@ -103013,7 +103127,7 @@ class BaseInterfaceRepository {
103013
103127
  verifyInterfaceFields(selections) {
103014
103128
  let selectionErr;
103015
103129
  selections.forEach((selection) => {
103016
- if (selection.kind === Kind$1.FIELD) {
103130
+ if (selection.kind === Kind.FIELD) {
103017
103131
  const fieldName = selection.name.value;
103018
103132
  const selectionAllowed = fieldName === "__typename" || Object.keys(this.fields).includes(fieldName);
103019
103133
  if (!selectionAllowed) {
@@ -103137,7 +103251,7 @@ class BaseUnionRepository {
103137
103251
  augmentedSelections.push(...result.selections);
103138
103252
  augmentedFragments = result.fragments;
103139
103253
  const newSelection = buildAugmentedFieldSelection(
103140
- { kind: Kind$1.FIELD, name: { kind: Kind$1.NAME, value: "__typename" } },
103254
+ { kind: Kind.FIELD, name: { kind: Kind.NAME, value: "__typename" } },
103141
103255
  augmentedSelections,
103142
103256
  input.fragments
103143
103257
  );
@@ -103149,7 +103263,7 @@ class BaseUnionRepository {
103149
103263
  getTypeDiscriminator(data, selections) {
103150
103264
  var _a;
103151
103265
  const typenameSelection = selections.find(
103152
- (selection) => selection.kind === Kind$1.FIELD && selection.name.value === "__typename"
103266
+ (selection) => selection.kind === Kind.FIELD && selection.name.value === "__typename"
103153
103267
  );
103154
103268
  if (typenameSelection) {
103155
103269
  return data[((_a = typenameSelection.alias) == null ? void 0 : _a.value) || typenameSelection.name.value];
@@ -103160,7 +103274,7 @@ class BaseUnionRepository {
103160
103274
  verifyUnionFields(selections) {
103161
103275
  let selectionErr;
103162
103276
  selections.forEach((selection) => {
103163
- if (selection.kind === Kind$1.FIELD) {
103277
+ if (selection.kind === Kind.FIELD) {
103164
103278
  const fieldName = selection.name.value;
103165
103279
  const selectionAllowed = fieldName === "__typename";
103166
103280
  if (!selectionAllowed) {
@@ -103197,12 +103311,12 @@ function augmentUnionLikeSelections(input, possibleTypes) {
103197
103311
  selections: [...input.selections, ...augmentedSelections],
103198
103312
  fragments: augmentedFragments
103199
103313
  });
103200
- const typeSelections = result.selections.filter((selection) => selection.kind !== Kind$1.FIELD).map((selection) => {
103201
- if (selection.kind === Kind$1.INLINE_FRAGMENT) {
103314
+ const typeSelections = result.selections.filter((selection) => selection.kind !== Kind.FIELD).map((selection) => {
103315
+ if (selection.kind === Kind.INLINE_FRAGMENT) {
103202
103316
  return {
103203
103317
  ...selection,
103204
103318
  selectionSet: {
103205
- kind: Kind$1.SELECTION_SET,
103319
+ kind: Kind.SELECTION_SET,
103206
103320
  selections: selection.selectionSet.selections
103207
103321
  }
103208
103322
  };
@@ -103225,202 +103339,6 @@ const GraphQLQueryJsonSchema = {
103225
103339
  additionalProperties: true
103226
103340
  };
103227
103341
 
103228
- /**
103229
- * Copyright (c) 2022, Salesforce, Inc.,
103230
- * All rights reserved.
103231
- * For full license text, see the LICENSE.txt file
103232
- */
103233
-
103234
- var Kind;
103235
- (function(Kind2) {
103236
- Kind2["NAME"] = "Name";
103237
- Kind2["DOCUMENT"] = "Document";
103238
- Kind2["OPERATION_DEFINITION"] = "OperationDefinition";
103239
- Kind2["VARIABLE_DEFINITION"] = "VariableDefinition";
103240
- Kind2["SELECTION_SET"] = "SelectionSet";
103241
- Kind2["FIELD"] = "Field";
103242
- Kind2["ARGUMENT"] = "Argument";
103243
- Kind2["FRAGMENT_SPREAD"] = "FragmentSpread";
103244
- Kind2["INLINE_FRAGMENT"] = "InlineFragment";
103245
- Kind2["FRAGMENT_DEFINITION"] = "FragmentDefinition";
103246
- Kind2["VARIABLE"] = "Variable";
103247
- Kind2["INT"] = "IntValue";
103248
- Kind2["FLOAT"] = "FloatValue";
103249
- Kind2["STRING"] = "StringValue";
103250
- Kind2["BOOLEAN"] = "BooleanValue";
103251
- Kind2["NULL"] = "NullValue";
103252
- Kind2["ENUM"] = "EnumValue";
103253
- Kind2["LIST"] = "ListValue";
103254
- Kind2["OBJECT"] = "ObjectValue";
103255
- Kind2["OBJECT_FIELD"] = "ObjectField";
103256
- Kind2["DIRECTIVE"] = "Directive";
103257
- Kind2["NAMED_TYPE"] = "NamedType";
103258
- Kind2["LIST_TYPE"] = "ListType";
103259
- Kind2["NON_NULL_TYPE"] = "NonNullType";
103260
- Kind2["SCHEMA_DEFINITION"] = "SchemaDefinition";
103261
- Kind2["OPERATION_TYPE_DEFINITION"] = "OperationTypeDefinition";
103262
- Kind2["SCALAR_TYPE_DEFINITION"] = "ScalarTypeDefinition";
103263
- Kind2["OBJECT_TYPE_DEFINITION"] = "ObjectTypeDefinition";
103264
- Kind2["FIELD_DEFINITION"] = "FieldDefinition";
103265
- Kind2["INPUT_VALUE_DEFINITION"] = "InputValueDefinition";
103266
- Kind2["INTERFACE_TYPE_DEFINITION"] = "InterfaceTypeDefinition";
103267
- Kind2["UNION_TYPE_DEFINITION"] = "UnionTypeDefinition";
103268
- Kind2["ENUM_TYPE_DEFINITION"] = "EnumTypeDefinition";
103269
- Kind2["ENUM_VALUE_DEFINITION"] = "EnumValueDefinition";
103270
- Kind2["INPUT_OBJECT_TYPE_DEFINITION"] = "InputObjectTypeDefinition";
103271
- Kind2["DIRECTIVE_DEFINITION"] = "DirectiveDefinition";
103272
- Kind2["SCHEMA_EXTENSION"] = "SchemaExtension";
103273
- Kind2["SCALAR_TYPE_EXTENSION"] = "ScalarTypeExtension";
103274
- Kind2["OBJECT_TYPE_EXTENSION"] = "ObjectTypeExtension";
103275
- Kind2["INTERFACE_TYPE_EXTENSION"] = "InterfaceTypeExtension";
103276
- Kind2["UNION_TYPE_EXTENSION"] = "UnionTypeExtension";
103277
- Kind2["ENUM_TYPE_EXTENSION"] = "EnumTypeExtension";
103278
- Kind2["INPUT_OBJECT_TYPE_EXTENSION"] = "InputObjectTypeExtension";
103279
- })(Kind || (Kind = {}));
103280
- var TokenKind;
103281
- (function(TokenKind2) {
103282
- TokenKind2["SOF"] = "<SOF>";
103283
- TokenKind2["EOF"] = "<EOF>";
103284
- TokenKind2["BANG"] = "!";
103285
- TokenKind2["DOLLAR"] = "$";
103286
- TokenKind2["AMP"] = "&";
103287
- TokenKind2["PAREN_L"] = "(";
103288
- TokenKind2["PAREN_R"] = ")";
103289
- TokenKind2["SPREAD"] = "...";
103290
- TokenKind2["COLON"] = ":";
103291
- TokenKind2["EQUALS"] = "=";
103292
- TokenKind2["AT"] = "@";
103293
- TokenKind2["BRACKET_L"] = "[";
103294
- TokenKind2["BRACKET_R"] = "]";
103295
- TokenKind2["BRACE_L"] = "{";
103296
- TokenKind2["PIPE"] = "|";
103297
- TokenKind2["BRACE_R"] = "}";
103298
- TokenKind2["NAME"] = "Name";
103299
- TokenKind2["INT"] = "Int";
103300
- TokenKind2["FLOAT"] = "Float";
103301
- TokenKind2["STRING"] = "String";
103302
- TokenKind2["BLOCK_STRING"] = "BlockString";
103303
- TokenKind2["COMMENT"] = "Comment";
103304
- })(TokenKind || (TokenKind = {}));
103305
- const QueryDocumentKeys = {
103306
- Name: [],
103307
- Document: ["definitions"],
103308
- OperationDefinition: [
103309
- "name",
103310
- "variableDefinitions",
103311
- "directives",
103312
- "selectionSet"
103313
- ],
103314
- VariableDefinition: ["variable", "type", "defaultValue", "directives"],
103315
- Variable: ["name"],
103316
- SelectionSet: ["selections"],
103317
- Field: ["alias", "name", "arguments", "directives", "selectionSet"],
103318
- Argument: ["name", "value"],
103319
- FragmentSpread: ["name", "directives"],
103320
- InlineFragment: ["typeCondition", "directives", "selectionSet"],
103321
- FragmentDefinition: [
103322
- "name",
103323
- // Note: fragment variable definitions are deprecated and will removed in v17.0.0
103324
- "variableDefinitions",
103325
- "typeCondition",
103326
- "directives",
103327
- "selectionSet"
103328
- ],
103329
- IntValue: [],
103330
- FloatValue: [],
103331
- StringValue: [],
103332
- BooleanValue: [],
103333
- NullValue: [],
103334
- EnumValue: [],
103335
- ListValue: ["values"],
103336
- ObjectValue: ["fields"],
103337
- ObjectField: ["name", "value"],
103338
- Directive: ["name", "arguments"],
103339
- NamedType: ["name"],
103340
- ListType: ["type"],
103341
- NonNullType: ["type"],
103342
- SchemaDefinition: ["description", "directives", "operationTypes"],
103343
- OperationTypeDefinition: ["type"],
103344
- ScalarTypeDefinition: ["description", "name", "directives"],
103345
- ObjectTypeDefinition: [
103346
- "description",
103347
- "name",
103348
- "interfaces",
103349
- "directives",
103350
- "fields"
103351
- ],
103352
- FieldDefinition: ["description", "name", "arguments", "type", "directives"],
103353
- InputValueDefinition: [
103354
- "description",
103355
- "name",
103356
- "type",
103357
- "defaultValue",
103358
- "directives"
103359
- ],
103360
- InterfaceTypeDefinition: [
103361
- "description",
103362
- "name",
103363
- "interfaces",
103364
- "directives",
103365
- "fields"
103366
- ],
103367
- UnionTypeDefinition: ["description", "name", "directives", "types"],
103368
- EnumTypeDefinition: ["description", "name", "directives", "values"],
103369
- EnumValueDefinition: ["description", "name", "directives"],
103370
- InputObjectTypeDefinition: ["description", "name", "directives", "fields"],
103371
- DirectiveDefinition: ["description", "name", "arguments", "locations"],
103372
- SchemaExtension: ["directives", "operationTypes"],
103373
- ScalarTypeExtension: ["name", "directives"],
103374
- ObjectTypeExtension: ["name", "interfaces", "directives", "fields"],
103375
- InterfaceTypeExtension: ["name", "interfaces", "directives", "fields"],
103376
- UnionTypeExtension: ["name", "directives", "types"],
103377
- EnumTypeExtension: ["name", "directives", "values"],
103378
- InputObjectTypeExtension: ["name", "directives", "fields"]
103379
- };
103380
- new Set(Object.keys(QueryDocumentKeys));
103381
- var OperationTypeNode;
103382
- (function(OperationTypeNode2) {
103383
- OperationTypeNode2["QUERY"] = "query";
103384
- OperationTypeNode2["MUTATION"] = "mutation";
103385
- OperationTypeNode2["SUBSCRIPTION"] = "subscription";
103386
- })(OperationTypeNode || (OperationTypeNode = {}));
103387
- var DirectiveLocation;
103388
- (function(DirectiveLocation2) {
103389
- DirectiveLocation2["QUERY"] = "QUERY";
103390
- DirectiveLocation2["MUTATION"] = "MUTATION";
103391
- DirectiveLocation2["SUBSCRIPTION"] = "SUBSCRIPTION";
103392
- DirectiveLocation2["FIELD"] = "FIELD";
103393
- DirectiveLocation2["FRAGMENT_DEFINITION"] = "FRAGMENT_DEFINITION";
103394
- DirectiveLocation2["FRAGMENT_SPREAD"] = "FRAGMENT_SPREAD";
103395
- DirectiveLocation2["INLINE_FRAGMENT"] = "INLINE_FRAGMENT";
103396
- DirectiveLocation2["VARIABLE_DEFINITION"] = "VARIABLE_DEFINITION";
103397
- DirectiveLocation2["SCHEMA"] = "SCHEMA";
103398
- DirectiveLocation2["SCALAR"] = "SCALAR";
103399
- DirectiveLocation2["OBJECT"] = "OBJECT";
103400
- DirectiveLocation2["FIELD_DEFINITION"] = "FIELD_DEFINITION";
103401
- DirectiveLocation2["ARGUMENT_DEFINITION"] = "ARGUMENT_DEFINITION";
103402
- DirectiveLocation2["INTERFACE"] = "INTERFACE";
103403
- DirectiveLocation2["UNION"] = "UNION";
103404
- DirectiveLocation2["ENUM"] = "ENUM";
103405
- DirectiveLocation2["ENUM_VALUE"] = "ENUM_VALUE";
103406
- DirectiveLocation2["INPUT_OBJECT"] = "INPUT_OBJECT";
103407
- DirectiveLocation2["INPUT_FIELD_DEFINITION"] = "INPUT_FIELD_DEFINITION";
103408
- })(DirectiveLocation || (DirectiveLocation = {}));
103409
- const referenceMap = /* @__PURE__ */ new WeakMap();
103410
- const astResolver = function(astReference) {
103411
- return referenceMap.get(astReference);
103412
- };
103413
- function resolveAst(ast) {
103414
- if (ast === null || ast === void 0) {
103415
- return;
103416
- }
103417
- const result = astResolver(ast);
103418
- if (result === void 0) {
103419
- throw new Error("Could not resolve AST. Did you parse the query with gql?");
103420
- }
103421
- return result;
103422
- }
103423
-
103424
103342
  /**
103425
103343
  * Copyright (c) 2022, Salesforce, Inc.,
103426
103344
  * All rights reserved.
@@ -115094,7 +115012,7 @@ function registerCallback(cb) {
115094
115012
  cb(graphql_v1_import, graphql_imperative$1, graphql_imperative_legacy_v1_import, graphql_state_manager, useOneStoreGraphQL);
115095
115013
  }
115096
115014
  }
115097
- // version: 1.405.0-13ac2fd8fa
115015
+ // version: 1.410.0-7c228ee347
115098
115016
 
115099
115017
  function createFragmentMap(documentNode) {
115100
115018
  const fragments = {};
@@ -143788,12 +143706,12 @@ function bindExportsTo(luvio) {
143788
143706
  const graphqlBatch_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'graphqlBatch', factory), graphqlBatchMetadata);
143789
143707
  return {
143790
143708
  // Wire Adapters
143791
- graphqlBatch: createGraphQLWireAdapterConstructor(luvio, graphqlBatch_ldsAdapter, graphqlBatchMetadata, astResolver$2),
143709
+ graphqlBatch: createGraphQLWireAdapterConstructor(luvio, graphqlBatch_ldsAdapter, graphqlBatchMetadata, astResolver$1),
143792
143710
  // One Store Enabled Adapters
143793
- graphql: createGraphQLWireAdapterConstructor(luvio, graphql_ldsAdapter, graphqlMetadata, astResolver$2),
143794
- graphql_imperative: createGraphQLImperativeAdapter(luvio, graphql_ldsAdapter, graphqlMetadata, astResolver$2),
143711
+ graphql: createGraphQLWireAdapterConstructor(luvio, graphql_ldsAdapter, graphqlMetadata, astResolver$1),
143712
+ graphql_imperative: createGraphQLImperativeAdapter(luvio, graphql_ldsAdapter, graphqlMetadata, astResolver$1),
143795
143713
  // Imperative Adapters
143796
- graphqlBatch_imperative: createGraphQLImperativeAdapter(luvio, graphqlBatch_ldsAdapter, graphqlBatchMetadata, astResolver$2),
143714
+ graphqlBatch_imperative: createGraphQLImperativeAdapter(luvio, graphqlBatch_ldsAdapter, graphqlBatchMetadata, astResolver$1),
143797
143715
  };
143798
143716
  }
143799
143717
  withDefaultLuvio((luvio) => {
@@ -144319,7 +144237,7 @@ register$1({
144319
144237
  configuration: { ...configurationForGraphQLAdapters$1 },
144320
144238
  instrument: instrument$1,
144321
144239
  });
144322
- // version: 1.405.0-13ac2fd8fa
144240
+ // version: 1.410.0-7c228ee347
144323
144241
 
144324
144242
  // On core the unstable adapters are re-exported with different names,
144325
144243
  // we want to match them here.
@@ -144445,7 +144363,7 @@ const graphQLAdapterFactory = (luvio) => {
144445
144363
  }
144446
144364
  const { query, variables } = validatedConfig;
144447
144365
  // Forward to new adapter
144448
- const resolvedQuery = astResolver$2(query);
144366
+ const resolvedQuery = astResolver$1(query);
144449
144367
  if (resolvedQuery === undefined) {
144450
144368
  return null;
144451
144369
  }
@@ -144471,7 +144389,7 @@ withDefaultLuvio((luvio) => {
144471
144389
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
144472
144390
  graphQLImperative = ldsAdapter;
144473
144391
  });
144474
- // version: 1.405.0-13ac2fd8fa
144392
+ // version: 1.410.0-7c228ee347
144475
144393
 
144476
144394
  var gqlApi = /*#__PURE__*/Object.freeze({
144477
144395
  __proto__: null,
@@ -145270,7 +145188,7 @@ const callbacks$1 = [];
145270
145188
  function register(r) {
145271
145189
  callbacks$1.forEach((callback) => callback(r));
145272
145190
  }
145273
- // version: 1.405.0-d370cbed0f
145191
+ // version: 1.410.0-19e0e5d352
145274
145192
 
145275
145193
  /**
145276
145194
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -146586,4 +146504,4 @@ const { luvio } = getRuntime();
146586
146504
  setDefaultLuvio({ luvio });
146587
146505
 
146588
146506
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, importLuvioAdapterModule, importOneStoreAdapterModule, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
146589
- // version: 1.405.0-d370cbed0f
146507
+ // version: 1.410.0-19e0e5d352