@bitblit/ratchet-misc
Version:
Ratchet miscellaneous tooling that requires smallish dependant libraries
26 lines (25 loc) • 1.1 kB
TypeScript
export interface ErrorModel {
code: ErrorModelCodeEnum;
message: string;
}
export declare enum ErrorModelCodeEnum {
InvalidParameter = "invalid_parameter",
MissingParameter = "missing_parameter",
OutOfRange = "out_of_range",
CampaignProcessing = "campaign_processing",
CampaignSent = "campaign_sent",
DocumentNotFound = "document_not_found",
ResellerPermissionDenied = "reseller_permission_denied",
NotEnoughCredits = "not_enough_credits",
PermissionDenied = "permission_denied",
DuplicateParameter = "duplicate_parameter",
DuplicateRequest = "duplicate_request",
MethodNotAllowed = "method_not_allowed",
Unauthorized = "unauthorized",
AccountUnderValidation = "account_under_validation",
NotAcceptable = "not_acceptable"
}
export declare function instanceOfErrorModel(value: object): boolean;
export declare function ErrorModelFromJSON(json: any): ErrorModel;
export declare function ErrorModelFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorModel;
export declare function ErrorModelToJSON(value?: ErrorModel | null): any;