chore!: duration in milliseconds (#28003)

* server changes

* openapi

* web changes

* mobile changes

* assume 3.0 client

* deprecate

* review feedback

* update medium tests

* linting
This commit is contained in:
Mert
2026-04-30 09:44:27 -04:00
committed by GitHub
parent 97c62136b7
commit b554664791
44 changed files with 1092 additions and 335 deletions
@@ -24,7 +24,7 @@ describe(SyncEntityType.SyncCompleteV1, () => {
it('should work', async () => {
const { auth, ctx } = await setup();
await ctx.assertSyncIsComplete(auth, [SyncRequestType.AssetsV1]);
await ctx.assertSyncIsComplete(auth, [SyncRequestType.AssetsV2]);
});
it('should detect an old checkpoint and send back a reset', async () => {
@@ -39,7 +39,7 @@ describe(SyncEntityType.SyncCompleteV1, () => {
},
]);
const response = await ctx.syncStream(auth, [SyncRequestType.AssetsV1]);
const response = await ctx.syncStream(auth, [SyncRequestType.AssetsV2]);
expect(response).toEqual([{ type: SyncEntityType.SyncResetV1, data: {}, ack: 'SyncResetV1|reset' }]);
});
@@ -55,6 +55,6 @@ describe(SyncEntityType.SyncCompleteV1, () => {
},
]);
await ctx.assertSyncIsComplete(auth, [SyncRequestType.AssetsV1]);
await ctx.assertSyncIsComplete(auth, [SyncRequestType.AssetsV2]);
});
});