@@ -77,7 +77,10 @@ bucket_definitions:
77
77
syncContext,
78
78
syncRequest,
79
79
tokenPayload,
80
- syncRules : SYNC_RULES_GLOBAL ,
80
+ syncRules : {
81
+ syncRules : SYNC_RULES_GLOBAL ,
82
+ version : 1
83
+ } ,
81
84
bucketStorage : storage
82
85
} ) ;
83
86
@@ -147,7 +150,10 @@ bucket_definitions:
147
150
tokenPayload,
148
151
// Client sets the initial state here
149
152
syncRequest : { buckets : [ { name : 'global[]' , after : '1' } ] } ,
150
- syncRules : SYNC_RULES_GLOBAL ,
153
+ syncRules : {
154
+ syncRules : SYNC_RULES_GLOBAL ,
155
+ version : 1
156
+ } ,
151
157
bucketStorage : storage
152
158
} ) ;
153
159
@@ -185,7 +191,10 @@ bucket_definitions:
185
191
syncContext,
186
192
tokenPayload,
187
193
syncRequest,
188
- syncRules : SYNC_RULES_GLOBAL_TWO ,
194
+ syncRules : {
195
+ syncRules : SYNC_RULES_GLOBAL_TWO ,
196
+ version : 2
197
+ } ,
189
198
bucketStorage : storage
190
199
} ) ;
191
200
@@ -253,7 +262,10 @@ bucket_definitions:
253
262
tokenPayload,
254
263
// Client sets the initial state here
255
264
syncRequest : { buckets : [ { name : 'something_here[]' , after : '1' } ] } ,
256
- syncRules : SYNC_RULES_GLOBAL ,
265
+ syncRules : {
266
+ syncRules : SYNC_RULES_GLOBAL ,
267
+ version : 1
268
+ } ,
257
269
bucketStorage : storage
258
270
} ) ;
259
271
@@ -294,7 +306,10 @@ bucket_definitions:
294
306
syncContext,
295
307
tokenPayload,
296
308
syncRequest,
297
- syncRules : SYNC_RULES_GLOBAL_TWO ,
309
+ syncRules : {
310
+ syncRules : SYNC_RULES_GLOBAL_TWO ,
311
+ version : 1
312
+ } ,
298
313
bucketStorage : storage
299
314
} ) ;
300
315
@@ -347,7 +362,10 @@ bucket_definitions:
347
362
syncContext,
348
363
tokenPayload,
349
364
syncRequest,
350
- syncRules : SYNC_RULES_GLOBAL_TWO ,
365
+ syncRules : {
366
+ syncRules : SYNC_RULES_GLOBAL_TWO ,
367
+ version : 2
368
+ } ,
351
369
bucketStorage : storage
352
370
} ) ;
353
371
@@ -402,7 +420,10 @@ bucket_definitions:
402
420
syncContext,
403
421
tokenPayload,
404
422
syncRequest,
405
- syncRules : SYNC_RULES_GLOBAL_TWO ,
423
+ syncRules : {
424
+ syncRules : SYNC_RULES_GLOBAL_TWO ,
425
+ version : 2
426
+ } ,
406
427
bucketStorage : storage
407
428
} ) ;
408
429
@@ -506,7 +527,10 @@ bucket_definitions:
506
527
syncContext,
507
528
tokenPayload : { sub : 'u1' } ,
508
529
syncRequest,
509
- syncRules : SYNC_RULES_DYNAMIC ,
530
+ syncRules : {
531
+ syncRules : SYNC_RULES_DYNAMIC ,
532
+ version : 1
533
+ } ,
510
534
bucketStorage : storage
511
535
} ) ;
512
536
@@ -607,7 +631,6 @@ bucket_definitions:
607
631
describe ( 'streams' , ( ) => {
608
632
let source : { - readonly [ P in keyof BucketSource ] : BucketSource [ P ] } ;
609
633
let storage : MockBucketChecksumStateStorage ;
610
- let staticBucketIds = [ 'stream|0[]' ] ;
611
634
612
635
function checksumState ( options ?: Partial < BucketChecksumStateOptions > ) {
613
636
const rules = new SqlSyncRules ( '' ) ;
@@ -617,7 +640,7 @@ bucket_definitions:
617
640
syncContext,
618
641
syncRequest,
619
642
tokenPayload,
620
- syncRules : rules ,
643
+ syncRules : { syncRules : rules , version : 1 } ,
621
644
bucketStorage : storage ,
622
645
...options
623
646
} ) ;
0 commit comments