File size: 5,549 Bytes
f316cce
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.BatchSizeTooLargeError = exports.SecurityCompromiseError = exports.HarmfulContentError = exports.BudgetExceededError = exports.LockConflictError = exports.InsufficientBalanceError = exports.TierFeatureConstraintError = exports.InsufficientCreditsError = exports.EmailUnverifiedError = exports.ServiceBadApproachError = exports.ServiceBadAttemptError = exports.ServiceNodeResourceDrainError = exports.ServiceCrashedError = exports.ServiceDisabledError = void 0;
const civ_rpc_1 = require("civkit/civ-rpc");
const dayjs_1 = __importDefault(require("dayjs"));
const utc_1 = __importDefault(require("dayjs/plugin/utc"));
dayjs_1.default.extend(utc_1.default);
let ServiceDisabledError = class ServiceDisabledError extends civ_rpc_1.ApplicationError {
};
exports.ServiceDisabledError = ServiceDisabledError;
exports.ServiceDisabledError = ServiceDisabledError = __decorate([
    (0, civ_rpc_1.StatusCode)(50301)
], ServiceDisabledError);
let ServiceCrashedError = class ServiceCrashedError extends civ_rpc_1.ApplicationError {
};
exports.ServiceCrashedError = ServiceCrashedError;
exports.ServiceCrashedError = ServiceCrashedError = __decorate([
    (0, civ_rpc_1.StatusCode)(50302)
], ServiceCrashedError);
let ServiceNodeResourceDrainError = class ServiceNodeResourceDrainError extends civ_rpc_1.ApplicationError {
};
exports.ServiceNodeResourceDrainError = ServiceNodeResourceDrainError;
exports.ServiceNodeResourceDrainError = ServiceNodeResourceDrainError = __decorate([
    (0, civ_rpc_1.StatusCode)(50303)
], ServiceNodeResourceDrainError);
let ServiceBadAttemptError = class ServiceBadAttemptError extends civ_rpc_1.ApplicationError {
};
exports.ServiceBadAttemptError = ServiceBadAttemptError;
exports.ServiceBadAttemptError = ServiceBadAttemptError = __decorate([
    (0, civ_rpc_1.StatusCode)(50304)
], ServiceBadAttemptError);
let ServiceBadApproachError = class ServiceBadApproachError extends ServiceBadAttemptError {
};
exports.ServiceBadApproachError = ServiceBadApproachError;
exports.ServiceBadApproachError = ServiceBadApproachError = __decorate([
    (0, civ_rpc_1.StatusCode)(50305)
], ServiceBadApproachError);
let EmailUnverifiedError = class EmailUnverifiedError extends civ_rpc_1.ApplicationError {
};
exports.EmailUnverifiedError = EmailUnverifiedError;
exports.EmailUnverifiedError = EmailUnverifiedError = __decorate([
    (0, civ_rpc_1.StatusCode)(40104)
], EmailUnverifiedError);
let InsufficientCreditsError = class InsufficientCreditsError extends civ_rpc_1.ApplicationError {
};
exports.InsufficientCreditsError = InsufficientCreditsError;
exports.InsufficientCreditsError = InsufficientCreditsError = __decorate([
    (0, civ_rpc_1.StatusCode)(40201)
], InsufficientCreditsError);
let TierFeatureConstraintError = class TierFeatureConstraintError extends civ_rpc_1.ApplicationError {
};
exports.TierFeatureConstraintError = TierFeatureConstraintError;
exports.TierFeatureConstraintError = TierFeatureConstraintError = __decorate([
    (0, civ_rpc_1.StatusCode)(40202)
], TierFeatureConstraintError);
let InsufficientBalanceError = class InsufficientBalanceError extends civ_rpc_1.ApplicationError {
};
exports.InsufficientBalanceError = InsufficientBalanceError;
exports.InsufficientBalanceError = InsufficientBalanceError = __decorate([
    (0, civ_rpc_1.StatusCode)(40203)
], InsufficientBalanceError);
let LockConflictError = class LockConflictError extends civ_rpc_1.ApplicationError {
};
exports.LockConflictError = LockConflictError;
exports.LockConflictError = LockConflictError = __decorate([
    (0, civ_rpc_1.StatusCode)(40903)
], LockConflictError);
let BudgetExceededError = class BudgetExceededError extends civ_rpc_1.ApplicationError {
};
exports.BudgetExceededError = BudgetExceededError;
exports.BudgetExceededError = BudgetExceededError = __decorate([
    (0, civ_rpc_1.StatusCode)(40904)
], BudgetExceededError);
let HarmfulContentError = class HarmfulContentError extends civ_rpc_1.ApplicationError {
};
exports.HarmfulContentError = HarmfulContentError;
exports.HarmfulContentError = HarmfulContentError = __decorate([
    (0, civ_rpc_1.StatusCode)(45101)
], HarmfulContentError);
let SecurityCompromiseError = class SecurityCompromiseError extends civ_rpc_1.ApplicationError {
};
exports.SecurityCompromiseError = SecurityCompromiseError;
exports.SecurityCompromiseError = SecurityCompromiseError = __decorate([
    (0, civ_rpc_1.StatusCode)(45102)
], SecurityCompromiseError);
let BatchSizeTooLargeError = class BatchSizeTooLargeError extends civ_rpc_1.ApplicationError {
};
exports.BatchSizeTooLargeError = BatchSizeTooLargeError;
exports.BatchSizeTooLargeError = BatchSizeTooLargeError = __decorate([
    (0, civ_rpc_1.StatusCode)(41201)
], BatchSizeTooLargeError);
//# sourceMappingURL=errors.js.map