fix: allow handling of new api version

This commit is contained in:
Karol Sójko 2024-03-15 11:17:46 +01:00
parent 5c9f493b67
commit 9d49764b84
No known key found for this signature in database
GPG key ID: C2F813669419D05F
4 changed files with 4 additions and 0 deletions

View file

@ -2,4 +2,5 @@ export enum ApiVersion {
v20161215 = '20161215', v20161215 = '20161215',
v20190520 = '20190520', v20190520 = '20190520',
v20200115 = '20200115', v20200115 = '20200115',
v20240226 = '20240226',
} }

View file

@ -24,6 +24,7 @@ export class AuthResponseFactoryResolver implements AuthResponseFactoryResolverI
case ApiVersion.v20190520: case ApiVersion.v20190520:
return this.authResponseFactory20190520 return this.authResponseFactory20190520
case ApiVersion.v20200115: case ApiVersion.v20200115:
case ApiVersion.v20240226:
return this.authResponseFactory20200115 return this.authResponseFactory20200115
default: default:
return this.authResponseFactory20161215 return this.authResponseFactory20161215

View file

@ -2,4 +2,5 @@ export enum ApiVersion {
v20161215 = '20161215', v20161215 = '20161215',
v20190520 = '20190520', v20190520 = '20190520',
v20200115 = '20200115', v20200115 = '20200115',
v20240226 = '20240226',
} }

View file

@ -14,6 +14,7 @@ export class SyncResponseFactoryResolver implements SyncResponseFactoryResolverI
switch (apiVersion) { switch (apiVersion) {
case ApiVersion.v20190520: case ApiVersion.v20190520:
case ApiVersion.v20200115: case ApiVersion.v20200115:
case ApiVersion.v20240226:
return this.syncResponseFactory20200115 return this.syncResponseFactory20200115
default: default:
return this.syncResponseFactory20161215 return this.syncResponseFactory20161215