@mx-space/api-client 1.4.1 → 1.4.3
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/controllers/aggregate.ts +9 -3
- package/dist/adaptors/axios.d.cts +6 -0
- package/dist/adaptors/axios.global.js +25 -3
- package/dist/adaptors/fetch.d.cts +5 -0
- package/dist/adaptors/ky.d.cts +26 -0
- package/dist/adaptors/ky.global.js +2 -2
- package/dist/adaptors/umi-request.d.cts +6 -0
- package/dist/adaptors/umi-request.global.js +9 -1
- package/dist/index.cjs +6 -8
- package/dist/index.d.cts +1473 -0
- package/dist/index.d.ts +16 -3
- package/dist/index.global.js +6 -6
- package/dist/index.js +6 -7
- package/dtos/comment.ts +7 -4
- package/models/aggregate.ts +8 -0
- package/models/comment.ts +3 -0
- package/package.json +4 -4
package/controllers/aggregate.ts
CHANGED
|
@@ -3,7 +3,7 @@ import type { IController } from '~/interfaces/controller'
|
|
|
3
3
|
import type { SortOrder } from '~/interfaces/options'
|
|
4
4
|
import type { IRequestHandler, RequestProxyResult } from '~/interfaces/request'
|
|
5
5
|
import type {
|
|
6
|
-
|
|
6
|
+
AggregateRootWithTheme,
|
|
7
7
|
AggregateStat,
|
|
8
8
|
AggregateTop,
|
|
9
9
|
TimelineData,
|
|
@@ -36,8 +36,14 @@ export class AggregateController<ResponseWrapper> implements IController {
|
|
|
36
36
|
/**
|
|
37
37
|
* 获取聚合数据
|
|
38
38
|
*/
|
|
39
|
-
getAggregateData
|
|
40
|
-
|
|
39
|
+
getAggregateData<Theme>(
|
|
40
|
+
theme?: string,
|
|
41
|
+
): RequestProxyResult<AggregateRootWithTheme<Theme>, ResponseWrapper> {
|
|
42
|
+
return this.proxy.get<AggregateRootWithTheme<Theme>>({
|
|
43
|
+
params: {
|
|
44
|
+
theme,
|
|
45
|
+
},
|
|
46
|
+
})
|
|
41
47
|
}
|
|
42
48
|
|
|
43
49
|
/**
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
}) : x)(function(x) {
|
|
12
12
|
if (typeof require !== "undefined")
|
|
13
13
|
return require.apply(this, arguments);
|
|
14
|
-
throw
|
|
14
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
15
15
|
});
|
|
16
16
|
var __commonJS = (cb, mod) => function __require2() {
|
|
17
17
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
// ../../node_modules/.pnpm/delayed-stream@1.0.0/node_modules/delayed-stream/lib/delayed_stream.js
|
|
37
37
|
var require_delayed_stream = __commonJS({
|
|
38
38
|
"../../node_modules/.pnpm/delayed-stream@1.0.0/node_modules/delayed-stream/lib/delayed_stream.js"(exports, module) {
|
|
39
|
+
"use strict";
|
|
39
40
|
var Stream = __require("stream").Stream;
|
|
40
41
|
var util2 = __require("util");
|
|
41
42
|
module.exports = DelayedStream;
|
|
@@ -127,6 +128,7 @@
|
|
|
127
128
|
// ../../node_modules/.pnpm/combined-stream@1.0.8/node_modules/combined-stream/lib/combined_stream.js
|
|
128
129
|
var require_combined_stream = __commonJS({
|
|
129
130
|
"../../node_modules/.pnpm/combined-stream@1.0.8/node_modules/combined-stream/lib/combined_stream.js"(exports, module) {
|
|
131
|
+
"use strict";
|
|
130
132
|
var util2 = __require("util");
|
|
131
133
|
var Stream = __require("stream").Stream;
|
|
132
134
|
var DelayedStream = require_delayed_stream();
|
|
@@ -8823,6 +8825,7 @@
|
|
|
8823
8825
|
// ../../node_modules/.pnpm/mime-db@1.52.0/node_modules/mime-db/index.js
|
|
8824
8826
|
var require_mime_db = __commonJS({
|
|
8825
8827
|
"../../node_modules/.pnpm/mime-db@1.52.0/node_modules/mime-db/index.js"(exports, module) {
|
|
8828
|
+
"use strict";
|
|
8826
8829
|
module.exports = require_db();
|
|
8827
8830
|
}
|
|
8828
8831
|
});
|
|
@@ -8921,6 +8924,7 @@
|
|
|
8921
8924
|
// ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/defer.js
|
|
8922
8925
|
var require_defer = __commonJS({
|
|
8923
8926
|
"../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/defer.js"(exports, module) {
|
|
8927
|
+
"use strict";
|
|
8924
8928
|
module.exports = defer;
|
|
8925
8929
|
function defer(fn) {
|
|
8926
8930
|
var nextTick = typeof setImmediate == "function" ? setImmediate : typeof process == "object" && typeof process.nextTick == "function" ? process.nextTick : null;
|
|
@@ -8936,6 +8940,7 @@
|
|
|
8936
8940
|
// ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/async.js
|
|
8937
8941
|
var require_async = __commonJS({
|
|
8938
8942
|
"../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/async.js"(exports, module) {
|
|
8943
|
+
"use strict";
|
|
8939
8944
|
var defer = require_defer();
|
|
8940
8945
|
module.exports = async;
|
|
8941
8946
|
function async(callback) {
|
|
@@ -8959,6 +8964,7 @@
|
|
|
8959
8964
|
// ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/abort.js
|
|
8960
8965
|
var require_abort = __commonJS({
|
|
8961
8966
|
"../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/abort.js"(exports, module) {
|
|
8967
|
+
"use strict";
|
|
8962
8968
|
module.exports = abort;
|
|
8963
8969
|
function abort(state) {
|
|
8964
8970
|
Object.keys(state.jobs).forEach(clean.bind(state));
|
|
@@ -8975,6 +8981,7 @@
|
|
|
8975
8981
|
// ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/iterate.js
|
|
8976
8982
|
var require_iterate = __commonJS({
|
|
8977
8983
|
"../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/iterate.js"(exports, module) {
|
|
8984
|
+
"use strict";
|
|
8978
8985
|
var async = require_async();
|
|
8979
8986
|
var abort = require_abort();
|
|
8980
8987
|
module.exports = iterate;
|
|
@@ -9008,6 +9015,7 @@
|
|
|
9008
9015
|
// ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/state.js
|
|
9009
9016
|
var require_state = __commonJS({
|
|
9010
9017
|
"../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/state.js"(exports, module) {
|
|
9018
|
+
"use strict";
|
|
9011
9019
|
module.exports = state;
|
|
9012
9020
|
function state(list, sortMethod) {
|
|
9013
9021
|
var isNamedList = !Array.isArray(list), initState = {
|
|
@@ -9030,6 +9038,7 @@
|
|
|
9030
9038
|
// ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/terminator.js
|
|
9031
9039
|
var require_terminator = __commonJS({
|
|
9032
9040
|
"../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/lib/terminator.js"(exports, module) {
|
|
9041
|
+
"use strict";
|
|
9033
9042
|
var abort = require_abort();
|
|
9034
9043
|
var async = require_async();
|
|
9035
9044
|
module.exports = terminator;
|
|
@@ -9047,6 +9056,7 @@
|
|
|
9047
9056
|
// ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/parallel.js
|
|
9048
9057
|
var require_parallel = __commonJS({
|
|
9049
9058
|
"../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/parallel.js"(exports, module) {
|
|
9059
|
+
"use strict";
|
|
9050
9060
|
var iterate = require_iterate();
|
|
9051
9061
|
var initState = require_state();
|
|
9052
9062
|
var terminator = require_terminator();
|
|
@@ -9074,6 +9084,7 @@
|
|
|
9074
9084
|
// ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/serialOrdered.js
|
|
9075
9085
|
var require_serialOrdered = __commonJS({
|
|
9076
9086
|
"../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/serialOrdered.js"(exports, module) {
|
|
9087
|
+
"use strict";
|
|
9077
9088
|
var iterate = require_iterate();
|
|
9078
9089
|
var initState = require_state();
|
|
9079
9090
|
var terminator = require_terminator();
|
|
@@ -9108,6 +9119,7 @@
|
|
|
9108
9119
|
// ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/serial.js
|
|
9109
9120
|
var require_serial = __commonJS({
|
|
9110
9121
|
"../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/serial.js"(exports, module) {
|
|
9122
|
+
"use strict";
|
|
9111
9123
|
var serialOrdered = require_serialOrdered();
|
|
9112
9124
|
module.exports = serial;
|
|
9113
9125
|
function serial(list, iterator, callback) {
|
|
@@ -9119,6 +9131,7 @@
|
|
|
9119
9131
|
// ../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/index.js
|
|
9120
9132
|
var require_asynckit = __commonJS({
|
|
9121
9133
|
"../../node_modules/.pnpm/asynckit@0.4.0/node_modules/asynckit/index.js"(exports, module) {
|
|
9134
|
+
"use strict";
|
|
9122
9135
|
module.exports = {
|
|
9123
9136
|
parallel: require_parallel(),
|
|
9124
9137
|
serial: require_serial(),
|
|
@@ -9130,6 +9143,7 @@
|
|
|
9130
9143
|
// ../../node_modules/.pnpm/form-data@4.0.0/node_modules/form-data/lib/populate.js
|
|
9131
9144
|
var require_populate = __commonJS({
|
|
9132
9145
|
"../../node_modules/.pnpm/form-data@4.0.0/node_modules/form-data/lib/populate.js"(exports, module) {
|
|
9146
|
+
"use strict";
|
|
9133
9147
|
module.exports = function(dst, src) {
|
|
9134
9148
|
Object.keys(src).forEach(function(prop) {
|
|
9135
9149
|
dst[prop] = dst[prop] || src[prop];
|
|
@@ -9142,6 +9156,7 @@
|
|
|
9142
9156
|
// ../../node_modules/.pnpm/form-data@4.0.0/node_modules/form-data/lib/form_data.js
|
|
9143
9157
|
var require_form_data = __commonJS({
|
|
9144
9158
|
"../../node_modules/.pnpm/form-data@4.0.0/node_modules/form-data/lib/form_data.js"(exports, module) {
|
|
9159
|
+
"use strict";
|
|
9145
9160
|
var CombinedStream = require_combined_stream();
|
|
9146
9161
|
var util2 = __require("util");
|
|
9147
9162
|
var path = __require("path");
|
|
@@ -9527,6 +9542,7 @@
|
|
|
9527
9542
|
// ../../node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js
|
|
9528
9543
|
var require_ms = __commonJS({
|
|
9529
9544
|
"../../node_modules/.pnpm/ms@2.1.2/node_modules/ms/index.js"(exports, module) {
|
|
9545
|
+
"use strict";
|
|
9530
9546
|
var s = 1e3;
|
|
9531
9547
|
var m = s * 60;
|
|
9532
9548
|
var h = m * 60;
|
|
@@ -9643,6 +9659,7 @@
|
|
|
9643
9659
|
// ../../node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/common.js
|
|
9644
9660
|
var require_common = __commonJS({
|
|
9645
9661
|
"../../node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/common.js"(exports, module) {
|
|
9662
|
+
"use strict";
|
|
9646
9663
|
function setup(env) {
|
|
9647
9664
|
createDebug.debug = createDebug;
|
|
9648
9665
|
createDebug.default = createDebug;
|
|
@@ -9806,6 +9823,7 @@
|
|
|
9806
9823
|
// ../../node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/browser.js
|
|
9807
9824
|
var require_browser = __commonJS({
|
|
9808
9825
|
"../../node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/browser.js"(exports, module) {
|
|
9826
|
+
"use strict";
|
|
9809
9827
|
exports.formatArgs = formatArgs;
|
|
9810
9828
|
exports.save = save;
|
|
9811
9829
|
exports.load = load;
|
|
@@ -10090,6 +10108,7 @@
|
|
|
10090
10108
|
// ../../node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/node.js
|
|
10091
10109
|
var require_node = __commonJS({
|
|
10092
10110
|
"../../node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/node.js"(exports, module) {
|
|
10111
|
+
"use strict";
|
|
10093
10112
|
var tty = __require("tty");
|
|
10094
10113
|
var util2 = __require("util");
|
|
10095
10114
|
exports.init = init;
|
|
@@ -10264,6 +10283,7 @@
|
|
|
10264
10283
|
// ../../node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/index.js
|
|
10265
10284
|
var require_src = __commonJS({
|
|
10266
10285
|
"../../node_modules/.pnpm/debug@4.3.4/node_modules/debug/src/index.js"(exports, module) {
|
|
10286
|
+
"use strict";
|
|
10267
10287
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
10268
10288
|
module.exports = require_browser();
|
|
10269
10289
|
} else {
|
|
@@ -10275,6 +10295,7 @@
|
|
|
10275
10295
|
// ../../node_modules/.pnpm/follow-redirects@1.15.2/node_modules/follow-redirects/debug.js
|
|
10276
10296
|
var require_debug = __commonJS({
|
|
10277
10297
|
"../../node_modules/.pnpm/follow-redirects@1.15.2/node_modules/follow-redirects/debug.js"(exports, module) {
|
|
10298
|
+
"use strict";
|
|
10278
10299
|
var debug;
|
|
10279
10300
|
module.exports = function() {
|
|
10280
10301
|
if (!debug) {
|
|
@@ -10295,6 +10316,7 @@
|
|
|
10295
10316
|
// ../../node_modules/.pnpm/follow-redirects@1.15.2/node_modules/follow-redirects/index.js
|
|
10296
10317
|
var require_follow_redirects = __commonJS({
|
|
10297
10318
|
"../../node_modules/.pnpm/follow-redirects@1.15.2/node_modules/follow-redirects/index.js"(exports, module) {
|
|
10319
|
+
"use strict";
|
|
10298
10320
|
var url2 = __require("url");
|
|
10299
10321
|
var URL2 = url2.URL;
|
|
10300
10322
|
var http2 = __require("http");
|
|
@@ -13451,7 +13473,7 @@
|
|
|
13451
13473
|
var Axios_default = Axios;
|
|
13452
13474
|
|
|
13453
13475
|
// ../../node_modules/.pnpm/axios@1.4.0/node_modules/axios/lib/cancel/CancelToken.js
|
|
13454
|
-
var CancelToken = class {
|
|
13476
|
+
var CancelToken = class _CancelToken {
|
|
13455
13477
|
constructor(executor) {
|
|
13456
13478
|
if (typeof executor !== "function") {
|
|
13457
13479
|
throw new TypeError("executor must be a function.");
|
|
@@ -13529,7 +13551,7 @@
|
|
|
13529
13551
|
*/
|
|
13530
13552
|
static source() {
|
|
13531
13553
|
let cancel;
|
|
13532
|
-
const token = new
|
|
13554
|
+
const token = new _CancelToken(function executor(c) {
|
|
13533
13555
|
cancel = c;
|
|
13534
13556
|
});
|
|
13535
13557
|
return {
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { R as RequestOptions, a as IAdaptorRequestResponseType } from '../adapter-be44aa1e.js';
|
|
2
|
+
import { ResponsePromise } from 'ky';
|
|
3
|
+
import { KyInstance } from 'ky/distribution/types/ky';
|
|
4
|
+
|
|
5
|
+
declare const createKyAdaptor: (ky: KyInstance) => Readonly<{
|
|
6
|
+
responseWrapper: ResponsePromise;
|
|
7
|
+
} & {
|
|
8
|
+
default: KyInstance;
|
|
9
|
+
get<P = unknown>(url: string, options?: Omit<RequestOptions, "data"> | undefined): IAdaptorRequestResponseType<P>;
|
|
10
|
+
post<P_1 = unknown>(url: string, options: Partial<RequestOptions>): IAdaptorRequestResponseType<P_1>;
|
|
11
|
+
patch<P_2 = unknown>(url: string, options: Partial<RequestOptions>): IAdaptorRequestResponseType<P_2>;
|
|
12
|
+
delete<P_3 = unknown>(url: string, options?: Omit<RequestOptions, "data"> | undefined): IAdaptorRequestResponseType<P_3>;
|
|
13
|
+
put<P_4 = unknown>(url: string, options: Partial<RequestOptions>): IAdaptorRequestResponseType<P_4>;
|
|
14
|
+
}>;
|
|
15
|
+
declare const defaultKyAdaptor: Readonly<{
|
|
16
|
+
responseWrapper: ResponsePromise;
|
|
17
|
+
} & {
|
|
18
|
+
default: KyInstance;
|
|
19
|
+
get<P = unknown>(url: string, options?: Omit<RequestOptions, "data"> | undefined): IAdaptorRequestResponseType<P>;
|
|
20
|
+
post<P_1 = unknown>(url: string, options: Partial<RequestOptions>): IAdaptorRequestResponseType<P_1>;
|
|
21
|
+
patch<P_2 = unknown>(url: string, options: Partial<RequestOptions>): IAdaptorRequestResponseType<P_2>;
|
|
22
|
+
delete<P_3 = unknown>(url: string, options?: Omit<RequestOptions, "data"> | undefined): IAdaptorRequestResponseType<P_3>;
|
|
23
|
+
put<P_4 = unknown>(url: string, options: Partial<RequestOptions>): IAdaptorRequestResponseType<P_4>;
|
|
24
|
+
}>;
|
|
25
|
+
|
|
26
|
+
export { createKyAdaptor, defaultKyAdaptor as default, defaultKyAdaptor };
|
|
@@ -214,10 +214,10 @@
|
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
// ../../node_modules/.pnpm/ky@0.33.3/node_modules/ky/distribution/core/Ky.js
|
|
217
|
-
var Ky = class {
|
|
217
|
+
var Ky = class _Ky {
|
|
218
218
|
// eslint-disable-next-line @typescript-eslint/promise-function-async
|
|
219
219
|
static create(input, options) {
|
|
220
|
-
const ky2 = new
|
|
220
|
+
const ky2 = new _Ky(input, options);
|
|
221
221
|
const fn = async () => {
|
|
222
222
|
if (ky2._options.timeout > maxSafeTimeout) {
|
|
223
223
|
throw new RangeError(`The \`timeout\` option cannot be greater than ${maxSafeTimeout}`);
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
}) : x)(function(x) {
|
|
12
12
|
if (typeof require !== "undefined")
|
|
13
13
|
return require.apply(this, arguments);
|
|
14
|
-
throw
|
|
14
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
15
15
|
});
|
|
16
16
|
var __commonJS = (cb, mod) => function __require2() {
|
|
17
17
|
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
@@ -545,6 +545,7 @@
|
|
|
545
545
|
// ../../node_modules/.pnpm/object-inspect@1.12.3/node_modules/object-inspect/util.inspect.js
|
|
546
546
|
var require_util_inspect = __commonJS({
|
|
547
547
|
"../../node_modules/.pnpm/object-inspect@1.12.3/node_modules/object-inspect/util.inspect.js"(exports, module) {
|
|
548
|
+
"use strict";
|
|
548
549
|
module.exports = __require("util").inspect;
|
|
549
550
|
}
|
|
550
551
|
});
|
|
@@ -552,6 +553,7 @@
|
|
|
552
553
|
// ../../node_modules/.pnpm/object-inspect@1.12.3/node_modules/object-inspect/index.js
|
|
553
554
|
var require_object_inspect = __commonJS({
|
|
554
555
|
"../../node_modules/.pnpm/object-inspect@1.12.3/node_modules/object-inspect/index.js"(exports, module) {
|
|
556
|
+
"use strict";
|
|
555
557
|
var hasMap = typeof Map === "function" && Map.prototype;
|
|
556
558
|
var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null;
|
|
557
559
|
var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === "function" ? mapSizeDescriptor.get : null;
|
|
@@ -5601,6 +5603,7 @@
|
|
|
5601
5603
|
// ../../node_modules/.pnpm/node-fetch@1.7.3/node_modules/node-fetch/lib/fetch-error.js
|
|
5602
5604
|
var require_fetch_error = __commonJS({
|
|
5603
5605
|
"../../node_modules/.pnpm/node-fetch@1.7.3/node_modules/node-fetch/lib/fetch-error.js"(exports, module) {
|
|
5606
|
+
"use strict";
|
|
5604
5607
|
module.exports = FetchError;
|
|
5605
5608
|
function FetchError(message, type, systemError) {
|
|
5606
5609
|
this.name = this.constructor.name;
|
|
@@ -5618,6 +5621,7 @@
|
|
|
5618
5621
|
// ../../node_modules/.pnpm/node-fetch@1.7.3/node_modules/node-fetch/lib/body.js
|
|
5619
5622
|
var require_body = __commonJS({
|
|
5620
5623
|
"../../node_modules/.pnpm/node-fetch@1.7.3/node_modules/node-fetch/lib/body.js"(exports, module) {
|
|
5624
|
+
"use strict";
|
|
5621
5625
|
var convert = require_encoding().convert;
|
|
5622
5626
|
var bodyStream = require_is_stream();
|
|
5623
5627
|
var PassThrough = __require("stream").PassThrough;
|
|
@@ -5768,6 +5772,7 @@
|
|
|
5768
5772
|
// ../../node_modules/.pnpm/node-fetch@1.7.3/node_modules/node-fetch/lib/headers.js
|
|
5769
5773
|
var require_headers = __commonJS({
|
|
5770
5774
|
"../../node_modules/.pnpm/node-fetch@1.7.3/node_modules/node-fetch/lib/headers.js"(exports, module) {
|
|
5775
|
+
"use strict";
|
|
5771
5776
|
module.exports = Headers;
|
|
5772
5777
|
function Headers(headers) {
|
|
5773
5778
|
var self = this;
|
|
@@ -5832,6 +5837,7 @@
|
|
|
5832
5837
|
// ../../node_modules/.pnpm/node-fetch@1.7.3/node_modules/node-fetch/lib/response.js
|
|
5833
5838
|
var require_response = __commonJS({
|
|
5834
5839
|
"../../node_modules/.pnpm/node-fetch@1.7.3/node_modules/node-fetch/lib/response.js"(exports, module) {
|
|
5840
|
+
"use strict";
|
|
5835
5841
|
var http = __require("http");
|
|
5836
5842
|
var Headers = require_headers();
|
|
5837
5843
|
var Body = require_body();
|
|
@@ -5861,6 +5867,7 @@
|
|
|
5861
5867
|
// ../../node_modules/.pnpm/node-fetch@1.7.3/node_modules/node-fetch/lib/request.js
|
|
5862
5868
|
var require_request = __commonJS({
|
|
5863
5869
|
"../../node_modules/.pnpm/node-fetch@1.7.3/node_modules/node-fetch/lib/request.js"(exports, module) {
|
|
5870
|
+
"use strict";
|
|
5864
5871
|
var parse_url = __require("url").parse;
|
|
5865
5872
|
var Headers = require_headers();
|
|
5866
5873
|
var Body = require_body();
|
|
@@ -5904,6 +5911,7 @@
|
|
|
5904
5911
|
// ../../node_modules/.pnpm/node-fetch@1.7.3/node_modules/node-fetch/index.js
|
|
5905
5912
|
var require_node_fetch = __commonJS({
|
|
5906
5913
|
"../../node_modules/.pnpm/node-fetch@1.7.3/node_modules/node-fetch/index.js"(exports, module) {
|
|
5914
|
+
"use strict";
|
|
5907
5915
|
var parse_url = __require("url").parse;
|
|
5908
5916
|
var resolve_url = __require("url").resolve;
|
|
5909
5917
|
var http = __require("http");
|
package/dist/index.cjs
CHANGED
|
@@ -24,7 +24,6 @@ __export(api_client_exports, {
|
|
|
24
24
|
CategoryController: () => CategoryController,
|
|
25
25
|
CategoryType: () => CategoryType,
|
|
26
26
|
CommentController: () => CommentController,
|
|
27
|
-
CommentDto: () => CommentDto,
|
|
28
27
|
CommentState: () => CommentState,
|
|
29
28
|
EnumPageType: () => EnumPageType,
|
|
30
29
|
LinkController: () => LinkController,
|
|
@@ -177,8 +176,12 @@ var AggregateController = class {
|
|
|
177
176
|
/**
|
|
178
177
|
* 获取聚合数据
|
|
179
178
|
*/
|
|
180
|
-
getAggregateData() {
|
|
181
|
-
return this.proxy.get(
|
|
179
|
+
getAggregateData(theme) {
|
|
180
|
+
return this.proxy.get({
|
|
181
|
+
params: {
|
|
182
|
+
theme
|
|
183
|
+
}
|
|
184
|
+
});
|
|
182
185
|
}
|
|
183
186
|
/**
|
|
184
187
|
* 获取最新发布的内容
|
|
@@ -1106,10 +1109,6 @@ var SubscribeTypeToBitMap = {
|
|
|
1106
1109
|
all: SubscribeAllBit
|
|
1107
1110
|
};
|
|
1108
1111
|
|
|
1109
|
-
// dtos/comment.ts
|
|
1110
|
-
var CommentDto = class {
|
|
1111
|
-
};
|
|
1112
|
-
|
|
1113
1112
|
// index.ts
|
|
1114
1113
|
var api_client_default = createClient;
|
|
1115
1114
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1118,7 +1117,6 @@ var api_client_default = createClient;
|
|
|
1118
1117
|
CategoryController,
|
|
1119
1118
|
CategoryType,
|
|
1120
1119
|
CommentController,
|
|
1121
|
-
CommentDto,
|
|
1122
1120
|
CommentState,
|
|
1123
1121
|
EnumPageType,
|
|
1124
1122
|
LinkController,
|