flowus-api-sdk
Version:
Official TypeScript/JavaScript SDK for FlowUs API - Create, manage, and interact with FlowUs pages, databases, and blocks
73 lines (72 loc) • 2.03 kB
JavaScript
;
/* tslint:disable */
/* eslint-disable */
/**
* FlowUs API
* FlowUs Developer 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.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.ModelErrorCodeEnum = exports.ModelErrorObjectEnum = void 0;
exports.instanceOfModelError = instanceOfModelError;
exports.ModelErrorFromJSON = ModelErrorFromJSON;
exports.ModelErrorFromJSONTyped = ModelErrorFromJSONTyped;
exports.ModelErrorToJSON = ModelErrorToJSON;
exports.ModelErrorToJSONTyped = ModelErrorToJSONTyped;
/**
* @export
*/
exports.ModelErrorObjectEnum = {
Error: 'error'
};
/**
* @export
*/
exports.ModelErrorCodeEnum = {
ValidationError: 'validation_error',
Unauthorized: 'unauthorized',
Forbidden: 'forbidden',
NotFound: 'not_found',
RateLimit: 'rate_limit',
InternalError: 'internal_error'
};
/**
* Check if a given object implements the ModelError interface.
*/
function instanceOfModelError(value) {
return true;
}
function ModelErrorFromJSON(json) {
return ModelErrorFromJSONTyped(json, false);
}
function ModelErrorFromJSONTyped(json, ignoreDiscriminator) {
if (json == null) {
return json;
}
return {
'object': json['object'] == null ? undefined : json['object'],
'status': json['status'] == null ? undefined : json['status'],
'code': json['code'] == null ? undefined : json['code'],
'message': json['message'] == null ? undefined : json['message'],
};
}
function ModelErrorToJSON(json) {
return ModelErrorToJSONTyped(json, false);
}
function ModelErrorToJSONTyped(value, ignoreDiscriminator = false) {
if (value == null) {
return value;
}
return {
'object': value['object'],
'status': value['status'],
'code': value['code'],
'message': value['message'],
};
}