diff --git a/es/service/ctyun/CTYun.d.ts b/es/service/ctyun/CTYun.d.ts index 59fcffd..a8e1283 100644 --- a/es/service/ctyun/CTYun.d.ts +++ b/es/service/ctyun/CTYun.d.ts @@ -1,4 +1,4 @@ -import { Action, CTYunZone } from '../../types/CTGun'; +import { Action, CTYunZone } from '../../types/CTYun'; export declare class CTYunInstance { private accessKey; private secretKey; diff --git a/es/types/CTYun.d.ts b/es/types/CTYun.d.ts new file mode 100644 index 0000000..f131fab --- /dev/null +++ b/es/types/CTYun.d.ts @@ -0,0 +1,6 @@ +/** + * 此处记录ctyun操作权限名称,更多操作权限参考下方链接 + * https://www.ctyun.cn/document/10306929/10136179 + */ +export type Action = '*' | 'PutObject' | 'GetObject' | 'DeleteObject' | 'ListBucket'; +export type CTYunZone = 'hazz' | 'lnsy' | 'sccd' | 'xjwlmq' | 'gslz' | 'sdqd' | 'gzgy' | 'hbwh' | 'xzls' | 'ahwh' | 'gdsz' | 'jssz' | 'sh2'; diff --git a/es/types/CTYun.js b/es/types/CTYun.js new file mode 100644 index 0000000..cb0ff5c --- /dev/null +++ b/es/types/CTYun.js @@ -0,0 +1 @@ +export {}; diff --git a/es/types/index.d.ts b/es/types/index.d.ts index ea2fb94..0763376 100644 --- a/es/types/index.d.ts +++ b/es/types/index.d.ts @@ -1,3 +1,3 @@ export * from './Wechat'; export * from './Qiniu'; -export * from './CTGun'; +export * from './CTYun'; diff --git a/es/types/index.js b/es/types/index.js index ea2fb94..0763376 100644 --- a/es/types/index.js +++ b/es/types/index.js @@ -1,3 +1,3 @@ export * from './Wechat'; export * from './Qiniu'; -export * from './CTGun'; +export * from './CTYun'; diff --git a/lib/service/ctyun/CTYun.d.ts b/lib/service/ctyun/CTYun.d.ts index 59fcffd..a8e1283 100644 --- a/lib/service/ctyun/CTYun.d.ts +++ b/lib/service/ctyun/CTYun.d.ts @@ -1,4 +1,4 @@ -import { Action, CTYunZone } from '../../types/CTGun'; +import { Action, CTYunZone } from '../../types/CTYun'; export declare class CTYunInstance { private accessKey; private secretKey; diff --git a/lib/types/index.d.ts b/lib/types/index.d.ts index ea2fb94..0763376 100644 --- a/lib/types/index.d.ts +++ b/lib/types/index.d.ts @@ -1,3 +1,3 @@ export * from './Wechat'; export * from './Qiniu'; -export * from './CTGun'; +export * from './CTYun'; diff --git a/lib/types/index.js b/lib/types/index.js index eee97a9..51d4322 100644 --- a/lib/types/index.js +++ b/lib/types/index.js @@ -3,4 +3,4 @@ Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); tslib_1.__exportStar(require("./Wechat"), exports); tslib_1.__exportStar(require("./Qiniu"), exports); -tslib_1.__exportStar(require("./CTGun"), exports); +tslib_1.__exportStar(require("./CTYun"), exports); diff --git a/src/service/ctyun/CTYun.ts b/src/service/ctyun/CTYun.ts index 335c6cd..329e6e3 100644 --- a/src/service/ctyun/CTYun.ts +++ b/src/service/ctyun/CTYun.ts @@ -1,6 +1,6 @@ // import AWS from 'aws-sdk'; import crypto from 'crypto'; -import { Action, CTYunZone } from '../../types/CTGun'; +import { Action, CTYunZone } from '../../types/CTYun'; const CTYun_ENDPOINT_LIST = { hazz: { diff --git a/src/types/CTGun.ts b/src/types/CTYun.ts similarity index 100% rename from src/types/CTGun.ts rename to src/types/CTYun.ts diff --git a/src/types/index.ts b/src/types/index.ts index 23adc40..09d60f9 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -1,3 +1,3 @@ export * from './Wechat'; export * from './Qiniu'; -export * from './CTGun'; \ No newline at end of file +export * from './CTYun'; \ No newline at end of file