@warp-drive/core-types 0.0.0-alpha.19 → 0.0.0-alpha.21
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 +2 -2
- package/unstable-preview-types/cache/change.d.ts +2 -2
- package/unstable-preview-types/cache/mutations.d.ts +2 -2
- package/unstable-preview-types/cache/operations.d.ts +2 -2
- package/unstable-preview-types/cache/relationship.d.ts +2 -2
- package/unstable-preview-types/cache.d.ts +2 -2
- package/unstable-preview-types/graph.d.ts +2 -2
- package/unstable-preview-types/identifier.d.ts +6 -6
- package/unstable-preview-types/index.d.ts +2 -2
- package/unstable-preview-types/json/raw.d.ts +2 -2
- package/unstable-preview-types/params.d.ts +2 -2
- package/unstable-preview-types/record.d.ts +2 -2
- package/unstable-preview-types/request.d.ts +6 -6
- package/unstable-preview-types/schema.d.ts +2 -2
- package/unstable-preview-types/spec/document.d.ts +2 -2
- package/unstable-preview-types/spec/error.d.ts +2 -2
- package/unstable-preview-types/spec/raw.d.ts +2 -2
- package/unstable-preview-types/symbols.d.ts +5 -5
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.21",
|
|
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.35",
|
|
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.35",
|
|
50
50
|
"ember-source": "~5.6.0",
|
|
51
51
|
"rollup": "^4.9.6",
|
|
52
52
|
"typescript": "^5.3.3",
|
|
@@ -37,5 +37,5 @@ declare module '@warp-drive/core-types/cache/mutations' {
|
|
|
37
37
|
value: StableRecordIdentifier[];
|
|
38
38
|
}
|
|
39
39
|
export type Mutation = ReplaceRelatedRecordsMutation | ReplaceRelatedRecordMutation | RemoveFromRelatedRecordsMutation | AddToRelatedRecordsMutation | SortRelatedRecordsMutation;
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=mutations.d.ts.map
|
|
@@ -12,5 +12,5 @@ declare module '@warp-drive/core-types/cache/relationship' {
|
|
|
12
12
|
links?: PaginationLinks;
|
|
13
13
|
}
|
|
14
14
|
export type Relationship = ResourceRelationship | CollectionRelationship;
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=relationship.d.ts.map
|
|
@@ -66,5 +66,5 @@ declare module '@warp-drive/core-types/graph' {
|
|
|
66
66
|
}
|
|
67
67
|
export type RemoteRelationshipOperation = UpdateRelationshipOperation | ReplaceRelatedRecordOperation | ReplaceRelatedRecordsOperation | DeleteRecordOperation | SortRelatedRecords;
|
|
68
68
|
export type LocalRelationshipOperation = ReplaceRelatedRecordsOperation | ReplaceRelatedRecordOperation | RemoveFromRelatedRecordsOperation | AddToRelatedRecordsOperation | SortRelatedRecords;
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=graph.d.ts.map
|
|
@@ -2,10 +2,10 @@ declare module '@warp-drive/core-types/identifier' {
|
|
|
2
2
|
/**
|
|
3
3
|
@module @ember-data/store
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
5
|
+
export const DEBUG_CLIENT_ORIGINATED: unique symbol;
|
|
6
|
+
export const DEBUG_IDENTIFIER_BUCKET: unique symbol;
|
|
7
|
+
export const DEBUG_STALE_CACHE_OWNER: unique symbol;
|
|
8
|
+
export const CACHE_OWNER: unique symbol;
|
|
9
9
|
export type IdentifierBucket = 'record' | 'document';
|
|
10
10
|
export interface Identifier {
|
|
11
11
|
lid: string;
|
|
@@ -107,5 +107,5 @@ declare module '@warp-drive/core-types/identifier' {
|
|
|
107
107
|
* @public
|
|
108
108
|
*/
|
|
109
109
|
export type StableRecordIdentifier<T extends string = string> = StableExistingRecordIdentifier<T> | StableNewRecordIdentifier<T>;
|
|
110
|
-
|
|
111
|
-
|
|
110
|
+
}
|
|
111
|
+
//# sourceMappingURL=identifier.d.ts.map
|
|
@@ -5,5 +5,5 @@ declare module '@warp-drive/core-types/params' {
|
|
|
5
5
|
arrayFormat?: 'bracket' | 'indices' | 'repeat' | 'comma';
|
|
6
6
|
};
|
|
7
7
|
export type QueryParamsSource = Record<string, Serializable> | URLSearchParams;
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=params.d.ts.map
|
|
@@ -44,5 +44,5 @@ declare module '@warp-drive/core-types/record' {
|
|
|
44
44
|
* @typedoc
|
|
45
45
|
*/
|
|
46
46
|
export type TypeFromInstanceOrString<T> = T extends TypedRecordInstance ? T[typeof ResourceType] : string;
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=record.d.ts.map
|
|
@@ -3,10 +3,10 @@ declare module '@warp-drive/core-types/request' {
|
|
|
3
3
|
import type { QueryParamsSerializationOptions } from '@warp-drive/core-types/params';
|
|
4
4
|
import type { ResourceIdentifierObject } from '@warp-drive/core-types/spec/raw';
|
|
5
5
|
type Store = unknown;
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
6
|
+
export const SkipCache: unique symbol;
|
|
7
|
+
export const EnableHydration: unique symbol;
|
|
8
|
+
export const IS_FUTURE: unique symbol;
|
|
9
|
+
export const STRUCTURED: unique symbol;
|
|
10
10
|
export type HTTPMethod = 'GET' | 'OPTIONS' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'HEAD';
|
|
11
11
|
/**
|
|
12
12
|
* Use these options to adjust CacheHandler behavior for a request.
|
|
@@ -305,5 +305,5 @@ declare module '@warp-drive/core-types/request' {
|
|
|
305
305
|
setResponse(response: Response | ResponseInfo): void;
|
|
306
306
|
}
|
|
307
307
|
export {};
|
|
308
|
-
|
|
309
|
-
|
|
308
|
+
}
|
|
309
|
+
//# sourceMappingURL=request.d.ts.map
|
|
@@ -29,5 +29,5 @@ declare module '@warp-drive/core-types/spec/document' {
|
|
|
29
29
|
errors: ApiError[];
|
|
30
30
|
}
|
|
31
31
|
export type ResourceDocument<T = StableExistingRecordIdentifier> = ResourceMetaDocument | SingleResourceDataDocument<T> | CollectionResourceDataDocument<T> | ResourceErrorDocument;
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=document.d.ts.map
|
|
@@ -131,5 +131,5 @@ declare module '@warp-drive/core-types/spec/raw' {
|
|
|
131
131
|
*/
|
|
132
132
|
export type JsonApiDocument<T extends string = string> = EmptyResourceDocument | SingleResourceDocument<T> | CollectionResourceDocument<T>;
|
|
133
133
|
export {};
|
|
134
|
-
|
|
135
|
-
|
|
134
|
+
}
|
|
135
|
+
//# sourceMappingURL=raw.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare module '@warp-drive/core-types/symbols' {
|
|
2
|
-
export
|
|
2
|
+
export const RecordStore: unique symbol;
|
|
3
3
|
/**
|
|
4
4
|
* Symbol for the type of a resource.
|
|
5
5
|
*
|
|
@@ -14,7 +14,7 @@ declare module '@warp-drive/core-types/symbols' {
|
|
|
14
14
|
* @type {Symbol}
|
|
15
15
|
* @typedoc
|
|
16
16
|
*/
|
|
17
|
-
export
|
|
17
|
+
export const ResourceType: unique symbol;
|
|
18
18
|
/**
|
|
19
19
|
* Symbol for the name of a transform.
|
|
20
20
|
*
|
|
@@ -32,6 +32,6 @@ declare module '@warp-drive/core-types/symbols' {
|
|
|
32
32
|
* @type {Symbol}
|
|
33
33
|
* @typedoc
|
|
34
34
|
*/
|
|
35
|
-
export
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
export const TransformName: unique symbol;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=symbols.d.ts.map
|