From 9d49764b841e73655e19523eddf10498addc9fb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20S=C3=B3jko?= Date: Fri, 15 Mar 2024 11:17:46 +0100 Subject: [PATCH] fix: allow handling of new api version --- packages/auth/src/Domain/Api/ApiVersion.ts | 1 + packages/auth/src/Domain/Auth/AuthResponseFactoryResolver.ts | 1 + packages/syncing-server/src/Domain/Api/ApiVersion.ts | 1 + .../src/Domain/Item/SyncResponse/SyncResponseFactoryResolver.ts | 1 + 4 files changed, 4 insertions(+) diff --git a/packages/auth/src/Domain/Api/ApiVersion.ts b/packages/auth/src/Domain/Api/ApiVersion.ts index e664a2828..90d2a9f0b 100644 --- a/packages/auth/src/Domain/Api/ApiVersion.ts +++ b/packages/auth/src/Domain/Api/ApiVersion.ts @@ -2,4 +2,5 @@ export enum ApiVersion { v20161215 = '20161215', v20190520 = '20190520', v20200115 = '20200115', + v20240226 = '20240226', } diff --git a/packages/auth/src/Domain/Auth/AuthResponseFactoryResolver.ts b/packages/auth/src/Domain/Auth/AuthResponseFactoryResolver.ts index bf1a9b3a6..29a079f39 100644 --- a/packages/auth/src/Domain/Auth/AuthResponseFactoryResolver.ts +++ b/packages/auth/src/Domain/Auth/AuthResponseFactoryResolver.ts @@ -24,6 +24,7 @@ export class AuthResponseFactoryResolver implements AuthResponseFactoryResolverI case ApiVersion.v20190520: return this.authResponseFactory20190520 case ApiVersion.v20200115: + case ApiVersion.v20240226: return this.authResponseFactory20200115 default: return this.authResponseFactory20161215 diff --git a/packages/syncing-server/src/Domain/Api/ApiVersion.ts b/packages/syncing-server/src/Domain/Api/ApiVersion.ts index e664a2828..90d2a9f0b 100644 --- a/packages/syncing-server/src/Domain/Api/ApiVersion.ts +++ b/packages/syncing-server/src/Domain/Api/ApiVersion.ts @@ -2,4 +2,5 @@ export enum ApiVersion { v20161215 = '20161215', v20190520 = '20190520', v20200115 = '20200115', + v20240226 = '20240226', } diff --git a/packages/syncing-server/src/Domain/Item/SyncResponse/SyncResponseFactoryResolver.ts b/packages/syncing-server/src/Domain/Item/SyncResponse/SyncResponseFactoryResolver.ts index ad7c0d03a..ac120be9b 100644 --- a/packages/syncing-server/src/Domain/Item/SyncResponse/SyncResponseFactoryResolver.ts +++ b/packages/syncing-server/src/Domain/Item/SyncResponse/SyncResponseFactoryResolver.ts @@ -14,6 +14,7 @@ export class SyncResponseFactoryResolver implements SyncResponseFactoryResolverI switch (apiVersion) { case ApiVersion.v20190520: case ApiVersion.v20200115: + case ApiVersion.v20240226: return this.syncResponseFactory20200115 default: return this.syncResponseFactory20161215