@mx-space/api-client 1.7.1 → 1.7.2
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/index.cjs +15 -0
- package/dist/index.global.js +13 -0
- package/dist/index.js +14 -0
- package/models/comment.ts +2 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -25,6 +25,7 @@ __export(api_client_exports, {
|
|
|
25
25
|
AggregateController: () => AggregateController,
|
|
26
26
|
CategoryController: () => CategoryController,
|
|
27
27
|
CategoryType: () => CategoryType,
|
|
28
|
+
CollectionRefTypes: () => CollectionRefTypes,
|
|
28
29
|
CommentController: () => CommentController,
|
|
29
30
|
CommentState: () => CommentState,
|
|
30
31
|
EnumPageType: () => EnumPageType,
|
|
@@ -1079,6 +1080,19 @@ var TimelineType = /* @__PURE__ */ ((TimelineType2) => {
|
|
|
1079
1080
|
return TimelineType2;
|
|
1080
1081
|
})(TimelineType || {});
|
|
1081
1082
|
|
|
1083
|
+
// ../../apps/core/src/constants/db.constant.ts
|
|
1084
|
+
var POST_COLLECTION_NAME = "posts";
|
|
1085
|
+
var NOTE_COLLECTION_NAME = "notes";
|
|
1086
|
+
var PAGE_COLLECTION_NAME = "pages";
|
|
1087
|
+
var RECENTLY_COLLECTION_NAME = "recentlies";
|
|
1088
|
+
var CollectionRefTypes = /* @__PURE__ */ ((CollectionRefTypes2) => {
|
|
1089
|
+
CollectionRefTypes2[CollectionRefTypes2["Post"] = POST_COLLECTION_NAME] = "Post";
|
|
1090
|
+
CollectionRefTypes2[CollectionRefTypes2["Note"] = NOTE_COLLECTION_NAME] = "Note";
|
|
1091
|
+
CollectionRefTypes2[CollectionRefTypes2["Page"] = PAGE_COLLECTION_NAME] = "Page";
|
|
1092
|
+
CollectionRefTypes2[CollectionRefTypes2["Recently"] = RECENTLY_COLLECTION_NAME] = "Recently";
|
|
1093
|
+
return CollectionRefTypes2;
|
|
1094
|
+
})(CollectionRefTypes || {});
|
|
1095
|
+
|
|
1082
1096
|
// models/comment.ts
|
|
1083
1097
|
var CommentState = /* @__PURE__ */ ((CommentState2) => {
|
|
1084
1098
|
CommentState2[CommentState2["Unread"] = 0] = "Unread";
|
|
@@ -1150,6 +1164,7 @@ var api_client_default = createClient;
|
|
|
1150
1164
|
AggregateController,
|
|
1151
1165
|
CategoryController,
|
|
1152
1166
|
CategoryType,
|
|
1167
|
+
CollectionRefTypes,
|
|
1153
1168
|
CommentController,
|
|
1154
1169
|
CommentState,
|
|
1155
1170
|
EnumPageType,
|
package/dist/index.global.js
CHANGED
|
@@ -1016,6 +1016,19 @@
|
|
|
1016
1016
|
return TimelineType2;
|
|
1017
1017
|
})(TimelineType || {});
|
|
1018
1018
|
|
|
1019
|
+
// ../../apps/core/src/constants/db.constant.ts
|
|
1020
|
+
var POST_COLLECTION_NAME = "posts";
|
|
1021
|
+
var NOTE_COLLECTION_NAME = "notes";
|
|
1022
|
+
var PAGE_COLLECTION_NAME = "pages";
|
|
1023
|
+
var RECENTLY_COLLECTION_NAME = "recentlies";
|
|
1024
|
+
var CollectionRefTypes = /* @__PURE__ */ ((CollectionRefTypes2) => {
|
|
1025
|
+
CollectionRefTypes2[CollectionRefTypes2["Post"] = POST_COLLECTION_NAME] = "Post";
|
|
1026
|
+
CollectionRefTypes2[CollectionRefTypes2["Note"] = NOTE_COLLECTION_NAME] = "Note";
|
|
1027
|
+
CollectionRefTypes2[CollectionRefTypes2["Page"] = PAGE_COLLECTION_NAME] = "Page";
|
|
1028
|
+
CollectionRefTypes2[CollectionRefTypes2["Recently"] = RECENTLY_COLLECTION_NAME] = "Recently";
|
|
1029
|
+
return CollectionRefTypes2;
|
|
1030
|
+
})(CollectionRefTypes || {});
|
|
1031
|
+
|
|
1019
1032
|
// models/comment.ts
|
|
1020
1033
|
var CommentState = /* @__PURE__ */ ((CommentState2) => {
|
|
1021
1034
|
CommentState2[CommentState2["Unread"] = 0] = "Unread";
|
package/dist/index.js
CHANGED
|
@@ -1014,6 +1014,19 @@ var TimelineType = /* @__PURE__ */ ((TimelineType2) => {
|
|
|
1014
1014
|
return TimelineType2;
|
|
1015
1015
|
})(TimelineType || {});
|
|
1016
1016
|
|
|
1017
|
+
// ../../apps/core/src/constants/db.constant.ts
|
|
1018
|
+
var POST_COLLECTION_NAME = "posts";
|
|
1019
|
+
var NOTE_COLLECTION_NAME = "notes";
|
|
1020
|
+
var PAGE_COLLECTION_NAME = "pages";
|
|
1021
|
+
var RECENTLY_COLLECTION_NAME = "recentlies";
|
|
1022
|
+
var CollectionRefTypes = /* @__PURE__ */ ((CollectionRefTypes2) => {
|
|
1023
|
+
CollectionRefTypes2[CollectionRefTypes2["Post"] = POST_COLLECTION_NAME] = "Post";
|
|
1024
|
+
CollectionRefTypes2[CollectionRefTypes2["Note"] = NOTE_COLLECTION_NAME] = "Note";
|
|
1025
|
+
CollectionRefTypes2[CollectionRefTypes2["Page"] = PAGE_COLLECTION_NAME] = "Page";
|
|
1026
|
+
CollectionRefTypes2[CollectionRefTypes2["Recently"] = RECENTLY_COLLECTION_NAME] = "Recently";
|
|
1027
|
+
return CollectionRefTypes2;
|
|
1028
|
+
})(CollectionRefTypes || {});
|
|
1029
|
+
|
|
1017
1030
|
// models/comment.ts
|
|
1018
1031
|
var CommentState = /* @__PURE__ */ ((CommentState2) => {
|
|
1019
1032
|
CommentState2[CommentState2["Unread"] = 0] = "Unread";
|
|
@@ -1084,6 +1097,7 @@ export {
|
|
|
1084
1097
|
AggregateController,
|
|
1085
1098
|
CategoryController,
|
|
1086
1099
|
CategoryType,
|
|
1100
|
+
CollectionRefTypes,
|
|
1087
1101
|
CommentController,
|
|
1088
1102
|
CommentState,
|
|
1089
1103
|
EnumPageType,
|
package/models/comment.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type { CollectionRefTypes } from '@core/constants/db.constant'
|
|
2
1
|
import type { BaseModel } from './base'
|
|
3
2
|
import type { CategoryModel } from './category'
|
|
4
3
|
|
|
4
|
+
import { CollectionRefTypes } from '@core/constants/db.constant'
|
|
5
|
+
|
|
5
6
|
export { CollectionRefTypes }
|
|
6
7
|
export interface CommentModel extends BaseModel {
|
|
7
8
|
refType: CollectionRefTypes
|