@aws-amplify/datastore 5.0.31 → 5.0.32-datastore-deprecated-schema-type.65f577d.0
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/dist/esm/types.d.ts +7 -1
- package/package.json +73 -73
- package/src/types.ts +9 -1
package/dist/esm/types.d.ts
CHANGED
|
@@ -5,7 +5,13 @@ import { InternalAPI } from '@aws-amplify/api/internals';
|
|
|
5
5
|
import { Adapter } from './storage/adapter';
|
|
6
6
|
import { GraphQLAuthMode } from '@aws-amplify/core/internals/utils';
|
|
7
7
|
export type Scalar<T> = T extends Array<infer InnerType> ? InnerType : T;
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated If you intended to use the Schema for `generateClient`, then you've imported the wrong Schema type.
|
|
10
|
+
* Use `import { type Schema } from '../amplify/data/resource' instead. If you intended to import the type for DataStore
|
|
11
|
+
* Schemas, then import "DataStoreSchema" instead.
|
|
12
|
+
*/
|
|
13
|
+
export type Schema = DataStoreSchema;
|
|
14
|
+
export type DataStoreSchema = UserSchema & {
|
|
9
15
|
version: string;
|
|
10
16
|
codegenVersion: string;
|
|
11
17
|
};
|
package/package.json
CHANGED
|
@@ -1,75 +1,75 @@
|
|
|
1
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
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
2
|
+
"name": "@aws-amplify/datastore",
|
|
3
|
+
"version": "5.0.32-datastore-deprecated-schema-type.65f577d.0+65f577d",
|
|
4
|
+
"description": "AppSyncLocal support for aws-amplify",
|
|
5
|
+
"main": "./dist/cjs/index.js",
|
|
6
|
+
"module": "./dist/esm/index.mjs",
|
|
7
|
+
"typings": "./dist/esm/index.d.ts",
|
|
8
|
+
"react-native": "./src/index.ts",
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"access": "public"
|
|
11
|
+
},
|
|
12
|
+
"sideEffects": [
|
|
13
|
+
"./dist/cjs/datastore/datastore.js",
|
|
14
|
+
"./dist/esm/datastore/datastore.mjs"
|
|
15
|
+
],
|
|
16
|
+
"scripts": {
|
|
17
|
+
"test": "npm run lint && jest -w 1 --coverage --logHeapUsage",
|
|
18
|
+
"test:size": "size-limit",
|
|
19
|
+
"build-with-test": "npm test && npm run build",
|
|
20
|
+
"build:umd": "webpack && webpack --config ./webpack.config.dev.js",
|
|
21
|
+
"build:esm-cjs": "rollup -c rollup.config.mjs",
|
|
22
|
+
"build:watch": "npm run build:esm-cjs -- --watch",
|
|
23
|
+
"build": "npm run clean && npm run build:esm-cjs && npm run build:umd",
|
|
24
|
+
"clean": "npm run clean:size && rimraf dist lib lib-esm",
|
|
25
|
+
"clean:size": "rimraf dual-publish-tmp tmp*",
|
|
26
|
+
"format": "echo \"Not implemented\" && npm run ts-coverage",
|
|
27
|
+
"lint": "tslint '{__tests__,src}/**/*.ts' && npm run ts-coverage",
|
|
28
|
+
"ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 92.05"
|
|
29
|
+
},
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "https://github.com/aws-amplify/amplify-js.git"
|
|
33
|
+
},
|
|
34
|
+
"author": "Amazon Web Services",
|
|
35
|
+
"license": "Apache-2.0",
|
|
36
|
+
"bugs": {
|
|
37
|
+
"url": "https://github.com/aws/aws-amplify/issues"
|
|
38
|
+
},
|
|
39
|
+
"homepage": "https://aws-amplify.github.io/",
|
|
40
|
+
"files": [
|
|
41
|
+
"dist/cjs",
|
|
42
|
+
"dist/esm",
|
|
43
|
+
"src"
|
|
44
|
+
],
|
|
45
|
+
"dependencies": {
|
|
46
|
+
"@aws-amplify/api": "6.0.32-datastore-deprecated-schema-type.65f577d.0+65f577d",
|
|
47
|
+
"buffer": "4.9.2",
|
|
48
|
+
"idb": "5.0.6",
|
|
49
|
+
"immer": "9.0.6",
|
|
50
|
+
"rxjs": "^7.8.1",
|
|
51
|
+
"ulid": "^2.3.0"
|
|
52
|
+
},
|
|
53
|
+
"peerDependencies": {
|
|
54
|
+
"@aws-amplify/core": "6.1.1-datastore-deprecated-schema-type.65f577d.0+65f577d"
|
|
55
|
+
},
|
|
56
|
+
"devDependencies": {
|
|
57
|
+
"@aws-amplify/core": "6.1.1-datastore-deprecated-schema-type.65f577d.0+65f577d",
|
|
58
|
+
"@aws-amplify/react-native": "1.0.29-datastore-deprecated-schema-type.65f577d.0+65f577d",
|
|
59
|
+
"@types/uuid-validate": "^0.0.1",
|
|
60
|
+
"dexie": "3.2.2",
|
|
61
|
+
"dexie-export-import": "1.0.3",
|
|
62
|
+
"fake-indexeddb": "^4.0.2",
|
|
63
|
+
"graphql": "15.8.0",
|
|
64
|
+
"typescript": "5.0.2"
|
|
65
|
+
},
|
|
66
|
+
"size-limit": [
|
|
67
|
+
{
|
|
68
|
+
"name": "DataStore (top-level class)",
|
|
69
|
+
"path": "./dist/esm/index.mjs",
|
|
70
|
+
"import": "{ Amplify, DataStore }",
|
|
71
|
+
"limit": "65.25 kB"
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"gitHead": "65f577d96ea80c5e69bc049cefebb1fdfcd0a45d"
|
|
75
75
|
}
|
package/src/types.ts
CHANGED
|
@@ -22,10 +22,18 @@ import { GraphQLAuthMode } from '@aws-amplify/core/internals/utils';
|
|
|
22
22
|
export type Scalar<T> = T extends Array<infer InnerType> ? InnerType : T;
|
|
23
23
|
|
|
24
24
|
//#region Schema types
|
|
25
|
-
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated If you intended to use the Schema for `generateClient`, then you've imported the wrong Schema type.
|
|
27
|
+
* Use `import { type Schema } from '../amplify/data/resource' instead. If you intended to import the type for DataStore
|
|
28
|
+
* Schemas, then import "DataStoreSchema" instead.
|
|
29
|
+
*/
|
|
30
|
+
export type Schema = DataStoreSchema;
|
|
31
|
+
|
|
32
|
+
export type DataStoreSchema = UserSchema & {
|
|
26
33
|
version: string;
|
|
27
34
|
codegenVersion: string;
|
|
28
35
|
};
|
|
36
|
+
|
|
29
37
|
export type UserSchema = {
|
|
30
38
|
models: SchemaModels;
|
|
31
39
|
nonModels?: SchemaNonModels;
|