cozy-client 25.0.2 → 25.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/dist/CozyClient.js +1 -1
- package/dist/RealTimeQueries.js +1 -0
- package/dist/RealTimeQueries.spec.jsx +8 -0
- package/dist/models/file.js +561 -11
- package/dist/models/file.spec.js +414 -48
- package/dist/types.js +1 -0
- package/package.json +2 -2
- package/types/models/file.d.ts +33 -0
- package/types/types.d.ts +4 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [25.0.3](https://github.com/cozy/cozy-client/compare/v25.0.2...v25.0.3) (2021-10-21)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Add id in CozyClientDocument for RealTime ([5e242d6](https://github.com/cozy/cozy-client/commit/5e242d6d5fcb34e9f09c8b5661133b63aa35f93e))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [25.0.2](https://github.com/cozy/cozy-client/compare/v25.0.1...v25.0.2) (2021-10-14)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package cozy-client
|
package/dist/CozyClient.js
CHANGED
|
@@ -2411,7 +2411,7 @@ var CozyClient = /*#__PURE__*/function () {
|
|
|
2411
2411
|
CozyClient.hooks = CozyClient.hooks || {};
|
|
2412
2412
|
CozyClient.fetchPolicies = _policies.default; //COZY_CLIENT_VERSION_PACKAGE in replaced by babel. See babel config
|
|
2413
2413
|
|
|
2414
|
-
CozyClient.version = "25.0.
|
|
2414
|
+
CozyClient.version = "25.0.3";
|
|
2415
2415
|
|
|
2416
2416
|
_microee.default.mixin(CozyClient);
|
|
2417
2417
|
|
package/dist/RealTimeQueries.js
CHANGED
|
@@ -38,6 +38,7 @@ describe('RealTimeQueries', () => {
|
|
|
38
38
|
definition: {
|
|
39
39
|
document: {
|
|
40
40
|
_id: 'mock-created',
|
|
41
|
+
id: 'mock-created',
|
|
41
42
|
_type: 'io.cozy.files',
|
|
42
43
|
type: 'file'
|
|
43
44
|
},
|
|
@@ -47,6 +48,7 @@ describe('RealTimeQueries', () => {
|
|
|
47
48
|
response: {
|
|
48
49
|
data: {
|
|
49
50
|
_id: 'mock-created',
|
|
51
|
+
id: 'mock-created',
|
|
50
52
|
_type: 'io.cozy.files',
|
|
51
53
|
type: 'file'
|
|
52
54
|
}
|
|
@@ -60,6 +62,7 @@ describe('RealTimeQueries', () => {
|
|
|
60
62
|
definition: {
|
|
61
63
|
document: {
|
|
62
64
|
_id: 'mock-updated',
|
|
65
|
+
id: 'mock-updated',
|
|
63
66
|
_type: 'io.cozy.files',
|
|
64
67
|
type: 'file'
|
|
65
68
|
},
|
|
@@ -69,6 +72,7 @@ describe('RealTimeQueries', () => {
|
|
|
69
72
|
response: {
|
|
70
73
|
data: {
|
|
71
74
|
_id: 'mock-updated',
|
|
75
|
+
id: 'mock-updated',
|
|
72
76
|
_type: 'io.cozy.files',
|
|
73
77
|
type: 'file'
|
|
74
78
|
}
|
|
@@ -81,6 +85,7 @@ describe('RealTimeQueries', () => {
|
|
|
81
85
|
definition: {
|
|
82
86
|
document: {
|
|
83
87
|
_id: 'mock-deleted',
|
|
88
|
+
id: 'mock-deleted',
|
|
84
89
|
_type: 'io.cozy.files',
|
|
85
90
|
type: 'file',
|
|
86
91
|
_deleted: true
|
|
@@ -91,6 +96,7 @@ describe('RealTimeQueries', () => {
|
|
|
91
96
|
response: {
|
|
92
97
|
data: {
|
|
93
98
|
_id: 'mock-deleted',
|
|
99
|
+
id: 'mock-deleted',
|
|
94
100
|
_type: 'io.cozy.files',
|
|
95
101
|
type: 'file',
|
|
96
102
|
_deleted: true
|
|
@@ -118,6 +124,7 @@ describe('RealTimeQueries', () => {
|
|
|
118
124
|
definition: {
|
|
119
125
|
document: {
|
|
120
126
|
_id: 'mock-created',
|
|
127
|
+
id: 'mock-created',
|
|
121
128
|
_type: 'io.cozy.oauth.clients',
|
|
122
129
|
client_kind: 'desktop',
|
|
123
130
|
client_name: 'Cozy Drive (hostname)'
|
|
@@ -128,6 +135,7 @@ describe('RealTimeQueries', () => {
|
|
|
128
135
|
response: {
|
|
129
136
|
data: {
|
|
130
137
|
_id: 'mock-created',
|
|
138
|
+
id: 'mock-created',
|
|
131
139
|
_type: 'io.cozy.oauth.clients',
|
|
132
140
|
client_kind: 'desktop',
|
|
133
141
|
client_name: 'Cozy Drive (hostname)'
|