@aws-amplify/core 6.0.18-unstable.7d95fa1.0 → 6.0.18-unstable.7e4eff3.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/cjs/Platform/version.js +1 -1
- package/dist/cjs/Platform/version.js.map +1 -1
- package/dist/esm/Platform/version.d.ts +1 -1
- package/dist/esm/Platform/version.mjs +1 -1
- package/dist/esm/Platform/version.mjs.map +1 -1
- package/dist/esm/libraryUtils.d.ts +1 -1
- package/dist/esm/singleton/API/types.d.ts +18 -0
- package/package.json +3 -3
- package/src/Platform/version.ts +1 -1
- package/src/libraryUtils.ts +6 -0
- package/src/singleton/API/types.ts +21 -0
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.version = void 0;
|
|
5
5
|
// generated by genversion
|
|
6
|
-
exports.version = '6.0.18-unstable.
|
|
6
|
+
exports.version = '6.0.18-unstable.7e4eff3.0+7e4eff3';
|
|
7
7
|
//# sourceMappingURL=version.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sources":["../../../src/Platform/version.ts"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.version = void 0;\n// generated by genversion\nexports.version = '6.0.18-unstable.
|
|
1
|
+
{"version":3,"file":"version.js","sources":["../../../src/Platform/version.ts"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.version = void 0;\n// generated by genversion\nexports.version = '6.0.18-unstable.7e4eff3.0+7e4eff3';\n"],"names":[],"mappings":";;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC;AACzB;AACA,OAAO,CAAC,OAAO,GAAG,mCAAmC;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "6.0.18-unstable.
|
|
1
|
+
export declare const version = "6.0.18-unstable.7e4eff3.0+7e4eff3";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sources":["../../../src/Platform/version.ts"],"sourcesContent":["// generated by genversion\nexport const version = '6.0.18-unstable.
|
|
1
|
+
{"version":3,"file":"version.mjs","sources":["../../../src/Platform/version.ts"],"sourcesContent":["// generated by genversion\nexport const version = '6.0.18-unstable.7e4eff3.0+7e4eff3';\n"],"names":[],"mappings":"AAAA;AACY,MAAC,OAAO,GAAG;;;;"}
|
|
@@ -7,7 +7,7 @@ export { amplifyUuid } from './utils/amplifyUuid';
|
|
|
7
7
|
export { AmplifyUrl, AmplifyUrlSearchParams } from './utils/amplifyUrl';
|
|
8
8
|
export { decodeJWT, assertTokenProviderConfig, assertIdentityPoolIdConfig, assertOAuthConfig, } from './singleton/Auth/utils';
|
|
9
9
|
export { isTokenExpired } from './singleton/Auth';
|
|
10
|
-
export { AssociationBelongsTo, AssociationHasMany, AssociationHasOne, DocumentType, GraphQLAuthMode, ModelFieldType, NonModelFieldType, ModelIntrospectionSchema, SchemaModel, SchemaModels, ModelAttribute, SecondaryIndexAttribute, GraphQLProviderConfig, } from './singleton/API/types';
|
|
10
|
+
export { AssociationBelongsTo, AssociationHasMany, AssociationHasOne, DocumentType, GraphQLAuthMode, ModelFieldType, NonModelFieldType, ModelIntrospectionSchema, SchemaModel, SchemaModels, SchemaNonModel, SchemaNonModels, CustomOperations, CustomOperation, CustomOperationArguments, CustomOperationArgument, ModelAttribute, SecondaryIndexAttribute, GraphQLProviderConfig, } from './singleton/API/types';
|
|
11
11
|
export { Signer } from './Signer';
|
|
12
12
|
export { JWT, StrictUnion, CognitoIdentityPoolConfig, JwtPayload, AuthStandardAttributeKey, AuthVerifiableAttributeKey, AWSCredentials, } from './singleton/Auth/types';
|
|
13
13
|
export { haveCredentialsChanged } from './utils/haveCredentialsChanged';
|
|
@@ -85,6 +85,8 @@ export interface ModelIntrospectionSchema {
|
|
|
85
85
|
models: SchemaModels;
|
|
86
86
|
nonModels: SchemaNonModels;
|
|
87
87
|
enums: SchemaEnums;
|
|
88
|
+
queries?: CustomOperations;
|
|
89
|
+
mutations?: CustomOperations;
|
|
88
90
|
}
|
|
89
91
|
/**
|
|
90
92
|
* Top-level Entities on a Schema
|
|
@@ -92,6 +94,7 @@ export interface ModelIntrospectionSchema {
|
|
|
92
94
|
export type SchemaModels = Record<string, SchemaModel>;
|
|
93
95
|
export type SchemaNonModels = Record<string, SchemaNonModel>;
|
|
94
96
|
export type SchemaEnums = Record<string, SchemaEnum>;
|
|
97
|
+
export type CustomOperations = Record<string, CustomOperation>;
|
|
95
98
|
export interface SchemaModel {
|
|
96
99
|
name: string;
|
|
97
100
|
attributes?: ModelAttribute[];
|
|
@@ -120,6 +123,21 @@ export interface SecondaryIndexAttribute {
|
|
|
120
123
|
fields: string[];
|
|
121
124
|
};
|
|
122
125
|
}
|
|
126
|
+
export interface CustomOperation {
|
|
127
|
+
name: string;
|
|
128
|
+
type: FieldType;
|
|
129
|
+
isArray: boolean;
|
|
130
|
+
isRequired: boolean;
|
|
131
|
+
arguments: CustomOperationArguments;
|
|
132
|
+
}
|
|
133
|
+
export type CustomOperationArguments = Record<string, CustomOperationArgument>;
|
|
134
|
+
export interface CustomOperationArgument {
|
|
135
|
+
name: string;
|
|
136
|
+
type: FieldType;
|
|
137
|
+
isArray: boolean;
|
|
138
|
+
isRequired: boolean;
|
|
139
|
+
isArrayNullable?: boolean;
|
|
140
|
+
}
|
|
123
141
|
/**
|
|
124
142
|
* Field Definition
|
|
125
143
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/core",
|
|
3
|
-
"version": "6.0.18-unstable.
|
|
3
|
+
"version": "6.0.18-unstable.7e4eff3.0+7e4eff3",
|
|
4
4
|
"description": "Core category of aws-amplify",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.mjs",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"uuid": "^9.0.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@aws-amplify/react-native": "1.0.18-unstable.
|
|
63
|
+
"@aws-amplify/react-native": "1.0.18-unstable.7e4eff3.0+7e4eff3",
|
|
64
64
|
"@types/js-cookie": "3.0.2",
|
|
65
65
|
"genversion": "^2.2.0",
|
|
66
66
|
"typescript": "5.0.2"
|
|
@@ -192,5 +192,5 @@
|
|
|
192
192
|
]
|
|
193
193
|
}
|
|
194
194
|
},
|
|
195
|
-
"gitHead": "
|
|
195
|
+
"gitHead": "7e4eff3be3ec25520332330461ca2cefbf7bdbb7"
|
|
196
196
|
}
|
package/src/Platform/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// generated by genversion
|
|
2
|
-
export const version = '6.0.18-unstable.
|
|
2
|
+
export const version = '6.0.18-unstable.7e4eff3.0+7e4eff3';
|
package/src/libraryUtils.ts
CHANGED
|
@@ -44,6 +44,12 @@ export {
|
|
|
44
44
|
ModelIntrospectionSchema,
|
|
45
45
|
SchemaModel,
|
|
46
46
|
SchemaModels,
|
|
47
|
+
SchemaNonModel,
|
|
48
|
+
SchemaNonModels,
|
|
49
|
+
CustomOperations,
|
|
50
|
+
CustomOperation,
|
|
51
|
+
CustomOperationArguments,
|
|
52
|
+
CustomOperationArgument,
|
|
47
53
|
ModelAttribute,
|
|
48
54
|
SecondaryIndexAttribute,
|
|
49
55
|
GraphQLProviderConfig,
|
|
@@ -106,6 +106,8 @@ export interface ModelIntrospectionSchema {
|
|
|
106
106
|
models: SchemaModels;
|
|
107
107
|
nonModels: SchemaNonModels;
|
|
108
108
|
enums: SchemaEnums;
|
|
109
|
+
queries?: CustomOperations;
|
|
110
|
+
mutations?: CustomOperations;
|
|
109
111
|
}
|
|
110
112
|
|
|
111
113
|
/**
|
|
@@ -114,6 +116,7 @@ export interface ModelIntrospectionSchema {
|
|
|
114
116
|
export type SchemaModels = Record<string, SchemaModel>;
|
|
115
117
|
export type SchemaNonModels = Record<string, SchemaNonModel>;
|
|
116
118
|
export type SchemaEnums = Record<string, SchemaEnum>;
|
|
119
|
+
export type CustomOperations = Record<string, CustomOperation>;
|
|
117
120
|
|
|
118
121
|
export interface SchemaModel {
|
|
119
122
|
name: string;
|
|
@@ -146,6 +149,24 @@ export interface SecondaryIndexAttribute {
|
|
|
146
149
|
};
|
|
147
150
|
}
|
|
148
151
|
|
|
152
|
+
export interface CustomOperation {
|
|
153
|
+
name: string;
|
|
154
|
+
type: FieldType;
|
|
155
|
+
isArray: boolean;
|
|
156
|
+
isRequired: boolean;
|
|
157
|
+
arguments: CustomOperationArguments;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export type CustomOperationArguments = Record<string, CustomOperationArgument>;
|
|
161
|
+
|
|
162
|
+
export interface CustomOperationArgument {
|
|
163
|
+
name: string;
|
|
164
|
+
type: FieldType;
|
|
165
|
+
isArray: boolean;
|
|
166
|
+
isRequired: boolean;
|
|
167
|
+
isArrayNullable?: boolean;
|
|
168
|
+
}
|
|
169
|
+
|
|
149
170
|
/**
|
|
150
171
|
* Field Definition
|
|
151
172
|
*/
|