@warp-drive/core 5.6.0-alpha.18 → 5.6.0-alpha.5
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/README.md +7 -8
- package/declarations/index.d.ts +3 -14
- package/declarations/index.d.ts.map +1 -0
- package/declarations/request/-private/context.d.ts +35 -34
- package/declarations/request/-private/context.d.ts.map +1 -0
- package/declarations/request/-private/debug.d.ts +3 -2
- package/declarations/request/-private/debug.d.ts.map +1 -0
- package/declarations/request/-private/fetch.d.ts +36 -24
- package/declarations/request/-private/fetch.d.ts.map +1 -0
- package/declarations/request/-private/future.d.ts +4 -3
- package/declarations/request/-private/future.d.ts.map +1 -0
- package/declarations/request/-private/manager.d.ts +132 -159
- package/declarations/request/-private/manager.d.ts.map +1 -0
- package/declarations/request/-private/promise-cache.d.ts +13 -21
- package/declarations/request/-private/promise-cache.d.ts.map +1 -0
- package/declarations/request/-private/types.d.ts +123 -124
- package/declarations/request/-private/types.d.ts.map +1 -0
- package/declarations/request/-private/utils.d.ts +9 -8
- package/declarations/request/-private/utils.d.ts.map +1 -0
- package/declarations/request.d.ts +433 -5
- package/declarations/request.d.ts.map +1 -0
- package/declarations/types/-private.d.ts +8 -16
- package/declarations/types/-private.d.ts.map +1 -0
- package/declarations/types/cache/aliases.d.ts +1 -11
- package/declarations/types/cache/aliases.d.ts.map +1 -0
- package/declarations/types/cache/change.d.ts +5 -4
- package/declarations/types/cache/change.d.ts.map +1 -0
- package/declarations/types/cache/mutations.d.ts +28 -51
- package/declarations/types/cache/mutations.d.ts.map +1 -0
- package/declarations/types/cache/operations.d.ts +47 -60
- package/declarations/types/cache/operations.d.ts.map +1 -0
- package/declarations/types/cache/relationship.d.ts +9 -11
- package/declarations/types/cache/relationship.d.ts.map +1 -0
- package/declarations/types/cache.d.ts +484 -495
- package/declarations/types/cache.d.ts.map +1 -0
- package/declarations/types/graph.d.ts +40 -31
- package/declarations/types/graph.d.ts.map +1 -0
- package/declarations/types/identifier.d.ts +82 -83
- package/declarations/types/identifier.d.ts.map +1 -0
- package/declarations/types/json/raw.d.ts +2 -1
- package/declarations/types/json/raw.d.ts.map +1 -0
- package/declarations/types/params.d.ts +5 -4
- package/declarations/types/params.d.ts.map +1 -0
- package/declarations/types/record.d.ts +76 -117
- package/declarations/types/record.d.ts.map +1 -0
- package/declarations/types/record.type-test.d.ts +2 -0
- package/declarations/types/record.type-test.d.ts.map +1 -0
- package/declarations/types/request.d.ts +266 -289
- package/declarations/types/request.d.ts.map +1 -0
- package/declarations/types/request.type-test.d.ts +2 -0
- package/declarations/types/request.type-test.d.ts.map +1 -0
- package/declarations/types/runtime.d.ts +9 -8
- package/declarations/types/runtime.d.ts.map +1 -0
- package/declarations/types/schema/concepts.d.ts +13 -19
- package/declarations/types/schema/concepts.d.ts.map +1 -0
- package/declarations/types/schema/fields.d.ts +1741 -1712
- package/declarations/types/schema/fields.d.ts.map +1 -0
- package/declarations/types/schema/fields.type-test.d.ts +1 -0
- package/declarations/types/schema/fields.type-test.d.ts.map +1 -0
- package/declarations/types/spec/document.d.ts +22 -28
- package/declarations/types/spec/document.d.ts.map +1 -0
- package/declarations/types/spec/error.d.ts +17 -16
- package/declarations/types/spec/error.d.ts.map +1 -0
- package/declarations/types/spec/json-api-raw.d.ts +102 -102
- package/declarations/types/spec/json-api-raw.d.ts.map +1 -0
- package/declarations/types/symbols.d.ts +75 -74
- package/declarations/types/symbols.d.ts.map +1 -0
- package/declarations/types/utils.d.ts +5 -5
- package/declarations/types/utils.d.ts.map +1 -0
- package/declarations/types.d.ts +7 -10
- package/declarations/types.d.ts.map +1 -0
- package/dist/{context-COmAnXUQ.js → context-DE5sFezZ.js} +2 -2
- package/dist/context-DE5sFezZ.js.map +1 -0
- package/dist/index.js +104 -37
- package/dist/index.js.map +1 -0
- package/dist/request.js +1 -1
- package/dist/request.js.map +1 -0
- package/dist/types/-private.js +3 -3
- package/dist/types/-private.js.map +1 -0
- package/dist/types/cache/aliases.js.map +1 -0
- package/dist/types/cache/change.js.map +1 -0
- package/dist/types/cache/mutations.js.map +1 -0
- package/dist/types/cache/operations.js.map +1 -0
- package/dist/types/cache/relationship.js.map +1 -0
- package/dist/types/cache.js.map +1 -0
- package/dist/types/graph.js.map +1 -0
- package/dist/types/identifier.js.map +1 -0
- package/dist/types/json/raw.js.map +1 -0
- package/dist/types/params.js.map +1 -0
- package/dist/types/record.js +1 -1
- package/dist/types/record.js.map +1 -0
- package/dist/types/request.js +2 -2
- package/dist/types/request.js.map +1 -0
- package/dist/types/runtime.js +1 -1
- package/dist/types/runtime.js.map +1 -0
- package/dist/types/schema/concepts.js.map +1 -0
- package/dist/types/schema/fields.js +41 -8
- package/dist/types/schema/fields.js.map +1 -0
- package/dist/types/schema/fields.type-test.js.map +1 -0
- package/dist/types/spec/document.js.map +1 -0
- package/dist/types/spec/error.js.map +1 -0
- package/dist/types/spec/json-api-raw.js.map +1 -0
- package/dist/types/symbols.js +3 -3
- package/dist/types/symbols.js.map +1 -0
- package/dist/types/utils.js.map +1 -0
- package/dist/types.js.map +1 -0
- package/package.json +8 -11
- package/cjs-dist/addon-shim.cjs +0 -1
- package/cjs-dist/cjs-set-config.cjs +0 -1
- package/declarations/build-config/babel-macros.d.ts +0 -1
- package/declarations/build-config/canary-features.d.ts +0 -1
- package/declarations/build-config/debugging.d.ts +0 -1
- package/declarations/build-config/deprecations.d.ts +0 -1
- package/declarations/build-config/env.d.ts +0 -1
- package/declarations/build-config/macros.d.ts +0 -1
- package/declarations/build-config.d.ts +0 -1
- package/declarations/configure.d.ts +0 -7
- package/declarations/graph/-private/-diff.d.ts +0 -32
- package/declarations/graph/-private/-edge-definition.d.ts +0 -148
- package/declarations/graph/-private/-state.d.ts +0 -96
- package/declarations/graph/-private/-utils.d.ts +0 -31
- package/declarations/graph/-private/coerce-id.d.ts +0 -10
- package/declarations/graph/-private/debug/assert-polymorphic-type.d.ts +0 -18
- package/declarations/graph/-private/edges/collection.d.ts +0 -39
- package/declarations/graph/-private/edges/implicit.d.ts +0 -43
- package/declarations/graph/-private/edges/resource.d.ts +0 -24
- package/declarations/graph/-private/graph.d.ts +0 -90
- package/declarations/graph/-private/normalize-link.d.ts +0 -8
- package/declarations/graph/-private/operations/add-to-related-records.d.ts +0 -4
- package/declarations/graph/-private/operations/merge-identifier.d.ts +0 -3
- package/declarations/graph/-private/operations/remove-from-related-records.d.ts +0 -4
- package/declarations/graph/-private/operations/replace-related-record.d.ts +0 -3
- package/declarations/graph/-private/operations/replace-related-records.d.ts +0 -62
- package/declarations/graph/-private/operations/update-relationship.d.ts +0 -13
- package/declarations/graph/-private.d.ts +0 -13
- package/declarations/reactive/-private/document.d.ts +0 -146
- package/declarations/reactive/-private/fields/compute.d.ts +0 -43
- package/declarations/reactive/-private/fields/extension.d.ts +0 -8
- package/declarations/reactive/-private/fields/managed-array.d.ts +0 -22
- package/declarations/reactive/-private/fields/managed-object.d.ts +0 -21
- package/declarations/reactive/-private/fields/many-array-manager.d.ts +0 -19
- package/declarations/reactive/-private/hooks.d.ts +0 -5
- package/declarations/reactive/-private/record.d.ts +0 -64
- package/declarations/reactive/-private/schema.d.ts +0 -271
- package/declarations/reactive/-private/symbols.d.ts +0 -36
- package/declarations/reactive/-private.d.ts +0 -1
- package/declarations/reactive.d.ts +0 -4
- package/declarations/store/-private/cache-handler/handler.d.ts +0 -62
- package/declarations/store/-private/cache-handler/types.d.ts +0 -98
- package/declarations/store/-private/cache-handler/utils.d.ts +0 -32
- package/declarations/store/-private/caches/cache-utils.d.ts +0 -12
- package/declarations/store/-private/caches/identifier-cache.d.ts +0 -304
- package/declarations/store/-private/caches/instance-cache.d.ts +0 -65
- package/declarations/store/-private/caches/resource-utils.d.ts +0 -9
- package/declarations/store/-private/debug/utils.d.ts +0 -6
- package/declarations/store/-private/default-cache-policy.d.ts +0 -384
- package/declarations/store/-private/legacy-model-support/record-reference.d.ts +0 -159
- package/declarations/store/-private/legacy-model-support/shim-model-class.d.ts +0 -17
- package/declarations/store/-private/managers/cache-capabilities-manager.d.ts +0 -25
- package/declarations/store/-private/managers/cache-manager.d.ts +0 -443
- package/declarations/store/-private/managers/notification-manager.d.ts +0 -98
- package/declarations/store/-private/managers/record-array-manager.d.ts +0 -97
- package/declarations/store/-private/network/request-cache.d.ts +0 -107
- package/declarations/store/-private/new-core-tmp/promise-state.d.ts +0 -263
- package/declarations/store/-private/new-core-tmp/reactivity/configure.d.ts +0 -176
- package/declarations/store/-private/new-core-tmp/reactivity/internal.d.ts +0 -169
- package/declarations/store/-private/new-core-tmp/reactivity/signal.d.ts +0 -35
- package/declarations/store/-private/new-core-tmp/request-state.d.ts +0 -277
- package/declarations/store/-private/new-core-tmp/request-subscription.d.ts +0 -261
- package/declarations/store/-private/record-arrays/identifier-array.d.ts +0 -147
- package/declarations/store/-private/record-arrays/many-array.d.ts +0 -197
- package/declarations/store/-private/record-arrays/native-proxy-type-fix.d.ts +0 -126
- package/declarations/store/-private/store-service.d.ts +0 -1605
- package/declarations/store/-private/utils/coerce-id.d.ts +0 -10
- package/declarations/store/-private/utils/construct-resource.d.ts +0 -6
- package/declarations/store/-private/utils/is-non-empty-string.d.ts +0 -1
- package/declarations/store/-private/utils/normalize-model-name.d.ts +0 -1
- package/declarations/store/-private/utils/uuid-polyfill.d.ts +0 -1
- package/declarations/store/-private.d.ts +0 -31
- package/declarations/store/-types/q/cache-capabilities-manager.d.ts +0 -99
- package/declarations/store/-types/q/ds-model.d.ts +0 -21
- package/declarations/store/-types/q/identifier.d.ts +0 -20
- package/declarations/store/-types/q/record-instance.d.ts +0 -23
- package/declarations/store/-types/q/schema-service.d.ts +0 -354
- package/declarations/store/-types/q/store.d.ts +0 -32
- package/declarations/store.d.ts +0 -1
- package/declarations/utils/string.d.ts +0 -48
- package/dist/build-config/babel-macros.js +0 -1
- package/dist/build-config/canary-features.js +0 -1
- package/dist/build-config/debugging.js +0 -1
- package/dist/build-config/deprecations.js +0 -1
- package/dist/build-config/env.js +0 -1
- package/dist/build-config/macros.js +0 -1
- package/dist/build-config.js +0 -1
- package/dist/configure-B48bFHOl.js +0 -181
- package/dist/configure.js +0 -1
- package/dist/graph/-private.js +0 -3372
- package/dist/handler-C2T-IyJK.js +0 -339
- package/dist/reactive/-private.js +0 -1
- package/dist/reactive.js +0 -1988
- package/dist/request-state-CjLph1LP.js +0 -8139
- package/dist/store/-private.js +0 -3
- package/dist/store.js +0 -545
- package/dist/symbols-SIstXMLI.js +0 -44
- package/dist/utils/string.js +0 -92
- package/logos/NCC-1701-a-blue.svg +0 -4
- package/logos/NCC-1701-a-gold.svg +0 -4
- package/logos/NCC-1701-a-gold_100.svg +0 -1
- package/logos/NCC-1701-a-gold_base-64.txt +0 -1
- package/logos/NCC-1701-a.svg +0 -4
- package/logos/README.md +0 -4
- package/logos/docs-badge.svg +0 -2
- package/logos/ember-data-logo-dark.svg +0 -12
- package/logos/ember-data-logo-light.svg +0 -12
- package/logos/github-header.svg +0 -444
- package/logos/social1.png +0 -0
- package/logos/social2.png +0 -0
- package/logos/warp-drive-logo-dark.svg +0 -4
- package/logos/warp-drive-logo-gold.svg +0 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fields.d.ts","sourceRoot":"","sources":["../../../src/types/schema/fields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAElE;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,WAAW,YAAY;IAC3B;;;;;;OAMG;IACH,IAAI,EAAE,OAAO,CAAC;IAEd;;;;;;OAMG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;;;;;;OASG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;CACvB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;;;OAMG;IACH,IAAI,EAAE,OAAO,CAAC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MAAM,EAAE,iBAAiB,EAAE,CAAC;CAC7B;AAED,MAAM,MAAM,MAAM,GAAG,cAAc,GAAG,YAAY,CAAC;AAEnD;;;;;;;;;;;;;GAaG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,oBAAoB,GAAG,qBAAqB,EACnF,MAAM,EAAE,oBAAoB,GAAG,qBAAqB,GACnD,CAAC,CAEH;AAED;;;;;;;;;GASG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,YAAY,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAEjE;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,cAAc,GAAG,YAAY,GAAG,MAAM,IAAI,cAAc,CAEhG;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,cAAc,GAAG,YAAY,GAAG,MAAM,IAAI,oBAAoB,CAE5G;AAED,MAAM,MAAM,WAAW,GACnB,oBAAoB,GACpB,oBAAoB,GACpB,kBAAkB,GAClB,uBAAuB,GACvB,qBAAqB,CAAC;AAC1B,MAAM,MAAM,uBAAuB,GAC/B,oBAAoB,GACpB,kBAAkB,GAClB,uBAAuB,GACvB,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fields.type-test.d.ts","sourceRoot":"","sources":["../../../src/types/schema/fields.type-test.ts"],"names":[],"mappings":""}
|
|
@@ -1,37 +1,31 @@
|
|
|
1
|
-
import type { StableExistingRecordIdentifier } from
|
|
2
|
-
import type { ApiError } from
|
|
3
|
-
import type { Links, Meta, PaginationLinks } from
|
|
1
|
+
import type { StableExistingRecordIdentifier } from '../identifier.ts';
|
|
2
|
+
import type { ApiError } from './error.ts';
|
|
3
|
+
import type { Links, Meta, PaginationLinks } from './json-api-raw.ts';
|
|
4
4
|
export interface ResourceMetaDocument {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
links?: Links | PaginationLinks;
|
|
5
|
+
lid?: string;
|
|
6
|
+
meta: Meta;
|
|
7
|
+
links?: Links | PaginationLinks;
|
|
9
8
|
}
|
|
10
|
-
export interface SingleResourceDataDocument<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
links?: Links | PaginationLinks;
|
|
17
|
-
meta?: Meta;
|
|
18
|
-
data: T | null;
|
|
19
|
-
included?: R[];
|
|
9
|
+
export interface SingleResourceDataDocument<T = StableExistingRecordIdentifier, R = StableExistingRecordIdentifier> {
|
|
10
|
+
lid?: string;
|
|
11
|
+
links?: Links | PaginationLinks;
|
|
12
|
+
meta?: Meta;
|
|
13
|
+
data: T | null;
|
|
14
|
+
included?: R[];
|
|
20
15
|
}
|
|
21
16
|
export interface CollectionResourceDataDocument<T = StableExistingRecordIdentifier> {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
included?: T[];
|
|
17
|
+
lid?: string;
|
|
18
|
+
links?: Links | PaginationLinks;
|
|
19
|
+
meta?: Meta;
|
|
20
|
+
data: T[];
|
|
21
|
+
included?: T[];
|
|
28
22
|
}
|
|
29
23
|
export type ResourceDataDocument<T = StableExistingRecordIdentifier> = SingleResourceDataDocument<T> | CollectionResourceDataDocument<T>;
|
|
30
24
|
export interface ResourceErrorDocument {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
errors: ApiError[];
|
|
25
|
+
lid?: string;
|
|
26
|
+
links?: Links | PaginationLinks;
|
|
27
|
+
meta?: Meta;
|
|
28
|
+
errors: ApiError[];
|
|
36
29
|
}
|
|
37
30
|
export type ResourceDocument<T = StableExistingRecordIdentifier> = ResourceMetaDocument | SingleResourceDataDocument<T> | CollectionResourceDataDocument<T> | ResourceErrorDocument;
|
|
31
|
+
//# sourceMappingURL=document.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"document.d.ts","sourceRoot":"","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AC;CACpB;AAED,MAAM,MAAM,gBAAgB,CAAC,CAAC,GAAG,8BAA8B,IAC3D,oBAAoB,GACpB,0BAA0B,CAAC,CAAC,CAAC,GAC7B,8BAA8B,CAAC,CAAC,CAAC,GACjC,qBAAqB,CAAC"}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
|
-
import type { Link, Meta } from
|
|
1
|
+
import type { Link, Meta } from './json-api-raw.ts';
|
|
2
2
|
export interface ApiError {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
3
|
+
id?: string;
|
|
4
|
+
title?: string;
|
|
5
|
+
detail?: string;
|
|
6
|
+
links?: {
|
|
7
|
+
about?: Link;
|
|
8
|
+
type?: Link;
|
|
9
|
+
};
|
|
10
|
+
status?: string;
|
|
11
|
+
code?: string;
|
|
12
|
+
source?: {
|
|
13
|
+
pointer: string;
|
|
14
|
+
parameter?: string;
|
|
15
|
+
header?: string;
|
|
16
|
+
};
|
|
17
|
+
meta?: Meta;
|
|
18
18
|
}
|
|
19
|
+
//# sourceMappingURL=error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../src/types/spec/error.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEpD,MAAM,WAAW,QAAQ;IACvB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE;QACN,KAAK,CAAC,EAAE,IAAI,CAAC;QACb,IAAI,CAAC,EAAE,IAAI,CAAC;KACb,CAAC;IACF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE;QACP,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,MAAM,CAAC,EAAE,MAAM,CAAC;KACjB,CAAC;IACF,IAAI,CAAC,EAAE,IAAI,CAAC;CACb"}
|
|
@@ -1,142 +1,142 @@
|
|
|
1
|
-
import type { ArrayValue, ObjectValue } from
|
|
1
|
+
import type { ArrayValue, ObjectValue } from '../json/raw.ts';
|
|
2
2
|
export type Meta = ObjectValue;
|
|
3
3
|
export type LinkObject = {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
href: string;
|
|
5
|
+
meta?: Meta;
|
|
6
6
|
};
|
|
7
7
|
export type Link = string | LinkObject;
|
|
8
8
|
export interface Links {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
related?: Link | null;
|
|
10
|
+
self?: Link | null;
|
|
11
11
|
}
|
|
12
12
|
export interface PaginationLinks extends Links {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
first?: Link | null;
|
|
14
|
+
last?: Link | null;
|
|
15
|
+
prev?: Link | null;
|
|
16
|
+
next?: Link | null;
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
|
-
* Serves as a reference to a `Resource` but does not contain
|
|
20
|
-
* any data itself.
|
|
21
|
-
*
|
|
22
|
-
* Used to establish relationship linkages between `Resources` and
|
|
23
|
-
* to address data that may not be available synchronously.
|
|
24
|
-
*
|
|
25
|
-
* [JSON:API Spec](https://jsonapi.org/format/#document-resource-identifier-objects)
|
|
26
|
-
* @internal
|
|
27
|
-
*/
|
|
19
|
+
* Serves as a reference to a `Resource` but does not contain
|
|
20
|
+
* any data itself.
|
|
21
|
+
*
|
|
22
|
+
* Used to establish relationship linkages between `Resources` and
|
|
23
|
+
* to address data that may not be available synchronously.
|
|
24
|
+
*
|
|
25
|
+
* [JSON:API Spec](https://jsonapi.org/format/#document-resource-identifier-objects)
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
28
|
export interface ExistingResourceIdentifierObject<T extends string = string> {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
29
|
+
id: string;
|
|
30
|
+
type: T;
|
|
31
|
+
/**
|
|
32
|
+
* While not officially part of the `JSON:API` spec,
|
|
33
|
+
* `ember-data` allows the use of `lid` as a local
|
|
34
|
+
* identifier for a `Resource`.
|
|
35
|
+
*
|
|
36
|
+
* @recommended It is best to include the lid used when creating
|
|
37
|
+
* a new resource if this is the response to a new resource creation,
|
|
38
|
+
* also recommended if this resource type uses secondary indexes.
|
|
39
|
+
*
|
|
40
|
+
* Once a `ResourceIdentifierObject` has been seen by the cache, `lid`
|
|
41
|
+
* should always be present. Only when inbound from the an `API` response
|
|
42
|
+
* is `lid` considered optional.
|
|
43
|
+
*
|
|
44
|
+
* [Identifiers RFC](https://github.com/emberjs/rfcs/blob/main/text/0403-ember-data-identifiers.md#ember-data--identifiers)
|
|
45
|
+
* @internal
|
|
46
|
+
*/
|
|
47
|
+
lid?: string;
|
|
48
|
+
/**
|
|
49
|
+
* While valid in the `JSON:API` spec,
|
|
50
|
+
* `ember-data` ignores `meta` on `ResourceIdentifierObjects`
|
|
51
|
+
*
|
|
52
|
+
* @ignored this property goes un-utilized and will be lost
|
|
53
|
+
* @internal
|
|
54
|
+
*/
|
|
55
|
+
meta?: Meta;
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
|
-
* Serves as a reference to a resource created on the client
|
|
59
|
-
* but not yet persisted.
|
|
60
|
-
*
|
|
61
|
-
* @internal
|
|
62
|
-
*/
|
|
58
|
+
* Serves as a reference to a resource created on the client
|
|
59
|
+
* but not yet persisted.
|
|
60
|
+
*
|
|
61
|
+
* @internal
|
|
62
|
+
*/
|
|
63
63
|
export interface NewResourceIdentifierObject<T extends string = string> {
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
64
|
+
/**
|
|
65
|
+
* Resources newly created on the client _may_
|
|
66
|
+
* not have an `id` available to them prior
|
|
67
|
+
* to completion of their first successful `save`.
|
|
68
|
+
*
|
|
69
|
+
* `id` will be `null` in this case.
|
|
70
|
+
*
|
|
71
|
+
* @internal
|
|
72
|
+
*/
|
|
73
|
+
id: string | null;
|
|
74
|
+
type: T;
|
|
75
|
+
/**
|
|
76
|
+
* Resources newly created on the client _will always_
|
|
77
|
+
* have an `lid` assigned immediately and available.
|
|
78
|
+
* @internal
|
|
79
|
+
*/
|
|
80
|
+
lid: string;
|
|
81
81
|
}
|
|
82
82
|
export interface ResourceIdentifier {
|
|
83
|
-
|
|
83
|
+
lid: string;
|
|
84
84
|
}
|
|
85
85
|
export type ResourceIdentifierObject<T extends string = string> = ResourceIdentifier | ExistingResourceIdentifierObject<T> | NewResourceIdentifierObject<T>;
|
|
86
|
-
// TODO disallow NewResource, make narrowable
|
|
87
86
|
export interface SingleResourceRelationship<T = ExistingResourceIdentifierObject | NewResourceIdentifierObject> {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
87
|
+
data?: T | null;
|
|
88
|
+
meta?: Meta;
|
|
89
|
+
links?: Links;
|
|
91
90
|
}
|
|
92
91
|
export interface CollectionResourceRelationship<T = ExistingResourceIdentifierObject | NewResourceIdentifierObject> {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
92
|
+
data?: T[];
|
|
93
|
+
meta?: Meta;
|
|
94
|
+
links?: PaginationLinks;
|
|
96
95
|
}
|
|
97
96
|
export type InnerRelationshipDocument<T = ExistingResourceIdentifierObject | NewResourceIdentifierObject> = SingleResourceRelationship<T> | CollectionResourceRelationship<T>;
|
|
98
97
|
export type ResourceRelationshipsObject<T = ExistingResourceIdentifierObject | NewResourceIdentifierObject> = Record<string, InnerRelationshipDocument<T>>;
|
|
99
98
|
/**
|
|
100
|
-
* Contains the data for an existing resource in JSON:API format
|
|
101
|
-
* @internal
|
|
102
|
-
*/
|
|
99
|
+
* Contains the data for an existing resource in JSON:API format
|
|
100
|
+
* @internal
|
|
101
|
+
*/
|
|
103
102
|
export interface ExistingResourceObject<T extends string = string> extends ExistingResourceIdentifierObject<T> {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
103
|
+
meta?: Meta;
|
|
104
|
+
attributes?: ObjectValue;
|
|
105
|
+
relationships?: ResourceRelationshipsObject<ExistingResourceIdentifierObject>;
|
|
106
|
+
links?: Links;
|
|
108
107
|
}
|
|
109
108
|
export type NewResourceObject<T extends string = string> = NewResourceIdentifierObject<T> & {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
109
|
+
meta?: Meta;
|
|
110
|
+
attributes?: ObjectValue;
|
|
111
|
+
relationships?: ResourceRelationshipsObject;
|
|
112
|
+
links?: Links;
|
|
114
113
|
};
|
|
115
114
|
export type ResourceObject<T extends string = string> = ExistingResourceObject<T> | NewResourceObject<T>;
|
|
116
115
|
type Document = {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
116
|
+
lid?: string;
|
|
117
|
+
meta?: Meta;
|
|
118
|
+
included?: ExistingResourceObject[];
|
|
119
|
+
jsonapi?: ObjectValue;
|
|
120
|
+
links?: Links | PaginationLinks;
|
|
121
|
+
errors?: ArrayValue;
|
|
123
122
|
};
|
|
124
123
|
export type EmptyResourceDocument = Document & {
|
|
125
|
-
|
|
124
|
+
data: null;
|
|
126
125
|
};
|
|
127
126
|
export type SingleResourceDocument<T extends string = string> = Document & {
|
|
128
|
-
|
|
127
|
+
data: ExistingResourceObject<T>;
|
|
129
128
|
};
|
|
130
129
|
export type CollectionResourceDocument<T extends string = string> = Document & {
|
|
131
|
-
|
|
130
|
+
data: ExistingResourceObject<T>[];
|
|
132
131
|
};
|
|
133
132
|
/**
|
|
134
|
-
* A (RAW) JSON:API Formatted Document.
|
|
135
|
-
*
|
|
136
|
-
* These documents should follow the JSON:API spec but do not
|
|
137
|
-
* have the same level of guarantees as their `spec` counterparts.
|
|
138
|
-
*
|
|
139
|
-
* @internal
|
|
140
|
-
*/
|
|
133
|
+
* A (RAW) JSON:API Formatted Document.
|
|
134
|
+
*
|
|
135
|
+
* These documents should follow the JSON:API spec but do not
|
|
136
|
+
* have the same level of guarantees as their `spec` counterparts.
|
|
137
|
+
*
|
|
138
|
+
* @internal
|
|
139
|
+
*/
|
|
141
140
|
export type JsonApiDocument<T extends string = string> = EmptyResourceDocument | SingleResourceDocument<T> | CollectionResourceDocument<T>;
|
|
142
141
|
export {};
|
|
142
|
+
//# sourceMappingURL=json-api-raw.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"json-api-raw.d.ts","sourceRoot":"","sources":["../../../src/types/spec/json-api-raw.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE9D,MAAM,MAAM,IAAI,GAAG,WAAW,CAAC;AAC/B,MAAM,MAAM,UAAU,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,IAAI,CAAA;CAAE,CAAC;AACvD,MAAM,MAAM,IAAI,GAAG,MAAM,GAAG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IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,QAAQ,CAAC,EAAE,sBAAsB,EAAE,CAAC;IACpC,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,KAAK,CAAC,EAAE,KAAK,GAAG,eAAe,CAAC;IAChC,MAAM,CAAC,EAAE,UAAU,CAAC;CACrB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,QAAQ,GAAG;IAC7C,IAAI,EAAE,IAAI,CAAC;CACZ,CAAC;AAEF,MAAM,MAAM,sBAAsB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI,QAAQ,GAAG;IACzE,IAAI,EAAE,sBAAsB,CAAC,CAAC,CAAC,CAAC;CACjC,CAAC;AAEF,MAAM,MAAM,0BAA0B,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI,QAAQ,GAAG;IAC7E,IAAI,EAAE,sBAAsB,CAAC,CAAC,CAAC,EAAE,CAAC;CACnC,CAAC;AAEF;;;;;;;GAOG;AACH,MAAM,MAAM,eAAe,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IACjD,qBAAqB,GACrB,sBAAsB,CAAC,CAAC,CAAC,GACzB,0BAA0B,CAAC,CAAC,CAAC,CAAC"}
|
|
@@ -1,78 +1,79 @@
|
|
|
1
|
-
export declare const RecordStore:
|
|
1
|
+
export declare const RecordStore: '___(unique) Symbol(Store)';
|
|
2
2
|
/**
|
|
3
|
-
* Symbol for the name of a resource, transformation
|
|
4
|
-
* or derivation.
|
|
5
|
-
*
|
|
6
|
-
* ### With Resources
|
|
7
|
-
*
|
|
8
|
-
* This is an optional feature that can be used by
|
|
9
|
-
* record implementations to provide a typescript
|
|
10
|
-
* hint for the type of the resource.
|
|
11
|
-
*
|
|
12
|
-
* When used, EmberData
|
|
13
|
-
* take advantage of this to provide better type
|
|
14
|
-
* safety and intellisense.
|
|
15
|
-
*
|
|
16
|
-
* ### With Derivations
|
|
17
|
-
*
|
|
18
|
-
* Required for derivations registered with
|
|
19
|
-
* `store.registerDerivation(derivation)`.
|
|
20
|
-
*
|
|
21
|
-
* ```ts
|
|
22
|
-
* function concat(record: object, options: ObjectValue | null, prop: string): string {}
|
|
23
|
-
* concat[Name] = 'concat';
|
|
24
|
-
* ```
|
|
25
|
-
*
|
|
26
|
-
* ### With Transforms
|
|
27
|
-
*
|
|
28
|
-
* Required for new-style transformations registered
|
|
29
|
-
* with `store.registerTransform(transform)`.
|
|
30
|
-
*
|
|
31
|
-
* For legacy transforms, if not used,
|
|
32
|
-
* `attr<Transform>('name')` will allow any string name.
|
|
33
|
-
* `attr('name')` will always allow any string name.
|
|
34
|
-
*
|
|
35
|
-
* If used, `attr<Transform>('name')` will enforce
|
|
36
|
-
* that the name is the same as the transform name.
|
|
37
|
-
*
|
|
38
|
-
* @type {Symbol}
|
|
39
|
-
*/
|
|
40
|
-
export declare const Type:
|
|
3
|
+
* Symbol for the name of a resource, transformation
|
|
4
|
+
* or derivation.
|
|
5
|
+
*
|
|
6
|
+
* ### With Resources
|
|
7
|
+
*
|
|
8
|
+
* This is an optional feature that can be used by
|
|
9
|
+
* record implementations to provide a typescript
|
|
10
|
+
* hint for the type of the resource.
|
|
11
|
+
*
|
|
12
|
+
* When used, EmberData and WarpDrive APIs can
|
|
13
|
+
* take advantage of this to provide better type
|
|
14
|
+
* safety and intellisense.
|
|
15
|
+
*
|
|
16
|
+
* ### With Derivations
|
|
17
|
+
*
|
|
18
|
+
* Required for derivations registered with
|
|
19
|
+
* `store.registerDerivation(derivation)`.
|
|
20
|
+
*
|
|
21
|
+
* ```ts
|
|
22
|
+
* function concat(record: object, options: ObjectValue | null, prop: string): string {}
|
|
23
|
+
* concat[Name] = 'concat';
|
|
24
|
+
* ```
|
|
25
|
+
*
|
|
26
|
+
* ### With Transforms
|
|
27
|
+
*
|
|
28
|
+
* Required for new-style transformations registered
|
|
29
|
+
* with `store.registerTransform(transform)`.
|
|
30
|
+
*
|
|
31
|
+
* For legacy transforms, if not used,
|
|
32
|
+
* `attr<Transform>('name')` will allow any string name.
|
|
33
|
+
* `attr('name')` will always allow any string name.
|
|
34
|
+
*
|
|
35
|
+
* If used, `attr<Transform>('name')` will enforce
|
|
36
|
+
* that the name is the same as the transform name.
|
|
37
|
+
*
|
|
38
|
+
* @type {Symbol}
|
|
39
|
+
*/
|
|
40
|
+
export declare const Type: '___(unique) Symbol($type)';
|
|
41
41
|
/**
|
|
42
|
-
* Symbol for the type of a resource.
|
|
43
|
-
*
|
|
44
|
-
* This is an optional feature that can be used by
|
|
45
|
-
* record implementations to provide a typescript
|
|
46
|
-
* hint for the type of the resource.
|
|
47
|
-
*
|
|
48
|
-
* When used, EmberData
|
|
49
|
-
* take advantage of this to provide better type
|
|
50
|
-
* safety and intellisense.
|
|
51
|
-
*
|
|
52
|
-
* @type {Symbol}
|
|
53
|
-
*/
|
|
54
|
-
export declare const ResourceType:
|
|
42
|
+
* Symbol for the type of a resource.
|
|
43
|
+
*
|
|
44
|
+
* This is an optional feature that can be used by
|
|
45
|
+
* record implementations to provide a typescript
|
|
46
|
+
* hint for the type of the resource.
|
|
47
|
+
*
|
|
48
|
+
* When used, EmberData and WarpDrive APIs can
|
|
49
|
+
* take advantage of this to provide better type
|
|
50
|
+
* safety and intellisense.
|
|
51
|
+
*
|
|
52
|
+
* @type {Symbol}
|
|
53
|
+
*/
|
|
54
|
+
export declare const ResourceType: '___(unique) Symbol($type)';
|
|
55
55
|
/**
|
|
56
|
-
* Symbol for the name of a transform.
|
|
57
|
-
*
|
|
58
|
-
* This is an optional feature that can be used by
|
|
59
|
-
* transform implementations to provide a typescript
|
|
60
|
-
* hint for the name of the transform.
|
|
61
|
-
*
|
|
62
|
-
* If not used, `attr<Transform>('name')` will
|
|
63
|
-
* allow any string name. `attr('name')` will always
|
|
64
|
-
* allow any string name.
|
|
65
|
-
*
|
|
66
|
-
* If used, `attr<Transform>('name')` will enforce
|
|
67
|
-
* that the name is the same as the transform name.
|
|
68
|
-
*
|
|
69
|
-
* @type {Symbol}
|
|
70
|
-
*/
|
|
71
|
-
export declare const TransformName:
|
|
56
|
+
* Symbol for the name of a transform.
|
|
57
|
+
*
|
|
58
|
+
* This is an optional feature that can be used by
|
|
59
|
+
* transform implementations to provide a typescript
|
|
60
|
+
* hint for the name of the transform.
|
|
61
|
+
*
|
|
62
|
+
* If not used, `attr<Transform>('name')` will
|
|
63
|
+
* allow any string name. `attr('name')` will always
|
|
64
|
+
* allow any string name.
|
|
65
|
+
*
|
|
66
|
+
* If used, `attr<Transform>('name')` will enforce
|
|
67
|
+
* that the name is the same as the transform name.
|
|
68
|
+
*
|
|
69
|
+
* @type {Symbol}
|
|
70
|
+
*/
|
|
71
|
+
export declare const TransformName: '___(unique) Symbol($type)';
|
|
72
72
|
/**
|
|
73
|
-
* Symbol for use by builders to indicate the return type
|
|
74
|
-
* generic to use for store.request()
|
|
75
|
-
*
|
|
76
|
-
* @type {Symbol}
|
|
77
|
-
*/
|
|
78
|
-
export declare const RequestSignature:
|
|
73
|
+
* Symbol for use by builders to indicate the return type
|
|
74
|
+
* generic to use for store.request()
|
|
75
|
+
*
|
|
76
|
+
* @type {Symbol}
|
|
77
|
+
*/
|
|
78
|
+
export declare const RequestSignature: '___(unique) Symbol(RequestSignature)';
|
|
79
|
+
//# sourceMappingURL=symbols.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"symbols.d.ts","sourceRoot":"","sources":["../../src/types/symbols.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,EAAE,2BAAsE,CAAC;AAEjG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,eAAO,MAAM,IAAI,EAAE,2BAAsE,CAAC;AAE1F;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,YAAY,EAAE,2BAAkC,CAAC;AAE9D;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,aAAa,EAAE,2BAAkC,CAAC;AAE/D;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,EAAE,sCAG9B,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export type WithPartial<
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
export type WithPartial<T, K extends keyof T> = Omit<T, K> & Partial<Pick<T, K>>;
|
|
2
|
+
export type Mutable<T> = {
|
|
3
|
+
-readonly [P in keyof T]: T[P];
|
|
4
|
+
};
|
|
5
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/types/utils.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAEjF,MAAM,MAAM,OAAO,CAAC,CAAC,IAAI;IAAE,CAAC,UAAU,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAE,CAAC"}
|
package/declarations/types.d.ts
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This package provides core types, type-utilities, symbols
|
|
3
|
-
* and constants used across the WarpDrive ecosystem.
|
|
4
|
-
*
|
|
5
|
-
* @module
|
|
6
|
-
*/
|
|
7
|
-
export type { StableRecordIdentifier, ResourceKey } from
|
|
8
|
-
|
|
9
|
-
export type { ModelSchema } from "./store/-types/q/ds-model.js";
|
|
10
|
-
export type { SchemaService } from "./store/-types/q/schema-service.js";
|
|
11
|
-
export type { BaseFinderOptions, FindRecordOptions, LegacyResourceQuery, QueryOptions, FindAllOptions } from "./store/-types/q/store.js";
|
|
2
|
+
* This package provides core types, type-utilities, symbols
|
|
3
|
+
* and constants used across the WarpDrive ecosystem.
|
|
4
|
+
*
|
|
5
|
+
* @module
|
|
6
|
+
*/
|
|
7
|
+
export type { StableRecordIdentifier, ResourceKey } from './types/identifier.ts';
|
|
8
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,YAAY,EAAE,sBAAsB,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { STRUCTURED, IS_FUTURE, SkipCache } from
|
|
2
|
-
import { getOrSetGlobal, getOrSetUniversal } from
|
|
1
|
+
import { STRUCTURED, IS_FUTURE, SkipCache } from "./types/request.js";
|
|
2
|
+
import { getOrSetGlobal, getOrSetUniversal } from "./types/-private.js";
|
|
3
3
|
import { macroCondition, getGlobalConfig } from '@embroider/macros';
|
|
4
4
|
const BODY_TYPES = {
|
|
5
5
|
type: 'string',
|