From a862d85a356356f23b9187c3471982fd8737f61c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20=E2=80=9CCLOVIS=E2=80=9D=20Canet?= Date: Sun, 9 Aug 2026 10:20:16 +0200 Subject: [PATCH] feat(dsl): Clarify between the US and ISO week numbering systems --- .../aggregation/AggregationOperators.kt | 10 +- .../operators/DateTimeValueOperators.kt | 134 ++-- .../aggregation/AggregationOperators.kt | 10 +- .../operators/DateTimeValueOperators.kt | 626 +++++++++--------- .../operators/DateTimeValueOperatorsTest.kt | 30 +- 5 files changed, 405 insertions(+), 405 deletions(-) diff --git a/dsl-template/src/commonMain/kotlin/aggregation/AggregationOperators.kt b/dsl-template/src/commonMain/kotlin/aggregation/AggregationOperators.kt index f7f9cf9a..6858469d 100644 --- a/dsl-template/src/commonMain/kotlin/aggregation/AggregationOperators.kt +++ b/dsl-template/src/commonMain/kotlin/aggregation/AggregationOperators.kt @@ -138,17 +138,17 @@ import opensavvy.ktmongo.dsl.query.FilterQuery * * Date and time operators: * - [`$dayOfMonth`][DateTimeValueOperators.dayOfMonth] - * - [`$dayOfWeek`][DateTimeValueOperators.dayOfWeek] + * - [`$dayOfWeek`][DateTimeValueOperators.dayOfWeekUS] * - [`$dayOfYear`][DateTimeValueOperators.dayOfYear] * - [`$hour`][DateTimeValueOperators.hour] - * - [`$isoDayOfWeek`][DateTimeValueOperators.dayOfWeekIso] - * - [`$isoWeek`][DateTimeValueOperators.weekIso] - * - [`$isoWeekYear`][DateTimeValueOperators.yearOfIsoWeek] + * - [`$isoDayOfWeek`][DateTimeValueOperators.dayOfWeekISO] + * - [`$isoWeek`][DateTimeValueOperators.weekISO] + * - [`$isoWeekYear`][DateTimeValueOperators.yearOfISOWeek] * - [`$millisecond`][DateTimeValueOperators.millisecond] * - [`$minute`][DateTimeValueOperators.minute] * - [`$month`][DateTimeValueOperators.month] * - [`$second`][DateTimeValueOperators.second] - * - [`$week`][DateTimeValueOperators.week] + * - [`$week`][DateTimeValueOperators.weekUS] * - [`$year`][DateTimeValueOperators.year] * * Trigonometric operators and angle management: diff --git a/dsl-template/src/commonMain/kotlin/aggregation/operators/DateTimeValueOperators.kt b/dsl-template/src/commonMain/kotlin/aggregation/operators/DateTimeValueOperators.kt index f756f2c6..29daa3c3 100644 --- a/dsl-template/src/commonMain/kotlin/aggregation/operators/DateTimeValueOperators.kt +++ b/dsl-template/src/commonMain/kotlin/aggregation/operators/DateTimeValueOperators.kt @@ -146,12 +146,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthweek: Int? = null, + * val birthweekUS: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthweek set User::birthdate.week + * User::birthweekUS set User::birthdate.weekUS * } * } * ``` @@ -161,7 +161,7 @@ interface DateTimeValueOperators : ValueOperators { * - [Official documentation](https://www.mongodb.com/docs/manual/reference/operator/aggregation/week/) */ @OptIn(LowLevelApi::class) - val Value.week: Value + val Value.weekUS: Value get() = UnaryOperator(context, "week", this) /** @@ -178,12 +178,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthweek: Int? = null, + * val birthweekUS: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthweek set User::birthdate.week + * User::birthweekUS set User::birthdate.weekUS * } * } * ``` @@ -194,8 +194,8 @@ interface DateTimeValueOperators : ValueOperators { */ @OptIn(LowLevelApi::class) @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("weekOfObjectId") - final val Value.week: Value + @get:JvmName("weekUSOfObjectId") + final val Value.weekUS: Value get() = UnaryOperator(context, "week", this) /** @@ -212,12 +212,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthweek: Int? = null, + * val birthweekUS: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthweek set User::birthdate.week + * User::birthweekUS set User::birthdate.weekUS * } * } * ``` @@ -228,8 +228,8 @@ interface DateTimeValueOperators : ValueOperators { */ @OptIn(LowLevelApi::class) @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("weekOfTimestamp") - final val Value.week: Value + @get:JvmName("weekUSOfTimestamp") + final val Value.weekUS: Value get() = UnaryOperator(context, "week", this) // endregion @@ -625,12 +625,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthweekIso: Int? = null, + * val birthweekISO: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthweekIso set User::birthdate.weekIso + * User::birthweekISO set User::birthdate.weekISO * } * } * ``` @@ -640,7 +640,7 @@ interface DateTimeValueOperators : ValueOperators { * - [Official documentation](https://www.mongodb.com/docs/manual/reference/operator/aggregation/isoWeek/) */ @OptIn(LowLevelApi::class) - val Value.weekIso: Value + val Value.weekISO: Value get() = UnaryOperator(context, "isoWeek", this) /** @@ -657,12 +657,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthweekIso: Int? = null, + * val birthweekISO: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthweekIso set User::birthdate.weekIso + * User::birthweekISO set User::birthdate.weekISO * } * } * ``` @@ -673,8 +673,8 @@ interface DateTimeValueOperators : ValueOperators { */ @OptIn(LowLevelApi::class) @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("weekIsoOfObjectId") - final val Value.weekIso: Value + @get:JvmName("weekISOOfObjectId") + final val Value.weekISO: Value get() = UnaryOperator(context, "isoWeek", this) /** @@ -691,12 +691,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthweekIso: Int? = null, + * val birthweekISO: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthweekIso set User::birthdate.weekIso + * User::birthweekISO set User::birthdate.weekISO * } * } * ``` @@ -707,8 +707,8 @@ interface DateTimeValueOperators : ValueOperators { */ @OptIn(LowLevelApi::class) @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("weekIsoOfTimestamp") - final val Value.weekIso: Value + @get:JvmName("weekISOOfTimestamp") + final val Value.weekISO: Value get() = UnaryOperator(context, "isoWeek", this) // endregion @@ -716,9 +716,9 @@ interface DateTimeValueOperators : ValueOperators { /** * Returns the year in ISO 8601 format, corresponding to the ISO week number returned by - * [weekIso]. + * [weekISO]. * - * The year always starts on the first day of [weekIso] 1, which must be a Monday. + * The year always starts on the first day of [weekISO] 1, which must be a Monday. * This means that the year may start anywhere between January 1st and January 7th (if January 1st was a Tuesday). * The year ends on the last synday of the last week, which may be at the start of January for the same reason. * @@ -730,12 +730,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthyearOfIsoWeek: Int? = null, + * val birthyearOfISOWeek: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthyearOfIsoWeek set User::birthdate.yearOfIsoWeek + * User::birthyearOfISOWeek set User::birthdate.yearOfISOWeek * } * } * ``` @@ -745,14 +745,14 @@ interface DateTimeValueOperators : ValueOperators { * - [Official documentation](https://www.mongodb.com/docs/manual/reference/operator/aggregation/isoWeekYear/) */ @OptIn(LowLevelApi::class) - val Value.yearOfIsoWeek: Value + val Value.yearOfISOWeek: Value get() = UnaryOperator(context, "isoWeekYear", this) /** * Returns the year in ISO 8601 format, corresponding to the ISO week number returned by - * [weekIso]. + * [weekISO]. * - * The year always starts on the first day of [weekIso] 1, which must be a Monday. + * The year always starts on the first day of [weekISO] 1, which must be a Monday. * This means that the year may start anywhere between January 1st and January 7th (if January 1st was a Tuesday). * The year ends on the last synday of the last week, which may be at the start of January for the same reason. * @@ -764,12 +764,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthyearOfIsoWeek: Int? = null, + * val birthyearOfISOWeek: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthyearOfIsoWeek set User::birthdate.yearOfIsoWeek + * User::birthyearOfISOWeek set User::birthdate.yearOfISOWeek * } * } * ``` @@ -780,15 +780,15 @@ interface DateTimeValueOperators : ValueOperators { */ @OptIn(LowLevelApi::class) @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("yearOfIsoWeekOfObjectId") - final val Value.yearOfIsoWeek: Value + @get:JvmName("yearOfISOWeekOfObjectId") + final val Value.yearOfISOWeek: Value get() = UnaryOperator(context, "isoWeekYear", this) /** * Returns the year in ISO 8601 format, corresponding to the ISO week number returned by - * [weekIso]. + * [weekISO]. * - * The year always starts on the first day of [weekIso] 1, which must be a Monday. + * The year always starts on the first day of [weekISO] 1, which must be a Monday. * This means that the year may start anywhere between January 1st and January 7th (if January 1st was a Tuesday). * The year ends on the last synday of the last week, which may be at the start of January for the same reason. * @@ -800,12 +800,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthyearOfIsoWeek: Int? = null, + * val birthyearOfISOWeek: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthyearOfIsoWeek set User::birthdate.yearOfIsoWeek + * User::birthyearOfISOWeek set User::birthdate.yearOfISOWeek * } * } * ``` @@ -816,8 +816,8 @@ interface DateTimeValueOperators : ValueOperators { */ @OptIn(LowLevelApi::class) @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("yearOfIsoWeekOfTimestamp") - final val Value.yearOfIsoWeek: Value + @get:JvmName("yearOfISOWeekOfTimestamp") + final val Value.yearOfISOWeek: Value get() = UnaryOperator(context, "isoWeekYear", this) // endregion @@ -826,7 +826,7 @@ interface DateTimeValueOperators : ValueOperators { /** * Returns the day of the week in ISO 8601 format, ranging from `1` (for Monday) to `7` (for Sunday). * - * To get the current week number, see [weekIso]. + * To get the current week number, see [weekISO]. * * The accepted date types are [Instant], [ObjectId] and [Timestamp]. * @@ -836,12 +836,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthdayOfWeekIso: Int? = null, + * val birthdayOfWeekISO: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthdayOfWeekIso set User::birthdate.dayOfWeekIso + * User::birthdayOfWeekISO set User::birthdate.dayOfWeekISO * } * } * ``` @@ -851,13 +851,13 @@ interface DateTimeValueOperators : ValueOperators { * - [Official documentation](https://www.mongodb.com/docs/manual/reference/operator/aggregation/isoDayOfWeek/) */ @OptIn(LowLevelApi::class) - val Value.dayOfWeekIso: Value + val Value.dayOfWeekISO: Value get() = UnaryOperator(context, "isoDayOfWeek", this) /** * Returns the day of the week in ISO 8601 format, ranging from `1` (for Monday) to `7` (for Sunday). * - * To get the current week number, see [weekIso]. + * To get the current week number, see [weekISO]. * * The accepted date types are [Instant], [ObjectId] and [Timestamp]. * @@ -867,12 +867,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthdayOfWeekIso: Int? = null, + * val birthdayOfWeekISO: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthdayOfWeekIso set User::birthdate.dayOfWeekIso + * User::birthdayOfWeekISO set User::birthdate.dayOfWeekISO * } * } * ``` @@ -883,14 +883,14 @@ interface DateTimeValueOperators : ValueOperators { */ @OptIn(LowLevelApi::class) @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("dayOfWeekIsoOfObjectId") - final val Value.dayOfWeekIso: Value + @get:JvmName("dayOfWeekISOOfObjectId") + final val Value.dayOfWeekISO: Value get() = UnaryOperator(context, "isoDayOfWeek", this) /** * Returns the day of the week in ISO 8601 format, ranging from `1` (for Monday) to `7` (for Sunday). * - * To get the current week number, see [weekIso]. + * To get the current week number, see [weekISO]. * * The accepted date types are [Instant], [ObjectId] and [Timestamp]. * @@ -900,12 +900,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthdayOfWeekIso: Int? = null, + * val birthdayOfWeekISO: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthdayOfWeekIso set User::birthdate.dayOfWeekIso + * User::birthdayOfWeekISO set User::birthdate.dayOfWeekISO * } * } * ``` @@ -916,8 +916,8 @@ interface DateTimeValueOperators : ValueOperators { */ @OptIn(LowLevelApi::class) @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("dayOfWeekIsoOfTimestamp") - final val Value.dayOfWeekIso: Value + @get:JvmName("dayOfWeekISOOfTimestamp") + final val Value.dayOfWeekISO: Value get() = UnaryOperator(context, "isoDayOfWeek", this) // endregion @@ -1114,7 +1114,7 @@ interface DateTimeValueOperators : ValueOperators { /** * Returns the day of the week for a date as a number between `1` (Sunday) and `7` (Saturday). * - * To use ISO 8601 day-of-week numbering (`1` for Monday to `7` for Sunday), see [dayOfWeekIso]. + * To use ISO 8601 day-of-week numbering (`1` for Monday to `7` for Sunday), see [dayOfWeekISO]. * * The accepted date types are [Instant], [ObjectId] and [Timestamp]. * @@ -1124,12 +1124,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthdayOfWeek: Int? = null, + * val birthdayOfWeekUS: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthdayOfWeek set User::birthdate.dayOfWeek + * User::birthdayOfWeekUS set User::birthdate.dayOfWeekUS * } * } * ``` @@ -1139,13 +1139,13 @@ interface DateTimeValueOperators : ValueOperators { * - [Official documentation](https://www.mongodb.com/docs/manual/reference/operator/aggregation/dayOfWeek/) */ @OptIn(LowLevelApi::class) - val Value.dayOfWeek: Value + val Value.dayOfWeekUS: Value get() = UnaryOperator(context, "dayOfWeek", this) /** * Returns the day of the week for a date as a number between `1` (Sunday) and `7` (Saturday). * - * To use ISO 8601 day-of-week numbering (`1` for Monday to `7` for Sunday), see [dayOfWeekIso]. + * To use ISO 8601 day-of-week numbering (`1` for Monday to `7` for Sunday), see [dayOfWeekISO]. * * The accepted date types are [Instant], [ObjectId] and [Timestamp]. * @@ -1155,12 +1155,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthdayOfWeek: Int? = null, + * val birthdayOfWeekUS: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthdayOfWeek set User::birthdate.dayOfWeek + * User::birthdayOfWeekUS set User::birthdate.dayOfWeekUS * } * } * ``` @@ -1171,14 +1171,14 @@ interface DateTimeValueOperators : ValueOperators { */ @OptIn(LowLevelApi::class) @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("dayOfWeekOfObjectId") - final val Value.dayOfWeek: Value + @get:JvmName("dayOfWeekUSOfObjectId") + final val Value.dayOfWeekUS: Value get() = UnaryOperator(context, "dayOfWeek", this) /** * Returns the day of the week for a date as a number between `1` (Sunday) and `7` (Saturday). * - * To use ISO 8601 day-of-week numbering (`1` for Monday to `7` for Sunday), see [dayOfWeekIso]. + * To use ISO 8601 day-of-week numbering (`1` for Monday to `7` for Sunday), see [dayOfWeekISO]. * * The accepted date types are [Instant], [ObjectId] and [Timestamp]. * @@ -1188,12 +1188,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthdayOfWeek: Int? = null, + * val birthdayOfWeekUS: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthdayOfWeek set User::birthdate.dayOfWeek + * User::birthdayOfWeekUS set User::birthdate.dayOfWeekUS * } * } * ``` @@ -1204,8 +1204,8 @@ interface DateTimeValueOperators : ValueOperators { */ @OptIn(LowLevelApi::class) @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("dayOfWeekOfTimestamp") - final val Value.dayOfWeek: Value + @get:JvmName("dayOfWeekUSOfTimestamp") + final val Value.dayOfWeekUS: Value get() = UnaryOperator(context, "dayOfWeek", this) // endregion diff --git a/dsl/src/commonMain/kotlin/aggregation/AggregationOperators.kt b/dsl/src/commonMain/kotlin/aggregation/AggregationOperators.kt index 68b20f2d..786436cb 100644 --- a/dsl/src/commonMain/kotlin/aggregation/AggregationOperators.kt +++ b/dsl/src/commonMain/kotlin/aggregation/AggregationOperators.kt @@ -141,17 +141,17 @@ import opensavvy.ktmongo.dsl.query.FilterQuery * * Date and time operators: * - [`$dayOfMonth`][DateTimeValueOperators.dayOfMonth] - * - [`$dayOfWeek`][DateTimeValueOperators.dayOfWeek] + * - [`$dayOfWeek`][DateTimeValueOperators.dayOfWeekUS] * - [`$dayOfYear`][DateTimeValueOperators.dayOfYear] * - [`$hour`][DateTimeValueOperators.hour] - * - [`$isoDayOfWeek`][DateTimeValueOperators.dayOfWeekIso] - * - [`$isoWeek`][DateTimeValueOperators.weekIso] - * - [`$isoWeekYear`][DateTimeValueOperators.yearOfIsoWeek] + * - [`$isoDayOfWeek`][DateTimeValueOperators.dayOfWeekISO] + * - [`$isoWeek`][DateTimeValueOperators.weekISO] + * - [`$isoWeekYear`][DateTimeValueOperators.yearOfISOWeek] * - [`$millisecond`][DateTimeValueOperators.millisecond] * - [`$minute`][DateTimeValueOperators.minute] * - [`$month`][DateTimeValueOperators.month] * - [`$second`][DateTimeValueOperators.second] - * - [`$week`][DateTimeValueOperators.week] + * - [`$week`][DateTimeValueOperators.weekUS] * - [`$year`][DateTimeValueOperators.year] * * Trigonometric operators and angle management: diff --git a/dsl/src/commonMain/kotlin/aggregation/operators/DateTimeValueOperators.kt b/dsl/src/commonMain/kotlin/aggregation/operators/DateTimeValueOperators.kt index c714213a..b555768a 100644 --- a/dsl/src/commonMain/kotlin/aggregation/operators/DateTimeValueOperators.kt +++ b/dsl/src/commonMain/kotlin/aggregation/operators/DateTimeValueOperators.kt @@ -426,12 +426,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthweek: Int? = null, + * val birthweekUS: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthweek set User::birthdate.week + * User::birthweekUS set User::birthdate.weekUS * } * } * ``` @@ -441,7 +441,7 @@ interface DateTimeValueOperators : ValueOperators { * - [Official documentation](https://www.mongodb.com/docs/manual/reference/operator/aggregation/week/) */ @OptIn(LowLevelApi::class) - val Value.week: Value + val Value.weekUS: Value get() = UnaryOperator(context, "week", this) /** @@ -458,12 +458,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthweek: Int? = null, + * val birthweekUS: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthweek set User::birthdate.week + * User::birthweekUS set User::birthdate.weekUS * } * } * ``` @@ -473,8 +473,8 @@ interface DateTimeValueOperators : ValueOperators { * - [Official documentation](https://www.mongodb.com/docs/manual/reference/operator/aggregation/week/) */ @OptIn(LowLevelApi::class) - val opensavvy.ktmongo.dsl.path.Field.week: Value - get() = of(this).week + val opensavvy.ktmongo.dsl.path.Field.weekUS: Value + get() = of(this).weekUS /** * Returns the week of the year for a date, ranging from `0` to `53`. @@ -490,12 +490,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthweek: Int? = null, + * val birthweekUS: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthweek set User::birthdate.week + * User::birthweekUS set User::birthdate.weekUS * } * } * ``` @@ -505,8 +505,8 @@ interface DateTimeValueOperators : ValueOperators { * - [Official documentation](https://www.mongodb.com/docs/manual/reference/operator/aggregation/week/) */ @OptIn(LowLevelApi::class) - val kotlin.reflect.KProperty1.week: Value - get() = of(this).week + val kotlin.reflect.KProperty1.weekUS: Value + get() = of(this).weekUS /** * Returns the week of the year for a date, ranging from `0` to `53`. @@ -522,12 +522,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthweek: Int? = null, + * val birthweekUS: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthweek set User::birthdate.week + * User::birthweekUS set User::birthdate.weekUS * } * } * ``` @@ -539,8 +539,8 @@ interface DateTimeValueOperators : ValueOperators { @kotlin.internal.LowPriorityInOverloadResolution @Suppress("INVISIBLE_REFERENCE") @OptIn(LowLevelApi::class) - val Instant.week: Value - get() = of(this).week + val Instant.weekUS: Value + get() = of(this).weekUS /** * Returns the week of the year for a date, ranging from `0` to `53`. @@ -556,12 +556,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthweek: Int? = null, + * val birthweekUS: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthweek set User::birthdate.week + * User::birthweekUS set User::birthdate.weekUS * } * } * ``` @@ -572,8 +572,8 @@ interface DateTimeValueOperators : ValueOperators { */ @OptIn(LowLevelApi::class) @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("weekOfObjectId") - final val Value.week: Value + @get:JvmName("weekUSOfObjectId") + final val Value.weekUS: Value get() = UnaryOperator(context, "week", this) /** @@ -590,12 +590,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthweek: Int? = null, + * val birthweekUS: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthweek set User::birthdate.week + * User::birthweekUS set User::birthdate.weekUS * } * } * ``` @@ -606,9 +606,9 @@ interface DateTimeValueOperators : ValueOperators { */ @OptIn(LowLevelApi::class) @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("weekOfObjectId") - final val opensavvy.ktmongo.dsl.path.Field.week: Value - get() = of(this).week + @get:JvmName("weekUSOfObjectId") + final val opensavvy.ktmongo.dsl.path.Field.weekUS: Value + get() = of(this).weekUS /** * Returns the week of the year for a date, ranging from `0` to `53`. @@ -624,12 +624,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthweek: Int? = null, + * val birthweekUS: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthweek set User::birthdate.week + * User::birthweekUS set User::birthdate.weekUS * } * } * ``` @@ -640,9 +640,9 @@ interface DateTimeValueOperators : ValueOperators { */ @OptIn(LowLevelApi::class) @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("weekOfObjectId") - final val kotlin.reflect.KProperty1.week: Value - get() = of(this).week + @get:JvmName("weekUSOfObjectId") + final val kotlin.reflect.KProperty1.weekUS: Value + get() = of(this).weekUS /** * Returns the week of the year for a date, ranging from `0` to `53`. @@ -658,12 +658,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthweek: Int? = null, + * val birthweekUS: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthweek set User::birthdate.week + * User::birthweekUS set User::birthdate.weekUS * } * } * ``` @@ -675,9 +675,9 @@ interface DateTimeValueOperators : ValueOperators { @kotlin.internal.LowPriorityInOverloadResolution @OptIn(LowLevelApi::class) @Suppress("INVISIBLE_REFERENCE", "WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("weekOfObjectId") - final val ObjectId.week: Value - get() = of(this).week + @get:JvmName("weekUSOfObjectId") + final val ObjectId.weekUS: Value + get() = of(this).weekUS /** * Returns the week of the year for a date, ranging from `0` to `53`. @@ -693,12 +693,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthweek: Int? = null, + * val birthweekUS: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthweek set User::birthdate.week + * User::birthweekUS set User::birthdate.weekUS * } * } * ``` @@ -709,8 +709,8 @@ interface DateTimeValueOperators : ValueOperators { */ @OptIn(LowLevelApi::class) @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("weekOfTimestamp") - final val Value.week: Value + @get:JvmName("weekUSOfTimestamp") + final val Value.weekUS: Value get() = UnaryOperator(context, "week", this) /** @@ -727,12 +727,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthweek: Int? = null, + * val birthweekUS: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthweek set User::birthdate.week + * User::birthweekUS set User::birthdate.weekUS * } * } * ``` @@ -743,9 +743,9 @@ interface DateTimeValueOperators : ValueOperators { */ @OptIn(LowLevelApi::class) @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("weekOfTimestamp") - final val opensavvy.ktmongo.dsl.path.Field.week: Value - get() = of(this).week + @get:JvmName("weekUSOfTimestamp") + final val opensavvy.ktmongo.dsl.path.Field.weekUS: Value + get() = of(this).weekUS /** * Returns the week of the year for a date, ranging from `0` to `53`. @@ -761,12 +761,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthweek: Int? = null, + * val birthweekUS: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthweek set User::birthdate.week + * User::birthweekUS set User::birthdate.weekUS * } * } * ``` @@ -777,9 +777,9 @@ interface DateTimeValueOperators : ValueOperators { */ @OptIn(LowLevelApi::class) @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("weekOfTimestamp") - final val kotlin.reflect.KProperty1.week: Value - get() = of(this).week + @get:JvmName("weekUSOfTimestamp") + final val kotlin.reflect.KProperty1.weekUS: Value + get() = of(this).weekUS /** * Returns the week of the year for a date, ranging from `0` to `53`. @@ -795,12 +795,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthweek: Int? = null, + * val birthweekUS: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthweek set User::birthdate.week + * User::birthweekUS set User::birthdate.weekUS * } * } * ``` @@ -812,9 +812,9 @@ interface DateTimeValueOperators : ValueOperators { @kotlin.internal.LowPriorityInOverloadResolution @OptIn(LowLevelApi::class) @Suppress("INVISIBLE_REFERENCE", "WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("weekOfTimestamp") - final val Timestamp.week: Value - get() = of(this).week + @get:JvmName("weekUSOfTimestamp") + final val Timestamp.weekUS: Value + get() = of(this).weekUS // endregion // region $second @@ -2317,12 +2317,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthweekIso: Int? = null, + * val birthweekISO: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthweekIso set User::birthdate.weekIso + * User::birthweekISO set User::birthdate.weekISO * } * } * ``` @@ -2332,7 +2332,7 @@ interface DateTimeValueOperators : ValueOperators { * - [Official documentation](https://www.mongodb.com/docs/manual/reference/operator/aggregation/isoWeek/) */ @OptIn(LowLevelApi::class) - val Value.weekIso: Value + val Value.weekISO: Value get() = UnaryOperator(context, "isoWeek", this) /** @@ -2349,12 +2349,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthweekIso: Int? = null, + * val birthweekISO: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthweekIso set User::birthdate.weekIso + * User::birthweekISO set User::birthdate.weekISO * } * } * ``` @@ -2364,8 +2364,8 @@ interface DateTimeValueOperators : ValueOperators { * - [Official documentation](https://www.mongodb.com/docs/manual/reference/operator/aggregation/isoWeek/) */ @OptIn(LowLevelApi::class) - val opensavvy.ktmongo.dsl.path.Field.weekIso: Value - get() = of(this).weekIso + val opensavvy.ktmongo.dsl.path.Field.weekISO: Value + get() = of(this).weekISO /** * Returns the week number in ISO 8601 format, ranging from `1` to `53`. @@ -2381,12 +2381,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthweekIso: Int? = null, + * val birthweekISO: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthweekIso set User::birthdate.weekIso + * User::birthweekISO set User::birthdate.weekISO * } * } * ``` @@ -2396,8 +2396,8 @@ interface DateTimeValueOperators : ValueOperators { * - [Official documentation](https://www.mongodb.com/docs/manual/reference/operator/aggregation/isoWeek/) */ @OptIn(LowLevelApi::class) - val kotlin.reflect.KProperty1.weekIso: Value - get() = of(this).weekIso + val kotlin.reflect.KProperty1.weekISO: Value + get() = of(this).weekISO /** * Returns the week number in ISO 8601 format, ranging from `1` to `53`. @@ -2413,12 +2413,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthweekIso: Int? = null, + * val birthweekISO: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthweekIso set User::birthdate.weekIso + * User::birthweekISO set User::birthdate.weekISO * } * } * ``` @@ -2430,8 +2430,8 @@ interface DateTimeValueOperators : ValueOperators { @kotlin.internal.LowPriorityInOverloadResolution @Suppress("INVISIBLE_REFERENCE") @OptIn(LowLevelApi::class) - val Instant.weekIso: Value - get() = of(this).weekIso + val Instant.weekISO: Value + get() = of(this).weekISO /** * Returns the week number in ISO 8601 format, ranging from `1` to `53`. @@ -2447,12 +2447,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthweekIso: Int? = null, + * val birthweekISO: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthweekIso set User::birthdate.weekIso + * User::birthweekISO set User::birthdate.weekISO * } * } * ``` @@ -2463,8 +2463,8 @@ interface DateTimeValueOperators : ValueOperators { */ @OptIn(LowLevelApi::class) @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("weekIsoOfObjectId") - final val Value.weekIso: Value + @get:JvmName("weekISOOfObjectId") + final val Value.weekISO: Value get() = UnaryOperator(context, "isoWeek", this) /** @@ -2481,12 +2481,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthweekIso: Int? = null, + * val birthweekISO: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthweekIso set User::birthdate.weekIso + * User::birthweekISO set User::birthdate.weekISO * } * } * ``` @@ -2497,9 +2497,9 @@ interface DateTimeValueOperators : ValueOperators { */ @OptIn(LowLevelApi::class) @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("weekIsoOfObjectId") - final val opensavvy.ktmongo.dsl.path.Field.weekIso: Value - get() = of(this).weekIso + @get:JvmName("weekISOOfObjectId") + final val opensavvy.ktmongo.dsl.path.Field.weekISO: Value + get() = of(this).weekISO /** * Returns the week number in ISO 8601 format, ranging from `1` to `53`. @@ -2515,12 +2515,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthweekIso: Int? = null, + * val birthweekISO: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthweekIso set User::birthdate.weekIso + * User::birthweekISO set User::birthdate.weekISO * } * } * ``` @@ -2531,9 +2531,9 @@ interface DateTimeValueOperators : ValueOperators { */ @OptIn(LowLevelApi::class) @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("weekIsoOfObjectId") - final val kotlin.reflect.KProperty1.weekIso: Value - get() = of(this).weekIso + @get:JvmName("weekISOOfObjectId") + final val kotlin.reflect.KProperty1.weekISO: Value + get() = of(this).weekISO /** * Returns the week number in ISO 8601 format, ranging from `1` to `53`. @@ -2549,12 +2549,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthweekIso: Int? = null, + * val birthweekISO: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthweekIso set User::birthdate.weekIso + * User::birthweekISO set User::birthdate.weekISO * } * } * ``` @@ -2566,9 +2566,9 @@ interface DateTimeValueOperators : ValueOperators { @kotlin.internal.LowPriorityInOverloadResolution @OptIn(LowLevelApi::class) @Suppress("INVISIBLE_REFERENCE", "WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("weekIsoOfObjectId") - final val ObjectId.weekIso: Value - get() = of(this).weekIso + @get:JvmName("weekISOOfObjectId") + final val ObjectId.weekISO: Value + get() = of(this).weekISO /** * Returns the week number in ISO 8601 format, ranging from `1` to `53`. @@ -2584,12 +2584,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthweekIso: Int? = null, + * val birthweekISO: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthweekIso set User::birthdate.weekIso + * User::birthweekISO set User::birthdate.weekISO * } * } * ``` @@ -2600,8 +2600,8 @@ interface DateTimeValueOperators : ValueOperators { */ @OptIn(LowLevelApi::class) @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("weekIsoOfTimestamp") - final val Value.weekIso: Value + @get:JvmName("weekISOOfTimestamp") + final val Value.weekISO: Value get() = UnaryOperator(context, "isoWeek", this) /** @@ -2618,12 +2618,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthweekIso: Int? = null, + * val birthweekISO: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthweekIso set User::birthdate.weekIso + * User::birthweekISO set User::birthdate.weekISO * } * } * ``` @@ -2634,9 +2634,9 @@ interface DateTimeValueOperators : ValueOperators { */ @OptIn(LowLevelApi::class) @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("weekIsoOfTimestamp") - final val opensavvy.ktmongo.dsl.path.Field.weekIso: Value - get() = of(this).weekIso + @get:JvmName("weekISOOfTimestamp") + final val opensavvy.ktmongo.dsl.path.Field.weekISO: Value + get() = of(this).weekISO /** * Returns the week number in ISO 8601 format, ranging from `1` to `53`. @@ -2652,12 +2652,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthweekIso: Int? = null, + * val birthweekISO: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthweekIso set User::birthdate.weekIso + * User::birthweekISO set User::birthdate.weekISO * } * } * ``` @@ -2668,9 +2668,9 @@ interface DateTimeValueOperators : ValueOperators { */ @OptIn(LowLevelApi::class) @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("weekIsoOfTimestamp") - final val kotlin.reflect.KProperty1.weekIso: Value - get() = of(this).weekIso + @get:JvmName("weekISOOfTimestamp") + final val kotlin.reflect.KProperty1.weekISO: Value + get() = of(this).weekISO /** * Returns the week number in ISO 8601 format, ranging from `1` to `53`. @@ -2686,12 +2686,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthweekIso: Int? = null, + * val birthweekISO: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthweekIso set User::birthdate.weekIso + * User::birthweekISO set User::birthdate.weekISO * } * } * ``` @@ -2703,18 +2703,18 @@ interface DateTimeValueOperators : ValueOperators { @kotlin.internal.LowPriorityInOverloadResolution @OptIn(LowLevelApi::class) @Suppress("INVISIBLE_REFERENCE", "WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("weekIsoOfTimestamp") - final val Timestamp.weekIso: Value - get() = of(this).weekIso + @get:JvmName("weekISOOfTimestamp") + final val Timestamp.weekISO: Value + get() = of(this).weekISO // endregion // region $isoWeekYear /** * Returns the year in ISO 8601 format, corresponding to the ISO week number returned by - * [weekIso]. + * [weekISO]. * - * The year always starts on the first day of [weekIso] 1, which must be a Monday. + * The year always starts on the first day of [weekISO] 1, which must be a Monday. * This means that the year may start anywhere between January 1st and January 7th (if January 1st was a Tuesday). * The year ends on the last synday of the last week, which may be at the start of January for the same reason. * @@ -2726,12 +2726,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthyearOfIsoWeek: Int? = null, + * val birthyearOfISOWeek: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthyearOfIsoWeek set User::birthdate.yearOfIsoWeek + * User::birthyearOfISOWeek set User::birthdate.yearOfISOWeek * } * } * ``` @@ -2741,14 +2741,14 @@ interface DateTimeValueOperators : ValueOperators { * - [Official documentation](https://www.mongodb.com/docs/manual/reference/operator/aggregation/isoWeekYear/) */ @OptIn(LowLevelApi::class) - val Value.yearOfIsoWeek: Value + val Value.yearOfISOWeek: Value get() = UnaryOperator(context, "isoWeekYear", this) /** * Returns the year in ISO 8601 format, corresponding to the ISO week number returned by - * [weekIso]. + * [weekISO]. * - * The year always starts on the first day of [weekIso] 1, which must be a Monday. + * The year always starts on the first day of [weekISO] 1, which must be a Monday. * This means that the year may start anywhere between January 1st and January 7th (if January 1st was a Tuesday). * The year ends on the last synday of the last week, which may be at the start of January for the same reason. * @@ -2760,12 +2760,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthyearOfIsoWeek: Int? = null, + * val birthyearOfISOWeek: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthyearOfIsoWeek set User::birthdate.yearOfIsoWeek + * User::birthyearOfISOWeek set User::birthdate.yearOfISOWeek * } * } * ``` @@ -2775,14 +2775,14 @@ interface DateTimeValueOperators : ValueOperators { * - [Official documentation](https://www.mongodb.com/docs/manual/reference/operator/aggregation/isoWeekYear/) */ @OptIn(LowLevelApi::class) - val opensavvy.ktmongo.dsl.path.Field.yearOfIsoWeek: Value - get() = of(this).yearOfIsoWeek + val opensavvy.ktmongo.dsl.path.Field.yearOfISOWeek: Value + get() = of(this).yearOfISOWeek /** * Returns the year in ISO 8601 format, corresponding to the ISO week number returned by - * [weekIso]. + * [weekISO]. * - * The year always starts on the first day of [weekIso] 1, which must be a Monday. + * The year always starts on the first day of [weekISO] 1, which must be a Monday. * This means that the year may start anywhere between January 1st and January 7th (if January 1st was a Tuesday). * The year ends on the last synday of the last week, which may be at the start of January for the same reason. * @@ -2794,12 +2794,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthyearOfIsoWeek: Int? = null, + * val birthyearOfISOWeek: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthyearOfIsoWeek set User::birthdate.yearOfIsoWeek + * User::birthyearOfISOWeek set User::birthdate.yearOfISOWeek * } * } * ``` @@ -2809,14 +2809,14 @@ interface DateTimeValueOperators : ValueOperators { * - [Official documentation](https://www.mongodb.com/docs/manual/reference/operator/aggregation/isoWeekYear/) */ @OptIn(LowLevelApi::class) - val kotlin.reflect.KProperty1.yearOfIsoWeek: Value - get() = of(this).yearOfIsoWeek + val kotlin.reflect.KProperty1.yearOfISOWeek: Value + get() = of(this).yearOfISOWeek /** * Returns the year in ISO 8601 format, corresponding to the ISO week number returned by - * [weekIso]. + * [weekISO]. * - * The year always starts on the first day of [weekIso] 1, which must be a Monday. + * The year always starts on the first day of [weekISO] 1, which must be a Monday. * This means that the year may start anywhere between January 1st and January 7th (if January 1st was a Tuesday). * The year ends on the last synday of the last week, which may be at the start of January for the same reason. * @@ -2828,12 +2828,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthyearOfIsoWeek: Int? = null, + * val birthyearOfISOWeek: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthyearOfIsoWeek set User::birthdate.yearOfIsoWeek + * User::birthyearOfISOWeek set User::birthdate.yearOfISOWeek * } * } * ``` @@ -2845,14 +2845,14 @@ interface DateTimeValueOperators : ValueOperators { @kotlin.internal.LowPriorityInOverloadResolution @Suppress("INVISIBLE_REFERENCE") @OptIn(LowLevelApi::class) - val Instant.yearOfIsoWeek: Value - get() = of(this).yearOfIsoWeek + val Instant.yearOfISOWeek: Value + get() = of(this).yearOfISOWeek /** * Returns the year in ISO 8601 format, corresponding to the ISO week number returned by - * [weekIso]. + * [weekISO]. * - * The year always starts on the first day of [weekIso] 1, which must be a Monday. + * The year always starts on the first day of [weekISO] 1, which must be a Monday. * This means that the year may start anywhere between January 1st and January 7th (if January 1st was a Tuesday). * The year ends on the last synday of the last week, which may be at the start of January for the same reason. * @@ -2864,12 +2864,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthyearOfIsoWeek: Int? = null, + * val birthyearOfISOWeek: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthyearOfIsoWeek set User::birthdate.yearOfIsoWeek + * User::birthyearOfISOWeek set User::birthdate.yearOfISOWeek * } * } * ``` @@ -2880,15 +2880,15 @@ interface DateTimeValueOperators : ValueOperators { */ @OptIn(LowLevelApi::class) @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("yearOfIsoWeekOfObjectId") - final val Value.yearOfIsoWeek: Value + @get:JvmName("yearOfISOWeekOfObjectId") + final val Value.yearOfISOWeek: Value get() = UnaryOperator(context, "isoWeekYear", this) /** * Returns the year in ISO 8601 format, corresponding to the ISO week number returned by - * [weekIso]. + * [weekISO]. * - * The year always starts on the first day of [weekIso] 1, which must be a Monday. + * The year always starts on the first day of [weekISO] 1, which must be a Monday. * This means that the year may start anywhere between January 1st and January 7th (if January 1st was a Tuesday). * The year ends on the last synday of the last week, which may be at the start of January for the same reason. * @@ -2900,12 +2900,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthyearOfIsoWeek: Int? = null, + * val birthyearOfISOWeek: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthyearOfIsoWeek set User::birthdate.yearOfIsoWeek + * User::birthyearOfISOWeek set User::birthdate.yearOfISOWeek * } * } * ``` @@ -2916,15 +2916,15 @@ interface DateTimeValueOperators : ValueOperators { */ @OptIn(LowLevelApi::class) @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("yearOfIsoWeekOfObjectId") - final val opensavvy.ktmongo.dsl.path.Field.yearOfIsoWeek: Value - get() = of(this).yearOfIsoWeek + @get:JvmName("yearOfISOWeekOfObjectId") + final val opensavvy.ktmongo.dsl.path.Field.yearOfISOWeek: Value + get() = of(this).yearOfISOWeek /** * Returns the year in ISO 8601 format, corresponding to the ISO week number returned by - * [weekIso]. + * [weekISO]. * - * The year always starts on the first day of [weekIso] 1, which must be a Monday. + * The year always starts on the first day of [weekISO] 1, which must be a Monday. * This means that the year may start anywhere between January 1st and January 7th (if January 1st was a Tuesday). * The year ends on the last synday of the last week, which may be at the start of January for the same reason. * @@ -2936,12 +2936,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthyearOfIsoWeek: Int? = null, + * val birthyearOfISOWeek: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthyearOfIsoWeek set User::birthdate.yearOfIsoWeek + * User::birthyearOfISOWeek set User::birthdate.yearOfISOWeek * } * } * ``` @@ -2952,15 +2952,15 @@ interface DateTimeValueOperators : ValueOperators { */ @OptIn(LowLevelApi::class) @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("yearOfIsoWeekOfObjectId") - final val kotlin.reflect.KProperty1.yearOfIsoWeek: Value - get() = of(this).yearOfIsoWeek + @get:JvmName("yearOfISOWeekOfObjectId") + final val kotlin.reflect.KProperty1.yearOfISOWeek: Value + get() = of(this).yearOfISOWeek /** * Returns the year in ISO 8601 format, corresponding to the ISO week number returned by - * [weekIso]. + * [weekISO]. * - * The year always starts on the first day of [weekIso] 1, which must be a Monday. + * The year always starts on the first day of [weekISO] 1, which must be a Monday. * This means that the year may start anywhere between January 1st and January 7th (if January 1st was a Tuesday). * The year ends on the last synday of the last week, which may be at the start of January for the same reason. * @@ -2972,12 +2972,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthyearOfIsoWeek: Int? = null, + * val birthyearOfISOWeek: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthyearOfIsoWeek set User::birthdate.yearOfIsoWeek + * User::birthyearOfISOWeek set User::birthdate.yearOfISOWeek * } * } * ``` @@ -2989,15 +2989,15 @@ interface DateTimeValueOperators : ValueOperators { @kotlin.internal.LowPriorityInOverloadResolution @OptIn(LowLevelApi::class) @Suppress("INVISIBLE_REFERENCE", "WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("yearOfIsoWeekOfObjectId") - final val ObjectId.yearOfIsoWeek: Value - get() = of(this).yearOfIsoWeek + @get:JvmName("yearOfISOWeekOfObjectId") + final val ObjectId.yearOfISOWeek: Value + get() = of(this).yearOfISOWeek /** * Returns the year in ISO 8601 format, corresponding to the ISO week number returned by - * [weekIso]. + * [weekISO]. * - * The year always starts on the first day of [weekIso] 1, which must be a Monday. + * The year always starts on the first day of [weekISO] 1, which must be a Monday. * This means that the year may start anywhere between January 1st and January 7th (if January 1st was a Tuesday). * The year ends on the last synday of the last week, which may be at the start of January for the same reason. * @@ -3009,12 +3009,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthyearOfIsoWeek: Int? = null, + * val birthyearOfISOWeek: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthyearOfIsoWeek set User::birthdate.yearOfIsoWeek + * User::birthyearOfISOWeek set User::birthdate.yearOfISOWeek * } * } * ``` @@ -3025,15 +3025,15 @@ interface DateTimeValueOperators : ValueOperators { */ @OptIn(LowLevelApi::class) @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("yearOfIsoWeekOfTimestamp") - final val Value.yearOfIsoWeek: Value + @get:JvmName("yearOfISOWeekOfTimestamp") + final val Value.yearOfISOWeek: Value get() = UnaryOperator(context, "isoWeekYear", this) /** * Returns the year in ISO 8601 format, corresponding to the ISO week number returned by - * [weekIso]. + * [weekISO]. * - * The year always starts on the first day of [weekIso] 1, which must be a Monday. + * The year always starts on the first day of [weekISO] 1, which must be a Monday. * This means that the year may start anywhere between January 1st and January 7th (if January 1st was a Tuesday). * The year ends on the last synday of the last week, which may be at the start of January for the same reason. * @@ -3045,12 +3045,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthyearOfIsoWeek: Int? = null, + * val birthyearOfISOWeek: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthyearOfIsoWeek set User::birthdate.yearOfIsoWeek + * User::birthyearOfISOWeek set User::birthdate.yearOfISOWeek * } * } * ``` @@ -3061,15 +3061,15 @@ interface DateTimeValueOperators : ValueOperators { */ @OptIn(LowLevelApi::class) @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("yearOfIsoWeekOfTimestamp") - final val opensavvy.ktmongo.dsl.path.Field.yearOfIsoWeek: Value - get() = of(this).yearOfIsoWeek + @get:JvmName("yearOfISOWeekOfTimestamp") + final val opensavvy.ktmongo.dsl.path.Field.yearOfISOWeek: Value + get() = of(this).yearOfISOWeek /** * Returns the year in ISO 8601 format, corresponding to the ISO week number returned by - * [weekIso]. + * [weekISO]. * - * The year always starts on the first day of [weekIso] 1, which must be a Monday. + * The year always starts on the first day of [weekISO] 1, which must be a Monday. * This means that the year may start anywhere between January 1st and January 7th (if January 1st was a Tuesday). * The year ends on the last synday of the last week, which may be at the start of January for the same reason. * @@ -3081,12 +3081,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthyearOfIsoWeek: Int? = null, + * val birthyearOfISOWeek: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthyearOfIsoWeek set User::birthdate.yearOfIsoWeek + * User::birthyearOfISOWeek set User::birthdate.yearOfISOWeek * } * } * ``` @@ -3097,15 +3097,15 @@ interface DateTimeValueOperators : ValueOperators { */ @OptIn(LowLevelApi::class) @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("yearOfIsoWeekOfTimestamp") - final val kotlin.reflect.KProperty1.yearOfIsoWeek: Value - get() = of(this).yearOfIsoWeek + @get:JvmName("yearOfISOWeekOfTimestamp") + final val kotlin.reflect.KProperty1.yearOfISOWeek: Value + get() = of(this).yearOfISOWeek /** * Returns the year in ISO 8601 format, corresponding to the ISO week number returned by - * [weekIso]. + * [weekISO]. * - * The year always starts on the first day of [weekIso] 1, which must be a Monday. + * The year always starts on the first day of [weekISO] 1, which must be a Monday. * This means that the year may start anywhere between January 1st and January 7th (if January 1st was a Tuesday). * The year ends on the last synday of the last week, which may be at the start of January for the same reason. * @@ -3117,12 +3117,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthyearOfIsoWeek: Int? = null, + * val birthyearOfISOWeek: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthyearOfIsoWeek set User::birthdate.yearOfIsoWeek + * User::birthyearOfISOWeek set User::birthdate.yearOfISOWeek * } * } * ``` @@ -3134,9 +3134,9 @@ interface DateTimeValueOperators : ValueOperators { @kotlin.internal.LowPriorityInOverloadResolution @OptIn(LowLevelApi::class) @Suppress("INVISIBLE_REFERENCE", "WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("yearOfIsoWeekOfTimestamp") - final val Timestamp.yearOfIsoWeek: Value - get() = of(this).yearOfIsoWeek + @get:JvmName("yearOfISOWeekOfTimestamp") + final val Timestamp.yearOfISOWeek: Value + get() = of(this).yearOfISOWeek // endregion // region $isoDayOfWeek @@ -3144,7 +3144,7 @@ interface DateTimeValueOperators : ValueOperators { /** * Returns the day of the week in ISO 8601 format, ranging from `1` (for Monday) to `7` (for Sunday). * - * To get the current week number, see [weekIso]. + * To get the current week number, see [weekISO]. * * The accepted date types are [Instant], [ObjectId] and [Timestamp]. * @@ -3154,12 +3154,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthdayOfWeekIso: Int? = null, + * val birthdayOfWeekISO: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthdayOfWeekIso set User::birthdate.dayOfWeekIso + * User::birthdayOfWeekISO set User::birthdate.dayOfWeekISO * } * } * ``` @@ -3169,13 +3169,13 @@ interface DateTimeValueOperators : ValueOperators { * - [Official documentation](https://www.mongodb.com/docs/manual/reference/operator/aggregation/isoDayOfWeek/) */ @OptIn(LowLevelApi::class) - val Value.dayOfWeekIso: Value + val Value.dayOfWeekISO: Value get() = UnaryOperator(context, "isoDayOfWeek", this) /** * Returns the day of the week in ISO 8601 format, ranging from `1` (for Monday) to `7` (for Sunday). * - * To get the current week number, see [weekIso]. + * To get the current week number, see [weekISO]. * * The accepted date types are [Instant], [ObjectId] and [Timestamp]. * @@ -3185,12 +3185,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthdayOfWeekIso: Int? = null, + * val birthdayOfWeekISO: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthdayOfWeekIso set User::birthdate.dayOfWeekIso + * User::birthdayOfWeekISO set User::birthdate.dayOfWeekISO * } * } * ``` @@ -3200,13 +3200,13 @@ interface DateTimeValueOperators : ValueOperators { * - [Official documentation](https://www.mongodb.com/docs/manual/reference/operator/aggregation/isoDayOfWeek/) */ @OptIn(LowLevelApi::class) - val opensavvy.ktmongo.dsl.path.Field.dayOfWeekIso: Value - get() = of(this).dayOfWeekIso + val opensavvy.ktmongo.dsl.path.Field.dayOfWeekISO: Value + get() = of(this).dayOfWeekISO /** * Returns the day of the week in ISO 8601 format, ranging from `1` (for Monday) to `7` (for Sunday). * - * To get the current week number, see [weekIso]. + * To get the current week number, see [weekISO]. * * The accepted date types are [Instant], [ObjectId] and [Timestamp]. * @@ -3216,12 +3216,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthdayOfWeekIso: Int? = null, + * val birthdayOfWeekISO: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthdayOfWeekIso set User::birthdate.dayOfWeekIso + * User::birthdayOfWeekISO set User::birthdate.dayOfWeekISO * } * } * ``` @@ -3231,13 +3231,13 @@ interface DateTimeValueOperators : ValueOperators { * - [Official documentation](https://www.mongodb.com/docs/manual/reference/operator/aggregation/isoDayOfWeek/) */ @OptIn(LowLevelApi::class) - val kotlin.reflect.KProperty1.dayOfWeekIso: Value - get() = of(this).dayOfWeekIso + val kotlin.reflect.KProperty1.dayOfWeekISO: Value + get() = of(this).dayOfWeekISO /** * Returns the day of the week in ISO 8601 format, ranging from `1` (for Monday) to `7` (for Sunday). * - * To get the current week number, see [weekIso]. + * To get the current week number, see [weekISO]. * * The accepted date types are [Instant], [ObjectId] and [Timestamp]. * @@ -3247,12 +3247,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthdayOfWeekIso: Int? = null, + * val birthdayOfWeekISO: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthdayOfWeekIso set User::birthdate.dayOfWeekIso + * User::birthdayOfWeekISO set User::birthdate.dayOfWeekISO * } * } * ``` @@ -3264,13 +3264,13 @@ interface DateTimeValueOperators : ValueOperators { @kotlin.internal.LowPriorityInOverloadResolution @Suppress("INVISIBLE_REFERENCE") @OptIn(LowLevelApi::class) - val Instant.dayOfWeekIso: Value - get() = of(this).dayOfWeekIso + val Instant.dayOfWeekISO: Value + get() = of(this).dayOfWeekISO /** * Returns the day of the week in ISO 8601 format, ranging from `1` (for Monday) to `7` (for Sunday). * - * To get the current week number, see [weekIso]. + * To get the current week number, see [weekISO]. * * The accepted date types are [Instant], [ObjectId] and [Timestamp]. * @@ -3280,12 +3280,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthdayOfWeekIso: Int? = null, + * val birthdayOfWeekISO: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthdayOfWeekIso set User::birthdate.dayOfWeekIso + * User::birthdayOfWeekISO set User::birthdate.dayOfWeekISO * } * } * ``` @@ -3296,14 +3296,14 @@ interface DateTimeValueOperators : ValueOperators { */ @OptIn(LowLevelApi::class) @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("dayOfWeekIsoOfObjectId") - final val Value.dayOfWeekIso: Value + @get:JvmName("dayOfWeekISOOfObjectId") + final val Value.dayOfWeekISO: Value get() = UnaryOperator(context, "isoDayOfWeek", this) /** * Returns the day of the week in ISO 8601 format, ranging from `1` (for Monday) to `7` (for Sunday). * - * To get the current week number, see [weekIso]. + * To get the current week number, see [weekISO]. * * The accepted date types are [Instant], [ObjectId] and [Timestamp]. * @@ -3313,12 +3313,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthdayOfWeekIso: Int? = null, + * val birthdayOfWeekISO: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthdayOfWeekIso set User::birthdate.dayOfWeekIso + * User::birthdayOfWeekISO set User::birthdate.dayOfWeekISO * } * } * ``` @@ -3329,14 +3329,14 @@ interface DateTimeValueOperators : ValueOperators { */ @OptIn(LowLevelApi::class) @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("dayOfWeekIsoOfObjectId") - final val opensavvy.ktmongo.dsl.path.Field.dayOfWeekIso: Value - get() = of(this).dayOfWeekIso + @get:JvmName("dayOfWeekISOOfObjectId") + final val opensavvy.ktmongo.dsl.path.Field.dayOfWeekISO: Value + get() = of(this).dayOfWeekISO /** * Returns the day of the week in ISO 8601 format, ranging from `1` (for Monday) to `7` (for Sunday). * - * To get the current week number, see [weekIso]. + * To get the current week number, see [weekISO]. * * The accepted date types are [Instant], [ObjectId] and [Timestamp]. * @@ -3346,12 +3346,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthdayOfWeekIso: Int? = null, + * val birthdayOfWeekISO: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthdayOfWeekIso set User::birthdate.dayOfWeekIso + * User::birthdayOfWeekISO set User::birthdate.dayOfWeekISO * } * } * ``` @@ -3362,14 +3362,14 @@ interface DateTimeValueOperators : ValueOperators { */ @OptIn(LowLevelApi::class) @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("dayOfWeekIsoOfObjectId") - final val kotlin.reflect.KProperty1.dayOfWeekIso: Value - get() = of(this).dayOfWeekIso + @get:JvmName("dayOfWeekISOOfObjectId") + final val kotlin.reflect.KProperty1.dayOfWeekISO: Value + get() = of(this).dayOfWeekISO /** * Returns the day of the week in ISO 8601 format, ranging from `1` (for Monday) to `7` (for Sunday). * - * To get the current week number, see [weekIso]. + * To get the current week number, see [weekISO]. * * The accepted date types are [Instant], [ObjectId] and [Timestamp]. * @@ -3379,12 +3379,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthdayOfWeekIso: Int? = null, + * val birthdayOfWeekISO: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthdayOfWeekIso set User::birthdate.dayOfWeekIso + * User::birthdayOfWeekISO set User::birthdate.dayOfWeekISO * } * } * ``` @@ -3396,14 +3396,14 @@ interface DateTimeValueOperators : ValueOperators { @kotlin.internal.LowPriorityInOverloadResolution @OptIn(LowLevelApi::class) @Suppress("INVISIBLE_REFERENCE", "WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("dayOfWeekIsoOfObjectId") - final val ObjectId.dayOfWeekIso: Value - get() = of(this).dayOfWeekIso + @get:JvmName("dayOfWeekISOOfObjectId") + final val ObjectId.dayOfWeekISO: Value + get() = of(this).dayOfWeekISO /** * Returns the day of the week in ISO 8601 format, ranging from `1` (for Monday) to `7` (for Sunday). * - * To get the current week number, see [weekIso]. + * To get the current week number, see [weekISO]. * * The accepted date types are [Instant], [ObjectId] and [Timestamp]. * @@ -3413,12 +3413,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthdayOfWeekIso: Int? = null, + * val birthdayOfWeekISO: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthdayOfWeekIso set User::birthdate.dayOfWeekIso + * User::birthdayOfWeekISO set User::birthdate.dayOfWeekISO * } * } * ``` @@ -3429,14 +3429,14 @@ interface DateTimeValueOperators : ValueOperators { */ @OptIn(LowLevelApi::class) @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("dayOfWeekIsoOfTimestamp") - final val Value.dayOfWeekIso: Value + @get:JvmName("dayOfWeekISOOfTimestamp") + final val Value.dayOfWeekISO: Value get() = UnaryOperator(context, "isoDayOfWeek", this) /** * Returns the day of the week in ISO 8601 format, ranging from `1` (for Monday) to `7` (for Sunday). * - * To get the current week number, see [weekIso]. + * To get the current week number, see [weekISO]. * * The accepted date types are [Instant], [ObjectId] and [Timestamp]. * @@ -3446,12 +3446,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthdayOfWeekIso: Int? = null, + * val birthdayOfWeekISO: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthdayOfWeekIso set User::birthdate.dayOfWeekIso + * User::birthdayOfWeekISO set User::birthdate.dayOfWeekISO * } * } * ``` @@ -3462,14 +3462,14 @@ interface DateTimeValueOperators : ValueOperators { */ @OptIn(LowLevelApi::class) @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("dayOfWeekIsoOfTimestamp") - final val opensavvy.ktmongo.dsl.path.Field.dayOfWeekIso: Value - get() = of(this).dayOfWeekIso + @get:JvmName("dayOfWeekISOOfTimestamp") + final val opensavvy.ktmongo.dsl.path.Field.dayOfWeekISO: Value + get() = of(this).dayOfWeekISO /** * Returns the day of the week in ISO 8601 format, ranging from `1` (for Monday) to `7` (for Sunday). * - * To get the current week number, see [weekIso]. + * To get the current week number, see [weekISO]. * * The accepted date types are [Instant], [ObjectId] and [Timestamp]. * @@ -3479,12 +3479,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthdayOfWeekIso: Int? = null, + * val birthdayOfWeekISO: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthdayOfWeekIso set User::birthdate.dayOfWeekIso + * User::birthdayOfWeekISO set User::birthdate.dayOfWeekISO * } * } * ``` @@ -3495,14 +3495,14 @@ interface DateTimeValueOperators : ValueOperators { */ @OptIn(LowLevelApi::class) @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("dayOfWeekIsoOfTimestamp") - final val kotlin.reflect.KProperty1.dayOfWeekIso: Value - get() = of(this).dayOfWeekIso + @get:JvmName("dayOfWeekISOOfTimestamp") + final val kotlin.reflect.KProperty1.dayOfWeekISO: Value + get() = of(this).dayOfWeekISO /** * Returns the day of the week in ISO 8601 format, ranging from `1` (for Monday) to `7` (for Sunday). * - * To get the current week number, see [weekIso]. + * To get the current week number, see [weekISO]. * * The accepted date types are [Instant], [ObjectId] and [Timestamp]. * @@ -3512,12 +3512,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthdayOfWeekIso: Int? = null, + * val birthdayOfWeekISO: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthdayOfWeekIso set User::birthdate.dayOfWeekIso + * User::birthdayOfWeekISO set User::birthdate.dayOfWeekISO * } * } * ``` @@ -3529,9 +3529,9 @@ interface DateTimeValueOperators : ValueOperators { @kotlin.internal.LowPriorityInOverloadResolution @OptIn(LowLevelApi::class) @Suppress("INVISIBLE_REFERENCE", "WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("dayOfWeekIsoOfTimestamp") - final val Timestamp.dayOfWeekIso: Value - get() = of(this).dayOfWeekIso + @get:JvmName("dayOfWeekISOOfTimestamp") + final val Timestamp.dayOfWeekISO: Value + get() = of(this).dayOfWeekISO // endregion // region $hour @@ -4281,7 +4281,7 @@ interface DateTimeValueOperators : ValueOperators { /** * Returns the day of the week for a date as a number between `1` (Sunday) and `7` (Saturday). * - * To use ISO 8601 day-of-week numbering (`1` for Monday to `7` for Sunday), see [dayOfWeekIso]. + * To use ISO 8601 day-of-week numbering (`1` for Monday to `7` for Sunday), see [dayOfWeekISO]. * * The accepted date types are [Instant], [ObjectId] and [Timestamp]. * @@ -4291,12 +4291,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthdayOfWeek: Int? = null, + * val birthdayOfWeekUS: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthdayOfWeek set User::birthdate.dayOfWeek + * User::birthdayOfWeekUS set User::birthdate.dayOfWeekUS * } * } * ``` @@ -4306,13 +4306,13 @@ interface DateTimeValueOperators : ValueOperators { * - [Official documentation](https://www.mongodb.com/docs/manual/reference/operator/aggregation/dayOfWeek/) */ @OptIn(LowLevelApi::class) - val Value.dayOfWeek: Value + val Value.dayOfWeekUS: Value get() = UnaryOperator(context, "dayOfWeek", this) /** * Returns the day of the week for a date as a number between `1` (Sunday) and `7` (Saturday). * - * To use ISO 8601 day-of-week numbering (`1` for Monday to `7` for Sunday), see [dayOfWeekIso]. + * To use ISO 8601 day-of-week numbering (`1` for Monday to `7` for Sunday), see [dayOfWeekISO]. * * The accepted date types are [Instant], [ObjectId] and [Timestamp]. * @@ -4322,12 +4322,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthdayOfWeek: Int? = null, + * val birthdayOfWeekUS: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthdayOfWeek set User::birthdate.dayOfWeek + * User::birthdayOfWeekUS set User::birthdate.dayOfWeekUS * } * } * ``` @@ -4337,13 +4337,13 @@ interface DateTimeValueOperators : ValueOperators { * - [Official documentation](https://www.mongodb.com/docs/manual/reference/operator/aggregation/dayOfWeek/) */ @OptIn(LowLevelApi::class) - val opensavvy.ktmongo.dsl.path.Field.dayOfWeek: Value - get() = of(this).dayOfWeek + val opensavvy.ktmongo.dsl.path.Field.dayOfWeekUS: Value + get() = of(this).dayOfWeekUS /** * Returns the day of the week for a date as a number between `1` (Sunday) and `7` (Saturday). * - * To use ISO 8601 day-of-week numbering (`1` for Monday to `7` for Sunday), see [dayOfWeekIso]. + * To use ISO 8601 day-of-week numbering (`1` for Monday to `7` for Sunday), see [dayOfWeekISO]. * * The accepted date types are [Instant], [ObjectId] and [Timestamp]. * @@ -4353,12 +4353,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthdayOfWeek: Int? = null, + * val birthdayOfWeekUS: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthdayOfWeek set User::birthdate.dayOfWeek + * User::birthdayOfWeekUS set User::birthdate.dayOfWeekUS * } * } * ``` @@ -4368,13 +4368,13 @@ interface DateTimeValueOperators : ValueOperators { * - [Official documentation](https://www.mongodb.com/docs/manual/reference/operator/aggregation/dayOfWeek/) */ @OptIn(LowLevelApi::class) - val kotlin.reflect.KProperty1.dayOfWeek: Value - get() = of(this).dayOfWeek + val kotlin.reflect.KProperty1.dayOfWeekUS: Value + get() = of(this).dayOfWeekUS /** * Returns the day of the week for a date as a number between `1` (Sunday) and `7` (Saturday). * - * To use ISO 8601 day-of-week numbering (`1` for Monday to `7` for Sunday), see [dayOfWeekIso]. + * To use ISO 8601 day-of-week numbering (`1` for Monday to `7` for Sunday), see [dayOfWeekISO]. * * The accepted date types are [Instant], [ObjectId] and [Timestamp]. * @@ -4384,12 +4384,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthdayOfWeek: Int? = null, + * val birthdayOfWeekUS: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthdayOfWeek set User::birthdate.dayOfWeek + * User::birthdayOfWeekUS set User::birthdate.dayOfWeekUS * } * } * ``` @@ -4401,13 +4401,13 @@ interface DateTimeValueOperators : ValueOperators { @kotlin.internal.LowPriorityInOverloadResolution @Suppress("INVISIBLE_REFERENCE") @OptIn(LowLevelApi::class) - val Instant.dayOfWeek: Value - get() = of(this).dayOfWeek + val Instant.dayOfWeekUS: Value + get() = of(this).dayOfWeekUS /** * Returns the day of the week for a date as a number between `1` (Sunday) and `7` (Saturday). * - * To use ISO 8601 day-of-week numbering (`1` for Monday to `7` for Sunday), see [dayOfWeekIso]. + * To use ISO 8601 day-of-week numbering (`1` for Monday to `7` for Sunday), see [dayOfWeekISO]. * * The accepted date types are [Instant], [ObjectId] and [Timestamp]. * @@ -4417,12 +4417,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthdayOfWeek: Int? = null, + * val birthdayOfWeekUS: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthdayOfWeek set User::birthdate.dayOfWeek + * User::birthdayOfWeekUS set User::birthdate.dayOfWeekUS * } * } * ``` @@ -4433,14 +4433,14 @@ interface DateTimeValueOperators : ValueOperators { */ @OptIn(LowLevelApi::class) @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("dayOfWeekOfObjectId") - final val Value.dayOfWeek: Value + @get:JvmName("dayOfWeekUSOfObjectId") + final val Value.dayOfWeekUS: Value get() = UnaryOperator(context, "dayOfWeek", this) /** * Returns the day of the week for a date as a number between `1` (Sunday) and `7` (Saturday). * - * To use ISO 8601 day-of-week numbering (`1` for Monday to `7` for Sunday), see [dayOfWeekIso]. + * To use ISO 8601 day-of-week numbering (`1` for Monday to `7` for Sunday), see [dayOfWeekISO]. * * The accepted date types are [Instant], [ObjectId] and [Timestamp]. * @@ -4450,12 +4450,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthdayOfWeek: Int? = null, + * val birthdayOfWeekUS: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthdayOfWeek set User::birthdate.dayOfWeek + * User::birthdayOfWeekUS set User::birthdate.dayOfWeekUS * } * } * ``` @@ -4466,14 +4466,14 @@ interface DateTimeValueOperators : ValueOperators { */ @OptIn(LowLevelApi::class) @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("dayOfWeekOfObjectId") - final val opensavvy.ktmongo.dsl.path.Field.dayOfWeek: Value - get() = of(this).dayOfWeek + @get:JvmName("dayOfWeekUSOfObjectId") + final val opensavvy.ktmongo.dsl.path.Field.dayOfWeekUS: Value + get() = of(this).dayOfWeekUS /** * Returns the day of the week for a date as a number between `1` (Sunday) and `7` (Saturday). * - * To use ISO 8601 day-of-week numbering (`1` for Monday to `7` for Sunday), see [dayOfWeekIso]. + * To use ISO 8601 day-of-week numbering (`1` for Monday to `7` for Sunday), see [dayOfWeekISO]. * * The accepted date types are [Instant], [ObjectId] and [Timestamp]. * @@ -4483,12 +4483,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthdayOfWeek: Int? = null, + * val birthdayOfWeekUS: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthdayOfWeek set User::birthdate.dayOfWeek + * User::birthdayOfWeekUS set User::birthdate.dayOfWeekUS * } * } * ``` @@ -4499,14 +4499,14 @@ interface DateTimeValueOperators : ValueOperators { */ @OptIn(LowLevelApi::class) @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("dayOfWeekOfObjectId") - final val kotlin.reflect.KProperty1.dayOfWeek: Value - get() = of(this).dayOfWeek + @get:JvmName("dayOfWeekUSOfObjectId") + final val kotlin.reflect.KProperty1.dayOfWeekUS: Value + get() = of(this).dayOfWeekUS /** * Returns the day of the week for a date as a number between `1` (Sunday) and `7` (Saturday). * - * To use ISO 8601 day-of-week numbering (`1` for Monday to `7` for Sunday), see [dayOfWeekIso]. + * To use ISO 8601 day-of-week numbering (`1` for Monday to `7` for Sunday), see [dayOfWeekISO]. * * The accepted date types are [Instant], [ObjectId] and [Timestamp]. * @@ -4516,12 +4516,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthdayOfWeek: Int? = null, + * val birthdayOfWeekUS: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthdayOfWeek set User::birthdate.dayOfWeek + * User::birthdayOfWeekUS set User::birthdate.dayOfWeekUS * } * } * ``` @@ -4533,14 +4533,14 @@ interface DateTimeValueOperators : ValueOperators { @kotlin.internal.LowPriorityInOverloadResolution @OptIn(LowLevelApi::class) @Suppress("INVISIBLE_REFERENCE", "WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("dayOfWeekOfObjectId") - final val ObjectId.dayOfWeek: Value - get() = of(this).dayOfWeek + @get:JvmName("dayOfWeekUSOfObjectId") + final val ObjectId.dayOfWeekUS: Value + get() = of(this).dayOfWeekUS /** * Returns the day of the week for a date as a number between `1` (Sunday) and `7` (Saturday). * - * To use ISO 8601 day-of-week numbering (`1` for Monday to `7` for Sunday), see [dayOfWeekIso]. + * To use ISO 8601 day-of-week numbering (`1` for Monday to `7` for Sunday), see [dayOfWeekISO]. * * The accepted date types are [Instant], [ObjectId] and [Timestamp]. * @@ -4550,12 +4550,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthdayOfWeek: Int? = null, + * val birthdayOfWeekUS: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthdayOfWeek set User::birthdate.dayOfWeek + * User::birthdayOfWeekUS set User::birthdate.dayOfWeekUS * } * } * ``` @@ -4566,14 +4566,14 @@ interface DateTimeValueOperators : ValueOperators { */ @OptIn(LowLevelApi::class) @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("dayOfWeekOfTimestamp") - final val Value.dayOfWeek: Value + @get:JvmName("dayOfWeekUSOfTimestamp") + final val Value.dayOfWeekUS: Value get() = UnaryOperator(context, "dayOfWeek", this) /** * Returns the day of the week for a date as a number between `1` (Sunday) and `7` (Saturday). * - * To use ISO 8601 day-of-week numbering (`1` for Monday to `7` for Sunday), see [dayOfWeekIso]. + * To use ISO 8601 day-of-week numbering (`1` for Monday to `7` for Sunday), see [dayOfWeekISO]. * * The accepted date types are [Instant], [ObjectId] and [Timestamp]. * @@ -4583,12 +4583,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthdayOfWeek: Int? = null, + * val birthdayOfWeekUS: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthdayOfWeek set User::birthdate.dayOfWeek + * User::birthdayOfWeekUS set User::birthdate.dayOfWeekUS * } * } * ``` @@ -4599,14 +4599,14 @@ interface DateTimeValueOperators : ValueOperators { */ @OptIn(LowLevelApi::class) @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("dayOfWeekOfTimestamp") - final val opensavvy.ktmongo.dsl.path.Field.dayOfWeek: Value - get() = of(this).dayOfWeek + @get:JvmName("dayOfWeekUSOfTimestamp") + final val opensavvy.ktmongo.dsl.path.Field.dayOfWeekUS: Value + get() = of(this).dayOfWeekUS /** * Returns the day of the week for a date as a number between `1` (Sunday) and `7` (Saturday). * - * To use ISO 8601 day-of-week numbering (`1` for Monday to `7` for Sunday), see [dayOfWeekIso]. + * To use ISO 8601 day-of-week numbering (`1` for Monday to `7` for Sunday), see [dayOfWeekISO]. * * The accepted date types are [Instant], [ObjectId] and [Timestamp]. * @@ -4616,12 +4616,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthdayOfWeek: Int? = null, + * val birthdayOfWeekUS: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthdayOfWeek set User::birthdate.dayOfWeek + * User::birthdayOfWeekUS set User::birthdate.dayOfWeekUS * } * } * ``` @@ -4632,14 +4632,14 @@ interface DateTimeValueOperators : ValueOperators { */ @OptIn(LowLevelApi::class) @Suppress("WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("dayOfWeekOfTimestamp") - final val kotlin.reflect.KProperty1.dayOfWeek: Value - get() = of(this).dayOfWeek + @get:JvmName("dayOfWeekUSOfTimestamp") + final val kotlin.reflect.KProperty1.dayOfWeekUS: Value + get() = of(this).dayOfWeekUS /** * Returns the day of the week for a date as a number between `1` (Sunday) and `7` (Saturday). * - * To use ISO 8601 day-of-week numbering (`1` for Monday to `7` for Sunday), see [dayOfWeekIso]. + * To use ISO 8601 day-of-week numbering (`1` for Monday to `7` for Sunday), see [dayOfWeekISO]. * * The accepted date types are [Instant], [ObjectId] and [Timestamp]. * @@ -4649,12 +4649,12 @@ interface DateTimeValueOperators : ValueOperators { * class User( * val name: String, * val birthdate: Instant, - * val birthdayOfWeek: Int? = null, + * val birthdayOfWeekUS: Int? = null, * ) * * users.updateManyWithPipeline { * set { - * User::birthdayOfWeek set User::birthdate.dayOfWeek + * User::birthdayOfWeekUS set User::birthdate.dayOfWeekUS * } * } * ``` @@ -4666,9 +4666,9 @@ interface DateTimeValueOperators : ValueOperators { @kotlin.internal.LowPriorityInOverloadResolution @OptIn(LowLevelApi::class) @Suppress("INVISIBLE_REFERENCE", "WRONG_MODIFIER_CONTAINING_DECLARATION") - @get:JvmName("dayOfWeekOfTimestamp") - final val Timestamp.dayOfWeek: Value - get() = of(this).dayOfWeek + @get:JvmName("dayOfWeekUSOfTimestamp") + final val Timestamp.dayOfWeekUS: Value + get() = of(this).dayOfWeekUS // endregion diff --git a/dsl/src/commonTest/kotlin/aggregation/operators/DateTimeValueOperatorsTest.kt b/dsl/src/commonTest/kotlin/aggregation/operators/DateTimeValueOperatorsTest.kt index 6eafc4c2..0464403c 100644 --- a/dsl/src/commonTest/kotlin/aggregation/operators/DateTimeValueOperatorsTest.kt +++ b/dsl/src/commonTest/kotlin/aggregation/operators/DateTimeValueOperatorsTest.kt @@ -26,17 +26,17 @@ val DateTimeValueOperatorsTest by multiContextSuite { class Target( val date: Instant, val year: Int, - val week: Int, + val weekUS: Int, val second: Int, val month: Int, val minute: Int, val millisecond: Int, - val weekIso: Int, - val yearOfIsoWeek: Int, - val dayOfWeekIso: Int, + val weekISO: Int, + val yearOfISOWeek: Int, + val dayOfWeekISO: Int, val hour: Int, val dayOfMonth: Int, - val dayOfWeek: Int, + val dayOfWeekUS: Int, val dayOfYear: Int, ) @@ -61,13 +61,13 @@ val DateTimeValueOperatorsTest by multiContextSuite { test($$"$week") { TestPipeline() .set { - Target::week set Target::date.week + Target::weekUS set Target::date.weekUS } .shouldBeBson($$""" [ { "$set": { - "week": { + "weekUS": { "$week": "$date" } } @@ -151,13 +151,13 @@ val DateTimeValueOperatorsTest by multiContextSuite { test($$"$isoWeek") { TestPipeline() .set { - Target::weekIso set Target::date.weekIso + Target::weekISO set Target::date.weekISO } .shouldBeBson($$""" [ { "$set": { - "weekIso": { + "weekISO": { "$isoWeek": "$date" } } @@ -169,13 +169,13 @@ val DateTimeValueOperatorsTest by multiContextSuite { test($$"$isoWeekYear") { TestPipeline() .set { - Target::yearOfIsoWeek set Target::date.yearOfIsoWeek + Target::yearOfISOWeek set Target::date.yearOfISOWeek } .shouldBeBson($$""" [ { "$set": { - "yearOfIsoWeek": { + "yearOfISOWeek": { "$isoWeekYear": "$date" } } @@ -187,13 +187,13 @@ val DateTimeValueOperatorsTest by multiContextSuite { test($$"$isoDayOfWeek") { TestPipeline() .set { - Target::dayOfWeekIso set Target::date.dayOfWeekIso + Target::dayOfWeekISO set Target::date.dayOfWeekISO } .shouldBeBson($$""" [ { "$set": { - "dayOfWeekIso": { + "dayOfWeekISO": { "$isoDayOfWeek": "$date" } } @@ -241,13 +241,13 @@ val DateTimeValueOperatorsTest by multiContextSuite { test($$"$dayOfWeek") { TestPipeline() .set { - Target::dayOfWeek set Target::date.dayOfWeek + Target::dayOfWeekUS set Target::date.dayOfWeekUS } .shouldBeBson($$""" [ { "$set": { - "dayOfWeek": { + "dayOfWeekUS": { "$dayOfWeek": "$date" } } -- 2.51.2