@ember-data-types/store 5.4.0-alpha.70 → 5.4.0-alpha.72
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
|
@@ -6,7 +6,7 @@ declare module '@ember-data/store/-types/q/schema-service' {
|
|
|
6
6
|
import type { RecordIdentifier } from '@warp-drive/core-types/identifier';
|
|
7
7
|
import type { ObjectValue } from '@warp-drive/core-types/json/raw';
|
|
8
8
|
import type { Derivation, HashFn, Transformation } from '@warp-drive/core-types/schema/concepts';
|
|
9
|
-
import type { FieldSchema, LegacyAttributeField, LegacyBelongsToField, LegacyHasManyField, ResourceSchema } from '@warp-drive/core-types/schema/fields';
|
|
9
|
+
import type { ArrayField, DerivedField, FieldSchema, GenericField, HashField, LegacyAttributeField, LegacyBelongsToField, LegacyHasManyField, ObjectField, ResourceSchema } from '@warp-drive/core-types/schema/fields';
|
|
10
10
|
export type AttributesSchema = Record<string, LegacyAttributeField>;
|
|
11
11
|
export type RelationshipsSchema = Record<string, LegacyBelongsToField | LegacyHasManyField>;
|
|
12
12
|
/**
|
|
@@ -119,32 +119,41 @@ declare module '@ember-data/store/-types/q/schema-service' {
|
|
|
119
119
|
type: string;
|
|
120
120
|
} | StableRecordIdentifier): Map<string, FieldSchema>;
|
|
121
121
|
/**
|
|
122
|
-
* Returns the transformation registered with the provided
|
|
122
|
+
* Returns the transformation registered with the name provided
|
|
123
|
+
* by `field.type`. Validates that the field is a valid transformable.
|
|
123
124
|
*
|
|
124
125
|
* @method transformation
|
|
125
126
|
* @public
|
|
126
|
-
* @param
|
|
127
|
+
* @param {TransformableField|{ type: string }} field
|
|
127
128
|
* @returns {Transformation}
|
|
128
129
|
*/
|
|
129
|
-
transformation(
|
|
130
|
+
transformation(field: GenericField | ObjectField | ArrayField | {
|
|
131
|
+
type: string;
|
|
132
|
+
}): Transformation;
|
|
130
133
|
/**
|
|
131
|
-
* Returns the hash function registered with the provided
|
|
134
|
+
* Returns the hash function registered with the name provided
|
|
135
|
+
* by `field.type`. Validates that the field is a valid HashField.
|
|
132
136
|
*
|
|
133
137
|
* @method hashFn
|
|
134
138
|
* @public
|
|
135
|
-
* @param
|
|
139
|
+
* @param {HashField|{ type: string }} field
|
|
136
140
|
* @returns {HashFn}
|
|
137
141
|
*/
|
|
138
|
-
hashFn(
|
|
142
|
+
hashFn(field: HashField | {
|
|
143
|
+
type: string;
|
|
144
|
+
}): HashFn;
|
|
139
145
|
/**
|
|
140
|
-
* Returns the derivation registered with the provided
|
|
146
|
+
* Returns the derivation registered with the name provided
|
|
147
|
+
* by `field.type`. Validates that the field is a valid DerivedField.
|
|
141
148
|
*
|
|
142
149
|
* @method derivation
|
|
143
150
|
* @public
|
|
144
|
-
* @param
|
|
151
|
+
* @param {DerivedField|{ type: string }} field
|
|
145
152
|
* @returns {Derivation}
|
|
146
153
|
*/
|
|
147
|
-
derivation(
|
|
154
|
+
derivation(field: DerivedField | {
|
|
155
|
+
type: string;
|
|
156
|
+
}): Derivation;
|
|
148
157
|
/**
|
|
149
158
|
* Returns the schema for the provided resource type.
|
|
150
159
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema-service.d.ts","sourceRoot":"","sources":["../../../src/-types/q/schema-service.ts"],"names":[],"mappings":"AAAA;;EAEE;AAEF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACjG,OAAO,KAAK,EACV,WAAW,EACX,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACf,MAAM,sCAAsC,CAAC;AAE9C,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAA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