Skip to content

Commit 414cb0a

Browse files
committed
extract-api
1 parent ea3d5e7 commit 414cb0a

5 files changed

Lines changed: 24 additions & 15 deletions

File tree

common/api/core-backend.api.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -457,7 +457,9 @@ export interface BackendHubAccess {
457457
queryIModelByName: (arg: IModelNameArg) => Promise<GuidString | undefined>;
458458
queryV2Checkpoint: (arg: CheckpointProps) => Promise<V2CheckpointAccessProps | undefined>;
459459
releaseAllLocks: (arg: BriefcaseDbArg) => Promise<void>;
460+
releaseAllLocksAfterAbandon?: (arg: BriefcaseIdArg) => Promise<void>;
460461
releaseBriefcase: (arg: BriefcaseIdArg) => Promise<void>;
462+
releaseLocksAfterAbandon?: (arg: BriefcaseIdArg, locks: LockMap) => Promise<void>;
461463
}
462464

463465
// @public
@@ -1416,7 +1418,7 @@ export namespace CloudSqlite {
14161418
busyHandler?: WriteLockBusyHandler;
14171419
}, operation: () => Promise<T>): Promise<T>;
14181420
export type WriteLockBusyHandler = (lockedBy: string, expires: string) => Promise<void | "stop">;
1419-
export {};
1421+
{};
14201422
}
14211423

14221424
// @alpha
@@ -1667,7 +1669,7 @@ export interface ComputeGraphemeOffsetsArgs extends LayoutTextArgs {
16671669
}
16681670

16691671
// @beta
1670-
export function computeIntervalPoints(input: ComputeIntervalPointsArgs): Point3d[] | undefined;
1672+
export function computeIntervalPoints({ frame, range, transform, lineIntervalFactor, arcIntervalFactor }: ComputeIntervalPointsArgs): Point3d[] | undefined;
16711673

16721674
// @beta
16731675
export interface ComputeIntervalPointsArgs extends ComputeFrameArgs {
@@ -4762,13 +4764,17 @@ export class LocalHub {
47624764
briefcaseId: BriefcaseId;
47634765
changesetIndex: ChangesetIndex;
47644766
}): void;
4767+
// (undocumented)
4768+
releaseAllLocksAfterAbandon(arg: BriefcaseIdArg): void;
47654769
releaseBriefcaseId(id: BriefcaseId): void;
47664770
// (undocumented)
47674771
releaseLocks(locks: LockProps[], arg: {
47684772
briefcaseId: BriefcaseId;
47694773
changesetIndex: ChangesetIndex;
47704774
}): void;
47714775
// (undocumented)
4776+
releaseLocksAfterAbandon(locks: LockMap, arg: BriefcaseIdArg): void;
4777+
// (undocumented)
47724778
removeDir(dirName: string): void;
47734779
// (undocumented)
47744780
readonly rootDir: LocalDirName;
@@ -4801,12 +4807,15 @@ export interface LockControl {
48014807
shared?: Id64Arg;
48024808
exclusive?: Id64Arg;
48034809
}): Promise<void>;
4810+
acquireLocksForReinstatingTxn(txnId: Id64String): Promise<void>;
48044811
checkExclusiveLock(id: Id64String, type: string, operation: string): void;
48054812
checkSharedLock(id: Id64String, type: string, operation: string): void;
48064813
holdsExclusiveLock(id: Id64String): boolean;
48074814
holdsSharedLock(id: Id64String): boolean;
48084815
readonly isServerBased: boolean;
48094816
releaseAllLocks(): Promise<void>;
4817+
releaseAllLocksAfterAbandon(): Promise<void>;
4818+
releaseLocksForReversedTxn(txnId: Id64String): Promise<void>;
48104819
}
48114820

48124821
// @public
@@ -7722,7 +7731,7 @@ export namespace ViewStore {
77227731
modelSel?: RowId;
77237732
}
77247733
export type ViewStoreCtorProps = CloudSqlite.ContainerAccessProps & ViewDbCtorArgs;
7725-
export {};
7734+
{};
77267735
}
77277736

77287737
// @public @preview

