-
Notifications
You must be signed in to change notification settings - Fork 213
/
FrontendHubAccess.ts
30 lines (27 loc) · 1.11 KB
/
FrontendHubAccess.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
/** @packageDocumentation
* @module HubAccess
*/
import { AccessToken, GuidString } from "@itwin/core-bentley";
import { ChangesetIndexAndId, IModelVersion } from "@itwin/core-common";
/**
* @public
* @extensions
*/
export interface IModelIdArg {
iModelId: GuidString;
accessToken: AccessToken;
}
/** @public */
export interface FrontendHubAccess {
getLatestChangeset(arg: IModelIdArg): Promise<ChangesetIndexAndId>;
getChangesetFromVersion(arg: IModelIdArg & { version: IModelVersion }): Promise<ChangesetIndexAndId>;
/**
* Fetches the changeset with the given named version.
* @param versionName If omitted will default to the latest named version.
*/
getChangesetFromNamedVersion(arg: IModelIdArg & { versionName?: string }): Promise<ChangesetIndexAndId>;
}