Skip to content

Commit 45f821b

Browse files
committed
feat: multipart
1 parent 6f15738 commit 45f821b

File tree

12 files changed

+179
-1
lines changed

12 files changed

+179
-1
lines changed

src/main/kotlin/io/appwrite/enums/ImageFormat.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ enum class ImageFormat(val value: String) {
1212
@SerializedName("png")
1313
PNG("png"),
1414
@SerializedName("webp")
15-
WEBP("webp");
15+
WEBP("webp"),
16+
@SerializedName("avif")
17+
AVIF("avif");
1618

1719
override fun toString() = value
1820
}

src/main/kotlin/io/appwrite/models/AttributeBoolean.kt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,18 @@ data class AttributeBoolean(
4343
@SerializedName("array")
4444
var array: Boolean?,
4545

46+
/**
47+
* Attribute creation date in ISO 8601 format.
48+
*/
49+
@SerializedName("\$createdAt")
50+
val createdAt: String,
51+
52+
/**
53+
* Attribute update date in ISO 8601 format.
54+
*/
55+
@SerializedName("\$updatedAt")
56+
val updatedAt: String,
57+
4658
/**
4759
* Default value for attribute when not provided. Cannot be set when attribute is required.
4860
*/
@@ -57,6 +69,8 @@ data class AttributeBoolean(
5769
"error" to error as Any,
5870
"required" to required as Any,
5971
"array" to array as Any,
72+
"\$createdAt" to createdAt as Any,
73+
"\$updatedAt" to updatedAt as Any,
6074
"default" to default as Any,
6175
)
6276

@@ -72,6 +86,8 @@ data class AttributeBoolean(
7286
error = map["error"] as String,
7387
required = map["required"] as Boolean,
7488
array = map["array"] as? Boolean?,
89+
createdAt = map["\$createdAt"] as String,
90+
updatedAt = map["\$updatedAt"] as String,
7591
default = map["default"] as? Boolean?,
7692
)
7793
}

