cwmsjs
Version:
CWMS Data API Library for JavaScript/TypeScript created with OpenAPI generator for use with browser webapps
66 lines (65 loc) • 2.63 kB
TypeScript
/**
* CWMS Data API
* CWMS REST API for Data Retrieval
*
* The version of the OpenAPI document: 2.3.2-2025.03.19
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import * as runtime from '../runtime';
import type { LockRevokerRights } from '../models/index';
export interface GetProjectLockRightsRequest {
officeMask: string;
projectMask?: string;
applicationMask?: string;
}
export interface PostProjectLockRightsRemoveAllRequest {
office: string;
applicationId: string;
userId: string;
}
export interface PostProjectLockRightsUpdateRequest {
office: string;
applicationId: string;
userId: string;
allow: boolean;
projectMask?: string;
}
/**
*
*/
export declare class ProjectLockRevokerRightsApi extends runtime.BaseAPI {
/**
* Get a list of project lock revoker rights
* Get cwmsData projectLockRights
*/
getProjectLockRightsRaw(requestParameters: GetProjectLockRightsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<LockRevokerRights>>>;
/**
* Get a list of project lock revoker rights
* Get cwmsData projectLockRights
*/
getProjectLockRights(requestParameters: GetProjectLockRightsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<LockRevokerRights>>;
/**
* Revokes a project lock, if successful the lock is deleted
* Post cwmsData projectLockRights removeAll
*/
postProjectLockRightsRemoveAllRaw(requestParameters: PostProjectLockRightsRemoveAllRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
/**
* Revokes a project lock, if successful the lock is deleted
* Post cwmsData projectLockRights removeAll
*/
postProjectLockRightsRemoveAll(requestParameters: PostProjectLockRightsRemoveAllRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
/**
* Update Lock Revoker Rights.
* Post cwmsData projectLockRights update
*/
postProjectLockRightsUpdateRaw(requestParameters: PostProjectLockRightsUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
/**
* Update Lock Revoker Rights.
* Post cwmsData projectLockRights update
*/
postProjectLockRightsUpdate(requestParameters: PostProjectLockRightsUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
}