Skip to content

Commit 7bb7968

Browse files
lethemanhlethemanh
authored andcommitted
feat: Declare new doctype and schema for assistant ✨
1 parent 3569833 commit 7bb7968

File tree

4 files changed

+22
-7
lines changed

4 files changed

+22
-7
lines changed

manifest.webapp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,11 @@
129129
"type": "cc.cozycloud.announcements.uploads",
130130
"verbs": ["GET"],
131131
"description": "Remote-doctype required to get announcements images"
132+
},
133+
"assistants": {
134+
"type": "io.cozy.ai.chat.assistants",
135+
"verbs": ["ALL"],
136+
"description": "Remote-doctype required to fetch, create and update assistant data"
132137
}
133138
},
134139
"routes": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"cozy-sharing": "^28.0.2",
5353
"cozy-stack-client": "^60.6.0",
5454
"cozy-tsconfig": "^1.8.1",
55-
"cozy-ui": "^135.0.0",
55+
"cozy-ui": "^135.5.0",
5656
"cozy-ui-plus": "^4.0.0",
5757
"cozy-viewer": "^26.2.0",
5858
"date-fns": "2.30.0",

src/schema.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,16 @@ const schema = {
3737
doctype: 'io.cozy.contacts'
3838
}
3939
}
40+
},
41+
assistants: {
42+
doctype: 'io.cozy.ai.chat.assistants',
43+
attributes: {},
44+
relationships: {
45+
provider: {
46+
type: 'has-one',
47+
doctype: 'io.cozy.accounts'
48+
}
49+
}
4050
}
4151
}
4252

yarn.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5398,10 +5398,10 @@ cozy-ui-plus@^4.0.0:
53985398
react-final-form-arrays "3.1.4"
53995399
rooks "7.14.1"
54005400

5401-
cozy-ui@^135.0.0:
5402-
version "135.0.0"
5403-
resolved "https://registry.yarnpkg.com/cozy-ui/-/cozy-ui-135.0.0.tgz#e704ce9c8969340190d2219b50574466dd1d2e40"
5404-
integrity sha512-JGDRIw2HcqD+N1T0ibONvntcCvAvhXJ1xeTtn0wF5edJSt5HwMuSTcjXrU36Sr2/HLkDYzlAviP8FWgfOecLnA==
5401+
cozy-ui@^135.5.0:
5402+
version "135.5.0"
5403+
resolved "https://registry.yarnpkg.com/cozy-ui/-/cozy-ui-135.5.0.tgz#fe7dbaa4512abe09f590295738bdb706b033e7d2"
5404+
integrity sha512-5D9Q7V5BmIbLN8aiQ1hFYsFp3x+u9+5qFexpDX5tnzVBh0cCpYMm7pY95D7q6Jx0K7Tv59fL15OtB6iahui8fQ==
54055405
dependencies:
54065406
"@babel/runtime" "^7.3.4"
54075407
"@date-io/date-fns" "1"
@@ -10423,9 +10423,9 @@ msgpack5@^4.0.2:
1042310423
readable-stream "^2.3.6"
1042410424
safe-buffer "^5.1.2"
1042510425

10426-
"mui-bottom-sheet@https://github.com/cozy/mui-bottom-sheet.git#v1.0.9":
10426+
"mui-bottom-sheet@git+https://github.com/cozy/mui-bottom-sheet.git#v1.0.9":
1042710427
version "1.0.8"
10428-
resolved "https://github.com/cozy/mui-bottom-sheet.git#3dc4c2a245ab39079bc2f73546bccf80847be14c"
10428+
resolved "git+https://github.com/cozy/mui-bottom-sheet.git#3dc4c2a245ab39079bc2f73546bccf80847be14c"
1042910429
dependencies:
1043010430
"@juggle/resize-observer" "^3.1.3"
1043110431
jest-environment-jsdom-sixteen "^1.0.3"

0 commit comments

Comments
 (0)