/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { translationsGroupsDelete } from "../funcs/translationsGroupsDelete.js"; import { translationsGroupsRetrieve } from "../funcs/translationsGroupsRetrieve.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class Groups extends ClientSDK { /** * Delete a translation group * * @remarks * Delete an entire translation group and all its translations */ async delete( resourceType: operations.TranslationControllerDeleteTranslationGroupEndpointPathParamResourceType, resourceId: string, idempotencyKey?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(translationsGroupsDelete( this, resourceType, resourceId, idempotencyKey, options, )); } /** * Retrieve a translation group * * @remarks * Retrieves a single translation group by resource type (workflow, layout) and resource ID (workflowId, layoutId) */ async retrieve( resourceType: operations.TranslationControllerGetTranslationGroupEndpointPathParamResourceType, resourceId: string, idempotencyKey?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(translationsGroupsRetrieve( this, resourceType, resourceId, idempotencyKey, options, )); } }