16583: Add "Intermediate" to collection type filters
[arvados-workbench2.git] / src / models / api-client-authorization.ts
index 01a92017d54d9ae9b8323d101f549359208323d5..c1f948a1e98e4142710a78d6b4d606e124597d4d 100644 (file)
@@ -2,7 +2,7 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-import { Resource } from '~/models/resource';
+import { Resource } from 'models/resource';
 
 export interface ApiClientAuthorization extends Resource {
     uuid: string;
@@ -18,4 +18,7 @@ export interface ApiClientAuthorization extends Resource {
     ownerUuid: string;
     defaultOwnerUuid: string;
     scopes: string[];
-}
\ No newline at end of file
+}
+
+export const getTokenV2 = (aca: ApiClientAuthorization): string =>
+    `v2/${aca.uuid}/${aca.apiToken}`;
\ No newline at end of file