@mx-space/api-client 1.1.0 → 1.2.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/{types/interfaces/adapter.d.ts → dist/adapter-be44aa1e.d.ts} +12 -3
- package/dist/adaptors/axios.cjs +62 -41
- package/dist/adaptors/axios.d.ts +3 -28
- package/dist/adaptors/axios.global.js +13400 -0
- package/dist/adaptors/axios.js +32 -37
- package/dist/adaptors/fetch.cjs +105 -92
- package/dist/adaptors/fetch.d.ts +3 -23
- package/dist/adaptors/fetch.global.js +87 -0
- package/dist/adaptors/fetch.js +81 -91
- package/dist/adaptors/ky.cjs +91 -66
- package/dist/adaptors/ky.d.ts +18 -33
- package/dist/adaptors/ky.global.js +552 -0
- package/dist/adaptors/ky.js +60 -61
- package/dist/adaptors/umi-request.cjs +55 -34
- package/dist/adaptors/umi-request.d.ts +3 -28
- package/dist/adaptors/umi-request.global.js +7005 -0
- package/dist/adaptors/umi-request.js +31 -30
- package/dist/index.cjs +947 -955
- package/dist/index.d.ts +1555 -0
- package/dist/index.global.js +907 -0
- package/dist/index.js +889 -931
- package/dtos/index.ts +1 -0
- package/index.ts +3 -1
- package/mod-dts.mjs +18 -0
- package/models/index.ts +1 -0
- package/package.json +6 -47
- package/tsconfig.json +16 -4
- package/tsup.config.ts +18 -0
- package/dist/adaptors/axios.cjs.map +0 -1
- package/dist/adaptors/axios.js.map +0 -1
- package/dist/adaptors/axios.min.cjs +0 -2
- package/dist/adaptors/axios.min.cjs.map +0 -1
- package/dist/adaptors/axios.min.js +0 -2
- package/dist/adaptors/axios.min.js.map +0 -1
- package/dist/adaptors/axios.umd.js +0 -47
- package/dist/adaptors/axios.umd.js.map +0 -1
- package/dist/adaptors/axios.umd.min.js +0 -2
- package/dist/adaptors/axios.umd.min.js.map +0 -1
- package/dist/adaptors/fetch.cjs.map +0 -1
- package/dist/adaptors/fetch.js.map +0 -1
- package/dist/adaptors/fetch.min.cjs +0 -2
- package/dist/adaptors/fetch.min.cjs.map +0 -1
- package/dist/adaptors/fetch.min.js +0 -2
- package/dist/adaptors/fetch.min.js.map +0 -1
- package/dist/adaptors/fetch.umd.js +0 -105
- package/dist/adaptors/fetch.umd.js.map +0 -1
- package/dist/adaptors/fetch.umd.min.js +0 -2
- package/dist/adaptors/fetch.umd.min.js.map +0 -1
- package/dist/adaptors/ky.cjs.map +0 -1
- package/dist/adaptors/ky.js.map +0 -1
- package/dist/adaptors/ky.min.cjs +0 -2
- package/dist/adaptors/ky.min.cjs.map +0 -1
- package/dist/adaptors/ky.min.js +0 -2
- package/dist/adaptors/ky.min.js.map +0 -1
- package/dist/adaptors/ky.umd.js +0 -73
- package/dist/adaptors/ky.umd.js.map +0 -1
- package/dist/adaptors/ky.umd.min.js +0 -2
- package/dist/adaptors/ky.umd.min.js.map +0 -1
- package/dist/adaptors/umi-request.cjs.map +0 -1
- package/dist/adaptors/umi-request.js.map +0 -1
- package/dist/adaptors/umi-request.min.cjs +0 -2
- package/dist/adaptors/umi-request.min.cjs.map +0 -1
- package/dist/adaptors/umi-request.min.js +0 -2
- package/dist/adaptors/umi-request.min.js.map +0 -1
- package/dist/adaptors/umi-request.umd.js +0 -41
- package/dist/adaptors/umi-request.umd.js.map +0 -1
- package/dist/adaptors/umi-request.umd.min.js +0 -2
- package/dist/adaptors/umi-request.umd.min.js.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/index.min.cjs +0 -2
- package/dist/index.min.cjs.map +0 -1
- package/dist/index.min.js +0 -2
- package/dist/index.min.js.map +0 -1
- package/dist/index.umd.js +0 -1011
- package/dist/index.umd.js.map +0 -1
- package/dist/index.umd.min.js +0 -2
- package/dist/index.umd.min.js.map +0 -1
- package/esm/adaptors/axios.d.ts +0 -4
- package/esm/adaptors/axios.js +0 -37
- package/esm/adaptors/axios.js.map +0 -1
- package/esm/adaptors/fetch.d.ts +0 -2
- package/esm/adaptors/fetch.js +0 -95
- package/esm/adaptors/fetch.js.map +0 -1
- package/esm/adaptors/ky.d.ts +0 -23
- package/esm/adaptors/ky.js +0 -62
- package/esm/adaptors/ky.js.map +0 -1
- package/esm/adaptors/umi-request.d.ts +0 -4
- package/esm/adaptors/umi-request.js +0 -31
- package/esm/adaptors/umi-request.js.map +0 -1
- package/esm/controllers/aggregate.d.ts +0 -64
- package/esm/controllers/aggregate.js +0 -42
- package/esm/controllers/aggregate.js.map +0 -1
- package/esm/controllers/base.d.ts +0 -43
- package/esm/controllers/base.js +0 -27
- package/esm/controllers/base.js.map +0 -1
- package/esm/controllers/category.d.ts +0 -114
- package/esm/controllers/category.js +0 -68
- package/esm/controllers/category.js.map +0 -1
- package/esm/controllers/comment.d.ts +0 -81
- package/esm/controllers/comment.js +0 -47
- package/esm/controllers/comment.js.map +0 -1
- package/esm/controllers/index.d.ts +0 -18
- package/esm/controllers/index.js +0 -57
- package/esm/controllers/index.js.map +0 -1
- package/esm/controllers/link.d.ts +0 -20
- package/esm/controllers/link.js +0 -21
- package/esm/controllers/link.js.map +0 -1
- package/esm/controllers/note.d.ts +0 -123
- package/esm/controllers/note.js +0 -68
- package/esm/controllers/note.js.map +0 -1
- package/esm/controllers/page.d.ts +0 -59
- package/esm/controllers/page.js +0 -42
- package/esm/controllers/page.js.map +0 -1
- package/esm/controllers/post.d.ts +0 -72
- package/esm/controllers/post.js +0 -52
- package/esm/controllers/post.js.map +0 -1
- package/esm/controllers/project.d.ts +0 -15
- package/esm/controllers/project.js +0 -12
- package/esm/controllers/project.js.map +0 -1
- package/esm/controllers/recently.d.ts +0 -110
- package/esm/controllers/recently.js +0 -49
- package/esm/controllers/recently.js.map +0 -1
- package/esm/controllers/say.d.ts +0 -37
- package/esm/controllers/say.js +0 -21
- package/esm/controllers/say.js.map +0 -1
- package/esm/controllers/search.d.ts +0 -247
- package/esm/controllers/search.js +0 -28
- package/esm/controllers/search.js.map +0 -1
- package/esm/controllers/severless.d.ts +0 -24
- package/esm/controllers/severless.js +0 -16
- package/esm/controllers/severless.js.map +0 -1
- package/esm/controllers/snippet.d.ts +0 -24
- package/esm/controllers/snippet.js +0 -19
- package/esm/controllers/snippet.js.map +0 -1
- package/esm/controllers/topic.d.ts +0 -26
- package/esm/controllers/topic.js +0 -18
- package/esm/controllers/topic.js.map +0 -1
- package/esm/controllers/user.d.ts +0 -70
- package/esm/controllers/user.js +0 -40
- package/esm/controllers/user.js.map +0 -1
- package/esm/core/attach-request.d.ts +0 -2
- package/esm/core/attach-request.js +0 -36
- package/esm/core/attach-request.js.map +0 -1
- package/esm/core/client.d.ts +0 -29
- package/esm/core/client.js +0 -186
- package/esm/core/client.js.map +0 -1
- package/esm/core/error.d.ts +0 -6
- package/esm/core/error.js +0 -9
- package/esm/core/error.js.map +0 -1
- package/esm/core/index.d.ts +0 -2
- package/esm/core/index.js +0 -3
- package/esm/core/index.js.map +0 -1
- package/esm/dtos/comment.d.ts +0 -6
- package/esm/dtos/comment.js +0 -3
- package/esm/dtos/comment.js.map +0 -1
- package/esm/index.d.ts +0 -7
- package/esm/index.js +0 -8
- package/esm/index.js.map +0 -1
- package/esm/interfaces/adapter.d.ts +0 -14
- package/esm/interfaces/adapter.js +0 -2
- package/esm/interfaces/adapter.js.map +0 -1
- package/esm/interfaces/client.d.ts +0 -13
- package/esm/interfaces/client.js +0 -2
- package/esm/interfaces/client.js.map +0 -1
- package/esm/interfaces/controller.d.ts +0 -4
- package/esm/interfaces/controller.js +0 -2
- package/esm/interfaces/controller.js.map +0 -1
- package/esm/interfaces/instance.d.ts +0 -7
- package/esm/interfaces/instance.js +0 -2
- package/esm/interfaces/instance.js.map +0 -1
- package/esm/interfaces/options.d.ts +0 -1
- package/esm/interfaces/options.js +0 -2
- package/esm/interfaces/options.js.map +0 -1
- package/esm/interfaces/params.d.ts +0 -4
- package/esm/interfaces/params.js +0 -2
- package/esm/interfaces/params.js.map +0 -1
- package/esm/interfaces/request.d.ts +0 -43
- package/esm/interfaces/request.js +0 -2
- package/esm/interfaces/request.js.map +0 -1
- package/esm/interfaces/types.d.ts +0 -2
- package/esm/interfaces/types.js +0 -2
- package/esm/interfaces/types.js.map +0 -1
- package/esm/models/aggregate.d.ts +0 -53
- package/esm/models/aggregate.js +0 -6
- package/esm/models/aggregate.js.map +0 -1
- package/esm/models/base.d.ts +0 -41
- package/esm/models/base.js +0 -2
- package/esm/models/base.js.map +0 -1
- package/esm/models/category.d.ts +0 -22
- package/esm/models/category.js +0 -6
- package/esm/models/category.js.map +0 -1
- package/esm/models/comment.d.ts +0 -37
- package/esm/models/comment.js +0 -13
- package/esm/models/comment.js.map +0 -1
- package/esm/models/index.d.ts +0 -14
- package/esm/models/index.js +0 -15
- package/esm/models/index.js.map +0 -1
- package/esm/models/link.d.ts +0 -22
- package/esm/models/link.js +0 -14
- package/esm/models/link.js.map +0 -1
- package/esm/models/note.d.ts +0 -38
- package/esm/models/note.js +0 -2
- package/esm/models/note.js.map +0 -1
- package/esm/models/page.d.ts +0 -14
- package/esm/models/page.js +0 -7
- package/esm/models/page.js.map +0 -1
- package/esm/models/post.d.ts +0 -17
- package/esm/models/post.js +0 -2
- package/esm/models/post.js.map +0 -1
- package/esm/models/project.d.ts +0 -11
- package/esm/models/project.js +0 -2
- package/esm/models/project.js.map +0 -1
- package/esm/models/recently.d.ts +0 -20
- package/esm/models/recently.js +0 -7
- package/esm/models/recently.js.map +0 -1
- package/esm/models/say.d.ts +0 -6
- package/esm/models/say.js +0 -2
- package/esm/models/say.js.map +0 -1
- package/esm/models/setting.d.ts +0 -66
- package/esm/models/setting.js +0 -2
- package/esm/models/setting.js.map +0 -1
- package/esm/models/snippet.d.ts +0 -18
- package/esm/models/snippet.js +0 -8
- package/esm/models/snippet.js.map +0 -1
- package/esm/models/topic.d.ts +0 -8
- package/esm/models/topic.js +0 -2
- package/esm/models/topic.js.map +0 -1
- package/esm/models/user.d.ts +0 -21
- package/esm/models/user.js +0 -2
- package/esm/models/user.js.map +0 -1
- package/esm/utils/auto-bind.d.ts +0 -4
- package/esm/utils/auto-bind.js +0 -36
- package/esm/utils/auto-bind.js.map +0 -1
- package/esm/utils/camelcase-keys.d.ts +0 -6
- package/esm/utils/camelcase-keys.js +0 -23
- package/esm/utils/camelcase-keys.js.map +0 -1
- package/esm/utils/index.d.ts +0 -5
- package/esm/utils/index.js +0 -43
- package/esm/utils/index.js.map +0 -1
- package/esm/utils/path.d.ts +0 -1
- package/esm/utils/path.js +0 -7
- package/esm/utils/path.js.map +0 -1
- package/esm/vitest.config.d.ts +0 -2
- package/esm/vitest.config.js +0 -15
- package/esm/vitest.config.js.map +0 -1
- package/lib/adaptors/axios.d.ts +0 -4
- package/lib/adaptors/axios.js +0 -43
- package/lib/adaptors/axios.js.map +0 -1
- package/lib/adaptors/fetch.d.ts +0 -2
- package/lib/adaptors/fetch.js +0 -98
- package/lib/adaptors/fetch.js.map +0 -1
- package/lib/adaptors/ky.d.ts +0 -23
- package/lib/adaptors/ky.js +0 -69
- package/lib/adaptors/ky.js.map +0 -1
- package/lib/adaptors/umi-request.d.ts +0 -4
- package/lib/adaptors/umi-request.js +0 -34
- package/lib/adaptors/umi-request.js.map +0 -1
- package/lib/controllers/aggregate.d.ts +0 -64
- package/lib/controllers/aggregate.js +0 -46
- package/lib/controllers/aggregate.js.map +0 -1
- package/lib/controllers/base.d.ts +0 -43
- package/lib/controllers/base.js +0 -31
- package/lib/controllers/base.js.map +0 -1
- package/lib/controllers/category.d.ts +0 -114
- package/lib/controllers/category.js +0 -72
- package/lib/controllers/category.js.map +0 -1
- package/lib/controllers/comment.d.ts +0 -81
- package/lib/controllers/comment.js +0 -51
- package/lib/controllers/comment.js.map +0 -1
- package/lib/controllers/index.d.ts +0 -18
- package/lib/controllers/index.js +0 -74
- package/lib/controllers/index.js.map +0 -1
- package/lib/controllers/link.d.ts +0 -20
- package/lib/controllers/link.js +0 -25
- package/lib/controllers/link.js.map +0 -1
- package/lib/controllers/note.d.ts +0 -123
- package/lib/controllers/note.js +0 -72
- package/lib/controllers/note.js.map +0 -1
- package/lib/controllers/page.d.ts +0 -59
- package/lib/controllers/page.js +0 -46
- package/lib/controllers/page.js.map +0 -1
- package/lib/controllers/post.d.ts +0 -72
- package/lib/controllers/post.js +0 -56
- package/lib/controllers/post.js.map +0 -1
- package/lib/controllers/project.d.ts +0 -15
- package/lib/controllers/project.js +0 -16
- package/lib/controllers/project.js.map +0 -1
- package/lib/controllers/recently.d.ts +0 -110
- package/lib/controllers/recently.js +0 -53
- package/lib/controllers/recently.js.map +0 -1
- package/lib/controllers/say.d.ts +0 -37
- package/lib/controllers/say.js +0 -25
- package/lib/controllers/say.js.map +0 -1
- package/lib/controllers/search.d.ts +0 -247
- package/lib/controllers/search.js +0 -32
- package/lib/controllers/search.js.map +0 -1
- package/lib/controllers/severless.d.ts +0 -24
- package/lib/controllers/severless.js +0 -20
- package/lib/controllers/severless.js.map +0 -1
- package/lib/controllers/snippet.d.ts +0 -24
- package/lib/controllers/snippet.js +0 -23
- package/lib/controllers/snippet.js.map +0 -1
- package/lib/controllers/topic.d.ts +0 -26
- package/lib/controllers/topic.js +0 -22
- package/lib/controllers/topic.js.map +0 -1
- package/lib/controllers/user.d.ts +0 -70
- package/lib/controllers/user.js +0 -44
- package/lib/controllers/user.js.map +0 -1
- package/lib/core/attach-request.d.ts +0 -2
- package/lib/core/attach-request.js +0 -40
- package/lib/core/attach-request.js.map +0 -1
- package/lib/core/client.d.ts +0 -29
- package/lib/core/client.js +0 -190
- package/lib/core/client.js.map +0 -1
- package/lib/core/error.d.ts +0 -6
- package/lib/core/error.js +0 -13
- package/lib/core/error.js.map +0 -1
- package/lib/core/index.d.ts +0 -2
- package/lib/core/index.js +0 -19
- package/lib/core/index.js.map +0 -1
- package/lib/dtos/comment.d.ts +0 -6
- package/lib/dtos/comment.js +0 -7
- package/lib/dtos/comment.js.map +0 -1
- package/lib/index.d.ts +0 -7
- package/lib/index.js +0 -28
- package/lib/index.js.map +0 -1
- package/lib/interfaces/adapter.d.ts +0 -14
- package/lib/interfaces/adapter.js +0 -3
- package/lib/interfaces/adapter.js.map +0 -1
- package/lib/interfaces/client.d.ts +0 -13
- package/lib/interfaces/client.js +0 -3
- package/lib/interfaces/client.js.map +0 -1
- package/lib/interfaces/controller.d.ts +0 -4
- package/lib/interfaces/controller.js +0 -3
- package/lib/interfaces/controller.js.map +0 -1
- package/lib/interfaces/instance.d.ts +0 -7
- package/lib/interfaces/instance.js +0 -3
- package/lib/interfaces/instance.js.map +0 -1
- package/lib/interfaces/options.d.ts +0 -1
- package/lib/interfaces/options.js +0 -3
- package/lib/interfaces/options.js.map +0 -1
- package/lib/interfaces/params.d.ts +0 -4
- package/lib/interfaces/params.js +0 -3
- package/lib/interfaces/params.js.map +0 -1
- package/lib/interfaces/request.d.ts +0 -43
- package/lib/interfaces/request.js +0 -3
- package/lib/interfaces/request.js.map +0 -1
- package/lib/interfaces/types.d.ts +0 -2
- package/lib/interfaces/types.js +0 -3
- package/lib/interfaces/types.js.map +0 -1
- package/lib/models/aggregate.d.ts +0 -53
- package/lib/models/aggregate.js +0 -9
- package/lib/models/aggregate.js.map +0 -1
- package/lib/models/base.d.ts +0 -41
- package/lib/models/base.js +0 -3
- package/lib/models/base.js.map +0 -1
- package/lib/models/category.d.ts +0 -22
- package/lib/models/category.js +0 -9
- package/lib/models/category.js.map +0 -1
- package/lib/models/comment.d.ts +0 -37
- package/lib/models/comment.js +0 -16
- package/lib/models/comment.js.map +0 -1
- package/lib/models/index.d.ts +0 -14
- package/lib/models/index.js +0 -31
- package/lib/models/index.js.map +0 -1
- package/lib/models/link.d.ts +0 -22
- package/lib/models/link.js +0 -17
- package/lib/models/link.js.map +0 -1
- package/lib/models/note.d.ts +0 -38
- package/lib/models/note.js +0 -3
- package/lib/models/note.js.map +0 -1
- package/lib/models/page.d.ts +0 -14
- package/lib/models/page.js +0 -10
- package/lib/models/page.js.map +0 -1
- package/lib/models/post.d.ts +0 -17
- package/lib/models/post.js +0 -3
- package/lib/models/post.js.map +0 -1
- package/lib/models/project.d.ts +0 -11
- package/lib/models/project.js +0 -3
- package/lib/models/project.js.map +0 -1
- package/lib/models/recently.d.ts +0 -20
- package/lib/models/recently.js +0 -10
- package/lib/models/recently.js.map +0 -1
- package/lib/models/say.d.ts +0 -6
- package/lib/models/say.js +0 -3
- package/lib/models/say.js.map +0 -1
- package/lib/models/setting.d.ts +0 -66
- package/lib/models/setting.js +0 -3
- package/lib/models/setting.js.map +0 -1
- package/lib/models/snippet.d.ts +0 -18
- package/lib/models/snippet.js +0 -11
- package/lib/models/snippet.js.map +0 -1
- package/lib/models/topic.d.ts +0 -8
- package/lib/models/topic.js +0 -3
- package/lib/models/topic.js.map +0 -1
- package/lib/models/user.d.ts +0 -21
- package/lib/models/user.js +0 -3
- package/lib/models/user.js.map +0 -1
- package/lib/utils/auto-bind.d.ts +0 -4
- package/lib/utils/auto-bind.js +0 -40
- package/lib/utils/auto-bind.js.map +0 -1
- package/lib/utils/camelcase-keys.d.ts +0 -6
- package/lib/utils/camelcase-keys.js +0 -28
- package/lib/utils/camelcase-keys.js.map +0 -1
- package/lib/utils/index.d.ts +0 -5
- package/lib/utils/index.js +0 -50
- package/lib/utils/index.js.map +0 -1
- package/lib/utils/path.d.ts +0 -1
- package/lib/utils/path.js +0 -11
- package/lib/utils/path.js.map +0 -1
- package/lib/vitest.config.d.ts +0 -2
- package/lib/vitest.config.js +0 -20
- package/lib/vitest.config.js.map +0 -1
- package/tsconfig.build.json +0 -4
- package/tsconfig.cjs.json +0 -7
- package/tsconfig.types.json +0 -15
- package/types/adaptors/axios.d.ts +0 -4
- package/types/adaptors/fetch.d.ts +0 -2
- package/types/adaptors/ky.d.ts +0 -23
- package/types/adaptors/umi-request.d.ts +0 -4
- package/types/controllers/aggregate.d.ts +0 -64
- package/types/controllers/base.d.ts +0 -43
- package/types/controllers/category.d.ts +0 -114
- package/types/controllers/comment.d.ts +0 -81
- package/types/controllers/index.d.ts +0 -18
- package/types/controllers/link.d.ts +0 -20
- package/types/controllers/note.d.ts +0 -123
- package/types/controllers/page.d.ts +0 -59
- package/types/controllers/post.d.ts +0 -72
- package/types/controllers/project.d.ts +0 -15
- package/types/controllers/recently.d.ts +0 -110
- package/types/controllers/say.d.ts +0 -37
- package/types/controllers/search.d.ts +0 -247
- package/types/controllers/severless.d.ts +0 -24
- package/types/controllers/snippet.d.ts +0 -24
- package/types/controllers/topic.d.ts +0 -26
- package/types/controllers/user.d.ts +0 -70
- package/types/core/attach-request.d.ts +0 -2
- package/types/core/client.d.ts +0 -29
- package/types/core/error.d.ts +0 -6
- package/types/core/index.d.ts +0 -2
- package/types/dtos/comment.d.ts +0 -6
- package/types/index.d.ts +0 -7
- package/types/interfaces/client.d.ts +0 -13
- package/types/interfaces/controller.d.ts +0 -4
- package/types/interfaces/instance.d.ts +0 -7
- package/types/interfaces/options.d.ts +0 -1
- package/types/interfaces/params.d.ts +0 -4
- package/types/interfaces/request.d.ts +0 -43
- package/types/interfaces/types.d.ts +0 -2
- package/types/models/aggregate.d.ts +0 -53
- package/types/models/base.d.ts +0 -41
- package/types/models/category.d.ts +0 -22
- package/types/models/comment.d.ts +0 -37
- package/types/models/index.d.ts +0 -14
- package/types/models/link.d.ts +0 -22
- package/types/models/note.d.ts +0 -38
- package/types/models/page.d.ts +0 -14
- package/types/models/post.d.ts +0 -17
- package/types/models/project.d.ts +0 -11
- package/types/models/recently.d.ts +0 -20
- package/types/models/say.d.ts +0 -6
- package/types/models/setting.d.ts +0 -66
- package/types/models/snippet.d.ts +0 -18
- package/types/models/topic.d.ts +0 -8
- package/types/models/user.d.ts +0 -21
- package/types/utils/auto-bind.d.ts +0 -4
- package/types/utils/camelcase-keys.d.ts +0 -6
- package/types/utils/index.d.ts +0 -5
- package/types/utils/path.d.ts +0 -1
- package/types/vitest.config.d.ts +0 -2
package/dist/index.cjs
CHANGED
|
@@ -1,1005 +1,997 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
return ({
|
|
10
|
-
asc: 1,
|
|
11
|
-
desc: -1,
|
|
12
|
-
}[order] || 1);
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
13
9
|
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// index.ts
|
|
21
|
+
var api_client_exports = {};
|
|
22
|
+
__export(api_client_exports, {
|
|
23
|
+
AggregateController: () => AggregateController,
|
|
24
|
+
CategoryController: () => CategoryController,
|
|
25
|
+
CategoryType: () => CategoryType,
|
|
26
|
+
CommentController: () => CommentController,
|
|
27
|
+
CommentDto: () => CommentDto,
|
|
28
|
+
CommentState: () => CommentState,
|
|
29
|
+
EnumPageType: () => EnumPageType,
|
|
30
|
+
LinkController: () => LinkController,
|
|
31
|
+
LinkState: () => LinkState,
|
|
32
|
+
LinkType: () => LinkType,
|
|
33
|
+
NoteController: () => NoteController,
|
|
34
|
+
PageController: () => PageController,
|
|
35
|
+
PostController: () => PostController,
|
|
36
|
+
ProjectController: () => ProjectController,
|
|
37
|
+
RecentlyAttitudeEnum: () => RecentlyAttitudeEnum,
|
|
38
|
+
RecentlyAttitudeResultEnum: () => RecentlyAttitudeResultEnum,
|
|
39
|
+
RecentlyController: () => RecentlyController,
|
|
40
|
+
RecentlyRefTypes: () => RecentlyRefTypes,
|
|
41
|
+
RefType: () => RefType,
|
|
42
|
+
RequestError: () => RequestError,
|
|
43
|
+
SayController: () => SayController,
|
|
44
|
+
SearchController: () => SearchController,
|
|
45
|
+
ServerlessController: () => ServerlessController,
|
|
46
|
+
SnippetController: () => SnippetController,
|
|
47
|
+
SnippetType: () => SnippetType,
|
|
48
|
+
TimelineType: () => TimelineType,
|
|
49
|
+
TopicController: () => TopicController,
|
|
50
|
+
UserController: () => UserController,
|
|
51
|
+
allContollerNames: () => allContollerNames,
|
|
52
|
+
allControllers: () => allControllers,
|
|
53
|
+
createClient: () => createClient,
|
|
54
|
+
default: () => api_client_default,
|
|
55
|
+
simpleCamelcaseKeys: () => camelcaseKeys
|
|
56
|
+
});
|
|
57
|
+
module.exports = __toCommonJS(api_client_exports);
|
|
58
|
+
|
|
59
|
+
// utils/index.ts
|
|
60
|
+
var isPlainObject = (obj) => isObject(obj) && Object.prototype.toString.call(obj) === "[object Object]" && Object.getPrototypeOf(obj) === Object.prototype;
|
|
61
|
+
var sortOrderToNumber = (order) => {
|
|
62
|
+
return {
|
|
63
|
+
asc: 1,
|
|
64
|
+
desc: -1
|
|
65
|
+
}[order] || 1;
|
|
66
|
+
};
|
|
67
|
+
var isObject = (obj) => obj && typeof obj === "object";
|
|
68
|
+
var destructureData = (payload) => {
|
|
69
|
+
if (typeof payload !== "object") {
|
|
70
|
+
return payload;
|
|
71
|
+
}
|
|
72
|
+
if (payload === null) {
|
|
30
73
|
return payload;
|
|
74
|
+
}
|
|
75
|
+
const data = payload.data;
|
|
76
|
+
const dataIsPlainObject = isPlainObject(data);
|
|
77
|
+
if (dataIsPlainObject && Object.keys(payload).length === 1) {
|
|
78
|
+
const d = Object.assign({}, data);
|
|
79
|
+
attachRawFromOneToAnthor(payload, d);
|
|
80
|
+
return d;
|
|
81
|
+
}
|
|
82
|
+
return payload;
|
|
31
83
|
};
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
from.$request
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
enumerable: false,
|
|
45
|
-
});
|
|
84
|
+
var attachRawFromOneToAnthor = (from, to) => {
|
|
85
|
+
if (!from || !isObject(to)) {
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
from.$raw && Object.defineProperty(to, "$raw", {
|
|
89
|
+
value: { ...from.$raw },
|
|
90
|
+
enumerable: false
|
|
91
|
+
});
|
|
92
|
+
from.$request && Object.defineProperty(to, "$request", {
|
|
93
|
+
value: { ...from.$request },
|
|
94
|
+
enumerable: false
|
|
95
|
+
});
|
|
46
96
|
};
|
|
47
97
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}, {});
|
|
61
|
-
}
|
|
62
|
-
return obj;
|
|
98
|
+
// utils/camelcase-keys.ts
|
|
99
|
+
var camelcaseKeys = (obj) => {
|
|
100
|
+
if (Array.isArray(obj)) {
|
|
101
|
+
return obj.map((x) => camelcaseKeys(x));
|
|
102
|
+
}
|
|
103
|
+
if (isPlainObject(obj)) {
|
|
104
|
+
return Object.keys(obj).reduce((result, key) => {
|
|
105
|
+
result[camelcase(key)] = camelcaseKeys(obj[key]);
|
|
106
|
+
return result;
|
|
107
|
+
}, {});
|
|
108
|
+
}
|
|
109
|
+
return obj;
|
|
63
110
|
};
|
|
64
111
|
function camelcase(str) {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
112
|
+
return str.replace(/([-_][a-z])/gi, ($1) => {
|
|
113
|
+
return $1.toUpperCase().replace("-", "").replace("_", "");
|
|
114
|
+
});
|
|
68
115
|
}
|
|
69
116
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
|
|
117
|
+
// utils/path.ts
|
|
118
|
+
var resolveFullPath = (endpoint, path) => {
|
|
119
|
+
if (!path.startsWith("/")) {
|
|
120
|
+
path = `/${path}`;
|
|
121
|
+
}
|
|
122
|
+
return `${endpoint}${path}`;
|
|
75
123
|
};
|
|
76
124
|
|
|
77
|
-
//
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
const
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
} while ((object = Reflect.getPrototypeOf(object)) &&
|
|
87
|
-
object !== Object.prototype);
|
|
88
|
-
return properties;
|
|
125
|
+
// utils/auto-bind.ts
|
|
126
|
+
var getAllProperties = (object) => {
|
|
127
|
+
const properties = /* @__PURE__ */ new Set();
|
|
128
|
+
do {
|
|
129
|
+
for (const key of Reflect.ownKeys(object)) {
|
|
130
|
+
properties.add([object, key]);
|
|
131
|
+
}
|
|
132
|
+
} while ((object = Reflect.getPrototypeOf(object)) && object !== Object.prototype);
|
|
133
|
+
return properties;
|
|
89
134
|
};
|
|
90
135
|
function autoBind(self, { include, exclude } = {}) {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
136
|
+
const filter = (key) => {
|
|
137
|
+
const match = (pattern) => typeof pattern === "string" ? key === pattern : pattern.test(key);
|
|
138
|
+
if (include) {
|
|
139
|
+
return include.some(match);
|
|
140
|
+
}
|
|
141
|
+
if (exclude) {
|
|
142
|
+
return !exclude.some(match);
|
|
143
|
+
}
|
|
144
|
+
return true;
|
|
145
|
+
};
|
|
146
|
+
for (const [object, key] of getAllProperties(self.constructor.prototype)) {
|
|
147
|
+
if (key === "constructor" || !filter(key)) {
|
|
148
|
+
continue;
|
|
149
|
+
}
|
|
150
|
+
const descriptor = Reflect.getOwnPropertyDescriptor(object, key);
|
|
151
|
+
if (descriptor && typeof descriptor.value === "function") {
|
|
152
|
+
self[key] = self[key].bind(self);
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
return self;
|
|
111
156
|
}
|
|
112
157
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* 获取聚合数据统计
|
|
147
|
-
*/
|
|
148
|
-
getStat() {
|
|
149
|
-
return this.proxy.stat.get();
|
|
150
|
-
}
|
|
151
|
-
}
|
|
158
|
+
// controllers/aggregate.ts
|
|
159
|
+
var AggregateController = class {
|
|
160
|
+
constructor(client) {
|
|
161
|
+
this.client = client;
|
|
162
|
+
this.base = "aggregate";
|
|
163
|
+
this.name = "aggregate";
|
|
164
|
+
autoBind(this);
|
|
165
|
+
}
|
|
166
|
+
get proxy() {
|
|
167
|
+
return this.client.proxy(this.base);
|
|
168
|
+
}
|
|
169
|
+
getAggregateData() {
|
|
170
|
+
return this.proxy.get();
|
|
171
|
+
}
|
|
172
|
+
getTop(size = 5) {
|
|
173
|
+
return this.proxy.top.get({ params: { size } });
|
|
174
|
+
}
|
|
175
|
+
getTimeline(options) {
|
|
176
|
+
const { sort, type, year } = options || {};
|
|
177
|
+
return this.proxy.timeline.get({
|
|
178
|
+
params: {
|
|
179
|
+
sort: sort && sortOrderToNumber(sort),
|
|
180
|
+
type,
|
|
181
|
+
year
|
|
182
|
+
}
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
getStat() {
|
|
186
|
+
return this.proxy.stat.get();
|
|
187
|
+
}
|
|
188
|
+
};
|
|
152
189
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
}
|
|
190
|
+
// core/error.ts
|
|
191
|
+
var RequestError = class extends Error {
|
|
192
|
+
constructor(message, status, path, raw) {
|
|
193
|
+
super(message);
|
|
194
|
+
this.status = status;
|
|
195
|
+
this.path = path;
|
|
196
|
+
this.raw = raw;
|
|
197
|
+
}
|
|
198
|
+
};
|
|
161
199
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
const result = Object.values(data.entries)[0];
|
|
200
|
-
attachRawFromOneToAnthor(data, result);
|
|
201
|
-
return result;
|
|
200
|
+
// models/category.ts
|
|
201
|
+
var CategoryType = /* @__PURE__ */ ((CategoryType2) => {
|
|
202
|
+
CategoryType2[CategoryType2["Category"] = 0] = "Category";
|
|
203
|
+
CategoryType2[CategoryType2["Tag"] = 1] = "Tag";
|
|
204
|
+
return CategoryType2;
|
|
205
|
+
})(CategoryType || {});
|
|
206
|
+
|
|
207
|
+
// controllers/category.ts
|
|
208
|
+
var CategoryController = class {
|
|
209
|
+
constructor(client) {
|
|
210
|
+
this.client = client;
|
|
211
|
+
this.name = "category";
|
|
212
|
+
this.base = "categories";
|
|
213
|
+
autoBind(this);
|
|
214
|
+
}
|
|
215
|
+
get proxy() {
|
|
216
|
+
return this.client.proxy(this.base);
|
|
217
|
+
}
|
|
218
|
+
getAllCategories() {
|
|
219
|
+
return this.proxy.get({
|
|
220
|
+
params: {
|
|
221
|
+
type: 0 /* Category */
|
|
222
|
+
}
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
getAllTags() {
|
|
226
|
+
return this.proxy.get({
|
|
227
|
+
params: {
|
|
228
|
+
type: 1 /* Tag */
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
}
|
|
232
|
+
async getCategoryDetail(ids) {
|
|
233
|
+
if (typeof ids === "string") {
|
|
234
|
+
const data = await this.proxy.get({
|
|
235
|
+
params: {
|
|
236
|
+
ids
|
|
202
237
|
}
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
throw new RequestError('data structure error', 500, data.$request.path, data);
|
|
212
|
-
}
|
|
213
|
-
const map = new Map(Object.entries(entries).map(([id, value]) => [id.toLowerCase(), value]));
|
|
214
|
-
attachRawFromOneToAnthor(data, map);
|
|
215
|
-
return map;
|
|
238
|
+
});
|
|
239
|
+
const result = Object.values(data.entries)[0];
|
|
240
|
+
attachRawFromOneToAnthor(data, result);
|
|
241
|
+
return result;
|
|
242
|
+
} else if (Array.isArray(ids)) {
|
|
243
|
+
const data = await this.proxy.get({
|
|
244
|
+
params: {
|
|
245
|
+
ids: ids.join(",")
|
|
216
246
|
}
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
247
|
+
});
|
|
248
|
+
const entries = data?.entries;
|
|
249
|
+
if (!entries) {
|
|
250
|
+
throw new RequestError(
|
|
251
|
+
"data structure error",
|
|
252
|
+
500,
|
|
253
|
+
data.$request.path,
|
|
254
|
+
data
|
|
255
|
+
);
|
|
256
|
+
}
|
|
257
|
+
const map = new Map(
|
|
258
|
+
Object.entries(entries).map(([id, value]) => [id.toLowerCase(), value])
|
|
259
|
+
);
|
|
260
|
+
attachRawFromOneToAnthor(data, map);
|
|
261
|
+
return map;
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
async getCategoryByIdOrSlug(idOrSlug) {
|
|
265
|
+
const res = await this.proxy(idOrSlug).get();
|
|
266
|
+
return destructureData(res);
|
|
267
|
+
}
|
|
268
|
+
async getTagByName(name) {
|
|
269
|
+
const res = await this.proxy(name).get({
|
|
270
|
+
params: {
|
|
271
|
+
tag: 1
|
|
272
|
+
}
|
|
273
|
+
});
|
|
274
|
+
return res;
|
|
275
|
+
}
|
|
276
|
+
};
|
|
231
277
|
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
comment(refId, data) {
|
|
264
|
-
return this.proxy(refId).post({
|
|
265
|
-
data,
|
|
266
|
-
});
|
|
267
|
-
}
|
|
268
|
-
/**
|
|
269
|
-
* 回复评论
|
|
270
|
-
*/
|
|
271
|
-
reply(commentId, data) {
|
|
272
|
-
return this.proxy.reply(commentId).post({
|
|
273
|
-
data,
|
|
274
|
-
});
|
|
275
|
-
}
|
|
276
|
-
}
|
|
278
|
+
// controllers/comment.ts
|
|
279
|
+
var CommentController = class {
|
|
280
|
+
constructor(client) {
|
|
281
|
+
this.client = client;
|
|
282
|
+
this.base = "comments";
|
|
283
|
+
this.name = "comment";
|
|
284
|
+
autoBind(this);
|
|
285
|
+
}
|
|
286
|
+
get proxy() {
|
|
287
|
+
return this.client.proxy(this.base);
|
|
288
|
+
}
|
|
289
|
+
getById(id) {
|
|
290
|
+
return this.proxy(id).get();
|
|
291
|
+
}
|
|
292
|
+
getByRefId(refId, pagination = {}) {
|
|
293
|
+
const { page, size } = pagination;
|
|
294
|
+
return this.proxy.ref(refId).get({
|
|
295
|
+
params: { page: page || 1, size: size || 10 }
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
comment(refId, data) {
|
|
299
|
+
return this.proxy(refId).post({
|
|
300
|
+
data
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
reply(commentId, data) {
|
|
304
|
+
return this.proxy.reply(commentId).post({
|
|
305
|
+
data
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
};
|
|
277
309
|
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
params: { page, size: perPage, ...sortOption },
|
|
300
|
-
});
|
|
301
|
-
}
|
|
302
|
-
}
|
|
310
|
+
// controllers/base.ts
|
|
311
|
+
var BaseCrudController = class {
|
|
312
|
+
constructor(client) {
|
|
313
|
+
this.client = client;
|
|
314
|
+
autoBind(this);
|
|
315
|
+
}
|
|
316
|
+
get proxy() {
|
|
317
|
+
return this.client.proxy(this.base);
|
|
318
|
+
}
|
|
319
|
+
getById(id) {
|
|
320
|
+
return this.proxy(id).get();
|
|
321
|
+
}
|
|
322
|
+
getAll() {
|
|
323
|
+
return this.proxy.all.get();
|
|
324
|
+
}
|
|
325
|
+
getAllPaginated(page, perPage, sortOption) {
|
|
326
|
+
return this.proxy.get({
|
|
327
|
+
params: { page, size: perPage, ...sortOption }
|
|
328
|
+
});
|
|
329
|
+
}
|
|
330
|
+
};
|
|
303
331
|
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
}
|
|
332
|
+
// controllers/link.ts
|
|
333
|
+
var LinkController = class extends BaseCrudController {
|
|
334
|
+
constructor(client) {
|
|
335
|
+
super(client);
|
|
336
|
+
this.client = client;
|
|
337
|
+
this.name = ["link", "friend"];
|
|
338
|
+
this.base = "links";
|
|
339
|
+
autoBind(this);
|
|
340
|
+
}
|
|
341
|
+
async canApplyLink() {
|
|
342
|
+
const { can } = await this.proxy.audit.get();
|
|
343
|
+
return can;
|
|
344
|
+
}
|
|
345
|
+
async applyLink(data) {
|
|
346
|
+
return await this.proxy.audit.post({ data });
|
|
347
|
+
}
|
|
348
|
+
};
|
|
322
349
|
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
/**
|
|
375
|
-
* 喜欢这篇日记
|
|
376
|
-
*/
|
|
377
|
-
likeIt(id) {
|
|
378
|
-
return this.proxy.like(id).get();
|
|
379
|
-
}
|
|
380
|
-
/**
|
|
381
|
-
* 获取专栏内的所有日记
|
|
382
|
-
*/
|
|
383
|
-
getNoteByTopicId(topicId, page = 1, size = 10, sortOptions = {}) {
|
|
384
|
-
return this.proxy.topics(topicId).get({
|
|
385
|
-
params: { page, size, ...sortOptions },
|
|
386
|
-
});
|
|
387
|
-
}
|
|
388
|
-
}
|
|
350
|
+
// controllers/note.ts
|
|
351
|
+
var NoteController = class {
|
|
352
|
+
constructor(client) {
|
|
353
|
+
this.client = client;
|
|
354
|
+
this.base = "notes";
|
|
355
|
+
this.name = "note";
|
|
356
|
+
autoBind(this);
|
|
357
|
+
}
|
|
358
|
+
get proxy() {
|
|
359
|
+
return this.client.proxy(this.base);
|
|
360
|
+
}
|
|
361
|
+
getLatest() {
|
|
362
|
+
return this.proxy.latest.get();
|
|
363
|
+
}
|
|
364
|
+
getNoteById(...rest) {
|
|
365
|
+
const [id, password = void 0, singleResult = false] = rest;
|
|
366
|
+
if (typeof id === "number") {
|
|
367
|
+
return this.proxy.nid(id.toString()).get({
|
|
368
|
+
params: { password, single: singleResult ? "1" : void 0 }
|
|
369
|
+
});
|
|
370
|
+
} else {
|
|
371
|
+
return this.proxy(id).get();
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
getList(page = 1, perPage = 10, options = {}) {
|
|
375
|
+
const { select, sortBy, sortOrder, year } = options;
|
|
376
|
+
return this.proxy.get({
|
|
377
|
+
params: {
|
|
378
|
+
page,
|
|
379
|
+
size: perPage,
|
|
380
|
+
select: select?.join(" "),
|
|
381
|
+
sortBy,
|
|
382
|
+
sortOrder,
|
|
383
|
+
year
|
|
384
|
+
}
|
|
385
|
+
});
|
|
386
|
+
}
|
|
387
|
+
getMiddleList(id, size = 5) {
|
|
388
|
+
return this.proxy.list(id).get({
|
|
389
|
+
params: { size }
|
|
390
|
+
});
|
|
391
|
+
}
|
|
392
|
+
likeIt(id) {
|
|
393
|
+
return this.proxy.like(id).get();
|
|
394
|
+
}
|
|
395
|
+
getNoteByTopicId(topicId, page = 1, size = 10, sortOptions = {}) {
|
|
396
|
+
return this.proxy.topics(topicId).get({
|
|
397
|
+
params: { page, size, ...sortOptions }
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
};
|
|
389
401
|
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
}
|
|
421
|
-
/**
|
|
422
|
-
* 根据路径获取页面
|
|
423
|
-
* @param slug 路径
|
|
424
|
-
* @returns
|
|
425
|
-
*/
|
|
426
|
-
getBySlug(slug) {
|
|
427
|
-
return this.proxy.slug(slug).get({});
|
|
428
|
-
}
|
|
429
|
-
}
|
|
402
|
+
// controllers/page.ts
|
|
403
|
+
var PageController = class {
|
|
404
|
+
constructor(client) {
|
|
405
|
+
this.client = client;
|
|
406
|
+
this.base = "pages";
|
|
407
|
+
this.name = "page";
|
|
408
|
+
autoBind(this);
|
|
409
|
+
}
|
|
410
|
+
get proxy() {
|
|
411
|
+
return this.client.proxy(this.base);
|
|
412
|
+
}
|
|
413
|
+
getList(page = 1, perPage = 10, options = {}) {
|
|
414
|
+
const { select, sortBy, sortOrder } = options;
|
|
415
|
+
return this.proxy.get({
|
|
416
|
+
params: {
|
|
417
|
+
page,
|
|
418
|
+
size: perPage,
|
|
419
|
+
select: select?.join(" "),
|
|
420
|
+
sortBy,
|
|
421
|
+
sortOrder
|
|
422
|
+
}
|
|
423
|
+
});
|
|
424
|
+
}
|
|
425
|
+
getById(id) {
|
|
426
|
+
return this.proxy(id).get();
|
|
427
|
+
}
|
|
428
|
+
getBySlug(slug) {
|
|
429
|
+
return this.proxy.slug(slug).get({});
|
|
430
|
+
}
|
|
431
|
+
};
|
|
430
432
|
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
* 获取最新的文章
|
|
470
|
-
*/
|
|
471
|
-
getLatest() {
|
|
472
|
-
return this.proxy.latest.get();
|
|
473
|
-
}
|
|
474
|
-
/**
|
|
475
|
-
* 点赞
|
|
476
|
-
*/
|
|
477
|
-
thumbsUp(id) {
|
|
478
|
-
return this.proxy('_thumbs-up').get({ params: { id } });
|
|
479
|
-
}
|
|
480
|
-
}
|
|
433
|
+
// controllers/post.ts
|
|
434
|
+
var PostController = class {
|
|
435
|
+
constructor(client) {
|
|
436
|
+
this.client = client;
|
|
437
|
+
this.base = "posts";
|
|
438
|
+
this.name = "post";
|
|
439
|
+
autoBind(this);
|
|
440
|
+
}
|
|
441
|
+
get proxy() {
|
|
442
|
+
return this.client.proxy(this.base);
|
|
443
|
+
}
|
|
444
|
+
getList(page = 1, perPage = 10, options = {}) {
|
|
445
|
+
const { select, sortBy, sortOrder, year } = options;
|
|
446
|
+
return this.proxy.get({
|
|
447
|
+
params: {
|
|
448
|
+
page,
|
|
449
|
+
size: perPage,
|
|
450
|
+
select: select?.join(" "),
|
|
451
|
+
sortBy,
|
|
452
|
+
sortOrder,
|
|
453
|
+
year
|
|
454
|
+
}
|
|
455
|
+
});
|
|
456
|
+
}
|
|
457
|
+
getPost(idOrCategoryName, slug) {
|
|
458
|
+
if (arguments.length == 1) {
|
|
459
|
+
return this.proxy(idOrCategoryName).get();
|
|
460
|
+
} else {
|
|
461
|
+
return this.proxy(idOrCategoryName)(slug).get();
|
|
462
|
+
}
|
|
463
|
+
}
|
|
464
|
+
getLatest() {
|
|
465
|
+
return this.proxy.latest.get();
|
|
466
|
+
}
|
|
467
|
+
thumbsUp(id) {
|
|
468
|
+
return this.proxy("_thumbs-up").get({ params: { id } });
|
|
469
|
+
}
|
|
470
|
+
};
|
|
481
471
|
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
}
|
|
472
|
+
// controllers/project.ts
|
|
473
|
+
var ProjectController = class extends BaseCrudController {
|
|
474
|
+
constructor(client) {
|
|
475
|
+
super(client);
|
|
476
|
+
this.client = client;
|
|
477
|
+
this.base = "projects";
|
|
478
|
+
this.name = "project";
|
|
479
|
+
autoBind(this);
|
|
480
|
+
}
|
|
481
|
+
};
|
|
491
482
|
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
});
|
|
537
|
-
}
|
|
538
|
-
}
|
|
483
|
+
// controllers/recently.ts
|
|
484
|
+
var RecentlyAttitudeResultEnum = /* @__PURE__ */ ((RecentlyAttitudeResultEnum2) => {
|
|
485
|
+
RecentlyAttitudeResultEnum2[RecentlyAttitudeResultEnum2["Inc"] = 1] = "Inc";
|
|
486
|
+
RecentlyAttitudeResultEnum2[RecentlyAttitudeResultEnum2["Dec"] = -1] = "Dec";
|
|
487
|
+
return RecentlyAttitudeResultEnum2;
|
|
488
|
+
})(RecentlyAttitudeResultEnum || {});
|
|
489
|
+
var RecentlyAttitudeEnum = /* @__PURE__ */ ((RecentlyAttitudeEnum2) => {
|
|
490
|
+
RecentlyAttitudeEnum2[RecentlyAttitudeEnum2["Up"] = 0] = "Up";
|
|
491
|
+
RecentlyAttitudeEnum2[RecentlyAttitudeEnum2["Down"] = 1] = "Down";
|
|
492
|
+
return RecentlyAttitudeEnum2;
|
|
493
|
+
})(RecentlyAttitudeEnum || {});
|
|
494
|
+
var RecentlyController = class {
|
|
495
|
+
constructor(client) {
|
|
496
|
+
this.client = client;
|
|
497
|
+
this.base = "recently";
|
|
498
|
+
this.name = ["recently", "shorthand"];
|
|
499
|
+
autoBind(this);
|
|
500
|
+
}
|
|
501
|
+
get proxy() {
|
|
502
|
+
return this.client.proxy(this.base);
|
|
503
|
+
}
|
|
504
|
+
getLatestOne() {
|
|
505
|
+
return this.proxy.latest.get();
|
|
506
|
+
}
|
|
507
|
+
getAll() {
|
|
508
|
+
return this.proxy.all.get();
|
|
509
|
+
}
|
|
510
|
+
getList(before, after, size) {
|
|
511
|
+
return this.proxy.get({
|
|
512
|
+
params: {
|
|
513
|
+
before,
|
|
514
|
+
after,
|
|
515
|
+
size
|
|
516
|
+
}
|
|
517
|
+
});
|
|
518
|
+
}
|
|
519
|
+
attitude(id, attitude) {
|
|
520
|
+
return this.proxy.attitude(id).get({
|
|
521
|
+
params: {
|
|
522
|
+
attitude
|
|
523
|
+
}
|
|
524
|
+
});
|
|
525
|
+
}
|
|
526
|
+
};
|
|
539
527
|
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
}
|
|
557
|
-
}
|
|
528
|
+
// controllers/say.ts
|
|
529
|
+
var SayController = class extends BaseCrudController {
|
|
530
|
+
constructor(client) {
|
|
531
|
+
super(client);
|
|
532
|
+
this.client = client;
|
|
533
|
+
this.base = "says";
|
|
534
|
+
this.name = "say";
|
|
535
|
+
autoBind(this);
|
|
536
|
+
}
|
|
537
|
+
get proxy() {
|
|
538
|
+
return this.client.proxy(this.base);
|
|
539
|
+
}
|
|
540
|
+
getRandom() {
|
|
541
|
+
return this.proxy.random.get();
|
|
542
|
+
}
|
|
543
|
+
};
|
|
558
544
|
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
* @returns
|
|
580
|
-
*/
|
|
581
|
-
searchByAlgolia(keyword, options) {
|
|
582
|
-
return this.proxy('algolia').get({ params: { keyword, ...options } });
|
|
583
|
-
}
|
|
584
|
-
}
|
|
545
|
+
// controllers/search.ts
|
|
546
|
+
var SearchController = class {
|
|
547
|
+
constructor(client) {
|
|
548
|
+
this.client = client;
|
|
549
|
+
this.base = "search";
|
|
550
|
+
this.name = "search";
|
|
551
|
+
autoBind(this);
|
|
552
|
+
}
|
|
553
|
+
get proxy() {
|
|
554
|
+
return this.client.proxy(this.base);
|
|
555
|
+
}
|
|
556
|
+
search(type, keyword, options = {}) {
|
|
557
|
+
return this.proxy(type).get({
|
|
558
|
+
params: { keyword, ...options }
|
|
559
|
+
});
|
|
560
|
+
}
|
|
561
|
+
searchByAlgolia(keyword, options) {
|
|
562
|
+
return this.proxy("algolia").get({ params: { keyword, ...options } });
|
|
563
|
+
}
|
|
564
|
+
};
|
|
585
565
|
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
}
|
|
566
|
+
// controllers/severless.ts
|
|
567
|
+
var ServerlessController = class {
|
|
568
|
+
constructor(client) {
|
|
569
|
+
this.client = client;
|
|
570
|
+
this.base = "serverless";
|
|
571
|
+
this.name = "serverless";
|
|
572
|
+
autoBind(this);
|
|
573
|
+
}
|
|
574
|
+
get proxy() {
|
|
575
|
+
return this.client.proxy(this.base);
|
|
576
|
+
}
|
|
577
|
+
getByReferenceAndName(reference, name) {
|
|
578
|
+
return this.proxy(reference)(name).get();
|
|
579
|
+
}
|
|
580
|
+
};
|
|
600
581
|
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
}
|
|
617
|
-
}
|
|
582
|
+
// controllers/snippet.ts
|
|
583
|
+
var SnippetController = class {
|
|
584
|
+
constructor(client) {
|
|
585
|
+
this.client = client;
|
|
586
|
+
this.base = "snippets";
|
|
587
|
+
this.name = "snippet";
|
|
588
|
+
autoBind(this);
|
|
589
|
+
}
|
|
590
|
+
get proxy() {
|
|
591
|
+
return this.client.proxy(this.base);
|
|
592
|
+
}
|
|
593
|
+
getByReferenceAndName(reference, name) {
|
|
594
|
+
return this.proxy(reference)(name).get();
|
|
595
|
+
}
|
|
596
|
+
};
|
|
618
597
|
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
}
|
|
598
|
+
// controllers/topic.ts
|
|
599
|
+
var TopicController = class extends BaseCrudController {
|
|
600
|
+
constructor(client) {
|
|
601
|
+
super(client);
|
|
602
|
+
this.client = client;
|
|
603
|
+
this.base = "topics";
|
|
604
|
+
this.name = "topic";
|
|
605
|
+
autoBind(this);
|
|
606
|
+
}
|
|
607
|
+
get proxy() {
|
|
608
|
+
return this.client.proxy(this.base);
|
|
609
|
+
}
|
|
610
|
+
getTopicBySlug(slug) {
|
|
611
|
+
return this.proxy.slug(slug).get();
|
|
612
|
+
}
|
|
613
|
+
};
|
|
634
614
|
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
}
|
|
615
|
+
// controllers/user.ts
|
|
616
|
+
var UserController = class {
|
|
617
|
+
constructor(client) {
|
|
618
|
+
this.client = client;
|
|
619
|
+
this.base = "master";
|
|
620
|
+
this.name = ["user", "master"];
|
|
621
|
+
autoBind(this);
|
|
622
|
+
}
|
|
623
|
+
get proxy() {
|
|
624
|
+
return this.client.proxy(this.base);
|
|
625
|
+
}
|
|
626
|
+
getMasterInfo() {
|
|
627
|
+
return this.proxy.get();
|
|
628
|
+
}
|
|
629
|
+
login(username, password) {
|
|
630
|
+
return this.proxy.login.post({
|
|
631
|
+
data: {
|
|
632
|
+
username,
|
|
633
|
+
password
|
|
634
|
+
}
|
|
635
|
+
});
|
|
636
|
+
}
|
|
637
|
+
loginWithToken(token) {
|
|
638
|
+
return this.proxy.login.put({
|
|
639
|
+
params: token ? {
|
|
640
|
+
token: `bearer ${token.replace(/^Bearer\s/i, "")}`
|
|
641
|
+
} : void 0
|
|
642
|
+
});
|
|
643
|
+
}
|
|
644
|
+
checkTokenValid(token) {
|
|
645
|
+
return this.proxy.check_logged.get({
|
|
646
|
+
params: {
|
|
647
|
+
token: `bearer ${token.replace(/^Bearer\s/i, "")}`
|
|
648
|
+
}
|
|
649
|
+
});
|
|
650
|
+
}
|
|
651
|
+
};
|
|
673
652
|
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
653
|
+
// controllers/index.ts
|
|
654
|
+
var allControllers = [
|
|
655
|
+
AggregateController,
|
|
656
|
+
CategoryController,
|
|
657
|
+
CommentController,
|
|
658
|
+
LinkController,
|
|
659
|
+
NoteController,
|
|
660
|
+
PageController,
|
|
661
|
+
PostController,
|
|
662
|
+
ProjectController,
|
|
663
|
+
RecentlyController,
|
|
664
|
+
TopicController,
|
|
665
|
+
SayController,
|
|
666
|
+
SearchController,
|
|
667
|
+
SnippetController,
|
|
668
|
+
ServerlessController,
|
|
669
|
+
UserController
|
|
690
670
|
];
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
'shorthand',
|
|
671
|
+
var allContollerNames = [
|
|
672
|
+
"aggregate",
|
|
673
|
+
"category",
|
|
674
|
+
"comment",
|
|
675
|
+
"link",
|
|
676
|
+
"note",
|
|
677
|
+
"page",
|
|
678
|
+
"post",
|
|
679
|
+
"project",
|
|
680
|
+
"topic",
|
|
681
|
+
"recently",
|
|
682
|
+
"say",
|
|
683
|
+
"search",
|
|
684
|
+
"snippet",
|
|
685
|
+
"serverless",
|
|
686
|
+
"user",
|
|
687
|
+
"friend",
|
|
688
|
+
"master",
|
|
689
|
+
"shorthand"
|
|
711
690
|
];
|
|
712
691
|
|
|
692
|
+
// core/attach-request.ts
|
|
713
693
|
function attachRequestMethod(target) {
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
},
|
|
727
|
-
});
|
|
694
|
+
Object.defineProperty(target, "$$get", {
|
|
695
|
+
value(url, options) {
|
|
696
|
+
const { params = {}, ...rest } = options;
|
|
697
|
+
const qs = handleSearchParams(params);
|
|
698
|
+
return target.instance.get(`${url}${qs ? `${`?${qs}`}` : ""}`, rest);
|
|
699
|
+
}
|
|
700
|
+
});
|
|
701
|
+
["put", "post", "patch", "delete"].forEach((method) => {
|
|
702
|
+
Object.defineProperty(target, `$$${method}`, {
|
|
703
|
+
value(path, options) {
|
|
704
|
+
return target.instance[method](path, options);
|
|
705
|
+
}
|
|
728
706
|
});
|
|
707
|
+
});
|
|
729
708
|
}
|
|
730
|
-
// FIXME: only support string value
|
|
731
709
|
function handleSearchParams(obj) {
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
return search.toString();
|
|
710
|
+
if (!obj && typeof obj !== "object") {
|
|
711
|
+
throw new TypeError("params must be object.");
|
|
712
|
+
}
|
|
713
|
+
if (obj instanceof URLSearchParams) {
|
|
714
|
+
return obj.toString();
|
|
715
|
+
}
|
|
716
|
+
const search = new URLSearchParams();
|
|
717
|
+
Object.entries(obj).forEach(([k, v]) => {
|
|
718
|
+
if (typeof v === "undefined" || Object.prototype.toString.call(v) === "[object Null]") {
|
|
719
|
+
return;
|
|
720
|
+
}
|
|
721
|
+
search.set(k, v);
|
|
722
|
+
});
|
|
723
|
+
return search.toString();
|
|
747
724
|
}
|
|
748
725
|
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
726
|
+
// core/client.ts
|
|
727
|
+
var methodPrefix = "_$";
|
|
728
|
+
var HTTPClient = class {
|
|
729
|
+
constructor(_endpoint, _adaptor, options = {}) {
|
|
730
|
+
this._endpoint = _endpoint;
|
|
731
|
+
this._adaptor = _adaptor;
|
|
732
|
+
this.options = options;
|
|
733
|
+
this._endpoint = _endpoint.replace(/\/*$/, "").replace("localhost", "127.0.0.1");
|
|
734
|
+
this._proxy = this.buildRoute(this)();
|
|
735
|
+
options.transformResponse = options.transformResponse || ((data) => camelcaseKeys(data));
|
|
736
|
+
this.initGetClient();
|
|
737
|
+
attachRequestMethod(this);
|
|
738
|
+
}
|
|
739
|
+
initGetClient() {
|
|
740
|
+
for (const name of allContollerNames) {
|
|
741
|
+
Object.defineProperty(this, name, {
|
|
742
|
+
get() {
|
|
743
|
+
const client = Reflect.get(this, `${methodPrefix}${name}`);
|
|
744
|
+
if (!client) {
|
|
745
|
+
throw new ReferenceError(
|
|
746
|
+
`${name.charAt(0).toUpperCase() + name.slice(1)} Client not inject yet, please inject with client.injectClients(...)`
|
|
747
|
+
);
|
|
748
|
+
}
|
|
749
|
+
return client;
|
|
750
|
+
},
|
|
751
|
+
configurable: false,
|
|
752
|
+
enumerable: false
|
|
753
|
+
});
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
injectControllers(Controller, ...rest) {
|
|
757
|
+
Controller = Array.isArray(Controller) ? Controller : [Controller, ...rest];
|
|
758
|
+
for (const Client of Controller) {
|
|
759
|
+
const cl = new Client(this);
|
|
760
|
+
if (Array.isArray(cl.name)) {
|
|
761
|
+
for (const name of cl.name) {
|
|
762
|
+
attach.call(this, name, cl);
|
|
777
763
|
}
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
764
|
+
} else {
|
|
765
|
+
attach.call(this, cl.name, cl);
|
|
766
|
+
}
|
|
767
|
+
}
|
|
768
|
+
function attach(name, cl) {
|
|
769
|
+
Object.defineProperty(this, `${methodPrefix}${name.toLowerCase()}`, {
|
|
770
|
+
get() {
|
|
771
|
+
return cl;
|
|
772
|
+
},
|
|
773
|
+
enumerable: false,
|
|
774
|
+
configurable: false
|
|
775
|
+
});
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
get endpoint() {
|
|
779
|
+
return this._endpoint;
|
|
780
|
+
}
|
|
781
|
+
get instance() {
|
|
782
|
+
return this._adaptor;
|
|
783
|
+
}
|
|
784
|
+
request(options) {
|
|
785
|
+
return this[`$$${String(options.method || "get").toLowerCase()}`](
|
|
786
|
+
options.url,
|
|
787
|
+
options
|
|
788
|
+
);
|
|
789
|
+
}
|
|
790
|
+
get proxy() {
|
|
791
|
+
return this._proxy;
|
|
792
|
+
}
|
|
793
|
+
buildRoute(manager) {
|
|
794
|
+
const noop = () => {
|
|
795
|
+
};
|
|
796
|
+
const methods = ["get", "post", "delete", "patch", "put"];
|
|
797
|
+
const reflectors = [
|
|
798
|
+
"toString",
|
|
799
|
+
"valueOf",
|
|
800
|
+
"inspect",
|
|
801
|
+
"constructor",
|
|
802
|
+
Symbol.toPrimitive
|
|
803
|
+
];
|
|
804
|
+
const that = this;
|
|
805
|
+
return () => {
|
|
806
|
+
const route = [""];
|
|
807
|
+
const handler = {
|
|
808
|
+
get(target, name) {
|
|
809
|
+
if (reflectors.includes(name))
|
|
810
|
+
return (withBase) => {
|
|
811
|
+
if (withBase) {
|
|
812
|
+
const path = resolveFullPath(that.endpoint, route.join("/"));
|
|
813
|
+
route.length = 0;
|
|
814
|
+
return path;
|
|
815
|
+
} else {
|
|
816
|
+
const path = route.join("/");
|
|
817
|
+
route.length = 0;
|
|
818
|
+
return path.startsWith("/") ? path : `/${path}`;
|
|
819
|
+
}
|
|
820
|
+
};
|
|
821
|
+
if (methods.includes(name)) {
|
|
822
|
+
return async (options) => {
|
|
823
|
+
const url = resolveFullPath(that.endpoint, route.join("/"));
|
|
824
|
+
route.length = 0;
|
|
825
|
+
let res;
|
|
826
|
+
try {
|
|
827
|
+
res = await manager.request({
|
|
828
|
+
method: name,
|
|
829
|
+
...options,
|
|
830
|
+
url
|
|
831
|
+
});
|
|
832
|
+
} catch (e) {
|
|
833
|
+
let message = e.message;
|
|
834
|
+
let code = e.code || e.status || e.statusCode || e.response?.status || e.response?.statusCode || e.response?.code || 500;
|
|
835
|
+
if (that.options.getCodeMessageFromException) {
|
|
836
|
+
const errorInfo = that.options.getCodeMessageFromException(e);
|
|
837
|
+
message = errorInfo.message || message;
|
|
838
|
+
code = errorInfo.code || code;
|
|
786
839
|
}
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
buildRoute(manager) {
|
|
815
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
816
|
-
const noop = () => { };
|
|
817
|
-
const methods = ['get', 'post', 'delete', 'patch', 'put'];
|
|
818
|
-
const reflectors = [
|
|
819
|
-
'toString',
|
|
820
|
-
'valueOf',
|
|
821
|
-
'inspect',
|
|
822
|
-
'constructor',
|
|
823
|
-
Symbol.toPrimitive,
|
|
824
|
-
];
|
|
825
|
-
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
826
|
-
const that = this;
|
|
827
|
-
return () => {
|
|
828
|
-
const route = [''];
|
|
829
|
-
const handler = {
|
|
830
|
-
get(target, name) {
|
|
831
|
-
if (reflectors.includes(name))
|
|
832
|
-
return (withBase) => {
|
|
833
|
-
if (withBase) {
|
|
834
|
-
const path = resolveFullPath(that.endpoint, route.join('/'));
|
|
835
|
-
route.length = 0;
|
|
836
|
-
return path;
|
|
837
|
-
}
|
|
838
|
-
else {
|
|
839
|
-
const path = route.join('/');
|
|
840
|
-
route.length = 0;
|
|
841
|
-
return path.startsWith('/') ? path : `/${path}`;
|
|
842
|
-
}
|
|
843
|
-
};
|
|
844
|
-
if (methods.includes(name)) {
|
|
845
|
-
return async (options) => {
|
|
846
|
-
const url = resolveFullPath(that.endpoint, route.join('/'));
|
|
847
|
-
route.length = 0;
|
|
848
|
-
let res;
|
|
849
|
-
try {
|
|
850
|
-
res = await manager.request({
|
|
851
|
-
method: name,
|
|
852
|
-
...options,
|
|
853
|
-
url,
|
|
854
|
-
});
|
|
855
|
-
}
|
|
856
|
-
catch (e) {
|
|
857
|
-
let message = e.message;
|
|
858
|
-
let code = e.code ||
|
|
859
|
-
e.status ||
|
|
860
|
-
e.statusCode ||
|
|
861
|
-
e.response?.status ||
|
|
862
|
-
e.response?.statusCode ||
|
|
863
|
-
e.response?.code ||
|
|
864
|
-
500;
|
|
865
|
-
if (that.options.getCodeMessageFromException) {
|
|
866
|
-
const errorInfo = that.options.getCodeMessageFromException(e);
|
|
867
|
-
message = errorInfo.message || message;
|
|
868
|
-
code = errorInfo.code || code;
|
|
869
|
-
}
|
|
870
|
-
throw that.options.customThrowResponseError
|
|
871
|
-
? that.options.customThrowResponseError(e)
|
|
872
|
-
: new RequestError(message, code, url, e);
|
|
873
|
-
}
|
|
874
|
-
const data = res.data;
|
|
875
|
-
if (!data) {
|
|
876
|
-
return null;
|
|
877
|
-
}
|
|
878
|
-
const transform = (Array.isArray(data) || isPlainObject(data)) &&
|
|
879
|
-
that.options.transformResponse
|
|
880
|
-
? that.options.transformResponse(data)
|
|
881
|
-
: data;
|
|
882
|
-
if (transform && typeof transform === 'object') {
|
|
883
|
-
Object.defineProperty(transform, '$raw', {
|
|
884
|
-
get() {
|
|
885
|
-
return res;
|
|
886
|
-
},
|
|
887
|
-
enumerable: false,
|
|
888
|
-
configurable: false,
|
|
889
|
-
});
|
|
890
|
-
// attach request config onto response
|
|
891
|
-
Object.defineProperty(transform, '$request', {
|
|
892
|
-
get() {
|
|
893
|
-
return {
|
|
894
|
-
url,
|
|
895
|
-
method: name,
|
|
896
|
-
options,
|
|
897
|
-
};
|
|
898
|
-
},
|
|
899
|
-
enumerable: false,
|
|
900
|
-
});
|
|
901
|
-
}
|
|
902
|
-
return transform;
|
|
903
|
-
};
|
|
904
|
-
}
|
|
905
|
-
route.push(name);
|
|
906
|
-
return new Proxy(noop, handler);
|
|
907
|
-
},
|
|
908
|
-
// @ts-ignore
|
|
909
|
-
apply(target, _, args) {
|
|
910
|
-
route.push(...args.filter((x) => x !== null));
|
|
911
|
-
return new Proxy(noop, handler);
|
|
912
|
-
},
|
|
840
|
+
throw that.options.customThrowResponseError ? that.options.customThrowResponseError(e) : new RequestError(message, code, url, e);
|
|
841
|
+
}
|
|
842
|
+
const data = res.data;
|
|
843
|
+
if (!data) {
|
|
844
|
+
return null;
|
|
845
|
+
}
|
|
846
|
+
const transform = (Array.isArray(data) || isPlainObject(data)) && that.options.transformResponse ? that.options.transformResponse(data) : data;
|
|
847
|
+
if (transform && typeof transform === "object") {
|
|
848
|
+
Object.defineProperty(transform, "$raw", {
|
|
849
|
+
get() {
|
|
850
|
+
return res;
|
|
851
|
+
},
|
|
852
|
+
enumerable: false,
|
|
853
|
+
configurable: false
|
|
854
|
+
});
|
|
855
|
+
Object.defineProperty(transform, "$request", {
|
|
856
|
+
get() {
|
|
857
|
+
return {
|
|
858
|
+
url,
|
|
859
|
+
method: name,
|
|
860
|
+
options
|
|
861
|
+
};
|
|
862
|
+
},
|
|
863
|
+
enumerable: false
|
|
864
|
+
});
|
|
865
|
+
}
|
|
866
|
+
return transform;
|
|
913
867
|
};
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
}
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
const { controllers } = options || {};
|
|
922
|
-
if (controllers) {
|
|
923
|
-
client.injectControllers(controllers);
|
|
868
|
+
}
|
|
869
|
+
route.push(name);
|
|
870
|
+
return new Proxy(noop, handler);
|
|
871
|
+
},
|
|
872
|
+
apply(target, _, args) {
|
|
873
|
+
route.push(...args.filter((x) => x !== null));
|
|
874
|
+
return new Proxy(noop, handler);
|
|
924
875
|
}
|
|
925
|
-
|
|
876
|
+
};
|
|
877
|
+
return new Proxy(noop, handler);
|
|
926
878
|
};
|
|
879
|
+
}
|
|
880
|
+
};
|
|
881
|
+
function createClient(adapter) {
|
|
882
|
+
return (endpoint, options) => {
|
|
883
|
+
const client = new HTTPClient(
|
|
884
|
+
endpoint,
|
|
885
|
+
adapter,
|
|
886
|
+
options
|
|
887
|
+
);
|
|
888
|
+
const { controllers } = options || {};
|
|
889
|
+
if (controllers) {
|
|
890
|
+
client.injectControllers(controllers);
|
|
891
|
+
}
|
|
892
|
+
return client;
|
|
893
|
+
};
|
|
927
894
|
}
|
|
928
895
|
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
(
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
(
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
exports
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
896
|
+
// models/aggregate.ts
|
|
897
|
+
var TimelineType = /* @__PURE__ */ ((TimelineType2) => {
|
|
898
|
+
TimelineType2[TimelineType2["Post"] = 0] = "Post";
|
|
899
|
+
TimelineType2[TimelineType2["Note"] = 1] = "Note";
|
|
900
|
+
return TimelineType2;
|
|
901
|
+
})(TimelineType || {});
|
|
902
|
+
|
|
903
|
+
// models/comment.ts
|
|
904
|
+
var RefType = /* @__PURE__ */ ((RefType2) => {
|
|
905
|
+
RefType2["Page"] = "Page";
|
|
906
|
+
RefType2["Post"] = "Post";
|
|
907
|
+
RefType2["Note"] = "Note";
|
|
908
|
+
return RefType2;
|
|
909
|
+
})(RefType || {});
|
|
910
|
+
var CommentState = /* @__PURE__ */ ((CommentState2) => {
|
|
911
|
+
CommentState2[CommentState2["Unread"] = 0] = "Unread";
|
|
912
|
+
CommentState2[CommentState2["Read"] = 1] = "Read";
|
|
913
|
+
CommentState2[CommentState2["Junk"] = 2] = "Junk";
|
|
914
|
+
return CommentState2;
|
|
915
|
+
})(CommentState || {});
|
|
916
|
+
|
|
917
|
+
// models/link.ts
|
|
918
|
+
var LinkType = /* @__PURE__ */ ((LinkType2) => {
|
|
919
|
+
LinkType2[LinkType2["Friend"] = 0] = "Friend";
|
|
920
|
+
LinkType2[LinkType2["Collection"] = 1] = "Collection";
|
|
921
|
+
return LinkType2;
|
|
922
|
+
})(LinkType || {});
|
|
923
|
+
var LinkState = /* @__PURE__ */ ((LinkState2) => {
|
|
924
|
+
LinkState2[LinkState2["Pass"] = 0] = "Pass";
|
|
925
|
+
LinkState2[LinkState2["Audit"] = 1] = "Audit";
|
|
926
|
+
LinkState2[LinkState2["Outdate"] = 2] = "Outdate";
|
|
927
|
+
LinkState2[LinkState2["Banned"] = 3] = "Banned";
|
|
928
|
+
LinkState2[LinkState2["Reject"] = 4] = "Reject";
|
|
929
|
+
return LinkState2;
|
|
930
|
+
})(LinkState || {});
|
|
931
|
+
|
|
932
|
+
// models/page.ts
|
|
933
|
+
var EnumPageType = /* @__PURE__ */ ((EnumPageType2) => {
|
|
934
|
+
EnumPageType2["md"] = "md";
|
|
935
|
+
EnumPageType2["html"] = "html";
|
|
936
|
+
EnumPageType2["frame"] = "frame";
|
|
937
|
+
return EnumPageType2;
|
|
938
|
+
})(EnumPageType || {});
|
|
939
|
+
|
|
940
|
+
// models/recently.ts
|
|
941
|
+
var RecentlyRefTypes = /* @__PURE__ */ ((RecentlyRefTypes2) => {
|
|
942
|
+
RecentlyRefTypes2["Post"] = "Post";
|
|
943
|
+
RecentlyRefTypes2["Note"] = "Note";
|
|
944
|
+
RecentlyRefTypes2["Page"] = "Page";
|
|
945
|
+
return RecentlyRefTypes2;
|
|
946
|
+
})(RecentlyRefTypes || {});
|
|
947
|
+
|
|
948
|
+
// models/snippet.ts
|
|
949
|
+
var SnippetType = /* @__PURE__ */ ((SnippetType2) => {
|
|
950
|
+
SnippetType2["JSON"] = "json";
|
|
951
|
+
SnippetType2["Function"] = "function";
|
|
952
|
+
SnippetType2["Text"] = "text";
|
|
953
|
+
SnippetType2["YAML"] = "yaml";
|
|
954
|
+
return SnippetType2;
|
|
955
|
+
})(SnippetType || {});
|
|
956
|
+
|
|
957
|
+
// dtos/comment.ts
|
|
958
|
+
var CommentDto = class {
|
|
959
|
+
};
|
|
960
|
+
|
|
961
|
+
// index.ts
|
|
962
|
+
var api_client_default = createClient;
|
|
963
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
964
|
+
0 && (module.exports = {
|
|
965
|
+
AggregateController,
|
|
966
|
+
CategoryController,
|
|
967
|
+
CategoryType,
|
|
968
|
+
CommentController,
|
|
969
|
+
CommentDto,
|
|
970
|
+
CommentState,
|
|
971
|
+
EnumPageType,
|
|
972
|
+
LinkController,
|
|
973
|
+
LinkState,
|
|
974
|
+
LinkType,
|
|
975
|
+
NoteController,
|
|
976
|
+
PageController,
|
|
977
|
+
PostController,
|
|
978
|
+
ProjectController,
|
|
979
|
+
RecentlyAttitudeEnum,
|
|
980
|
+
RecentlyAttitudeResultEnum,
|
|
981
|
+
RecentlyController,
|
|
982
|
+
RecentlyRefTypes,
|
|
983
|
+
RefType,
|
|
984
|
+
RequestError,
|
|
985
|
+
SayController,
|
|
986
|
+
SearchController,
|
|
987
|
+
ServerlessController,
|
|
988
|
+
SnippetController,
|
|
989
|
+
SnippetType,
|
|
990
|
+
TimelineType,
|
|
991
|
+
TopicController,
|
|
992
|
+
UserController,
|
|
993
|
+
allContollerNames,
|
|
994
|
+
allControllers,
|
|
995
|
+
createClient,
|
|
996
|
+
simpleCamelcaseKeys
|
|
997
|
+
});
|