-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
35 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
modules/library/src/main/scala/zio/elasticsearch/DocumentId.scala
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 0 additions & 5 deletions
5
modules/library/src/main/scala/zio/elasticsearch/IndexName.scala
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
modules/library/src/main/scala/zio/elasticsearch/Routing.scala
This file was deleted.
Oops, something went wrong.
20 changes: 20 additions & 0 deletions
20
modules/library/src/main/scala/zio/elasticsearch/package.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package zio | ||
|
||
import zio.prelude.Assertion._ | ||
import zio.prelude.{Newtype, Subtype} | ||
|
||
package object elasticsearch { | ||
object Routing extends Subtype[String] { | ||
override def assertion = assert { | ||
!isEmptyString | ||
} | ||
} | ||
type Routing = Routing.Type | ||
|
||
object DocumentId extends Newtype[String] | ||
type DocumentId = DocumentId.Type | ||
|
||
object IndexName extends Newtype[String] | ||
type IndexName = IndexName.Type | ||
|
||
} |