2018-04-29 21:55:36 +00:00
|
|
|
# ===============================================
|
|
|
|
# LOCALIZATION
|
|
|
|
# ===============================================
|
|
|
|
|
|
|
|
extend type Query {
|
|
|
|
localization: LocalizationQuery
|
|
|
|
}
|
|
|
|
|
|
|
|
extend type Mutation {
|
|
|
|
localization: LocalizationMutation
|
|
|
|
}
|
|
|
|
|
|
|
|
# -----------------------------------------------
|
|
|
|
# QUERIES
|
|
|
|
# -----------------------------------------------
|
|
|
|
|
|
|
|
type LocalizationQuery {
|
|
|
|
locales: [LocalizationLocale]
|
2018-05-06 20:19:37 +00:00
|
|
|
config: LocalizationConfig
|
2018-04-29 21:55:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# -----------------------------------------------
|
|
|
|
# MUTATIONS
|
|
|
|
# -----------------------------------------------
|
|
|
|
|
|
|
|
type LocalizationMutation {
|
|
|
|
updateLocale(
|
|
|
|
localeId: String!
|
|
|
|
autoUpdate: Boolean!
|
|
|
|
): DefaultResponse
|
|
|
|
}
|
|
|
|
|
|
|
|
# -----------------------------------------------
|
|
|
|
# TYPES
|
|
|
|
# -----------------------------------------------
|
|
|
|
|
|
|
|
type LocalizationLocale {
|
|
|
|
code: String!
|
|
|
|
createdAt: Date!
|
|
|
|
installDate: Date
|
|
|
|
isInstalled: Boolean!
|
|
|
|
isRTL: Boolean!
|
|
|
|
name: String!
|
|
|
|
nativeName: String!
|
|
|
|
updatedAt: Date!
|
|
|
|
}
|
2018-05-06 20:19:37 +00:00
|
|
|
|
|
|
|
type LocalizationConfig {
|
|
|
|
locale: String!
|
|
|
|
autoUpdate: Boolean!
|
|
|
|
}
|