@aws-amplify/data-schema
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -299,17 +299,20 @@ import { type DeepReadOnlyObject, type UnwrapArray, type UnionToIntersection, type Prettify } from '@aws-amplify/data-schema-types'; | ||
type ModelTypesClient<Model extends ClientSchemaByEntityTypeBaseShape['models'][string], FlatModel extends Record<string, unknown> = ResolvedModel<Model['type']>> = IndexQueryMethods<Model> & Omit<{ | ||
create: (model: Model['createType'], options?: { | ||
create<SelectionSet extends ReadonlyArray<ModelPath<FlatModel>> = never[]>(model: Model['createType'], options?: { | ||
selectionSet?: SelectionSet; | ||
authMode?: AuthMode; | ||
authToken?: string; | ||
headers?: CustomHeaders; | ||
}) => SingularReturnValue<Model['type']>; | ||
update: (model: Model['updateType'], options?: { | ||
}): SingularReturnValue<Prettify<ReturnValue<Model, FlatModel, SelectionSet>>>; | ||
update<SelectionSet extends ReadonlyArray<ModelPath<FlatModel>> = never[]>(model: Model['updateType'], options?: { | ||
selectionSet?: SelectionSet; | ||
authMode?: AuthMode; | ||
authToken?: string; | ||
headers?: CustomHeaders; | ||
}) => SingularReturnValue<Model['type']>; | ||
delete: (identifier: Model['deleteType'], options?: { | ||
}): SingularReturnValue<Prettify<ReturnValue<Model, FlatModel, SelectionSet>>>; | ||
delete<SelectionSet extends ReadonlyArray<ModelPath<FlatModel>> = never[]>(identifier: Model['deleteType'], options?: { | ||
selectionSet?: SelectionSet; | ||
authMode?: AuthMode; | ||
authToken?: string; | ||
headers?: CustomHeaders; | ||
}) => SingularReturnValue<Model['type']>; | ||
}): SingularReturnValue<Prettify<ReturnValue<Model, FlatModel, SelectionSet>>>; | ||
get<SelectionSet extends ReadonlyArray<ModelPath<FlatModel>> = never[]>(identifier: Model['identifier'], options?: { | ||
@@ -359,17 +362,20 @@ selectionSet?: SelectionSet; | ||
type ModelTypesSSRCookies<Model extends ClientSchemaByEntityTypeBaseShape['models'][string], FlatModel extends Record<string, unknown> = ResolvedModel<Model['type']>> = IndexQueryMethods<Model> & Omit<{ | ||
create: (model: Model['createType'], options?: { | ||
create<SelectionSet extends ReadonlyArray<ModelPath<FlatModel>> = never[]>(model: Model['createType'], options?: { | ||
selectionSet?: SelectionSet; | ||
authMode?: AuthMode; | ||
authToken?: string; | ||
headers?: CustomHeaders; | ||
}) => SingularReturnValue<Model['type']>; | ||
update: (model: Model['updateType'], options?: { | ||
}): SingularReturnValue<Prettify<ReturnValue<Model, FlatModel, SelectionSet>>>; | ||
update<SelectionSet extends ReadonlyArray<ModelPath<FlatModel>> = never[]>(model: Model['updateType'], options?: { | ||
selectionSet?: SelectionSet; | ||
authMode?: AuthMode; | ||
authToken?: string; | ||
headers?: CustomHeaders; | ||
}) => SingularReturnValue<Model['type']>; | ||
delete: (identifier: Model['deleteType'], options?: { | ||
}): SingularReturnValue<Prettify<ReturnValue<Model, FlatModel, SelectionSet>>>; | ||
delete<SelectionSet extends ReadonlyArray<ModelPath<FlatModel>> = never[]>(identifier: Model['deleteType'], options?: { | ||
selectionSet?: SelectionSet; | ||
authMode?: AuthMode; | ||
authToken?: string; | ||
headers?: CustomHeaders; | ||
}) => SingularReturnValue<Model['type']>; | ||
}): SingularReturnValue<Prettify<ReturnValue<Model, FlatModel, SelectionSet>>>; | ||
get<SelectionSet extends ReadonlyArray<ModelPath<FlatModel>> = never[]>(identifier: Model['identifier'], options?: { | ||
@@ -393,17 +399,20 @@ selectionSet?: SelectionSet; | ||
type ModelTypesSSRRequest<Model extends ClientSchemaByEntityTypeBaseShape['models'][string], FlatModel extends Record<string, unknown> = ResolvedModel<Model['type']>> = IndexQueryMethods<Model, 'REQUEST'> & Omit<{ | ||
create: (contextSpec: AmplifyServer.ContextSpec, model: Model['createType'], options?: { | ||
create<SelectionSet extends ReadonlyArray<ModelPath<FlatModel>> = never[]>(contextSpec: AmplifyServer.ContextSpec, model: Model['createType'], options?: { | ||
selectionSet?: SelectionSet; | ||
authMode?: AuthMode; | ||
authToken?: string; | ||
headers?: CustomHeaders; | ||
}) => SingularReturnValue<Model['type']>; | ||
update: (contextSpec: AmplifyServer.ContextSpec, model: Model['updateType'], options?: { | ||
}): SingularReturnValue<Prettify<ReturnValue<Model, FlatModel, SelectionSet>>>; | ||
update<SelectionSet extends ReadonlyArray<ModelPath<FlatModel>> = never[]>(contextSpec: AmplifyServer.ContextSpec, model: Model['updateType'], options?: { | ||
selectionSet?: SelectionSet; | ||
authMode?: AuthMode; | ||
authToken?: string; | ||
headers?: CustomHeaders; | ||
}) => SingularReturnValue<Model['type']>; | ||
delete: (contextSpec: AmplifyServer.ContextSpec, identifier: Model['deleteType'], options?: { | ||
}): SingularReturnValue<Prettify<ReturnValue<Model, FlatModel, SelectionSet>>>; | ||
delete<SelectionSet extends ReadonlyArray<ModelPath<FlatModel>> = never[]>(contextSpec: AmplifyServer.ContextSpec, identifier: Model['deleteType'], options?: { | ||
selectionSet?: SelectionSet; | ||
authMode?: AuthMode; | ||
authToken?: string; | ||
headers?: CustomHeaders; | ||
}) => SingularReturnValue<Model['type']>; | ||
}): SingularReturnValue<Prettify<ReturnValue<Model, FlatModel, SelectionSet>>>; | ||
get<SelectionSet extends ReadonlyArray<ModelPath<FlatModel>> = never[]>(contextSpec: AmplifyServer.ContextSpec, identifier: Model['identifier'], options?: { | ||
@@ -410,0 +419,0 @@ selectionSet?: SelectionSet; |
{ | ||
"name": "@aws-amplify/data-schema", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -514,5 +514,8 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
{ | ||
create: ( | ||
create< | ||
SelectionSet extends ReadonlyArray<ModelPath<FlatModel>> = never[], | ||
>( | ||
model: Model['createType'], | ||
options?: { | ||
selectionSet?: SelectionSet; | ||
authMode?: AuthMode; | ||
@@ -522,6 +525,11 @@ authToken?: string; | ||
}, | ||
) => SingularReturnValue<Model['type']>; | ||
update: ( | ||
): SingularReturnValue< | ||
Prettify<ReturnValue<Model, FlatModel, SelectionSet>> | ||
>; | ||
update< | ||
SelectionSet extends ReadonlyArray<ModelPath<FlatModel>> = never[], | ||
>( | ||
model: Model['updateType'], | ||
options?: { | ||
selectionSet?: SelectionSet; | ||
authMode?: AuthMode; | ||
@@ -531,6 +539,11 @@ authToken?: string; | ||
}, | ||
) => SingularReturnValue<Model['type']>; | ||
delete: ( | ||
): SingularReturnValue< | ||
Prettify<ReturnValue<Model, FlatModel, SelectionSet>> | ||
>; | ||
delete< | ||
SelectionSet extends ReadonlyArray<ModelPath<FlatModel>> = never[], | ||
>( | ||
identifier: Model['deleteType'], | ||
options?: { | ||
selectionSet?: SelectionSet; | ||
authMode?: AuthMode; | ||
@@ -540,4 +553,5 @@ authToken?: string; | ||
}, | ||
) => SingularReturnValue<Model['type']>; | ||
): SingularReturnValue< | ||
Prettify<ReturnValue<Model, FlatModel, SelectionSet>> | ||
>; | ||
get<SelectionSet extends ReadonlyArray<ModelPath<FlatModel>> = never[]>( | ||
@@ -565,3 +579,2 @@ identifier: Model['identifier'], | ||
): ListReturnValue<Prettify<ReturnValue<Model, FlatModel, SelectionSet>>>; | ||
onCreate< | ||
@@ -618,7 +631,11 @@ SelectionSet extends ReadonlyArray<ModelPath<FlatModel>> = never[], | ||
> = IndexQueryMethods<Model> & | ||
// Omit any disabled operations | ||
Omit< | ||
{ | ||
create: ( | ||
create< | ||
SelectionSet extends ReadonlyArray<ModelPath<FlatModel>> = never[], | ||
>( | ||
model: Model['createType'], | ||
options?: { | ||
selectionSet?: SelectionSet; | ||
authMode?: AuthMode; | ||
@@ -628,6 +645,11 @@ authToken?: string; | ||
}, | ||
) => SingularReturnValue<Model['type']>; | ||
update: ( | ||
): SingularReturnValue< | ||
Prettify<ReturnValue<Model, FlatModel, SelectionSet>> | ||
>; | ||
update< | ||
SelectionSet extends ReadonlyArray<ModelPath<FlatModel>> = never[], | ||
>( | ||
model: Model['updateType'], | ||
options?: { | ||
selectionSet?: SelectionSet; | ||
authMode?: AuthMode; | ||
@@ -637,6 +659,11 @@ authToken?: string; | ||
}, | ||
) => SingularReturnValue<Model['type']>; | ||
delete: ( | ||
): SingularReturnValue< | ||
Prettify<ReturnValue<Model, FlatModel, SelectionSet>> | ||
>; | ||
delete< | ||
SelectionSet extends ReadonlyArray<ModelPath<FlatModel>> = never[], | ||
>( | ||
identifier: Model['deleteType'], | ||
options?: { | ||
selectionSet?: SelectionSet; | ||
authMode?: AuthMode; | ||
@@ -646,4 +673,5 @@ authToken?: string; | ||
}, | ||
) => SingularReturnValue<Model['type']>; | ||
): SingularReturnValue< | ||
Prettify<ReturnValue<Model, FlatModel, SelectionSet>> | ||
>; | ||
get<SelectionSet extends ReadonlyArray<ModelPath<FlatModel>> = never[]>( | ||
@@ -680,8 +708,12 @@ identifier: Model['identifier'], | ||
> = IndexQueryMethods<Model, 'REQUEST'> & | ||
// Omit any disabled operations | ||
Omit< | ||
{ | ||
create: ( | ||
create< | ||
SelectionSet extends ReadonlyArray<ModelPath<FlatModel>> = never[], | ||
>( | ||
contextSpec: AmplifyServer.ContextSpec, | ||
model: Model['createType'], | ||
options?: { | ||
selectionSet?: SelectionSet; | ||
authMode?: AuthMode; | ||
@@ -691,7 +723,12 @@ authToken?: string; | ||
}, | ||
) => SingularReturnValue<Model['type']>; | ||
update: ( | ||
): SingularReturnValue< | ||
Prettify<ReturnValue<Model, FlatModel, SelectionSet>> | ||
>; | ||
update< | ||
SelectionSet extends ReadonlyArray<ModelPath<FlatModel>> = never[], | ||
>( | ||
contextSpec: AmplifyServer.ContextSpec, | ||
model: Model['updateType'], | ||
options?: { | ||
selectionSet?: SelectionSet; | ||
authMode?: AuthMode; | ||
@@ -701,7 +738,12 @@ authToken?: string; | ||
}, | ||
) => SingularReturnValue<Model['type']>; | ||
delete: ( | ||
): SingularReturnValue< | ||
Prettify<ReturnValue<Model, FlatModel, SelectionSet>> | ||
>; | ||
delete< | ||
SelectionSet extends ReadonlyArray<ModelPath<FlatModel>> = never[], | ||
>( | ||
contextSpec: AmplifyServer.ContextSpec, | ||
identifier: Model['deleteType'], | ||
options?: { | ||
selectionSet?: SelectionSet; | ||
authMode?: AuthMode; | ||
@@ -711,4 +753,5 @@ authToken?: string; | ||
}, | ||
) => SingularReturnValue<Model['type']>; | ||
): SingularReturnValue< | ||
Prettify<ReturnValue<Model, FlatModel, SelectionSet>> | ||
>; | ||
get<SelectionSet extends ReadonlyArray<ModelPath<FlatModel>> = never[]>( | ||
@@ -715,0 +758,0 @@ contextSpec: AmplifyServer.ContextSpec, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1913753
26161