ksyun-sdk-node 1.0.5 → 1.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/settings.local.json +12 -0
- package/dist/base/BaseClient.js +133 -52
- package/dist/index.js +9 -12
- package/dist/lib/fetch.js +4 -5
- package/dist/lib/sign.js +31 -33
- package/dist/lib/signautreV4.js +167 -0
- package/dist/service/Actiontrail/v20190401/index.js +34 -37
- package/dist/service/Aicp/v20240612/index.js +511 -0
- package/dist/service/Bill/v20180601/index.js +49 -88
- package/dist/service/Bill/v20220601/index.js +64 -0
- package/dist/service/Bill_union/v20200101/index.js +151 -77
- package/dist/service/Bill_union/v20221222/index.js +142 -0
- package/dist/service/Bill_union/v20250801/index.js +66 -0
- package/dist/service/Bws/v20160304/index.js +111 -94
- package/dist/service/Cdn/v20160901/index.js +89 -0
- package/dist/service/Cdn/v20200630/index.js +410 -0
- package/dist/service/Cdn/v20200901/index.js +162 -0
- package/dist/service/Cdn/v20211201/index.js +45 -0
- package/dist/service/Cdn/v20250503/index.js +71 -0
- package/dist/service/Cen/v20160304/index.js +460 -0
- package/dist/service/Clickhouse/v20210101/index.js +546 -0
- package/dist/service/Ebs/v20160304/index.js +265 -268
- package/dist/service/Eip/v20160304/index.js +104 -107
- package/dist/service/Epc/v20151101/index.js +1735 -784
- package/dist/service/Iam/v20151101/index.js +872 -711
- package/dist/service/Iam/v20240513/index.js +47 -0
- package/dist/service/Iam/v20240703/index.js +44 -0
- package/dist/service/Kad/v20161122/index.js +84 -87
- package/dist/service/Kce/v20180314/index.js +320 -0
- package/dist/service/Kce/v20190806/index.js +482 -0
- package/dist/service/Kce/v20201231/index.js +63 -0
- package/dist/service/Kcf/v20211215/index.js +203 -0
- package/dist/service/Kcm/v20160304/index.js +120 -0
- package/dist/service/Kcrs/v20211109/index.js +851 -0
- package/dist/service/Kcs/v20160701/index.js +1106 -0
- package/dist/service/Kcs/v20170401/index.js +81 -0
- package/dist/service/Kead/v20200101/index.js +28 -31
- package/dist/service/Kec/v20160304/index.js +1695 -1466
- package/dist/service/Kes/v20201215/index.js +171 -0
- package/dist/service/Ket/v20170101/index.js +141 -0
- package/dist/service/Kkms/v20160304/index.js +167 -0
- package/dist/service/Klog/v20200731/index.js +331 -0
- package/dist/service/Kls/v20170101/index.js +194 -0
- package/dist/service/Kmr/v20210902/index.js +422 -0
- package/dist/service/Kmr/v20231231/index.js +154 -0
- package/dist/service/Kmr/v20240814/index.js +370 -0
- package/dist/service/Krds/v20160701/index.js +1302 -0
- package/dist/service/Krds/v20200825/index.js +174 -0
- package/dist/service/Memcached/v20180627/index.js +249 -0
- package/dist/service/Mongodb/v20170101/index.js +516 -501
- package/dist/service/Monitor/v20100525/index.js +70 -0
- package/dist/service/Monitor/v20181114/index.js +49 -0
- package/dist/service/Monitor/v20210101/index.js +216 -0
- package/dist/service/Monitor/v20220101/index.js +58 -0
- package/dist/service/Monitor/v20250101/index.js +71 -0
- package/dist/service/Rabbitmq/v20191017/index.js +242 -0
- package/dist/service/Resourcemanager/v20210320/index.js +113 -116
- package/dist/service/Sks/v20151101/index.js +72 -75
- package/dist/service/Slb/v20160304/index.js +1299 -790
- package/dist/service/Sts/v20151101/index.js +26 -29
- package/dist/service/Tagv2/v20200901/index.js +174 -0
- package/dist/service/Tidb/v20210520/index.js +363 -0
- package/dist/service/Trade/v20200114/index.js +23 -26
- package/dist/service/Trade/v20200831/index.js +25 -28
- package/dist/service/Vpc/v20160304/index.js +2015 -1045
- package/dist/service/Waf/v20200707/index.js +248 -0
- package/example/iam.js +2 -1
- package/example/res.js +2 -1
- package/package.json +1 -1
- package/src/base/BaseClient.js +131 -35
- package/src/lib/signautreV4.js +166 -0
- package/src/service/Actiontrail/v20190401/index.js +42 -42
- package/src/service/Aicp/v20240612/index.js +503 -0
- package/src/service/Bill/v20180601/index.js +61 -102
- package/src/service/Bill/v20220601/index.js +56 -0
- package/src/service/Bill_union/v20200101/index.js +181 -109
- package/src/service/Bill_union/v20221222/index.js +134 -0
- package/src/service/Bill_union/v20250801/index.js +58 -0
- package/src/service/Bws/v20160304/index.js +139 -119
- package/src/service/Cdn/v20160901/index.js +81 -0
- package/src/service/Cdn/v20200630/index.js +402 -0
- package/src/service/Cdn/v20200901/index.js +154 -0
- package/src/service/Cdn/v20211201/index.js +37 -0
- package/src/service/Cdn/v20250503/index.js +63 -0
- package/src/service/Cen/v20160304/index.js +452 -0
- package/src/service/Clickhouse/v20210101/index.js +538 -0
- package/src/service/Ebs/v20160304/index.js +365 -368
- package/src/service/Eip/v20160304/index.js +135 -136
- package/src/service/Epc/v20151101/index.js +1984 -1033
- package/src/service/Iam/v20151101/index.js +1155 -993
- package/src/service/Iam/v20240513/index.js +39 -0
- package/src/service/Iam/v20240703/index.js +36 -0
- package/src/service/Kad/v20161122/index.js +112 -112
- package/src/service/Kce/v20180314/index.js +312 -0
- package/src/service/Kce/v20190806/index.js +474 -0
- package/src/service/Kce/v20201231/index.js +55 -0
- package/src/service/Kcf/v20211215/index.js +195 -0
- package/src/service/Kcm/v20160304/index.js +112 -0
- package/src/service/Kcrs/v20211109/index.js +843 -0
- package/src/service/Kcs/v20160701/index.js +1098 -0
- package/src/service/Kcs/v20170401/index.js +73 -0
- package/src/service/Kead/v20200101/index.js +36 -36
- package/src/service/Kec/v20160304/index.js +2061 -1838
- package/src/service/Kes/v20201215/index.js +163 -0
- package/src/service/Ket/v20170101/index.js +133 -0
- package/src/service/Kkms/v20160304/index.js +159 -0
- package/src/service/Klog/v20200731/index.js +323 -0
- package/src/service/Kls/v20170101/index.js +186 -0
- package/src/service/Kmr/v20210902/index.js +414 -0
- package/src/service/Kmr/v20231231/index.js +146 -0
- package/src/service/Kmr/v20240814/index.js +362 -0
- package/src/service/Krds/v20160701/index.js +1294 -0
- package/src/service/Krds/v20200825/index.js +166 -0
- package/src/service/Memcached/v20180627/index.js +241 -0
- package/src/service/Mongodb/v20170101/index.js +672 -654
- package/src/service/Monitor/v20100525/index.js +62 -0
- package/src/service/Monitor/v20181114/index.js +41 -0
- package/src/service/Monitor/v20210101/index.js +208 -0
- package/src/service/Monitor/v20220101/index.js +50 -0
- package/src/service/Monitor/v20250101/index.js +63 -0
- package/src/service/Rabbitmq/v20191017/index.js +234 -0
- package/src/service/Resourcemanager/v20210320/index.js +157 -158
- package/src/service/Sks/v20151101/index.js +95 -96
- package/src/service/Slb/v20160304/index.js +1471 -959
- package/src/service/Sts/v20151101/index.js +34 -34
- package/src/service/Tagv2/v20200901/index.js +166 -0
- package/src/service/Tidb/v20210520/index.js +355 -0
- package/src/service/Trade/v20200114/index.js +31 -31
- package/src/service/Trade/v20200831/index.js +33 -33
- package/src/service/Vpc/v20160304/index.js +2404 -1432
- package/src/service/Waf/v20200707/index.js +240 -0
- package/src/service/Bill_union/v20211209/index.js +0 -35
- package/src/service/Slb/v20171210/index.js +0 -39
|
@@ -1,117 +1,78 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _defineProperty(
|
|
4
|
-
|
|
3
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
4
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
5
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
5
6
|
const BaseClient = require("../../../base/BaseClient.js");
|
|
6
|
-
|
|
7
7
|
module.exports = class Client extends BaseClient {
|
|
8
8
|
constructor(...args) {
|
|
9
9
|
super(...args);
|
|
10
|
-
|
|
11
10
|
_defineProperty(this, "_baseConfig", {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
protocol: "http://",
|
|
12
|
+
endpoint: "bill.api.ksyun.com",
|
|
13
|
+
config: {
|
|
14
|
+
timeout: 60,
|
|
16
15
|
//设置timeout
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
headers: {
|
|
17
|
+
Accept: "application/json"
|
|
19
18
|
},
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
credentials: {
|
|
20
|
+
region: "cn-shanghai-3",
|
|
21
|
+
service: "bill"
|
|
23
22
|
}
|
|
24
23
|
}
|
|
25
24
|
});
|
|
26
|
-
|
|
27
25
|
_defineProperty(this, "_apiList", {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
26
|
+
GetMonthBill: {
|
|
27
|
+
url: "/",
|
|
28
|
+
method: "GET",
|
|
29
|
+
config: {
|
|
30
|
+
query: {
|
|
31
|
+
Version: "2018-06-01",
|
|
32
|
+
Action: "GetMonthBill"
|
|
35
33
|
},
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
headers: {
|
|
35
|
+
"Content-Type": "application/json"
|
|
38
36
|
}
|
|
39
37
|
},
|
|
40
|
-
|
|
41
|
-
|
|
38
|
+
paramsType: {
|
|
39
|
+
BillStartMonth: "String",
|
|
40
|
+
BillEndMonth: "String"
|
|
42
41
|
}
|
|
43
42
|
},
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
},
|
|
52
|
-
'headers': {
|
|
53
|
-
'Content-Type': 'application/json'
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
'paramsType': {}
|
|
57
|
-
},
|
|
58
|
-
'GetPostpayDetailBillCSV': {
|
|
59
|
-
'url': '/',
|
|
60
|
-
'method': 'GET',
|
|
61
|
-
'config': {
|
|
62
|
-
'query': {
|
|
63
|
-
'Version': '2018-06-01',
|
|
64
|
-
'Action': 'GetPostpayDetailBillCSV'
|
|
65
|
-
},
|
|
66
|
-
'headers': {
|
|
67
|
-
'Content-Type': 'application/json'
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
'paramsType': {}
|
|
71
|
-
},
|
|
72
|
-
'GetProductCode': {
|
|
73
|
-
'url': '/',
|
|
74
|
-
'method': 'GET',
|
|
75
|
-
'config': {
|
|
76
|
-
'query': {
|
|
77
|
-
'Version': '2018-06-01',
|
|
78
|
-
'Action': 'GetProductCode'
|
|
43
|
+
GetPostpayDetailBill: {
|
|
44
|
+
url: "/",
|
|
45
|
+
method: "GET",
|
|
46
|
+
config: {
|
|
47
|
+
query: {
|
|
48
|
+
Version: "2018-06-01",
|
|
49
|
+
Action: "GetPostpayDetailBill"
|
|
79
50
|
},
|
|
80
|
-
|
|
81
|
-
|
|
51
|
+
headers: {
|
|
52
|
+
"Content-Type": "application/json"
|
|
82
53
|
}
|
|
83
54
|
},
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
'query': {
|
|
91
|
-
'Version': '2018-06-01',
|
|
92
|
-
'Action': 'getMonthConsume'
|
|
93
|
-
},
|
|
94
|
-
'headers': {
|
|
95
|
-
'Content-Type': 'application/json'
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
'paramsType': {}
|
|
55
|
+
paramsType: {
|
|
56
|
+
BillStartMonth: "String",
|
|
57
|
+
BillEndMonth: "String",
|
|
58
|
+
ProductCode: "String",
|
|
59
|
+
ProjectId: "String"
|
|
60
|
+
}
|
|
99
61
|
},
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
62
|
+
GetProductCode: {
|
|
63
|
+
url: "/",
|
|
64
|
+
method: "GET",
|
|
65
|
+
config: {
|
|
66
|
+
query: {
|
|
67
|
+
Version: "2018-06-01",
|
|
68
|
+
Action: "GetProductCode"
|
|
107
69
|
},
|
|
108
|
-
|
|
109
|
-
|
|
70
|
+
headers: {
|
|
71
|
+
"Content-Type": "application/json"
|
|
110
72
|
}
|
|
111
73
|
},
|
|
112
|
-
|
|
74
|
+
paramsType: {}
|
|
113
75
|
}
|
|
114
76
|
});
|
|
115
77
|
}
|
|
116
|
-
|
|
117
78
|
};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
4
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
5
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6
|
+
const BaseClient = require("../../../base/BaseClient.js");
|
|
7
|
+
module.exports = class Client extends BaseClient {
|
|
8
|
+
constructor(...args) {
|
|
9
|
+
super(...args);
|
|
10
|
+
_defineProperty(this, "_baseConfig", {
|
|
11
|
+
protocol: "http://",
|
|
12
|
+
endpoint: "bill.api.ksyun.com",
|
|
13
|
+
config: {
|
|
14
|
+
timeout: 60,
|
|
15
|
+
//设置timeout
|
|
16
|
+
headers: {
|
|
17
|
+
Accept: "application/json"
|
|
18
|
+
},
|
|
19
|
+
credentials: {
|
|
20
|
+
region: "cn-shanghai-3",
|
|
21
|
+
service: "bill"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
_defineProperty(this, "_apiList", {
|
|
26
|
+
GetMonthConsume: {
|
|
27
|
+
url: "/",
|
|
28
|
+
method: "GET",
|
|
29
|
+
config: {
|
|
30
|
+
query: {
|
|
31
|
+
Version: "2022-06-01",
|
|
32
|
+
Action: "GetMonthConsume"
|
|
33
|
+
},
|
|
34
|
+
headers: {
|
|
35
|
+
"Content-Type": "application/json"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
paramsType: {
|
|
39
|
+
BillMonth: "String"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
GetPostpayDetailConsume: {
|
|
43
|
+
url: "/",
|
|
44
|
+
method: "GET",
|
|
45
|
+
config: {
|
|
46
|
+
query: {
|
|
47
|
+
Version: "2022-06-01",
|
|
48
|
+
Action: "GetPostpayDetailConsume"
|
|
49
|
+
},
|
|
50
|
+
headers: {
|
|
51
|
+
"Content-Type": "application/json"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
paramsType: {
|
|
55
|
+
BillMonth: "String",
|
|
56
|
+
ProductCode: "String",
|
|
57
|
+
ProjectId: "String",
|
|
58
|
+
PageNo: "Int",
|
|
59
|
+
PageSize: "Int"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
};
|
|
@@ -1,118 +1,192 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _defineProperty(
|
|
4
|
-
|
|
3
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
4
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
5
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
5
6
|
const BaseClient = require("../../../base/BaseClient.js");
|
|
6
|
-
|
|
7
7
|
module.exports = class Client extends BaseClient {
|
|
8
8
|
constructor(...args) {
|
|
9
9
|
super(...args);
|
|
10
|
-
|
|
11
10
|
_defineProperty(this, "_baseConfig", {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
protocol: "http://",
|
|
12
|
+
endpoint: "bill-union.api.ksyun.com",
|
|
13
|
+
config: {
|
|
14
|
+
timeout: 60,
|
|
16
15
|
//设置timeout
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
headers: {
|
|
17
|
+
Accept: "application/json"
|
|
19
18
|
},
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
credentials: {
|
|
20
|
+
region: "cn-shanghai-3",
|
|
21
|
+
service: "bill-union"
|
|
23
22
|
}
|
|
24
23
|
}
|
|
25
24
|
});
|
|
26
|
-
|
|
27
25
|
_defineProperty(this, "_apiList", {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
26
|
+
DescribeBillSummaryByPayMode: {
|
|
27
|
+
url: "/",
|
|
28
|
+
method: "GET",
|
|
29
|
+
config: {
|
|
30
|
+
query: {
|
|
31
|
+
Version: "2020-01-01",
|
|
32
|
+
Action: "DescribeBillSummaryByPayMode"
|
|
33
|
+
},
|
|
34
|
+
headers: {
|
|
35
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
paramsType: {
|
|
39
|
+
BillBeginMonth: "String",
|
|
40
|
+
BillEndMonth: "String",
|
|
41
|
+
SubAccount: "Int",
|
|
42
|
+
FetchAllFinanceRelationData: "Boolean"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
DescribeBillSummaryByProduct: {
|
|
46
|
+
url: "/",
|
|
47
|
+
method: "GET",
|
|
48
|
+
config: {
|
|
49
|
+
query: {
|
|
50
|
+
Version: "2020-01-01",
|
|
51
|
+
Action: "DescribeBillSummaryByProduct"
|
|
35
52
|
},
|
|
36
|
-
|
|
37
|
-
|
|
53
|
+
headers: {
|
|
54
|
+
"Content-Type": "application/json"
|
|
38
55
|
}
|
|
39
56
|
},
|
|
40
|
-
|
|
57
|
+
paramsType: {
|
|
58
|
+
BillBeginMonth: "String",
|
|
59
|
+
BillEndMonth: "String",
|
|
60
|
+
SubAccount: "Int",
|
|
61
|
+
FetchAllFinanceRelationData: "Boolean"
|
|
62
|
+
}
|
|
41
63
|
},
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
64
|
+
DescribeBillSummaryByProject: {
|
|
65
|
+
url: "/",
|
|
66
|
+
method: "GET",
|
|
67
|
+
config: {
|
|
68
|
+
query: {
|
|
69
|
+
Version: "2020-01-01",
|
|
70
|
+
Action: "DescribeBillSummaryByProject"
|
|
49
71
|
},
|
|
50
|
-
|
|
51
|
-
|
|
72
|
+
headers: {
|
|
73
|
+
"Content-Type": "application/x-www-form-urlencoded"
|
|
52
74
|
}
|
|
53
75
|
},
|
|
54
|
-
|
|
76
|
+
paramsType: {
|
|
77
|
+
BillBeginMonth: "String",
|
|
78
|
+
BillEndMonth: "String",
|
|
79
|
+
SubAccount: "Int",
|
|
80
|
+
FetchAllFinanceRelationData: "Boolean"
|
|
81
|
+
}
|
|
55
82
|
},
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
83
|
+
DescribeInstanceSummaryBills: {
|
|
84
|
+
url: "/",
|
|
85
|
+
method: "GET",
|
|
86
|
+
config: {
|
|
87
|
+
query: {
|
|
88
|
+
Version: "2020-01-01",
|
|
89
|
+
Action: "DescribeInstanceSummaryBills"
|
|
63
90
|
},
|
|
64
|
-
|
|
65
|
-
|
|
91
|
+
headers: {
|
|
92
|
+
"Content-Type": "application/json"
|
|
66
93
|
}
|
|
67
94
|
},
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
95
|
+
paramsType: {
|
|
96
|
+
BillMonth: "String",
|
|
97
|
+
ProductCode: "String",
|
|
98
|
+
Page: "Int",
|
|
99
|
+
Size: "Int"
|
|
71
100
|
}
|
|
72
101
|
},
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
102
|
+
DescribeProductCode: {
|
|
103
|
+
url: "/",
|
|
104
|
+
method: "GET",
|
|
105
|
+
config: {
|
|
106
|
+
query: {
|
|
107
|
+
Version: "2020-01-01",
|
|
108
|
+
Action: "DescribeProductCode"
|
|
80
109
|
},
|
|
81
|
-
|
|
82
|
-
|
|
110
|
+
headers: {
|
|
111
|
+
"Content-Type": "application/json"
|
|
83
112
|
}
|
|
84
113
|
},
|
|
85
|
-
|
|
114
|
+
paramsType: {}
|
|
86
115
|
},
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
116
|
+
DescribeSplitItemBillDetails: {
|
|
117
|
+
url: "/",
|
|
118
|
+
method: "GET",
|
|
119
|
+
config: {
|
|
120
|
+
query: {
|
|
121
|
+
Version: "2020-01-01",
|
|
122
|
+
Action: "DescribeSplitItemBillDetails"
|
|
94
123
|
},
|
|
95
|
-
|
|
96
|
-
|
|
124
|
+
headers: {
|
|
125
|
+
"Content-Type": "application/json"
|
|
97
126
|
}
|
|
98
127
|
},
|
|
99
|
-
|
|
128
|
+
paramsType: {
|
|
129
|
+
CustomerBillMonth: "Int",
|
|
130
|
+
ProductGroupCode: "String",
|
|
131
|
+
StatisticType: "Int",
|
|
132
|
+
PayType: "Int",
|
|
133
|
+
SubAccountId: "Int",
|
|
134
|
+
Page: "Int",
|
|
135
|
+
Size: "String"
|
|
136
|
+
}
|
|
100
137
|
},
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
138
|
+
DescribeMiItemBills: {
|
|
139
|
+
url: "/",
|
|
140
|
+
method: "GET",
|
|
141
|
+
config: {
|
|
142
|
+
query: {
|
|
143
|
+
Version: "2020-01-01",
|
|
144
|
+
Action: "DescribeMiItemBills"
|
|
108
145
|
},
|
|
109
|
-
|
|
110
|
-
|
|
146
|
+
headers: {
|
|
147
|
+
"Content-Type": "application/json"
|
|
111
148
|
}
|
|
112
149
|
},
|
|
113
|
-
|
|
150
|
+
paramsType: {
|
|
151
|
+
BillMonth: "String"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
DescribeSplitItemDayBillDetails: {
|
|
155
|
+
url: "/",
|
|
156
|
+
method: "GET",
|
|
157
|
+
config: {
|
|
158
|
+
query: {
|
|
159
|
+
Version: "2020-01-01",
|
|
160
|
+
Action: "DescribeSplitItemDayBillDetails"
|
|
161
|
+
},
|
|
162
|
+
headers: {
|
|
163
|
+
"Content-Type": "application/json"
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
paramsType: {
|
|
167
|
+
CustomerBillMonth: "Int",
|
|
168
|
+
ProductGroupCode: "String",
|
|
169
|
+
StatisticType: "Int",
|
|
170
|
+
PayType: "Int",
|
|
171
|
+
SubAccountId: "Int",
|
|
172
|
+
Page: "Int",
|
|
173
|
+
Size: "Int"
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
ListProductGroups: {
|
|
177
|
+
url: "/",
|
|
178
|
+
method: "GET",
|
|
179
|
+
config: {
|
|
180
|
+
query: {
|
|
181
|
+
Version: "2020-01-01",
|
|
182
|
+
Action: "ListProductGroups"
|
|
183
|
+
},
|
|
184
|
+
headers: {
|
|
185
|
+
"Content-Type": "application/json"
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
paramsType: {}
|
|
114
189
|
}
|
|
115
190
|
});
|
|
116
191
|
}
|
|
117
|
-
|
|
118
192
|
};
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
4
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
5
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
6
|
+
const BaseClient = require("../../../base/BaseClient.js");
|
|
7
|
+
module.exports = class Client extends BaseClient {
|
|
8
|
+
constructor(...args) {
|
|
9
|
+
super(...args);
|
|
10
|
+
_defineProperty(this, "_baseConfig", {
|
|
11
|
+
protocol: "http://",
|
|
12
|
+
endpoint: "bill-union.api.ksyun.com",
|
|
13
|
+
config: {
|
|
14
|
+
timeout: 60,
|
|
15
|
+
//设置timeout
|
|
16
|
+
headers: {
|
|
17
|
+
Accept: "application/json"
|
|
18
|
+
},
|
|
19
|
+
credentials: {
|
|
20
|
+
region: "cn-shanghai-3",
|
|
21
|
+
service: "bill-union"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
_defineProperty(this, "_apiList", {
|
|
26
|
+
QueryInstanceConsume: {
|
|
27
|
+
url: "/",
|
|
28
|
+
method: "GET",
|
|
29
|
+
config: {
|
|
30
|
+
query: {
|
|
31
|
+
Version: "2022-12-22",
|
|
32
|
+
Action: "QueryInstanceConsume"
|
|
33
|
+
},
|
|
34
|
+
headers: {
|
|
35
|
+
"Content-Type": "application/json"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
paramsType: {
|
|
39
|
+
StartDay: "String",
|
|
40
|
+
EndDay: "String",
|
|
41
|
+
ProductCode: "String",
|
|
42
|
+
Page: "Int",
|
|
43
|
+
Size: "Int"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
QueryProjectConsume: {
|
|
47
|
+
url: "/",
|
|
48
|
+
method: "GET",
|
|
49
|
+
config: {
|
|
50
|
+
query: {
|
|
51
|
+
Version: "2022-12-22",
|
|
52
|
+
Action: "QueryProjectConsume"
|
|
53
|
+
},
|
|
54
|
+
headers: {
|
|
55
|
+
"Content-Type": "application/json"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
paramsType: {
|
|
59
|
+
StartDay: "String",
|
|
60
|
+
EndDay: "String",
|
|
61
|
+
Page: "Int",
|
|
62
|
+
Size: "Int"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
QueryProductConsume: {
|
|
66
|
+
url: "/",
|
|
67
|
+
method: "GET",
|
|
68
|
+
config: {
|
|
69
|
+
query: {
|
|
70
|
+
Version: "2022-12-22",
|
|
71
|
+
Action: "QueryProductConsume"
|
|
72
|
+
},
|
|
73
|
+
headers: {
|
|
74
|
+
"Content-Type": "application/json"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
paramsType: {
|
|
78
|
+
StartDay: "String",
|
|
79
|
+
EndDay: "String",
|
|
80
|
+
Page: "Int",
|
|
81
|
+
Size: "Int"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
QueryFinanceUnitConsume: {
|
|
85
|
+
url: "/",
|
|
86
|
+
method: "GET",
|
|
87
|
+
config: {
|
|
88
|
+
query: {
|
|
89
|
+
Version: "2022-12-22",
|
|
90
|
+
Action: "QueryFinanceUnitConsume"
|
|
91
|
+
},
|
|
92
|
+
headers: {
|
|
93
|
+
"Content-Type": "application/json"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
paramsType: {
|
|
97
|
+
StartDay: "String",
|
|
98
|
+
EndDay: "String",
|
|
99
|
+
Page: "Int",
|
|
100
|
+
Size: "Int"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
QueryFinanceUnitConsumeOfMonth: {
|
|
104
|
+
url: "/",
|
|
105
|
+
method: "GET",
|
|
106
|
+
config: {
|
|
107
|
+
query: {
|
|
108
|
+
Version: "2022-12-22",
|
|
109
|
+
Action: "QueryFinanceUnitConsumeOfMonth"
|
|
110
|
+
},
|
|
111
|
+
headers: {
|
|
112
|
+
"Content-Type": "application/json"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
paramsType: {
|
|
116
|
+
CustomerBillMonth: "String",
|
|
117
|
+
Page: "Int",
|
|
118
|
+
Size: "Int"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
QueryUserConsume: {
|
|
122
|
+
url: "/",
|
|
123
|
+
method: "GET",
|
|
124
|
+
config: {
|
|
125
|
+
query: {
|
|
126
|
+
Version: "2022-12-22",
|
|
127
|
+
Action: "QueryUserConsume"
|
|
128
|
+
},
|
|
129
|
+
headers: {
|
|
130
|
+
"Content-Type": "application/json"
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
paramsType: {
|
|
134
|
+
StartDay: "String",
|
|
135
|
+
EndDay: "String",
|
|
136
|
+
Page: "Int",
|
|
137
|
+
Size: "Int"
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
};
|