@warp-drive/core-types 0.0.0-alpha.17 → 0.0.0-alpha.19
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/package.json +3 -3
- package/unstable-preview-types/cache/aliases.d.ts +4 -2
- package/unstable-preview-types/cache/change.d.ts +9 -7
- package/unstable-preview-types/cache/mutations.d.ts +41 -39
- package/unstable-preview-types/cache/operations.d.ts +17 -15
- package/unstable-preview-types/cache/relationship.d.ts +16 -14
- package/unstable-preview-types/cache.d.ts +477 -475
- package/unstable-preview-types/graph.d.ts +70 -68
- package/unstable-preview-types/identifier.d.ts +111 -109
- package/unstable-preview-types/index.d.ts +21 -2
- package/unstable-preview-types/json/raw.d.ts +9 -7
- package/unstable-preview-types/params.d.ts +9 -7
- package/unstable-preview-types/record.d.ts +48 -46
- package/unstable-preview-types/request.d.ts +309 -307
- package/unstable-preview-types/schema.d.ts +26 -24
- package/unstable-preview-types/spec/document.d.ts +33 -31
- package/unstable-preview-types/spec/error.d.ts +21 -19
- package/unstable-preview-types/spec/raw.d.ts +135 -133
- package/unstable-preview-types/symbols.d.ts +37 -35
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@warp-drive/core-types",
|
|
3
|
-
"version": "0.0.0-alpha.
|
|
3
|
+
"version": "0.0.0-alpha.19",
|
|
4
4
|
"description": "Provides core logic, utils and types for WarpDrive and EmberData",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"NCC-1701-a-blue.svg"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@ember-data/private-build-infra": "5.4.0-alpha.
|
|
25
|
+
"@ember-data/private-build-infra": "5.4.0-alpha.33",
|
|
26
26
|
"ember-cli-babel": "^8.2.0",
|
|
27
27
|
"pnpm-sync-dependencies-meta-injected": "0.0.10"
|
|
28
28
|
},
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@glimmer/component": "^1.1.2",
|
|
47
47
|
"@rollup/plugin-babel": "^6.0.4",
|
|
48
48
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
49
|
-
"@warp-drive/internal-config": "5.4.0-alpha.
|
|
49
|
+
"@warp-drive/internal-config": "5.4.0-alpha.33",
|
|
50
50
|
"ember-source": "~5.6.0",
|
|
51
51
|
"rollup": "^4.9.6",
|
|
52
52
|
"typescript": "^5.3.3",
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
declare module '@warp-drive/core-types/cache/change' {
|
|
2
|
+
import type { StableDocumentIdentifier, StableRecordIdentifier } from '@warp-drive/core-types/identifier';
|
|
3
|
+
export interface Change {
|
|
4
|
+
identifier: StableRecordIdentifier | StableDocumentIdentifier;
|
|
5
|
+
op: 'upsert' | 'remove';
|
|
6
|
+
patch?: unknown;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=change.d.ts.map
|
|
9
|
+
}
|
|
@@ -1,39 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
1
|
+
declare module '@warp-drive/core-types/cache/mutations' {
|
|
2
|
+
import type { StableRecordIdentifier } from '@warp-drive/core-types/identifier';
|
|
3
|
+
export interface AddToRelatedRecordsMutation {
|
|
4
|
+
op: 'addToRelatedRecords';
|
|
5
|
+
record: StableRecordIdentifier;
|
|
6
|
+
field: string;
|
|
7
|
+
value: StableRecordIdentifier | StableRecordIdentifier[];
|
|
8
|
+
index?: number;
|
|
9
|
+
}
|
|
10
|
+
export interface RemoveFromRelatedRecordsMutation {
|
|
11
|
+
op: 'removeFromRelatedRecords';
|
|
12
|
+
record: StableRecordIdentifier;
|
|
13
|
+
field: string;
|
|
14
|
+
value: StableRecordIdentifier | StableRecordIdentifier[];
|
|
15
|
+
index?: number;
|
|
16
|
+
}
|
|
17
|
+
export interface ReplaceRelatedRecordMutation {
|
|
18
|
+
op: 'replaceRelatedRecord';
|
|
19
|
+
record: StableRecordIdentifier;
|
|
20
|
+
field: string;
|
|
21
|
+
value: StableRecordIdentifier | null;
|
|
22
|
+
prior?: StableRecordIdentifier;
|
|
23
|
+
index?: number;
|
|
24
|
+
}
|
|
25
|
+
export interface ReplaceRelatedRecordsMutation {
|
|
26
|
+
op: 'replaceRelatedRecords';
|
|
27
|
+
record: StableRecordIdentifier;
|
|
28
|
+
field: string;
|
|
29
|
+
value: StableRecordIdentifier[];
|
|
30
|
+
prior?: StableRecordIdentifier[];
|
|
31
|
+
index?: number;
|
|
32
|
+
}
|
|
33
|
+
export interface SortRelatedRecordsMutation {
|
|
34
|
+
op: 'sortRelatedRecords';
|
|
35
|
+
record: StableRecordIdentifier;
|
|
36
|
+
field: string;
|
|
37
|
+
value: StableRecordIdentifier[];
|
|
38
|
+
}
|
|
39
|
+
export type Mutation = ReplaceRelatedRecordsMutation | ReplaceRelatedRecordMutation | RemoveFromRelatedRecordsMutation | AddToRelatedRecordsMutation | SortRelatedRecordsMutation;
|
|
40
|
+
//# sourceMappingURL=mutations.d.ts.map
|
|
41
|
+
}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
declare module '@warp-drive/core-types/cache/operations' {
|
|
2
|
+
import type { StableRecordIdentifier } from '@warp-drive/core-types/identifier';
|
|
3
|
+
export interface Op {
|
|
4
|
+
op: string;
|
|
5
|
+
}
|
|
6
|
+
export interface MergeOperation extends Op {
|
|
7
|
+
op: 'mergeIdentifiers';
|
|
8
|
+
record: StableRecordIdentifier;
|
|
9
|
+
value: StableRecordIdentifier;
|
|
10
|
+
}
|
|
11
|
+
export interface RemoveOperation extends Op {
|
|
12
|
+
op: 'removeIdentifier';
|
|
13
|
+
record: StableRecordIdentifier;
|
|
14
|
+
}
|
|
15
|
+
export type Operation = MergeOperation | RemoveOperation;
|
|
16
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
17
|
+
}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
declare module '@warp-drive/core-types/cache/relationship' {
|
|
2
|
+
import type { StableRecordIdentifier } from '@warp-drive/core-types/identifier';
|
|
3
|
+
import type { Links, Meta, PaginationLinks } from '@warp-drive/core-types/spec/raw';
|
|
4
|
+
export interface ResourceRelationship {
|
|
5
|
+
data?: StableRecordIdentifier | null;
|
|
6
|
+
meta?: Meta;
|
|
7
|
+
links?: Links;
|
|
8
|
+
}
|
|
9
|
+
export interface CollectionRelationship {
|
|
10
|
+
data?: StableRecordIdentifier[];
|
|
11
|
+
meta?: Meta;
|
|
12
|
+
links?: PaginationLinks;
|
|
13
|
+
}
|
|
14
|
+
export type Relationship = ResourceRelationship | CollectionRelationship;
|
|
15
|
+
//# sourceMappingURL=relationship.d.ts.map
|
|
16
|
+
}
|