@aws-amplify/data-schema 1.17.5 → 1.18.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/SchemaProcessor.js +154 -6
- package/dist/cjs/SchemaProcessor.js.map +1 -1
- package/dist/esm/ClientSchema/Core/ClientCustomOperations.d.ts +9 -6
- package/dist/esm/CustomOperation.d.ts +1 -1
- package/dist/esm/SchemaProcessor.mjs +154 -6
- package/dist/esm/SchemaProcessor.mjs.map +1 -1
- package/dist/esm/runtime/bridge-types.d.ts +3 -1
- package/dist/meta/cjs.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/ClientSchema/Core/ClientCustomOperations.ts +14 -15
- package/src/CustomOperation.ts +1 -1
- package/src/SchemaProcessor.ts +212 -12
- package/src/runtime/bridge-types.ts +8 -1
|
@@ -11,6 +11,8 @@
|
|
|
11
11
|
import { Observable } from 'rxjs';
|
|
12
12
|
import { CustomHeaders, ModelSortDirection } from './client';
|
|
13
13
|
import { AiAction, AiCategory } from './internals/ai/getCustomUserAgentDetails';
|
|
14
|
+
import { CustomType } from '../CustomType';
|
|
15
|
+
import { RefType } from '../RefType';
|
|
14
16
|
export declare namespace AmplifyServer {
|
|
15
17
|
interface ContextToken {
|
|
16
18
|
readonly value: symbol;
|
|
@@ -177,7 +179,7 @@ export interface InputType {
|
|
|
177
179
|
}
|
|
178
180
|
type ScalarType = 'ID' | 'String' | 'Int' | 'Float' | 'AWSDate' | 'AWSTime' | 'AWSDateTime' | 'AWSTimestamp' | 'AWSEmail' | 'AWSURL' | 'AWSIPAddress' | 'Boolean' | 'AWSJSON' | 'AWSPhone';
|
|
179
181
|
export type FieldType = ScalarType | EnumType | ModelFieldType | NonModelFieldType;
|
|
180
|
-
export type InputFieldType = ScalarType | EnumType | InputType
|
|
182
|
+
export type InputFieldType = ScalarType | EnumType | InputType | CustomType<any> | RefType<any, any>;
|
|
181
183
|
export type FieldAttribute = ModelAttribute;
|
|
182
184
|
/**
|
|
183
185
|
* Field-level Relationship Definitions
|