@ethlete/query 6.0.0-next.36 → 6.0.0-next.37
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.
- package/CHANGELOG.md +6 -0
- package/fesm2022/ethlete-query.mjs +150 -75
- package/fesm2022/ethlete-query.mjs.map +1 -1
- package/package.json +1 -1
- package/types/ethlete-query.d.ts +55 -20
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @ethlete/query
|
|
2
2
|
|
|
3
|
+
## 6.0.0-next.37
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#3058](https://github.com/ethlete-io/ethdk/pull/3058) [`b6c106e`](https://github.com/ethlete-io/ethdk/commit/b6c106e17d8925fd881eb94974782e94ae03686d) Thanks [@github-actions](https://github.com/apps/github-actions)! - The Mocks tab seeds a body in a placeholder, realistic or stress value style, and `provideQueryDevtools({ schema })` takes one API description per query client.
|
|
8
|
+
|
|
3
9
|
## 6.0.0-next.36
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
|
@@ -7253,6 +7253,18 @@ const generateQueryDevtoolsNumberPreset = (preset) => {
|
|
|
7253
7253
|
}
|
|
7254
7254
|
}
|
|
7255
7255
|
};
|
|
7256
|
+
/**
|
|
7257
|
+
* Generates a plausible sample number inside the bounds a caller declares - a small integer, or one with
|
|
7258
|
+
* two decimals when `fractional`. The number presets break a layout on purpose; this one does not.
|
|
7259
|
+
*/
|
|
7260
|
+
const generateQueryDevtoolsSampleNumber = (bounds) => {
|
|
7261
|
+
const min = bounds.min ?? 1;
|
|
7262
|
+
const max = Math.max(min, bounds.max ?? min + 999);
|
|
7263
|
+
const value = randomIntBetween(min, Math.min(max, min + 999));
|
|
7264
|
+
if (!bounds.fractional || value >= max)
|
|
7265
|
+
return value;
|
|
7266
|
+
return Math.min(max, Math.round((value + Math.random()) * 100) / 100);
|
|
7267
|
+
};
|
|
7256
7268
|
const DAY_MS = 24 * 60 * 60 * 1000;
|
|
7257
7269
|
/** `invalid` is deliberately unparseable - "the API sent a date my code can't parse" is a real bug class. */
|
|
7258
7270
|
const datePresetValue = (preset) => {
|
|
@@ -7454,34 +7466,50 @@ const armQueryDevtoolsOverrideTransfer = (recorder, ops) => {
|
|
|
7454
7466
|
|
|
7455
7467
|
// Generated from package.json by tools/scripts/generate-version.js - do not edit.
|
|
7456
7468
|
/** The version of `@ethlete/query` this build was cut from. */
|
|
7457
|
-
const QUERY_VERSION = '6.0.0-next.
|
|
7469
|
+
const QUERY_VERSION = '6.0.0-next.37';
|
|
7458
7470
|
|
|
7459
7471
|
/** How deep a schema is expanded before a nested branch is given up on. */
|
|
7460
7472
|
const MAX_DEPTH = 12;
|
|
7461
7473
|
/** How many elements are generated for an array, whatever its `minItems` says. */
|
|
7462
7474
|
const MAX_ITEMS = 3;
|
|
7475
|
+
/**
|
|
7476
|
+
* How many array elements are generated on their own rather than copied from the first. Nested arrays
|
|
7477
|
+
* multiply, so without a ceiling a body of arrays-in-arrays costs `MAX_ITEMS ^ MAX_DEPTH` walks.
|
|
7478
|
+
*/
|
|
7479
|
+
const VARIED_ITEMS_BUDGET = 200;
|
|
7463
7480
|
const HTTP_METHODS = ['get', 'put', 'post', 'delete', 'options', 'head', 'patch', 'trace'];
|
|
7464
|
-
|
|
7465
|
-
|
|
7466
|
-
const
|
|
7467
|
-
...(ngDevMode ? [{ debugName: "
|
|
7468
|
-
const
|
|
7469
|
-
...(ngDevMode ? [{ debugName: "
|
|
7481
|
+
/** The key a single loader is filed under, so one description answers for every client. */
|
|
7482
|
+
const ANY_CLIENT = '*';
|
|
7483
|
+
const loaders = /* @__PURE__ */ signal({}, /* @ts-ignore */
|
|
7484
|
+
...(ngDevMode ? [{ debugName: "loaders" }] : /* istanbul ignore next */ []));
|
|
7485
|
+
const states = /* @__PURE__ */ signal({}, /* @ts-ignore */
|
|
7486
|
+
...(ngDevMode ? [{ debugName: "states" }] : /* istanbul ignore next */ []));
|
|
7487
|
+
const documents = /* @__PURE__ */ signal({}, /* @ts-ignore */
|
|
7488
|
+
...(ngDevMode ? [{ debugName: "documents" }] : /* istanbul ignore next */ []));
|
|
7470
7489
|
const isRecord = (value) => !!value && typeof value === 'object' && !Array.isArray(value);
|
|
7490
|
+
/** Which description answers for a client: its own, or the one that answers for all of them. */
|
|
7491
|
+
const keyOf = (clientName) => {
|
|
7492
|
+
const declared = loaders();
|
|
7493
|
+
if (clientName in declared)
|
|
7494
|
+
return clientName;
|
|
7495
|
+
return ANY_CLIENT in declared ? ANY_CLIENT : clientName;
|
|
7496
|
+
};
|
|
7497
|
+
const documentOf = (clientName) => documents()[keyOf(clientName)] ?? null;
|
|
7471
7498
|
/**
|
|
7472
|
-
* Where the API
|
|
7499
|
+
* Where the description of one query client's API stands, for the panel's seeding controls.
|
|
7473
7500
|
*
|
|
7474
7501
|
* Part of the devtools contract. **Not part of the general public contract.**
|
|
7475
7502
|
*/
|
|
7476
|
-
const queryDevtoolsSchemaState =
|
|
7503
|
+
const queryDevtoolsSchemaState = (clientName) => states()[keyOf(clientName)] ?? { status: 'unavailable' };
|
|
7477
7504
|
/**
|
|
7478
|
-
* Installs the application's schema
|
|
7505
|
+
* Installs the application's schema loaders. Called by `provideQueryDevtools()`; nothing else may call it.
|
|
7479
7506
|
* @internal
|
|
7480
7507
|
*/
|
|
7481
7508
|
const setQueryDevtoolsSchemaLoader = (next) => {
|
|
7482
|
-
|
|
7483
|
-
|
|
7484
|
-
|
|
7509
|
+
const declared = next === undefined ? {} : typeof next === 'function' ? { [ANY_CLIENT]: next } : { ...next };
|
|
7510
|
+
loaders.set(declared);
|
|
7511
|
+
states.set(Object.fromEntries(Object.keys(declared).map((key) => [key, { status: 'idle' }])));
|
|
7512
|
+
documents.set({});
|
|
7485
7513
|
};
|
|
7486
7514
|
/** A `() => import('./openapi.json')` loader hands back the module rather than the document inside it. */
|
|
7487
7515
|
const unwrapModule = (value) => {
|
|
@@ -7498,53 +7526,58 @@ const messageOf = (error) => (error instanceof Error ? error.message : String(er
|
|
|
7498
7526
|
*
|
|
7499
7527
|
* Part of the devtools contract. **Not part of the general public contract.**
|
|
7500
7528
|
*/
|
|
7501
|
-
const loadQueryDevtoolsSchema = () => {
|
|
7502
|
-
const
|
|
7503
|
-
const
|
|
7529
|
+
const loadQueryDevtoolsSchema = (clientName) => {
|
|
7530
|
+
const key = keyOf(clientName);
|
|
7531
|
+
const load = loaders()[key];
|
|
7532
|
+
const status = queryDevtoolsSchemaState(clientName).status;
|
|
7504
7533
|
if (!load || status === 'loading' || status === 'ready')
|
|
7505
7534
|
return;
|
|
7506
|
-
|
|
7535
|
+
const setState = (next) => states.update((current) => ({ ...current, [key]: next }));
|
|
7536
|
+
setState({ status: 'loading' });
|
|
7507
7537
|
Promise.resolve()
|
|
7508
7538
|
.then(() => load())
|
|
7509
7539
|
.then((value) => {
|
|
7510
7540
|
const parsed = unwrapModule(value);
|
|
7511
7541
|
if (!isRecord(parsed))
|
|
7512
7542
|
throw new Error('The schema loader did not return an object.');
|
|
7513
|
-
|
|
7514
|
-
|
|
7543
|
+
documents.update((current) => ({ ...current, [key]: parsed }));
|
|
7544
|
+
setState({ status: 'ready' });
|
|
7515
7545
|
})
|
|
7516
7546
|
.catch((error) => {
|
|
7517
|
-
|
|
7518
|
-
|
|
7547
|
+
documents.update((current) => {
|
|
7548
|
+
const { [key]: _dropped, ...rest } = current;
|
|
7549
|
+
return rest;
|
|
7550
|
+
});
|
|
7551
|
+
setState({ status: 'error', message: messageOf(error) });
|
|
7519
7552
|
});
|
|
7520
7553
|
};
|
|
7521
|
-
const
|
|
7522
|
-
const doc = schemaDocument();
|
|
7523
|
-
if (!doc)
|
|
7524
|
-
return {};
|
|
7554
|
+
const schemasOf = (doc) => {
|
|
7525
7555
|
const components = doc['components'];
|
|
7526
7556
|
return {
|
|
7527
7557
|
...(isRecord(doc['$defs']) ? doc['$defs'] : null),
|
|
7528
7558
|
...(isRecord(doc['definitions']) ? doc['definitions'] : null),
|
|
7529
7559
|
...(isRecord(components) && isRecord(components['schemas']) ? components['schemas'] : null),
|
|
7530
7560
|
};
|
|
7531
|
-
}
|
|
7532
|
-
|
|
7561
|
+
};
|
|
7562
|
+
const namedSchemasByKey = /* @__PURE__ */ computed(() => Object.fromEntries(Object.entries(documents()).map(([key, doc]) => [key, schemasOf(doc)])), /* @ts-ignore */
|
|
7563
|
+
...(ngDevMode ? [{ debugName: "namedSchemasByKey" }] : /* istanbul ignore next */ []));
|
|
7564
|
+
const namedSchemas = (clientName) => namedSchemasByKey()[keyOf(clientName)] ?? {};
|
|
7565
|
+
const schemaNamesByKey = /* @__PURE__ */ computed(() => Object.fromEntries(Object.entries(namedSchemasByKey()).map(([key, schemas]) => [key, Object.keys(schemas).sort()])), /* @ts-ignore */
|
|
7566
|
+
...(ngDevMode ? [{ debugName: "schemaNamesByKey" }] : /* istanbul ignore next */ []));
|
|
7533
7567
|
/**
|
|
7534
|
-
* Every schema
|
|
7568
|
+
* Every schema one client's description names, sorted - the designer's "seed from a type" list.
|
|
7535
7569
|
*
|
|
7536
7570
|
* Part of the devtools contract. **Not part of the general public contract.**
|
|
7537
7571
|
*/
|
|
7538
|
-
const queryDevtoolsSchemaNames =
|
|
7539
|
-
...(ngDevMode ? [{ debugName: "queryDevtoolsSchemaNames" }] : /* istanbul ignore next */ []));
|
|
7572
|
+
const queryDevtoolsSchemaNames = (clientName) => schemaNamesByKey()[keyOf(clientName)] ?? [];
|
|
7540
7573
|
const decodePointer = (step) => decodeURIComponent(step.replace(/~1/g, '/').replace(/~0/g, '~'));
|
|
7541
7574
|
/** The last segment of a `$ref` - `#/components/schemas/MatchId` is what a field's type is called. */
|
|
7542
7575
|
const refLabel = (ref) => decodePointer(ref.split('/').pop() ?? ref);
|
|
7543
|
-
/** Resolves a local JSON pointer against
|
|
7544
|
-
const resolveRef = (ref) => {
|
|
7576
|
+
/** Resolves a local JSON pointer against one loaded document. A remote `$ref` cannot be followed. */
|
|
7577
|
+
const resolveRef = (ref, doc) => {
|
|
7545
7578
|
if (!ref.startsWith('#/'))
|
|
7546
7579
|
return undefined;
|
|
7547
|
-
let current =
|
|
7580
|
+
let current = doc;
|
|
7548
7581
|
for (const step of ref.slice(2).split('/')) {
|
|
7549
7582
|
if (!isRecord(current))
|
|
7550
7583
|
return undefined;
|
|
@@ -7626,27 +7659,62 @@ const FORMAT_SAMPLES = {
|
|
|
7626
7659
|
byte: '',
|
|
7627
7660
|
binary: '',
|
|
7628
7661
|
};
|
|
7662
|
+
const STRESS_STRING_PRESETS = ['long', 'longWord', 'unicode'];
|
|
7663
|
+
const finiteNumber = (value) => (typeof value === 'number' && Number.isFinite(value) ? value : null);
|
|
7664
|
+
const pickStressStringPreset = () => STRESS_STRING_PRESETS[Math.floor(Math.random() * STRESS_STRING_PRESETS.length)];
|
|
7665
|
+
/** Keeps a generated string inside `minLength`/`maxLength`, since a seed is exported as a real body. */
|
|
7666
|
+
const fitLength = (value, schema) => {
|
|
7667
|
+
const min = finiteNumber(schema['minLength']);
|
|
7668
|
+
const max = finiteNumber(schema['maxLength']);
|
|
7669
|
+
let out = value;
|
|
7670
|
+
while (min !== null && out.length < min)
|
|
7671
|
+
out += value || 'x';
|
|
7672
|
+
return max === null ? out : out.slice(0, max);
|
|
7673
|
+
};
|
|
7629
7674
|
/**
|
|
7630
|
-
*
|
|
7631
|
-
*
|
|
7675
|
+
* The value of a string field. A declared format wins in every style - a `date-time` full of lorem is
|
|
7676
|
+
* wrong data rather than a stress test - and an unformatted string is the field's own name, a short
|
|
7677
|
+
* sample or one of the three shapes that break a layout.
|
|
7632
7678
|
*/
|
|
7633
|
-
const stringSample = (node, schema) => {
|
|
7679
|
+
const stringSample = (node, schema, ctx) => {
|
|
7634
7680
|
const format = schema['format'];
|
|
7635
7681
|
if (typeof format === 'string' && format in FORMAT_SAMPLES)
|
|
7636
7682
|
return FORMAT_SAMPLES[format];
|
|
7683
|
+
if (ctx.style === 'realistic')
|
|
7684
|
+
return fitLength(generateQueryDevtoolsStringPreset('short'), schema);
|
|
7685
|
+
if (ctx.style === 'stress')
|
|
7686
|
+
return fitLength(generateQueryDevtoolsStringPreset(pickStressStringPreset()), schema);
|
|
7637
7687
|
const title = schema['title'];
|
|
7638
7688
|
if (typeof title === 'string' && title)
|
|
7639
7689
|
return title;
|
|
7640
7690
|
return node.key ?? 'string';
|
|
7641
7691
|
};
|
|
7642
|
-
const
|
|
7643
|
-
|
|
7644
|
-
|
|
7645
|
-
|
|
7646
|
-
|
|
7692
|
+
const boundsOf = (schema) => {
|
|
7693
|
+
const exclusiveMin = finiteNumber(schema['exclusiveMinimum']);
|
|
7694
|
+
const exclusiveMax = finiteNumber(schema['exclusiveMaximum']);
|
|
7695
|
+
return {
|
|
7696
|
+
min: finiteNumber(schema['minimum']) ?? (exclusiveMin === null ? null : exclusiveMin + 1),
|
|
7697
|
+
max: finiteNumber(schema['maximum']) ?? (exclusiveMax === null ? null : exclusiveMax - 1),
|
|
7698
|
+
};
|
|
7699
|
+
};
|
|
7700
|
+
const clampToBounds = (value, bounds) => {
|
|
7701
|
+
if (bounds.min !== null && value < bounds.min)
|
|
7702
|
+
return bounds.min;
|
|
7703
|
+
if (bounds.max !== null && value > bounds.max)
|
|
7704
|
+
return bounds.max;
|
|
7705
|
+
return value;
|
|
7706
|
+
};
|
|
7707
|
+
const numberSample = (schema, ctx) => {
|
|
7708
|
+
const bounds = boundsOf(schema);
|
|
7709
|
+
if (ctx.style === 'placeholder')
|
|
7710
|
+
return bounds.min ?? finiteNumber(schema['default']) ?? 0;
|
|
7711
|
+
if (ctx.style === 'realistic') {
|
|
7712
|
+
return generateQueryDevtoolsSampleNumber({ ...bounds, fractional: typeOf(schema) === 'number' });
|
|
7647
7713
|
}
|
|
7648
|
-
|
|
7714
|
+
const allowsNegative = bounds.min === null || bounds.min < 0;
|
|
7715
|
+
return clampToBounds(generateQueryDevtoolsNumberPreset(allowsNegative && Math.random() < 0.5 ? 'negative' : 'huge'), bounds);
|
|
7649
7716
|
};
|
|
7717
|
+
const booleanSample = (ctx) => ctx.style !== 'placeholder' && Math.random() < 0.5;
|
|
7650
7718
|
const childNode = (parent, child) => ({
|
|
7651
7719
|
schema: child.schema,
|
|
7652
7720
|
path: parent.path ? `${parent.path}.${child.key}` : child.key,
|
|
@@ -7680,12 +7748,14 @@ const generateArray = (node, ctx) => {
|
|
|
7680
7748
|
const items = schema['items'];
|
|
7681
7749
|
if (!isRecord(items))
|
|
7682
7750
|
return [];
|
|
7683
|
-
const minItems =
|
|
7684
|
-
const count = Math.min(Math.max(1, minItems), MAX_ITEMS);
|
|
7751
|
+
const minItems = finiteNumber(schema['minItems']) ?? (ctx.style === 'placeholder' ? 1 : MAX_ITEMS);
|
|
7752
|
+
const count = Math.min(Math.max(1, minItems), MAX_ITEMS, finiteNumber(schema['maxItems']) ?? MAX_ITEMS);
|
|
7685
7753
|
const target = { schema: items, path: `${node.path ? `${node.path}.` : ''}*`, depth: node.depth + 1, key: node.key };
|
|
7686
7754
|
ctx.types.set(target.path, describeSchema(items));
|
|
7687
7755
|
const element = generate(target, ctx);
|
|
7688
|
-
return Array.from({ length: count }, () =>
|
|
7756
|
+
return Array.from({ length: count }, (_, index) => index && ctx.style !== 'placeholder' && ctx.varied++ < VARIED_ITEMS_BUDGET
|
|
7757
|
+
? generate(target, ctx)
|
|
7758
|
+
: structuredCopy(element));
|
|
7689
7759
|
};
|
|
7690
7760
|
/** Each generated element is its own value, so editing one in the designer does not edit the others. */
|
|
7691
7761
|
const structuredCopy = (value) => {
|
|
@@ -7719,7 +7789,7 @@ const generate = (node, ctx) => {
|
|
|
7719
7789
|
ctx.notes.add(`${name} contains itself - the recursion was cut at ${at(node.path)} with null.`);
|
|
7720
7790
|
return null;
|
|
7721
7791
|
}
|
|
7722
|
-
const resolved = resolveRef(ref);
|
|
7792
|
+
const resolved = resolveRef(ref, ctx.doc);
|
|
7723
7793
|
if (resolved === undefined) {
|
|
7724
7794
|
ctx.notes.add(`${ref} could not be resolved - generated as null at ${at(node.path)}.`);
|
|
7725
7795
|
return null;
|
|
@@ -7754,12 +7824,12 @@ const generate = (node, ctx) => {
|
|
|
7754
7824
|
case 'array':
|
|
7755
7825
|
return generateArray(node, ctx);
|
|
7756
7826
|
case 'string':
|
|
7757
|
-
return stringSample(node, schema);
|
|
7827
|
+
return stringSample(node, schema, ctx);
|
|
7758
7828
|
case 'integer':
|
|
7759
7829
|
case 'number':
|
|
7760
|
-
return numberSample(schema);
|
|
7830
|
+
return numberSample(schema, ctx);
|
|
7761
7831
|
case 'boolean':
|
|
7762
|
-
return
|
|
7832
|
+
return booleanSample(ctx);
|
|
7763
7833
|
case 'null':
|
|
7764
7834
|
return null;
|
|
7765
7835
|
default:
|
|
@@ -7770,21 +7840,22 @@ const generate = (node, ctx) => {
|
|
|
7770
7840
|
ctx.notes.add(`${at(node.path)} declares no type - generated as null.`);
|
|
7771
7841
|
return null;
|
|
7772
7842
|
};
|
|
7773
|
-
const seedFrom = (schema, name) => {
|
|
7774
|
-
const ctx = { types: new Map(), notes: new Set(), refs: name ? [name] : [] };
|
|
7843
|
+
const seedFrom = (schema, name, style, doc) => {
|
|
7844
|
+
const ctx = { types: new Map(), notes: new Set(), refs: name ? [name] : [], style, varied: 0, doc };
|
|
7775
7845
|
const body = generate({ schema, path: '', depth: 0, key: null }, ctx);
|
|
7776
7846
|
return { body, schemaName: name, types: ctx.types, notes: [...ctx.notes] };
|
|
7777
7847
|
};
|
|
7778
7848
|
/**
|
|
7779
|
-
* Generates a body from one
|
|
7849
|
+
* Generates a body from one schema the client's description names (`MatchView`), or `null` when it names
|
|
7850
|
+
* no such thing. The style decides how lifelike its values are; the shape is the same either way.
|
|
7780
7851
|
*
|
|
7781
7852
|
* Part of the devtools contract. **Not part of the general public contract.**
|
|
7782
7853
|
*/
|
|
7783
|
-
const seedQueryDevtoolsSchemaBody = (name) => {
|
|
7784
|
-
const schema = namedSchemas()[name];
|
|
7854
|
+
const seedQueryDevtoolsSchemaBody = (clientName, name, style = 'placeholder') => {
|
|
7855
|
+
const schema = namedSchemas(clientName)[name];
|
|
7785
7856
|
if (schema === undefined)
|
|
7786
7857
|
return null;
|
|
7787
|
-
return seedFrom(schema, name);
|
|
7858
|
+
return seedFrom(schema, name, style, documentOf(clientName));
|
|
7788
7859
|
};
|
|
7789
7860
|
/** Where a schema was collected from, so the same name arriving from two pointers is caught. */
|
|
7790
7861
|
const originOf = (label, pointer) => pointer ?? `named:${label}`;
|
|
@@ -7821,8 +7892,9 @@ const rewriteRefs = (value, queue) => {
|
|
|
7821
7892
|
*
|
|
7822
7893
|
* Part of the devtools contract. **Not part of the general public contract.**
|
|
7823
7894
|
*/
|
|
7824
|
-
const collectQueryDevtoolsSchemaComponents = (names) => {
|
|
7825
|
-
const declared = namedSchemas();
|
|
7895
|
+
const collectQueryDevtoolsSchemaComponents = (clientName, names) => {
|
|
7896
|
+
const declared = namedSchemas(clientName);
|
|
7897
|
+
const doc = documentOf(clientName);
|
|
7826
7898
|
const schemas = {};
|
|
7827
7899
|
const notes = new Set();
|
|
7828
7900
|
const origins = new Map();
|
|
@@ -7837,7 +7909,7 @@ const collectQueryDevtoolsSchemaComponents = (names) => {
|
|
|
7837
7909
|
}
|
|
7838
7910
|
continue;
|
|
7839
7911
|
}
|
|
7840
|
-
const schema = request.pointer === null ? declared[request.label] : resolveRef(request.pointer);
|
|
7912
|
+
const schema = request.pointer === null ? declared[request.label] : resolveRef(request.pointer, doc);
|
|
7841
7913
|
if (schema === undefined) {
|
|
7842
7914
|
if (request.pointer !== null) {
|
|
7843
7915
|
notes.add(`${request.pointer} could not be resolved, so ${request.label} is missing from the export.`);
|
|
@@ -7884,14 +7956,8 @@ const patternsMatch = (a, b) => {
|
|
|
7884
7956
|
return isParam(segment) || isParam(other) ? isParam(segment) && isParam(other) : segment === other;
|
|
7885
7957
|
});
|
|
7886
7958
|
};
|
|
7887
|
-
|
|
7888
|
-
|
|
7889
|
-
* ever called, which is the case a mock exists for.
|
|
7890
|
-
*
|
|
7891
|
-
* Part of the devtools contract. **Not part of the general public contract.**
|
|
7892
|
-
*/
|
|
7893
|
-
const queryDevtoolsSchemaRoutes = /* @__PURE__ */ computed(() => {
|
|
7894
|
-
const paths = schemaDocument()?.['paths'];
|
|
7959
|
+
const routesOf = (doc) => {
|
|
7960
|
+
const paths = doc['paths'];
|
|
7895
7961
|
if (!isRecord(paths))
|
|
7896
7962
|
return [];
|
|
7897
7963
|
const routes = [];
|
|
@@ -7911,10 +7977,18 @@ const queryDevtoolsSchemaRoutes = /* @__PURE__ */ computed(() => {
|
|
|
7911
7977
|
}
|
|
7912
7978
|
}
|
|
7913
7979
|
return routes;
|
|
7914
|
-
}
|
|
7915
|
-
|
|
7916
|
-
|
|
7917
|
-
|
|
7980
|
+
};
|
|
7981
|
+
const routesByKey = /* @__PURE__ */ computed(() => Object.fromEntries(Object.entries(documents()).map(([key, doc]) => [key, routesOf(doc)])), /* @ts-ignore */
|
|
7982
|
+
...(ngDevMode ? [{ debugName: "routesByKey" }] : /* istanbul ignore next */ []));
|
|
7983
|
+
/**
|
|
7984
|
+
* Every route one client's description declares, as the designer offers them - including the ones no
|
|
7985
|
+
* query has ever called, which is the case a mock exists for.
|
|
7986
|
+
*
|
|
7987
|
+
* Part of the devtools contract. **Not part of the general public contract.**
|
|
7988
|
+
*/
|
|
7989
|
+
const queryDevtoolsSchemaRoutes = (clientName) => routesByKey()[keyOf(clientName)] ?? [];
|
|
7990
|
+
const findOperation = (target, doc) => {
|
|
7991
|
+
const paths = doc?.['paths'];
|
|
7918
7992
|
if (!isRecord(paths))
|
|
7919
7993
|
return null;
|
|
7920
7994
|
const method = target.method.toLowerCase();
|
|
@@ -7971,8 +8045,9 @@ const jsonSchemaOf = (response) => {
|
|
|
7971
8045
|
*
|
|
7972
8046
|
* Part of the devtools contract. **Not part of the general public contract.**
|
|
7973
8047
|
*/
|
|
7974
|
-
const seedQueryDevtoolsSchemaRoute = (target) => {
|
|
7975
|
-
const
|
|
8048
|
+
const seedQueryDevtoolsSchemaRoute = (target, style = 'placeholder') => {
|
|
8049
|
+
const doc = documentOf(target.clientName);
|
|
8050
|
+
const match = findOperation(target, doc);
|
|
7976
8051
|
if (!match)
|
|
7977
8052
|
return null;
|
|
7978
8053
|
const success = successResponse(match.operation);
|
|
@@ -7985,11 +8060,11 @@ const seedQueryDevtoolsSchemaRoute = (target) => {
|
|
|
7985
8060
|
// schema its `name` stands for - otherwise the walk reads the name as one it is already expanding and
|
|
7986
8061
|
// cuts the whole body as a cycle.
|
|
7987
8062
|
const ref = isRecord(json.schema) ? json.schema['$ref'] : null;
|
|
7988
|
-
const named = typeof ref === 'string' ? { schema: resolveRef(ref), name: refLabel(ref) } : null;
|
|
8063
|
+
const named = typeof ref === 'string' ? { schema: resolveRef(ref, doc), name: refLabel(ref) } : null;
|
|
7989
8064
|
if (named && named.schema === undefined)
|
|
7990
8065
|
return null;
|
|
7991
8066
|
const seed = json.example === undefined
|
|
7992
|
-
? seedFrom(named ? named.schema : json.schema, named ? named.name : null)
|
|
8067
|
+
? seedFrom(named ? named.schema : json.schema, named ? named.name : null, style, doc)
|
|
7993
8068
|
: {
|
|
7994
8069
|
body: json.example,
|
|
7995
8070
|
schemaName: null,
|
|
@@ -14196,5 +14271,5 @@ const createWebSocketClient = (options) => {
|
|
|
14196
14271
|
* Generated bundle index. Do not edit.
|
|
14197
14272
|
*/
|
|
14198
14273
|
|
|
14199
|
-
export { BasicAuthProvider, BearerAuthFeatureType, BooleanArrayQueryField, CustomHeaderAuthProvider, DEFAULT_KEEP_UNUSED_FOR, DEFAULT_QUERY_PERSISTENCE_MAX_AGE, DEFAULT_QUERY_PERSISTENCE_MAX_ENTRIES, DEFAULT_QUERY_PERSISTENCE_VERSION, DEFAULT_QUERY_PERSISTENCE_WRITE_DELAY, DateArrayQueryField, DateQueryField, EMPTY_QUERY_DEVTOOLS_FAULT, EntityStore, IGNORED_FILTER_COUNT_FIELDS, INFINITY_QUERY_TOKEN, InfinityQuery, InfinityQueryDirective, InfinityQueryTriggerDirective, LegacyQuery, LegacyQueryCreator, MAX_QUERY_DEVTOOLS_TOMBSTONES, MAX_UNUSED_ENTRIES, NumberArrayQueryField, ParseHttpErrorCodeToMessageDePipe, ParseHttpErrorCodeToMessageEnPipe, ParseHttpErrorCodeToTitleDePipe, ParseHttpErrorCodeToTitleEnPipe, QUERY_CLIENT_DEVTOOLS_TOKEN, QUERY_DEVTOOLS_FAULT_STATUSES, QUERY_DEVTOOLS_TOKEN_TTL_LIMIT, QUERY_PERSISTENCE_STORE_VERSION, QUERY_SYNC_PROTOCOL_VERSION, QUERY_VERSION, QueryClientFeatureType, QueryDevtoolsComponent, QueryDirective, QueryFeatureType, QueryField, QueryForm, QueryRuntimeErrorCode, QueryShortNamePipe, QueryStore, SERVER_ERROR_KIND, SERVER_VIOLATION_ERROR_KIND, SPEED_BUFFER_TIME_IN_MS, SearchQueryField, SortQueryField, StringArrayQueryField, V2BearerAuthProvider, V2Query, V2QueryClient, V2QueryCreator, addQueryContainerHandling, applyQueryDevtoolsOverrides, applyQueryDevtoolsTokenTtl, applyQueryFeatures, armAllQueryDevtoolsMocks, armQueryDevtoolsMock, armQueryDevtoolsOverrideTransfer, authExtractTokensResponseMissingAccessToken, authExtractTokensResponseMissingRefreshToken, authExtractTokensResponseNotObject, authProviderFeatureUsedMultipleTimes, booleanArrayQueryField, buildQueryCacheKey, buildQueryString, buildRoute, buildTimestampFromSeconds, canOverrideQueryDevtoolsTokenTtl, castQueryCreatorTypes, circularQueryDependency, circularQueryDependencyChecker, clearQueryDevtoolsArmedMocks, clearQueryDevtoolsFaults, clearQueryDevtoolsMockStore, clearQueryDevtoolsOverrideStore, clearQueryDevtoolsStore, clearQueryDevtoolsTokenTtl, clearQueryDevtoolsTombstones, clearRestoredQueryDevtoolsOverrides, collectLeafPaths, collectQueryDevtoolsSchemaComponents, collectQueryFormLinks, computeQueryAuthHeader, computeQueryBody, computeQueryHeaders, computeQueryMethod, computeQueryQueryParams, consumeSuppressQueryStackDevtools, contentfulGqlLikePaginationAdapter, countUnresolvedQueryDevtoolsOverrides, createAuthGuard, createBaseQuery, createBaseQueryCreator, createBearerAuthProvider, createDefaultRetryFn, createDeleteQuery, createExecuteFn, createGetQuery, createGqlExecuteFn, createGqlMutationViaGet, createGqlMutationViaPost, createGqlQuery, createGqlQueryCreator, createGqlQueryViaGet, createGqlQueryViaPost, createHttpRequest, createIndexedDbQueryPersistenceAdapter, createInfinityQueryConfig, createLegacyQueryCreator, createNoopQueryPersistenceAdapter, createPagedQueryStack, createPatchQuery, createPersistentAuthFeature, createPostQuery, createPutQuery, createQuery, createQueryClient, createQueryCollection, createQueryCollectionSignal, createQueryCollectionSubject, createQueryContext, createQueryCreator, createQueryDevtoolsFormLinks, createQueryDevtoolsFormLinksRecorder, createQueryDevtoolsOverrides, createQueryDevtoolsOverridesRecorder, createQueryDevtoolsStats, createQueryDevtoolsStatsRecorder, createQueryErrorResponse, createQueryFeature, createQueryInvalidationFilter, createQueryKeyLockManager, createQueryObject, createQueryPersistenceEngine, createQueryRepository, createQuerySnapshotFn, createQueryStack, createQuerySyncEngine, createQuerySyncTransport, createSecureDeleteQuery, createSecureExecuteFactory, createSecureExecuteFn, createSecureGetQuery, createSecureGqlExecuteFn, createSecureGqlMutationViaGet, createSecureGqlMutationViaPost, createSecureGqlQuery, createSecureGqlQueryCreator, createSecureGqlQueryViaGet, createSecureGqlQueryViaPost, createSecurePatchQuery, createSecurePostQuery, createSecurePutQuery, createSecureQuery, createSecureQueryCreator, createTrackingFeature, createWebSocketClient, dateArrayQueryField, dateQueryField, decryptBearer, deepFreeze, def, defineQueryForm, deleteQueryDevtoolsMock, describeQueryDevtoolsFeatures, detectContentTypeHeader, detectPaginationShape, dynLikePaginationAdapter, effectComputed, emptyQueryArgs, ethletePaginationAdapter, executeUntilSettled, extractExpiresInSeconds, extractFormViolations, extractHtmlErrorMessage, extractQuery, fakePaginationAdapter, filterFailure, filterNull, filterQueryStates, filterSuccess, forEachHeader, formatQueryDevtoolsDuration, generateQueryDevtoolsNumberPreset, generateQueryDevtoolsStringPreset, getBearerAuthProviderName, getDefaultHeaders, getQueryClientName, getQueryFeatureUsage, getResponseUrl, ggLikePaginationAdapter, gql, gqlDataPropertyMissingInResponse, hasHeader, hasQueryDevtoolsOverridesAtPath, htmlErrorPayload, htmlQueryErrorParser, ignoreAutoRefresh, initQueryDevtoolsFaults, initQueryDevtoolsMocks, initQueryDevtoolsOverridePersistence, initQueryDevtoolsSettings, injectInfinityQueryResponseDelay, injectQueryContext, insertFrom, invalidBaseRouteError, invalidBodyError, invalidRouteError, invalidStateInsideSecureExecuteFactory, isAutoRefresh, isBasicAuthProvider, isBearerAuthProvider, isClassValidatorError, isCreateGqlQueryOptions, isCustomHeaderAuthProvider, isDateShapedLeaf, isEmptyString, isGqlQueryConfig, isHtmlErrorPayload, isLegacyQuery, isNaN$1 as isNaN, isPageOutOfRangeError, isQuery, isQueryCollection, isQueryDevtoolsEnabled, isQueryDevtoolsFaultArmed, isQueryDevtoolsRequestInterceptionEnabled, isQueryErrorResponse, isQueryStateCancelled, isQueryStateFailure, isQueryStateLoading, isQueryStatePrepared, isQueryStateSuccess, isRequestError, isSymfonyError, isSymfonyFormViolationListError, isSymfonyListError, isSymfonyPagerfantaOutOfRangeError, isUnderInvalidatedUrl, legacyPrepareFallbackInjector, legacyPrepareWithoutInjectionContext, loadQueryDevtoolsSchema, mapToPaginated, mapViolationsToFormErrors, matchesQueryDevtoolsMockPattern, matchesQueryDevtoolsMockQuery, maybeExecute, measureQueryDevtoolsPayload, mergeHeaders, nestedEffect, noteQueryFormRead, numberArrayQueryField, pagedQueryStackNextPageCalledWithoutPreviousPage, pagedQueryStackPageBiggerThanTotalPages, pagedQueryStackPreviousPageCalledButAlreadyAtFirstPage, paginatedEntityValueUpdater, parseAllXhrResponseHeaders, parseHttpErrorCodeToMessageDe, parseHttpErrorCodeToMessageEn, parseHttpErrorCodeToTitleDe, parseHttpErrorCodeToTitleEn, parseQueryDevtoolsOverrideTransfer, parseQueryRoute, patchQueryDevtoolsTokenPayload, pathParamsMissingInRouteFunctionError, provideInfinityQueryResponseDelay, provideLegacyPrepareFallback, provideQueryClientForDevtools, provideQueryDevtools, queryArrayComputed, queryClientFeatureUsedMultipleTimes, queryComputed, queryComputedTillTruthy, queryDevtoolsAbout, queryDevtoolsArmedMocks, queryDevtoolsArmedMocksRestored, queryDevtoolsEntries, queryDevtoolsFaults, queryDevtoolsFaultsRestored, queryDevtoolsFnDetail, queryDevtoolsMockId, queryDevtoolsMocks, queryDevtoolsOverridePersistence, queryDevtoolsRequestPath, queryDevtoolsResponseHistory, queryDevtoolsRestoredOverridesScope, queryDevtoolsSchemaNames, queryDevtoolsSchemaRoutes, queryDevtoolsSchemaState, queryDevtoolsSettings, queryDevtoolsStorage, queryDevtoolsTokenTtls, queryErrorMessage, queryErrorMessages, queryExecute, queryFeatureUsedMultipleTimes, queryField, querySequence, querySequenceAlreadyRunning, queryStackTotalQueriesAndExpectedQueriesMismatch, queryStackWithArgsUsed, queryStackWithResponseUpdateUsed, queryStateAlreadyHasKeyError, queryStateCannotTransformError, queryStateDoesNotContainKeyError, queryStateErrorSignal, queryStateLoadingSignal, queryStateResponseSignal, queryStateSignal, readQueryDevtoolsStore, registerEthleteVersion, registerQueryDevtoolsEntry, registerQueryErrorParser, removeFrom, request, resetExecuteState, resetPageOnError, resolveInvalidationUrl, resolveQueryDevtoolsFault, resolveQueryDevtoolsFaultForAttempt, resolveQueryDevtoolsMock, resolveQueryDevtoolsMockForAttempt, restoredQueryDevtoolsOverrides, runDefaultQueryRetry, runQueryErrorParsers, saveQueryDevtoolsMock, searchQueryField, seedQueryDevtoolsSchemaBody, seedQueryDevtoolsSchemaRoute, serializeBody, serializeQueryDevtoolsOverrideTransfer, setDefaultQueryRetryFn, setQueryDevtoolsAppInfo, setQueryDevtoolsArmedMocksScope, setQueryDevtoolsFault, setQueryDevtoolsFaultResolver, setQueryDevtoolsFaultsScope, setQueryDevtoolsFormLinksFactory, setQueryDevtoolsMockResolver, setQueryDevtoolsOverridePersistence, setQueryDevtoolsOverridesFactory, setQueryDevtoolsOverridesScope, setQueryDevtoolsRegistrar, setQueryDevtoolsResponseHistory, setQueryDevtoolsSchemaLoader, setQueryDevtoolsSettings, setQueryDevtoolsStatsFactory, setQueryDevtoolsTokenPayloadPatcher, setQueryDevtoolsTokenTtl, setupQueryDependencies, setupQueryExecuteState, setupQueryState, shouldAutoExecuteGqlQuery, shouldAutoExecuteQuery, shouldCacheQuery, shouldRetryRequest, silenceMissingWithArgsFeatureErrorUsedButWithArgsPresent, skipPaginationPageParamCalculator, smartDuplicateArrayItem, snapshotQueryDevtoolsHandle, sortQueryField, splitQueryConfig, stringArrayQueryField, stringifyQueryRouteParts, sumQueryDevtoolsStats, suppressNextQueryStackDevtools, switchQueryCollectionState, switchQueryState, symfonyQueryErrorParser, takeUntilResponse, toQuerySignal, toQuerySubject, tokensNotAvailableInsideAuthAndExec, tombstoneOf, transformArrayResponse, transformExecStateToQueryState, transformGql, transformMethod, transformPaginatedResponse, transformToBoolean, transformToBooleanArray, transformToDate, transformToDateArray, transformToNumber, transformToNumberArray, transformToSort, transformToSortQueryParam, transformToString, transformToStringArray, uncacheableRequestHasAllowCacheParam, uncacheableRequestHasCacheKeyParam, unwrapQuerySyncMessage, v2BuildQueryCacheKey, v2ExtractExpiresInSeconds, v2ShouldCacheQuery, v2ShouldRetryRequest, validateWithQuery, validateWithV2Query, withArgs, withArgsQueryFeatureMissingButRouteIsFunction, withAuthenticationQuery, withAutoRefresh, withAutoRefreshUsedInManualQuery, withAutoRefreshUsedOnUnsupportedHttpMethod, withBearerAuthMultiTabSync, withDefaultRetry, withErrorHandling, withEthleteApiErrors, withHtmlErrorParsing, withInactivityLogout, withLogging, withLongPolling, withLongPollingUsedOnUnsupportedHttpMethod, withLongPollingUsedWithPolling, withMultiTabSync, withPageResetOnError, withPersistentAuth, withPolling, withPollingUsedOnUnsupportedHttpMethod, withQueryDevtoolsOverridePersistence, withQueryPersistence, withRefreshQuery, withResponseUpdate, withSuccessHandling, withSymfonyErrors, withTokenExpirationWarning, withTokenRevocation, withTracking, wrapAsObservableSignal, wrapQuerySyncMessage, writeQueryDevtoolsStore };
|
|
14274
|
+
export { BasicAuthProvider, BearerAuthFeatureType, BooleanArrayQueryField, CustomHeaderAuthProvider, DEFAULT_KEEP_UNUSED_FOR, DEFAULT_QUERY_PERSISTENCE_MAX_AGE, DEFAULT_QUERY_PERSISTENCE_MAX_ENTRIES, DEFAULT_QUERY_PERSISTENCE_VERSION, DEFAULT_QUERY_PERSISTENCE_WRITE_DELAY, DateArrayQueryField, DateQueryField, EMPTY_QUERY_DEVTOOLS_FAULT, EntityStore, IGNORED_FILTER_COUNT_FIELDS, INFINITY_QUERY_TOKEN, InfinityQuery, InfinityQueryDirective, InfinityQueryTriggerDirective, LegacyQuery, LegacyQueryCreator, MAX_QUERY_DEVTOOLS_TOMBSTONES, MAX_UNUSED_ENTRIES, NumberArrayQueryField, ParseHttpErrorCodeToMessageDePipe, ParseHttpErrorCodeToMessageEnPipe, ParseHttpErrorCodeToTitleDePipe, ParseHttpErrorCodeToTitleEnPipe, QUERY_CLIENT_DEVTOOLS_TOKEN, QUERY_DEVTOOLS_FAULT_STATUSES, QUERY_DEVTOOLS_TOKEN_TTL_LIMIT, QUERY_PERSISTENCE_STORE_VERSION, QUERY_SYNC_PROTOCOL_VERSION, QUERY_VERSION, QueryClientFeatureType, QueryDevtoolsComponent, QueryDirective, QueryFeatureType, QueryField, QueryForm, QueryRuntimeErrorCode, QueryShortNamePipe, QueryStore, SERVER_ERROR_KIND, SERVER_VIOLATION_ERROR_KIND, SPEED_BUFFER_TIME_IN_MS, SearchQueryField, SortQueryField, StringArrayQueryField, V2BearerAuthProvider, V2Query, V2QueryClient, V2QueryCreator, addQueryContainerHandling, applyQueryDevtoolsOverrides, applyQueryDevtoolsTokenTtl, applyQueryFeatures, armAllQueryDevtoolsMocks, armQueryDevtoolsMock, armQueryDevtoolsOverrideTransfer, authExtractTokensResponseMissingAccessToken, authExtractTokensResponseMissingRefreshToken, authExtractTokensResponseNotObject, authProviderFeatureUsedMultipleTimes, booleanArrayQueryField, buildQueryCacheKey, buildQueryString, buildRoute, buildTimestampFromSeconds, canOverrideQueryDevtoolsTokenTtl, castQueryCreatorTypes, circularQueryDependency, circularQueryDependencyChecker, clearQueryDevtoolsArmedMocks, clearQueryDevtoolsFaults, clearQueryDevtoolsMockStore, clearQueryDevtoolsOverrideStore, clearQueryDevtoolsStore, clearQueryDevtoolsTokenTtl, clearQueryDevtoolsTombstones, clearRestoredQueryDevtoolsOverrides, collectLeafPaths, collectQueryDevtoolsSchemaComponents, collectQueryFormLinks, computeQueryAuthHeader, computeQueryBody, computeQueryHeaders, computeQueryMethod, computeQueryQueryParams, consumeSuppressQueryStackDevtools, contentfulGqlLikePaginationAdapter, countUnresolvedQueryDevtoolsOverrides, createAuthGuard, createBaseQuery, createBaseQueryCreator, createBearerAuthProvider, createDefaultRetryFn, createDeleteQuery, createExecuteFn, createGetQuery, createGqlExecuteFn, createGqlMutationViaGet, createGqlMutationViaPost, createGqlQuery, createGqlQueryCreator, createGqlQueryViaGet, createGqlQueryViaPost, createHttpRequest, createIndexedDbQueryPersistenceAdapter, createInfinityQueryConfig, createLegacyQueryCreator, createNoopQueryPersistenceAdapter, createPagedQueryStack, createPatchQuery, createPersistentAuthFeature, createPostQuery, createPutQuery, createQuery, createQueryClient, createQueryCollection, createQueryCollectionSignal, createQueryCollectionSubject, createQueryContext, createQueryCreator, createQueryDevtoolsFormLinks, createQueryDevtoolsFormLinksRecorder, createQueryDevtoolsOverrides, createQueryDevtoolsOverridesRecorder, createQueryDevtoolsStats, createQueryDevtoolsStatsRecorder, createQueryErrorResponse, createQueryFeature, createQueryInvalidationFilter, createQueryKeyLockManager, createQueryObject, createQueryPersistenceEngine, createQueryRepository, createQuerySnapshotFn, createQueryStack, createQuerySyncEngine, createQuerySyncTransport, createSecureDeleteQuery, createSecureExecuteFactory, createSecureExecuteFn, createSecureGetQuery, createSecureGqlExecuteFn, createSecureGqlMutationViaGet, createSecureGqlMutationViaPost, createSecureGqlQuery, createSecureGqlQueryCreator, createSecureGqlQueryViaGet, createSecureGqlQueryViaPost, createSecurePatchQuery, createSecurePostQuery, createSecurePutQuery, createSecureQuery, createSecureQueryCreator, createTrackingFeature, createWebSocketClient, dateArrayQueryField, dateQueryField, decryptBearer, deepFreeze, def, defineQueryForm, deleteQueryDevtoolsMock, describeQueryDevtoolsFeatures, detectContentTypeHeader, detectPaginationShape, dynLikePaginationAdapter, effectComputed, emptyQueryArgs, ethletePaginationAdapter, executeUntilSettled, extractExpiresInSeconds, extractFormViolations, extractHtmlErrorMessage, extractQuery, fakePaginationAdapter, filterFailure, filterNull, filterQueryStates, filterSuccess, forEachHeader, formatQueryDevtoolsDuration, generateQueryDevtoolsNumberPreset, generateQueryDevtoolsSampleNumber, generateQueryDevtoolsStringPreset, getBearerAuthProviderName, getDefaultHeaders, getQueryClientName, getQueryFeatureUsage, getResponseUrl, ggLikePaginationAdapter, gql, gqlDataPropertyMissingInResponse, hasHeader, hasQueryDevtoolsOverridesAtPath, htmlErrorPayload, htmlQueryErrorParser, ignoreAutoRefresh, initQueryDevtoolsFaults, initQueryDevtoolsMocks, initQueryDevtoolsOverridePersistence, initQueryDevtoolsSettings, injectInfinityQueryResponseDelay, injectQueryContext, insertFrom, invalidBaseRouteError, invalidBodyError, invalidRouteError, invalidStateInsideSecureExecuteFactory, isAutoRefresh, isBasicAuthProvider, isBearerAuthProvider, isClassValidatorError, isCreateGqlQueryOptions, isCustomHeaderAuthProvider, isDateShapedLeaf, isEmptyString, isGqlQueryConfig, isHtmlErrorPayload, isLegacyQuery, isNaN$1 as isNaN, isPageOutOfRangeError, isQuery, isQueryCollection, isQueryDevtoolsEnabled, isQueryDevtoolsFaultArmed, isQueryDevtoolsRequestInterceptionEnabled, isQueryErrorResponse, isQueryStateCancelled, isQueryStateFailure, isQueryStateLoading, isQueryStatePrepared, isQueryStateSuccess, isRequestError, isSymfonyError, isSymfonyFormViolationListError, isSymfonyListError, isSymfonyPagerfantaOutOfRangeError, isUnderInvalidatedUrl, legacyPrepareFallbackInjector, legacyPrepareWithoutInjectionContext, loadQueryDevtoolsSchema, mapToPaginated, mapViolationsToFormErrors, matchesQueryDevtoolsMockPattern, matchesQueryDevtoolsMockQuery, maybeExecute, measureQueryDevtoolsPayload, mergeHeaders, nestedEffect, noteQueryFormRead, numberArrayQueryField, pagedQueryStackNextPageCalledWithoutPreviousPage, pagedQueryStackPageBiggerThanTotalPages, pagedQueryStackPreviousPageCalledButAlreadyAtFirstPage, paginatedEntityValueUpdater, parseAllXhrResponseHeaders, parseHttpErrorCodeToMessageDe, parseHttpErrorCodeToMessageEn, parseHttpErrorCodeToTitleDe, parseHttpErrorCodeToTitleEn, parseQueryDevtoolsOverrideTransfer, parseQueryRoute, patchQueryDevtoolsTokenPayload, pathParamsMissingInRouteFunctionError, provideInfinityQueryResponseDelay, provideLegacyPrepareFallback, provideQueryClientForDevtools, provideQueryDevtools, queryArrayComputed, queryClientFeatureUsedMultipleTimes, queryComputed, queryComputedTillTruthy, queryDevtoolsAbout, queryDevtoolsArmedMocks, queryDevtoolsArmedMocksRestored, queryDevtoolsEntries, queryDevtoolsFaults, queryDevtoolsFaultsRestored, queryDevtoolsFnDetail, queryDevtoolsMockId, queryDevtoolsMocks, queryDevtoolsOverridePersistence, queryDevtoolsRequestPath, queryDevtoolsResponseHistory, queryDevtoolsRestoredOverridesScope, queryDevtoolsSchemaNames, queryDevtoolsSchemaRoutes, queryDevtoolsSchemaState, queryDevtoolsSettings, queryDevtoolsStorage, queryDevtoolsTokenTtls, queryErrorMessage, queryErrorMessages, queryExecute, queryFeatureUsedMultipleTimes, queryField, querySequence, querySequenceAlreadyRunning, queryStackTotalQueriesAndExpectedQueriesMismatch, queryStackWithArgsUsed, queryStackWithResponseUpdateUsed, queryStateAlreadyHasKeyError, queryStateCannotTransformError, queryStateDoesNotContainKeyError, queryStateErrorSignal, queryStateLoadingSignal, queryStateResponseSignal, queryStateSignal, readQueryDevtoolsStore, registerEthleteVersion, registerQueryDevtoolsEntry, registerQueryErrorParser, removeFrom, request, resetExecuteState, resetPageOnError, resolveInvalidationUrl, resolveQueryDevtoolsFault, resolveQueryDevtoolsFaultForAttempt, resolveQueryDevtoolsMock, resolveQueryDevtoolsMockForAttempt, restoredQueryDevtoolsOverrides, runDefaultQueryRetry, runQueryErrorParsers, saveQueryDevtoolsMock, searchQueryField, seedQueryDevtoolsSchemaBody, seedQueryDevtoolsSchemaRoute, serializeBody, serializeQueryDevtoolsOverrideTransfer, setDefaultQueryRetryFn, setQueryDevtoolsAppInfo, setQueryDevtoolsArmedMocksScope, setQueryDevtoolsFault, setQueryDevtoolsFaultResolver, setQueryDevtoolsFaultsScope, setQueryDevtoolsFormLinksFactory, setQueryDevtoolsMockResolver, setQueryDevtoolsOverridePersistence, setQueryDevtoolsOverridesFactory, setQueryDevtoolsOverridesScope, setQueryDevtoolsRegistrar, setQueryDevtoolsResponseHistory, setQueryDevtoolsSchemaLoader, setQueryDevtoolsSettings, setQueryDevtoolsStatsFactory, setQueryDevtoolsTokenPayloadPatcher, setQueryDevtoolsTokenTtl, setupQueryDependencies, setupQueryExecuteState, setupQueryState, shouldAutoExecuteGqlQuery, shouldAutoExecuteQuery, shouldCacheQuery, shouldRetryRequest, silenceMissingWithArgsFeatureErrorUsedButWithArgsPresent, skipPaginationPageParamCalculator, smartDuplicateArrayItem, snapshotQueryDevtoolsHandle, sortQueryField, splitQueryConfig, stringArrayQueryField, stringifyQueryRouteParts, sumQueryDevtoolsStats, suppressNextQueryStackDevtools, switchQueryCollectionState, switchQueryState, symfonyQueryErrorParser, takeUntilResponse, toQuerySignal, toQuerySubject, tokensNotAvailableInsideAuthAndExec, tombstoneOf, transformArrayResponse, transformExecStateToQueryState, transformGql, transformMethod, transformPaginatedResponse, transformToBoolean, transformToBooleanArray, transformToDate, transformToDateArray, transformToNumber, transformToNumberArray, transformToSort, transformToSortQueryParam, transformToString, transformToStringArray, uncacheableRequestHasAllowCacheParam, uncacheableRequestHasCacheKeyParam, unwrapQuerySyncMessage, v2BuildQueryCacheKey, v2ExtractExpiresInSeconds, v2ShouldCacheQuery, v2ShouldRetryRequest, validateWithQuery, validateWithV2Query, withArgs, withArgsQueryFeatureMissingButRouteIsFunction, withAuthenticationQuery, withAutoRefresh, withAutoRefreshUsedInManualQuery, withAutoRefreshUsedOnUnsupportedHttpMethod, withBearerAuthMultiTabSync, withDefaultRetry, withErrorHandling, withEthleteApiErrors, withHtmlErrorParsing, withInactivityLogout, withLogging, withLongPolling, withLongPollingUsedOnUnsupportedHttpMethod, withLongPollingUsedWithPolling, withMultiTabSync, withPageResetOnError, withPersistentAuth, withPolling, withPollingUsedOnUnsupportedHttpMethod, withQueryDevtoolsOverridePersistence, withQueryPersistence, withRefreshQuery, withResponseUpdate, withSuccessHandling, withSymfonyErrors, withTokenExpirationWarning, withTokenRevocation, withTracking, wrapAsObservableSignal, wrapQuerySyncMessage, writeQueryDevtoolsStore };
|
|
14200
14275
|
//# sourceMappingURL=ethlete-query.mjs.map
|