@salesforce/lds-worker-api 1.405.0 → 1.409.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4280,7 +4280,7 @@
4280
4280
  }
4281
4281
  callbacks.push(callback);
4282
4282
  }
4283
- // version: 1.405.0-d370cbed0f
4283
+ // version: 1.409.0-19a3d9bdf5
4284
4284
 
4285
4285
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4286
4286
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -5324,7 +5324,7 @@
5324
5324
  const { apiFamily, name } = metadata;
5325
5325
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
5326
5326
  }
5327
- // version: 1.405.0-d370cbed0f
5327
+ // version: 1.409.0-19a3d9bdf5
5328
5328
 
5329
5329
  /**
5330
5330
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -35438,7 +35438,7 @@
35438
35438
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
35439
35439
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
35440
35440
  });
35441
- // version: 1.405.0-13ac2fd8fa
35441
+ // version: 1.409.0-355a528ce3
35442
35442
 
35443
35443
  var allowUpdatesForNonCachedRecords = {
35444
35444
  isOpen: function (e) {
@@ -36062,7 +36062,7 @@
36062
36062
  * An exported enum describing the different kinds of tokens that the
36063
36063
  * lexer emits.
36064
36064
  */
36065
- var TokenKind$3 = Object.freeze({
36065
+ var TokenKind$2 = Object.freeze({
36066
36066
  SOF: '<SOF>',
36067
36067
  EOF: '<EOF>',
36068
36068
  BANG: '!',
@@ -36282,7 +36282,7 @@
36282
36282
  /**
36283
36283
  * The set of allowed directive location values.
36284
36284
  */
36285
- var DirectiveLocation$3 = Object.freeze({
36285
+ var DirectiveLocation$2 = Object.freeze({
36286
36286
  // Request Definitions
36287
36287
  QUERY: 'QUERY',
36288
36288
  MUTATION: 'MUTATION',
@@ -36460,7 +36460,7 @@
36460
36460
  * The character offset at which the current line begins.
36461
36461
  */
36462
36462
  function Lexer(source) {
36463
- var startOfFileToken = new Token$1(TokenKind$3.SOF, 0, 0, 0, 0, null);
36463
+ var startOfFileToken = new Token$1(TokenKind$2.SOF, 0, 0, 0, 0, null);
36464
36464
  this.source = source;
36465
36465
  this.lastToken = startOfFileToken;
36466
36466
  this.token = startOfFileToken;
@@ -36488,13 +36488,13 @@
36488
36488
  _proto.lookahead = function lookahead() {
36489
36489
  var token = this.token;
36490
36490
 
36491
- if (token.kind !== TokenKind$3.EOF) {
36491
+ if (token.kind !== TokenKind$2.EOF) {
36492
36492
  do {
36493
36493
  var _token$next;
36494
36494
 
36495
36495
  // Note: next is only mutable during parsing, so we cast to allow this.
36496
36496
  token = (_token$next = token.next) !== null && _token$next !== void 0 ? _token$next : token.next = readToken(this, token);
36497
- } while (token.kind === TokenKind$3.COMMENT);
36497
+ } while (token.kind === TokenKind$2.COMMENT);
36498
36498
  }
36499
36499
 
36500
36500
  return token;
@@ -36507,12 +36507,12 @@
36507
36507
  */
36508
36508
 
36509
36509
  function isPunctuatorTokenKind(kind) {
36510
- 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;
36510
+ 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;
36511
36511
  }
36512
36512
 
36513
36513
  function printCharCode(code) {
36514
36514
  return (// NaN/undefined represents access beyond the end of the file.
36515
- isNaN(code) ? TokenKind$3.EOF : // Trust JSON for ASCII.
36515
+ isNaN(code) ? TokenKind$2.EOF : // Trust JSON for ASCII.
36516
36516
  code < 0x007f ? JSON.stringify(String.fromCharCode(code)) : // Otherwise print the escaped form.
36517
36517
  "\"\\u".concat(('00' + code.toString(16).toUpperCase()).slice(-4), "\"")
36518
36518
  );
@@ -36572,7 +36572,7 @@
36572
36572
 
36573
36573
  case 33:
36574
36574
  // !
36575
- return new Token$1(TokenKind$3.BANG, pos, pos + 1, _line, _col, prev);
36575
+ return new Token$1(TokenKind$2.BANG, pos, pos + 1, _line, _col, prev);
36576
36576
 
36577
36577
  case 35:
36578
36578
  // #
@@ -36580,59 +36580,59 @@
36580
36580
 
36581
36581
  case 36:
36582
36582
  // $
36583
- return new Token$1(TokenKind$3.DOLLAR, pos, pos + 1, _line, _col, prev);
36583
+ return new Token$1(TokenKind$2.DOLLAR, pos, pos + 1, _line, _col, prev);
36584
36584
 
36585
36585
  case 38:
36586
36586
  // &
36587
- return new Token$1(TokenKind$3.AMP, pos, pos + 1, _line, _col, prev);
36587
+ return new Token$1(TokenKind$2.AMP, pos, pos + 1, _line, _col, prev);
36588
36588
 
36589
36589
  case 40:
36590
36590
  // (
36591
- return new Token$1(TokenKind$3.PAREN_L, pos, pos + 1, _line, _col, prev);
36591
+ return new Token$1(TokenKind$2.PAREN_L, pos, pos + 1, _line, _col, prev);
36592
36592
 
36593
36593
  case 41:
36594
36594
  // )
36595
- return new Token$1(TokenKind$3.PAREN_R, pos, pos + 1, _line, _col, prev);
36595
+ return new Token$1(TokenKind$2.PAREN_R, pos, pos + 1, _line, _col, prev);
36596
36596
 
36597
36597
  case 46:
36598
36598
  // .
36599
36599
  if (body.charCodeAt(pos + 1) === 46 && body.charCodeAt(pos + 2) === 46) {
36600
- return new Token$1(TokenKind$3.SPREAD, pos, pos + 3, _line, _col, prev);
36600
+ return new Token$1(TokenKind$2.SPREAD, pos, pos + 3, _line, _col, prev);
36601
36601
  }
36602
36602
 
36603
36603
  break;
36604
36604
 
36605
36605
  case 58:
36606
36606
  // :
36607
- return new Token$1(TokenKind$3.COLON, pos, pos + 1, _line, _col, prev);
36607
+ return new Token$1(TokenKind$2.COLON, pos, pos + 1, _line, _col, prev);
36608
36608
 
36609
36609
  case 61:
36610
36610
  // =
36611
- return new Token$1(TokenKind$3.EQUALS, pos, pos + 1, _line, _col, prev);
36611
+ return new Token$1(TokenKind$2.EQUALS, pos, pos + 1, _line, _col, prev);
36612
36612
 
36613
36613
  case 64:
36614
36614
  // @
36615
- return new Token$1(TokenKind$3.AT, pos, pos + 1, _line, _col, prev);
36615
+ return new Token$1(TokenKind$2.AT, pos, pos + 1, _line, _col, prev);
36616
36616
 
36617
36617
  case 91:
36618
36618
  // [
36619
- return new Token$1(TokenKind$3.BRACKET_L, pos, pos + 1, _line, _col, prev);
36619
+ return new Token$1(TokenKind$2.BRACKET_L, pos, pos + 1, _line, _col, prev);
36620
36620
 
36621
36621
  case 93:
36622
36622
  // ]
36623
- return new Token$1(TokenKind$3.BRACKET_R, pos, pos + 1, _line, _col, prev);
36623
+ return new Token$1(TokenKind$2.BRACKET_R, pos, pos + 1, _line, _col, prev);
36624
36624
 
36625
36625
  case 123:
36626
36626
  // {
36627
- return new Token$1(TokenKind$3.BRACE_L, pos, pos + 1, _line, _col, prev);
36627
+ return new Token$1(TokenKind$2.BRACE_L, pos, pos + 1, _line, _col, prev);
36628
36628
 
36629
36629
  case 124:
36630
36630
  // |
36631
- return new Token$1(TokenKind$3.PIPE, pos, pos + 1, _line, _col, prev);
36631
+ return new Token$1(TokenKind$2.PIPE, pos, pos + 1, _line, _col, prev);
36632
36632
 
36633
36633
  case 125:
36634
36634
  // }
36635
- return new Token$1(TokenKind$3.BRACE_R, pos, pos + 1, _line, _col, prev);
36635
+ return new Token$1(TokenKind$2.BRACE_R, pos, pos + 1, _line, _col, prev);
36636
36636
 
36637
36637
  case 34:
36638
36638
  // "
@@ -36780,7 +36780,7 @@
36780
36780
 
36781
36781
  var line = lexer.line;
36782
36782
  var col = 1 + pos - lexer.lineStart;
36783
- return new Token$1(TokenKind$3.EOF, bodyLength, bodyLength, line, col, prev);
36783
+ return new Token$1(TokenKind$2.EOF, bodyLength, bodyLength, line, col, prev);
36784
36784
  }
36785
36785
  /**
36786
36786
  * Report a message that an unexpected character was encountered.
@@ -36816,7 +36816,7 @@
36816
36816
  } while (!isNaN(code) && ( // SourceCharacter but not LineTerminator
36817
36817
  code > 0x001f || code === 0x0009));
36818
36818
 
36819
- return new Token$1(TokenKind$3.COMMENT, start, position, line, col, prev, body.slice(start + 1, position));
36819
+ return new Token$1(TokenKind$2.COMMENT, start, position, line, col, prev, body.slice(start + 1, position));
36820
36820
  }
36821
36821
  /**
36822
36822
  * Reads a number token from the source file, either a float
@@ -36877,7 +36877,7 @@
36877
36877
  throw syntaxError(source, position, "Invalid number, expected digit but got: ".concat(printCharCode(code), "."));
36878
36878
  }
36879
36879
 
36880
- return new Token$1(isFloat ? TokenKind$3.FLOAT : TokenKind$3.INT, start, position, line, col, prev, body.slice(start, position));
36880
+ return new Token$1(isFloat ? TokenKind$2.FLOAT : TokenKind$2.INT, start, position, line, col, prev, body.slice(start, position));
36881
36881
  }
36882
36882
  /**
36883
36883
  * Returns the new position in the source after reading digits.
@@ -36920,7 +36920,7 @@
36920
36920
  // Closing Quote (")
36921
36921
  if (code === 34) {
36922
36922
  value += body.slice(chunkStart, position);
36923
- return new Token$1(TokenKind$3.STRING, start, position + 1, line, col, prev, value);
36923
+ return new Token$1(TokenKind$2.STRING, start, position + 1, line, col, prev, value);
36924
36924
  } // SourceCharacter
36925
36925
 
36926
36926
 
@@ -37012,7 +37012,7 @@
37012
37012
  // Closing Triple-Quote (""")
37013
37013
  if (code === 34 && body.charCodeAt(position + 1) === 34 && body.charCodeAt(position + 2) === 34) {
37014
37014
  rawValue += body.slice(chunkStart, position);
37015
- return new Token$1(TokenKind$3.BLOCK_STRING, start, position + 3, line, col, prev, dedentBlockStringValue(rawValue));
37015
+ return new Token$1(TokenKind$2.BLOCK_STRING, start, position + 3, line, col, prev, dedentBlockStringValue(rawValue));
37016
37016
  } // SourceCharacter
37017
37017
 
37018
37018
 
@@ -37099,7 +37099,7 @@
37099
37099
  ++position;
37100
37100
  }
37101
37101
 
37102
- return new Token$1(TokenKind$3.NAME, start, position, line, col, prev, body.slice(start, position));
37102
+ return new Token$1(TokenKind$2.NAME, start, position, line, col, prev, body.slice(start, position));
37103
37103
  } // _ A-Z a-z
37104
37104
 
37105
37105
 
@@ -37145,7 +37145,7 @@
37145
37145
  var _proto = Parser.prototype;
37146
37146
 
37147
37147
  _proto.parseName = function parseName() {
37148
- var token = this.expectToken(TokenKind$3.NAME);
37148
+ var token = this.expectToken(TokenKind$2.NAME);
37149
37149
  return {
37150
37150
  kind: Kind$3.NAME,
37151
37151
  value: token.value,
@@ -37162,7 +37162,7 @@
37162
37162
  var start = this._lexer.token;
37163
37163
  return {
37164
37164
  kind: Kind$3.DOCUMENT,
37165
- definitions: this.many(TokenKind$3.SOF, this.parseDefinition, TokenKind$3.EOF),
37165
+ definitions: this.many(TokenKind$2.SOF, this.parseDefinition, TokenKind$2.EOF),
37166
37166
  loc: this.loc(start)
37167
37167
  };
37168
37168
  }
@@ -37179,7 +37179,7 @@
37179
37179
  ;
37180
37180
 
37181
37181
  _proto.parseDefinition = function parseDefinition() {
37182
- if (this.peek(TokenKind$3.NAME)) {
37182
+ if (this.peek(TokenKind$2.NAME)) {
37183
37183
  switch (this._lexer.token.value) {
37184
37184
  case 'query':
37185
37185
  case 'mutation':
@@ -37202,7 +37202,7 @@
37202
37202
  case 'extend':
37203
37203
  return this.parseTypeSystemExtension();
37204
37204
  }
37205
- } else if (this.peek(TokenKind$3.BRACE_L)) {
37205
+ } else if (this.peek(TokenKind$2.BRACE_L)) {
37206
37206
  return this.parseOperationDefinition();
37207
37207
  } else if (this.peekDescription()) {
37208
37208
  return this.parseTypeSystemDefinition();
@@ -37221,7 +37221,7 @@
37221
37221
  _proto.parseOperationDefinition = function parseOperationDefinition() {
37222
37222
  var start = this._lexer.token;
37223
37223
 
37224
- if (this.peek(TokenKind$3.BRACE_L)) {
37224
+ if (this.peek(TokenKind$2.BRACE_L)) {
37225
37225
  return {
37226
37226
  kind: Kind$3.OPERATION_DEFINITION,
37227
37227
  operation: 'query',
@@ -37236,7 +37236,7 @@
37236
37236
  var operation = this.parseOperationType();
37237
37237
  var name;
37238
37238
 
37239
- if (this.peek(TokenKind$3.NAME)) {
37239
+ if (this.peek(TokenKind$2.NAME)) {
37240
37240
  name = this.parseName();
37241
37241
  }
37242
37242
 
@@ -37256,7 +37256,7 @@
37256
37256
  ;
37257
37257
 
37258
37258
  _proto.parseOperationType = function parseOperationType() {
37259
- var operationToken = this.expectToken(TokenKind$3.NAME);
37259
+ var operationToken = this.expectToken(TokenKind$2.NAME);
37260
37260
 
37261
37261
  switch (operationToken.value) {
37262
37262
  case 'query':
@@ -37277,7 +37277,7 @@
37277
37277
  ;
37278
37278
 
37279
37279
  _proto.parseVariableDefinitions = function parseVariableDefinitions() {
37280
- return this.optionalMany(TokenKind$3.PAREN_L, this.parseVariableDefinition, TokenKind$3.PAREN_R);
37280
+ return this.optionalMany(TokenKind$2.PAREN_L, this.parseVariableDefinition, TokenKind$2.PAREN_R);
37281
37281
  }
37282
37282
  /**
37283
37283
  * VariableDefinition : Variable : Type DefaultValue? Directives[Const]?
@@ -37289,8 +37289,8 @@
37289
37289
  return {
37290
37290
  kind: Kind$3.VARIABLE_DEFINITION,
37291
37291
  variable: this.parseVariable(),
37292
- type: (this.expectToken(TokenKind$3.COLON), this.parseTypeReference()),
37293
- defaultValue: this.expectOptionalToken(TokenKind$3.EQUALS) ? this.parseValueLiteral(true) : undefined,
37292
+ type: (this.expectToken(TokenKind$2.COLON), this.parseTypeReference()),
37293
+ defaultValue: this.expectOptionalToken(TokenKind$2.EQUALS) ? this.parseValueLiteral(true) : undefined,
37294
37294
  directives: this.parseDirectives(true),
37295
37295
  loc: this.loc(start)
37296
37296
  };
@@ -37302,7 +37302,7 @@
37302
37302
 
37303
37303
  _proto.parseVariable = function parseVariable() {
37304
37304
  var start = this._lexer.token;
37305
- this.expectToken(TokenKind$3.DOLLAR);
37305
+ this.expectToken(TokenKind$2.DOLLAR);
37306
37306
  return {
37307
37307
  kind: Kind$3.VARIABLE,
37308
37308
  name: this.parseName(),
@@ -37318,7 +37318,7 @@
37318
37318
  var start = this._lexer.token;
37319
37319
  return {
37320
37320
  kind: Kind$3.SELECTION_SET,
37321
- selections: this.many(TokenKind$3.BRACE_L, this.parseSelection, TokenKind$3.BRACE_R),
37321
+ selections: this.many(TokenKind$2.BRACE_L, this.parseSelection, TokenKind$2.BRACE_R),
37322
37322
  loc: this.loc(start)
37323
37323
  };
37324
37324
  }
@@ -37331,7 +37331,7 @@
37331
37331
  ;
37332
37332
 
37333
37333
  _proto.parseSelection = function parseSelection() {
37334
- return this.peek(TokenKind$3.SPREAD) ? this.parseFragment() : this.parseField();
37334
+ return this.peek(TokenKind$2.SPREAD) ? this.parseFragment() : this.parseField();
37335
37335
  }
37336
37336
  /**
37337
37337
  * Field : Alias? Name Arguments? Directives? SelectionSet?
@@ -37346,7 +37346,7 @@
37346
37346
  var alias;
37347
37347
  var name;
37348
37348
 
37349
- if (this.expectOptionalToken(TokenKind$3.COLON)) {
37349
+ if (this.expectOptionalToken(TokenKind$2.COLON)) {
37350
37350
  alias = nameOrAlias;
37351
37351
  name = this.parseName();
37352
37352
  } else {
@@ -37359,7 +37359,7 @@
37359
37359
  name: name,
37360
37360
  arguments: this.parseArguments(false),
37361
37361
  directives: this.parseDirectives(false),
37362
- selectionSet: this.peek(TokenKind$3.BRACE_L) ? this.parseSelectionSet() : undefined,
37362
+ selectionSet: this.peek(TokenKind$2.BRACE_L) ? this.parseSelectionSet() : undefined,
37363
37363
  loc: this.loc(start)
37364
37364
  };
37365
37365
  }
@@ -37370,7 +37370,7 @@
37370
37370
 
37371
37371
  _proto.parseArguments = function parseArguments(isConst) {
37372
37372
  var item = isConst ? this.parseConstArgument : this.parseArgument;
37373
- return this.optionalMany(TokenKind$3.PAREN_L, item, TokenKind$3.PAREN_R);
37373
+ return this.optionalMany(TokenKind$2.PAREN_L, item, TokenKind$2.PAREN_R);
37374
37374
  }
37375
37375
  /**
37376
37376
  * Argument[Const] : Name : Value[?Const]
@@ -37380,7 +37380,7 @@
37380
37380
  _proto.parseArgument = function parseArgument() {
37381
37381
  var start = this._lexer.token;
37382
37382
  var name = this.parseName();
37383
- this.expectToken(TokenKind$3.COLON);
37383
+ this.expectToken(TokenKind$2.COLON);
37384
37384
  return {
37385
37385
  kind: Kind$3.ARGUMENT,
37386
37386
  name: name,
@@ -37394,7 +37394,7 @@
37394
37394
  return {
37395
37395
  kind: Kind$3.ARGUMENT,
37396
37396
  name: this.parseName(),
37397
- value: (this.expectToken(TokenKind$3.COLON), this.parseValueLiteral(true)),
37397
+ value: (this.expectToken(TokenKind$2.COLON), this.parseValueLiteral(true)),
37398
37398
  loc: this.loc(start)
37399
37399
  };
37400
37400
  } // Implements the parsing rules in the Fragments section.
@@ -37410,10 +37410,10 @@
37410
37410
 
37411
37411
  _proto.parseFragment = function parseFragment() {
37412
37412
  var start = this._lexer.token;
37413
- this.expectToken(TokenKind$3.SPREAD);
37413
+ this.expectToken(TokenKind$2.SPREAD);
37414
37414
  var hasTypeCondition = this.expectOptionalKeyword('on');
37415
37415
 
37416
- if (!hasTypeCondition && this.peek(TokenKind$3.NAME)) {
37416
+ if (!hasTypeCondition && this.peek(TokenKind$2.NAME)) {
37417
37417
  return {
37418
37418
  kind: Kind$3.FRAGMENT_SPREAD,
37419
37419
  name: this.parseFragmentName(),
@@ -37504,13 +37504,13 @@
37504
37504
  var token = this._lexer.token;
37505
37505
 
37506
37506
  switch (token.kind) {
37507
- case TokenKind$3.BRACKET_L:
37507
+ case TokenKind$2.BRACKET_L:
37508
37508
  return this.parseList(isConst);
37509
37509
 
37510
- case TokenKind$3.BRACE_L:
37510
+ case TokenKind$2.BRACE_L:
37511
37511
  return this.parseObject(isConst);
37512
37512
 
37513
- case TokenKind$3.INT:
37513
+ case TokenKind$2.INT:
37514
37514
  this._lexer.advance();
37515
37515
 
37516
37516
  return {
@@ -37519,7 +37519,7 @@
37519
37519
  loc: this.loc(token)
37520
37520
  };
37521
37521
 
37522
- case TokenKind$3.FLOAT:
37522
+ case TokenKind$2.FLOAT:
37523
37523
  this._lexer.advance();
37524
37524
 
37525
37525
  return {
@@ -37528,11 +37528,11 @@
37528
37528
  loc: this.loc(token)
37529
37529
  };
37530
37530
 
37531
- case TokenKind$3.STRING:
37532
- case TokenKind$3.BLOCK_STRING:
37531
+ case TokenKind$2.STRING:
37532
+ case TokenKind$2.BLOCK_STRING:
37533
37533
  return this.parseStringLiteral();
37534
37534
 
37535
- case TokenKind$3.NAME:
37535
+ case TokenKind$2.NAME:
37536
37536
  this._lexer.advance();
37537
37537
 
37538
37538
  switch (token.value) {
@@ -37564,7 +37564,7 @@
37564
37564
  };
37565
37565
  }
37566
37566
 
37567
- case TokenKind$3.DOLLAR:
37567
+ case TokenKind$2.DOLLAR:
37568
37568
  if (!isConst) {
37569
37569
  return this.parseVariable();
37570
37570
  }
@@ -37583,7 +37583,7 @@
37583
37583
  return {
37584
37584
  kind: Kind$3.STRING,
37585
37585
  value: token.value,
37586
- block: token.kind === TokenKind$3.BLOCK_STRING,
37586
+ block: token.kind === TokenKind$2.BLOCK_STRING,
37587
37587
  loc: this.loc(token)
37588
37588
  };
37589
37589
  }
@@ -37605,7 +37605,7 @@
37605
37605
 
37606
37606
  return {
37607
37607
  kind: Kind$3.LIST,
37608
- values: this.any(TokenKind$3.BRACKET_L, item, TokenKind$3.BRACKET_R),
37608
+ values: this.any(TokenKind$2.BRACKET_L, item, TokenKind$2.BRACKET_R),
37609
37609
  loc: this.loc(start)
37610
37610
  };
37611
37611
  }
@@ -37627,7 +37627,7 @@
37627
37627
 
37628
37628
  return {
37629
37629
  kind: Kind$3.OBJECT,
37630
- fields: this.any(TokenKind$3.BRACE_L, item, TokenKind$3.BRACE_R),
37630
+ fields: this.any(TokenKind$2.BRACE_L, item, TokenKind$2.BRACE_R),
37631
37631
  loc: this.loc(start)
37632
37632
  };
37633
37633
  }
@@ -37639,7 +37639,7 @@
37639
37639
  _proto.parseObjectField = function parseObjectField(isConst) {
37640
37640
  var start = this._lexer.token;
37641
37641
  var name = this.parseName();
37642
- this.expectToken(TokenKind$3.COLON);
37642
+ this.expectToken(TokenKind$2.COLON);
37643
37643
  return {
37644
37644
  kind: Kind$3.OBJECT_FIELD,
37645
37645
  name: name,
@@ -37656,7 +37656,7 @@
37656
37656
  _proto.parseDirectives = function parseDirectives(isConst) {
37657
37657
  var directives = [];
37658
37658
 
37659
- while (this.peek(TokenKind$3.AT)) {
37659
+ while (this.peek(TokenKind$2.AT)) {
37660
37660
  directives.push(this.parseDirective(isConst));
37661
37661
  }
37662
37662
 
@@ -37669,7 +37669,7 @@
37669
37669
 
37670
37670
  _proto.parseDirective = function parseDirective(isConst) {
37671
37671
  var start = this._lexer.token;
37672
- this.expectToken(TokenKind$3.AT);
37672
+ this.expectToken(TokenKind$2.AT);
37673
37673
  return {
37674
37674
  kind: Kind$3.DIRECTIVE,
37675
37675
  name: this.parseName(),
@@ -37690,9 +37690,9 @@
37690
37690
  var start = this._lexer.token;
37691
37691
  var type;
37692
37692
 
37693
- if (this.expectOptionalToken(TokenKind$3.BRACKET_L)) {
37693
+ if (this.expectOptionalToken(TokenKind$2.BRACKET_L)) {
37694
37694
  type = this.parseTypeReference();
37695
- this.expectToken(TokenKind$3.BRACKET_R);
37695
+ this.expectToken(TokenKind$2.BRACKET_R);
37696
37696
  type = {
37697
37697
  kind: Kind$3.LIST_TYPE,
37698
37698
  type: type,
@@ -37702,7 +37702,7 @@
37702
37702
  type = this.parseNamedType();
37703
37703
  }
37704
37704
 
37705
- if (this.expectOptionalToken(TokenKind$3.BANG)) {
37705
+ if (this.expectOptionalToken(TokenKind$2.BANG)) {
37706
37706
  return {
37707
37707
  kind: Kind$3.NON_NULL_TYPE,
37708
37708
  type: type,
@@ -37746,7 +37746,7 @@
37746
37746
  // Many definitions begin with a description and require a lookahead.
37747
37747
  var keywordToken = this.peekDescription() ? this._lexer.lookahead() : this._lexer.token;
37748
37748
 
37749
- if (keywordToken.kind === TokenKind$3.NAME) {
37749
+ if (keywordToken.kind === TokenKind$2.NAME) {
37750
37750
  switch (keywordToken.value) {
37751
37751
  case 'schema':
37752
37752
  return this.parseSchemaDefinition();
@@ -37778,7 +37778,7 @@
37778
37778
  };
37779
37779
 
37780
37780
  _proto.peekDescription = function peekDescription() {
37781
- return this.peek(TokenKind$3.STRING) || this.peek(TokenKind$3.BLOCK_STRING);
37781
+ return this.peek(TokenKind$2.STRING) || this.peek(TokenKind$2.BLOCK_STRING);
37782
37782
  }
37783
37783
  /**
37784
37784
  * Description : StringValue
@@ -37800,7 +37800,7 @@
37800
37800
  var description = this.parseDescription();
37801
37801
  this.expectKeyword('schema');
37802
37802
  var directives = this.parseDirectives(true);
37803
- var operationTypes = this.many(TokenKind$3.BRACE_L, this.parseOperationTypeDefinition, TokenKind$3.BRACE_R);
37803
+ var operationTypes = this.many(TokenKind$2.BRACE_L, this.parseOperationTypeDefinition, TokenKind$2.BRACE_R);
37804
37804
  return {
37805
37805
  kind: Kind$3.SCHEMA_DEFINITION,
37806
37806
  description: description,
@@ -37817,7 +37817,7 @@
37817
37817
  _proto.parseOperationTypeDefinition = function parseOperationTypeDefinition() {
37818
37818
  var start = this._lexer.token;
37819
37819
  var operation = this.parseOperationType();
37820
- this.expectToken(TokenKind$3.COLON);
37820
+ this.expectToken(TokenKind$2.COLON);
37821
37821
  var type = this.parseNamedType();
37822
37822
  return {
37823
37823
  kind: Kind$3.OPERATION_TYPE_DEFINITION,
@@ -37887,16 +37887,16 @@
37887
37887
  if (((_this$_options2 = this._options) === null || _this$_options2 === void 0 ? void 0 : _this$_options2.allowLegacySDLImplementsInterfaces) === true) {
37888
37888
  var types = []; // Optional leading ampersand
37889
37889
 
37890
- this.expectOptionalToken(TokenKind$3.AMP);
37890
+ this.expectOptionalToken(TokenKind$2.AMP);
37891
37891
 
37892
37892
  do {
37893
37893
  types.push(this.parseNamedType());
37894
- } while (this.expectOptionalToken(TokenKind$3.AMP) || this.peek(TokenKind$3.NAME));
37894
+ } while (this.expectOptionalToken(TokenKind$2.AMP) || this.peek(TokenKind$2.NAME));
37895
37895
 
37896
37896
  return types;
37897
37897
  }
37898
37898
 
37899
- return this.delimitedMany(TokenKind$3.AMP, this.parseNamedType);
37899
+ return this.delimitedMany(TokenKind$2.AMP, this.parseNamedType);
37900
37900
  }
37901
37901
  /**
37902
37902
  * FieldsDefinition : { FieldDefinition+ }
@@ -37907,7 +37907,7 @@
37907
37907
  var _this$_options3;
37908
37908
 
37909
37909
  // Legacy support for the SDL?
37910
- 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) {
37910
+ 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) {
37911
37911
  this._lexer.advance();
37912
37912
 
37913
37913
  this._lexer.advance();
@@ -37915,7 +37915,7 @@
37915
37915
  return [];
37916
37916
  }
37917
37917
 
37918
- return this.optionalMany(TokenKind$3.BRACE_L, this.parseFieldDefinition, TokenKind$3.BRACE_R);
37918
+ return this.optionalMany(TokenKind$2.BRACE_L, this.parseFieldDefinition, TokenKind$2.BRACE_R);
37919
37919
  }
37920
37920
  /**
37921
37921
  * FieldDefinition :
@@ -37928,7 +37928,7 @@
37928
37928
  var description = this.parseDescription();
37929
37929
  var name = this.parseName();
37930
37930
  var args = this.parseArgumentDefs();
37931
- this.expectToken(TokenKind$3.COLON);
37931
+ this.expectToken(TokenKind$2.COLON);
37932
37932
  var type = this.parseTypeReference();
37933
37933
  var directives = this.parseDirectives(true);
37934
37934
  return {
@@ -37947,7 +37947,7 @@
37947
37947
  ;
37948
37948
 
37949
37949
  _proto.parseArgumentDefs = function parseArgumentDefs() {
37950
- return this.optionalMany(TokenKind$3.PAREN_L, this.parseInputValueDef, TokenKind$3.PAREN_R);
37950
+ return this.optionalMany(TokenKind$2.PAREN_L, this.parseInputValueDef, TokenKind$2.PAREN_R);
37951
37951
  }
37952
37952
  /**
37953
37953
  * InputValueDefinition :
@@ -37959,11 +37959,11 @@
37959
37959
  var start = this._lexer.token;
37960
37960
  var description = this.parseDescription();
37961
37961
  var name = this.parseName();
37962
- this.expectToken(TokenKind$3.COLON);
37962
+ this.expectToken(TokenKind$2.COLON);
37963
37963
  var type = this.parseTypeReference();
37964
37964
  var defaultValue;
37965
37965
 
37966
- if (this.expectOptionalToken(TokenKind$3.EQUALS)) {
37966
+ if (this.expectOptionalToken(TokenKind$2.EQUALS)) {
37967
37967
  defaultValue = this.parseValueLiteral(true);
37968
37968
  }
37969
37969
 
@@ -38032,7 +38032,7 @@
38032
38032
  ;
38033
38033
 
38034
38034
  _proto.parseUnionMemberTypes = function parseUnionMemberTypes() {
38035
- return this.expectOptionalToken(TokenKind$3.EQUALS) ? this.delimitedMany(TokenKind$3.PIPE, this.parseNamedType) : [];
38035
+ return this.expectOptionalToken(TokenKind$2.EQUALS) ? this.delimitedMany(TokenKind$2.PIPE, this.parseNamedType) : [];
38036
38036
  }
38037
38037
  /**
38038
38038
  * EnumTypeDefinition :
@@ -38062,7 +38062,7 @@
38062
38062
  ;
38063
38063
 
38064
38064
  _proto.parseEnumValuesDefinition = function parseEnumValuesDefinition() {
38065
- return this.optionalMany(TokenKind$3.BRACE_L, this.parseEnumValueDefinition, TokenKind$3.BRACE_R);
38065
+ return this.optionalMany(TokenKind$2.BRACE_L, this.parseEnumValueDefinition, TokenKind$2.BRACE_R);
38066
38066
  }
38067
38067
  /**
38068
38068
  * EnumValueDefinition : Description? EnumValue Directives[Const]?
@@ -38112,7 +38112,7 @@
38112
38112
  ;
38113
38113
 
38114
38114
  _proto.parseInputFieldsDefinition = function parseInputFieldsDefinition() {
38115
- return this.optionalMany(TokenKind$3.BRACE_L, this.parseInputValueDef, TokenKind$3.BRACE_R);
38115
+ return this.optionalMany(TokenKind$2.BRACE_L, this.parseInputValueDef, TokenKind$2.BRACE_R);
38116
38116
  }
38117
38117
  /**
38118
38118
  * TypeSystemExtension :
@@ -38132,7 +38132,7 @@
38132
38132
  _proto.parseTypeSystemExtension = function parseTypeSystemExtension() {
38133
38133
  var keywordToken = this._lexer.lookahead();
38134
38134
 
38135
- if (keywordToken.kind === TokenKind$3.NAME) {
38135
+ if (keywordToken.kind === TokenKind$2.NAME) {
38136
38136
  switch (keywordToken.value) {
38137
38137
  case 'schema':
38138
38138
  return this.parseSchemaExtension();
@@ -38171,7 +38171,7 @@
38171
38171
  this.expectKeyword('extend');
38172
38172
  this.expectKeyword('schema');
38173
38173
  var directives = this.parseDirectives(true);
38174
- var operationTypes = this.optionalMany(TokenKind$3.BRACE_L, this.parseOperationTypeDefinition, TokenKind$3.BRACE_R);
38174
+ var operationTypes = this.optionalMany(TokenKind$2.BRACE_L, this.parseOperationTypeDefinition, TokenKind$2.BRACE_R);
38175
38175
 
38176
38176
  if (directives.length === 0 && operationTypes.length === 0) {
38177
38177
  throw this.unexpected();
@@ -38359,7 +38359,7 @@
38359
38359
  var start = this._lexer.token;
38360
38360
  var description = this.parseDescription();
38361
38361
  this.expectKeyword('directive');
38362
- this.expectToken(TokenKind$3.AT);
38362
+ this.expectToken(TokenKind$2.AT);
38363
38363
  var name = this.parseName();
38364
38364
  var args = this.parseArgumentDefs();
38365
38365
  var repeatable = this.expectOptionalKeyword('repeatable');
@@ -38383,7 +38383,7 @@
38383
38383
  ;
38384
38384
 
38385
38385
  _proto.parseDirectiveLocations = function parseDirectiveLocations() {
38386
- return this.delimitedMany(TokenKind$3.PIPE, this.parseDirectiveLocation);
38386
+ return this.delimitedMany(TokenKind$2.PIPE, this.parseDirectiveLocation);
38387
38387
  }
38388
38388
  /*
38389
38389
  * DirectiveLocation :
@@ -38418,7 +38418,7 @@
38418
38418
  var start = this._lexer.token;
38419
38419
  var name = this.parseName();
38420
38420
 
38421
- if (DirectiveLocation$3[name.value] !== undefined) {
38421
+ if (DirectiveLocation$2[name.value] !== undefined) {
38422
38422
  return name;
38423
38423
  }
38424
38424
 
@@ -38488,7 +38488,7 @@
38488
38488
  _proto.expectKeyword = function expectKeyword(value) {
38489
38489
  var token = this._lexer.token;
38490
38490
 
38491
- if (token.kind === TokenKind$3.NAME && token.value === value) {
38491
+ if (token.kind === TokenKind$2.NAME && token.value === value) {
38492
38492
  this._lexer.advance();
38493
38493
  } else {
38494
38494
  throw syntaxError(this._lexer.source, token.start, "Expected \"".concat(value, "\", found ").concat(getTokenDesc(token), "."));
@@ -38503,7 +38503,7 @@
38503
38503
  _proto.expectOptionalKeyword = function expectOptionalKeyword(value) {
38504
38504
  var token = this._lexer.token;
38505
38505
 
38506
- if (token.kind === TokenKind$3.NAME && token.value === value) {
38506
+ if (token.kind === TokenKind$2.NAME && token.value === value) {
38507
38507
  this._lexer.advance();
38508
38508
 
38509
38509
  return true;
@@ -41442,79 +41442,79 @@
41442
41442
  description: 'A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.',
41443
41443
  values: {
41444
41444
  QUERY: {
41445
- value: DirectiveLocation$3.QUERY,
41445
+ value: DirectiveLocation$2.QUERY,
41446
41446
  description: 'Location adjacent to a query operation.'
41447
41447
  },
41448
41448
  MUTATION: {
41449
- value: DirectiveLocation$3.MUTATION,
41449
+ value: DirectiveLocation$2.MUTATION,
41450
41450
  description: 'Location adjacent to a mutation operation.'
41451
41451
  },
41452
41452
  SUBSCRIPTION: {
41453
- value: DirectiveLocation$3.SUBSCRIPTION,
41453
+ value: DirectiveLocation$2.SUBSCRIPTION,
41454
41454
  description: 'Location adjacent to a subscription operation.'
41455
41455
  },
41456
41456
  FIELD: {
41457
- value: DirectiveLocation$3.FIELD,
41457
+ value: DirectiveLocation$2.FIELD,
41458
41458
  description: 'Location adjacent to a field.'
41459
41459
  },
41460
41460
  FRAGMENT_DEFINITION: {
41461
- value: DirectiveLocation$3.FRAGMENT_DEFINITION,
41461
+ value: DirectiveLocation$2.FRAGMENT_DEFINITION,
41462
41462
  description: 'Location adjacent to a fragment definition.'
41463
41463
  },
41464
41464
  FRAGMENT_SPREAD: {
41465
- value: DirectiveLocation$3.FRAGMENT_SPREAD,
41465
+ value: DirectiveLocation$2.FRAGMENT_SPREAD,
41466
41466
  description: 'Location adjacent to a fragment spread.'
41467
41467
  },
41468
41468
  INLINE_FRAGMENT: {
41469
- value: DirectiveLocation$3.INLINE_FRAGMENT,
41469
+ value: DirectiveLocation$2.INLINE_FRAGMENT,
41470
41470
  description: 'Location adjacent to an inline fragment.'
41471
41471
  },
41472
41472
  VARIABLE_DEFINITION: {
41473
- value: DirectiveLocation$3.VARIABLE_DEFINITION,
41473
+ value: DirectiveLocation$2.VARIABLE_DEFINITION,
41474
41474
  description: 'Location adjacent to a variable definition.'
41475
41475
  },
41476
41476
  SCHEMA: {
41477
- value: DirectiveLocation$3.SCHEMA,
41477
+ value: DirectiveLocation$2.SCHEMA,
41478
41478
  description: 'Location adjacent to a schema definition.'
41479
41479
  },
41480
41480
  SCALAR: {
41481
- value: DirectiveLocation$3.SCALAR,
41481
+ value: DirectiveLocation$2.SCALAR,
41482
41482
  description: 'Location adjacent to a scalar definition.'
41483
41483
  },
41484
41484
  OBJECT: {
41485
- value: DirectiveLocation$3.OBJECT,
41485
+ value: DirectiveLocation$2.OBJECT,
41486
41486
  description: 'Location adjacent to an object type definition.'
41487
41487
  },
41488
41488
  FIELD_DEFINITION: {
41489
- value: DirectiveLocation$3.FIELD_DEFINITION,
41489
+ value: DirectiveLocation$2.FIELD_DEFINITION,
41490
41490
  description: 'Location adjacent to a field definition.'
41491
41491
  },
41492
41492
  ARGUMENT_DEFINITION: {
41493
- value: DirectiveLocation$3.ARGUMENT_DEFINITION,
41493
+ value: DirectiveLocation$2.ARGUMENT_DEFINITION,
41494
41494
  description: 'Location adjacent to an argument definition.'
41495
41495
  },
41496
41496
  INTERFACE: {
41497
- value: DirectiveLocation$3.INTERFACE,
41497
+ value: DirectiveLocation$2.INTERFACE,
41498
41498
  description: 'Location adjacent to an interface definition.'
41499
41499
  },
41500
41500
  UNION: {
41501
- value: DirectiveLocation$3.UNION,
41501
+ value: DirectiveLocation$2.UNION,
41502
41502
  description: 'Location adjacent to a union definition.'
41503
41503
  },
41504
41504
  ENUM: {
41505
- value: DirectiveLocation$3.ENUM,
41505
+ value: DirectiveLocation$2.ENUM,
41506
41506
  description: 'Location adjacent to an enum definition.'
41507
41507
  },
41508
41508
  ENUM_VALUE: {
41509
- value: DirectiveLocation$3.ENUM_VALUE,
41509
+ value: DirectiveLocation$2.ENUM_VALUE,
41510
41510
  description: 'Location adjacent to an enum value definition.'
41511
41511
  },
41512
41512
  INPUT_OBJECT: {
41513
- value: DirectiveLocation$3.INPUT_OBJECT,
41513
+ value: DirectiveLocation$2.INPUT_OBJECT,
41514
41514
  description: 'Location adjacent to an input object type definition.'
41515
41515
  },
41516
41516
  INPUT_FIELD_DEFINITION: {
41517
- value: DirectiveLocation$3.INPUT_FIELD_DEFINITION,
41517
+ value: DirectiveLocation$2.INPUT_FIELD_DEFINITION,
41518
41518
  description: 'Location adjacent to an input object field definition.'
41519
41519
  }
41520
41520
  }
@@ -41997,7 +41997,7 @@
41997
41997
  var GraphQLIncludeDirective = new GraphQLDirective({
41998
41998
  name: 'include',
41999
41999
  description: 'Directs the executor to include this field or fragment only when the `if` argument is true.',
42000
- locations: [DirectiveLocation$3.FIELD, DirectiveLocation$3.FRAGMENT_SPREAD, DirectiveLocation$3.INLINE_FRAGMENT],
42000
+ locations: [DirectiveLocation$2.FIELD, DirectiveLocation$2.FRAGMENT_SPREAD, DirectiveLocation$2.INLINE_FRAGMENT],
42001
42001
  args: {
42002
42002
  if: {
42003
42003
  type: new GraphQLNonNull(GraphQLBoolean),
@@ -42012,7 +42012,7 @@
42012
42012
  var GraphQLSkipDirective = new GraphQLDirective({
42013
42013
  name: 'skip',
42014
42014
  description: 'Directs the executor to skip this field or fragment when the `if` argument is true.',
42015
- locations: [DirectiveLocation$3.FIELD, DirectiveLocation$3.FRAGMENT_SPREAD, DirectiveLocation$3.INLINE_FRAGMENT],
42015
+ locations: [DirectiveLocation$2.FIELD, DirectiveLocation$2.FRAGMENT_SPREAD, DirectiveLocation$2.INLINE_FRAGMENT],
42016
42016
  args: {
42017
42017
  if: {
42018
42018
  type: new GraphQLNonNull(GraphQLBoolean),
@@ -42032,7 +42032,7 @@
42032
42032
  var GraphQLDeprecatedDirective = new GraphQLDirective({
42033
42033
  name: 'deprecated',
42034
42034
  description: 'Marks an element of a GraphQL schema as no longer supported.',
42035
- locations: [DirectiveLocation$3.FIELD_DEFINITION, DirectiveLocation$3.ARGUMENT_DEFINITION, DirectiveLocation$3.INPUT_FIELD_DEFINITION, DirectiveLocation$3.ENUM_VALUE],
42035
+ locations: [DirectiveLocation$2.FIELD_DEFINITION, DirectiveLocation$2.ARGUMENT_DEFINITION, DirectiveLocation$2.INPUT_FIELD_DEFINITION, DirectiveLocation$2.ENUM_VALUE],
42036
42036
  args: {
42037
42037
  reason: {
42038
42038
  type: GraphQLString,
@@ -42048,7 +42048,7 @@
42048
42048
  var GraphQLSpecifiedByDirective = new GraphQLDirective({
42049
42049
  name: 'specifiedBy',
42050
42050
  description: 'Exposes a URL that specifies the behaviour of this scalar.',
42051
- locations: [DirectiveLocation$3.SCALAR],
42051
+ locations: [DirectiveLocation$2.SCALAR],
42052
42052
  args: {
42053
42053
  url: {
42054
42054
  type: new GraphQLNonNull(GraphQLString),
@@ -43083,58 +43083,58 @@
43083
43083
  return getDirectiveLocationForOperation(appliedTo.operation);
43084
43084
 
43085
43085
  case Kind$3.FIELD:
43086
- return DirectiveLocation$3.FIELD;
43086
+ return DirectiveLocation$2.FIELD;
43087
43087
 
43088
43088
  case Kind$3.FRAGMENT_SPREAD:
43089
- return DirectiveLocation$3.FRAGMENT_SPREAD;
43089
+ return DirectiveLocation$2.FRAGMENT_SPREAD;
43090
43090
 
43091
43091
  case Kind$3.INLINE_FRAGMENT:
43092
- return DirectiveLocation$3.INLINE_FRAGMENT;
43092
+ return DirectiveLocation$2.INLINE_FRAGMENT;
43093
43093
 
43094
43094
  case Kind$3.FRAGMENT_DEFINITION:
43095
- return DirectiveLocation$3.FRAGMENT_DEFINITION;
43095
+ return DirectiveLocation$2.FRAGMENT_DEFINITION;
43096
43096
 
43097
43097
  case Kind$3.VARIABLE_DEFINITION:
43098
- return DirectiveLocation$3.VARIABLE_DEFINITION;
43098
+ return DirectiveLocation$2.VARIABLE_DEFINITION;
43099
43099
 
43100
43100
  case Kind$3.SCHEMA_DEFINITION:
43101
43101
  case Kind$3.SCHEMA_EXTENSION:
43102
- return DirectiveLocation$3.SCHEMA;
43102
+ return DirectiveLocation$2.SCHEMA;
43103
43103
 
43104
43104
  case Kind$3.SCALAR_TYPE_DEFINITION:
43105
43105
  case Kind$3.SCALAR_TYPE_EXTENSION:
43106
- return DirectiveLocation$3.SCALAR;
43106
+ return DirectiveLocation$2.SCALAR;
43107
43107
 
43108
43108
  case Kind$3.OBJECT_TYPE_DEFINITION:
43109
43109
  case Kind$3.OBJECT_TYPE_EXTENSION:
43110
- return DirectiveLocation$3.OBJECT;
43110
+ return DirectiveLocation$2.OBJECT;
43111
43111
 
43112
43112
  case Kind$3.FIELD_DEFINITION:
43113
- return DirectiveLocation$3.FIELD_DEFINITION;
43113
+ return DirectiveLocation$2.FIELD_DEFINITION;
43114
43114
 
43115
43115
  case Kind$3.INTERFACE_TYPE_DEFINITION:
43116
43116
  case Kind$3.INTERFACE_TYPE_EXTENSION:
43117
- return DirectiveLocation$3.INTERFACE;
43117
+ return DirectiveLocation$2.INTERFACE;
43118
43118
 
43119
43119
  case Kind$3.UNION_TYPE_DEFINITION:
43120
43120
  case Kind$3.UNION_TYPE_EXTENSION:
43121
- return DirectiveLocation$3.UNION;
43121
+ return DirectiveLocation$2.UNION;
43122
43122
 
43123
43123
  case Kind$3.ENUM_TYPE_DEFINITION:
43124
43124
  case Kind$3.ENUM_TYPE_EXTENSION:
43125
- return DirectiveLocation$3.ENUM;
43125
+ return DirectiveLocation$2.ENUM;
43126
43126
 
43127
43127
  case Kind$3.ENUM_VALUE_DEFINITION:
43128
- return DirectiveLocation$3.ENUM_VALUE;
43128
+ return DirectiveLocation$2.ENUM_VALUE;
43129
43129
 
43130
43130
  case Kind$3.INPUT_OBJECT_TYPE_DEFINITION:
43131
43131
  case Kind$3.INPUT_OBJECT_TYPE_EXTENSION:
43132
- return DirectiveLocation$3.INPUT_OBJECT;
43132
+ return DirectiveLocation$2.INPUT_OBJECT;
43133
43133
 
43134
43134
  case Kind$3.INPUT_VALUE_DEFINITION:
43135
43135
  {
43136
43136
  var parentNode = ancestors[ancestors.length - 3];
43137
- return parentNode.kind === Kind$3.INPUT_OBJECT_TYPE_DEFINITION ? DirectiveLocation$3.INPUT_FIELD_DEFINITION : DirectiveLocation$3.ARGUMENT_DEFINITION;
43137
+ return parentNode.kind === Kind$3.INPUT_OBJECT_TYPE_DEFINITION ? DirectiveLocation$2.INPUT_FIELD_DEFINITION : DirectiveLocation$2.ARGUMENT_DEFINITION;
43138
43138
  }
43139
43139
  }
43140
43140
  }
@@ -43142,13 +43142,13 @@
43142
43142
  function getDirectiveLocationForOperation(operation) {
43143
43143
  switch (operation) {
43144
43144
  case 'query':
43145
- return DirectiveLocation$3.QUERY;
43145
+ return DirectiveLocation$2.QUERY;
43146
43146
 
43147
43147
  case 'mutation':
43148
- return DirectiveLocation$3.MUTATION;
43148
+ return DirectiveLocation$2.MUTATION;
43149
43149
 
43150
43150
  case 'subscription':
43151
- return DirectiveLocation$3.SUBSCRIPTION;
43151
+ return DirectiveLocation$2.SUBSCRIPTION;
43152
43152
  } // istanbul ignore next (Not reachable. All possible types have been considered)
43153
43153
 
43154
43154
 
@@ -46035,7 +46035,7 @@
46035
46035
  var comments = [];
46036
46036
  var token = loc.startToken.prev;
46037
46037
 
46038
- while (token != null && token.kind === TokenKind$3.COMMENT && token.next && token.prev && token.line + 1 === token.next.line && token.line !== token.prev.line) {
46038
+ while (token != null && token.kind === TokenKind$2.COMMENT && token.next && token.prev && token.line + 1 === token.next.line && token.line !== token.prev.line) {
46039
46039
  var value = String(token.value);
46040
46040
  comments.push(value);
46041
46041
  token = token.prev;
@@ -46197,7 +46197,7 @@
46197
46197
  var strippedBody = '';
46198
46198
  var wasLastAddedTokenNonPunctuator = false;
46199
46199
 
46200
- while (lexer.advance().kind !== TokenKind$3.EOF) {
46200
+ while (lexer.advance().kind !== TokenKind$2.EOF) {
46201
46201
  var currentToken = lexer.token;
46202
46202
  var tokenKind = currentToken.kind;
46203
46203
  /**
@@ -46209,14 +46209,14 @@
46209
46209
  var isNonPunctuator = !isPunctuatorTokenKind(currentToken.kind);
46210
46210
 
46211
46211
  if (wasLastAddedTokenNonPunctuator) {
46212
- if (isNonPunctuator || currentToken.kind === TokenKind$3.SPREAD) {
46212
+ if (isNonPunctuator || currentToken.kind === TokenKind$2.SPREAD) {
46213
46213
  strippedBody += ' ';
46214
46214
  }
46215
46215
  }
46216
46216
 
46217
46217
  var tokenBody = body.slice(currentToken.start, currentToken.end);
46218
46218
 
46219
- if (tokenKind === TokenKind$3.BLOCK_STRING) {
46219
+ if (tokenKind === TokenKind$2.BLOCK_STRING) {
46220
46220
  strippedBody += dedentBlockString(tokenBody);
46221
46221
  } else {
46222
46222
  strippedBody += tokenBody;
@@ -46649,7 +46649,7 @@
46649
46649
  * Opaque reference map to return keys to userland
46650
46650
  * As a user shouldn't have access to the Document
46651
46651
  */
46652
- const referenceMap$2 = new WeakMap();
46652
+ const referenceMap$1 = new WeakMap();
46653
46653
  /**
46654
46654
  * Strips characters that are not significant to the validity or execution
46655
46655
  * of a GraphQL document:
@@ -46697,7 +46697,7 @@
46697
46697
  return doc;
46698
46698
  }
46699
46699
  function updateReferenceMapWithKnownKey(doc, key) {
46700
- referenceMap$2.set(key, doc);
46700
+ referenceMap$1.set(key, doc);
46701
46701
  }
46702
46702
  function updateReferenceMapAndGetKey(doc) {
46703
46703
  // the key is a String object so that legacy locker does not replace its identity.
@@ -46722,7 +46722,7 @@
46722
46722
  outputString += substitution;
46723
46723
  }
46724
46724
  else if (typeof substitution === 'object') {
46725
- const doc = referenceMap$2.get(substitution);
46725
+ const doc = referenceMap$1.get(substitution);
46726
46726
  if (doc === undefined) {
46727
46727
  return null;
46728
46728
  }
@@ -46743,8 +46743,8 @@
46743
46743
  *
46744
46744
  * @param astReference - ast reference passed from user land
46745
46745
  */
46746
- const astResolver$2 = function (astReference) {
46747
- return referenceMap$2.get(astReference);
46746
+ const astResolver$1 = function (astReference) {
46747
+ return referenceMap$1.get(astReference);
46748
46748
  };
46749
46749
  /**
46750
46750
  *
@@ -46943,6 +46943,15 @@
46943
46943
  return luvioDocumentNode;
46944
46944
  }
46945
46945
 
46946
+ var graphqlRelationshipFieldsPerf = {
46947
+ isOpen: function (e) {
46948
+ return e.fallback;
46949
+ },
46950
+ hasError: function () {
46951
+ return !0;
46952
+ },
46953
+ };
46954
+
46946
46955
  var FIRST_DAY_OF_WEEK = 0;
46947
46956
 
46948
46957
  var graphqQueryFieldLimit = {
@@ -47401,6 +47410,906 @@
47401
47410
  return ok$3(data);
47402
47411
  }
47403
47412
 
47413
+ /**
47414
+ * Copyright (c) 2022, Salesforce, Inc.,
47415
+ * All rights reserved.
47416
+ * For full license text, see the LICENSE.txt file
47417
+ */
47418
+
47419
+ /*!
47420
+ * Copyright (c) 2022, Salesforce, Inc.,
47421
+ * All rights reserved.
47422
+ * For full license text, see the LICENSE.txt file
47423
+ */
47424
+ function devAssert(condition, message) {
47425
+ const booleanCondition = Boolean(condition);
47426
+ if (!booleanCondition) {
47427
+ throw new Error(message);
47428
+ }
47429
+ }
47430
+ const MAX_ARRAY_LENGTH$1 = 10;
47431
+ const MAX_RECURSIVE_DEPTH$1 = 2;
47432
+ function inspect$1(value) {
47433
+ return formatValue$1(value, []);
47434
+ }
47435
+ function formatValue$1(value, seenValues) {
47436
+ switch (typeof value) {
47437
+ case "string":
47438
+ return JSON.stringify(value);
47439
+ case "function":
47440
+ return value.name ? `[function ${value.name}]` : "[function]";
47441
+ case "object":
47442
+ return formatObjectValue$1(value, seenValues);
47443
+ default:
47444
+ return String(value);
47445
+ }
47446
+ }
47447
+ function formatObjectValue$1(value, previouslySeenValues) {
47448
+ if (value === null) {
47449
+ return "null";
47450
+ }
47451
+ if (previouslySeenValues.includes(value)) {
47452
+ return "[Circular]";
47453
+ }
47454
+ const seenValues = [...previouslySeenValues, value];
47455
+ if (isJSONable(value)) {
47456
+ const jsonValue = value.toJSON();
47457
+ if (jsonValue !== value) {
47458
+ return typeof jsonValue === "string" ? jsonValue : formatValue$1(jsonValue, seenValues);
47459
+ }
47460
+ } else if (Array.isArray(value)) {
47461
+ return formatArray$1(value, seenValues);
47462
+ }
47463
+ return formatObject$1(value, seenValues);
47464
+ }
47465
+ function isJSONable(value) {
47466
+ return typeof value.toJSON === "function";
47467
+ }
47468
+ function formatObject$1(object, seenValues) {
47469
+ const entries = Object.entries(object);
47470
+ if (entries.length === 0) {
47471
+ return "{}";
47472
+ }
47473
+ if (seenValues.length > MAX_RECURSIVE_DEPTH$1) {
47474
+ return "[" + getObjectTag$1(object) + "]";
47475
+ }
47476
+ const properties = entries.map(
47477
+ ([key, value]) => key + ": " + formatValue$1(value, seenValues)
47478
+ );
47479
+ return "{ " + properties.join(", ") + " }";
47480
+ }
47481
+ function formatArray$1(array, seenValues) {
47482
+ if (array.length === 0) {
47483
+ return "[]";
47484
+ }
47485
+ if (seenValues.length > MAX_RECURSIVE_DEPTH$1) {
47486
+ return "[Array]";
47487
+ }
47488
+ const len = Math.min(MAX_ARRAY_LENGTH$1, array.length);
47489
+ const remaining = array.length - len;
47490
+ const items = [];
47491
+ for (let i = 0; i < len; ++i) {
47492
+ items.push(formatValue$1(array[i], seenValues));
47493
+ }
47494
+ if (remaining === 1) {
47495
+ items.push("... 1 more item");
47496
+ } else if (remaining > 1) {
47497
+ items.push(`... ${remaining} more items`);
47498
+ }
47499
+ return "[" + items.join(", ") + "]";
47500
+ }
47501
+ function getObjectTag$1(object) {
47502
+ const tag = Object.prototype.toString.call(object).replace(/^\[object /, "").replace(/]$/, "");
47503
+ if (tag === "Object" && typeof object.constructor === "function") {
47504
+ const name = object.constructor.name;
47505
+ if (typeof name === "string" && name !== "") {
47506
+ return name;
47507
+ }
47508
+ }
47509
+ return tag;
47510
+ }
47511
+ var Kind$2;
47512
+ (function(Kind2) {
47513
+ Kind2["NAME"] = "Name";
47514
+ Kind2["DOCUMENT"] = "Document";
47515
+ Kind2["OPERATION_DEFINITION"] = "OperationDefinition";
47516
+ Kind2["VARIABLE_DEFINITION"] = "VariableDefinition";
47517
+ Kind2["SELECTION_SET"] = "SelectionSet";
47518
+ Kind2["FIELD"] = "Field";
47519
+ Kind2["ARGUMENT"] = "Argument";
47520
+ Kind2["FRAGMENT_SPREAD"] = "FragmentSpread";
47521
+ Kind2["INLINE_FRAGMENT"] = "InlineFragment";
47522
+ Kind2["FRAGMENT_DEFINITION"] = "FragmentDefinition";
47523
+ Kind2["VARIABLE"] = "Variable";
47524
+ Kind2["INT"] = "IntValue";
47525
+ Kind2["FLOAT"] = "FloatValue";
47526
+ Kind2["STRING"] = "StringValue";
47527
+ Kind2["BOOLEAN"] = "BooleanValue";
47528
+ Kind2["NULL"] = "NullValue";
47529
+ Kind2["ENUM"] = "EnumValue";
47530
+ Kind2["LIST"] = "ListValue";
47531
+ Kind2["OBJECT"] = "ObjectValue";
47532
+ Kind2["OBJECT_FIELD"] = "ObjectField";
47533
+ Kind2["DIRECTIVE"] = "Directive";
47534
+ Kind2["NAMED_TYPE"] = "NamedType";
47535
+ Kind2["LIST_TYPE"] = "ListType";
47536
+ Kind2["NON_NULL_TYPE"] = "NonNullType";
47537
+ Kind2["SCHEMA_DEFINITION"] = "SchemaDefinition";
47538
+ Kind2["OPERATION_TYPE_DEFINITION"] = "OperationTypeDefinition";
47539
+ Kind2["SCALAR_TYPE_DEFINITION"] = "ScalarTypeDefinition";
47540
+ Kind2["OBJECT_TYPE_DEFINITION"] = "ObjectTypeDefinition";
47541
+ Kind2["FIELD_DEFINITION"] = "FieldDefinition";
47542
+ Kind2["INPUT_VALUE_DEFINITION"] = "InputValueDefinition";
47543
+ Kind2["INTERFACE_TYPE_DEFINITION"] = "InterfaceTypeDefinition";
47544
+ Kind2["UNION_TYPE_DEFINITION"] = "UnionTypeDefinition";
47545
+ Kind2["ENUM_TYPE_DEFINITION"] = "EnumTypeDefinition";
47546
+ Kind2["ENUM_VALUE_DEFINITION"] = "EnumValueDefinition";
47547
+ Kind2["INPUT_OBJECT_TYPE_DEFINITION"] = "InputObjectTypeDefinition";
47548
+ Kind2["DIRECTIVE_DEFINITION"] = "DirectiveDefinition";
47549
+ Kind2["SCHEMA_EXTENSION"] = "SchemaExtension";
47550
+ Kind2["SCALAR_TYPE_EXTENSION"] = "ScalarTypeExtension";
47551
+ Kind2["OBJECT_TYPE_EXTENSION"] = "ObjectTypeExtension";
47552
+ Kind2["INTERFACE_TYPE_EXTENSION"] = "InterfaceTypeExtension";
47553
+ Kind2["UNION_TYPE_EXTENSION"] = "UnionTypeExtension";
47554
+ Kind2["ENUM_TYPE_EXTENSION"] = "EnumTypeExtension";
47555
+ Kind2["INPUT_OBJECT_TYPE_EXTENSION"] = "InputObjectTypeExtension";
47556
+ })(Kind$2 || (Kind$2 = {}));
47557
+ var TokenKind$1;
47558
+ (function(TokenKind2) {
47559
+ TokenKind2["SOF"] = "<SOF>";
47560
+ TokenKind2["EOF"] = "<EOF>";
47561
+ TokenKind2["BANG"] = "!";
47562
+ TokenKind2["DOLLAR"] = "$";
47563
+ TokenKind2["AMP"] = "&";
47564
+ TokenKind2["PAREN_L"] = "(";
47565
+ TokenKind2["PAREN_R"] = ")";
47566
+ TokenKind2["SPREAD"] = "...";
47567
+ TokenKind2["COLON"] = ":";
47568
+ TokenKind2["EQUALS"] = "=";
47569
+ TokenKind2["AT"] = "@";
47570
+ TokenKind2["BRACKET_L"] = "[";
47571
+ TokenKind2["BRACKET_R"] = "]";
47572
+ TokenKind2["BRACE_L"] = "{";
47573
+ TokenKind2["PIPE"] = "|";
47574
+ TokenKind2["BRACE_R"] = "}";
47575
+ TokenKind2["NAME"] = "Name";
47576
+ TokenKind2["INT"] = "Int";
47577
+ TokenKind2["FLOAT"] = "Float";
47578
+ TokenKind2["STRING"] = "String";
47579
+ TokenKind2["BLOCK_STRING"] = "BlockString";
47580
+ TokenKind2["COMMENT"] = "Comment";
47581
+ })(TokenKind$1 || (TokenKind$1 = {}));
47582
+ const QueryDocumentKeys$2 = {
47583
+ Name: [],
47584
+ Document: ["definitions"],
47585
+ OperationDefinition: [
47586
+ "name",
47587
+ "variableDefinitions",
47588
+ "directives",
47589
+ "selectionSet"
47590
+ ],
47591
+ VariableDefinition: ["variable", "type", "defaultValue", "directives"],
47592
+ Variable: ["name"],
47593
+ SelectionSet: ["selections"],
47594
+ Field: ["alias", "name", "arguments", "directives", "selectionSet"],
47595
+ Argument: ["name", "value"],
47596
+ FragmentSpread: ["name", "directives"],
47597
+ InlineFragment: ["typeCondition", "directives", "selectionSet"],
47598
+ FragmentDefinition: [
47599
+ "name",
47600
+ // Note: fragment variable definitions are deprecated and will removed in v17.0.0
47601
+ "variableDefinitions",
47602
+ "typeCondition",
47603
+ "directives",
47604
+ "selectionSet"
47605
+ ],
47606
+ IntValue: [],
47607
+ FloatValue: [],
47608
+ StringValue: [],
47609
+ BooleanValue: [],
47610
+ NullValue: [],
47611
+ EnumValue: [],
47612
+ ListValue: ["values"],
47613
+ ObjectValue: ["fields"],
47614
+ ObjectField: ["name", "value"],
47615
+ Directive: ["name", "arguments"],
47616
+ NamedType: ["name"],
47617
+ ListType: ["type"],
47618
+ NonNullType: ["type"],
47619
+ SchemaDefinition: ["description", "directives", "operationTypes"],
47620
+ OperationTypeDefinition: ["type"],
47621
+ ScalarTypeDefinition: ["description", "name", "directives"],
47622
+ ObjectTypeDefinition: [
47623
+ "description",
47624
+ "name",
47625
+ "interfaces",
47626
+ "directives",
47627
+ "fields"
47628
+ ],
47629
+ FieldDefinition: ["description", "name", "arguments", "type", "directives"],
47630
+ InputValueDefinition: [
47631
+ "description",
47632
+ "name",
47633
+ "type",
47634
+ "defaultValue",
47635
+ "directives"
47636
+ ],
47637
+ InterfaceTypeDefinition: [
47638
+ "description",
47639
+ "name",
47640
+ "interfaces",
47641
+ "directives",
47642
+ "fields"
47643
+ ],
47644
+ UnionTypeDefinition: ["description", "name", "directives", "types"],
47645
+ EnumTypeDefinition: ["description", "name", "directives", "values"],
47646
+ EnumValueDefinition: ["description", "name", "directives"],
47647
+ InputObjectTypeDefinition: ["description", "name", "directives", "fields"],
47648
+ DirectiveDefinition: ["description", "name", "arguments", "locations"],
47649
+ SchemaExtension: ["directives", "operationTypes"],
47650
+ ScalarTypeExtension: ["name", "directives"],
47651
+ ObjectTypeExtension: ["name", "interfaces", "directives", "fields"],
47652
+ InterfaceTypeExtension: ["name", "interfaces", "directives", "fields"],
47653
+ UnionTypeExtension: ["name", "directives", "types"],
47654
+ EnumTypeExtension: ["name", "directives", "values"],
47655
+ InputObjectTypeExtension: ["name", "directives", "fields"]
47656
+ };
47657
+ const kindValues = new Set(Object.keys(QueryDocumentKeys$2));
47658
+ function isNode$1(maybeNode) {
47659
+ const maybeKind = maybeNode === null || maybeNode === void 0 ? void 0 : maybeNode.kind;
47660
+ return typeof maybeKind === "string" && kindValues.has(maybeKind);
47661
+ }
47662
+ var OperationTypeNode$1;
47663
+ (function(OperationTypeNode2) {
47664
+ OperationTypeNode2["QUERY"] = "query";
47665
+ OperationTypeNode2["MUTATION"] = "mutation";
47666
+ OperationTypeNode2["SUBSCRIPTION"] = "subscription";
47667
+ })(OperationTypeNode$1 || (OperationTypeNode$1 = {}));
47668
+ function isWhiteSpace(code) {
47669
+ return code === 9 || code === 32;
47670
+ }
47671
+ function printBlockString(value, options) {
47672
+ const escapedValue = value.replace(/"""/g, '\\"""');
47673
+ const lines = escapedValue.split(/\r\n|[\n\r]/g);
47674
+ const isSingleLine = lines.length === 1;
47675
+ const forceLeadingNewLine = lines.length > 1 && lines.slice(1).every((line) => line.length === 0 || isWhiteSpace(line.charCodeAt(0)));
47676
+ const hasTrailingTripleQuotes = escapedValue.endsWith('\\"""');
47677
+ const hasTrailingQuote = value.endsWith('"') && !hasTrailingTripleQuotes;
47678
+ const hasTrailingSlash = value.endsWith("\\");
47679
+ const forceTrailingNewline = hasTrailingQuote || hasTrailingSlash;
47680
+ const printAsMultipleLines = !(options !== null && options !== void 0 && options.minimize) && // add leading and trailing new lines only if it improves readability
47681
+ (!isSingleLine || value.length > 70 || forceTrailingNewline || forceLeadingNewLine || hasTrailingTripleQuotes);
47682
+ let result = "";
47683
+ const skipLeadingNewLine = isSingleLine && isWhiteSpace(value.charCodeAt(0));
47684
+ if (printAsMultipleLines && !skipLeadingNewLine || forceLeadingNewLine) {
47685
+ result += "\n";
47686
+ }
47687
+ result += escapedValue;
47688
+ if (printAsMultipleLines || forceTrailingNewline) {
47689
+ result += "\n";
47690
+ }
47691
+ return '"""' + result + '"""';
47692
+ }
47693
+ var DirectiveLocation$1;
47694
+ (function(DirectiveLocation2) {
47695
+ DirectiveLocation2["QUERY"] = "QUERY";
47696
+ DirectiveLocation2["MUTATION"] = "MUTATION";
47697
+ DirectiveLocation2["SUBSCRIPTION"] = "SUBSCRIPTION";
47698
+ DirectiveLocation2["FIELD"] = "FIELD";
47699
+ DirectiveLocation2["FRAGMENT_DEFINITION"] = "FRAGMENT_DEFINITION";
47700
+ DirectiveLocation2["FRAGMENT_SPREAD"] = "FRAGMENT_SPREAD";
47701
+ DirectiveLocation2["INLINE_FRAGMENT"] = "INLINE_FRAGMENT";
47702
+ DirectiveLocation2["VARIABLE_DEFINITION"] = "VARIABLE_DEFINITION";
47703
+ DirectiveLocation2["SCHEMA"] = "SCHEMA";
47704
+ DirectiveLocation2["SCALAR"] = "SCALAR";
47705
+ DirectiveLocation2["OBJECT"] = "OBJECT";
47706
+ DirectiveLocation2["FIELD_DEFINITION"] = "FIELD_DEFINITION";
47707
+ DirectiveLocation2["ARGUMENT_DEFINITION"] = "ARGUMENT_DEFINITION";
47708
+ DirectiveLocation2["INTERFACE"] = "INTERFACE";
47709
+ DirectiveLocation2["UNION"] = "UNION";
47710
+ DirectiveLocation2["ENUM"] = "ENUM";
47711
+ DirectiveLocation2["ENUM_VALUE"] = "ENUM_VALUE";
47712
+ DirectiveLocation2["INPUT_OBJECT"] = "INPUT_OBJECT";
47713
+ DirectiveLocation2["INPUT_FIELD_DEFINITION"] = "INPUT_FIELD_DEFINITION";
47714
+ })(DirectiveLocation$1 || (DirectiveLocation$1 = {}));
47715
+ function printString(str) {
47716
+ return `"${str.replace(escapedRegExp, escapedReplacer)}"`;
47717
+ }
47718
+ const escapedRegExp = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
47719
+ function escapedReplacer(str) {
47720
+ return escapeSequences[str.charCodeAt(0)];
47721
+ }
47722
+ const escapeSequences = [
47723
+ "\\u0000",
47724
+ "\\u0001",
47725
+ "\\u0002",
47726
+ "\\u0003",
47727
+ "\\u0004",
47728
+ "\\u0005",
47729
+ "\\u0006",
47730
+ "\\u0007",
47731
+ "\\b",
47732
+ "\\t",
47733
+ "\\n",
47734
+ "\\u000B",
47735
+ "\\f",
47736
+ "\\r",
47737
+ "\\u000E",
47738
+ "\\u000F",
47739
+ "\\u0010",
47740
+ "\\u0011",
47741
+ "\\u0012",
47742
+ "\\u0013",
47743
+ "\\u0014",
47744
+ "\\u0015",
47745
+ "\\u0016",
47746
+ "\\u0017",
47747
+ "\\u0018",
47748
+ "\\u0019",
47749
+ "\\u001A",
47750
+ "\\u001B",
47751
+ "\\u001C",
47752
+ "\\u001D",
47753
+ "\\u001E",
47754
+ "\\u001F",
47755
+ "",
47756
+ "",
47757
+ '\\"',
47758
+ "",
47759
+ "",
47760
+ "",
47761
+ "",
47762
+ "",
47763
+ "",
47764
+ "",
47765
+ "",
47766
+ "",
47767
+ "",
47768
+ "",
47769
+ "",
47770
+ "",
47771
+ // 2F
47772
+ "",
47773
+ "",
47774
+ "",
47775
+ "",
47776
+ "",
47777
+ "",
47778
+ "",
47779
+ "",
47780
+ "",
47781
+ "",
47782
+ "",
47783
+ "",
47784
+ "",
47785
+ "",
47786
+ "",
47787
+ "",
47788
+ // 3F
47789
+ "",
47790
+ "",
47791
+ "",
47792
+ "",
47793
+ "",
47794
+ "",
47795
+ "",
47796
+ "",
47797
+ "",
47798
+ "",
47799
+ "",
47800
+ "",
47801
+ "",
47802
+ "",
47803
+ "",
47804
+ "",
47805
+ // 4F
47806
+ "",
47807
+ "",
47808
+ "",
47809
+ "",
47810
+ "",
47811
+ "",
47812
+ "",
47813
+ "",
47814
+ "",
47815
+ "",
47816
+ "",
47817
+ "",
47818
+ "\\\\",
47819
+ "",
47820
+ "",
47821
+ "",
47822
+ // 5F
47823
+ "",
47824
+ "",
47825
+ "",
47826
+ "",
47827
+ "",
47828
+ "",
47829
+ "",
47830
+ "",
47831
+ "",
47832
+ "",
47833
+ "",
47834
+ "",
47835
+ "",
47836
+ "",
47837
+ "",
47838
+ "",
47839
+ // 6F
47840
+ "",
47841
+ "",
47842
+ "",
47843
+ "",
47844
+ "",
47845
+ "",
47846
+ "",
47847
+ "",
47848
+ "",
47849
+ "",
47850
+ "",
47851
+ "",
47852
+ "",
47853
+ "",
47854
+ "",
47855
+ "\\u007F",
47856
+ "\\u0080",
47857
+ "\\u0081",
47858
+ "\\u0082",
47859
+ "\\u0083",
47860
+ "\\u0084",
47861
+ "\\u0085",
47862
+ "\\u0086",
47863
+ "\\u0087",
47864
+ "\\u0088",
47865
+ "\\u0089",
47866
+ "\\u008A",
47867
+ "\\u008B",
47868
+ "\\u008C",
47869
+ "\\u008D",
47870
+ "\\u008E",
47871
+ "\\u008F",
47872
+ "\\u0090",
47873
+ "\\u0091",
47874
+ "\\u0092",
47875
+ "\\u0093",
47876
+ "\\u0094",
47877
+ "\\u0095",
47878
+ "\\u0096",
47879
+ "\\u0097",
47880
+ "\\u0098",
47881
+ "\\u0099",
47882
+ "\\u009A",
47883
+ "\\u009B",
47884
+ "\\u009C",
47885
+ "\\u009D",
47886
+ "\\u009E",
47887
+ "\\u009F"
47888
+ ];
47889
+ const BREAK$1 = Object.freeze({});
47890
+ function visit$1(root, visitor, visitorKeys = QueryDocumentKeys$2) {
47891
+ const enterLeaveMap = /* @__PURE__ */ new Map();
47892
+ for (const kind of Object.values(Kind$2)) {
47893
+ enterLeaveMap.set(kind, getEnterLeaveForKind(visitor, kind));
47894
+ }
47895
+ let stack = void 0;
47896
+ let inArray = Array.isArray(root);
47897
+ let keys = [root];
47898
+ let index = -1;
47899
+ let edits = [];
47900
+ let node = root;
47901
+ let key = void 0;
47902
+ let parent = void 0;
47903
+ const path = [];
47904
+ const ancestors = [];
47905
+ do {
47906
+ index++;
47907
+ const isLeaving = index === keys.length;
47908
+ const isEdited = isLeaving && edits.length !== 0;
47909
+ if (isLeaving) {
47910
+ key = ancestors.length === 0 ? void 0 : path[path.length - 1];
47911
+ node = parent;
47912
+ parent = ancestors.pop();
47913
+ if (isEdited) {
47914
+ if (inArray) {
47915
+ node = node.slice();
47916
+ let editOffset = 0;
47917
+ for (const [editKey, editValue] of edits) {
47918
+ const arrayKey = editKey - editOffset;
47919
+ if (editValue === null) {
47920
+ node.splice(arrayKey, 1);
47921
+ editOffset++;
47922
+ } else {
47923
+ node[arrayKey] = editValue;
47924
+ }
47925
+ }
47926
+ } else {
47927
+ node = { ...node };
47928
+ for (const [editKey, editValue] of edits) {
47929
+ node[editKey] = editValue;
47930
+ }
47931
+ }
47932
+ }
47933
+ index = stack.index;
47934
+ keys = stack.keys;
47935
+ edits = stack.edits;
47936
+ inArray = stack.inArray;
47937
+ stack = stack.prev;
47938
+ } else if (parent) {
47939
+ key = inArray ? index : keys[index];
47940
+ node = parent[key];
47941
+ if (node === null || node === void 0) {
47942
+ continue;
47943
+ }
47944
+ path.push(key);
47945
+ }
47946
+ let result;
47947
+ if (!Array.isArray(node)) {
47948
+ var _enterLeaveMap$get, _enterLeaveMap$get2;
47949
+ isNode$1(node) || devAssert(false, `Invalid AST Node: ${inspect$1(node)}.`);
47950
+ 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;
47951
+ result = visitFn === null || visitFn === void 0 ? void 0 : visitFn.call(visitor, node, key, parent, path, ancestors);
47952
+ if (result === BREAK$1) {
47953
+ break;
47954
+ }
47955
+ if (result === false) {
47956
+ if (!isLeaving) {
47957
+ path.pop();
47958
+ continue;
47959
+ }
47960
+ } else if (result !== void 0) {
47961
+ edits.push([key, result]);
47962
+ if (!isLeaving) {
47963
+ if (isNode$1(result)) {
47964
+ node = result;
47965
+ } else {
47966
+ path.pop();
47967
+ continue;
47968
+ }
47969
+ }
47970
+ }
47971
+ }
47972
+ if (result === void 0 && isEdited) {
47973
+ edits.push([key, node]);
47974
+ }
47975
+ if (isLeaving) {
47976
+ path.pop();
47977
+ } else {
47978
+ var _node$kind;
47979
+ stack = {
47980
+ inArray,
47981
+ index,
47982
+ keys,
47983
+ edits,
47984
+ prev: stack
47985
+ };
47986
+ inArray = Array.isArray(node);
47987
+ keys = inArray ? node : (_node$kind = visitorKeys[node.kind]) !== null && _node$kind !== void 0 ? _node$kind : [];
47988
+ index = -1;
47989
+ edits = [];
47990
+ if (parent) {
47991
+ ancestors.push(parent);
47992
+ }
47993
+ parent = node;
47994
+ }
47995
+ } while (stack !== void 0);
47996
+ if (edits.length !== 0) {
47997
+ return edits[edits.length - 1][1];
47998
+ }
47999
+ return root;
48000
+ }
48001
+ function getEnterLeaveForKind(visitor, kind) {
48002
+ const kindVisitor = visitor[kind];
48003
+ if (typeof kindVisitor === "object") {
48004
+ return kindVisitor;
48005
+ } else if (typeof kindVisitor === "function") {
48006
+ return {
48007
+ enter: kindVisitor,
48008
+ leave: void 0
48009
+ };
48010
+ }
48011
+ return {
48012
+ enter: visitor.enter,
48013
+ leave: visitor.leave
48014
+ };
48015
+ }
48016
+ function print(ast) {
48017
+ return visit$1(ast, printDocASTReducer);
48018
+ }
48019
+ const MAX_LINE_LENGTH = 80;
48020
+ const printDocASTReducer = {
48021
+ Name: {
48022
+ leave: (node) => node.value
48023
+ },
48024
+ Variable: {
48025
+ leave: (node) => "$" + node.name
48026
+ },
48027
+ // Document
48028
+ Document: {
48029
+ leave: (node) => join$2(node.definitions, "\n\n")
48030
+ },
48031
+ OperationDefinition: {
48032
+ leave(node) {
48033
+ const varDefs = wrap("(", join$2(node.variableDefinitions, ", "), ")");
48034
+ const prefix = join$2(
48035
+ [
48036
+ node.operation,
48037
+ join$2([node.name, varDefs]),
48038
+ join$2(node.directives, " ")
48039
+ ],
48040
+ " "
48041
+ );
48042
+ return (prefix === "query" ? "" : prefix + " ") + node.selectionSet;
48043
+ }
48044
+ },
48045
+ VariableDefinition: {
48046
+ leave: ({ variable, type, defaultValue, directives }) => variable + ": " + type + wrap(" = ", defaultValue) + wrap(" ", join$2(directives, " "))
48047
+ },
48048
+ SelectionSet: {
48049
+ leave: ({ selections }) => block(selections)
48050
+ },
48051
+ Field: {
48052
+ leave({ alias, name, arguments: args, directives, selectionSet }) {
48053
+ const prefix = wrap("", alias, ": ") + name;
48054
+ let argsLine = prefix + wrap("(", join$2(args, ", "), ")");
48055
+ if (argsLine.length > MAX_LINE_LENGTH) {
48056
+ argsLine = prefix + wrap("(\n", indent(join$2(args, "\n")), "\n)");
48057
+ }
48058
+ return join$2([argsLine, join$2(directives, " "), selectionSet], " ");
48059
+ }
48060
+ },
48061
+ Argument: {
48062
+ leave: ({ name, value }) => name + ": " + value
48063
+ },
48064
+ // Fragments
48065
+ FragmentSpread: {
48066
+ leave: ({ name, directives }) => "..." + name + wrap(" ", join$2(directives, " "))
48067
+ },
48068
+ InlineFragment: {
48069
+ leave: ({ typeCondition, directives, selectionSet }) => join$2(
48070
+ [
48071
+ "...",
48072
+ wrap("on ", typeCondition),
48073
+ join$2(directives, " "),
48074
+ selectionSet
48075
+ ],
48076
+ " "
48077
+ )
48078
+ },
48079
+ FragmentDefinition: {
48080
+ leave: ({ name, typeCondition, variableDefinitions, directives, selectionSet }) => (
48081
+ // or removed in the future.
48082
+ `fragment ${name}${wrap("(", join$2(variableDefinitions, ", "), ")")} on ${typeCondition} ${wrap("", join$2(directives, " "), " ")}` + selectionSet
48083
+ )
48084
+ },
48085
+ // Value
48086
+ IntValue: {
48087
+ leave: ({ value }) => value
48088
+ },
48089
+ FloatValue: {
48090
+ leave: ({ value }) => value
48091
+ },
48092
+ StringValue: {
48093
+ leave: ({ value, block: isBlockString }) => isBlockString ? printBlockString(value) : printString(value)
48094
+ },
48095
+ BooleanValue: {
48096
+ leave: ({ value }) => value ? "true" : "false"
48097
+ },
48098
+ NullValue: {
48099
+ leave: () => "null"
48100
+ },
48101
+ EnumValue: {
48102
+ leave: ({ value }) => value
48103
+ },
48104
+ ListValue: {
48105
+ leave: ({ values }) => "[" + join$2(values, ", ") + "]"
48106
+ },
48107
+ ObjectValue: {
48108
+ leave: ({ fields }) => "{" + join$2(fields, ", ") + "}"
48109
+ },
48110
+ ObjectField: {
48111
+ leave: ({ name, value }) => name + ": " + value
48112
+ },
48113
+ // Directive
48114
+ Directive: {
48115
+ leave: ({ name, arguments: args }) => "@" + name + wrap("(", join$2(args, ", "), ")")
48116
+ },
48117
+ // Type
48118
+ NamedType: {
48119
+ leave: ({ name }) => name
48120
+ },
48121
+ ListType: {
48122
+ leave: ({ type }) => "[" + type + "]"
48123
+ },
48124
+ NonNullType: {
48125
+ leave: ({ type }) => type + "!"
48126
+ },
48127
+ // Type System Definitions
48128
+ SchemaDefinition: {
48129
+ leave: ({ description, directives, operationTypes }) => wrap("", description, "\n") + join$2(["schema", join$2(directives, " "), block(operationTypes)], " ")
48130
+ },
48131
+ OperationTypeDefinition: {
48132
+ leave: ({ operation, type }) => operation + ": " + type
48133
+ },
48134
+ ScalarTypeDefinition: {
48135
+ leave: ({ description, name, directives }) => wrap("", description, "\n") + join$2(["scalar", name, join$2(directives, " ")], " ")
48136
+ },
48137
+ ObjectTypeDefinition: {
48138
+ leave: ({ description, name, interfaces, directives, fields }) => wrap("", description, "\n") + join$2(
48139
+ [
48140
+ "type",
48141
+ name,
48142
+ wrap("implements ", join$2(interfaces, " & ")),
48143
+ join$2(directives, " "),
48144
+ block(fields)
48145
+ ],
48146
+ " "
48147
+ )
48148
+ },
48149
+ FieldDefinition: {
48150
+ 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, " "))
48151
+ },
48152
+ InputValueDefinition: {
48153
+ leave: ({ description, name, type, defaultValue, directives }) => wrap("", description, "\n") + join$2(
48154
+ [name + ": " + type, wrap("= ", defaultValue), join$2(directives, " ")],
48155
+ " "
48156
+ )
48157
+ },
48158
+ InterfaceTypeDefinition: {
48159
+ leave: ({ description, name, interfaces, directives, fields }) => wrap("", description, "\n") + join$2(
48160
+ [
48161
+ "interface",
48162
+ name,
48163
+ wrap("implements ", join$2(interfaces, " & ")),
48164
+ join$2(directives, " "),
48165
+ block(fields)
48166
+ ],
48167
+ " "
48168
+ )
48169
+ },
48170
+ UnionTypeDefinition: {
48171
+ leave: ({ description, name, directives, types }) => wrap("", description, "\n") + join$2(
48172
+ ["union", name, join$2(directives, " "), wrap("= ", join$2(types, " | "))],
48173
+ " "
48174
+ )
48175
+ },
48176
+ EnumTypeDefinition: {
48177
+ leave: ({ description, name, directives, values }) => wrap("", description, "\n") + join$2(["enum", name, join$2(directives, " "), block(values)], " ")
48178
+ },
48179
+ EnumValueDefinition: {
48180
+ leave: ({ description, name, directives }) => wrap("", description, "\n") + join$2([name, join$2(directives, " ")], " ")
48181
+ },
48182
+ InputObjectTypeDefinition: {
48183
+ leave: ({ description, name, directives, fields }) => wrap("", description, "\n") + join$2(["input", name, join$2(directives, " "), block(fields)], " ")
48184
+ },
48185
+ DirectiveDefinition: {
48186
+ 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, " | ")
48187
+ },
48188
+ SchemaExtension: {
48189
+ leave: ({ directives, operationTypes }) => join$2(
48190
+ ["extend schema", join$2(directives, " "), block(operationTypes)],
48191
+ " "
48192
+ )
48193
+ },
48194
+ ScalarTypeExtension: {
48195
+ leave: ({ name, directives }) => join$2(["extend scalar", name, join$2(directives, " ")], " ")
48196
+ },
48197
+ ObjectTypeExtension: {
48198
+ leave: ({ name, interfaces, directives, fields }) => join$2(
48199
+ [
48200
+ "extend type",
48201
+ name,
48202
+ wrap("implements ", join$2(interfaces, " & ")),
48203
+ join$2(directives, " "),
48204
+ block(fields)
48205
+ ],
48206
+ " "
48207
+ )
48208
+ },
48209
+ InterfaceTypeExtension: {
48210
+ leave: ({ name, interfaces, directives, fields }) => join$2(
48211
+ [
48212
+ "extend interface",
48213
+ name,
48214
+ wrap("implements ", join$2(interfaces, " & ")),
48215
+ join$2(directives, " "),
48216
+ block(fields)
48217
+ ],
48218
+ " "
48219
+ )
48220
+ },
48221
+ UnionTypeExtension: {
48222
+ leave: ({ name, directives, types }) => join$2(
48223
+ [
48224
+ "extend union",
48225
+ name,
48226
+ join$2(directives, " "),
48227
+ wrap("= ", join$2(types, " | "))
48228
+ ],
48229
+ " "
48230
+ )
48231
+ },
48232
+ EnumTypeExtension: {
48233
+ leave: ({ name, directives, values }) => join$2(["extend enum", name, join$2(directives, " "), block(values)], " ")
48234
+ },
48235
+ InputObjectTypeExtension: {
48236
+ leave: ({ name, directives, fields }) => join$2(["extend input", name, join$2(directives, " "), block(fields)], " ")
48237
+ }
48238
+ };
48239
+ function join$2(maybeArray, separator = "") {
48240
+ var _maybeArray$filter$jo;
48241
+ 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 : "";
48242
+ }
48243
+ function block(array) {
48244
+ return wrap("{\n", indent(join$2(array, "\n")), "\n}");
48245
+ }
48246
+ function wrap(start, maybeString, end = "") {
48247
+ return maybeString != null && maybeString !== "" ? start + maybeString + end : "";
48248
+ }
48249
+ function indent(str) {
48250
+ return wrap(" ", str.replace(/\n/g, "\n "));
48251
+ }
48252
+ function hasMultilineItems(maybeArray) {
48253
+ var _maybeArray$some;
48254
+ return (_maybeArray$some = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.some((str) => str.includes("\n"))) !== null && _maybeArray$some !== void 0 ? _maybeArray$some : false;
48255
+ }
48256
+ const referenceMap = /* @__PURE__ */ new WeakMap();
48257
+ const astResolver = function(astReference) {
48258
+ return referenceMap.get(astReference);
48259
+ };
48260
+ function findExecutableOperation$2(document, operationName) {
48261
+ const operations = document.definitions.filter(
48262
+ (def) => def.kind === Kind$2.OPERATION_DEFINITION
48263
+ );
48264
+ if (operations.length === 0) {
48265
+ return void 0;
48266
+ }
48267
+ if (operations.length === 1 && !operationName) {
48268
+ return operations[0];
48269
+ }
48270
+ if (operationName) {
48271
+ return operations.find((op) => {
48272
+ var _a;
48273
+ return ((_a = op.name) == null ? void 0 : _a.value) === operationName;
48274
+ });
48275
+ }
48276
+ return void 0;
48277
+ }
48278
+ function validateGraphQLOperations(config, options) {
48279
+ const executableOperation = findExecutableOperation$2(config.query, config.operationName);
48280
+ if (executableOperation) {
48281
+ const operationType = executableOperation.operation;
48282
+ if (!options.acceptedOperations.includes(operationType)) {
48283
+ const operationTypeCapitalized = operationType.charAt(0).toUpperCase() + operationType.slice(1);
48284
+ throw new Error(
48285
+ `${operationTypeCapitalized} operations are not supported in this context`
48286
+ );
48287
+ }
48288
+ }
48289
+ }
48290
+ function resolveAst(ast) {
48291
+ if (ast === null || ast === void 0) {
48292
+ return;
48293
+ }
48294
+ const result = astResolver(ast);
48295
+ if (result === void 0) {
48296
+ throw new Error("Could not resolve AST. Did you parse the query with gql?");
48297
+ }
48298
+ return result;
48299
+ }
48300
+ function wrapConfigAndVerify(config, options) {
48301
+ if (config == null ? void 0 : config.query) {
48302
+ config = { ...config, query: resolveAst(config.query) };
48303
+ if (config.query === void 0) {
48304
+ throw new Error("Internal error in GraphQL adapter occurred: Unable to resolve query");
48305
+ }
48306
+ validateGraphQLOperations(config, {
48307
+ acceptedOperations: (options == null ? void 0 : options.acceptedOperations) ?? ["query"]
48308
+ });
48309
+ }
48310
+ return config;
48311
+ }
48312
+
47404
48313
  var productConsumedSideEffects = {
47405
48314
  isOpen: function (e) {
47406
48315
  return e.fallback;
@@ -47425,7 +48334,7 @@
47425
48334
 
47426
48335
 
47427
48336
  const { parse: parse$7, stringify: stringify$7 } = JSON;
47428
- const { join: join$2, push: push$2, unshift } = Array.prototype;
48337
+ const { join: join$1, push: push$2, unshift } = Array.prototype;
47429
48338
  const { isArray: isArray$5 } = Array;
47430
48339
  const { entries: entries$4, keys: keys$6 } = Object;
47431
48340
 
@@ -47559,14 +48468,14 @@
47559
48468
  const { fields, optionalFields } = params;
47560
48469
  const queryString = [];
47561
48470
  if (fields !== undefined && fields.length > 0) {
47562
- const fieldString = join$2.call(fields, ',');
48471
+ const fieldString = join$1.call(fields, ',');
47563
48472
  push$2.call(queryString, `fields=${encodeURIComponent(fieldString)}`);
47564
48473
  }
47565
48474
  if (optionalFields !== undefined && optionalFields.length > 0) {
47566
- const optionalFieldString = join$2.call(optionalFields, ',');
48475
+ const optionalFieldString = join$1.call(optionalFields, ',');
47567
48476
  push$2.call(queryString, `optionalFields=${encodeURIComponent(optionalFieldString)}`);
47568
48477
  }
47569
- return `${resourceRequest.baseUri}${resourceRequest.basePath}?${join$2.call(queryString, '&')}`;
48478
+ return `${resourceRequest.baseUri}${resourceRequest.basePath}?${join$1.call(queryString, '&')}`;
47570
48479
  }
47571
48480
  function buildGetRecordByFieldsCompositeRequest(resourceRequest, recordsCompositeRequest) {
47572
48481
  const { fieldsArray, optionalFieldsArray, fieldsLength, optionalFieldsLength } = recordsCompositeRequest;
@@ -83293,18 +84202,34 @@
83293
84202
  async function batchRecordQuery(ids) {
83294
84203
  const varbinds = Array(ids.length).fill('?').join(',');
83295
84204
  const { rows } = await query(`select data from lds_data where key like 'UiApi::RecordRepresentation:%' and json_extract(data,'$.id') in (${varbinds})`, ids);
83296
- return ids.map((id) => {
83297
- let foundRow = null;
84205
+ if (graphqlRelationshipFieldsPerf.isOpen({ fallback: false })) {
84206
+ // old, non-performant logic fallback
84207
+ return ids.map((id) => {
84208
+ let foundRow = null;
84209
+ rows.forEach((row) => {
84210
+ if (!row[0])
84211
+ return null;
84212
+ const record = parse$5(row[0]);
84213
+ if (record.id === id) {
84214
+ foundRow = record;
84215
+ }
84216
+ });
84217
+ return foundRow;
84218
+ });
84219
+ }
84220
+ else {
84221
+ // DEFAULT PERFORMANT LOGIC - Use kill switch gate to revert
84222
+ // Build a map of id -> record (O(m) with single parse per record)
84223
+ const recordMap = new Map();
83298
84224
  rows.forEach((row) => {
83299
84225
  if (!row[0])
83300
- return null;
84226
+ return;
83301
84227
  const record = parse$5(row[0]);
83302
- if (record.id === id) {
83303
- foundRow = record;
83304
- }
84228
+ recordMap.set(record.id, record);
83305
84229
  });
83306
- return foundRow;
83307
- });
84230
+ // Map ids to records (O(n) lookup)
84231
+ return ids.map((id) => recordMap.get(id) || null);
84232
+ }
83308
84233
  }
83309
84234
  return new DataLoader(batchRecordQuery);
83310
84235
  }
@@ -85587,7 +86512,7 @@
85587
86512
  /**
85588
86513
  * The set of allowed kind values for AST nodes.
85589
86514
  */
85590
- var Kind$1$1 = Object.freeze({
86515
+ var Kind$1 = Object.freeze({
85591
86516
  // Name
85592
86517
  NAME: 'Name',
85593
86518
  // Document
@@ -85783,7 +86708,7 @@
85783
86708
  * @internal
85784
86709
  */
85785
86710
 
85786
- function isNode$1(maybeNode) {
86711
+ function isNode(maybeNode) {
85787
86712
  return maybeNode != null && typeof maybeNode.kind === 'string';
85788
86713
  }
85789
86714
  /**
@@ -85791,17 +86716,17 @@
85791
86716
  */
85792
86717
 
85793
86718
  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); }
85794
- var MAX_ARRAY_LENGTH$1 = 10;
85795
- var MAX_RECURSIVE_DEPTH$1 = 2;
86719
+ var MAX_ARRAY_LENGTH = 10;
86720
+ var MAX_RECURSIVE_DEPTH = 2;
85796
86721
  /**
85797
86722
  * Used to print values in error messages.
85798
86723
  */
85799
86724
 
85800
- function inspect$1(value) {
85801
- return formatValue$1(value, []);
86725
+ function inspect(value) {
86726
+ return formatValue(value, []);
85802
86727
  }
85803
86728
 
85804
- function formatValue$1(value, seenValues) {
86729
+ function formatValue(value, seenValues) {
85805
86730
  switch (_typeof(value)) {
85806
86731
  case 'string':
85807
86732
  return JSON.stringify(value);
@@ -85814,14 +86739,14 @@
85814
86739
  return 'null';
85815
86740
  }
85816
86741
 
85817
- return formatObjectValue$1(value, seenValues);
86742
+ return formatObjectValue(value, seenValues);
85818
86743
 
85819
86744
  default:
85820
86745
  return String(value);
85821
86746
  }
85822
86747
  }
85823
86748
 
85824
- function formatObjectValue$1(value, previouslySeenValues) {
86749
+ function formatObjectValue(value, previouslySeenValues) {
85825
86750
  if (previouslySeenValues.indexOf(value) !== -1) {
85826
86751
  return '[Circular]';
85827
86752
  }
@@ -85833,48 +86758,48 @@
85833
86758
  var customValue = customInspectFn.call(value); // check for infinite recursion
85834
86759
 
85835
86760
  if (customValue !== value) {
85836
- return typeof customValue === 'string' ? customValue : formatValue$1(customValue, seenValues);
86761
+ return typeof customValue === 'string' ? customValue : formatValue(customValue, seenValues);
85837
86762
  }
85838
86763
  } else if (Array.isArray(value)) {
85839
- return formatArray$1(value, seenValues);
86764
+ return formatArray(value, seenValues);
85840
86765
  }
85841
86766
 
85842
- return formatObject$1(value, seenValues);
86767
+ return formatObject(value, seenValues);
85843
86768
  }
85844
86769
 
85845
- function formatObject$1(object, seenValues) {
86770
+ function formatObject(object, seenValues) {
85846
86771
  var keys = Object.keys(object);
85847
86772
 
85848
86773
  if (keys.length === 0) {
85849
86774
  return '{}';
85850
86775
  }
85851
86776
 
85852
- if (seenValues.length > MAX_RECURSIVE_DEPTH$1) {
85853
- return '[' + getObjectTag$1(object) + ']';
86777
+ if (seenValues.length > MAX_RECURSIVE_DEPTH) {
86778
+ return '[' + getObjectTag(object) + ']';
85854
86779
  }
85855
86780
 
85856
86781
  var properties = keys.map(function (key) {
85857
- var value = formatValue$1(object[key], seenValues);
86782
+ var value = formatValue(object[key], seenValues);
85858
86783
  return key + ': ' + value;
85859
86784
  });
85860
86785
  return '{ ' + properties.join(', ') + ' }';
85861
86786
  }
85862
86787
 
85863
- function formatArray$1(array, seenValues) {
86788
+ function formatArray(array, seenValues) {
85864
86789
  if (array.length === 0) {
85865
86790
  return '[]';
85866
86791
  }
85867
86792
 
85868
- if (seenValues.length > MAX_RECURSIVE_DEPTH$1) {
86793
+ if (seenValues.length > MAX_RECURSIVE_DEPTH) {
85869
86794
  return '[Array]';
85870
86795
  }
85871
86796
 
85872
- var len = Math.min(MAX_ARRAY_LENGTH$1, array.length);
86797
+ var len = Math.min(MAX_ARRAY_LENGTH, array.length);
85873
86798
  var remaining = array.length - len;
85874
86799
  var items = [];
85875
86800
 
85876
86801
  for (var i = 0; i < len; ++i) {
85877
- items.push(formatValue$1(array[i], seenValues));
86802
+ items.push(formatValue(array[i], seenValues));
85878
86803
  }
85879
86804
 
85880
86805
  if (remaining === 1) {
@@ -85898,7 +86823,7 @@
85898
86823
  }
85899
86824
  }
85900
86825
 
85901
- function getObjectTag$1(object) {
86826
+ function getObjectTag(object) {
85902
86827
  var tag = Object.prototype.toString.call(object).replace(/^\[object /, '').replace(/]$/, '');
85903
86828
 
85904
86829
  if (tag === 'Object' && typeof object.constructor === 'function') {
@@ -85917,7 +86842,7 @@
85917
86842
  * relevant functions to be called during the visitor's traversal.
85918
86843
  */
85919
86844
 
85920
- var QueryDocumentKeys$1$1 = {
86845
+ var QueryDocumentKeys$1 = {
85921
86846
  Name: [],
85922
86847
  Document: ['definitions'],
85923
86848
  OperationDefinition: ['name', 'variableDefinitions', 'directives', 'selectionSet'],
@@ -85964,7 +86889,7 @@
85964
86889
  EnumTypeExtension: ['name', 'directives', 'values'],
85965
86890
  InputObjectTypeExtension: ['name', 'directives', 'fields']
85966
86891
  };
85967
- var BREAK$1 = Object.freeze({});
86892
+ var BREAK = Object.freeze({});
85968
86893
  /**
85969
86894
  * visit() will walk through an AST using a depth-first traversal, calling
85970
86895
  * the visitor's enter function at each node in the traversal, and calling the
@@ -86052,8 +86977,8 @@
86052
86977
  * })
86053
86978
  */
86054
86979
 
86055
- function visit$1(root, visitor) {
86056
- var visitorKeys = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : QueryDocumentKeys$1$1;
86980
+ function visit(root, visitor) {
86981
+ var visitorKeys = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : QueryDocumentKeys$1;
86057
86982
 
86058
86983
  /* eslint-disable no-undef-init */
86059
86984
  var stack = undefined;
@@ -86133,8 +87058,8 @@
86133
87058
  var result = void 0;
86134
87059
 
86135
87060
  if (!Array.isArray(node)) {
86136
- if (!isNode$1(node)) {
86137
- throw new Error("Invalid AST Node: ".concat(inspect$1(node), "."));
87061
+ if (!isNode(node)) {
87062
+ throw new Error("Invalid AST Node: ".concat(inspect(node), "."));
86138
87063
  }
86139
87064
 
86140
87065
  var visitFn = getVisitFn(visitor, node.kind, isLeaving);
@@ -86142,7 +87067,7 @@
86142
87067
  if (visitFn) {
86143
87068
  result = visitFn.call(visitor, node, key, parent, path, ancestors);
86144
87069
 
86145
- if (result === BREAK$1) {
87070
+ if (result === BREAK) {
86146
87071
  break;
86147
87072
  }
86148
87073
 
@@ -86155,7 +87080,7 @@
86155
87080
  edits.push([key, result]);
86156
87081
 
86157
87082
  if (!isLeaving) {
86158
- if (isNode$1(result)) {
87083
+ if (isNode(result)) {
86159
87084
  node = result;
86160
87085
  } else {
86161
87086
  path.pop();
@@ -86331,7 +87256,7 @@
86331
87256
  function selectionIncludesHasNextPage(selections, fragments) {
86332
87257
  for (let selection of selections) {
86333
87258
  switch (selection.kind) {
86334
- case Kind$1$1.FIELD: {
87259
+ case Kind$1.FIELD: {
86335
87260
  if (selection.name.value === 'pageInfo') {
86336
87261
  if (!selection.selectionSet)
86337
87262
  continue;
@@ -86342,7 +87267,7 @@
86342
87267
  }
86343
87268
  break;
86344
87269
  }
86345
- case Kind$1$1.FRAGMENT_SPREAD: {
87270
+ case Kind$1.FRAGMENT_SPREAD: {
86346
87271
  let fragment = fragments[selection.name.value];
86347
87272
  if (!fragment)
86348
87273
  return false;
@@ -86351,7 +87276,7 @@
86351
87276
  }
86352
87277
  break;
86353
87278
  }
86354
- case Kind$1$1.INLINE_FRAGMENT:
87279
+ case Kind$1.INLINE_FRAGMENT:
86355
87280
  if (selectionIncludesHasNextPage(selection.selectionSet.selections, fragments)) {
86356
87281
  return true;
86357
87282
  }
@@ -89466,7 +90391,7 @@
89466
90391
  }) {
89467
90392
  const { maxFieldCount, maxRecordLimit, singleRecordField, maxFieldSize } = enforcedLimits;
89468
90393
  const fieldsWithDataType = findFieldTypeInObjectInfo(objectInfos, singleRecordField);
89469
- const documentNode = visit$1(ast, {
90394
+ const documentNode = visit(ast, {
89470
90395
  Field(node) {
89471
90396
  // is it a record query?
89472
90397
  if (!isRecordQuery(node)) {
@@ -89516,7 +90441,7 @@
89516
90441
  return {
89517
90442
  ...argument,
89518
90443
  value: {
89519
- kind: Kind$1$1.INT,
90444
+ kind: Kind$1.INT,
89520
90445
  value: recordLimit,
89521
90446
  },
89522
90447
  };
@@ -90146,7 +91071,7 @@
90146
91071
 
90147
91072
  const { keys: keys$2$1, create: create$2$1, assign: assign$1$1, entries: entries$2 } = Object;
90148
91073
  const { stringify: stringify$4, parse: parse$4 } = JSON;
90149
- const { push: push$3, join: join$1, slice } = Array.prototype;
91074
+ const { push: push$3, join, slice } = Array.prototype;
90150
91075
  const { isArray: isArray$2$1, from } = Array;
90151
91076
 
90152
91077
  function ldsParamsToString(params) {
@@ -90327,10 +91252,10 @@
90327
91252
  fields.forEach(this.addField, this);
90328
91253
  }
90329
91254
  toQueryParameterValue() {
90330
- const joinedFields = join$1.call(Object.keys(this.fields), SEPARATOR_BETWEEN_FIELDS);
91255
+ const joinedFields = join.call(Object.keys(this.fields), SEPARATOR_BETWEEN_FIELDS);
90331
91256
  return this.isUnScoped()
90332
91257
  ? joinedFields
90333
- : join$1.call([this.scope, joinedFields], SEPARATOR_BETWEEN_SCOPE_AND_FIELDS);
91258
+ : join.call([this.scope, joinedFields], SEPARATOR_BETWEEN_SCOPE_AND_FIELDS);
90334
91259
  }
90335
91260
  toQueryParams() {
90336
91261
  return this.isUnScoped() ? Object.keys(this.fields) : this.toQueryParameterValue();
@@ -90398,7 +91323,7 @@
90398
91323
  if (chunk !== undefined)
90399
91324
  result.push(chunk);
90400
91325
  }
90401
- return join$1.call(result, SEPARATOR_BETWEEN_SCOPES);
91326
+ return join.call(result, SEPARATOR_BETWEEN_SCOPES);
90402
91327
  }
90403
91328
  /**
90404
91329
  * split the ScopedFields into multiple ScopedFields
@@ -90575,7 +91500,7 @@
90575
91500
  queryString.push(`${key}=${isArray$2$1(value) ? value.join(',') : value}`);
90576
91501
  }
90577
91502
  }
90578
- return `${resourceRequest.baseUri}${resourceRequest.basePath}?${join$1.call(queryString, '&')}`;
91503
+ return `${resourceRequest.baseUri}${resourceRequest.basePath}?${join.call(queryString, '&')}`;
90579
91504
  }
90580
91505
  function shouldUseAggregateUiForFields(fieldsArray, optionalFieldsArray, maxLengthPerChunk) {
90581
91506
  return fieldsArray.length + optionalFieldsArray.length >= maxLengthPerChunk;
@@ -97611,7 +98536,7 @@
97611
98536
  },
97612
98537
  };
97613
98538
  }
97614
- // version: 1.405.0-13ac2fd8fa
98539
+ // version: 1.409.0-355a528ce3
97615
98540
 
97616
98541
  /**
97617
98542
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -97637,908 +98562,14 @@
97637
98562
  },
97638
98563
  };
97639
98564
  }
97640
- // version: 1.405.0-13ac2fd8fa
97641
-
97642
- /*!
97643
- * Copyright (c) 2022, Salesforce, Inc.,
97644
- * All rights reserved.
97645
- * For full license text, see the LICENSE.txt file
97646
- */
97647
- function devAssert(condition, message) {
97648
- const booleanCondition = Boolean(condition);
97649
- if (!booleanCondition) {
97650
- throw new Error(message);
97651
- }
97652
- }
97653
- const MAX_ARRAY_LENGTH = 10;
97654
- const MAX_RECURSIVE_DEPTH = 2;
97655
- function inspect(value) {
97656
- return formatValue(value, []);
97657
- }
97658
- function formatValue(value, seenValues) {
97659
- switch (typeof value) {
97660
- case "string":
97661
- return JSON.stringify(value);
97662
- case "function":
97663
- return value.name ? `[function ${value.name}]` : "[function]";
97664
- case "object":
97665
- return formatObjectValue(value, seenValues);
97666
- default:
97667
- return String(value);
97668
- }
97669
- }
97670
- function formatObjectValue(value, previouslySeenValues) {
97671
- if (value === null) {
97672
- return "null";
97673
- }
97674
- if (previouslySeenValues.includes(value)) {
97675
- return "[Circular]";
97676
- }
97677
- const seenValues = [...previouslySeenValues, value];
97678
- if (isJSONable(value)) {
97679
- const jsonValue = value.toJSON();
97680
- if (jsonValue !== value) {
97681
- return typeof jsonValue === "string" ? jsonValue : formatValue(jsonValue, seenValues);
97682
- }
97683
- } else if (Array.isArray(value)) {
97684
- return formatArray(value, seenValues);
97685
- }
97686
- return formatObject(value, seenValues);
97687
- }
97688
- function isJSONable(value) {
97689
- return typeof value.toJSON === "function";
97690
- }
97691
- function formatObject(object, seenValues) {
97692
- const entries = Object.entries(object);
97693
- if (entries.length === 0) {
97694
- return "{}";
97695
- }
97696
- if (seenValues.length > MAX_RECURSIVE_DEPTH) {
97697
- return "[" + getObjectTag(object) + "]";
97698
- }
97699
- const properties = entries.map(
97700
- ([key, value]) => key + ": " + formatValue(value, seenValues)
97701
- );
97702
- return "{ " + properties.join(", ") + " }";
97703
- }
97704
- function formatArray(array, seenValues) {
97705
- if (array.length === 0) {
97706
- return "[]";
97707
- }
97708
- if (seenValues.length > MAX_RECURSIVE_DEPTH) {
97709
- return "[Array]";
97710
- }
97711
- const len = Math.min(MAX_ARRAY_LENGTH, array.length);
97712
- const remaining = array.length - len;
97713
- const items = [];
97714
- for (let i = 0; i < len; ++i) {
97715
- items.push(formatValue(array[i], seenValues));
97716
- }
97717
- if (remaining === 1) {
97718
- items.push("... 1 more item");
97719
- } else if (remaining > 1) {
97720
- items.push(`... ${remaining} more items`);
97721
- }
97722
- return "[" + items.join(", ") + "]";
97723
- }
97724
- function getObjectTag(object) {
97725
- const tag = Object.prototype.toString.call(object).replace(/^\[object /, "").replace(/]$/, "");
97726
- if (tag === "Object" && typeof object.constructor === "function") {
97727
- const name = object.constructor.name;
97728
- if (typeof name === "string" && name !== "") {
97729
- return name;
97730
- }
97731
- }
97732
- return tag;
97733
- }
97734
- var Kind$2;
97735
- (function(Kind2) {
97736
- Kind2["NAME"] = "Name";
97737
- Kind2["DOCUMENT"] = "Document";
97738
- Kind2["OPERATION_DEFINITION"] = "OperationDefinition";
97739
- Kind2["VARIABLE_DEFINITION"] = "VariableDefinition";
97740
- Kind2["SELECTION_SET"] = "SelectionSet";
97741
- Kind2["FIELD"] = "Field";
97742
- Kind2["ARGUMENT"] = "Argument";
97743
- Kind2["FRAGMENT_SPREAD"] = "FragmentSpread";
97744
- Kind2["INLINE_FRAGMENT"] = "InlineFragment";
97745
- Kind2["FRAGMENT_DEFINITION"] = "FragmentDefinition";
97746
- Kind2["VARIABLE"] = "Variable";
97747
- Kind2["INT"] = "IntValue";
97748
- Kind2["FLOAT"] = "FloatValue";
97749
- Kind2["STRING"] = "StringValue";
97750
- Kind2["BOOLEAN"] = "BooleanValue";
97751
- Kind2["NULL"] = "NullValue";
97752
- Kind2["ENUM"] = "EnumValue";
97753
- Kind2["LIST"] = "ListValue";
97754
- Kind2["OBJECT"] = "ObjectValue";
97755
- Kind2["OBJECT_FIELD"] = "ObjectField";
97756
- Kind2["DIRECTIVE"] = "Directive";
97757
- Kind2["NAMED_TYPE"] = "NamedType";
97758
- Kind2["LIST_TYPE"] = "ListType";
97759
- Kind2["NON_NULL_TYPE"] = "NonNullType";
97760
- Kind2["SCHEMA_DEFINITION"] = "SchemaDefinition";
97761
- Kind2["OPERATION_TYPE_DEFINITION"] = "OperationTypeDefinition";
97762
- Kind2["SCALAR_TYPE_DEFINITION"] = "ScalarTypeDefinition";
97763
- Kind2["OBJECT_TYPE_DEFINITION"] = "ObjectTypeDefinition";
97764
- Kind2["FIELD_DEFINITION"] = "FieldDefinition";
97765
- Kind2["INPUT_VALUE_DEFINITION"] = "InputValueDefinition";
97766
- Kind2["INTERFACE_TYPE_DEFINITION"] = "InterfaceTypeDefinition";
97767
- Kind2["UNION_TYPE_DEFINITION"] = "UnionTypeDefinition";
97768
- Kind2["ENUM_TYPE_DEFINITION"] = "EnumTypeDefinition";
97769
- Kind2["ENUM_VALUE_DEFINITION"] = "EnumValueDefinition";
97770
- Kind2["INPUT_OBJECT_TYPE_DEFINITION"] = "InputObjectTypeDefinition";
97771
- Kind2["DIRECTIVE_DEFINITION"] = "DirectiveDefinition";
97772
- Kind2["SCHEMA_EXTENSION"] = "SchemaExtension";
97773
- Kind2["SCALAR_TYPE_EXTENSION"] = "ScalarTypeExtension";
97774
- Kind2["OBJECT_TYPE_EXTENSION"] = "ObjectTypeExtension";
97775
- Kind2["INTERFACE_TYPE_EXTENSION"] = "InterfaceTypeExtension";
97776
- Kind2["UNION_TYPE_EXTENSION"] = "UnionTypeExtension";
97777
- Kind2["ENUM_TYPE_EXTENSION"] = "EnumTypeExtension";
97778
- Kind2["INPUT_OBJECT_TYPE_EXTENSION"] = "InputObjectTypeExtension";
97779
- })(Kind$2 || (Kind$2 = {}));
97780
- var TokenKind$2;
97781
- (function(TokenKind2) {
97782
- TokenKind2["SOF"] = "<SOF>";
97783
- TokenKind2["EOF"] = "<EOF>";
97784
- TokenKind2["BANG"] = "!";
97785
- TokenKind2["DOLLAR"] = "$";
97786
- TokenKind2["AMP"] = "&";
97787
- TokenKind2["PAREN_L"] = "(";
97788
- TokenKind2["PAREN_R"] = ")";
97789
- TokenKind2["SPREAD"] = "...";
97790
- TokenKind2["COLON"] = ":";
97791
- TokenKind2["EQUALS"] = "=";
97792
- TokenKind2["AT"] = "@";
97793
- TokenKind2["BRACKET_L"] = "[";
97794
- TokenKind2["BRACKET_R"] = "]";
97795
- TokenKind2["BRACE_L"] = "{";
97796
- TokenKind2["PIPE"] = "|";
97797
- TokenKind2["BRACE_R"] = "}";
97798
- TokenKind2["NAME"] = "Name";
97799
- TokenKind2["INT"] = "Int";
97800
- TokenKind2["FLOAT"] = "Float";
97801
- TokenKind2["STRING"] = "String";
97802
- TokenKind2["BLOCK_STRING"] = "BlockString";
97803
- TokenKind2["COMMENT"] = "Comment";
97804
- })(TokenKind$2 || (TokenKind$2 = {}));
97805
- const QueryDocumentKeys$2 = {
97806
- Name: [],
97807
- Document: ["definitions"],
97808
- OperationDefinition: [
97809
- "name",
97810
- "variableDefinitions",
97811
- "directives",
97812
- "selectionSet"
97813
- ],
97814
- VariableDefinition: ["variable", "type", "defaultValue", "directives"],
97815
- Variable: ["name"],
97816
- SelectionSet: ["selections"],
97817
- Field: ["alias", "name", "arguments", "directives", "selectionSet"],
97818
- Argument: ["name", "value"],
97819
- FragmentSpread: ["name", "directives"],
97820
- InlineFragment: ["typeCondition", "directives", "selectionSet"],
97821
- FragmentDefinition: [
97822
- "name",
97823
- // Note: fragment variable definitions are deprecated and will removed in v17.0.0
97824
- "variableDefinitions",
97825
- "typeCondition",
97826
- "directives",
97827
- "selectionSet"
97828
- ],
97829
- IntValue: [],
97830
- FloatValue: [],
97831
- StringValue: [],
97832
- BooleanValue: [],
97833
- NullValue: [],
97834
- EnumValue: [],
97835
- ListValue: ["values"],
97836
- ObjectValue: ["fields"],
97837
- ObjectField: ["name", "value"],
97838
- Directive: ["name", "arguments"],
97839
- NamedType: ["name"],
97840
- ListType: ["type"],
97841
- NonNullType: ["type"],
97842
- SchemaDefinition: ["description", "directives", "operationTypes"],
97843
- OperationTypeDefinition: ["type"],
97844
- ScalarTypeDefinition: ["description", "name", "directives"],
97845
- ObjectTypeDefinition: [
97846
- "description",
97847
- "name",
97848
- "interfaces",
97849
- "directives",
97850
- "fields"
97851
- ],
97852
- FieldDefinition: ["description", "name", "arguments", "type", "directives"],
97853
- InputValueDefinition: [
97854
- "description",
97855
- "name",
97856
- "type",
97857
- "defaultValue",
97858
- "directives"
97859
- ],
97860
- InterfaceTypeDefinition: [
97861
- "description",
97862
- "name",
97863
- "interfaces",
97864
- "directives",
97865
- "fields"
97866
- ],
97867
- UnionTypeDefinition: ["description", "name", "directives", "types"],
97868
- EnumTypeDefinition: ["description", "name", "directives", "values"],
97869
- EnumValueDefinition: ["description", "name", "directives"],
97870
- InputObjectTypeDefinition: ["description", "name", "directives", "fields"],
97871
- DirectiveDefinition: ["description", "name", "arguments", "locations"],
97872
- SchemaExtension: ["directives", "operationTypes"],
97873
- ScalarTypeExtension: ["name", "directives"],
97874
- ObjectTypeExtension: ["name", "interfaces", "directives", "fields"],
97875
- InterfaceTypeExtension: ["name", "interfaces", "directives", "fields"],
97876
- UnionTypeExtension: ["name", "directives", "types"],
97877
- EnumTypeExtension: ["name", "directives", "values"],
97878
- InputObjectTypeExtension: ["name", "directives", "fields"]
97879
- };
97880
- const kindValues = new Set(Object.keys(QueryDocumentKeys$2));
97881
- function isNode(maybeNode) {
97882
- const maybeKind = maybeNode === null || maybeNode === void 0 ? void 0 : maybeNode.kind;
97883
- return typeof maybeKind === "string" && kindValues.has(maybeKind);
97884
- }
97885
- var OperationTypeNode$2;
97886
- (function(OperationTypeNode2) {
97887
- OperationTypeNode2["QUERY"] = "query";
97888
- OperationTypeNode2["MUTATION"] = "mutation";
97889
- OperationTypeNode2["SUBSCRIPTION"] = "subscription";
97890
- })(OperationTypeNode$2 || (OperationTypeNode$2 = {}));
97891
- function isWhiteSpace(code) {
97892
- return code === 9 || code === 32;
97893
- }
97894
- function printBlockString(value, options) {
97895
- const escapedValue = value.replace(/"""/g, '\\"""');
97896
- const lines = escapedValue.split(/\r\n|[\n\r]/g);
97897
- const isSingleLine = lines.length === 1;
97898
- const forceLeadingNewLine = lines.length > 1 && lines.slice(1).every((line) => line.length === 0 || isWhiteSpace(line.charCodeAt(0)));
97899
- const hasTrailingTripleQuotes = escapedValue.endsWith('\\"""');
97900
- const hasTrailingQuote = value.endsWith('"') && !hasTrailingTripleQuotes;
97901
- const hasTrailingSlash = value.endsWith("\\");
97902
- const forceTrailingNewline = hasTrailingQuote || hasTrailingSlash;
97903
- const printAsMultipleLines = !(options !== null && options !== void 0 && options.minimize) && // add leading and trailing new lines only if it improves readability
97904
- (!isSingleLine || value.length > 70 || forceTrailingNewline || forceLeadingNewLine || hasTrailingTripleQuotes);
97905
- let result = "";
97906
- const skipLeadingNewLine = isSingleLine && isWhiteSpace(value.charCodeAt(0));
97907
- if (printAsMultipleLines && !skipLeadingNewLine || forceLeadingNewLine) {
97908
- result += "\n";
97909
- }
97910
- result += escapedValue;
97911
- if (printAsMultipleLines || forceTrailingNewline) {
97912
- result += "\n";
97913
- }
97914
- return '"""' + result + '"""';
97915
- }
97916
- var DirectiveLocation$2;
97917
- (function(DirectiveLocation2) {
97918
- DirectiveLocation2["QUERY"] = "QUERY";
97919
- DirectiveLocation2["MUTATION"] = "MUTATION";
97920
- DirectiveLocation2["SUBSCRIPTION"] = "SUBSCRIPTION";
97921
- DirectiveLocation2["FIELD"] = "FIELD";
97922
- DirectiveLocation2["FRAGMENT_DEFINITION"] = "FRAGMENT_DEFINITION";
97923
- DirectiveLocation2["FRAGMENT_SPREAD"] = "FRAGMENT_SPREAD";
97924
- DirectiveLocation2["INLINE_FRAGMENT"] = "INLINE_FRAGMENT";
97925
- DirectiveLocation2["VARIABLE_DEFINITION"] = "VARIABLE_DEFINITION";
97926
- DirectiveLocation2["SCHEMA"] = "SCHEMA";
97927
- DirectiveLocation2["SCALAR"] = "SCALAR";
97928
- DirectiveLocation2["OBJECT"] = "OBJECT";
97929
- DirectiveLocation2["FIELD_DEFINITION"] = "FIELD_DEFINITION";
97930
- DirectiveLocation2["ARGUMENT_DEFINITION"] = "ARGUMENT_DEFINITION";
97931
- DirectiveLocation2["INTERFACE"] = "INTERFACE";
97932
- DirectiveLocation2["UNION"] = "UNION";
97933
- DirectiveLocation2["ENUM"] = "ENUM";
97934
- DirectiveLocation2["ENUM_VALUE"] = "ENUM_VALUE";
97935
- DirectiveLocation2["INPUT_OBJECT"] = "INPUT_OBJECT";
97936
- DirectiveLocation2["INPUT_FIELD_DEFINITION"] = "INPUT_FIELD_DEFINITION";
97937
- })(DirectiveLocation$2 || (DirectiveLocation$2 = {}));
97938
- function printString(str) {
97939
- return `"${str.replace(escapedRegExp, escapedReplacer)}"`;
97940
- }
97941
- const escapedRegExp = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
97942
- function escapedReplacer(str) {
97943
- return escapeSequences[str.charCodeAt(0)];
97944
- }
97945
- const escapeSequences = [
97946
- "\\u0000",
97947
- "\\u0001",
97948
- "\\u0002",
97949
- "\\u0003",
97950
- "\\u0004",
97951
- "\\u0005",
97952
- "\\u0006",
97953
- "\\u0007",
97954
- "\\b",
97955
- "\\t",
97956
- "\\n",
97957
- "\\u000B",
97958
- "\\f",
97959
- "\\r",
97960
- "\\u000E",
97961
- "\\u000F",
97962
- "\\u0010",
97963
- "\\u0011",
97964
- "\\u0012",
97965
- "\\u0013",
97966
- "\\u0014",
97967
- "\\u0015",
97968
- "\\u0016",
97969
- "\\u0017",
97970
- "\\u0018",
97971
- "\\u0019",
97972
- "\\u001A",
97973
- "\\u001B",
97974
- "\\u001C",
97975
- "\\u001D",
97976
- "\\u001E",
97977
- "\\u001F",
97978
- "",
97979
- "",
97980
- '\\"',
97981
- "",
97982
- "",
97983
- "",
97984
- "",
97985
- "",
97986
- "",
97987
- "",
97988
- "",
97989
- "",
97990
- "",
97991
- "",
97992
- "",
97993
- "",
97994
- // 2F
97995
- "",
97996
- "",
97997
- "",
97998
- "",
97999
- "",
98000
- "",
98001
- "",
98002
- "",
98003
- "",
98004
- "",
98005
- "",
98006
- "",
98007
- "",
98008
- "",
98009
- "",
98010
- "",
98011
- // 3F
98012
- "",
98013
- "",
98014
- "",
98015
- "",
98016
- "",
98017
- "",
98018
- "",
98019
- "",
98020
- "",
98021
- "",
98022
- "",
98023
- "",
98024
- "",
98025
- "",
98026
- "",
98027
- "",
98028
- // 4F
98029
- "",
98030
- "",
98031
- "",
98032
- "",
98033
- "",
98034
- "",
98035
- "",
98036
- "",
98037
- "",
98038
- "",
98039
- "",
98040
- "",
98041
- "\\\\",
98042
- "",
98043
- "",
98044
- "",
98045
- // 5F
98046
- "",
98047
- "",
98048
- "",
98049
- "",
98050
- "",
98051
- "",
98052
- "",
98053
- "",
98054
- "",
98055
- "",
98056
- "",
98057
- "",
98058
- "",
98059
- "",
98060
- "",
98061
- "",
98062
- // 6F
98063
- "",
98064
- "",
98065
- "",
98066
- "",
98067
- "",
98068
- "",
98069
- "",
98070
- "",
98071
- "",
98072
- "",
98073
- "",
98074
- "",
98075
- "",
98076
- "",
98077
- "",
98078
- "\\u007F",
98079
- "\\u0080",
98080
- "\\u0081",
98081
- "\\u0082",
98082
- "\\u0083",
98083
- "\\u0084",
98084
- "\\u0085",
98085
- "\\u0086",
98086
- "\\u0087",
98087
- "\\u0088",
98088
- "\\u0089",
98089
- "\\u008A",
98090
- "\\u008B",
98091
- "\\u008C",
98092
- "\\u008D",
98093
- "\\u008E",
98094
- "\\u008F",
98095
- "\\u0090",
98096
- "\\u0091",
98097
- "\\u0092",
98098
- "\\u0093",
98099
- "\\u0094",
98100
- "\\u0095",
98101
- "\\u0096",
98102
- "\\u0097",
98103
- "\\u0098",
98104
- "\\u0099",
98105
- "\\u009A",
98106
- "\\u009B",
98107
- "\\u009C",
98108
- "\\u009D",
98109
- "\\u009E",
98110
- "\\u009F"
98111
- ];
98112
- const BREAK = Object.freeze({});
98113
- function visit(root, visitor, visitorKeys = QueryDocumentKeys$2) {
98114
- const enterLeaveMap = /* @__PURE__ */ new Map();
98115
- for (const kind of Object.values(Kind$2)) {
98116
- enterLeaveMap.set(kind, getEnterLeaveForKind(visitor, kind));
98117
- }
98118
- let stack = void 0;
98119
- let inArray = Array.isArray(root);
98120
- let keys = [root];
98121
- let index = -1;
98122
- let edits = [];
98123
- let node = root;
98124
- let key = void 0;
98125
- let parent = void 0;
98126
- const path = [];
98127
- const ancestors = [];
98128
- do {
98129
- index++;
98130
- const isLeaving = index === keys.length;
98131
- const isEdited = isLeaving && edits.length !== 0;
98132
- if (isLeaving) {
98133
- key = ancestors.length === 0 ? void 0 : path[path.length - 1];
98134
- node = parent;
98135
- parent = ancestors.pop();
98136
- if (isEdited) {
98137
- if (inArray) {
98138
- node = node.slice();
98139
- let editOffset = 0;
98140
- for (const [editKey, editValue] of edits) {
98141
- const arrayKey = editKey - editOffset;
98142
- if (editValue === null) {
98143
- node.splice(arrayKey, 1);
98144
- editOffset++;
98145
- } else {
98146
- node[arrayKey] = editValue;
98147
- }
98148
- }
98149
- } else {
98150
- node = { ...node };
98151
- for (const [editKey, editValue] of edits) {
98152
- node[editKey] = editValue;
98153
- }
98154
- }
98155
- }
98156
- index = stack.index;
98157
- keys = stack.keys;
98158
- edits = stack.edits;
98159
- inArray = stack.inArray;
98160
- stack = stack.prev;
98161
- } else if (parent) {
98162
- key = inArray ? index : keys[index];
98163
- node = parent[key];
98164
- if (node === null || node === void 0) {
98165
- continue;
98166
- }
98167
- path.push(key);
98168
- }
98169
- let result;
98170
- if (!Array.isArray(node)) {
98171
- var _enterLeaveMap$get, _enterLeaveMap$get2;
98172
- isNode(node) || devAssert(false, `Invalid AST Node: ${inspect(node)}.`);
98173
- 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;
98174
- result = visitFn === null || visitFn === void 0 ? void 0 : visitFn.call(visitor, node, key, parent, path, ancestors);
98175
- if (result === BREAK) {
98176
- break;
98177
- }
98178
- if (result === false) {
98179
- if (!isLeaving) {
98180
- path.pop();
98181
- continue;
98182
- }
98183
- } else if (result !== void 0) {
98184
- edits.push([key, result]);
98185
- if (!isLeaving) {
98186
- if (isNode(result)) {
98187
- node = result;
98188
- } else {
98189
- path.pop();
98190
- continue;
98191
- }
98192
- }
98193
- }
98194
- }
98195
- if (result === void 0 && isEdited) {
98196
- edits.push([key, node]);
98197
- }
98198
- if (isLeaving) {
98199
- path.pop();
98200
- } else {
98201
- var _node$kind;
98202
- stack = {
98203
- inArray,
98204
- index,
98205
- keys,
98206
- edits,
98207
- prev: stack
98208
- };
98209
- inArray = Array.isArray(node);
98210
- keys = inArray ? node : (_node$kind = visitorKeys[node.kind]) !== null && _node$kind !== void 0 ? _node$kind : [];
98211
- index = -1;
98212
- edits = [];
98213
- if (parent) {
98214
- ancestors.push(parent);
98215
- }
98216
- parent = node;
98217
- }
98218
- } while (stack !== void 0);
98219
- if (edits.length !== 0) {
98220
- return edits[edits.length - 1][1];
98221
- }
98222
- return root;
98223
- }
98224
- function getEnterLeaveForKind(visitor, kind) {
98225
- const kindVisitor = visitor[kind];
98226
- if (typeof kindVisitor === "object") {
98227
- return kindVisitor;
98228
- } else if (typeof kindVisitor === "function") {
98229
- return {
98230
- enter: kindVisitor,
98231
- leave: void 0
98232
- };
98233
- }
98234
- return {
98235
- enter: visitor.enter,
98236
- leave: visitor.leave
98237
- };
98238
- }
98239
- function print(ast) {
98240
- return visit(ast, printDocASTReducer);
98241
- }
98242
- const MAX_LINE_LENGTH = 80;
98243
- const printDocASTReducer = {
98244
- Name: {
98245
- leave: (node) => node.value
98246
- },
98247
- Variable: {
98248
- leave: (node) => "$" + node.name
98249
- },
98250
- // Document
98251
- Document: {
98252
- leave: (node) => join(node.definitions, "\n\n")
98253
- },
98254
- OperationDefinition: {
98255
- leave(node) {
98256
- const varDefs = wrap("(", join(node.variableDefinitions, ", "), ")");
98257
- const prefix = join(
98258
- [
98259
- node.operation,
98260
- join([node.name, varDefs]),
98261
- join(node.directives, " ")
98262
- ],
98263
- " "
98264
- );
98265
- return (prefix === "query" ? "" : prefix + " ") + node.selectionSet;
98266
- }
98267
- },
98268
- VariableDefinition: {
98269
- leave: ({ variable, type, defaultValue, directives }) => variable + ": " + type + wrap(" = ", defaultValue) + wrap(" ", join(directives, " "))
98270
- },
98271
- SelectionSet: {
98272
- leave: ({ selections }) => block(selections)
98273
- },
98274
- Field: {
98275
- leave({ alias, name, arguments: args, directives, selectionSet }) {
98276
- const prefix = wrap("", alias, ": ") + name;
98277
- let argsLine = prefix + wrap("(", join(args, ", "), ")");
98278
- if (argsLine.length > MAX_LINE_LENGTH) {
98279
- argsLine = prefix + wrap("(\n", indent(join(args, "\n")), "\n)");
98280
- }
98281
- return join([argsLine, join(directives, " "), selectionSet], " ");
98282
- }
98283
- },
98284
- Argument: {
98285
- leave: ({ name, value }) => name + ": " + value
98286
- },
98287
- // Fragments
98288
- FragmentSpread: {
98289
- leave: ({ name, directives }) => "..." + name + wrap(" ", join(directives, " "))
98290
- },
98291
- InlineFragment: {
98292
- leave: ({ typeCondition, directives, selectionSet }) => join(
98293
- [
98294
- "...",
98295
- wrap("on ", typeCondition),
98296
- join(directives, " "),
98297
- selectionSet
98298
- ],
98299
- " "
98300
- )
98301
- },
98302
- FragmentDefinition: {
98303
- leave: ({ name, typeCondition, variableDefinitions, directives, selectionSet }) => (
98304
- // or removed in the future.
98305
- `fragment ${name}${wrap("(", join(variableDefinitions, ", "), ")")} on ${typeCondition} ${wrap("", join(directives, " "), " ")}` + selectionSet
98306
- )
98307
- },
98308
- // Value
98309
- IntValue: {
98310
- leave: ({ value }) => value
98311
- },
98312
- FloatValue: {
98313
- leave: ({ value }) => value
98314
- },
98315
- StringValue: {
98316
- leave: ({ value, block: isBlockString }) => isBlockString ? printBlockString(value) : printString(value)
98317
- },
98318
- BooleanValue: {
98319
- leave: ({ value }) => value ? "true" : "false"
98320
- },
98321
- NullValue: {
98322
- leave: () => "null"
98323
- },
98324
- EnumValue: {
98325
- leave: ({ value }) => value
98326
- },
98327
- ListValue: {
98328
- leave: ({ values }) => "[" + join(values, ", ") + "]"
98329
- },
98330
- ObjectValue: {
98331
- leave: ({ fields }) => "{" + join(fields, ", ") + "}"
98332
- },
98333
- ObjectField: {
98334
- leave: ({ name, value }) => name + ": " + value
98335
- },
98336
- // Directive
98337
- Directive: {
98338
- leave: ({ name, arguments: args }) => "@" + name + wrap("(", join(args, ", "), ")")
98339
- },
98340
- // Type
98341
- NamedType: {
98342
- leave: ({ name }) => name
98343
- },
98344
- ListType: {
98345
- leave: ({ type }) => "[" + type + "]"
98346
- },
98347
- NonNullType: {
98348
- leave: ({ type }) => type + "!"
98349
- },
98350
- // Type System Definitions
98351
- SchemaDefinition: {
98352
- leave: ({ description, directives, operationTypes }) => wrap("", description, "\n") + join(["schema", join(directives, " "), block(operationTypes)], " ")
98353
- },
98354
- OperationTypeDefinition: {
98355
- leave: ({ operation, type }) => operation + ": " + type
98356
- },
98357
- ScalarTypeDefinition: {
98358
- leave: ({ description, name, directives }) => wrap("", description, "\n") + join(["scalar", name, join(directives, " ")], " ")
98359
- },
98360
- ObjectTypeDefinition: {
98361
- leave: ({ description, name, interfaces, directives, fields }) => wrap("", description, "\n") + join(
98362
- [
98363
- "type",
98364
- name,
98365
- wrap("implements ", join(interfaces, " & ")),
98366
- join(directives, " "),
98367
- block(fields)
98368
- ],
98369
- " "
98370
- )
98371
- },
98372
- FieldDefinition: {
98373
- 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, " "))
98374
- },
98375
- InputValueDefinition: {
98376
- leave: ({ description, name, type, defaultValue, directives }) => wrap("", description, "\n") + join(
98377
- [name + ": " + type, wrap("= ", defaultValue), join(directives, " ")],
98378
- " "
98379
- )
98380
- },
98381
- InterfaceTypeDefinition: {
98382
- leave: ({ description, name, interfaces, directives, fields }) => wrap("", description, "\n") + join(
98383
- [
98384
- "interface",
98385
- name,
98386
- wrap("implements ", join(interfaces, " & ")),
98387
- join(directives, " "),
98388
- block(fields)
98389
- ],
98390
- " "
98391
- )
98392
- },
98393
- UnionTypeDefinition: {
98394
- leave: ({ description, name, directives, types }) => wrap("", description, "\n") + join(
98395
- ["union", name, join(directives, " "), wrap("= ", join(types, " | "))],
98396
- " "
98397
- )
98398
- },
98399
- EnumTypeDefinition: {
98400
- leave: ({ description, name, directives, values }) => wrap("", description, "\n") + join(["enum", name, join(directives, " "), block(values)], " ")
98401
- },
98402
- EnumValueDefinition: {
98403
- leave: ({ description, name, directives }) => wrap("", description, "\n") + join([name, join(directives, " ")], " ")
98404
- },
98405
- InputObjectTypeDefinition: {
98406
- leave: ({ description, name, directives, fields }) => wrap("", description, "\n") + join(["input", name, join(directives, " "), block(fields)], " ")
98407
- },
98408
- DirectiveDefinition: {
98409
- 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, " | ")
98410
- },
98411
- SchemaExtension: {
98412
- leave: ({ directives, operationTypes }) => join(
98413
- ["extend schema", join(directives, " "), block(operationTypes)],
98414
- " "
98415
- )
98416
- },
98417
- ScalarTypeExtension: {
98418
- leave: ({ name, directives }) => join(["extend scalar", name, join(directives, " ")], " ")
98419
- },
98420
- ObjectTypeExtension: {
98421
- leave: ({ name, interfaces, directives, fields }) => join(
98422
- [
98423
- "extend type",
98424
- name,
98425
- wrap("implements ", join(interfaces, " & ")),
98426
- join(directives, " "),
98427
- block(fields)
98428
- ],
98429
- " "
98430
- )
98431
- },
98432
- InterfaceTypeExtension: {
98433
- leave: ({ name, interfaces, directives, fields }) => join(
98434
- [
98435
- "extend interface",
98436
- name,
98437
- wrap("implements ", join(interfaces, " & ")),
98438
- join(directives, " "),
98439
- block(fields)
98440
- ],
98441
- " "
98442
- )
98443
- },
98444
- UnionTypeExtension: {
98445
- leave: ({ name, directives, types }) => join(
98446
- [
98447
- "extend union",
98448
- name,
98449
- join(directives, " "),
98450
- wrap("= ", join(types, " | "))
98451
- ],
98452
- " "
98453
- )
98454
- },
98455
- EnumTypeExtension: {
98456
- leave: ({ name, directives, values }) => join(["extend enum", name, join(directives, " "), block(values)], " ")
98457
- },
98458
- InputObjectTypeExtension: {
98459
- leave: ({ name, directives, fields }) => join(["extend input", name, join(directives, " "), block(fields)], " ")
98460
- }
98461
- };
98462
- function join(maybeArray, separator = "") {
98463
- var _maybeArray$filter$jo;
98464
- 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 : "";
98465
- }
98466
- function block(array) {
98467
- return wrap("{\n", indent(join(array, "\n")), "\n}");
98468
- }
98469
- function wrap(start, maybeString, end = "") {
98470
- return maybeString != null && maybeString !== "" ? start + maybeString + end : "";
98471
- }
98472
- function indent(str) {
98473
- return wrap(" ", str.replace(/\n/g, "\n "));
98474
- }
98475
- function hasMultilineItems(maybeArray) {
98476
- var _maybeArray$some;
98477
- return (_maybeArray$some = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.some((str) => str.includes("\n"))) !== null && _maybeArray$some !== void 0 ? _maybeArray$some : false;
98478
- }
98479
- const referenceMap$1 = /* @__PURE__ */ new WeakMap();
98480
- const astResolver$1 = function(astReference) {
98481
- return referenceMap$1.get(astReference);
98482
- };
98483
- function findExecutableOperation$1(document, operationName) {
98484
- const operations = document.definitions.filter(
98485
- (def) => def.kind === Kind$2.OPERATION_DEFINITION
98486
- );
98487
- if (operations.length === 0) {
98488
- return void 0;
98489
- }
98490
- if (operations.length === 1 && !operationName) {
98491
- return operations[0];
98492
- }
98493
- if (operationName) {
98494
- return operations.find((op) => {
98495
- var _a;
98496
- return ((_a = op.name) == null ? void 0 : _a.value) === operationName;
98497
- });
98498
- }
98499
- return void 0;
98500
- }
98501
- function validateGraphQLOperations(config, options) {
98502
- const executableOperation = findExecutableOperation$1(config.query, config.operationName);
98503
- if (executableOperation) {
98504
- const operationType = executableOperation.operation;
98505
- if (!options.acceptedOperations.includes(operationType)) {
98506
- const operationTypeCapitalized = operationType.charAt(0).toUpperCase() + operationType.slice(1);
98507
- throw new Error(
98508
- `${operationTypeCapitalized} operations are not supported in this context`
98509
- );
98510
- }
98511
- }
98512
- }
98513
- function resolveAst$1(ast) {
98514
- if (ast === null || ast === void 0) {
98515
- return;
98516
- }
98517
- const result = astResolver$1(ast);
98518
- if (result === void 0) {
98519
- throw new Error("Could not resolve AST. Did you parse the query with gql?");
98520
- }
98521
- return result;
98522
- }
98523
- function wrapConfigAndVerify(config, options) {
98524
- if (config == null ? void 0 : config.query) {
98525
- config = { ...config, query: resolveAst$1(config.query) };
98526
- if (config.query === void 0) {
98527
- throw new Error("Internal error in GraphQL adapter occurred: Unable to resolve query");
98528
- }
98529
- validateGraphQLOperations(config, {
98530
- acceptedOperations: (options == null ? void 0 : options.acceptedOperations) ?? ["query"]
98531
- });
98532
- }
98533
- return config;
98534
- }
98565
+ // version: 1.409.0-355a528ce3
98535
98566
 
98536
98567
  /*!
98537
98568
  * Copyright (c) 2022, Salesforce, Inc.,
98538
98569
  * All rights reserved.
98539
98570
  * For full license text, see the LICENSE.txt file
98540
98571
  */
98541
- function findExecutableOperation$2(input) {
98572
+ function findExecutableOperation$1(input) {
98542
98573
  const operations = input.query.definitions.filter(
98543
98574
  (def) => def.kind === Kind$2.OPERATION_DEFINITION
98544
98575
  );
@@ -98561,7 +98592,7 @@
98561
98592
  return err$1(new Error("Multiple operations found in query, and no operation name provided"));
98562
98593
  }
98563
98594
  function buildGraphQLInputExtension$1(input) {
98564
- const operationResult = findExecutableOperation$2(input);
98595
+ const operationResult = findExecutableOperation$1(input);
98565
98596
  if (operationResult.isErr()) {
98566
98597
  return err$1(operationResult.error);
98567
98598
  }
@@ -98594,7 +98625,7 @@
98594
98625
  }
98595
98626
  };
98596
98627
  function addTypenameToDocument(doc) {
98597
- return visit(doc, {
98628
+ return visit$1(doc, {
98598
98629
  SelectionSet: {
98599
98630
  enter(node, _key, parent) {
98600
98631
  if (isOperationDefinition(parent)) {
@@ -98641,7 +98672,7 @@
98641
98672
  this.services = services;
98642
98673
  }
98643
98674
  get operationType() {
98644
- const operationResult = findExecutableOperation$2(this.config);
98675
+ const operationResult = findExecutableOperation$1(this.config);
98645
98676
  if (operationResult.isErr()) {
98646
98677
  return "mutation";
98647
98678
  }
@@ -98814,7 +98845,7 @@
98814
98845
  return this.documentRootType;
98815
98846
  }
98816
98847
  get operationType() {
98817
- const operationResult = findExecutableOperation$2(this.config);
98848
+ const operationResult = findExecutableOperation$1(this.config);
98818
98849
  if (operationResult.isErr()) {
98819
98850
  return "mutation";
98820
98851
  }
@@ -100020,7 +100051,7 @@
100020
100051
  }
100021
100052
  update(config, _context) {
100022
100053
  this.unsubscribe();
100023
- const resolvedQuery = resolveAst$1(config.query);
100054
+ const resolvedQuery = resolveAst(config.query);
100024
100055
  if (resolvedQuery) {
100025
100056
  validateGraphQLOperations(
100026
100057
  { query: resolvedQuery, operationName: config == null ? void 0 : config.operationName },
@@ -101091,7 +101122,7 @@
101091
101122
  id: '@salesforce/lds-network-adapter',
101092
101123
  instrument: instrument$2,
101093
101124
  });
101094
- // version: 1.405.0-d370cbed0f
101125
+ // version: 1.409.0-19a3d9bdf5
101095
101126
 
101096
101127
  const { create: create$3, keys: keys$3 } = Object;
101097
101128
  const { stringify, parse } = JSON;
@@ -101468,7 +101499,7 @@
101468
101499
  * All rights reserved.
101469
101500
  * For full license text, see the LICENSE.txt file
101470
101501
  */
101471
- var Kind$1;
101502
+ var Kind;
101472
101503
  (function(Kind2) {
101473
101504
  Kind2["NAME"] = "Name";
101474
101505
  Kind2["DOCUMENT"] = "Document";
@@ -101513,8 +101544,8 @@
101513
101544
  Kind2["UNION_TYPE_EXTENSION"] = "UnionTypeExtension";
101514
101545
  Kind2["ENUM_TYPE_EXTENSION"] = "EnumTypeExtension";
101515
101546
  Kind2["INPUT_OBJECT_TYPE_EXTENSION"] = "InputObjectTypeExtension";
101516
- })(Kind$1 || (Kind$1 = {}));
101517
- var TokenKind$1;
101547
+ })(Kind || (Kind = {}));
101548
+ var TokenKind;
101518
101549
  (function(TokenKind2) {
101519
101550
  TokenKind2["SOF"] = "<SOF>";
101520
101551
  TokenKind2["EOF"] = "<EOF>";
@@ -101538,8 +101569,8 @@
101538
101569
  TokenKind2["STRING"] = "String";
101539
101570
  TokenKind2["BLOCK_STRING"] = "BlockString";
101540
101571
  TokenKind2["COMMENT"] = "Comment";
101541
- })(TokenKind$1 || (TokenKind$1 = {}));
101542
- const QueryDocumentKeys$1 = {
101572
+ })(TokenKind || (TokenKind = {}));
101573
+ const QueryDocumentKeys = {
101543
101574
  Name: [],
101544
101575
  Document: ["definitions"],
101545
101576
  OperationDefinition: [
@@ -101614,14 +101645,14 @@
101614
101645
  EnumTypeExtension: ["name", "directives", "values"],
101615
101646
  InputObjectTypeExtension: ["name", "directives", "fields"]
101616
101647
  };
101617
- new Set(Object.keys(QueryDocumentKeys$1));
101618
- var OperationTypeNode$1;
101648
+ new Set(Object.keys(QueryDocumentKeys));
101649
+ var OperationTypeNode;
101619
101650
  (function(OperationTypeNode2) {
101620
101651
  OperationTypeNode2["QUERY"] = "query";
101621
101652
  OperationTypeNode2["MUTATION"] = "mutation";
101622
101653
  OperationTypeNode2["SUBSCRIPTION"] = "subscription";
101623
- })(OperationTypeNode$1 || (OperationTypeNode$1 = {}));
101624
- var DirectiveLocation$1;
101654
+ })(OperationTypeNode || (OperationTypeNode = {}));
101655
+ var DirectiveLocation;
101625
101656
  (function(DirectiveLocation2) {
101626
101657
  DirectiveLocation2["QUERY"] = "QUERY";
101627
101658
  DirectiveLocation2["MUTATION"] = "MUTATION";
@@ -101642,7 +101673,7 @@
101642
101673
  DirectiveLocation2["ENUM_VALUE"] = "ENUM_VALUE";
101643
101674
  DirectiveLocation2["INPUT_OBJECT"] = "INPUT_OBJECT";
101644
101675
  DirectiveLocation2["INPUT_FIELD_DEFINITION"] = "INPUT_FIELD_DEFINITION";
101645
- })(DirectiveLocation$1 || (DirectiveLocation$1 = {}));
101676
+ })(DirectiveLocation || (DirectiveLocation = {}));
101646
101677
 
101647
101678
  /*!
101648
101679
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -101650,15 +101681,15 @@
101650
101681
  * For full license text, see the LICENSE.txt file
101651
101682
  */
101652
101683
  function extractValue(valueNode, variableDefinitions, expectedType) {
101653
- if (valueNode.kind === Kind$1.VARIABLE) {
101684
+ if (valueNode.kind === Kind.VARIABLE) {
101654
101685
  const variableResult = extractVariableValue(valueNode.name.value, variableDefinitions);
101655
101686
  if (variableResult.isErr()) {
101656
101687
  return variableResult;
101657
101688
  }
101658
101689
  return validateExpectedType(variableResult.value, expectedType);
101659
- } else if (valueNode.kind === Kind$1.NULL) {
101690
+ } else if (valueNode.kind === Kind.NULL) {
101660
101691
  return validateExpectedType(null, expectedType);
101661
- } else if (valueNode.kind === Kind$1.LIST) {
101692
+ } else if (valueNode.kind === Kind.LIST) {
101662
101693
  const values = [];
101663
101694
  for (const val of valueNode.values) {
101664
101695
  const extractedResult = extractValue(val, variableDefinitions);
@@ -101668,7 +101699,7 @@
101668
101699
  values.push(extractedResult.value);
101669
101700
  }
101670
101701
  return validateExpectedType(values, expectedType);
101671
- } else if (valueNode.kind === Kind$1.OBJECT) {
101702
+ } else if (valueNode.kind === Kind.OBJECT) {
101672
101703
  const value = {};
101673
101704
  for (const field of valueNode.fields) {
101674
101705
  const extractedResult = extractValue(field.value, variableDefinitions);
@@ -101678,10 +101709,10 @@
101678
101709
  value[field.name.value] = extractedResult.value;
101679
101710
  }
101680
101711
  return validateExpectedType(value, expectedType);
101681
- } else if (valueNode.kind === Kind$1.INT) {
101712
+ } else if (valueNode.kind === Kind.INT) {
101682
101713
  const value = parseInt(valueNode.value, 10);
101683
101714
  return validateExpectedType(value, expectedType);
101684
- } else if (valueNode.kind === Kind$1.FLOAT) {
101715
+ } else if (valueNode.kind === Kind.FLOAT) {
101685
101716
  const value = parseFloat(valueNode.value);
101686
101717
  return validateExpectedType(value, expectedType);
101687
101718
  } else {
@@ -101760,7 +101791,7 @@
101760
101791
  }
101761
101792
  function findExecutableOperation(input) {
101762
101793
  const operations = input.query.definitions.filter(
101763
- (def) => def.kind === Kind$1.OPERATION_DEFINITION
101794
+ (def) => def.kind === Kind.OPERATION_DEFINITION
101764
101795
  );
101765
101796
  if (operations.length === 0) {
101766
101797
  return err$3(new Error("No operations found in query"));
@@ -101816,7 +101847,7 @@
101816
101847
  const baseAliasedSelection = {
101817
101848
  ...newSelection,
101818
101849
  alias: {
101819
- kind: Kind$1.NAME,
101850
+ kind: Kind.NAME,
101820
101851
  value: baseInjectedAlias
101821
101852
  }
101822
101853
  };
@@ -101827,7 +101858,7 @@
101827
101858
  return {
101828
101859
  ...newSelection,
101829
101860
  alias: {
101830
- kind: Kind$1.NAME,
101861
+ kind: Kind.NAME,
101831
101862
  value: fieldName
101832
101863
  }
101833
101864
  };
@@ -101840,11 +101871,11 @@
101840
101871
  if (a.kind !== b.kind) {
101841
101872
  return false;
101842
101873
  }
101843
- if (a.kind === Kind$1.FIELD) {
101874
+ if (a.kind === Kind.FIELD) {
101844
101875
  const bField = b;
101845
101876
  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);
101846
101877
  }
101847
- if (a.kind === Kind$1.FRAGMENT_SPREAD) {
101878
+ if (a.kind === Kind.FRAGMENT_SPREAD) {
101848
101879
  const bFragmentSpread = b;
101849
101880
  return a.name.value === bFragmentSpread.name.value && directivesEqual(a.directives, bFragmentSpread.directives);
101850
101881
  }
@@ -101856,23 +101887,23 @@
101856
101887
  return false;
101857
101888
  }
101858
101889
  switch (a.kind) {
101859
- case Kind$1.STRING:
101860
- case Kind$1.INT:
101861
- case Kind$1.FLOAT:
101862
- case Kind$1.BOOLEAN:
101863
- case Kind$1.ENUM:
101890
+ case Kind.STRING:
101891
+ case Kind.INT:
101892
+ case Kind.FLOAT:
101893
+ case Kind.BOOLEAN:
101894
+ case Kind.ENUM:
101864
101895
  return a.value === b.value;
101865
- case Kind$1.NULL:
101896
+ case Kind.NULL:
101866
101897
  return true;
101867
- case Kind$1.VARIABLE:
101898
+ case Kind.VARIABLE:
101868
101899
  return a.name.value === b.name.value;
101869
- case Kind$1.LIST:
101900
+ case Kind.LIST:
101870
101901
  const bList = b;
101871
101902
  if (a.values.length !== bList.values.length) {
101872
101903
  return false;
101873
101904
  }
101874
101905
  return a.values.every((val, index) => argumentValueEquals(val, bList.values[index]));
101875
- case Kind$1.OBJECT:
101906
+ case Kind.OBJECT:
101876
101907
  const bObject = b;
101877
101908
  if (a.fields.length !== bObject.fields.length) {
101878
101909
  return false;
@@ -101973,23 +102004,23 @@
101973
102004
  return ok$3(`${canonicalFieldName}::${stableJSONStringify$3({ args: formattedArguments })}`);
101974
102005
  }
101975
102006
  ({
101976
- kind: Kind$1.FIELD,
102007
+ kind: Kind.FIELD,
101977
102008
  name: {
101978
- kind: Kind$1.NAME,
102009
+ kind: Kind.NAME,
101979
102010
  value: "__typename"
101980
102011
  }
101981
102012
  });
101982
102013
  function isField(node) {
101983
- return node.kind === Kind$1.FIELD;
102014
+ return node.kind === Kind.FIELD;
101984
102015
  }
101985
102016
  function isFragmentSpread(node) {
101986
- return node.kind === Kind$1.FRAGMENT_SPREAD;
102017
+ return node.kind === Kind.FRAGMENT_SPREAD;
101987
102018
  }
101988
102019
  function isInlineFragment(node) {
101989
- return node.kind === Kind$1.INLINE_FRAGMENT;
102020
+ return node.kind === Kind.INLINE_FRAGMENT;
101990
102021
  }
101991
102022
  function isFragmentDefinition(node) {
101992
- return node.kind === Kind$1.FRAGMENT_DEFINITION;
102023
+ return node.kind === Kind.FRAGMENT_DEFINITION;
101993
102024
  }
101994
102025
  function extractIfArgument(directive, variables, directiveName) {
101995
102026
  var _a;
@@ -102296,9 +102327,9 @@
102296
102327
  }
102297
102328
  const newTypenameSelection = buildAugmentedFieldSelection(
102298
102329
  {
102299
- kind: Kind$1.FIELD,
102330
+ kind: Kind.FIELD,
102300
102331
  name: {
102301
- kind: Kind$1.NAME,
102332
+ kind: Kind.NAME,
102302
102333
  value: "__typename"
102303
102334
  }
102304
102335
  },
@@ -102325,7 +102356,7 @@
102325
102356
  {
102326
102357
  ...selection,
102327
102358
  selectionSet: {
102328
- kind: Kind$1.SELECTION_SET,
102359
+ kind: Kind.SELECTION_SET,
102329
102360
  selections: result.selections
102330
102361
  }
102331
102362
  }
@@ -102351,7 +102382,7 @@
102351
102382
  {
102352
102383
  ...fragment,
102353
102384
  selectionSet: {
102354
- kind: Kind$1.SELECTION_SET,
102385
+ kind: Kind.SELECTION_SET,
102355
102386
  selections: augmentedFragmentSelections.selections
102356
102387
  }
102357
102388
  }
@@ -102383,7 +102414,7 @@
102383
102414
  [fragment.name.value]: {
102384
102415
  ...fragment,
102385
102416
  selectionSet: {
102386
- kind: Kind$1.SELECTION_SET,
102417
+ kind: Kind.SELECTION_SET,
102387
102418
  selections: augmentedFragment.selections
102388
102419
  }
102389
102420
  }
@@ -102705,9 +102736,9 @@
102705
102736
  let augmentedFragments = result.fragments;
102706
102737
  const newSelection = buildAugmentedFieldSelection(
102707
102738
  {
102708
- kind: Kind$1.FIELD,
102739
+ kind: Kind.FIELD,
102709
102740
  name: {
102710
- kind: Kind$1.NAME,
102741
+ kind: Kind.NAME,
102711
102742
  value: this.idField
102712
102743
  }
102713
102744
  },
@@ -102775,7 +102806,7 @@
102775
102806
  buildKeyParams(input) {
102776
102807
  var _a;
102777
102808
  const idField = input.selections.find(
102778
- (selection) => selection.kind === Kind$1.FIELD && selection.name.value === this.idField
102809
+ (selection) => selection.kind === Kind.FIELD && selection.name.value === this.idField
102779
102810
  );
102780
102811
  if (!idField) {
102781
102812
  throw new Error(`Id field ${this.idField} not found in selections`);
@@ -102837,7 +102868,7 @@
102837
102868
  }
102838
102869
  const operation = operationResult.value;
102839
102870
  const fragmentDefinitions = input.query.definitions.filter(
102840
- (def) => def.kind === Kind$1.FRAGMENT_DEFINITION
102871
+ (def) => def.kind === Kind.FRAGMENT_DEFINITION
102841
102872
  );
102842
102873
  const fragments = fragmentDefinitions.reduce(
102843
102874
  (acc, def) => {
@@ -102854,13 +102885,13 @@
102854
102885
  let augmentedFragments = result.fragments;
102855
102886
  const augmentedOperation = {
102856
102887
  ...operation,
102857
- selectionSet: { kind: Kind$1.SELECTION_SET, selections: augmentedOperationSelections }
102888
+ selectionSet: { kind: Kind.SELECTION_SET, selections: augmentedOperationSelections }
102858
102889
  };
102859
102890
  return ok$3({
102860
102891
  ...input.query,
102861
102892
  definitions: [
102862
- ...input.query.definitions.filter((def) => def.kind !== Kind$1.FRAGMENT_DEFINITION).map((def) => {
102863
- if (def.kind !== Kind$1.OPERATION_DEFINITION || def !== operation) {
102893
+ ...input.query.definitions.filter((def) => def.kind !== Kind.FRAGMENT_DEFINITION).map((def) => {
102894
+ if (def.kind !== Kind.OPERATION_DEFINITION || def !== operation) {
102864
102895
  return def;
102865
102896
  }
102866
102897
  return augmentedOperation;
@@ -102969,7 +103000,7 @@
102969
103000
  let augmentedFragments = { ...input.fragments };
102970
103001
  input.selections.forEach((selection) => {
102971
103002
  var _a;
102972
- if (selection.kind === Kind$1.FIELD) {
103003
+ if (selection.kind === Kind.FIELD) {
102973
103004
  if (Object.keys(this.fields).includes(selection.name.value)) {
102974
103005
  const field = this.fields[selection.name.value];
102975
103006
  const result2 = field.augmentSelections({
@@ -102978,7 +103009,7 @@
102978
103009
  });
102979
103010
  augmentedSelections.push({
102980
103011
  ...selection,
102981
- selectionSet: { kind: Kind$1.SELECTION_SET, selections: result2.selections }
103012
+ selectionSet: { kind: Kind.SELECTION_SET, selections: result2.selections }
102982
103013
  });
102983
103014
  augmentedFragments = result2.fragments;
102984
103015
  } else {
@@ -102996,7 +103027,7 @@
102996
103027
  augmentedSelections.push(...result.selections);
102997
103028
  augmentedFragments = result.fragments;
102998
103029
  const newSelection = buildAugmentedFieldSelection(
102999
- { kind: Kind$1.FIELD, name: { kind: Kind$1.NAME, value: "__typename" } },
103030
+ { kind: Kind.FIELD, name: { kind: Kind.NAME, value: "__typename" } },
103000
103031
  augmentedSelections,
103001
103032
  input.fragments
103002
103033
  );
@@ -103008,7 +103039,7 @@
103008
103039
  getTypeDiscriminator(data, selections) {
103009
103040
  var _a;
103010
103041
  const typenameSelection = selections.find(
103011
- (selection) => selection.kind === Kind$1.FIELD && selection.name.value === "__typename"
103042
+ (selection) => selection.kind === Kind.FIELD && selection.name.value === "__typename"
103012
103043
  );
103013
103044
  if (typenameSelection) {
103014
103045
  return data[((_a = typenameSelection.alias) == null ? void 0 : _a.value) || typenameSelection.name.value];
@@ -103019,7 +103050,7 @@
103019
103050
  verifyInterfaceFields(selections) {
103020
103051
  let selectionErr;
103021
103052
  selections.forEach((selection) => {
103022
- if (selection.kind === Kind$1.FIELD) {
103053
+ if (selection.kind === Kind.FIELD) {
103023
103054
  const fieldName = selection.name.value;
103024
103055
  const selectionAllowed = fieldName === "__typename" || Object.keys(this.fields).includes(fieldName);
103025
103056
  if (!selectionAllowed) {
@@ -103143,7 +103174,7 @@
103143
103174
  augmentedSelections.push(...result.selections);
103144
103175
  augmentedFragments = result.fragments;
103145
103176
  const newSelection = buildAugmentedFieldSelection(
103146
- { kind: Kind$1.FIELD, name: { kind: Kind$1.NAME, value: "__typename" } },
103177
+ { kind: Kind.FIELD, name: { kind: Kind.NAME, value: "__typename" } },
103147
103178
  augmentedSelections,
103148
103179
  input.fragments
103149
103180
  );
@@ -103155,7 +103186,7 @@
103155
103186
  getTypeDiscriminator(data, selections) {
103156
103187
  var _a;
103157
103188
  const typenameSelection = selections.find(
103158
- (selection) => selection.kind === Kind$1.FIELD && selection.name.value === "__typename"
103189
+ (selection) => selection.kind === Kind.FIELD && selection.name.value === "__typename"
103159
103190
  );
103160
103191
  if (typenameSelection) {
103161
103192
  return data[((_a = typenameSelection.alias) == null ? void 0 : _a.value) || typenameSelection.name.value];
@@ -103166,7 +103197,7 @@
103166
103197
  verifyUnionFields(selections) {
103167
103198
  let selectionErr;
103168
103199
  selections.forEach((selection) => {
103169
- if (selection.kind === Kind$1.FIELD) {
103200
+ if (selection.kind === Kind.FIELD) {
103170
103201
  const fieldName = selection.name.value;
103171
103202
  const selectionAllowed = fieldName === "__typename";
103172
103203
  if (!selectionAllowed) {
@@ -103203,12 +103234,12 @@
103203
103234
  selections: [...input.selections, ...augmentedSelections],
103204
103235
  fragments: augmentedFragments
103205
103236
  });
103206
- const typeSelections = result.selections.filter((selection) => selection.kind !== Kind$1.FIELD).map((selection) => {
103207
- if (selection.kind === Kind$1.INLINE_FRAGMENT) {
103237
+ const typeSelections = result.selections.filter((selection) => selection.kind !== Kind.FIELD).map((selection) => {
103238
+ if (selection.kind === Kind.INLINE_FRAGMENT) {
103208
103239
  return {
103209
103240
  ...selection,
103210
103241
  selectionSet: {
103211
- kind: Kind$1.SELECTION_SET,
103242
+ kind: Kind.SELECTION_SET,
103212
103243
  selections: selection.selectionSet.selections
103213
103244
  }
103214
103245
  };
@@ -103231,202 +103262,6 @@
103231
103262
  additionalProperties: true
103232
103263
  };
103233
103264
 
103234
- /**
103235
- * Copyright (c) 2022, Salesforce, Inc.,
103236
- * All rights reserved.
103237
- * For full license text, see the LICENSE.txt file
103238
- */
103239
-
103240
- var Kind;
103241
- (function(Kind2) {
103242
- Kind2["NAME"] = "Name";
103243
- Kind2["DOCUMENT"] = "Document";
103244
- Kind2["OPERATION_DEFINITION"] = "OperationDefinition";
103245
- Kind2["VARIABLE_DEFINITION"] = "VariableDefinition";
103246
- Kind2["SELECTION_SET"] = "SelectionSet";
103247
- Kind2["FIELD"] = "Field";
103248
- Kind2["ARGUMENT"] = "Argument";
103249
- Kind2["FRAGMENT_SPREAD"] = "FragmentSpread";
103250
- Kind2["INLINE_FRAGMENT"] = "InlineFragment";
103251
- Kind2["FRAGMENT_DEFINITION"] = "FragmentDefinition";
103252
- Kind2["VARIABLE"] = "Variable";
103253
- Kind2["INT"] = "IntValue";
103254
- Kind2["FLOAT"] = "FloatValue";
103255
- Kind2["STRING"] = "StringValue";
103256
- Kind2["BOOLEAN"] = "BooleanValue";
103257
- Kind2["NULL"] = "NullValue";
103258
- Kind2["ENUM"] = "EnumValue";
103259
- Kind2["LIST"] = "ListValue";
103260
- Kind2["OBJECT"] = "ObjectValue";
103261
- Kind2["OBJECT_FIELD"] = "ObjectField";
103262
- Kind2["DIRECTIVE"] = "Directive";
103263
- Kind2["NAMED_TYPE"] = "NamedType";
103264
- Kind2["LIST_TYPE"] = "ListType";
103265
- Kind2["NON_NULL_TYPE"] = "NonNullType";
103266
- Kind2["SCHEMA_DEFINITION"] = "SchemaDefinition";
103267
- Kind2["OPERATION_TYPE_DEFINITION"] = "OperationTypeDefinition";
103268
- Kind2["SCALAR_TYPE_DEFINITION"] = "ScalarTypeDefinition";
103269
- Kind2["OBJECT_TYPE_DEFINITION"] = "ObjectTypeDefinition";
103270
- Kind2["FIELD_DEFINITION"] = "FieldDefinition";
103271
- Kind2["INPUT_VALUE_DEFINITION"] = "InputValueDefinition";
103272
- Kind2["INTERFACE_TYPE_DEFINITION"] = "InterfaceTypeDefinition";
103273
- Kind2["UNION_TYPE_DEFINITION"] = "UnionTypeDefinition";
103274
- Kind2["ENUM_TYPE_DEFINITION"] = "EnumTypeDefinition";
103275
- Kind2["ENUM_VALUE_DEFINITION"] = "EnumValueDefinition";
103276
- Kind2["INPUT_OBJECT_TYPE_DEFINITION"] = "InputObjectTypeDefinition";
103277
- Kind2["DIRECTIVE_DEFINITION"] = "DirectiveDefinition";
103278
- Kind2["SCHEMA_EXTENSION"] = "SchemaExtension";
103279
- Kind2["SCALAR_TYPE_EXTENSION"] = "ScalarTypeExtension";
103280
- Kind2["OBJECT_TYPE_EXTENSION"] = "ObjectTypeExtension";
103281
- Kind2["INTERFACE_TYPE_EXTENSION"] = "InterfaceTypeExtension";
103282
- Kind2["UNION_TYPE_EXTENSION"] = "UnionTypeExtension";
103283
- Kind2["ENUM_TYPE_EXTENSION"] = "EnumTypeExtension";
103284
- Kind2["INPUT_OBJECT_TYPE_EXTENSION"] = "InputObjectTypeExtension";
103285
- })(Kind || (Kind = {}));
103286
- var TokenKind;
103287
- (function(TokenKind2) {
103288
- TokenKind2["SOF"] = "<SOF>";
103289
- TokenKind2["EOF"] = "<EOF>";
103290
- TokenKind2["BANG"] = "!";
103291
- TokenKind2["DOLLAR"] = "$";
103292
- TokenKind2["AMP"] = "&";
103293
- TokenKind2["PAREN_L"] = "(";
103294
- TokenKind2["PAREN_R"] = ")";
103295
- TokenKind2["SPREAD"] = "...";
103296
- TokenKind2["COLON"] = ":";
103297
- TokenKind2["EQUALS"] = "=";
103298
- TokenKind2["AT"] = "@";
103299
- TokenKind2["BRACKET_L"] = "[";
103300
- TokenKind2["BRACKET_R"] = "]";
103301
- TokenKind2["BRACE_L"] = "{";
103302
- TokenKind2["PIPE"] = "|";
103303
- TokenKind2["BRACE_R"] = "}";
103304
- TokenKind2["NAME"] = "Name";
103305
- TokenKind2["INT"] = "Int";
103306
- TokenKind2["FLOAT"] = "Float";
103307
- TokenKind2["STRING"] = "String";
103308
- TokenKind2["BLOCK_STRING"] = "BlockString";
103309
- TokenKind2["COMMENT"] = "Comment";
103310
- })(TokenKind || (TokenKind = {}));
103311
- const QueryDocumentKeys = {
103312
- Name: [],
103313
- Document: ["definitions"],
103314
- OperationDefinition: [
103315
- "name",
103316
- "variableDefinitions",
103317
- "directives",
103318
- "selectionSet"
103319
- ],
103320
- VariableDefinition: ["variable", "type", "defaultValue", "directives"],
103321
- Variable: ["name"],
103322
- SelectionSet: ["selections"],
103323
- Field: ["alias", "name", "arguments", "directives", "selectionSet"],
103324
- Argument: ["name", "value"],
103325
- FragmentSpread: ["name", "directives"],
103326
- InlineFragment: ["typeCondition", "directives", "selectionSet"],
103327
- FragmentDefinition: [
103328
- "name",
103329
- // Note: fragment variable definitions are deprecated and will removed in v17.0.0
103330
- "variableDefinitions",
103331
- "typeCondition",
103332
- "directives",
103333
- "selectionSet"
103334
- ],
103335
- IntValue: [],
103336
- FloatValue: [],
103337
- StringValue: [],
103338
- BooleanValue: [],
103339
- NullValue: [],
103340
- EnumValue: [],
103341
- ListValue: ["values"],
103342
- ObjectValue: ["fields"],
103343
- ObjectField: ["name", "value"],
103344
- Directive: ["name", "arguments"],
103345
- NamedType: ["name"],
103346
- ListType: ["type"],
103347
- NonNullType: ["type"],
103348
- SchemaDefinition: ["description", "directives", "operationTypes"],
103349
- OperationTypeDefinition: ["type"],
103350
- ScalarTypeDefinition: ["description", "name", "directives"],
103351
- ObjectTypeDefinition: [
103352
- "description",
103353
- "name",
103354
- "interfaces",
103355
- "directives",
103356
- "fields"
103357
- ],
103358
- FieldDefinition: ["description", "name", "arguments", "type", "directives"],
103359
- InputValueDefinition: [
103360
- "description",
103361
- "name",
103362
- "type",
103363
- "defaultValue",
103364
- "directives"
103365
- ],
103366
- InterfaceTypeDefinition: [
103367
- "description",
103368
- "name",
103369
- "interfaces",
103370
- "directives",
103371
- "fields"
103372
- ],
103373
- UnionTypeDefinition: ["description", "name", "directives", "types"],
103374
- EnumTypeDefinition: ["description", "name", "directives", "values"],
103375
- EnumValueDefinition: ["description", "name", "directives"],
103376
- InputObjectTypeDefinition: ["description", "name", "directives", "fields"],
103377
- DirectiveDefinition: ["description", "name", "arguments", "locations"],
103378
- SchemaExtension: ["directives", "operationTypes"],
103379
- ScalarTypeExtension: ["name", "directives"],
103380
- ObjectTypeExtension: ["name", "interfaces", "directives", "fields"],
103381
- InterfaceTypeExtension: ["name", "interfaces", "directives", "fields"],
103382
- UnionTypeExtension: ["name", "directives", "types"],
103383
- EnumTypeExtension: ["name", "directives", "values"],
103384
- InputObjectTypeExtension: ["name", "directives", "fields"]
103385
- };
103386
- new Set(Object.keys(QueryDocumentKeys));
103387
- var OperationTypeNode;
103388
- (function(OperationTypeNode2) {
103389
- OperationTypeNode2["QUERY"] = "query";
103390
- OperationTypeNode2["MUTATION"] = "mutation";
103391
- OperationTypeNode2["SUBSCRIPTION"] = "subscription";
103392
- })(OperationTypeNode || (OperationTypeNode = {}));
103393
- var DirectiveLocation;
103394
- (function(DirectiveLocation2) {
103395
- DirectiveLocation2["QUERY"] = "QUERY";
103396
- DirectiveLocation2["MUTATION"] = "MUTATION";
103397
- DirectiveLocation2["SUBSCRIPTION"] = "SUBSCRIPTION";
103398
- DirectiveLocation2["FIELD"] = "FIELD";
103399
- DirectiveLocation2["FRAGMENT_DEFINITION"] = "FRAGMENT_DEFINITION";
103400
- DirectiveLocation2["FRAGMENT_SPREAD"] = "FRAGMENT_SPREAD";
103401
- DirectiveLocation2["INLINE_FRAGMENT"] = "INLINE_FRAGMENT";
103402
- DirectiveLocation2["VARIABLE_DEFINITION"] = "VARIABLE_DEFINITION";
103403
- DirectiveLocation2["SCHEMA"] = "SCHEMA";
103404
- DirectiveLocation2["SCALAR"] = "SCALAR";
103405
- DirectiveLocation2["OBJECT"] = "OBJECT";
103406
- DirectiveLocation2["FIELD_DEFINITION"] = "FIELD_DEFINITION";
103407
- DirectiveLocation2["ARGUMENT_DEFINITION"] = "ARGUMENT_DEFINITION";
103408
- DirectiveLocation2["INTERFACE"] = "INTERFACE";
103409
- DirectiveLocation2["UNION"] = "UNION";
103410
- DirectiveLocation2["ENUM"] = "ENUM";
103411
- DirectiveLocation2["ENUM_VALUE"] = "ENUM_VALUE";
103412
- DirectiveLocation2["INPUT_OBJECT"] = "INPUT_OBJECT";
103413
- DirectiveLocation2["INPUT_FIELD_DEFINITION"] = "INPUT_FIELD_DEFINITION";
103414
- })(DirectiveLocation || (DirectiveLocation = {}));
103415
- const referenceMap = /* @__PURE__ */ new WeakMap();
103416
- const astResolver = function(astReference) {
103417
- return referenceMap.get(astReference);
103418
- };
103419
- function resolveAst(ast) {
103420
- if (ast === null || ast === void 0) {
103421
- return;
103422
- }
103423
- const result = astResolver(ast);
103424
- if (result === void 0) {
103425
- throw new Error("Could not resolve AST. Did you parse the query with gql?");
103426
- }
103427
- return result;
103428
- }
103429
-
103430
103265
  /**
103431
103266
  * Copyright (c) 2022, Salesforce, Inc.,
103432
103267
  * All rights reserved.
@@ -115100,7 +114935,7 @@ keys: keys$2,
115100
114935
  cb(graphql_v1_import, graphql_imperative$1, graphql_imperative_legacy_v1_import, graphql_state_manager, useOneStoreGraphQL);
115101
114936
  }
115102
114937
  }
115103
- // version: 1.405.0-13ac2fd8fa
114938
+ // version: 1.409.0-355a528ce3
115104
114939
 
115105
114940
  function createFragmentMap(documentNode) {
115106
114941
  const fragments = {};
@@ -143794,12 +143629,12 @@ keys: keys$2,
143794
143629
  const graphqlBatch_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'graphqlBatch', factory), graphqlBatchMetadata);
143795
143630
  return {
143796
143631
  // Wire Adapters
143797
- graphqlBatch: createGraphQLWireAdapterConstructor(luvio, graphqlBatch_ldsAdapter, graphqlBatchMetadata, astResolver$2),
143632
+ graphqlBatch: createGraphQLWireAdapterConstructor(luvio, graphqlBatch_ldsAdapter, graphqlBatchMetadata, astResolver$1),
143798
143633
  // One Store Enabled Adapters
143799
- graphql: createGraphQLWireAdapterConstructor(luvio, graphql_ldsAdapter, graphqlMetadata, astResolver$2),
143800
- graphql_imperative: createGraphQLImperativeAdapter(luvio, graphql_ldsAdapter, graphqlMetadata, astResolver$2),
143634
+ graphql: createGraphQLWireAdapterConstructor(luvio, graphql_ldsAdapter, graphqlMetadata, astResolver$1),
143635
+ graphql_imperative: createGraphQLImperativeAdapter(luvio, graphql_ldsAdapter, graphqlMetadata, astResolver$1),
143801
143636
  // Imperative Adapters
143802
- graphqlBatch_imperative: createGraphQLImperativeAdapter(luvio, graphqlBatch_ldsAdapter, graphqlBatchMetadata, astResolver$2),
143637
+ graphqlBatch_imperative: createGraphQLImperativeAdapter(luvio, graphqlBatch_ldsAdapter, graphqlBatchMetadata, astResolver$1),
143803
143638
  };
143804
143639
  }
143805
143640
  withDefaultLuvio((luvio) => {
@@ -144325,7 +144160,7 @@ keys: keys$2,
144325
144160
  configuration: { ...configurationForGraphQLAdapters$1 },
144326
144161
  instrument: instrument$1,
144327
144162
  });
144328
- // version: 1.405.0-13ac2fd8fa
144163
+ // version: 1.409.0-355a528ce3
144329
144164
 
144330
144165
  // On core the unstable adapters are re-exported with different names,
144331
144166
  // we want to match them here.
@@ -144451,7 +144286,7 @@ keys: keys$2,
144451
144286
  }
144452
144287
  const { query, variables } = validatedConfig;
144453
144288
  // Forward to new adapter
144454
- const resolvedQuery = astResolver$2(query);
144289
+ const resolvedQuery = astResolver$1(query);
144455
144290
  if (resolvedQuery === undefined) {
144456
144291
  return null;
144457
144292
  }
@@ -144477,7 +144312,7 @@ keys: keys$2,
144477
144312
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
144478
144313
  graphQLImperative = ldsAdapter;
144479
144314
  });
144480
- // version: 1.405.0-13ac2fd8fa
144315
+ // version: 1.409.0-355a528ce3
144481
144316
 
144482
144317
  var gqlApi = /*#__PURE__*/Object.freeze({
144483
144318
  __proto__: null,
@@ -145276,7 +145111,7 @@ keys: keys$2,
145276
145111
  function register(r) {
145277
145112
  callbacks$1.forEach((callback) => callback(r));
145278
145113
  }
145279
- // version: 1.405.0-d370cbed0f
145114
+ // version: 1.409.0-19a3d9bdf5
145280
145115
 
145281
145116
  /**
145282
145117
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -146613,4 +146448,4 @@ keys: keys$2,
146613
146448
  exports.subscribeToAdapter = subscribeToAdapter;
146614
146449
 
146615
146450
  }));
146616
- // version: 1.405.0-d370cbed0f
146451
+ // version: 1.409.0-19a3d9bdf5