UNPKG

cwmsjs

Version:

CWMS Data API Library for JavaScript/TypeScript created with OpenAPI generator for use with browser webapps

74 lines (73 loc) 3.17 kB
/** * 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 { LocationCategory } from '../models/index'; export interface DeleteLocationCategoryWithCategoryIdRequest { categoryId: string; office: string; cascadeDelete?: boolean; } export interface GetLocationCategoryRequest { office?: string; } export interface GetLocationCategoryWithCategoryIdRequest { categoryId: string; office: string; } export interface PostLocationCategoryRequest { locationCategory: LocationCategory; } /** * */ export declare class LocationCategoriesApi extends runtime.BaseAPI { /** * Deletes requested location category * Delete cwmsData location category with categoryId */ deleteLocationCategoryWithCategoryIdRaw(requestParameters: DeleteLocationCategoryWithCategoryIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>; /** * Deletes requested location category * Delete cwmsData location category with categoryId */ deleteLocationCategoryWithCategoryId(requestParameters: DeleteLocationCategoryWithCategoryIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>; /** * Returns CWMS Location Category Data * Get cwmsData location category */ getLocationCategoryRaw(requestParameters: GetLocationCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<LocationCategory>>>; /** * Returns CWMS Location Category Data * Get cwmsData location category */ getLocationCategory(requestParameters?: GetLocationCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<LocationCategory>>; /** * Retrieves requested Location Category * Get cwmsData location category with categoryId */ getLocationCategoryWithCategoryIdRaw(requestParameters: GetLocationCategoryWithCategoryIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<LocationCategory>>; /** * Retrieves requested Location Category * Get cwmsData location category with categoryId */ getLocationCategoryWithCategoryId(requestParameters: GetLocationCategoryWithCategoryIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<LocationCategory>; /** * Create new LocationCategory * Post cwmsData location category */ postLocationCategoryRaw(requestParameters: PostLocationCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>; /** * Create new LocationCategory * Post cwmsData location category */ postLocationCategory(requestParameters: PostLocationCategoryRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>; }