@warp-drive/core-types 0.0.0-alpha.18 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@warp-drive/core-types",
3
- "version": "0.0.0-alpha.18",
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.32",
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.32",
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,2 +1,4 @@
1
- export type ResourceBlob = unknown;
2
- //# sourceMappingURL=aliases.d.ts.map
1
+ declare module '@warp-drive/core-types/cache/aliases' {
2
+ export type ResourceBlob = unknown;
3
+ //# sourceMappingURL=aliases.d.ts.map
4
+ }
@@ -1,7 +1,9 @@
1
- import type { StableDocumentIdentifier, StableRecordIdentifier } from '../identifier';
2
- export interface Change {
3
- identifier: StableRecordIdentifier | StableDocumentIdentifier;
4
- op: 'upsert' | 'remove';
5
- patch?: unknown;
6
- }
7
- //# sourceMappingURL=change.d.ts.map
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
- import type { StableRecordIdentifier } from '../identifier';
2
- export interface AddToRelatedRecordsMutation {
3
- op: 'addToRelatedRecords';
4
- record: StableRecordIdentifier;
5
- field: string;
6
- value: StableRecordIdentifier | StableRecordIdentifier[];
7
- index?: number;
8
- }
9
- export interface RemoveFromRelatedRecordsMutation {
10
- op: 'removeFromRelatedRecords';
11
- record: StableRecordIdentifier;
12
- field: string;
13
- value: StableRecordIdentifier | StableRecordIdentifier[];
14
- index?: number;
15
- }
16
- export interface ReplaceRelatedRecordMutation {
17
- op: 'replaceRelatedRecord';
18
- record: StableRecordIdentifier;
19
- field: string;
20
- value: StableRecordIdentifier | null;
21
- prior?: StableRecordIdentifier;
22
- index?: number;
23
- }
24
- export interface ReplaceRelatedRecordsMutation {
25
- op: 'replaceRelatedRecords';
26
- record: StableRecordIdentifier;
27
- field: string;
28
- value: StableRecordIdentifier[];
29
- prior?: StableRecordIdentifier[];
30
- index?: number;
31
- }
32
- export interface SortRelatedRecordsMutation {
33
- op: 'sortRelatedRecords';
34
- record: StableRecordIdentifier;
35
- field: string;
36
- value: StableRecordIdentifier[];
37
- }
38
- export type Mutation = ReplaceRelatedRecordsMutation | ReplaceRelatedRecordMutation | RemoveFromRelatedRecordsMutation | AddToRelatedRecordsMutation | SortRelatedRecordsMutation;
39
- //# sourceMappingURL=mutations.d.ts.map
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
- import type { StableRecordIdentifier } from '../identifier';
2
- export interface Op {
3
- op: string;
4
- }
5
- export interface MergeOperation extends Op {
6
- op: 'mergeIdentifiers';
7
- record: StableRecordIdentifier;
8
- value: StableRecordIdentifier;
9
- }
10
- export interface RemoveOperation extends Op {
11
- op: 'removeIdentifier';
12
- record: StableRecordIdentifier;
13
- }
14
- export type Operation = MergeOperation | RemoveOperation;
15
- //# sourceMappingURL=operations.d.ts.map
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
- import type { StableRecordIdentifier } from '../identifier';
2
- import type { Links, Meta, PaginationLinks } from '../spec/raw';
3
- export interface ResourceRelationship {
4
- data?: StableRecordIdentifier | null;
5
- meta?: Meta;
6
- links?: Links;
7
- }
8
- export interface CollectionRelationship {
9
- data?: StableRecordIdentifier[];
10
- meta?: Meta;
11
- links?: PaginationLinks;
12
- }
13
- export type Relationship = ResourceRelationship | CollectionRelationship;
14
- //# sourceMappingURL=relationship.d.ts.map
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
+ }