File tree Expand file tree Collapse file tree 9 files changed +21
-24
lines changed Expand file tree Collapse file tree 9 files changed +21
-24
lines changed Original file line number Diff line number Diff line change 1
1
import 'package:equatable/equatable.dart' ;
2
2
3
3
class ReferencePath with EquatableMixin {
4
- static ReferencePath idsPath = ReferencePath ('ids/*' );
5
- static ReferencePath createdPath = ReferencePath ('created/*' );
6
- static ReferencePath updatedPath = ReferencePath ('updated/*' );
4
+ static ReferencePath idsPath = ReferencePath ('/ ids/*' );
5
+ static ReferencePath createdPath = ReferencePath ('/ created/*' );
6
+ static ReferencePath updatedPath = ReferencePath ('/ updated/*' );
7
7
static ReferencePath updatedPropertiesPath = ReferencePath ('updatedProperties' );
8
8
9
9
final String value;
Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ void main() {
209
209
"#ids" : {
210
210
"resultOf" : "c2" ,
211
211
"name" : "Email/query" ,
212
- "path" : "ids/*"
212
+ "path" : "/ ids/*"
213
213
},
214
214
"properties" : [
215
215
"id" ,
@@ -227,8 +227,7 @@ void main() {
227
227
},
228
228
headers: {
229
229
"accept" : "application/json;jmapVersion=rfc-8621" ,
230
- "content-type" : "application/json; charset=utf-8" ,
231
- "content-length" : 555
230
+ "content-type" : "application/json; charset=utf-8"
232
231
}
233
232
);
234
233
Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ void main() {
209
209
"#ids" : {
210
210
"resultOf" : "c2" ,
211
211
"name" : "Email/query" ,
212
- "path" : "ids/*"
212
+ "path" : "/ ids/*"
213
213
},
214
214
"properties" : [
215
215
"id" ,
@@ -227,8 +227,7 @@ void main() {
227
227
},
228
228
headers: {
229
229
"accept" : "application/json;jmapVersion=rfc-8621" ,
230
- "content-type" : "application/json; charset=utf-8" ,
231
- "content-length" : 581
230
+ "content-type" : "application/json; charset=utf-8"
232
231
});
233
232
234
233
final httpClient = HttpClient (dio);
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import 'package:jmap_dart_client/jmap/core/id.dart';
7
7
import 'package:jmap_dart_client/jmap/core/properties/properties.dart' ;
8
8
import 'package:jmap_dart_client/jmap/core/request/reference_path.dart' ;
9
9
import 'package:jmap_dart_client/jmap/core/request/request_invocation.dart' ;
10
+ import 'package:jmap_dart_client/jmap/core/sort/comparator.dart' ;
10
11
import 'package:jmap_dart_client/jmap/core/unsigned_int.dart' ;
11
12
import 'package:jmap_dart_client/jmap/core/utc_date.dart' ;
12
13
import 'package:jmap_dart_client/jmap/jmap_request.dart' ;
@@ -18,7 +19,6 @@ import 'package:jmap_dart_client/jmap/mail/email/email_filter_condition.dart';
18
19
import 'package:jmap_dart_client/jmap/mail/email/get/get_email_method.dart' ;
19
20
import 'package:jmap_dart_client/jmap/mail/email/get/get_email_response.dart' ;
20
21
import 'package:jmap_dart_client/jmap/mail/email/query/query_email_method.dart' ;
21
- import 'package:jmap_dart_client/jmap/core/sort/comparator.dart' ;
22
22
23
23
void main () {
24
24
final expectMail = Email (EmailId (Id ("04f27c50-e879-11ec-aae4-43ebf0340ebd" )),
@@ -101,7 +101,7 @@ void main() {
101
101
"#ids" : {
102
102
"resultOf" : "c1" ,
103
103
"name" : "Email/query" ,
104
- "path" : "ids/*"
104
+ "path" : "/ ids/*"
105
105
},
106
106
"properties" : [
107
107
"id" ,
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import 'package:jmap_dart_client/jmap/core/id.dart';
7
7
import 'package:jmap_dart_client/jmap/core/properties/properties.dart' ;
8
8
import 'package:jmap_dart_client/jmap/core/request/reference_path.dart' ;
9
9
import 'package:jmap_dart_client/jmap/core/request/request_invocation.dart' ;
10
+ import 'package:jmap_dart_client/jmap/core/sort/comparator.dart' ;
10
11
import 'package:jmap_dart_client/jmap/core/unsigned_int.dart' ;
11
12
import 'package:jmap_dart_client/jmap/core/utc_date.dart' ;
12
13
import 'package:jmap_dart_client/jmap/jmap_request.dart' ;
@@ -18,7 +19,6 @@ import 'package:jmap_dart_client/jmap/mail/email/email_filter_condition.dart';
18
19
import 'package:jmap_dart_client/jmap/mail/email/get/get_email_method.dart' ;
19
20
import 'package:jmap_dart_client/jmap/mail/email/get/get_email_response.dart' ;
20
21
import 'package:jmap_dart_client/jmap/mail/email/query/query_email_method.dart' ;
21
- import 'package:jmap_dart_client/jmap/core/sort/comparator.dart' ;
22
22
23
23
void main () {
24
24
final expectMail = Email (EmailId (Id ("04f27c50-e879-11ec-aae4-43ebf0340ebd" )),
@@ -101,7 +101,7 @@ void main() {
101
101
"#ids" : {
102
102
"resultOf" : "c1" ,
103
103
"name" : "Email/query" ,
104
- "path" : "ids/*"
104
+ "path" : "/ ids/*"
105
105
},
106
106
"properties" : [
107
107
"id" ,
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import 'package:jmap_dart_client/jmap/core/id.dart';
7
7
import 'package:jmap_dart_client/jmap/core/properties/properties.dart' ;
8
8
import 'package:jmap_dart_client/jmap/core/request/reference_path.dart' ;
9
9
import 'package:jmap_dart_client/jmap/core/request/request_invocation.dart' ;
10
+ import 'package:jmap_dart_client/jmap/core/sort/comparator.dart' ;
10
11
import 'package:jmap_dart_client/jmap/core/unsigned_int.dart' ;
11
12
import 'package:jmap_dart_client/jmap/core/utc_date.dart' ;
12
13
import 'package:jmap_dart_client/jmap/jmap_request.dart' ;
@@ -18,7 +19,6 @@ import 'package:jmap_dart_client/jmap/mail/email/email_filter_condition.dart';
18
19
import 'package:jmap_dart_client/jmap/mail/email/get/get_email_method.dart' ;
19
20
import 'package:jmap_dart_client/jmap/mail/email/get/get_email_response.dart' ;
20
21
import 'package:jmap_dart_client/jmap/mail/email/query/query_email_method.dart' ;
21
- import 'package:jmap_dart_client/jmap/core/sort/comparator.dart' ;
22
22
23
23
void main () {
24
24
final expectMail = Email (EmailId (Id ("04f27c50-e879-11ec-aae4-43ebf0340ebd" )),
@@ -106,7 +106,7 @@ void main() {
106
106
"#ids" : {
107
107
"resultOf" : "c1" ,
108
108
"name" : "Email/query" ,
109
- "path" : "ids/*"
109
+ "path" : "/ ids/*"
110
110
},
111
111
"properties" : [
112
112
"id" ,
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import 'package:jmap_dart_client/jmap/core/id.dart';
7
7
import 'package:jmap_dart_client/jmap/core/properties/properties.dart' ;
8
8
import 'package:jmap_dart_client/jmap/core/request/reference_path.dart' ;
9
9
import 'package:jmap_dart_client/jmap/core/request/request_invocation.dart' ;
10
+ import 'package:jmap_dart_client/jmap/core/sort/comparator.dart' ;
10
11
import 'package:jmap_dart_client/jmap/core/unsigned_int.dart' ;
11
12
import 'package:jmap_dart_client/jmap/core/utc_date.dart' ;
12
13
import 'package:jmap_dart_client/jmap/jmap_request.dart' ;
@@ -18,7 +19,6 @@ import 'package:jmap_dart_client/jmap/mail/email/email_filter_condition.dart';
18
19
import 'package:jmap_dart_client/jmap/mail/email/get/get_email_method.dart' ;
19
20
import 'package:jmap_dart_client/jmap/mail/email/get/get_email_response.dart' ;
20
21
import 'package:jmap_dart_client/jmap/mail/email/query/query_email_method.dart' ;
21
- import 'package:jmap_dart_client/jmap/core/sort/comparator.dart' ;
22
22
import 'package:jmap_dart_client/jmap/mail/mailbox/mailbox.dart' ;
23
23
24
24
void main () {
@@ -167,7 +167,7 @@ void main() {
167
167
"#ids" : {
168
168
"resultOf" : "c2" ,
169
169
"name" : "Email/query" ,
170
- "path" : "ids/*"
170
+ "path" : "/ ids/*"
171
171
},
172
172
"properties" : [
173
173
"id" ,
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ import 'package:jmap_dart_client/jmap/core/id.dart';
8
8
import 'package:jmap_dart_client/jmap/core/properties/properties.dart' ;
9
9
import 'package:jmap_dart_client/jmap/core/request/reference_path.dart' ;
10
10
import 'package:jmap_dart_client/jmap/core/request/request_invocation.dart' ;
11
+ import 'package:jmap_dart_client/jmap/core/sort/comparator.dart' ;
11
12
import 'package:jmap_dart_client/jmap/core/unsigned_int.dart' ;
12
13
import 'package:jmap_dart_client/jmap/core/utc_date.dart' ;
13
14
import 'package:jmap_dart_client/jmap/jmap_request.dart' ;
@@ -20,7 +21,6 @@ import 'package:jmap_dart_client/jmap/mail/email/get/get_email_method.dart';
20
21
import 'package:jmap_dart_client/jmap/mail/email/get/get_email_response.dart' ;
21
22
import 'package:jmap_dart_client/jmap/mail/email/query/query_email_method.dart' ;
22
23
import 'package:jmap_dart_client/jmap/mail/mailbox/mailbox.dart' ;
23
- import 'package:jmap_dart_client/jmap/core/sort/comparator.dart' ;
24
24
25
25
void main () {
26
26
@@ -220,7 +220,7 @@ void main() {
220
220
"#ids" : {
221
221
"resultOf" : "c2" ,
222
222
"name" : "Email/query" ,
223
- "path" : "ids/*"
223
+ "path" : "/ ids/*"
224
224
},
225
225
"properties" : [
226
226
"id" ,
Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ void main() {
131
131
"#ids" : {
132
132
"resultOf" : "c0" ,
133
133
"name" : "Mailbox/changes" ,
134
- "path" : "updated/*"
134
+ "path" : "/ updated/*"
135
135
}
136
136
},
137
137
"c1"
@@ -143,7 +143,7 @@ void main() {
143
143
"#ids" : {
144
144
"resultOf" : "c0" ,
145
145
"name" : "Mailbox/changes" ,
146
- "path" : "destroyed/*"
146
+ "path" : "/ destroyed/*"
147
147
}
148
148
},
149
149
"c2"
@@ -152,8 +152,7 @@ void main() {
152
152
},
153
153
headers: {
154
154
"accept" : "application/json;jmapVersion=rfc-8621" ,
155
- "content-type" : "application/json; charset=utf-8" ,
156
- "content-length" : 585
155
+ "content-type" : "application/json; charset=utf-8"
157
156
});
158
157
159
158
final HttpClient httpClient = HttpClient (dio);
@@ -183,7 +182,7 @@ void main() {
183
182
final getMailboxMethodForDestroyed = GetMailboxMethod (accountId)
184
183
..addReferenceIds (processingInvocation.createResultReference (
185
184
changesMailboxInvocation.methodCallId,
186
- ReferencePath ('destroyed/*' ),
185
+ ReferencePath ('/ destroyed/*' ),
187
186
));
188
187
final getMailboxForDestroyInvocation = jmapRequestBuilder.invocation (
189
188
getMailboxMethodForDestroyed,
You can’t perform that action at this time.
0 commit comments