-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Strings based API methods (#328)
* projects API updates * translations * source strings methods * strings translations * glossaries * translation memory * machine translation * translation status * reports * tasks * users * tasks refactoring * teams * vendors * clients * webhooks * org webhooks * applications * bundle * distributions * labels * notifications
- Loading branch information
Showing
30 changed files
with
731 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { CrowdinApi, PaginationOptions, ResponseList } from '../core'; | ||
|
||
/** | ||
* Clients are the organizations that order professional translation services from Vendors. | ||
* Clients can invite an existing organization to become a Vendor for them. | ||
* | ||
* Use the API to get a list of the Clients you already cooperate with as a Vendor. | ||
*/ | ||
export class Clients extends CrowdinApi { | ||
/** | ||
* @param options optional pagination parameters for the request | ||
* @see https://developer.crowdin.com/enterprise/api/v2/#operation/api.clients.getMany | ||
*/ | ||
listClients(options?: PaginationOptions): Promise<ResponseList<ClientsModel.Client>> { | ||
const url = `${this.url}/clients`; | ||
return this.getList(url, options?.limit, options?.offset); | ||
} | ||
} | ||
|
||
export namespace ClientsModel { | ||
export interface Client { | ||
id: number; | ||
name: string; | ||
description: string; | ||
status: 'pending' | 'confirmed' | 'rejected'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.