src/main/kotlin/io/appwrite/models/AttributeDatetime.kt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,18 @@ data class AttributeDatetime(
4343
@SerializedName("array")
4444
var array: Boolean?,
4545

46+
/**
47+
* Attribute creation date in ISO 8601 format.
48+
*/
49+
@SerializedName("\$createdAt")
50+
val createdAt: String,
51+
52+
/**
53+
* Attribute update date in ISO 8601 format.
54+
*/
55+
@SerializedName("\$updatedAt")
56+
val updatedAt: String,
57+
4658
/**
4759
* ISO 8601 format.
4860
*/
@@ -63,6 +75,8 @@ data class AttributeDatetime(
6375
"error" to error as Any,
6476
"required" to required as Any,
6577
"array" to array as Any,
78+
"\$createdAt" to createdAt as Any,
79+
"\$updatedAt" to updatedAt as Any,
6680
"format" to format as Any,
6781
"default" to default as Any,
6882
)
@@ -79,6 +93,8 @@ data class AttributeDatetime(
7993
error = map["error"] as String,
8094
required = map["required"] as Boolean,
8195
array = map["array"] as? Boolean?,
96+
createdAt = map["\$createdAt"] as String,
97+
updatedAt = map["\$updatedAt"] as String,
8298
format = map["format"] as String,
8399
default = map["default"] as? String?,
84100
)

src/main/kotlin/io/appwrite/models/AttributeEmail.kt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,18 @@ data class AttributeEmail(
4343
@SerializedName("array")
4444
var array: Boolean?,
4545

46+
/**
47+
* Attribute creation date in ISO 8601 format.
48+
*/
49+
@SerializedName("\$createdAt")
50+
val createdAt: String,
51+
52+
/**
53+
* Attribute update date in ISO 8601 format.
54+
*/
55+
@SerializedName("\$updatedAt")
56+
val updatedAt: String,
57+
4658
/**
4759
* String format.
4860
*/
@@ -63,6 +75,8 @@ data class AttributeEmail(
6375
"error" to error as Any,
6476
"required" to required as Any,
6577
"array" to array as Any,
78+
"\$createdAt" to createdAt as Any,
79+
"\$updatedAt" to updatedAt as Any,
6680
"format" to format as Any,
6781
"default" to default as Any,
6882
)
@@ -79,6 +93,8 @@ data class AttributeEmail(
7993
error = map["error"] as String,
8094
required = map["required"] as Boolean,
8195
array = map["array"] as? Boolean?,
96+
createdAt = map["\$createdAt"] as String,
97+
updatedAt = map["\$updatedAt"] as String,
8298
format = map["format"] as String,
8399
default = map["default"] as? String?,
84100
)

src/main/kotlin/io/appwrite/models/AttributeEnum.kt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,18 @@ data class AttributeEnum(
4343
@SerializedName("array")
4444
var array: Boolean?,
4545

46+
/**
47+
* Attribute creation date in ISO 8601 format.
48+
*/
49+
@SerializedName("\$createdAt")
50+
val createdAt: String,
51+
52+
/**
53+
* Attribute update date in ISO 8601 format.
54+
*/
55+
@SerializedName("\$updatedAt")
56+
val updatedAt: String,
57+
4658
/**
4759
* Array of elements in enumerated type.
4860
*/
@@ -69,6 +81,8 @@ data class AttributeEnum(
6981
"error" to error as Any,
7082
"required" to required as Any,
7183
"array" to array as Any,
84+
"\$createdAt" to createdAt as Any,
85+
"\$updatedAt" to updatedAt as Any,
7286
"elements" to elements as Any,
7387
"format" to format as Any,
7488
"default" to default as Any,
@@ -86,6 +100,8 @@ data class AttributeEnum(
86100
error = map["error"] as String,
87101
required = map["required"] as Boolean,
88102
array = map["array"] as? Boolean?,
103+
createdAt = map["\$createdAt"] as String,
104+
updatedAt = map["\$updatedAt"] as String,
89105
elements = map["elements"] as List<Any>,
90106
format = map["format"] as String,
91107
default = map["default"] as? String?,

src/main/kotlin/io/appwrite/models/AttributeFloat.kt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,18 @@ data class AttributeFloat(
4343
@SerializedName("array")
4444
var array: Boolean?,
4545

46+
/**
47+
* Attribute creation date in ISO 8601 format.
48+
*/
49+
@SerializedName("\$createdAt")
50+
val createdAt: String,
51+
52+
/**
53+
* Attribute update date in ISO 8601 format.
54+
*/
55+
@SerializedName("\$updatedAt")
56+
val updatedAt: String,
57+
4658
/**
4759
* Minimum value to enforce for new documents.
4860
*/
@@ -69,6 +81,8 @@ data class AttributeFloat(
6981
"error" to error as Any,
7082
"required" to required as Any,
7183
"array" to array as Any,
84+
"\$createdAt" to createdAt as Any,
85+
"\$updatedAt" to updatedAt as Any,
7286
"min" to min as Any,
7387
"max" to max as Any,
7488
"default" to default as Any,
@@ -86,6 +100,8 @@ data class AttributeFloat(
86100
error = map["error"] as String,
87101
required = map["required"] as Boolean,
88102
array = map["array"] as? Boolean?,
103+
createdAt = map["\$createdAt"] as String,
104+
updatedAt = map["\$updatedAt"] as String,
89105
min = (map["min"] as? Number)?.toDouble(),
90106
max = (map["max"] as? Number)?.toDouble(),
91107
default = (map["default"] as? Number)?.toDouble(),

src/main/kotlin/io/appwrite/models/AttributeInteger.kt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,18 @@ data class AttributeInteger(
4343
@SerializedName("array")
4444
var array: Boolean?,
4545

46+
/**
47+
* Attribute creation date in ISO 8601 format.
48+
*/
49+
@SerializedName("\$createdAt")
50+
val createdAt: String,
51+
52+
/**
53+
* Attribute update date in ISO 8601 format.
54+
*/
55+
@SerializedName("\$updatedAt")
56+
val updatedAt: String,
57+
4658
/**
4759
* Minimum value to enforce for new documents.
4860
*/
@@ -69,6 +81,8 @@ data class AttributeInteger(
6981
"error" to error as Any,
7082
"required" to required as Any,
7183
"array" to array as Any,
84+
"\$createdAt" to createdAt as Any,
85+
"\$updatedAt" to updatedAt as Any,
7286
"min" to min as Any,
7387
"max" to max as Any,
7488
"default" to default as Any,
@@ -86,6 +100,8 @@ data class AttributeInteger(
86100
error = map["error"] as String,
87101
required = map["required"] as Boolean,
88102
array = map["array"] as? Boolean?,
103+
createdAt = map["\$createdAt"] as String,
104+
updatedAt = map["\$updatedAt"] as String,
89105
min = (map["min"] as? Number)?.toLong(),
90106
max = (map["max"] as? Number)?.toLong(),
91107
default = (map["default"] as? Number)?.toLong(),

src/main/kotlin/io/appwrite/models/AttributeIp.kt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,18 @@ data class AttributeIp(
4343
@SerializedName("array")
4444
var array: Boolean?,
4545

46+
/**
47+
* Attribute creation date in ISO 8601 format.
48+
*/
49+
@SerializedName("\$createdAt")
50+
val createdAt: String,
51+
52+
/**
53+
* Attribute update date in ISO 8601 format.
54+
*/
55+
@SerializedName("\$updatedAt")
56+
val updatedAt: String,
57+
4658
/**
4759
* String format.
4860
*/
@@ -63,6 +75,8 @@ data class AttributeIp(
6375
"error" to error as Any,
6476
"required" to required as Any,
6577
"array" to array as Any,
78+
"\$createdAt" to createdAt as Any,
79+
"\$updatedAt" to updatedAt as Any,
6680
"format" to format as Any,
6781
"default" to default as Any,
6882
)
@@ -79,6 +93,8 @@ data class AttributeIp(
7993
error = map["error"] as String,
8094
required = map["required"] as Boolean,
8195
array = map["array"] as? Boolean?,
96+
createdAt = map["\$createdAt"] as String,
97+
updatedAt = map["\$updatedAt"] as String,
8298
format = map["format"] as String,
8399
default = map["default"] as? String?,
84100
)

src/main/kotlin/io/appwrite/models/AttributeRelationship.kt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,18 @@ data class AttributeRelationship(
4343
@SerializedName("array")
4444
var array: Boolean?,
4545

46+
/**
47+
* Attribute creation date in ISO 8601 format.
48+
*/
49+
@SerializedName("\$createdAt")
50+
val createdAt: String,
51+
52+
/**
53+
* Attribute update date in ISO 8601 format.
54+
*/
55+
@SerializedName("\$updatedAt")
56+
val updatedAt: String,
57+
4658
/**
4759
* The ID of the related collection.
4860
*/
@@ -87,6 +99,8 @@ data class AttributeRelationship(
8799
"error" to error as Any,
88100
"required" to required as Any,
89101
"array" to array as Any,
102+
"\$createdAt" to createdAt as Any,
103+
"\$updatedAt" to updatedAt as Any,
90104
"relatedCollection" to relatedCollection as Any,
91105
"relationType" to relationType as Any,
92106
"twoWay" to twoWay as Any,
@@ -107,6 +121,8 @@ data class AttributeRelationship(
107121
error = map["error"] as String,
108122
required = map["required"] as Boolean,
109123
array = map["array"] as? Boolean?,
124+
createdAt = map["\$createdAt"] as String,
125+
updatedAt = map["\$updatedAt"] as String,
110126
relatedCollection = map["relatedCollection"] as String,
111127
relationType = map["relationType"] as String,
112128
twoWay = map["twoWay"] as Boolean,

src/main/kotlin/io/appwrite/models/AttributeString.kt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,18 @@ data class AttributeString(
4343
@SerializedName("array")
4444
var array: Boolean?,
4545

46+
/**
47+
* Attribute creation date in ISO 8601 format.
48+
*/
49+
@SerializedName("\$createdAt")
50+
val createdAt: String,
51+
52+
/**
53+
* Attribute update date in ISO 8601 format.
54+
*/
55+
@SerializedName("\$updatedAt")
56+
val updatedAt: String,
57+
4658
/**
4759
* Attribute size.
4860
*/
@@ -63,6 +75,8 @@ data class AttributeString(
6375
"error" to error as Any,
6476
"required" to required as Any,
6577
"array" to array as Any,
78+
"\$createdAt" to createdAt as Any,
79+
"\$updatedAt" to updatedAt as Any,
6680
"size" to size as Any,
6781
"default" to default as Any,
6882
)
@@ -79,6 +93,8 @@ data class AttributeString(
7993
error = map["error"] as String,
8094
required = map["required"] as Boolean,
8195
array = map["array"] as? Boolean?,
96+
createdAt = map["\$createdAt"] as String,
97+
updatedAt = map["\$updatedAt"] as String,
8298
size = (map["size"] as Number).toLong(),
8399
default = map["default"] as? String?,
84100
)

0 commit comments

Comments
 (0)