@mx-space/api-client 1.3.5 → 1.4.0
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/.eslintcache +1 -1
- package/coverage/clover.xml +591 -0
- package/coverage/coverage-final.json +5944 -0
- package/coverage/lcov-report/adaptors/axios.ts.html +201 -0
- package/coverage/lcov-report/adaptors/index.html +196 -0
- package/coverage/lcov-report/adaptors/umi-request.ts.html +186 -0
- package/coverage/lcov-report/auto-bind.ts.html +228 -0
- package/coverage/lcov-report/base.css +354 -0
- package/coverage/lcov-report/block-navigation.js +85 -0
- package/coverage/lcov-report/controllers/aggregate.ts.html +294 -0
- package/coverage/lcov-report/controllers/base.ts.html +183 -0
- package/coverage/lcov-report/controllers/category.ts.html +441 -0
- package/coverage/lcov-report/controllers/comment.ts.html +291 -0
- package/coverage/lcov-report/controllers/index.html +476 -0
- package/coverage/lcov-report/controllers/index.ts.html +297 -0
- package/coverage/lcov-report/controllers/link.ts.html +216 -0
- package/coverage/lcov-report/controllers/note.ts.html +375 -0
- package/coverage/lcov-report/controllers/page.ts.html +279 -0
- package/coverage/lcov-report/controllers/post.ts.html +369 -0
- package/coverage/lcov-report/controllers/project.ts.html +168 -0
- package/coverage/lcov-report/controllers/recently.ts.html +246 -0
- package/coverage/lcov-report/controllers/say.ts.html +207 -0
- package/coverage/lcov-report/controllers/search.ts.html +411 -0
- package/coverage/lcov-report/controllers/severless.ts.html +180 -0
- package/coverage/lcov-report/controllers/snippet.ts.html +195 -0
- package/coverage/lcov-report/controllers/user.ts.html +240 -0
- package/coverage/lcov-report/core/attach-request.ts.html +216 -0
- package/coverage/lcov-report/core/client.ts.html +786 -0
- package/coverage/lcov-report/core/error.ts.html +117 -0
- package/coverage/lcov-report/core/index.html +236 -0
- package/coverage/lcov-report/core/index.ts.html +93 -0
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +276 -0
- package/coverage/lcov-report/index.ts.html +243 -0
- package/coverage/lcov-report/models/aggregate.ts.html +300 -0
- package/coverage/lcov-report/models/category.ts.html +162 -0
- package/coverage/lcov-report/models/index.html +196 -0
- package/coverage/lcov-report/prettify.css +101 -0
- package/coverage/lcov-report/prettify.js +1004 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +191 -0
- package/coverage/lcov-report/utils/auto-bind.ts.html +231 -0
- package/coverage/lcov-report/utils/index.html +216 -0
- package/coverage/lcov-report/utils/index.ts.html +246 -0
- package/coverage/lcov-report/utils/path.ts.html +105 -0
- package/coverage/lcov.info +1209 -0
- package/dist/adaptors/ky.global.js +13 -12
- package/dist/index.d.ts +11 -168
- package/models/aggregate.ts +13 -2
- package/models/base.ts +0 -2
- package/package.json +6 -7
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
(() => {
|
|
3
|
-
// ../../node_modules/.pnpm/ky@0.33.
|
|
3
|
+
// ../../node_modules/.pnpm/ky@0.33.3/node_modules/ky/distribution/errors/HTTPError.js
|
|
4
4
|
var HTTPError = class extends Error {
|
|
5
5
|
constructor(response, request, options) {
|
|
6
6
|
const code = response.status || response.status === 0 ? response.status : "";
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
|
|
36
|
-
// ../../node_modules/.pnpm/ky@0.33.
|
|
36
|
+
// ../../node_modules/.pnpm/ky@0.33.3/node_modules/ky/distribution/errors/TimeoutError.js
|
|
37
37
|
var TimeoutError = class extends Error {
|
|
38
38
|
constructor(request) {
|
|
39
39
|
super("Request timed out");
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
// ../../node_modules/.pnpm/ky@0.33.
|
|
51
|
+
// ../../node_modules/.pnpm/ky@0.33.3/node_modules/ky/distribution/utils/is.js
|
|
52
52
|
var isObject = (value) => value !== null && typeof value === "object";
|
|
53
53
|
|
|
54
|
-
// ../../node_modules/.pnpm/ky@0.33.
|
|
54
|
+
// ../../node_modules/.pnpm/ky@0.33.3/node_modules/ky/distribution/utils/merge.js
|
|
55
55
|
var validateAndMerge = (...sources) => {
|
|
56
56
|
for (const source of sources) {
|
|
57
57
|
if ((!isObject(source) || Array.isArray(source)) && typeof source !== "undefined") {
|
|
@@ -98,12 +98,13 @@
|
|
|
98
98
|
return returnValue;
|
|
99
99
|
};
|
|
100
100
|
|
|
101
|
-
// ../../node_modules/.pnpm/ky@0.33.
|
|
101
|
+
// ../../node_modules/.pnpm/ky@0.33.3/node_modules/ky/distribution/core/constants.js
|
|
102
102
|
var supportsRequestStreams = (() => {
|
|
103
103
|
let duplexAccessed = false;
|
|
104
104
|
let hasContentType = false;
|
|
105
105
|
const supportsReadableStream = typeof globalThis.ReadableStream === "function";
|
|
106
|
-
|
|
106
|
+
const supportsRequest = typeof globalThis.Request === "function";
|
|
107
|
+
if (supportsReadableStream && supportsRequest) {
|
|
107
108
|
hasContentType = new globalThis.Request("https://a.com", {
|
|
108
109
|
body: new globalThis.ReadableStream(),
|
|
109
110
|
method: "POST",
|
|
@@ -132,7 +133,7 @@
|
|
|
132
133
|
var maxSafeTimeout = 2147483647;
|
|
133
134
|
var stop = Symbol("stop");
|
|
134
135
|
|
|
135
|
-
// ../../node_modules/.pnpm/ky@0.33.
|
|
136
|
+
// ../../node_modules/.pnpm/ky@0.33.3/node_modules/ky/distribution/utils/normalize.js
|
|
136
137
|
var normalizeRequestMethod = (input) => requestMethods.includes(input) ? input.toUpperCase() : input;
|
|
137
138
|
var retryMethods = ["get", "put", "head", "delete", "options", "trace"];
|
|
138
139
|
var retryStatusCodes = [408, 413, 429, 500, 502, 503, 504];
|
|
@@ -165,7 +166,7 @@
|
|
|
165
166
|
};
|
|
166
167
|
};
|
|
167
168
|
|
|
168
|
-
// ../../node_modules/.pnpm/ky@0.33.
|
|
169
|
+
// ../../node_modules/.pnpm/ky@0.33.3/node_modules/ky/distribution/utils/timeout.js
|
|
169
170
|
async function timeout(request, abortController, options) {
|
|
170
171
|
return new Promise((resolve, reject) => {
|
|
171
172
|
const timeoutId = setTimeout(() => {
|
|
@@ -180,7 +181,7 @@
|
|
|
180
181
|
});
|
|
181
182
|
}
|
|
182
183
|
|
|
183
|
-
// ../../node_modules/.pnpm/ky@0.33.
|
|
184
|
+
// ../../node_modules/.pnpm/ky@0.33.3/node_modules/ky/distribution/errors/DOMException.js
|
|
184
185
|
var isDomExceptionSupported = Boolean(globalThis.DOMException);
|
|
185
186
|
function composeAbortError(signal) {
|
|
186
187
|
if (isDomExceptionSupported) {
|
|
@@ -191,7 +192,7 @@
|
|
|
191
192
|
return error;
|
|
192
193
|
}
|
|
193
194
|
|
|
194
|
-
// ../../node_modules/.pnpm/ky@0.33.
|
|
195
|
+
// ../../node_modules/.pnpm/ky@0.33.3/node_modules/ky/distribution/utils/delay.js
|
|
195
196
|
async function delay(ms, { signal }) {
|
|
196
197
|
return new Promise((resolve, reject) => {
|
|
197
198
|
if (signal) {
|
|
@@ -212,7 +213,7 @@
|
|
|
212
213
|
});
|
|
213
214
|
}
|
|
214
215
|
|
|
215
|
-
// ../../node_modules/.pnpm/ky@0.33.
|
|
216
|
+
// ../../node_modules/.pnpm/ky@0.33.3/node_modules/ky/distribution/core/Ky.js
|
|
216
217
|
var Ky = class {
|
|
217
218
|
// eslint-disable-next-line @typescript-eslint/promise-function-async
|
|
218
219
|
static create(input, options) {
|
|
@@ -484,7 +485,7 @@
|
|
|
484
485
|
}
|
|
485
486
|
};
|
|
486
487
|
|
|
487
|
-
// ../../node_modules/.pnpm/ky@0.33.
|
|
488
|
+
// ../../node_modules/.pnpm/ky@0.33.3/node_modules/ky/distribution/index.js
|
|
488
489
|
var createInstance = (defaults) => {
|
|
489
490
|
const ky2 = (input, options) => Ky.create(input, validateAndMerge(defaults, options));
|
|
490
491
|
for (const method of requestMethods) {
|
package/dist/index.d.ts
CHANGED
|
@@ -129,7 +129,6 @@ interface TextBaseModel extends BaseCommentIndexModel {
|
|
|
129
129
|
text: string;
|
|
130
130
|
images?: Image[];
|
|
131
131
|
modified: string | null;
|
|
132
|
-
meta?: Record<string, any>;
|
|
133
132
|
}
|
|
134
133
|
type ModelWithLiked<T> = T & {
|
|
135
134
|
liked: boolean;
|
|
@@ -336,9 +335,13 @@ interface Url {
|
|
|
336
335
|
serverUrl: string;
|
|
337
336
|
webUrl: string;
|
|
338
337
|
}
|
|
338
|
+
interface AggregateTopNote extends Pick<NoteModel, 'id' | 'title' | 'created' | 'nid' | 'images'> {
|
|
339
|
+
}
|
|
340
|
+
interface AggregateTopPost extends Pick<PostModel, 'id' | 'slug' | 'created' | 'title' | 'category' | 'images'> {
|
|
341
|
+
}
|
|
339
342
|
interface AggregateTop {
|
|
340
|
-
notes:
|
|
341
|
-
posts:
|
|
343
|
+
notes: AggregateTopNote[];
|
|
344
|
+
posts: AggregateTopPost[];
|
|
342
345
|
says: SayModel[];
|
|
343
346
|
}
|
|
344
347
|
declare enum TimelineType {
|
|
@@ -1194,47 +1197,7 @@ declare class SearchController<ResponseWrapper> implements IController {
|
|
|
1194
1197
|
* @see: algoliasearch <https://www.algolia.com/doc/api-reference/api-methods/search/>
|
|
1195
1198
|
*/
|
|
1196
1199
|
raw?: any;
|
|
1197
|
-
}, ResponseWrapper, ResponseWrapper extends unknown ? {
|
|
1198
|
-
[key: string]: any;
|
|
1199
|
-
data: PaginateResult<(Pick<PostModel, "id" | "category" | "created" | "modified" | "title" | "slug"> & {
|
|
1200
|
-
type: 'post';
|
|
1201
|
-
}) | (Pick<NoteModel, "id" | "created" | "modified" | "title" | "nid"> & {
|
|
1202
|
-
type: 'note';
|
|
1203
|
-
}) | (Pick<PageModel, "id" | "created" | "modified" | "title" | "slug"> & {
|
|
1204
|
-
type: 'page';
|
|
1205
|
-
})> & {
|
|
1206
|
-
/**
|
|
1207
|
-
* @see: algoliasearch <https://www.algolia.com/doc/api-reference/api-methods/search/>
|
|
1208
|
-
*/
|
|
1209
|
-
raw?: any;
|
|
1210
|
-
};
|
|
1211
|
-
} : ResponseWrapper extends {
|
|
1212
|
-
data: PaginateResult<(Pick<PostModel, "id" | "category" | "created" | "modified" | "title" | "slug"> & {
|
|
1213
|
-
type: 'post';
|
|
1214
|
-
}) | (Pick<NoteModel, "id" | "created" | "modified" | "title" | "nid"> & {
|
|
1215
|
-
type: 'note';
|
|
1216
|
-
}) | (Pick<PageModel, "id" | "created" | "modified" | "title" | "slug"> & {
|
|
1217
|
-
type: 'page';
|
|
1218
|
-
})> & {
|
|
1219
|
-
/**
|
|
1220
|
-
* @see: algoliasearch <https://www.algolia.com/doc/api-reference/api-methods/search/>
|
|
1221
|
-
*/
|
|
1222
|
-
raw?: any;
|
|
1223
|
-
};
|
|
1224
|
-
} ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
|
|
1225
|
-
data: PaginateResult<(Pick<PostModel, "id" | "category" | "created" | "modified" | "title" | "slug"> & {
|
|
1226
|
-
type: 'post';
|
|
1227
|
-
}) | (Pick<NoteModel, "id" | "created" | "modified" | "title" | "nid"> & {
|
|
1228
|
-
type: 'note';
|
|
1229
|
-
}) | (Pick<PageModel, "id" | "created" | "modified" | "title" | "slug"> & {
|
|
1230
|
-
type: 'page';
|
|
1231
|
-
})> & {
|
|
1232
|
-
/**
|
|
1233
|
-
* @see: algoliasearch <https://www.algolia.com/doc/api-reference/api-methods/search/>
|
|
1234
|
-
*/
|
|
1235
|
-
raw?: any;
|
|
1236
|
-
};
|
|
1237
|
-
}>, ResponseWrapper, ResponseWrapper extends unknown ? {
|
|
1200
|
+
}, ResponseWrapper>, ResponseWrapper, ResponseWrapper extends unknown ? {
|
|
1238
1201
|
[key: string]: any;
|
|
1239
1202
|
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "id" | "category" | "created" | "modified" | "title" | "slug"> & {
|
|
1240
1203
|
type: 'post';
|
|
@@ -1247,47 +1210,7 @@ declare class SearchController<ResponseWrapper> implements IController {
|
|
|
1247
1210
|
* @see: algoliasearch <https://www.algolia.com/doc/api-reference/api-methods/search/>
|
|
1248
1211
|
*/
|
|
1249
1212
|
raw?: any;
|
|
1250
|
-
}, ResponseWrapper
|
|
1251
|
-
[key: string]: any;
|
|
1252
|
-
data: PaginateResult<(Pick<PostModel, "id" | "category" | "created" | "modified" | "title" | "slug"> & {
|
|
1253
|
-
type: 'post';
|
|
1254
|
-
}) | (Pick<NoteModel, "id" | "created" | "modified" | "title" | "nid"> & {
|
|
1255
|
-
type: 'note';
|
|
1256
|
-
}) | (Pick<PageModel, "id" | "created" | "modified" | "title" | "slug"> & {
|
|
1257
|
-
type: 'page';
|
|
1258
|
-
})> & {
|
|
1259
|
-
/**
|
|
1260
|
-
* @see: algoliasearch <https://www.algolia.com/doc/api-reference/api-methods/search/>
|
|
1261
|
-
*/
|
|
1262
|
-
raw?: any;
|
|
1263
|
-
};
|
|
1264
|
-
} : ResponseWrapper extends {
|
|
1265
|
-
data: PaginateResult<(Pick<PostModel, "id" | "category" | "created" | "modified" | "title" | "slug"> & {
|
|
1266
|
-
type: 'post';
|
|
1267
|
-
}) | (Pick<NoteModel, "id" | "created" | "modified" | "title" | "nid"> & {
|
|
1268
|
-
type: 'note';
|
|
1269
|
-
}) | (Pick<PageModel, "id" | "created" | "modified" | "title" | "slug"> & {
|
|
1270
|
-
type: 'page';
|
|
1271
|
-
})> & {
|
|
1272
|
-
/**
|
|
1273
|
-
* @see: algoliasearch <https://www.algolia.com/doc/api-reference/api-methods/search/>
|
|
1274
|
-
*/
|
|
1275
|
-
raw?: any;
|
|
1276
|
-
};
|
|
1277
|
-
} ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
|
|
1278
|
-
data: PaginateResult<(Pick<PostModel, "id" | "category" | "created" | "modified" | "title" | "slug"> & {
|
|
1279
|
-
type: 'post';
|
|
1280
|
-
}) | (Pick<NoteModel, "id" | "created" | "modified" | "title" | "nid"> & {
|
|
1281
|
-
type: 'note';
|
|
1282
|
-
}) | (Pick<PageModel, "id" | "created" | "modified" | "title" | "slug"> & {
|
|
1283
|
-
type: 'page';
|
|
1284
|
-
})> & {
|
|
1285
|
-
/**
|
|
1286
|
-
* @see: algoliasearch <https://www.algolia.com/doc/api-reference/api-methods/search/>
|
|
1287
|
-
*/
|
|
1288
|
-
raw?: any;
|
|
1289
|
-
};
|
|
1290
|
-
}>;
|
|
1213
|
+
}, ResponseWrapper>;
|
|
1291
1214
|
} : ResponseWrapper extends {
|
|
1292
1215
|
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "id" | "category" | "created" | "modified" | "title" | "slug"> & {
|
|
1293
1216
|
type: 'post';
|
|
@@ -1300,47 +1223,7 @@ declare class SearchController<ResponseWrapper> implements IController {
|
|
|
1300
1223
|
* @see: algoliasearch <https://www.algolia.com/doc/api-reference/api-methods/search/>
|
|
1301
1224
|
*/
|
|
1302
1225
|
raw?: any;
|
|
1303
|
-
}, ResponseWrapper
|
|
1304
|
-
[key: string]: any;
|
|
1305
|
-
data: PaginateResult<(Pick<PostModel, "id" | "category" | "created" | "modified" | "title" | "slug"> & {
|
|
1306
|
-
type: 'post';
|
|
1307
|
-
}) | (Pick<NoteModel, "id" | "created" | "modified" | "title" | "nid"> & {
|
|
1308
|
-
type: 'note';
|
|
1309
|
-
}) | (Pick<PageModel, "id" | "created" | "modified" | "title" | "slug"> & {
|
|
1310
|
-
type: 'page';
|
|
1311
|
-
})> & {
|
|
1312
|
-
/**
|
|
1313
|
-
* @see: algoliasearch <https://www.algolia.com/doc/api-reference/api-methods/search/>
|
|
1314
|
-
*/
|
|
1315
|
-
raw?: any;
|
|
1316
|
-
};
|
|
1317
|
-
} : ResponseWrapper extends {
|
|
1318
|
-
data: PaginateResult<(Pick<PostModel, "id" | "category" | "created" | "modified" | "title" | "slug"> & {
|
|
1319
|
-
type: 'post';
|
|
1320
|
-
}) | (Pick<NoteModel, "id" | "created" | "modified" | "title" | "nid"> & {
|
|
1321
|
-
type: 'note';
|
|
1322
|
-
}) | (Pick<PageModel, "id" | "created" | "modified" | "title" | "slug"> & {
|
|
1323
|
-
type: 'page';
|
|
1324
|
-
})> & {
|
|
1325
|
-
/**
|
|
1326
|
-
* @see: algoliasearch <https://www.algolia.com/doc/api-reference/api-methods/search/>
|
|
1327
|
-
*/
|
|
1328
|
-
raw?: any;
|
|
1329
|
-
};
|
|
1330
|
-
} ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
|
|
1331
|
-
data: PaginateResult<(Pick<PostModel, "id" | "category" | "created" | "modified" | "title" | "slug"> & {
|
|
1332
|
-
type: 'post';
|
|
1333
|
-
}) | (Pick<NoteModel, "id" | "created" | "modified" | "title" | "nid"> & {
|
|
1334
|
-
type: 'note';
|
|
1335
|
-
}) | (Pick<PageModel, "id" | "created" | "modified" | "title" | "slug"> & {
|
|
1336
|
-
type: 'page';
|
|
1337
|
-
})> & {
|
|
1338
|
-
/**
|
|
1339
|
-
* @see: algoliasearch <https://www.algolia.com/doc/api-reference/api-methods/search/>
|
|
1340
|
-
*/
|
|
1341
|
-
raw?: any;
|
|
1342
|
-
};
|
|
1343
|
-
}>;
|
|
1226
|
+
}, ResponseWrapper>;
|
|
1344
1227
|
} ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
|
|
1345
1228
|
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "id" | "category" | "created" | "modified" | "title" | "slug"> & {
|
|
1346
1229
|
type: 'post';
|
|
@@ -1353,47 +1236,7 @@ declare class SearchController<ResponseWrapper> implements IController {
|
|
|
1353
1236
|
* @see: algoliasearch <https://www.algolia.com/doc/api-reference/api-methods/search/>
|
|
1354
1237
|
*/
|
|
1355
1238
|
raw?: any;
|
|
1356
|
-
}, ResponseWrapper
|
|
1357
|
-
[key: string]: any;
|
|
1358
|
-
data: PaginateResult<(Pick<PostModel, "id" | "category" | "created" | "modified" | "title" | "slug"> & {
|
|
1359
|
-
type: 'post';
|
|
1360
|
-
}) | (Pick<NoteModel, "id" | "created" | "modified" | "title" | "nid"> & {
|
|
1361
|
-
type: 'note';
|
|
1362
|
-
}) | (Pick<PageModel, "id" | "created" | "modified" | "title" | "slug"> & {
|
|
1363
|
-
type: 'page';
|
|
1364
|
-
})> & {
|
|
1365
|
-
/**
|
|
1366
|
-
* @see: algoliasearch <https://www.algolia.com/doc/api-reference/api-methods/search/>
|
|
1367
|
-
*/
|
|
1368
|
-
raw?: any;
|
|
1369
|
-
};
|
|
1370
|
-
} : ResponseWrapper extends {
|
|
1371
|
-
data: PaginateResult<(Pick<PostModel, "id" | "category" | "created" | "modified" | "title" | "slug"> & {
|
|
1372
|
-
type: 'post';
|
|
1373
|
-
}) | (Pick<NoteModel, "id" | "created" | "modified" | "title" | "nid"> & {
|
|
1374
|
-
type: 'note';
|
|
1375
|
-
}) | (Pick<PageModel, "id" | "created" | "modified" | "title" | "slug"> & {
|
|
1376
|
-
type: 'page';
|
|
1377
|
-
})> & {
|
|
1378
|
-
/**
|
|
1379
|
-
* @see: algoliasearch <https://www.algolia.com/doc/api-reference/api-methods/search/>
|
|
1380
|
-
*/
|
|
1381
|
-
raw?: any;
|
|
1382
|
-
};
|
|
1383
|
-
} ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
|
|
1384
|
-
data: PaginateResult<(Pick<PostModel, "id" | "category" | "created" | "modified" | "title" | "slug"> & {
|
|
1385
|
-
type: 'post';
|
|
1386
|
-
}) | (Pick<NoteModel, "id" | "created" | "modified" | "title" | "nid"> & {
|
|
1387
|
-
type: 'note';
|
|
1388
|
-
}) | (Pick<PageModel, "id" | "created" | "modified" | "title" | "slug"> & {
|
|
1389
|
-
type: 'page';
|
|
1390
|
-
})> & {
|
|
1391
|
-
/**
|
|
1392
|
-
* @see: algoliasearch <https://www.algolia.com/doc/api-reference/api-methods/search/>
|
|
1393
|
-
*/
|
|
1394
|
-
raw?: any;
|
|
1395
|
-
};
|
|
1396
|
-
}>;
|
|
1239
|
+
}, ResponseWrapper>;
|
|
1397
1240
|
}>;
|
|
1398
1241
|
}
|
|
1399
1242
|
|
|
@@ -1628,4 +1471,4 @@ interface SnippetModel<T = unknown> extends BaseModel {
|
|
|
1628
1471
|
*/
|
|
1629
1472
|
declare const camelcaseKeys: <T = any>(obj: any) => T;
|
|
1630
1473
|
|
|
1631
|
-
export { AdminExtraModel, AggregateController, AggregateRoot, AggregateStat, AggregateTop, AlgoliaSearchOptionsModel, BackupOptionsModel, BaiduSearchOptionsModel, BaseCommentIndexModel, BaseModel, CategoryController, CategoryEntries, CategoryModel, CategoryType, CategoryWithChildrenModel, CommentController, CommentDto, CommentModel, CommentOptionsModel, CommentRef, CommentState, Coordinate, Count, EnumPageType, HTTPClient, IConfig, IConfigKeys, Image, LinkController, LinkModel, LinkState, LinkType, MailOptionsModel, ModelWithLiked, NoteController, NoteModel, NoteMusicRecord, NoteWrappedPayload, NoteWrappedWithLikedPayload, PageController, PageModel, Pager, PaginateResult, PostController, PostModel, ProjectController, ProjectModel, RecentlyAttitudeEnum, RecentlyAttitudeResultEnum, RecentlyController, RecentlyModel, RecentlyRefType, RecentlyRefTypes, RefType, RequestError, SayController, SayModel, SearchController, SeoOptionModel, ServerlessController, SnippetController, SnippetModel, SnippetType, SubscribeAllBit, SubscribeController, SubscribeNoteCreateBit, SubscribePostCreateBit, SubscribeRecentCreateBit, SubscribeSayCreateBit, SubscribeType, SubscribeTypeToBitMap, TLogin, TagModel, TextBaseModel, TimelineData, TimelineType, TopicController, TopicModel, Url, UrlOptionModel, UserController, UserModel, allContollerNames, allControllers, createClient, createClient as default, camelcaseKeys as simpleCamelcaseKeys };
|
|
1474
|
+
export { AdminExtraModel, AggregateController, AggregateRoot, AggregateStat, AggregateTop, AggregateTopNote, AggregateTopPost, AlgoliaSearchOptionsModel, BackupOptionsModel, BaiduSearchOptionsModel, BaseCommentIndexModel, BaseModel, CategoryController, CategoryEntries, CategoryModel, CategoryType, CategoryWithChildrenModel, CommentController, CommentDto, CommentModel, CommentOptionsModel, CommentRef, CommentState, Coordinate, Count, EnumPageType, HTTPClient, IConfig, IConfigKeys, Image, LinkController, LinkModel, LinkState, LinkType, MailOptionsModel, ModelWithLiked, NoteController, NoteModel, NoteMusicRecord, NoteWrappedPayload, NoteWrappedWithLikedPayload, PageController, PageModel, Pager, PaginateResult, PostController, PostModel, ProjectController, ProjectModel, RecentlyAttitudeEnum, RecentlyAttitudeResultEnum, RecentlyController, RecentlyModel, RecentlyRefType, RecentlyRefTypes, RefType, RequestError, SayController, SayModel, SearchController, SeoOptionModel, ServerlessController, SnippetController, SnippetModel, SnippetType, SubscribeAllBit, SubscribeController, SubscribeNoteCreateBit, SubscribePostCreateBit, SubscribeRecentCreateBit, SubscribeSayCreateBit, SubscribeType, SubscribeTypeToBitMap, TLogin, TagModel, TextBaseModel, TimelineData, TimelineType, TopicController, TopicModel, Url, UrlOptionModel, UserController, UserModel, allContollerNames, allControllers, createClient, createClient as default, camelcaseKeys as simpleCamelcaseKeys };
|
package/models/aggregate.ts
CHANGED
|
@@ -20,9 +20,20 @@ export interface Url {
|
|
|
20
20
|
webUrl: string
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
24
|
+
export interface AggregateTopNote
|
|
25
|
+
extends Pick<NoteModel, 'id' | 'title' | 'created' | 'nid' | 'images'> {}
|
|
26
|
+
|
|
27
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
28
|
+
export interface AggregateTopPost
|
|
29
|
+
extends Pick<
|
|
30
|
+
PostModel,
|
|
31
|
+
'id' | 'slug' | 'created' | 'title' | 'category' | 'images'
|
|
32
|
+
> {}
|
|
33
|
+
|
|
23
34
|
export interface AggregateTop {
|
|
24
|
-
notes:
|
|
25
|
-
posts:
|
|
35
|
+
notes: AggregateTopNote[]
|
|
36
|
+
posts: AggregateTopPost[]
|
|
26
37
|
says: SayModel[]
|
|
27
38
|
}
|
|
28
39
|
|
package/models/base.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mx-space/api-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A api client for mx-space server@next",
|
|
6
6
|
"author": "Innei",
|
|
@@ -60,17 +60,16 @@
|
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/cors": "2.8.13",
|
|
62
62
|
"@types/express": "4.17.17",
|
|
63
|
-
"@types/lodash": "4.14.
|
|
63
|
+
"@types/lodash": "4.14.194",
|
|
64
64
|
"abort-controller": "3.0.0",
|
|
65
65
|
"axios": "^1.3.1",
|
|
66
|
-
"camelcase-keys": "
|
|
66
|
+
"camelcase-keys": "^7",
|
|
67
67
|
"cors": "2.8.5",
|
|
68
68
|
"express": "4.18.2",
|
|
69
|
-
"ky": "0.33.
|
|
69
|
+
"ky": "0.33.3",
|
|
70
70
|
"lodash": "4.17.21",
|
|
71
|
-
"node-fetch": "3.3.
|
|
72
|
-
"
|
|
73
|
-
"tsup": "6.6.3",
|
|
71
|
+
"node-fetch": "3.3.1",
|
|
72
|
+
"tsup": "6.7.0",
|
|
74
73
|
"umi-request": "1.4.0"
|
|
75
74
|
}
|
|
76
75
|
}
|