@mx-space/api-client 1.19.0 → 1.20.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/dist/adaptors/axios.d.cts +1 -1
- package/dist/adaptors/axios.d.mts +1 -1
- package/dist/adaptors/fetch.d.cts +1 -1
- package/dist/adaptors/fetch.d.mts +1 -1
- package/dist/adaptors/umi-request.d.cts +1 -1
- package/dist/adaptors/umi-request.d.mts +1 -1
- package/dist/index.cjs +15 -2
- package/dist/index.d.cts +31 -3
- package/dist/index.d.mts +31 -3
- package/dist/index.mjs +15 -2
- package/package.json +5 -2
- package/controllers/ack.ts +0 -42
- package/controllers/activity.ts +0 -108
- package/controllers/aggregate.ts +0 -75
- package/controllers/ai.ts +0 -70
- package/controllers/base.ts +0 -36
- package/controllers/category.ts +0 -118
- package/controllers/comment.ts +0 -71
- package/controllers/index.ts +0 -97
- package/controllers/link.ts +0 -46
- package/controllers/note.ts +0 -128
- package/controllers/page.ts +0 -64
- package/controllers/post.ts +0 -93
- package/controllers/project.ts +0 -27
- package/controllers/recently.ts +0 -82
- package/controllers/say.ts +0 -40
- package/controllers/search.ts +0 -108
- package/controllers/severless.ts +0 -31
- package/controllers/snippet.ts +0 -35
- package/controllers/subscribe.ts +0 -58
- package/controllers/topic.ts +0 -37
- package/controllers/user.ts +0 -61
- package/dtos/comment.ts +0 -12
- package/dtos/index.ts +0 -1
- package/index.ts +0 -12
- package/interfaces/adapter.ts +0 -36
- package/interfaces/client.ts +0 -20
- package/interfaces/controller.ts +0 -5
- package/interfaces/instance.ts +0 -8
- package/interfaces/options.ts +0 -1
- package/interfaces/params.ts +0 -4
- package/interfaces/request.ts +0 -87
- package/interfaces/types.ts +0 -3
- package/mod-dts.mjs +0 -21
- package/models/activity.ts +0 -133
- package/models/aggregate.ts +0 -97
- package/models/ai.ts +0 -17
- package/models/auth.ts +0 -9
- package/models/base.ts +0 -48
- package/models/category.ts +0 -25
- package/models/comment.ts +0 -44
- package/models/index.ts +0 -20
- package/models/link.ts +0 -25
- package/models/note.ts +0 -41
- package/models/page.ts +0 -20
- package/models/post.ts +0 -28
- package/models/project.ts +0 -12
- package/models/reader.ts +0 -9
- package/models/recently.ts +0 -24
- package/models/say.ts +0 -7
- package/models/setting.ts +0 -73
- package/models/snippet.ts +0 -19
- package/models/subscribe.ts +0 -5
- package/models/topic.ts +0 -9
- package/models/user.ts +0 -27
- package/test.d.ts +0 -3
- package/tsconfig.json +0 -37
- package/tsdown.config.ts +0 -18
- package/vitest.config.ts +0 -13
- /package/dist/{adapter-B1dtiutp.d.cts → adapter-D1g1obyM.d.mts} +0 -0
- /package/dist/{adapter-CRsPadpS.d.mts → adapter-DLzJOGbI.d.cts} +0 -0
package/models/user.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { BaseModel } from './base'
|
|
2
|
-
|
|
3
|
-
export interface UserModel extends BaseModel {
|
|
4
|
-
introduce: string
|
|
5
|
-
mail: string
|
|
6
|
-
url: string
|
|
7
|
-
name: string
|
|
8
|
-
socialIds: Record<string, string>
|
|
9
|
-
username: string
|
|
10
|
-
modified: string
|
|
11
|
-
v: number
|
|
12
|
-
lastLoginTime: string
|
|
13
|
-
lastLoginIp?: string
|
|
14
|
-
avatar: string
|
|
15
|
-
postID: string
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export type TLogin = {
|
|
19
|
-
token: string
|
|
20
|
-
expiresIn: number
|
|
21
|
-
// 登陆足迹
|
|
22
|
-
lastLoginTime: null | string
|
|
23
|
-
lastLoginIp?: null | string
|
|
24
|
-
} & Pick<
|
|
25
|
-
UserModel,
|
|
26
|
-
'name' | 'username' | 'created' | 'url' | 'mail' | 'avatar' | 'id'
|
|
27
|
-
>
|
package/test.d.ts
DELETED
package/tsconfig.json
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "es2020",
|
|
4
|
-
"jsx": "react",
|
|
5
|
-
"lib": [
|
|
6
|
-
"ESNext",
|
|
7
|
-
"DOM",
|
|
8
|
-
"DOM.Iterable"
|
|
9
|
-
],
|
|
10
|
-
"baseUrl": ".",
|
|
11
|
-
"module": "ESNext",
|
|
12
|
-
"moduleResolution": "node",
|
|
13
|
-
"paths": {
|
|
14
|
-
"~/*": [
|
|
15
|
-
"*"
|
|
16
|
-
],
|
|
17
|
-
"@core/*": [
|
|
18
|
-
"../../apps/core/src/*"
|
|
19
|
-
],
|
|
20
|
-
},
|
|
21
|
-
"resolveJsonModule": true,
|
|
22
|
-
"strict": true,
|
|
23
|
-
"declaration": true,
|
|
24
|
-
"outDir": "./esm",
|
|
25
|
-
"sourceMap": true,
|
|
26
|
-
"esModuleInterop": true,
|
|
27
|
-
"forceConsistentCasingInFileNames": true,
|
|
28
|
-
"skipLibCheck": true
|
|
29
|
-
},
|
|
30
|
-
"exclude": [
|
|
31
|
-
"esm/*",
|
|
32
|
-
"build/*",
|
|
33
|
-
"node_modules/*",
|
|
34
|
-
"lib/*",
|
|
35
|
-
"dist/**"
|
|
36
|
-
]
|
|
37
|
-
}
|
package/tsdown.config.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { readdirSync } from 'node:fs'
|
|
2
|
-
import path from 'node:path'
|
|
3
|
-
import { defineConfig } from 'tsdown'
|
|
4
|
-
|
|
5
|
-
const __dirname = new URL(import.meta.url).pathname.replace(/\/[^/]*$/, '')
|
|
6
|
-
|
|
7
|
-
const adaptorNames = readdirSync(path.resolve(__dirname, './adaptors')).map(
|
|
8
|
-
(i) => path.parse(i).name,
|
|
9
|
-
)
|
|
10
|
-
|
|
11
|
-
export default defineConfig({
|
|
12
|
-
clean: true,
|
|
13
|
-
target: 'es2020',
|
|
14
|
-
entry: ['index.ts', ...adaptorNames.map((name) => `adaptors/${name}.ts`)],
|
|
15
|
-
external: adaptorNames,
|
|
16
|
-
dts: true,
|
|
17
|
-
format: ['cjs', 'esm'],
|
|
18
|
-
})
|
package/vitest.config.ts
DELETED
|
File without changes
|
|
File without changes
|