mirror of
https://github.com/mattermost/mattermost-mobile.git
synced 2026-11-23 03:48:16 +00:00
* Add E2E coverage for custom terms of service login flow - Add detox test covering accept (MM-T1194) and decline (MM-T1193) paths - Add TermsOfServiceScreen page object and Alert.termsDeclinedTitle - Add TermsOfService server API helpers (create/enable/disable) - Add testIDs to the terms of service screen, title and action buttons
25 lines
794 B
TypeScript
25 lines
794 B
TypeScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import {createServerLock} from '@support/server_lock';
|
|
|
|
import type {AcquireLockOptions} from '@support/classification_lock_core';
|
|
|
|
const classificationLock = createServerLock('classification');
|
|
|
|
export const createClassificationLockOwner = (): string => {
|
|
return classificationLock.createOwner();
|
|
};
|
|
|
|
export const acquireClassificationLock = async (
|
|
baseUrl: string,
|
|
owner: string,
|
|
options: AcquireLockOptions = {},
|
|
): Promise<void> => {
|
|
return classificationLock.acquire(baseUrl, owner, options);
|
|
};
|
|
|
|
export const releaseClassificationLock = async (baseUrl: string, owner: string): Promise<void> => {
|
|
return classificationLock.release(baseUrl, owner);
|
|
};
|