@haddowg/json-api-client 1.31.0 → 1.33.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.
- package/dist/ajv.d.cts +1 -1
- package/dist/ajv.d.mts +1 -1
- package/dist/index.cjs +182 -9
- package/dist/index.d.cts +20 -2
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +20 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +178 -10
- package/dist/index.mjs.map +1 -1
- package/dist/{validate-CCLqE_2J.d.cts → validate-CzlJpZzQ.d.cts} +155 -43
- package/dist/validate-CzlJpZzQ.d.cts.map +1 -0
- package/dist/{validate-CCLqE_2J.d.mts → validate-CzlJpZzQ.d.mts} +155 -43
- package/dist/validate-CzlJpZzQ.d.mts.map +1 -0
- package/package.json +1 -1
- package/dist/validate-CCLqE_2J.d.cts.map +0 -1
- package/dist/validate-CCLqE_2J.d.mts.map +0 -1
package/dist/ajv.d.cts
CHANGED
package/dist/ajv.d.mts
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -596,7 +596,7 @@ function materialiseDocument(doc, ctx, linkage, primaryType, paginatorOverride)
|
|
|
596
596
|
if (doc.jsonapi !== void 0) env.jsonapi = doc.jsonapi;
|
|
597
597
|
if (doc.meta !== void 0) env.meta = doc.meta;
|
|
598
598
|
if (doc.links !== void 0) env.links = doc.links;
|
|
599
|
-
const index = buildIndex(doc.included);
|
|
599
|
+
const index = buildIndex(doc.included, linkage ? void 0 : doc.data);
|
|
600
600
|
const nodes = /* @__PURE__ */ new Map();
|
|
601
601
|
const build = (raw) => buildNode(raw, env, index, nodes, ctx);
|
|
602
602
|
const data = doc.data;
|
|
@@ -611,11 +611,18 @@ function materialiseDocument(doc, ctx, linkage, primaryType, paginatorOverride)
|
|
|
611
611
|
return build(raw);
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
|
-
/**
|
|
615
|
-
|
|
614
|
+
/**
|
|
615
|
+
* Index `included` and the primary resources by `type:id` so relationship linkage can be hydrated.
|
|
616
|
+
* A server never repeats a primary resource in `included`, so a member that links back to one
|
|
617
|
+
* (`tracks.album` on an album) is found only among the primary data.
|
|
618
|
+
*/
|
|
619
|
+
function buildIndex(included, primary) {
|
|
616
620
|
const index = /* @__PURE__ */ new Map();
|
|
617
|
-
|
|
618
|
-
|
|
621
|
+
const add = (raw) => {
|
|
622
|
+
if (isObject$2(raw) && typeof raw["type"] === "string" && typeof raw["id"] === "string") index.set(key(raw["type"], raw["id"]), raw);
|
|
623
|
+
};
|
|
624
|
+
for (const raw of included ?? []) add(raw);
|
|
625
|
+
for (const raw of Array.isArray(primary) ? primary : [primary]) add(raw);
|
|
619
626
|
return index;
|
|
620
627
|
}
|
|
621
628
|
const key = (type, id) => `${type}:${id}`;
|
|
@@ -633,6 +640,8 @@ function buildNode(raw, env, index, nodes, ctx) {
|
|
|
633
640
|
id: raw.id
|
|
634
641
|
};
|
|
635
642
|
nodes.set(id, node);
|
|
643
|
+
const cycleViews = [];
|
|
644
|
+
UNFINISHED.set(node, cycleViews);
|
|
636
645
|
if (raw.attributes) for (const [k, v] of Object.entries(raw.attributes)) node[k] = v;
|
|
637
646
|
const rels = raw.relationships ?? {};
|
|
638
647
|
const resType = ctx.descriptor[raw.type];
|
|
@@ -642,8 +651,78 @@ function buildNode(raw, env, index, nodes, ctx) {
|
|
|
642
651
|
node[name] = hydrateRelation(rel, relDesc?.cardinality, resolvePaginator(relatedPaginator(relDesc, ctx)), env, index, nodes, ctx);
|
|
643
652
|
}
|
|
644
653
|
attachResourceEnvelope(node, raw, env, rels, require_validate.nestedFieldset(ctx.fields?.[raw.type]));
|
|
654
|
+
UNFINISHED.delete(node);
|
|
655
|
+
for (const view of cycleViews) readLateRelations(view, node);
|
|
645
656
|
return node;
|
|
646
657
|
}
|
|
658
|
+
/** Nodes still being built, each with the per-edge views a relation cycle copied of it so far. */
|
|
659
|
+
const UNFINISHED = /* @__PURE__ */ new WeakMap();
|
|
660
|
+
/** A back-reference's relations that read through to its node; a property, read on every walk. */
|
|
661
|
+
const LATE = Symbol("late relations");
|
|
662
|
+
/** Nodes some back-reference reads relations through to. */
|
|
663
|
+
const READ_THROUGH = /* @__PURE__ */ new WeakSet();
|
|
664
|
+
/**
|
|
665
|
+
* A relation cycle copied `view` of `node` before the node's later relations were set. Each one it
|
|
666
|
+
* missed reads the node's slot as linkage: the view sits past the end of its include path, and a
|
|
667
|
+
* hydrated value would close the cycle. Non-enumerable, so a spread, `JSON.stringify` and a cache
|
|
668
|
+
* walk meet no cycle.
|
|
669
|
+
*/
|
|
670
|
+
function readLateRelations(view, node) {
|
|
671
|
+
const late = /* @__PURE__ */ new Set();
|
|
672
|
+
for (const name of Object.keys(node)) if (!Object.hasOwn(view, name)) {
|
|
673
|
+
late.add(name);
|
|
674
|
+
defineGetter(view, name, () => linkageOf(node[name]));
|
|
675
|
+
}
|
|
676
|
+
if (late.size > 0) {
|
|
677
|
+
Object.defineProperty(view, LATE, { value: late });
|
|
678
|
+
READ_THROUGH.add(node);
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
/** Each slot value's linkage, so a back-reference reads the same value until its node's changes. */
|
|
682
|
+
const LINKAGE = /* @__PURE__ */ new WeakMap();
|
|
683
|
+
/** A relation slot's value as linkage: identifier views, in an array keeping the slot's envelope. */
|
|
684
|
+
function linkageOf(slot) {
|
|
685
|
+
if (typeof slot !== "object" || slot === null) return slot;
|
|
686
|
+
if (LINKAGE.has(slot)) return LINKAGE.get(slot);
|
|
687
|
+
const value = Array.isArray(slot) ? withSlotEnvelope(slot, slot.map(identifierOf)) : identifierOf(slot);
|
|
688
|
+
LINKAGE.set(slot, value);
|
|
689
|
+
return value;
|
|
690
|
+
}
|
|
691
|
+
function identifierOf(member) {
|
|
692
|
+
if (!isObject$2(member) || typeof member["type"] !== "string" || typeof member["id"] !== "string") return member;
|
|
693
|
+
const meta = member.$edge?.meta;
|
|
694
|
+
return buildIdentifierView({
|
|
695
|
+
type: member["type"],
|
|
696
|
+
id: member["id"],
|
|
697
|
+
...meta !== void 0 ? { meta } : {}
|
|
698
|
+
});
|
|
699
|
+
}
|
|
700
|
+
/** `members` carrying `slot`'s non-index members (`$page`, `$links`, `$next()` and the rest). */
|
|
701
|
+
function withSlotEnvelope(slot, members) {
|
|
702
|
+
for (const name of Reflect.ownKeys(slot)) if (name !== "length" && !(typeof name === "string" && /^\d+$/.test(name))) Object.defineProperty(members, name, Object.getOwnPropertyDescriptor(slot, name));
|
|
703
|
+
return members;
|
|
704
|
+
}
|
|
705
|
+
/**
|
|
706
|
+
* The relations of `view` that read through to its node as linkage (a back-reference a relation
|
|
707
|
+
* cycle built before the node's later relations were set), or `undefined`. A cache layer leaves
|
|
708
|
+
* these slots alone: they follow the node.
|
|
709
|
+
* @internal
|
|
710
|
+
*/
|
|
711
|
+
function lateRelationsOf(view) {
|
|
712
|
+
return view[LATE];
|
|
713
|
+
}
|
|
714
|
+
/**
|
|
715
|
+
* Tell the client a cache layer wrote relation `name` of the cached copy `copy`: a node that
|
|
716
|
+
* back-references read the relation through to takes the value too, so they read it.
|
|
717
|
+
* @internal
|
|
718
|
+
*/
|
|
719
|
+
function relationWritten(copy, name, value) {
|
|
720
|
+
let at = SOURCES.get(copy);
|
|
721
|
+
while (at !== void 0) {
|
|
722
|
+
if (READ_THROUGH.has(at)) at[name] = value;
|
|
723
|
+
at = SOURCES.get(at);
|
|
724
|
+
}
|
|
725
|
+
}
|
|
647
726
|
/**
|
|
648
727
|
* Resolve one relationship's value: an included member hydrates to a per-edge view, a
|
|
649
728
|
* linked-but-not-included member stays an identifier, an empty to-one is `null`, and a
|
|
@@ -704,8 +783,10 @@ function attachResourceEnvelope(node, raw, env, rels, selection) {
|
|
|
704
783
|
*/
|
|
705
784
|
function buildEdgeView(node, member, relationEdge, pick) {
|
|
706
785
|
const view = {};
|
|
707
|
-
if (pick === void 0)
|
|
708
|
-
|
|
786
|
+
if (pick === void 0) {
|
|
787
|
+
Object.assign(view, node);
|
|
788
|
+
UNFINISHED.get(node)?.push(view);
|
|
789
|
+
} else for (const [k, v] of Object.entries(node)) if (k === "type" || k === "id" || pick(k)) view[k] = v;
|
|
709
790
|
SOURCES.set(view, node);
|
|
710
791
|
for (const k of [
|
|
711
792
|
"$meta",
|
|
@@ -715,8 +796,10 @@ function buildEdgeView(node, member, relationEdge, pick) {
|
|
|
715
796
|
"$raw",
|
|
716
797
|
"$nestedFieldset"
|
|
717
798
|
]) delegate(view, node, k);
|
|
718
|
-
|
|
719
|
-
|
|
799
|
+
define(view, "$rel", (name) => {
|
|
800
|
+
const rel = node.$rel;
|
|
801
|
+
return typeof rel === "function" ? rel.call(node, name) : void 0;
|
|
802
|
+
});
|
|
720
803
|
attachOverlayAccessors(view);
|
|
721
804
|
attachEdgeEnvelope(view, member, false, relationEdge);
|
|
722
805
|
return view;
|
|
@@ -2260,6 +2343,91 @@ async function loadAll(first, options = {}) {
|
|
|
2260
2343
|
return all;
|
|
2261
2344
|
}
|
|
2262
2345
|
//#endregion
|
|
2346
|
+
//#region src/mock.ts
|
|
2347
|
+
/** The members a linkage member carries beside its identity, which never become attributes. */
|
|
2348
|
+
const MEMBER_KEYS = /* @__PURE__ */ new Set([
|
|
2349
|
+
"type",
|
|
2350
|
+
"id",
|
|
2351
|
+
"meta",
|
|
2352
|
+
"$pivot"
|
|
2353
|
+
]);
|
|
2354
|
+
/**
|
|
2355
|
+
* Build a materialised resource from its plain data, as a read returns it: the relations the data
|
|
2356
|
+
* nests hydrate, the identifiers stay identifiers, and each member's `$pivot` lands on its linkage
|
|
2357
|
+
* `meta.pivot`, so `$pivot`, `$edge`, `$rel` and `$count` all work. For tests and stories; the
|
|
2358
|
+
* generated client binds it to its descriptor and types it.
|
|
2359
|
+
*/
|
|
2360
|
+
function mockResource(descriptor, data) {
|
|
2361
|
+
return materialise(mockDocument(descriptor, data), mockContext(descriptor));
|
|
2362
|
+
}
|
|
2363
|
+
/** {@link mockResource} for a collection of type `type`, as a list read returns it. */
|
|
2364
|
+
function mockCollection(descriptor, type, data) {
|
|
2365
|
+
return materialise(mockDocument(descriptor, data), mockContext(descriptor), false, type);
|
|
2366
|
+
}
|
|
2367
|
+
function mockContext(descriptor) {
|
|
2368
|
+
return {
|
|
2369
|
+
descriptor,
|
|
2370
|
+
navigate: () => Promise.reject(/* @__PURE__ */ new Error("A mock resource has no server to follow its links to."))
|
|
2371
|
+
};
|
|
2372
|
+
}
|
|
2373
|
+
/** The JSON:API document plain data stands for: the primary data, and every nested resource in `included`. */
|
|
2374
|
+
function mockDocument(descriptor, data) {
|
|
2375
|
+
const primary = /* @__PURE__ */ new Set();
|
|
2376
|
+
const included = /* @__PURE__ */ new Map();
|
|
2377
|
+
const toResource = (value) => {
|
|
2378
|
+
const relations = descriptor[value.type]?.relations ?? {};
|
|
2379
|
+
const attributes = {};
|
|
2380
|
+
const relationships = {};
|
|
2381
|
+
for (const [key, member] of Object.entries(value)) {
|
|
2382
|
+
if (key === "type" || key === "id") continue;
|
|
2383
|
+
if (key in relations) {
|
|
2384
|
+
if (member !== void 0) relationships[key] = { data: linkageOf(member) };
|
|
2385
|
+
} else if (key !== "meta" && key !== "$pivot") attributes[key] = member;
|
|
2386
|
+
}
|
|
2387
|
+
return {
|
|
2388
|
+
type: value.type,
|
|
2389
|
+
id: value.id,
|
|
2390
|
+
...Object.keys(attributes).length > 0 ? { attributes } : {},
|
|
2391
|
+
...Object.keys(relationships).length > 0 ? { relationships } : {},
|
|
2392
|
+
...value["meta"] !== void 0 ? { meta: value["meta"] } : {}
|
|
2393
|
+
};
|
|
2394
|
+
};
|
|
2395
|
+
const linkageOf = (value) => {
|
|
2396
|
+
if (value === null) return null;
|
|
2397
|
+
if (Array.isArray(value)) return value.map((member) => identifierOf(member));
|
|
2398
|
+
return identifierOf(value);
|
|
2399
|
+
};
|
|
2400
|
+
const identifierOf = (member) => {
|
|
2401
|
+
const id = `${member.type}:${member.id}`;
|
|
2402
|
+
if (isFullResource(member) && !primary.has(id) && !included.has(id)) {
|
|
2403
|
+
included.set(id, {});
|
|
2404
|
+
included.set(id, toResource(member));
|
|
2405
|
+
}
|
|
2406
|
+
const pivot = member.$pivot;
|
|
2407
|
+
const meta = member["meta"];
|
|
2408
|
+
const linkageMeta = pivot === void 0 ? meta : {
|
|
2409
|
+
...meta,
|
|
2410
|
+
pivot
|
|
2411
|
+
};
|
|
2412
|
+
return {
|
|
2413
|
+
type: member.type,
|
|
2414
|
+
id: member.id,
|
|
2415
|
+
...linkageMeta !== void 0 ? { meta: linkageMeta } : {}
|
|
2416
|
+
};
|
|
2417
|
+
};
|
|
2418
|
+
const list = Array.isArray(data) ? data : [data];
|
|
2419
|
+
for (const value of list) primary.add(`${value.type}:${value.id}`);
|
|
2420
|
+
const resources = list.map(toResource);
|
|
2421
|
+
return {
|
|
2422
|
+
data: Array.isArray(data) ? resources : resources[0],
|
|
2423
|
+
...included.size > 0 ? { included: [...included.values()] } : {}
|
|
2424
|
+
};
|
|
2425
|
+
}
|
|
2426
|
+
/** Whether a relation member carries more than its identity, so it stands for an included resource. */
|
|
2427
|
+
function isFullResource(member) {
|
|
2428
|
+
return Object.keys(member).some((key) => !MEMBER_KEYS.has(key));
|
|
2429
|
+
}
|
|
2430
|
+
//#endregion
|
|
2263
2431
|
exports.ATOMIC_EXT = ATOMIC_EXT;
|
|
2264
2432
|
exports.ATOMIC_MEDIA_TYPE = ATOMIC_MEDIA_TYPE;
|
|
2265
2433
|
exports.CANONICAL_PAGE_KEYS = CANONICAL_PAGE_KEYS;
|
|
@@ -2285,10 +2453,14 @@ exports.isAccepted = isAccepted;
|
|
|
2285
2453
|
exports.isActionLocation = isActionLocation;
|
|
2286
2454
|
exports.isMaterialised = isMaterialised;
|
|
2287
2455
|
exports.isPolymorphic = isPolymorphic;
|
|
2456
|
+
exports.lateRelationsOf = lateRelationsOf;
|
|
2288
2457
|
exports.listFilterMatcher = listFilterMatcher;
|
|
2289
2458
|
exports.loadAll = loadAll;
|
|
2290
2459
|
exports.materialise = materialise;
|
|
2291
2460
|
exports.mediaType = mediaType;
|
|
2461
|
+
exports.mockCollection = mockCollection;
|
|
2462
|
+
exports.mockDocument = mockDocument;
|
|
2463
|
+
exports.mockResource = mockResource;
|
|
2292
2464
|
exports.nestedFieldset = require_validate.nestedFieldset;
|
|
2293
2465
|
exports.nextPageParams = nextPageParams;
|
|
2294
2466
|
exports.nextRequestStamp = nextRequestStamp;
|
|
@@ -2297,6 +2469,7 @@ exports.prevPageParams = prevPageParams;
|
|
|
2297
2469
|
exports.readActionLocation = readActionLocation;
|
|
2298
2470
|
exports.relatedPaginator = relatedPaginator;
|
|
2299
2471
|
exports.relatedPaginatorKind = relatedPaginatorKind;
|
|
2472
|
+
exports.relationWritten = relationWritten;
|
|
2300
2473
|
exports.remapPointer = remapPointer;
|
|
2301
2474
|
exports.remapRelationshipPointer = remapRelationshipPointer;
|
|
2302
2475
|
exports.requestStampOf = requestStampOf;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as DeleteArgs, $i as isPolymorphic, $n as AtomicResult, $r as PageOf, $t as RelationPageParams, A as TransportResponse, Ai as InputMediaKind, An as UpdateMethod, Ar as identifierViewOf, At as OperationCodes, B as Client, Bi as RawMediaKind, Bn as ActionLocation, Br as JSON_API_MEDIA_TYPE, Bt as ReadResult, C as ClientOptions, Ci as Cardinality, Cn as TakesVerb, Cr as PendingMember, Ct as MemberName, D as JsonApiTransport, Di as DocumentMetaOperation, Dn as TypedRelatedReadQuery, Dr as ResourceEnvelope, Dt as MutationMetaOf, E as createClient, Ei as DocumentMetaDescriptor, En as TypedReadQuery, Er as RelationView, Et as MetaOption, F as ActionCallOptions, Fi as PaginatorDescriptor, Fn as WithLinks, Fr as relatedPaginatorKind, Ft as PendingEdgeMethods, G as CountToken, Gi as RelationMutations, Gn as AtomicDeleteHandle, Gr as NestedFieldset, Gt as RelatedQuery, H as Collection, Hi as RelatedQueryDescriptor, Hn as readActionLocation, Hr as MediaTypeParams, Ht as RelatedIncludedResource, I as ActionsAccessor, Ii as PaginatorKind, In as WritableRelationName, Ir as relationWritten, It as PendingPivotOf, J as CreateInput, Ji as ResourceDescriptor, Jn as AtomicRecorder, Jr as ExactPageParams, Jt as RelatedQueryRelation, K as CountedRelationName, Ki as RequestMetaOperation, Kn as AtomicHandle, Kr as nestedFieldset, Kt as RelatedQueryEntry, L as AtomicResultOf, Li as PaginatorRole, Ln as WriteOptions, Lr as setMaterialisedOverlay, Lt as PivotFieldsOf, M as AcceptedJob, Mi as MenuDescriptor, Mn as WaitValue, Mr as lateRelationsOf, Mt as OperationMeta, N as AcceptedMeta, Ni as MetaLiteral, Nn as WaitedWriteResult, Nr as materialise, Nt as OptionsArg, O as TransportRawBody, Oi as FilterFamilyDescriptor, On as TypedRelationReadQuery, Or as ResourceLinks, Ot as MutationVerb, P as AcceptedOf, Pi as OperationExamples, Pn as WithDocumentMeta, Pr as relatedPaginator, Pt as PendingEdge, Q as DefaultWriteAttributes, Qi as StrategyDescriptor, Qn as AtomicRelationshipRecorder, Qr as PageMeta, Qt as RelationName, R as BinaryBody, Ri as PaginatorStrategy, Rn as WritePivotOf, Rr as ATOMIC_EXT, Rt as PivotInput, S as serializeQuery, Si as AtomicDescriptor, Sn as SortToken, Sr as PendingCreate, St as LooseRelatedQueryEntry, T as HeadersInit, Ti as CountableDescriptor, Tn as TypeName, Tr as RelationArrayEnvelope, Tt as MetaObject, U as CollectionMeta, Ui as RelatedQueryOperation, Un as AtomicCreateHandle, Ur as ResourceIdentifier, Ut as RelatedIncludedType, V as ClientTypes, Vi as RawOutputMedia, Vn as isActionLocation, Vr as LocalIdentifier, Vt as ReadableRelationName, W as CountAccessor, Wi as RelationDescriptor, Wn as AtomicCreateInput, Wr as mediaType, Wt as RelatedMeta, X as DefaultActionTypes, Xi as ResourceMetaDescriptor, Xn as AtomicRelationshipArgs, Xr as PageKeys, Xt as RelationCollection, Y as CreateMethod, Yi as ResourceExamples, Yn as AtomicRef, Yr as Page, Yt as RelatedReadRelatedQuery, Z as DefaultAttributes, Zi as SortFamilyDescriptor, Zn as AtomicRelationshipHandle, Zr as PageLinks, Zt as RelationFilterQuery, _ as RawResponseType, _i as ActionOutput, _n as ResourceWriteOperation, _r as Link, _t as LinkageRef, a as ValidationOption, ai as prevPageParams, an as RelationshipMembers, ar as InputSchemas, at as ErrorCodeOf, b as executeRaw, bi as ApiDescriptor, bn as SingletonUpdateInput, br as MaterialisedOverlay, bt as ListPageParams, c as assertJsonApiDocument, ci as PollOptions, cn as ResourceAccessors, cr as StandardSchemaIssue, ct as FilterKey, d as sparseSchemas, di as parseRetryAfter, dn as ResourceHandle, dr as withInputCheck, dt as IdentifierMember, ei as PageParams, en as RelationPaginator, er as AtomicResults, et as DeleteResult, f as validateDocument, fi as AcceptedDescriptor, fn as ResourceMetaOf, fr as ArrayEnvelope, ft as IncludePath, g as JsonApiRequest, gi as ActionLocationDescriptor, gn as ResourceWriteMetaInput, gr as EdgeMember, gt as IsSingleton, h as JsonApiContext, hi as ActionInput, hn as ResourceWriteMeta, hr as EdgeEnvelope, ht as IncludedType, i as ValidationContext, ii as nextPageParams, in as RelationshipAccessor, ir as InputCheck, it as ErrorCodeCarrier, j as fetchTransport, ji as MediaExamples, jn as WaitOptions, jr as isMaterialised, jt as OperationErrorCodeOf, k as TransportRequest, ki as InputMedia, kn as UpdateInput, kr as edgeViewOf, kt as NestedFieldsetMember, l as resolveValidator, li as PollTimeoutError, ln as ResourceCountToken, lr as StandardSchemaResult, lt as FilterQuery, m as ExecutedResponse, mi as ActionDescriptor, mn as ResourceObjectView, mr as Edge, mt as IncludedResource, n as SchemaMap, ni as ResolvedPaginator, nn as RelationRequestMetaOf, nr as AtomicUpdateInput, nt as EdgeMembers, o as Validator, oi as resolvePaginator, on as RequestMetaOf, or as InputValidationError, ot as FieldSelectionMap, p as Document, pi as AcceptedOperation, pn as ResourceMethods, pr as DocumentEnvelope, pt as IncludedRelations, q as CreateAttributesOf, qi as ResourceCountOperation, qn as AtomicOperationArgs, qr as CANONICAL_PAGE_KEYS, qt as RelatedQueryParam, r as ValidationConfig, ri as TypedPage, rn as RelationSortQuery, rr as runAtomic, rt as EdgeMethods, s as WireResource, si as Accepted, sn as RequiresRequestMeta, sr as StandardSchema, st as FieldsMap, t as ResolvedValidator, ti as PageParamsOf, tn as RelationReadQuery, tr as AtomicUpdateHandle, tt as DocumentMeta, u as sparseSchema, ui as isAccepted, un as ResourceDataOf, ur as inputFailure, ut as HydratedMember, v as ReadQuery, vi as ActionScope, vn as SingleReadQuery, vr as LinkObject, vt as ListFilterMember, w as HANDLE_RESERVED, wi as ClientIdPolicy, wn as TypeAccessor, wr as PendingPlacement, wt as MemberTypeOf, x as executeResponse, xi as ApiExamples, xn as SortQuery, xr as NavigateOptions, xt as LooseRelatedQuery, y as execute, yi as AdditionalMembersDescriptor, yn as SingletonAccessor, yr as MaterialiseContext, yt as ListMethods, z as BinaryResponseType, zi as PivotDescriptor, zn as WriteResult, zr as ATOMIC_MEDIA_TYPE, zt as ReadAttributesOf } from "./validate-CzlJpZzQ.cjs";
|
|
2
2
|
|
|
3
3
|
//#region src/error-shared.d.ts
|
|
4
4
|
/** The {@link JsonApiError} members of `E`, read without distributing over a union such as a query's error. */
|
|
@@ -230,6 +230,24 @@ interface LoadAllOptions {
|
|
|
230
230
|
*/
|
|
231
231
|
declare function loadAll<T>(first: Collection<T> | PromiseLike<Collection<T>>, options?: LoadAllOptions): Promise<T[]>;
|
|
232
232
|
//#endregion
|
|
233
|
+
//#region src/mock.d.ts
|
|
234
|
+
/** One resource as plain data: `type`, `id`, attributes, and relation values by name. */
|
|
235
|
+
interface MockData {
|
|
236
|
+
readonly type: string;
|
|
237
|
+
readonly id: string;
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* Build a materialised resource from its plain data, as a read returns it: the relations the data
|
|
241
|
+
* nests hydrate, the identifiers stay identifiers, and each member's `$pivot` lands on its linkage
|
|
242
|
+
* `meta.pivot`, so `$pivot`, `$edge`, `$rel` and `$count` all work. For tests and stories; the
|
|
243
|
+
* generated client binds it to its descriptor and types it.
|
|
244
|
+
*/
|
|
245
|
+
declare function mockResource(descriptor: ApiDescriptor, data: MockData): object;
|
|
246
|
+
/** {@link mockResource} for a collection of type `type`, as a list read returns it. */
|
|
247
|
+
declare function mockCollection(descriptor: ApiDescriptor, type: string, data: readonly MockData[]): object;
|
|
248
|
+
/** The JSON:API document plain data stands for: the primary data, and every nested resource in `included`. */
|
|
249
|
+
declare function mockDocument(descriptor: ApiDescriptor, data: MockData | readonly MockData[]): Document;
|
|
250
|
+
//#endregion
|
|
233
251
|
//#region src/request-stamp.d.ts
|
|
234
252
|
/**
|
|
235
253
|
* Request stamps: when the request behind a result started, relative to every other request made in
|
|
@@ -416,5 +434,5 @@ declare function withRemappedAtomicPaths(error: JsonApiError, descriptor: ApiDes
|
|
|
416
434
|
hasPivot: boolean;
|
|
417
435
|
} | undefined): JsonApiError;
|
|
418
436
|
//#endregion
|
|
419
|
-
export { ATOMIC_EXT, ATOMIC_MEDIA_TYPE, type Accepted, AcceptedDescriptor, AcceptedJob, AcceptedMeta, AcceptedOf, AcceptedOperation, ActionCallOptions, ActionDescriptor, ActionInput, ActionLocation, ActionLocationDescriptor, ActionOutput, ActionScope, ActionsAccessor, AdditionalMembersDescriptor, ApiDescriptor, ApiExamples, ArrayEnvelope, AtomicCreateHandle, AtomicCreateInput, AtomicDeleteHandle, AtomicDescriptor, AtomicHandle, AtomicOperationArgs, AtomicRecorder, AtomicRef, AtomicRelationshipArgs, AtomicRelationshipHandle, AtomicRelationshipRecorder, AtomicResult, AtomicResultOf, AtomicResults, AtomicUpdateHandle, AtomicUpdateInput, BinaryBody, BinaryResponseType, CANONICAL_PAGE_KEYS, Cardinality, Client, ClientIdPolicy, ClientOptions, CodedErrorObject, Collection, CollectionMeta, CountAccessor, CountToken, CountableDescriptor, CountedRelationName, CreateAttributesOf, CreateInput, CreateMethod, DefaultActionTypes, DefaultAttributes, DefaultWriteAttributes, DeleteArgs, DeleteResult, Document, DocumentEnvelope, DocumentMeta, DocumentMetaDescriptor, DocumentMetaOperation, Edge, EdgeEnvelope, EdgeMember, EdgeMembers, ErrorCodeCarrier, ErrorCodeGuard, ErrorCodeOf, ErrorCodesFor, ErrorFinder, ExactPageParams, ExecutedResponse, FieldError, FieldErrors, FieldSelectionMap, FieldsMap, FilterFamilyDescriptor, FilterKey, FilterQuery, FilterSpec, HANDLE_RESERVED, HeadersInit, HydratedMember, IdentifierMember, IncludePath, IncludedRelations, IncludedResource, IncludedType, InputCheck, InputMedia, InputMediaKind, InputPath, InputSchemas, InputValidationError, IsSingleton, JSON_API_MEDIA_TYPE, JsonApiContext, JsonApiError, JsonApiErrorObject, JsonApiRequest, JsonApiTransport, Link, LinkObject, LinkageRef, ListFilterMember, ListPageParams, LoadAllOptions, LocalIdentifier, LooseRelatedQuery, LooseRelatedQueryEntry, MaterialiseContext, MaterialisedOverlay, MediaExamples, MediaTypeParams, MemberName, MemberTypeOf, MenuDescriptor, MetaLiteral, MetaObject, MetaOption, MutationMetaOf, MutationVerb, NavigateOptions, type NestedFieldset, NestedFieldsetMember, OperationCodes, OperationErrorCodeOf, OperationExamples, OperationMeta, OptionsArg, Page, PageKeys, PageLinks, PageMeta, PageOf, PageParams, PageParamsOf, PaginatorDescriptor, PaginatorKind, PaginatorRole, PaginatorStrategy, PathSegment, PendingCreate, PendingEdge, PendingMember, PendingPivotOf, PendingPlacement, PivotDescriptor, PivotFieldsOf, PivotInput, type PollOptions, PollTimeoutError, RawMediaKind, RawOutputMedia, RawResponseType, ReadAttributesOf, ReadQuery, ReadResult, ReadableRelationName, RelatedIncludedResource, RelatedIncludedType, RelatedMeta, RelatedQuery, RelatedQueryDescriptor, RelatedQueryEntry, RelatedQueryOperation, RelatedQueryParam, RelatedQueryRelation, RelatedReadRelatedQuery, RelationArrayEnvelope, RelationCollection, RelationDescriptor, RelationFilterQuery, RelationMutations, RelationName, RelationPageParams, RelationPaginator, RelationReadQuery, RelationRequestMetaOf, RelationSortQuery, RelationView, RelationshipAccessor, RelationshipDocument, RelationshipMembers, RequestMetaOf, RequestMetaOperation, RequiresRequestMeta, ResolvedPaginator, ResolvedValidator, ResourceAccessors, ResourceCountOperation, ResourceCountToken, ResourceDescriptor, ResourceEnvelope, ResourceExamples, ResourceHandle, ResourceIdentifier, ResourceLinks, ResourceMetaDescriptor, ResourceMetaOf, ResourceObjectView, ResourceWriteMeta, ResourceWriteOperation, SchemaMap, SingleReadQuery, SingletonAccessor, SingletonUpdateInput, SortFamilyDescriptor, SortQuery, SortToken, StandardSchema, StandardSchemaIssue, StandardSchemaResult, StrategyDescriptor, StructuralGuardError, TakesVerb, ToDocumentOptions, TransportRawBody, TransportRequest, TransportResponse, TypeAccessor, TypeName, TypedPage, TypedReadQuery, TypedRelatedReadQuery, TypedRelationReadQuery, UpdateInput, UpdateMethod, ValidationConfig, ValidationContext, ValidationOption, Validator, WaitOptions, WaitValue, WaitedWriteResult, WireResource, WithDocumentMeta, WithLinks, WritableRelationName, WriteDocument, WriteError, WriteOptions, WritePivotOf, WriteResult, assertJsonApiDocument, createClient, edgeViewOf, execute, executeRaw, executeResponse, fetchTransport, fieldErrors, findError, hasErrorCode, identifierViewOf, inputFailure, isAccepted, isActionLocation, isMaterialised, isPolymorphic, listFilterMatcher, loadAll, materialise, mediaType, nestedFieldset, nextPageParams, nextRequestStamp, parseRetryAfter, prevPageParams, readActionLocation, relatedPaginator, relatedPaginatorKind, remapPointer, remapRelationshipPointer, requestStampOf, resolvePaginator, resolveValidator, runAtomic, serializeQuery, setMaterialisedOverlay, sparseSchema, sparseSchemas, toDocument, toRelationshipDocument, validateDocument, withInputCheck, withRemappedAtomicPaths, withRemappedDocumentMetaPaths, withRemappedPaths, withRemappedRelationshipPaths, withTopLevelMeta };
|
|
437
|
+
export { ATOMIC_EXT, ATOMIC_MEDIA_TYPE, type Accepted, AcceptedDescriptor, AcceptedJob, AcceptedMeta, AcceptedOf, AcceptedOperation, ActionCallOptions, ActionDescriptor, ActionInput, ActionLocation, ActionLocationDescriptor, ActionOutput, ActionScope, ActionsAccessor, AdditionalMembersDescriptor, ApiDescriptor, ApiExamples, ArrayEnvelope, AtomicCreateHandle, AtomicCreateInput, AtomicDeleteHandle, AtomicDescriptor, AtomicHandle, AtomicOperationArgs, AtomicRecorder, AtomicRef, AtomicRelationshipArgs, AtomicRelationshipHandle, AtomicRelationshipRecorder, AtomicResult, AtomicResultOf, AtomicResults, AtomicUpdateHandle, AtomicUpdateInput, BinaryBody, BinaryResponseType, CANONICAL_PAGE_KEYS, Cardinality, Client, ClientIdPolicy, ClientOptions, ClientTypes, CodedErrorObject, Collection, CollectionMeta, CountAccessor, CountToken, CountableDescriptor, CountedRelationName, CreateAttributesOf, CreateInput, CreateMethod, DefaultActionTypes, DefaultAttributes, DefaultWriteAttributes, DeleteArgs, DeleteResult, Document, DocumentEnvelope, DocumentMeta, DocumentMetaDescriptor, DocumentMetaOperation, Edge, EdgeEnvelope, EdgeMember, EdgeMembers, EdgeMethods, ErrorCodeCarrier, ErrorCodeGuard, ErrorCodeOf, ErrorCodesFor, ErrorFinder, ExactPageParams, ExecutedResponse, FieldError, FieldErrors, FieldSelectionMap, FieldsMap, FilterFamilyDescriptor, FilterKey, FilterQuery, FilterSpec, HANDLE_RESERVED, HeadersInit, HydratedMember, IdentifierMember, IncludePath, IncludedRelations, IncludedResource, IncludedType, InputCheck, InputMedia, InputMediaKind, InputPath, InputSchemas, InputValidationError, IsSingleton, JSON_API_MEDIA_TYPE, JsonApiContext, JsonApiError, JsonApiErrorObject, JsonApiRequest, JsonApiTransport, Link, LinkObject, LinkageRef, ListFilterMember, ListMethods, ListPageParams, LoadAllOptions, LocalIdentifier, LooseRelatedQuery, LooseRelatedQueryEntry, MaterialiseContext, MaterialisedOverlay, MediaExamples, MediaTypeParams, MemberName, MemberTypeOf, MenuDescriptor, MetaLiteral, MetaObject, MetaOption, MockData, MutationMetaOf, MutationVerb, NavigateOptions, type NestedFieldset, NestedFieldsetMember, OperationCodes, OperationErrorCodeOf, OperationExamples, OperationMeta, OptionsArg, Page, PageKeys, PageLinks, PageMeta, PageOf, PageParams, PageParamsOf, PaginatorDescriptor, PaginatorKind, PaginatorRole, PaginatorStrategy, PathSegment, PendingCreate, PendingEdge, PendingEdgeMethods, PendingMember, PendingPivotOf, PendingPlacement, PivotDescriptor, PivotFieldsOf, PivotInput, type PollOptions, PollTimeoutError, RawMediaKind, RawOutputMedia, RawResponseType, ReadAttributesOf, ReadQuery, ReadResult, ReadableRelationName, RelatedIncludedResource, RelatedIncludedType, RelatedMeta, RelatedQuery, RelatedQueryDescriptor, RelatedQueryEntry, RelatedQueryOperation, RelatedQueryParam, RelatedQueryRelation, RelatedReadRelatedQuery, RelationArrayEnvelope, RelationCollection, RelationDescriptor, RelationFilterQuery, RelationMutations, RelationName, RelationPageParams, RelationPaginator, RelationReadQuery, RelationRequestMetaOf, RelationSortQuery, RelationView, RelationshipAccessor, RelationshipDocument, RelationshipMembers, RequestMetaOf, RequestMetaOperation, RequiresRequestMeta, ResolvedPaginator, ResolvedValidator, ResourceAccessors, ResourceCountOperation, ResourceCountToken, ResourceDataOf, ResourceDescriptor, ResourceEnvelope, ResourceExamples, ResourceHandle, ResourceIdentifier, ResourceLinks, ResourceMetaDescriptor, ResourceMetaOf, ResourceMethods, ResourceObjectView, ResourceWriteMeta, ResourceWriteMetaInput, ResourceWriteOperation, SchemaMap, SingleReadQuery, SingletonAccessor, SingletonUpdateInput, SortFamilyDescriptor, SortQuery, SortToken, StandardSchema, StandardSchemaIssue, StandardSchemaResult, StrategyDescriptor, StructuralGuardError, TakesVerb, ToDocumentOptions, TransportRawBody, TransportRequest, TransportResponse, TypeAccessor, TypeName, TypedPage, TypedReadQuery, TypedRelatedReadQuery, TypedRelationReadQuery, UpdateInput, UpdateMethod, ValidationConfig, ValidationContext, ValidationOption, Validator, WaitOptions, WaitValue, WaitedWriteResult, WireResource, WithDocumentMeta, WithLinks, WritableRelationName, WriteDocument, WriteError, WriteOptions, WritePivotOf, WriteResult, assertJsonApiDocument, createClient, edgeViewOf, execute, executeRaw, executeResponse, fetchTransport, fieldErrors, findError, hasErrorCode, identifierViewOf, inputFailure, isAccepted, isActionLocation, isMaterialised, isPolymorphic, lateRelationsOf, listFilterMatcher, loadAll, materialise, mediaType, mockCollection, mockDocument, mockResource, nestedFieldset, nextPageParams, nextRequestStamp, parseRetryAfter, prevPageParams, readActionLocation, relatedPaginator, relatedPaginatorKind, relationWritten, remapPointer, remapRelationshipPointer, requestStampOf, resolvePaginator, resolveValidator, runAtomic, serializeQuery, setMaterialisedOverlay, sparseSchema, sparseSchemas, toDocument, toRelationshipDocument, validateDocument, withInputCheck, withRemappedAtomicPaths, withRemappedDocumentMetaPaths, withRemappedPaths, withRemappedRelationshipPaths, withTopLevelMeta };
|
|
420
438
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/error-shared.ts","../src/errors.ts","../src/field-errors.ts","../src/filters.ts","../src/load-all.ts","../src/request-stamp.ts","../src/serialize-write.ts"],"mappings":";;;;KAGY,cAAA,MAAoB,OAAA,CAAQ,WAAA,CAAY,CAAA,GAAI,YAAA;AAAxD;AAAA,KAGY,OAAA,yCAAgD,cAAA,CAAe,CAAA,qBACvE,QAAA,GACA,cAAA,CAAe,CAAA,UAAW,YAAA,YACxB,CAAA,GACA,QAAA;;;;;AAPN;;;;;UCMiB,kBAAA;EACf,EAAA;EACA,MAAA;EACA,IAAA,GAAO,CAAA;EACP,KAAA;EACA,MAAA;EACA,MAAA;IAAW,OAAA;IAAkB,SAAA;IAAoB,MAAA;EAAA;EACjD,IAAA,GAAO,MAAM;EDVI;;;;;ECgBjB,IAAA;EDdE;;;;;ECoBF,OAAA;AAAA;;;;;;;;cAUW,oBAAA,SAA6B,KAAK;cACjC,OAAA;AAAA;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AAA,KAGhB,WAAA,yBAAoC,CAAA,WAAY,MAAA,iCAE5B,CAAA,IAClB,CAAA;EAAc,MAAA;AAAA,KACb,CAAA,+CAC+B,CAAA,kCAG7B,QAAA,CAAS,CAAA,EAAG,MAAA,CAAO,CAAA;;;;ADhEpB;AAUT;;iBC8DgB,WAAA,yBACd,KAAA,EAAO,CAAA,GACN,WAAA,EAAa,CAAA,oBAAqB,OAAA,CAAQ,CAAA,IAAK,CAAA,EAAG,OAAA,CAAQ,CAAA;;;;UCnG5C,UAAA;EACf,UAAA;EACA,WAAA;EACA,cAAA,YAA0B,sBAAsB;AAAA;;;;;;;iBASlC,iBAAA,CACd,IAAA,EAAM,UAAU,iBACb,GAAA;;;;UCdY,cAAA;EJAL;EIEV,MAAA,GAAS,WAAW;EJFI;EIIxB,QAAA;AAAA;;;;;;;;;;;iBAaoB,OAAA,IACpB,KAAA,EAAO,UAAA,CAAW,CAAA,IAAK,WAAA,CAAY,UAAA,CAAW,CAAA,IAC9C,OAAA,GAAS,cAAA,GACR,OAAA,CAAQ,CAAA;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/error-shared.ts","../src/errors.ts","../src/field-errors.ts","../src/filters.ts","../src/load-all.ts","../src/mock.ts","../src/request-stamp.ts","../src/serialize-write.ts"],"mappings":";;;;KAGY,cAAA,MAAoB,OAAA,CAAQ,WAAA,CAAY,CAAA,GAAI,YAAA;AAAxD;AAAA,KAGY,OAAA,yCAAgD,cAAA,CAAe,CAAA,qBACvE,QAAA,GACA,cAAA,CAAe,CAAA,UAAW,YAAA,YACxB,CAAA,GACA,QAAA;;;;;AAPN;;;;;UCMiB,kBAAA;EACf,EAAA;EACA,MAAA;EACA,IAAA,GAAO,CAAA;EACP,KAAA;EACA,MAAA;EACA,MAAA;IAAW,OAAA;IAAkB,SAAA;IAAoB,MAAA;EAAA;EACjD,IAAA,GAAO,MAAM;EDVI;;;;;ECgBjB,IAAA;EDdE;;;;;ECoBF,OAAA;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AAA;AAAA,gBACnD,YAAA"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as
|
|
1
|
+
import { $ as DeleteArgs, $i as isPolymorphic, $n as AtomicResult, $r as PageOf, $t as RelationPageParams, A as TransportResponse, Ai as InputMediaKind, An as UpdateMethod, Ar as identifierViewOf, At as OperationCodes, B as Client, Bi as RawMediaKind, Bn as ActionLocation, Br as JSON_API_MEDIA_TYPE, Bt as ReadResult, C as ClientOptions, Ci as Cardinality, Cn as TakesVerb, Cr as PendingMember, Ct as MemberName, D as JsonApiTransport, Di as DocumentMetaOperation, Dn as TypedRelatedReadQuery, Dr as ResourceEnvelope, Dt as MutationMetaOf, E as createClient, Ei as DocumentMetaDescriptor, En as TypedReadQuery, Er as RelationView, Et as MetaOption, F as ActionCallOptions, Fi as PaginatorDescriptor, Fn as WithLinks, Fr as relatedPaginatorKind, Ft as PendingEdgeMethods, G as CountToken, Gi as RelationMutations, Gn as AtomicDeleteHandle, Gr as NestedFieldset, Gt as RelatedQuery, H as Collection, Hi as RelatedQueryDescriptor, Hn as readActionLocation, Hr as MediaTypeParams, Ht as RelatedIncludedResource, I as ActionsAccessor, Ii as PaginatorKind, In as WritableRelationName, Ir as relationWritten, It as PendingPivotOf, J as CreateInput, Ji as ResourceDescriptor, Jn as AtomicRecorder, Jr as ExactPageParams, Jt as RelatedQueryRelation, K as CountedRelationName, Ki as RequestMetaOperation, Kn as AtomicHandle, Kr as nestedFieldset, Kt as RelatedQueryEntry, L as AtomicResultOf, Li as PaginatorRole, Ln as WriteOptions, Lr as setMaterialisedOverlay, Lt as PivotFieldsOf, M as AcceptedJob, Mi as MenuDescriptor, Mn as WaitValue, Mr as lateRelationsOf, Mt as OperationMeta, N as AcceptedMeta, Ni as MetaLiteral, Nn as WaitedWriteResult, Nr as materialise, Nt as OptionsArg, O as TransportRawBody, Oi as FilterFamilyDescriptor, On as TypedRelationReadQuery, Or as ResourceLinks, Ot as MutationVerb, P as AcceptedOf, Pi as OperationExamples, Pn as WithDocumentMeta, Pr as relatedPaginator, Pt as PendingEdge, Q as DefaultWriteAttributes, Qi as StrategyDescriptor, Qn as AtomicRelationshipRecorder, Qr as PageMeta, Qt as RelationName, R as BinaryBody, Ri as PaginatorStrategy, Rn as WritePivotOf, Rr as ATOMIC_EXT, Rt as PivotInput, S as serializeQuery, Si as AtomicDescriptor, Sn as SortToken, Sr as PendingCreate, St as LooseRelatedQueryEntry, T as HeadersInit, Ti as CountableDescriptor, Tn as TypeName, Tr as RelationArrayEnvelope, Tt as MetaObject, U as CollectionMeta, Ui as RelatedQueryOperation, Un as AtomicCreateHandle, Ur as ResourceIdentifier, Ut as RelatedIncludedType, V as ClientTypes, Vi as RawOutputMedia, Vn as isActionLocation, Vr as LocalIdentifier, Vt as ReadableRelationName, W as CountAccessor, Wi as RelationDescriptor, Wn as AtomicCreateInput, Wr as mediaType, Wt as RelatedMeta, X as DefaultActionTypes, Xi as ResourceMetaDescriptor, Xn as AtomicRelationshipArgs, Xr as PageKeys, Xt as RelationCollection, Y as CreateMethod, Yi as ResourceExamples, Yn as AtomicRef, Yr as Page, Yt as RelatedReadRelatedQuery, Z as DefaultAttributes, Zi as SortFamilyDescriptor, Zn as AtomicRelationshipHandle, Zr as PageLinks, Zt as RelationFilterQuery, _ as RawResponseType, _i as ActionOutput, _n as ResourceWriteOperation, _r as Link, _t as LinkageRef, a as ValidationOption, ai as prevPageParams, an as RelationshipMembers, ar as InputSchemas, at as ErrorCodeOf, b as executeRaw, bi as ApiDescriptor, bn as SingletonUpdateInput, br as MaterialisedOverlay, bt as ListPageParams, c as assertJsonApiDocument, ci as PollOptions, cn as ResourceAccessors, cr as StandardSchemaIssue, ct as FilterKey, d as sparseSchemas, di as parseRetryAfter, dn as ResourceHandle, dr as withInputCheck, dt as IdentifierMember, ei as PageParams, en as RelationPaginator, er as AtomicResults, et as DeleteResult, f as validateDocument, fi as AcceptedDescriptor, fn as ResourceMetaOf, fr as ArrayEnvelope, ft as IncludePath, g as JsonApiRequest, gi as ActionLocationDescriptor, gn as ResourceWriteMetaInput, gr as EdgeMember, gt as IsSingleton, h as JsonApiContext, hi as ActionInput, hn as ResourceWriteMeta, hr as EdgeEnvelope, ht as IncludedType, i as ValidationContext, ii as nextPageParams, in as RelationshipAccessor, ir as InputCheck, it as ErrorCodeCarrier, j as fetchTransport, ji as MediaExamples, jn as WaitOptions, jr as isMaterialised, jt as OperationErrorCodeOf, k as TransportRequest, ki as InputMedia, kn as UpdateInput, kr as edgeViewOf, kt as NestedFieldsetMember, l as resolveValidator, li as PollTimeoutError, ln as ResourceCountToken, lr as StandardSchemaResult, lt as FilterQuery, m as ExecutedResponse, mi as ActionDescriptor, mn as ResourceObjectView, mr as Edge, mt as IncludedResource, n as SchemaMap, ni as ResolvedPaginator, nn as RelationRequestMetaOf, nr as AtomicUpdateInput, nt as EdgeMembers, o as Validator, oi as resolvePaginator, on as RequestMetaOf, or as InputValidationError, ot as FieldSelectionMap, p as Document, pi as AcceptedOperation, pn as ResourceMethods, pr as DocumentEnvelope, pt as IncludedRelations, q as CreateAttributesOf, qi as ResourceCountOperation, qn as AtomicOperationArgs, qr as CANONICAL_PAGE_KEYS, qt as RelatedQueryParam, r as ValidationConfig, ri as TypedPage, rn as RelationSortQuery, rr as runAtomic, rt as EdgeMethods, s as WireResource, si as Accepted, sn as RequiresRequestMeta, sr as StandardSchema, st as FieldsMap, t as ResolvedValidator, ti as PageParamsOf, tn as RelationReadQuery, tr as AtomicUpdateHandle, tt as DocumentMeta, u as sparseSchema, ui as isAccepted, un as ResourceDataOf, ur as inputFailure, ut as HydratedMember, v as ReadQuery, vi as ActionScope, vn as SingleReadQuery, vr as LinkObject, vt as ListFilterMember, w as HANDLE_RESERVED, wi as ClientIdPolicy, wn as TypeAccessor, wr as PendingPlacement, wt as MemberTypeOf, x as executeResponse, xi as ApiExamples, xn as SortQuery, xr as NavigateOptions, xt as LooseRelatedQuery, y as execute, yi as AdditionalMembersDescriptor, yn as SingletonAccessor, yr as MaterialiseContext, yt as ListMethods, z as BinaryResponseType, zi as PivotDescriptor, zn as WriteResult, zr as ATOMIC_MEDIA_TYPE, zt as ReadAttributesOf } from "./validate-CzlJpZzQ.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/error-shared.d.ts
|
|
4
4
|
/** The {@link JsonApiError} members of `E`, read without distributing over a union such as a query's error. */
|
|
@@ -230,6 +230,24 @@ interface LoadAllOptions {
|
|
|
230
230
|
*/
|
|
231
231
|
declare function loadAll<T>(first: Collection<T> | PromiseLike<Collection<T>>, options?: LoadAllOptions): Promise<T[]>;
|
|
232
232
|
//#endregion
|
|
233
|
+
//#region src/mock.d.ts
|
|
234
|
+
/** One resource as plain data: `type`, `id`, attributes, and relation values by name. */
|
|
235
|
+
interface MockData {
|
|
236
|
+
readonly type: string;
|
|
237
|
+
readonly id: string;
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* Build a materialised resource from its plain data, as a read returns it: the relations the data
|
|
241
|
+
* nests hydrate, the identifiers stay identifiers, and each member's `$pivot` lands on its linkage
|
|
242
|
+
* `meta.pivot`, so `$pivot`, `$edge`, `$rel` and `$count` all work. For tests and stories; the
|
|
243
|
+
* generated client binds it to its descriptor and types it.
|
|
244
|
+
*/
|
|
245
|
+
declare function mockResource(descriptor: ApiDescriptor, data: MockData): object;
|
|
246
|
+
/** {@link mockResource} for a collection of type `type`, as a list read returns it. */
|
|
247
|
+
declare function mockCollection(descriptor: ApiDescriptor, type: string, data: readonly MockData[]): object;
|
|
248
|
+
/** The JSON:API document plain data stands for: the primary data, and every nested resource in `included`. */
|
|
249
|
+
declare function mockDocument(descriptor: ApiDescriptor, data: MockData | readonly MockData[]): Document;
|
|
250
|
+
//#endregion
|
|
233
251
|
//#region src/request-stamp.d.ts
|
|
234
252
|
/**
|
|
235
253
|
* Request stamps: when the request behind a result started, relative to every other request made in
|
|
@@ -416,5 +434,5 @@ declare function withRemappedAtomicPaths(error: JsonApiError, descriptor: ApiDes
|
|
|
416
434
|
hasPivot: boolean;
|
|
417
435
|
} | undefined): JsonApiError;
|
|
418
436
|
//#endregion
|
|
419
|
-
export { ATOMIC_EXT, ATOMIC_MEDIA_TYPE, type Accepted, AcceptedDescriptor, AcceptedJob, AcceptedMeta, AcceptedOf, AcceptedOperation, ActionCallOptions, ActionDescriptor, ActionInput, ActionLocation, ActionLocationDescriptor, ActionOutput, ActionScope, ActionsAccessor, AdditionalMembersDescriptor, ApiDescriptor, ApiExamples, ArrayEnvelope, AtomicCreateHandle, AtomicCreateInput, AtomicDeleteHandle, AtomicDescriptor, AtomicHandle, AtomicOperationArgs, AtomicRecorder, AtomicRef, AtomicRelationshipArgs, AtomicRelationshipHandle, AtomicRelationshipRecorder, AtomicResult, AtomicResultOf, AtomicResults, AtomicUpdateHandle, AtomicUpdateInput, BinaryBody, BinaryResponseType, CANONICAL_PAGE_KEYS, Cardinality, Client, ClientIdPolicy, ClientOptions, CodedErrorObject, Collection, CollectionMeta, CountAccessor, CountToken, CountableDescriptor, CountedRelationName, CreateAttributesOf, CreateInput, CreateMethod, DefaultActionTypes, DefaultAttributes, DefaultWriteAttributes, DeleteArgs, DeleteResult, Document, DocumentEnvelope, DocumentMeta, DocumentMetaDescriptor, DocumentMetaOperation, Edge, EdgeEnvelope, EdgeMember, EdgeMembers, ErrorCodeCarrier, ErrorCodeGuard, ErrorCodeOf, ErrorCodesFor, ErrorFinder, ExactPageParams, ExecutedResponse, FieldError, FieldErrors, FieldSelectionMap, FieldsMap, FilterFamilyDescriptor, FilterKey, FilterQuery, FilterSpec, HANDLE_RESERVED, HeadersInit, HydratedMember, IdentifierMember, IncludePath, IncludedRelations, IncludedResource, IncludedType, InputCheck, InputMedia, InputMediaKind, InputPath, InputSchemas, InputValidationError, IsSingleton, JSON_API_MEDIA_TYPE, JsonApiContext, JsonApiError, JsonApiErrorObject, JsonApiRequest, JsonApiTransport, Link, LinkObject, LinkageRef, ListFilterMember, ListPageParams, LoadAllOptions, LocalIdentifier, LooseRelatedQuery, LooseRelatedQueryEntry, MaterialiseContext, MaterialisedOverlay, MediaExamples, MediaTypeParams, MemberName, MemberTypeOf, MenuDescriptor, MetaLiteral, MetaObject, MetaOption, MutationMetaOf, MutationVerb, NavigateOptions, type NestedFieldset, NestedFieldsetMember, OperationCodes, OperationErrorCodeOf, OperationExamples, OperationMeta, OptionsArg, Page, PageKeys, PageLinks, PageMeta, PageOf, PageParams, PageParamsOf, PaginatorDescriptor, PaginatorKind, PaginatorRole, PaginatorStrategy, PathSegment, PendingCreate, PendingEdge, PendingMember, PendingPivotOf, PendingPlacement, PivotDescriptor, PivotFieldsOf, PivotInput, type PollOptions, PollTimeoutError, RawMediaKind, RawOutputMedia, RawResponseType, ReadAttributesOf, ReadQuery, ReadResult, ReadableRelationName, RelatedIncludedResource, RelatedIncludedType, RelatedMeta, RelatedQuery, RelatedQueryDescriptor, RelatedQueryEntry, RelatedQueryOperation, RelatedQueryParam, RelatedQueryRelation, RelatedReadRelatedQuery, RelationArrayEnvelope, RelationCollection, RelationDescriptor, RelationFilterQuery, RelationMutations, RelationName, RelationPageParams, RelationPaginator, RelationReadQuery, RelationRequestMetaOf, RelationSortQuery, RelationView, RelationshipAccessor, RelationshipDocument, RelationshipMembers, RequestMetaOf, RequestMetaOperation, RequiresRequestMeta, ResolvedPaginator, ResolvedValidator, ResourceAccessors, ResourceCountOperation, ResourceCountToken, ResourceDescriptor, ResourceEnvelope, ResourceExamples, ResourceHandle, ResourceIdentifier, ResourceLinks, ResourceMetaDescriptor, ResourceMetaOf, ResourceObjectView, ResourceWriteMeta, ResourceWriteOperation, SchemaMap, SingleReadQuery, SingletonAccessor, SingletonUpdateInput, SortFamilyDescriptor, SortQuery, SortToken, StandardSchema, StandardSchemaIssue, StandardSchemaResult, StrategyDescriptor, StructuralGuardError, TakesVerb, ToDocumentOptions, TransportRawBody, TransportRequest, TransportResponse, TypeAccessor, TypeName, TypedPage, TypedReadQuery, TypedRelatedReadQuery, TypedRelationReadQuery, UpdateInput, UpdateMethod, ValidationConfig, ValidationContext, ValidationOption, Validator, WaitOptions, WaitValue, WaitedWriteResult, WireResource, WithDocumentMeta, WithLinks, WritableRelationName, WriteDocument, WriteError, WriteOptions, WritePivotOf, WriteResult, assertJsonApiDocument, createClient, edgeViewOf, execute, executeRaw, executeResponse, fetchTransport, fieldErrors, findError, hasErrorCode, identifierViewOf, inputFailure, isAccepted, isActionLocation, isMaterialised, isPolymorphic, listFilterMatcher, loadAll, materialise, mediaType, nestedFieldset, nextPageParams, nextRequestStamp, parseRetryAfter, prevPageParams, readActionLocation, relatedPaginator, relatedPaginatorKind, remapPointer, remapRelationshipPointer, requestStampOf, resolvePaginator, resolveValidator, runAtomic, serializeQuery, setMaterialisedOverlay, sparseSchema, sparseSchemas, toDocument, toRelationshipDocument, validateDocument, withInputCheck, withRemappedAtomicPaths, withRemappedDocumentMetaPaths, withRemappedPaths, withRemappedRelationshipPaths, withTopLevelMeta };
|
|
437
|
+
export { ATOMIC_EXT, ATOMIC_MEDIA_TYPE, type Accepted, AcceptedDescriptor, AcceptedJob, AcceptedMeta, AcceptedOf, AcceptedOperation, ActionCallOptions, ActionDescriptor, ActionInput, ActionLocation, ActionLocationDescriptor, ActionOutput, ActionScope, ActionsAccessor, AdditionalMembersDescriptor, ApiDescriptor, ApiExamples, ArrayEnvelope, AtomicCreateHandle, AtomicCreateInput, AtomicDeleteHandle, AtomicDescriptor, AtomicHandle, AtomicOperationArgs, AtomicRecorder, AtomicRef, AtomicRelationshipArgs, AtomicRelationshipHandle, AtomicRelationshipRecorder, AtomicResult, AtomicResultOf, AtomicResults, AtomicUpdateHandle, AtomicUpdateInput, BinaryBody, BinaryResponseType, CANONICAL_PAGE_KEYS, Cardinality, Client, ClientIdPolicy, ClientOptions, ClientTypes, CodedErrorObject, Collection, CollectionMeta, CountAccessor, CountToken, CountableDescriptor, CountedRelationName, CreateAttributesOf, CreateInput, CreateMethod, DefaultActionTypes, DefaultAttributes, DefaultWriteAttributes, DeleteArgs, DeleteResult, Document, DocumentEnvelope, DocumentMeta, DocumentMetaDescriptor, DocumentMetaOperation, Edge, EdgeEnvelope, EdgeMember, EdgeMembers, EdgeMethods, ErrorCodeCarrier, ErrorCodeGuard, ErrorCodeOf, ErrorCodesFor, ErrorFinder, ExactPageParams, ExecutedResponse, FieldError, FieldErrors, FieldSelectionMap, FieldsMap, FilterFamilyDescriptor, FilterKey, FilterQuery, FilterSpec, HANDLE_RESERVED, HeadersInit, HydratedMember, IdentifierMember, IncludePath, IncludedRelations, IncludedResource, IncludedType, InputCheck, InputMedia, InputMediaKind, InputPath, InputSchemas, InputValidationError, IsSingleton, JSON_API_MEDIA_TYPE, JsonApiContext, JsonApiError, JsonApiErrorObject, JsonApiRequest, JsonApiTransport, Link, LinkObject, LinkageRef, ListFilterMember, ListMethods, ListPageParams, LoadAllOptions, LocalIdentifier, LooseRelatedQuery, LooseRelatedQueryEntry, MaterialiseContext, MaterialisedOverlay, MediaExamples, MediaTypeParams, MemberName, MemberTypeOf, MenuDescriptor, MetaLiteral, MetaObject, MetaOption, MockData, MutationMetaOf, MutationVerb, NavigateOptions, type NestedFieldset, NestedFieldsetMember, OperationCodes, OperationErrorCodeOf, OperationExamples, OperationMeta, OptionsArg, Page, PageKeys, PageLinks, PageMeta, PageOf, PageParams, PageParamsOf, PaginatorDescriptor, PaginatorKind, PaginatorRole, PaginatorStrategy, PathSegment, PendingCreate, PendingEdge, PendingEdgeMethods, PendingMember, PendingPivotOf, PendingPlacement, PivotDescriptor, PivotFieldsOf, PivotInput, type PollOptions, PollTimeoutError, RawMediaKind, RawOutputMedia, RawResponseType, ReadAttributesOf, ReadQuery, ReadResult, ReadableRelationName, RelatedIncludedResource, RelatedIncludedType, RelatedMeta, RelatedQuery, RelatedQueryDescriptor, RelatedQueryEntry, RelatedQueryOperation, RelatedQueryParam, RelatedQueryRelation, RelatedReadRelatedQuery, RelationArrayEnvelope, RelationCollection, RelationDescriptor, RelationFilterQuery, RelationMutations, RelationName, RelationPageParams, RelationPaginator, RelationReadQuery, RelationRequestMetaOf, RelationSortQuery, RelationView, RelationshipAccessor, RelationshipDocument, RelationshipMembers, RequestMetaOf, RequestMetaOperation, RequiresRequestMeta, ResolvedPaginator, ResolvedValidator, ResourceAccessors, ResourceCountOperation, ResourceCountToken, ResourceDataOf, ResourceDescriptor, ResourceEnvelope, ResourceExamples, ResourceHandle, ResourceIdentifier, ResourceLinks, ResourceMetaDescriptor, ResourceMetaOf, ResourceMethods, ResourceObjectView, ResourceWriteMeta, ResourceWriteMetaInput, ResourceWriteOperation, SchemaMap, SingleReadQuery, SingletonAccessor, SingletonUpdateInput, SortFamilyDescriptor, SortQuery, SortToken, StandardSchema, StandardSchemaIssue, StandardSchemaResult, StrategyDescriptor, StructuralGuardError, TakesVerb, ToDocumentOptions, TransportRawBody, TransportRequest, TransportResponse, TypeAccessor, TypeName, TypedPage, TypedReadQuery, TypedRelatedReadQuery, TypedRelationReadQuery, UpdateInput, UpdateMethod, ValidationConfig, ValidationContext, ValidationOption, Validator, WaitOptions, WaitValue, WaitedWriteResult, WireResource, WithDocumentMeta, WithLinks, WritableRelationName, WriteDocument, WriteError, WriteOptions, WritePivotOf, WriteResult, assertJsonApiDocument, createClient, edgeViewOf, execute, executeRaw, executeResponse, fetchTransport, fieldErrors, findError, hasErrorCode, identifierViewOf, inputFailure, isAccepted, isActionLocation, isMaterialised, isPolymorphic, lateRelationsOf, listFilterMatcher, loadAll, materialise, mediaType, mockCollection, mockDocument, mockResource, nestedFieldset, nextPageParams, nextRequestStamp, parseRetryAfter, prevPageParams, readActionLocation, relatedPaginator, relatedPaginatorKind, relationWritten, remapPointer, remapRelationshipPointer, requestStampOf, resolvePaginator, resolveValidator, runAtomic, serializeQuery, setMaterialisedOverlay, sparseSchema, sparseSchemas, toDocument, toRelationshipDocument, validateDocument, withInputCheck, withRemappedAtomicPaths, withRemappedDocumentMetaPaths, withRemappedPaths, withRemappedRelationshipPaths, withTopLevelMeta };
|
|
420
438
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/error-shared.ts","../src/errors.ts","../src/field-errors.ts","../src/filters.ts","../src/load-all.ts","../src/request-stamp.ts","../src/serialize-write.ts"],"mappings":";;;;KAGY,cAAA,MAAoB,OAAA,CAAQ,WAAA,CAAY,CAAA,GAAI,YAAA;AAAxD;AAAA,KAGY,OAAA,yCAAgD,cAAA,CAAe,CAAA,qBACvE,QAAA,GACA,cAAA,CAAe,CAAA,UAAW,YAAA,YACxB,CAAA,GACA,QAAA;;;;;AAPN;;;;;UCMiB,kBAAA;EACf,EAAA;EACA,MAAA;EACA,IAAA,GAAO,CAAA;EACP,KAAA;EACA,MAAA;EACA,MAAA;IAAW,OAAA;IAAkB,SAAA;IAAoB,MAAA;EAAA;EACjD,IAAA,GAAO,MAAM;EDVI;;;;;ECgBjB,IAAA;EDdE;;;;;ECoBF,OAAA;AAAA;;;;;;;;cAUW,oBAAA,SAA6B,KAAK;cACjC,OAAA;AAAA;AD7BA;;;;ACDd;;;ADCc,cC4DD,YAAA,oCAAgD,KAAA;EAAA,SAClD,MAAA;EAAA,SACA,MAAA,EAAQ,kBAAA,CAAmB,CAAA;cAExB,MAAA,UAAgB,MAAA,EAAQ,kBAAA,CAAmB,CAAA,KAAM,OAAA;EAO7D,SAAA,CAAU,MAAA;EAIV,KAAA;EAIA,KAAA;EAIA,YAAA;EAIA,cAAA;EAIA,WAAA;EAIA,UAAA;EAIA,eAAA;EAIA,UAAA;EAIA,sBAAA;EAIA,eAAA;EA7FA;EAkGA,iBAAA;EAIA,aAAA;EA5FW;;;;;EAqGX,MAAA,IAAU,MAAA,SAAe,kBAAA,CAAmB,CAAA;AAAA;;AApGjB;AA+B7B;;;;iBAqFgB,YAAA,CAAa,GAAA,WAAc,IAAA,WAAe,GAAA,IAAO,YAAY;;;;;;KASjE,aAAA,uCAAoD,O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,KAAA,EAAO,UAAA,CAAW,CAAA,IAAK,WAAA,CAAY,UAAA,CAAW,CAAA,IAC9C,OAAA,GAAS,cAAA,GACR,OAAA,CAAQ,CAAA;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../src/error-shared.ts","../src/errors.ts","../src/field-errors.ts","../src/filters.ts","../src/load-all.ts","../src/mock.ts","../src/request-stamp.ts","../src/serialize-write.ts"],"mappings":";;;;KAGY,cAAA,MAAoB,OAAA,CAAQ,WAAA,CAAY,CAAA,GAAI,YAAA;AAAxD;AAAA,KAGY,OAAA,yCAAgD,cAAA,CAAe,CAAA,qBACvE,QAAA,GACA,cAAA,CAAe,CAAA,UAAW,YAAA,YACxB,CAAA,GACA,QAAA;;;;;AAPN;;;;;UCMiB,kBAAA;EACf,EAAA;EACA,MAAA;EACA,IAAA,GAAO,CAAA;EACP,KAAA;EACA,MAAA;EACA,MAAA;IAAW,OAAA;IAAkB,SAAA;IAAoB,MAAA;EAAA;EACjD,IAAA,GAAO,MAAM;EDVI;;;;;ECgBjB,IAAA;EDdE;;;;;ECoBF,OAAA;AAAA;;;;;;;;cAUW,oBAAA,SAA6B,KAAK;cACjC,OAAA;AAAA;AD7BA;;;;ACDd;;;ADCc,cC4DD,YAAA,oCAAgD,KAAA;EAAA,SAClD,MAAA;EAAA,SACA,MAAA,EAAQ,kBAAA,CAAmB,CAAA;cAExB,MAAA,UAAgB,MAAA,EAAQ,kBAAA,CAAmB,CAAA,KAAM,OAAA;EAO7D,SAAA,CAAU,MAAA;EAIV,KAAA;EAIA,KAAA;EAIA,YAAA;EAIA,cAAA;EAIA,WAAA;EAIA,UAAA;EAIA,eAAA;EAIA,UAAA;EAIA,sBAAA;EAIA,eAAA;EA7FA;EAkGA,iBAAA;EAIA,aAAA;EA5FW;;;;;EAqGX,MAAA,IAAU,MAAA,SAAe,kBAAA,CAAmB,CAAA;AAAA;;AApGjB;AA+B7B;;;;iBAqFgB,YAAA,CAAa,GAAA,WAAc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