@warp-drive-types/core-types 5.6.0-beta.0 → 5.6.0-beta.2
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 +1 -1
- package/unstable-preview-types/-private.d.ts +3 -15
- package/unstable-preview-types/cache/aliases.d.ts +3 -3
- package/unstable-preview-types/cache/change.d.ts +3 -8
- package/unstable-preview-types/cache/mutations.d.ts +3 -40
- package/unstable-preview-types/cache/operations.d.ts +3 -73
- package/unstable-preview-types/cache/relationship.d.ts +3 -15
- package/unstable-preview-types/cache.d.ts +3 -530
- package/unstable-preview-types/graph.d.ts +3 -57
- package/unstable-preview-types/identifier.d.ts +3 -113
- package/unstable-preview-types/index.d.ts +14 -23
- package/unstable-preview-types/json/raw.d.ts +3 -8
- package/unstable-preview-types/params.d.ts +3 -11
- package/unstable-preview-types/record.d.ts +3 -104
- package/unstable-preview-types/request.d.ts +3 -338
- package/unstable-preview-types/runtime.d.ts +3 -17
- package/unstable-preview-types/schema/concepts.d.ts +3 -18
- package/unstable-preview-types/schema/fields.d.ts +3 -1886
- package/unstable-preview-types/spec/document.d.ts +3 -32
- package/unstable-preview-types/spec/error.d.ts +3 -20
- package/unstable-preview-types/spec/json-api-raw.d.ts +3 -143
- package/unstable-preview-types/symbols.d.ts +3 -84
- package/unstable-preview-types/utils.d.ts +3 -6
- package/unstable-preview-types/-private.d.ts.map +0 -1
- package/unstable-preview-types/cache/aliases.d.ts.map +0 -1
- package/unstable-preview-types/cache/change.d.ts.map +0 -1
- package/unstable-preview-types/cache/mutations.d.ts.map +0 -1
- package/unstable-preview-types/cache/operations.d.ts.map +0 -1
- package/unstable-preview-types/cache/relationship.d.ts.map +0 -1
- package/unstable-preview-types/cache.d.ts.map +0 -1
- package/unstable-preview-types/graph.d.ts.map +0 -1
- package/unstable-preview-types/identifier.d.ts.map +0 -1
- package/unstable-preview-types/index.d.ts.map +0 -1
- package/unstable-preview-types/json/raw.d.ts.map +0 -1
- package/unstable-preview-types/params.d.ts.map +0 -1
- package/unstable-preview-types/record.d.ts.map +0 -1
- package/unstable-preview-types/record.type-test.d.ts +0 -4
- package/unstable-preview-types/record.type-test.d.ts.map +0 -1
- package/unstable-preview-types/request.d.ts.map +0 -1
- package/unstable-preview-types/runtime.d.ts.map +0 -1
- package/unstable-preview-types/schema/concepts.d.ts.map +0 -1
- package/unstable-preview-types/schema/fields.d.ts.map +0 -1
- package/unstable-preview-types/schema/fields.type-test.d.ts +0 -4
- package/unstable-preview-types/schema/fields.type-test.d.ts.map +0 -1
- package/unstable-preview-types/spec/document.d.ts.map +0 -1
- package/unstable-preview-types/spec/error.d.ts.map +0 -1
- package/unstable-preview-types/spec/json-api-raw.d.ts.map +0 -1
- package/unstable-preview-types/symbols.d.ts.map +0 -1
- package/unstable-preview-types/utils.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,16 +1,4 @@
|
|
|
1
1
|
declare module '@warp-drive/core-types/-private' {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
type GlobalKey = `(transient) ${TransientKey}` | 'AdapterError' | 'InvalidError' | 'TimeoutError' | 'AbortError' | 'UnauthorizedError' | 'ForbiddenError' | 'NotFoundError' | 'ConflictError' | 'ServerError' | '#{}' | '#[]' | 'Signals' | 'AvailableShims' | 'FAKE_ARR' | '#source' | '#update' | '#notify' | 'IS_COLLECTION' | 'Touching' | 'RequestPromise' | 'SaveOp' | 'LEGACY_SUPPORT' | 'LegacySupport' | 'Graphs' | 'IS_FROZEN' | 'IS_CACHE_HANDLER' | 'CONFIG' | 'DEBUG_MAP' | 'IDENTIFIERS' | 'DOCUMENTS' | 'CacheForIdentifierCache' | 'RecordCache' | 'StoreMap' | 'Store' | '$type' | 'TransformName' | 'RequestSignature' | 'IS_FUTURE' | 'DOC' | 'ManagedArrayMap' | 'ManagedObjectMap' | 'Support' | 'SOURCE' | 'MUTATE' | 'Destroy' | 'Identifier' | 'Editable' | 'EmbeddedPath' | 'EmbeddedType' | 'Parent' | 'Checkout' | 'Legacy';
|
|
6
|
-
type UniqueSymbol<T extends string> = `___(unique) Symbol(${T})`;
|
|
7
|
-
type UniqueSymbolOr<T, K extends string> = T extends symbol ? UniqueSymbol<K> : T;
|
|
8
|
-
export function getOrSetGlobal<T, K extends GlobalKey>(key: K, value: T): UniqueSymbolOr<T, K>;
|
|
9
|
-
export function peekTransient<T>(key: TransientKey): T | null;
|
|
10
|
-
export function setTransient<T>(key: TransientKey, value: T): T;
|
|
11
|
-
export function getOrSetUniversal<T, K extends UniversalKey>(key: K, value: T): UniqueSymbolOr<T, K>;
|
|
12
|
-
export function peekUniversalTransient<T>(key: UniversalTransientKey): T | null;
|
|
13
|
-
export function setUniversalTransient<T>(key: UniversalTransientKey, value: T): T;
|
|
14
|
-
export {};
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=-private.d.ts.map
|
|
2
|
+
export * from "@warp-drive/core/types/-private";
|
|
3
|
+
|
|
4
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
declare module '@warp-drive/core-types/cache/aliases' {
|
|
2
|
-
export type
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
export type * from "@warp-drive/core/types/cache/aliases";
|
|
3
|
+
|
|
4
|
+
}
|
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
declare module '@warp-drive/core-types/cache/change' {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
op: 'upsert' | 'remove';
|
|
6
|
-
patch?: unknown;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=change.d.ts.map
|
|
2
|
+
export type * from "@warp-drive/core/types/cache/change";
|
|
3
|
+
|
|
4
|
+
}
|
|
@@ -1,41 +1,4 @@
|
|
|
1
1
|
declare module '@warp-drive/core-types/cache/mutations' {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
record: StableRecordIdentifier;
|
|
6
|
-
field: string;
|
|
7
|
-
value: StableRecordIdentifier | StableRecordIdentifier[];
|
|
8
|
-
index?: number;
|
|
9
|
-
}
|
|
10
|
-
export interface RemoveFromResourceRelationshipMutation {
|
|
11
|
-
op: 'remove';
|
|
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 | RemoveFromResourceRelationshipMutation | AddToResourceRelationshipMutation | SortRelatedRecordsMutation;
|
|
40
|
-
}
|
|
41
|
-
//# sourceMappingURL=mutations.d.ts.map
|
|
2
|
+
export type * from "@warp-drive/core/types/cache/mutations";
|
|
3
|
+
|
|
4
|
+
}
|
|
@@ -1,74 +1,4 @@
|
|
|
1
1
|
declare module '@warp-drive/core-types/cache/operations' {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import type { Relationship } from '@warp-drive/core-types/cache/relationship';
|
|
6
|
-
export interface Op {
|
|
7
|
-
op: string;
|
|
8
|
-
}
|
|
9
|
-
export interface MergeOperation extends Op {
|
|
10
|
-
op: 'mergeIdentifiers';
|
|
11
|
-
record: StableRecordIdentifier;
|
|
12
|
-
value: StableRecordIdentifier;
|
|
13
|
-
}
|
|
14
|
-
export interface RemoveDocumentOperation extends Op {
|
|
15
|
-
op: 'remove';
|
|
16
|
-
record: StableDocumentIdentifier;
|
|
17
|
-
}
|
|
18
|
-
export interface RemoveResourceOperation extends Op {
|
|
19
|
-
op: 'remove';
|
|
20
|
-
record: StableExistingRecordIdentifier;
|
|
21
|
-
}
|
|
22
|
-
export interface AddResourceOperation extends Op {
|
|
23
|
-
op: 'add';
|
|
24
|
-
record: StableExistingRecordIdentifier;
|
|
25
|
-
value: ExistingResourceObject;
|
|
26
|
-
}
|
|
27
|
-
export interface UpdateResourceOperation extends Op {
|
|
28
|
-
op: 'update';
|
|
29
|
-
record: StableExistingRecordIdentifier;
|
|
30
|
-
value: ExistingResourceObject;
|
|
31
|
-
}
|
|
32
|
-
export interface UpdateResourceFieldOperation extends Op {
|
|
33
|
-
op: 'update';
|
|
34
|
-
record: StableExistingRecordIdentifier;
|
|
35
|
-
field: string;
|
|
36
|
-
value: Value;
|
|
37
|
-
}
|
|
38
|
-
export interface UpdateResourceRelationshipOperation extends Op {
|
|
39
|
-
op: 'update';
|
|
40
|
-
record: StableExistingRecordIdentifier;
|
|
41
|
-
field: string;
|
|
42
|
-
value: Relationship<StableExistingRecordIdentifier>;
|
|
43
|
-
}
|
|
44
|
-
export interface AddToDocumentOperation extends Op {
|
|
45
|
-
op: 'add';
|
|
46
|
-
record: StableDocumentIdentifier;
|
|
47
|
-
field: 'data' | 'included';
|
|
48
|
-
value: StableExistingRecordIdentifier | StableExistingRecordIdentifier[];
|
|
49
|
-
index?: number;
|
|
50
|
-
}
|
|
51
|
-
export interface AddToResourceRelationshipOperation extends Op {
|
|
52
|
-
op: 'add';
|
|
53
|
-
record: StableExistingRecordIdentifier;
|
|
54
|
-
field: string;
|
|
55
|
-
value: StableExistingRecordIdentifier | StableExistingRecordIdentifier[];
|
|
56
|
-
index?: number;
|
|
57
|
-
}
|
|
58
|
-
export interface RemoveFromResourceRelationshipOperation extends Op {
|
|
59
|
-
op: 'remove';
|
|
60
|
-
record: StableExistingRecordIdentifier;
|
|
61
|
-
field: string;
|
|
62
|
-
value: StableExistingRecordIdentifier | StableExistingRecordIdentifier[];
|
|
63
|
-
index?: number;
|
|
64
|
-
}
|
|
65
|
-
export interface RemoveFromDocumentOperation extends Op {
|
|
66
|
-
op: 'remove';
|
|
67
|
-
record: StableDocumentIdentifier;
|
|
68
|
-
field: 'data' | 'included';
|
|
69
|
-
value: StableExistingRecordIdentifier | StableExistingRecordIdentifier[];
|
|
70
|
-
index?: number;
|
|
71
|
-
}
|
|
72
|
-
export type Operation = MergeOperation | RemoveResourceOperation | RemoveDocumentOperation | AddResourceOperation | UpdateResourceOperation | UpdateResourceFieldOperation | AddToResourceRelationshipOperation | RemoveFromResourceRelationshipOperation | AddToDocumentOperation | RemoveFromDocumentOperation;
|
|
73
|
-
}
|
|
74
|
-
//# sourceMappingURL=operations.d.ts.map
|
|
2
|
+
export type * from "@warp-drive/core/types/cache/operations";
|
|
3
|
+
|
|
4
|
+
}
|
|
@@ -1,16 +1,4 @@
|
|
|
1
1
|
declare module '@warp-drive/core-types/cache/relationship' {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
data?: T | null;
|
|
6
|
-
meta?: Meta;
|
|
7
|
-
links?: Links;
|
|
8
|
-
}
|
|
9
|
-
export interface CollectionRelationship<T = StableRecordIdentifier> {
|
|
10
|
-
data?: T[];
|
|
11
|
-
meta?: Meta;
|
|
12
|
-
links?: PaginationLinks;
|
|
13
|
-
}
|
|
14
|
-
export type Relationship<T = StableRecordIdentifier> = ResourceRelationship<T> | CollectionRelationship<T>;
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=relationship.d.ts.map
|
|
2
|
+
export type * from "@warp-drive/core/types/cache/relationship";
|
|
3
|
+
|
|
4
|
+
}
|