common/api/core-frontend.api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1513,9 +1513,9 @@ export abstract class BaseUnitFormattingSettingsProvider implements UnitFormatti
15131513
abstract retrieveUnitSystem(defaultKey: UnitSystemKey): Promise<UnitSystemKey>;
15141514
abstract store(quantityTypeKey: QuantityTypeKey, overrideProps: OverrideFormatEntry): Promise<boolean>;
15151515
// (undocumented)
1516-
storeFormatOverrides: (input: QuantityFormatOverridesChangedArgs) => Promise<void>;
1516+
storeFormatOverrides: ({ typeKey, overrideEntry, unitSystem }: QuantityFormatOverridesChangedArgs) => Promise<void>;
15171517
abstract storeUnitSystemKey(unitSystemKey: UnitSystemKey): Promise<boolean>;
1518-
storeUnitSystemSetting: (input: FormattingUnitSystemChangedArgs) => Promise<void>;
1518+
storeUnitSystemSetting: ({ system }: FormattingUnitSystemChangedArgs) => Promise<void>;
15191519
}
15201520

15211521
// @public

common/api/ecschema-metadata.api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1530,7 +1530,7 @@ export enum PropertyType {
15301530
}
15311531

15321532
// @internal (undocumented)
1533-
export function propertyTypeToString(type: PropertyType): "PrimitiveProperty" | "StructProperty" | "StructArrayProperty" | "NavigationProperty" | "PrimitiveArrayProperty";
1533+
export function propertyTypeToString(type: PropertyType): "PrimitiveProperty" | "PrimitiveArrayProperty" | "StructProperty" | "StructArrayProperty" | "NavigationProperty";
15341534

15351535
// @internal (undocumented)
15361536
export namespace PropertyTypeUtils {

core/backend/src/BackendHubAccess.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -226,16 +226,16 @@ export interface BackendHubAccess {
226226

227227
/**
228228
* Releases the specified locks when none of the associated elements have
229-
* been or will be modified. Depending on the {@link CommonLockState} specified for the lock,
230-
* it may be returned to the {@link CommonLockState.Shared} state or released entirely. It is only
229+
* been or will be modified. Depending on the {@link LockState} specified for the lock,
230+
* it may be returned to the {@link LockState.Shared} state or released entirely. It is only
231231
* valid to call this method when none of the elements protected by the locks have been edited, or if all edits
232232
* have been reversed or abandoned without pushing them.
233233
*
234234
* The locks are released on the IModelHub, but the changeset associated with the locks is not updated.
235-
* This is equivalent to calling {@link acquireLocks} with an invalid {@link ChangesetIdWithIndex}.
235+
* This is equivalent to calling {@link BackendHubAccess.acquireLocks} with an invalid changeset index.
236236
*
237-
* It is an error to specify {@link CommonLockState.Exclusive}. It is also an error to specify
238-
* {@link CommonLockState.Shared} for a lock that is not currently held exclusively, but an
237+
* It is an error to specify {@link LockState.Exclusive}. It is also an error to specify
238+
* {@link LockState.Shared} for a lock that is not currently held exclusively, but an
239239
* implementation may choose whether to throw an exception in this scenario or simply ignore it.
240240
*
241241
* This method is optional, so not all IModelHubs will implement it.
@@ -254,7 +254,7 @@ export interface BackendHubAccess {
254254
* or if all edits have been reversed or abandoned without pushing them.
255255
*
256256
* The locks are released on the IModelHub, but the changeset associated with the locks is not updated.
257-
* This is equivalent to calling {@link releaseAllLocks} with an invalid {@link ChangesetIdWithIndex}.
257+
* This is equivalent to calling {@link BackendHubAccess.releaseAllLocks} with an invalid changeset index.
258258
*
259259
* This method is optional, so not all IModelHubs will implement it.
260260
*/

core/backend/src/LockControl.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ export interface LockControl {
8686
* the currently-held locks have been edited, or if all edits have been reversed or abandoned without
8787
* pushing them.
8888
*
89-
* The locks are released on the IModelHub, but the changeset associated with the locks is not updated.
90-
* This is equivalent to calling {@link releaseAllLocks} with an invalid {@link ChangesetIdWithIndex}.
89+
* The locks are released on the IModelHub, but the changeset associated with the locks is not updated,
90+
* reflecting the fact that the associated elements were not edited.
9191
*/
9292
releaseAllLocksAfterAbandon(): Promise<void>;
9393

@@ -110,7 +110,7 @@ export interface LockControl {
110110

111111
/**
112112
* Re-acquire the locks that were previously acquired during a given Txn and then released with
113-
* {@link releaseLocksForReversedTxn}. This is used just before reinstating a previously-reversed
113+
* {@link LockControl.releaseLocksForReversedTxn}. This is used just before reinstating a previously-reversed
114114
* Txn to ensure that the necessary locks are held. It is possible that the locks may no longer be available,
115115
* in which case this method will throw an exception.
116116
*

0 commit comments

Comments
 (0)