Skip to content
Snippets Groups Projects
Commit a936a73d authored by Romain CREY's avatar Romain CREY
Browse files

doctype name change

parent 8b4f7b9d
No related branches found
No related tags found
2 merge requests!32Dev,!29Features/us158 change doctype name
Showing
with 85 additions and 72 deletions
......@@ -34,15 +34,15 @@
},
"enedis": {
"description": "Utilisé pour partager vos données Enedis",
"type": "io.enedis.*"
"type": "com.grandlyon.enedis.*"
},
"grdf": {
"description": "Utilisé pour partager vos données GRDF",
"type": "io.grdf.*"
"type": "com.grandlyon.grdf.*"
},
"egl": {
"description": "Utilisé pour partager vos données EGL",
"type": "io.egl.*"
"type": "com.grandlyon.egl.*"
},
"accounts": {
"description": "Utilisé pour obtenir les données du compte",
......@@ -62,7 +62,7 @@
},
"ecolyo": {
"description": "Utilisé pour partager vos données Ecolyo.",
"type": "io.ecolyo.*"
"type": "com.grandlyon.ecolyo.*"
}
}
}
......@@ -14,7 +14,7 @@ const Test: React.FC<TestProps> = ({ client }: TestProps) => {
async function loadData() {
const data = await client.query(
client
.find('io.ecolyo.challengetype')
.find('com.grandlyon.ecolyo.challengetype')
.where({ level: { $lte: 0 } })
.include(['availableEcogestures'])
.limitBy(20)
......@@ -27,7 +27,7 @@ const Test: React.FC<TestProps> = ({ client }: TestProps) => {
async function loadUserChallenge() {
const data = await client.query(
client
.find('io.ecolyo.userchallenge')
.find('com.grandlyon.ecolyo.userchallenge')
.where({ state: { $eq: 0 } })
.include(['selectedEcogestures', 'challengeType'])
.limitBy(1)
......@@ -71,9 +71,9 @@ const Test: React.FC<TestProps> = ({ client }: TestProps) => {
challenge en cours - challenge type:
{userChallenge &&
userChallenge.included.map((item, index) => {
if (item._type === 'io.ecolyo.challengetype') {
if (item._type === 'com.grandlyon.ecolyo.challengetype') {
return <ul key={index}>Challenge Type : {item.title}</ul>
} else if (item._type === 'io.ecolyo.ecogesture') {
} else if (item._type === 'com.grandlyon.ecolyo.ecogesture') {
return <ul key={index}>Ecogeste : {item.shortName}</ul>
}
})}
......
......@@ -10,8 +10,8 @@
"relationships": {
"availableEcogestures": {
"data": [
{ "_id": "0085", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0092", "_type": "io.ecolyo.ecogesture" }
{ "_id": "0085", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0092", "_type": "com.grandlyon.ecolyo.ecogesture" }
]
}
}
......@@ -27,20 +27,20 @@
"relationships": {
"availableEcogestures": {
"data": [
{ "_id": "0032", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0034", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0041", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0042", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0043", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0045", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0050", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0058", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0064", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0066", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0071", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0078", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0082", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0093", "_type": "io.ecolyo.ecogesture" }
{ "_id": "0032", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0034", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0041", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0042", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0043", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0045", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0050", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0058", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0064", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0066", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0071", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0078", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0082", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0093", "_type": "com.grandlyon.ecolyo.ecogesture" }
]
}
}
......@@ -56,20 +56,20 @@
"relationships": {
"availableEcogestures": {
"data": [
{ "_id": "0032", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0034", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0041", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0042", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0043", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0045", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0050", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0058", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0064", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0066", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0071", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0078", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0082", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0093", "_type": "io.ecolyo.ecogesture" }
{ "_id": "0032", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0034", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0041", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0042", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0043", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0045", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0050", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0058", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0064", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0066", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0071", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0078", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0082", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0093", "_type": "com.grandlyon.ecolyo.ecogesture" }
]
}
}
......@@ -85,20 +85,20 @@
"relationships": {
"availableEcogestures": {
"data": [
{ "_id": "0032", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0034", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0041", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0042", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0043", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0045", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0050", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0058", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0064", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0066", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0071", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0078", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0082", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0093", "_type": "io.ecolyo.ecogesture" }
{ "_id": "0032", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0034", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0041", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0042", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0043", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0045", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0050", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0058", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0064", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0066", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0071", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0078", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0082", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0093", "_type": "com.grandlyon.ecolyo.ecogesture" }
]
}
}
......@@ -114,20 +114,20 @@
"relationships": {
"availableEcogestures": {
"data": [
{ "_id": "0032", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0034", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0041", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0042", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0043", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0045", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0050", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0058", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0064", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0066", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0071", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0078", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0082", "_type": "io.ecolyo.ecogesture" },
{ "_id": "0093", "_type": "io.ecolyo.ecogesture" }
{ "_id": "0032", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0034", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0041", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0042", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0043", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0045", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0050", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0058", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0064", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0066", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0071", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0078", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0082", "_type": "com.grandlyon.ecolyo.ecogesture" },
{ "_id": "0093", "_type": "com.grandlyon.ecolyo.ecogesture" }
]
}
}
......
......@@ -9,18 +9,18 @@
"challengeType": {
"data": {
"_id": "CHA00000001",
"_type": "io.ecolyo.challengetype"
"_type": "com.grandlyon.ecolyo.challengetype"
}
},
"selectedEcogestures": {
"data": [
{
"_id": "0085",
"_type": "io.ecolyo.ecogesture"
"_type": "com.grandlyon.ecolyo.ecogesture"
},
{
"_id": "0092",
"_type": "io.ecolyo.ecogesture"
"_type": "com.grandlyon.ecolyo.ecogesture"
}
]
}
......
export const CHALLENGETYPE_DOCTYPE = 'com.grandlyon.ecolyo.challengetype'
export const ECOGESTURE_DOCTYPE = 'com.grandlyon.ecolyo.ecogesture'
export const USERCHALLENGE_DOCTYPE = 'com.grandlyon.ecolyo.userchallenge'
export const USERPROFILE_DOCTYPE = 'com.grandlyon.ecolyo.userprofile'
import { QueryDefinitionBuilder } from 'cozy-client'
export const EGL_DAY_DOCTYPE = 'io.egl.day'
export const EGL_DAY_DOCTYPE = 'com.grandlyon.egl.day'
export type EglDay = {
time: string
......
export const EGL_MONTH_DOCTYPE = 'com.grandlyon.egl.month'
export const EGL_YEAR_DOCTYPE = 'com.grandlyon.egl.year'
import { QueryDefinitionBuilder } from 'cozy-client'
export const ENEDIS_DAY_DOCTYPE = 'io.enedis.day'
export const ENEDIS_DAY_DOCTYPE = 'com.grandlyon.enedis.day'
export type EnedisDay = {
time: string
......
export const ENEDIS_HOUR_DOCTYPE = 'com.grandlyon.enedis.hour'
export const ENEDIS_MINUTE_DOCTYPE = 'com.grandlyon.enedis.minute'
export const ENEDIS_MONTH_DOCTYPE = 'com.grandlyon.enedis.month'
export const ENEDIS_YEAR_DOCTYPE = 'com.grandlyon.enedis.year'
import { QueryDefinitionBuilder } from 'cozy-client'
export const GRDF_DAY_DOCTYPE = 'io.grdf.day'
export const GRDF_DAY_DOCTYPE = 'com.grandlyon.grdf.day'
export type GrdfDay = {
time: string
......
export const GRDF_HOUR_DOCTYPE = 'com.grandlyon.grdf.hour'
export const GRDF_MONTH_DOCTYPE = 'com.grandlyon.grdf.month'
export const GRDF_YEAR_DOCTYPE = 'com.grandlyon.grdf.year'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment