1
+ /**
2
+ * Enum containing the Types that can be used to define ObjectTypes
3
+ */
4
+ export enum Type {
5
+ /**
6
+ * `ID` scalar type is a unique identifier. `ID` type is serialized similar to `String`.
7
+ *
8
+ * Often used as a key for a cache and not intended to be human-readable.
9
+ */
10
+ ID = 'ID' ,
11
+ /**
12
+ * `String` scalar type is a free-form human-readable text.
13
+ */
14
+ STRING = 'String' ,
15
+ /**
16
+ * `Int` scalar type is a signed non-fractional numerical value.
17
+ */
18
+ INT = 'Int' ,
19
+ /**
20
+ * `Float` scalar type is a signed double-precision fractional value.
21
+ */
22
+ FLOAT = 'Float' ,
23
+ /**
24
+ * `Boolean` scalar type is a boolean value: true or false.
25
+ */
26
+ BOOLEAN = 'Boolean' ,
27
+
28
+ /**
29
+ * `AWSDate` scalar type represents a valid extended `ISO 8601 Date` string.
30
+ *
31
+ * In other words, accepts date strings in the form of `YYYY-MM-DD`. It accepts time zone offsets.
32
+ *
33
+ * @see https://en.wikipedia.org/wiki/ISO_8601#Calendar_dates
34
+ */
35
+ AWS_DATE = 'AWSDate' ,
36
+ /**
37
+ * `AWSTime` scalar type represents a valid extended `ISO 8601 Time` string.
38
+ *
39
+ * In other words, accepts date strings in the form of `hh:mm:ss.sss`. It accepts time zone offsets.
40
+ *
41
+ * @see https://en.wikipedia.org/wiki/ISO_8601#Times
42
+ */
43
+ AWS_TIME = 'AWSTime' ,
44
+ /**
45
+ * `AWSDateTime` scalar type represents a valid extended `ISO 8601 DateTime` string.
46
+ *
47
+ * In other words, accepts date strings in the form of `YYYY-MM-DDThh:mm:ss.sssZ`. It accepts time zone offsets.
48
+ *
49
+ * @see https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations
50
+ */
51
+ AWS_DATE_TIME = 'AWSDateTime' ,
52
+ /**
53
+ * `AWSTimestamp` scalar type represents the number of seconds since `1970-01-01T00:00Z`.
54
+ *
55
+ * Timestamps are serialized and deserialized as numbers.
56
+ */
57
+ AWS_TIMESTAMP = 'AWSTimestamp' ,
58
+ /**
59
+ * `AWSEmail` scalar type represents an email address string (i.e.`username@example.com`)
60
+ */
61
+ AWS_EMAIL = 'AWSEmail' ,
62
+ /**
63
+ * `AWSJson` scalar type represents a JSON string.
64
+ */
65
+ AWS_JSON = 'AWSJSON' ,
66
+ /**
67
+ * `AWSURL` scalar type represetns a valid URL string.
68
+ *
69
+ * URLs wihtout schemes or contain double slashes are considered invalid.
70
+ */
71
+ AWS_URL = 'AWSURL' ,
72
+ /**
73
+ * `AWSPhone` scalar type represents a valid phone number. Phone numbers maybe be whitespace delimited or hyphenated.
74
+ *
75
+ * The number can specify a country code at the beginning, but is not required for US phone numbers.
76
+ */
77
+ AWS_PHONE = 'AWSPhone' ,
78
+ /**
79
+ * `AWSIPAddress` scalar type respresents a valid `IPv4` of `IPv6` address string.
80
+ */
81
+ AWS_IP_ADDRESS = 'AWSIPAddress' ,
82
+
83
+ /**
84
+ * Type used for Intermediate Types
85
+ * (i.e. an interface or an object type)
86
+ */
87
+ INTERMEDIATE = 'INTERMEDIATE' ,
88
+ }
0 commit comments