功能新增: - OSS 存储使用情况显示(文件页面) - OSS 当日流量统计(阿里云云监控API) - 分享页面路由修复(/s/xxx 格式支持) Bug修复: - 修复分享页面资源路径(相对路径改绝对路径) - 修复分享码获取逻辑(支持路径格式) - 修复OSS配额undefined显示问题 - 修复登录流程OSS配置检查 - 修复文件数为null时的显示问题 依赖更新: - 添加 @alicloud/cms20190101 云监控SDK - 添加 @alicloud/openapi-client Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
149 lines
5.1 KiB
JavaScript
149 lines
5.1 KiB
JavaScript
"use strict";
|
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
if (k2 === undefined) k2 = k;
|
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
}
|
|
Object.defineProperty(o, k2, desc);
|
|
}) : (function(o, m, k, k2) {
|
|
if (k2 === undefined) k2 = k;
|
|
o[k2] = m[k];
|
|
}));
|
|
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
}) : function(o, v) {
|
|
o["default"] = v;
|
|
});
|
|
var __importStar = (this && this.__importStar) || (function () {
|
|
var ownKeys = function(o) {
|
|
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
var ar = [];
|
|
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
return ar;
|
|
};
|
|
return ownKeys(o);
|
|
};
|
|
return function (mod) {
|
|
if (mod && mod.__esModule) return mod;
|
|
var result = {};
|
|
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
__setModuleDefault(result, mod);
|
|
return result;
|
|
};
|
|
})();
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.EscalationRule = exports.EscalationRuleEscalations = exports.EscalationRuleEscalationsContactGroupsByLevel = void 0;
|
|
// This file is auto-generated, don't edit it
|
|
const $dara = __importStar(require("@darabonba/typescript"));
|
|
class EscalationRuleEscalationsContactGroupsByLevel extends $dara.Model {
|
|
static names() {
|
|
return {
|
|
critical: 'Critical',
|
|
error: 'Error',
|
|
info: 'Info',
|
|
resolve: 'Resolve',
|
|
warning: 'Warning',
|
|
};
|
|
}
|
|
static types() {
|
|
return {
|
|
critical: { 'type': 'array', 'itemType': 'string' },
|
|
error: { 'type': 'array', 'itemType': 'string' },
|
|
info: { 'type': 'array', 'itemType': 'string' },
|
|
resolve: { 'type': 'array', 'itemType': 'string' },
|
|
warning: { 'type': 'array', 'itemType': 'string' },
|
|
};
|
|
}
|
|
validate() {
|
|
if (Array.isArray(this.critical)) {
|
|
$dara.Model.validateArray(this.critical);
|
|
}
|
|
if (Array.isArray(this.error)) {
|
|
$dara.Model.validateArray(this.error);
|
|
}
|
|
if (Array.isArray(this.info)) {
|
|
$dara.Model.validateArray(this.info);
|
|
}
|
|
if (Array.isArray(this.resolve)) {
|
|
$dara.Model.validateArray(this.resolve);
|
|
}
|
|
if (Array.isArray(this.warning)) {
|
|
$dara.Model.validateArray(this.warning);
|
|
}
|
|
super.validate();
|
|
}
|
|
constructor(map) {
|
|
super(map);
|
|
}
|
|
}
|
|
exports.EscalationRuleEscalationsContactGroupsByLevel = EscalationRuleEscalationsContactGroupsByLevel;
|
|
class EscalationRuleEscalations extends $dara.Model {
|
|
static names() {
|
|
return {
|
|
backupContactGroups: 'BackupContactGroups',
|
|
contactGroups: 'ContactGroups',
|
|
contactGroupsByLevel: 'ContactGroupsByLevel',
|
|
escalateMin: 'EscalateMin',
|
|
};
|
|
}
|
|
static types() {
|
|
return {
|
|
backupContactGroups: { 'type': 'array', 'itemType': 'string' },
|
|
contactGroups: { 'type': 'array', 'itemType': 'string' },
|
|
contactGroupsByLevel: EscalationRuleEscalationsContactGroupsByLevel,
|
|
escalateMin: 'number',
|
|
};
|
|
}
|
|
validate() {
|
|
if (Array.isArray(this.backupContactGroups)) {
|
|
$dara.Model.validateArray(this.backupContactGroups);
|
|
}
|
|
if (Array.isArray(this.contactGroups)) {
|
|
$dara.Model.validateArray(this.contactGroups);
|
|
}
|
|
if (this.contactGroupsByLevel && typeof this.contactGroupsByLevel.validate === 'function') {
|
|
this.contactGroupsByLevel.validate();
|
|
}
|
|
super.validate();
|
|
}
|
|
constructor(map) {
|
|
super(map);
|
|
}
|
|
}
|
|
exports.EscalationRuleEscalations = EscalationRuleEscalations;
|
|
class EscalationRule extends $dara.Model {
|
|
static names() {
|
|
return {
|
|
createTime: 'CreateTime',
|
|
description: 'Description',
|
|
escalations: 'Escalations',
|
|
name: 'Name',
|
|
updateTime: 'UpdateTime',
|
|
userId: 'UserId',
|
|
uuid: 'Uuid',
|
|
};
|
|
}
|
|
static types() {
|
|
return {
|
|
createTime: 'string',
|
|
description: 'string',
|
|
escalations: { 'type': 'array', 'itemType': EscalationRuleEscalations },
|
|
name: 'string',
|
|
updateTime: 'string',
|
|
userId: 'string',
|
|
uuid: 'string',
|
|
};
|
|
}
|
|
validate() {
|
|
if (Array.isArray(this.escalations)) {
|
|
$dara.Model.validateArray(this.escalations);
|
|
}
|
|
super.validate();
|
|
}
|
|
constructor(map) {
|
|
super(map);
|
|
}
|
|
}
|
|
exports.EscalationRule = EscalationRule;
|
|
//# sourceMappingURL=EscalationRule.js.map
|