Sybren A. Stüvel e990603311 OAPI: Add generated JavaScript API client
This adds a JS client for the OAPI interface, and introduces the SocketIO
stuff into Flamenco Manager itself.

To build & run:
- in `web/manager-api` run `npm install`
- in `web/manager-api` run `npm link`
- in `web/app` run `npm install`
- in `web/app` run `npm link flamenco-manager`
- in `web/app` run `yarn serve`

This may not be a complete list, but at least some of those steps are
necessary.
2022-04-01 16:40:54 +02:00

131 lines
2.3 KiB
JavaScript

/**
* Flamenco manager
* Render Farm manager API
*
* The version of the OpenAPI document: 1.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*
*/
import ApiClient from '../ApiClient';
/**
* Enum class JobStatus.
* @enum {}
* @readonly
*/
export default class JobStatus {
/**
* value: "active"
* @const
*/
"active" = "active";
/**
* value: "canceled"
* @const
*/
"canceled" = "canceled";
/**
* value: "completed"
* @const
*/
"completed" = "completed";
/**
* value: "construction-failed"
* @const
*/
"construction-failed" = "construction-failed";
/**
* value: "failed"
* @const
*/
"failed" = "failed";
/**
* value: "paused"
* @const
*/
"paused" = "paused";
/**
* value: "queued"
* @const
*/
"queued" = "queued";
/**
* value: "archived"
* @const
*/
"archived" = "archived";
/**
* value: "archiving"
* @const
*/
"archiving" = "archiving";
/**
* value: "cancel-requested"
* @const
*/
"cancel-requested" = "cancel-requested";
/**
* value: "fail-requested"
* @const
*/
"fail-requested" = "fail-requested";
/**
* value: "requeued"
* @const
*/
"requeued" = "requeued";
/**
* value: "under-construction"
* @const
*/
"under-construction" = "under-construction";
/**
* value: "waiting-for-files"
* @const
*/
"waiting-for-files" = "waiting-for-files";
/**
* Returns a <code>JobStatus</code> enum value from a Javascript object name.
* @param {Object} data The plain JavaScript object containing the name of the enum value.
* @return {module:model/JobStatus} The enum <code>JobStatus</code> value.
*/
static constructFromObject(object) {
return object;
}
}