@mx-space/api-client 3.7.0 → 3.7.1
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/LICENSE +33 -0
- package/dist/index.d.cts +12 -12
- package/dist/index.d.mts +12 -12
- package/package.json +9 -9
package/LICENSE
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
** Mix Space Open Source License**
|
|
2
|
+
|
|
3
|
+
This project is dual-licensed under different terms for different parts of the project. It is important for users and contributors to understand the licensing terms applicable to each part of the project.
|
|
4
|
+
|
|
5
|
+
### For the `apps/` Directory
|
|
6
|
+
|
|
7
|
+
**License:** GNU Affero General Public License v3.0 (AGPLv3) with Additional Terms (ADDITIONAL_TERMS).
|
|
8
|
+
|
|
9
|
+
**Scope:** This license applies exclusively to all files within the `apps/` directory of this project.
|
|
10
|
+
|
|
11
|
+
**Summary:**
|
|
12
|
+
- The AGPLv3 is a free, copyleft license suitable for software that will be distributed over a network. It allows users to use, modify, and distribute the software and any modifications under the same terms.
|
|
13
|
+
- The "Additional Terms" (ADDITIONAL_TERMS) are specific conditions that are added to the AGPLv3 license. These terms must be reviewed in the accompanying LICENSE file or documentation to understand any additional restrictions or permissions that apply to the software.
|
|
14
|
+
|
|
15
|
+
### For Other Parts of the Project
|
|
16
|
+
|
|
17
|
+
**License:** MIT License.
|
|
18
|
+
|
|
19
|
+
**Scope:** This license applies to all parts of the project that are not included within the `apps/` directory.
|
|
20
|
+
|
|
21
|
+
**Summary:**
|
|
22
|
+
- The MIT License is a permissive open-source license that allows users considerable freedom. It permits use, copying, modification, merging, publishing, distribution, sublicensing, and/or selling copies of the software.
|
|
23
|
+
- It also protects the authors by including a limitation of liability and a disclaimer of warranty.
|
|
24
|
+
|
|
25
|
+
**General Conditions:**
|
|
26
|
+
- Redistribution and use in source and binary forms, with or without modification, are permitted provided that the above license notices and this permission notice appear in all copies of the software.
|
|
27
|
+
- The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose, and noninfringement.
|
|
28
|
+
|
|
29
|
+
**Contribution:**
|
|
30
|
+
- Contributions to this project are accepted under the terms of the same license as the part of the project to which the contribution is made.
|
|
31
|
+
|
|
32
|
+
**Notice:**
|
|
33
|
+
- This summary is not the license itself and is not a substitute for reading the licenses in their entirety. All users and contributors are encouraged to read the full text of the licenses for a comprehensive understanding.
|
package/dist/index.d.cts
CHANGED
|
@@ -2615,35 +2615,35 @@ declare class SearchController<ResponseWrapper> implements IController {
|
|
|
2615
2615
|
search(type: 'note', keyword: string, options?: SearchOption): Promise<RequestProxyResult<PaginateResult<Pick<NoteModel, 'modified' | 'id' | 'title' | 'created' | 'nid'> & SearchResultHighlight>, ResponseWrapper>>;
|
|
2616
2616
|
search(type: 'post', keyword: string, options?: SearchOption): Promise<RequestProxyResult<PaginateResult<Pick<PostModel, 'modified' | 'id' | 'title' | 'created' | 'slug' | 'category'> & SearchResultHighlight>, ResponseWrapper>>;
|
|
2617
2617
|
search(type: 'page', keyword: string, options?: SearchOption): Promise<RequestProxyResult<PaginateResult<Pick<PageModel, 'modified' | 'id' | 'title' | 'created' | 'slug'> & SearchResultHighlight>, ResponseWrapper>>;
|
|
2618
|
-
searchAll(keyword: string, options?: SearchOption): RequestProxyResult<RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "
|
|
2618
|
+
searchAll(keyword: string, options?: SearchOption): RequestProxyResult<RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
|
|
2619
2619
|
type: "post";
|
|
2620
|
-
}) | (Pick<NoteModel, "id" | "
|
|
2620
|
+
}) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & SearchResultHighlight & {
|
|
2621
2621
|
type: "note";
|
|
2622
|
-
}) | (Pick<PageModel, "id" | "
|
|
2622
|
+
}) | (Pick<PageModel, "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
|
|
2623
2623
|
type: "page";
|
|
2624
2624
|
})>, ResponseWrapper>, ResponseWrapper, ResponseWrapper extends unknown ? {
|
|
2625
2625
|
[key: string]: any;
|
|
2626
|
-
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "
|
|
2626
|
+
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
|
|
2627
2627
|
type: "post";
|
|
2628
|
-
}) | (Pick<NoteModel, "id" | "
|
|
2628
|
+
}) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & SearchResultHighlight & {
|
|
2629
2629
|
type: "note";
|
|
2630
|
-
}) | (Pick<PageModel, "id" | "
|
|
2630
|
+
}) | (Pick<PageModel, "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
|
|
2631
2631
|
type: "page";
|
|
2632
2632
|
})>, ResponseWrapper>;
|
|
2633
2633
|
} : ResponseWrapper extends {
|
|
2634
|
-
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "
|
|
2634
|
+
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
|
|
2635
2635
|
type: "post";
|
|
2636
|
-
}) | (Pick<NoteModel, "id" | "
|
|
2636
|
+
}) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & SearchResultHighlight & {
|
|
2637
2637
|
type: "note";
|
|
2638
|
-
}) | (Pick<PageModel, "id" | "
|
|
2638
|
+
}) | (Pick<PageModel, "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
|
|
2639
2639
|
type: "page";
|
|
2640
2640
|
})>, ResponseWrapper>;
|
|
2641
2641
|
} ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
|
|
2642
|
-
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "
|
|
2642
|
+
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
|
|
2643
2643
|
type: "post";
|
|
2644
|
-
}) | (Pick<NoteModel, "id" | "
|
|
2644
|
+
}) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & SearchResultHighlight & {
|
|
2645
2645
|
type: "note";
|
|
2646
|
-
}) | (Pick<PageModel, "id" | "
|
|
2646
|
+
}) | (Pick<PageModel, "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
|
|
2647
2647
|
type: "page";
|
|
2648
2648
|
})>, ResponseWrapper>;
|
|
2649
2649
|
}>;
|
package/dist/index.d.mts
CHANGED
|
@@ -2615,35 +2615,35 @@ declare class SearchController<ResponseWrapper> implements IController {
|
|
|
2615
2615
|
search(type: 'note', keyword: string, options?: SearchOption): Promise<RequestProxyResult<PaginateResult<Pick<NoteModel, 'modified' | 'id' | 'title' | 'created' | 'nid'> & SearchResultHighlight>, ResponseWrapper>>;
|
|
2616
2616
|
search(type: 'post', keyword: string, options?: SearchOption): Promise<RequestProxyResult<PaginateResult<Pick<PostModel, 'modified' | 'id' | 'title' | 'created' | 'slug' | 'category'> & SearchResultHighlight>, ResponseWrapper>>;
|
|
2617
2617
|
search(type: 'page', keyword: string, options?: SearchOption): Promise<RequestProxyResult<PaginateResult<Pick<PageModel, 'modified' | 'id' | 'title' | 'created' | 'slug'> & SearchResultHighlight>, ResponseWrapper>>;
|
|
2618
|
-
searchAll(keyword: string, options?: SearchOption): RequestProxyResult<RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "
|
|
2618
|
+
searchAll(keyword: string, options?: SearchOption): RequestProxyResult<RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
|
|
2619
2619
|
type: "post";
|
|
2620
|
-
}) | (Pick<NoteModel, "id" | "
|
|
2620
|
+
}) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & SearchResultHighlight & {
|
|
2621
2621
|
type: "note";
|
|
2622
|
-
}) | (Pick<PageModel, "id" | "
|
|
2622
|
+
}) | (Pick<PageModel, "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
|
|
2623
2623
|
type: "page";
|
|
2624
2624
|
})>, ResponseWrapper>, ResponseWrapper, ResponseWrapper extends unknown ? {
|
|
2625
2625
|
[key: string]: any;
|
|
2626
|
-
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "
|
|
2626
|
+
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
|
|
2627
2627
|
type: "post";
|
|
2628
|
-
}) | (Pick<NoteModel, "id" | "
|
|
2628
|
+
}) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & SearchResultHighlight & {
|
|
2629
2629
|
type: "note";
|
|
2630
|
-
}) | (Pick<PageModel, "id" | "
|
|
2630
|
+
}) | (Pick<PageModel, "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
|
|
2631
2631
|
type: "page";
|
|
2632
2632
|
})>, ResponseWrapper>;
|
|
2633
2633
|
} : ResponseWrapper extends {
|
|
2634
|
-
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "
|
|
2634
|
+
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
|
|
2635
2635
|
type: "post";
|
|
2636
|
-
}) | (Pick<NoteModel, "id" | "
|
|
2636
|
+
}) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & SearchResultHighlight & {
|
|
2637
2637
|
type: "note";
|
|
2638
|
-
}) | (Pick<PageModel, "id" | "
|
|
2638
|
+
}) | (Pick<PageModel, "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
|
|
2639
2639
|
type: "page";
|
|
2640
2640
|
})>, ResponseWrapper>;
|
|
2641
2641
|
} ? ResponseWrapper : Omit<ResponseWrapper, "data"> & {
|
|
2642
|
-
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "
|
|
2642
|
+
data: RequestProxyResult<PaginateResult<(Pick<PostModel, "category" | "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
|
|
2643
2643
|
type: "post";
|
|
2644
|
-
}) | (Pick<NoteModel, "id" | "
|
|
2644
|
+
}) | (Pick<NoteModel, "id" | "title" | "modified" | "created" | "nid"> & SearchResultHighlight & {
|
|
2645
2645
|
type: "note";
|
|
2646
|
-
}) | (Pick<PageModel, "id" | "
|
|
2646
|
+
}) | (Pick<PageModel, "id" | "title" | "slug" | "modified" | "created"> & SearchResultHighlight & {
|
|
2647
2647
|
type: "page";
|
|
2648
2648
|
})>, ResponseWrapper>;
|
|
2649
2649
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mx-space/api-client",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.1",
|
|
4
4
|
"description": "A api client for mx-space server@next",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -42,13 +42,6 @@
|
|
|
42
42
|
"tag": false,
|
|
43
43
|
"commit_message": "chore(release): bump @mx-space/api-client to v${NEW_VERSION}"
|
|
44
44
|
},
|
|
45
|
-
"scripts": {
|
|
46
|
-
"package": "rm -rf dist && tsdown",
|
|
47
|
-
"build": "npm run package",
|
|
48
|
-
"prepackage": "rm -rf dist",
|
|
49
|
-
"test": "vitest",
|
|
50
|
-
"dev": "vitest"
|
|
51
|
-
},
|
|
52
45
|
"devDependencies": {
|
|
53
46
|
"@types/cors": "2.8.19",
|
|
54
47
|
"@types/express": "5.0.6",
|
|
@@ -63,5 +56,12 @@
|
|
|
63
56
|
"umi-request": "1.4.0",
|
|
64
57
|
"vite": "^8.0.10",
|
|
65
58
|
"vitest": "4.1.5"
|
|
59
|
+
},
|
|
60
|
+
"scripts": {
|
|
61
|
+
"package": "rm -rf dist && tsdown",
|
|
62
|
+
"build": "npm run package",
|
|
63
|
+
"prepackage": "rm -rf dist",
|
|
64
|
+
"test": "vitest",
|
|
65
|
+
"dev": "vitest"
|
|
66
66
|
}
|
|
67
|
-
}
|
|
67
|
+
}
|