@replyke/core 7.0.0-beta.21 → 7.0.0-beta.23
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/cjs/index.d.ts +1 -1
- package/dist/cjs/index.js +4 -3
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/interfaces/models/Entity.d.ts +2 -1
- package/dist/cjs/store/slices/entityListsSlice.d.ts +12 -0
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interfaces/models/Entity.d.ts +2 -1
- package/dist/esm/store/slices/entityListsSlice.d.ts +12 -0
- package/package.json +1 -1
package/dist/cjs/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export { useSignTestingJwt } from "./hooks/crypto";
|
|
|
12
12
|
export { useAuth, type UseAuthValues } from "./hooks/auth";
|
|
13
13
|
export { useUser, useUserActions, type UseUserProps, type UseUserValues, } from "./hooks/user";
|
|
14
14
|
export { useAppNotifications, useAppNotificationsActions, type UseAppNotificationsProps, type UseAppNotificationsValues, } from "./hooks/app-notifications";
|
|
15
|
-
export { useCollections, useCollectionsActions, useIsEntityInCollection, type UseCollectionsProps, type UseCollectionsValues, } from "./hooks/collections";
|
|
15
|
+
export { useCollections, useCollectionsActions, useIsEntityInCollection, useCollectionEntitiesWrapper, type UseCollectionsProps, type UseCollectionsValues, type UseCollectionEntitiesWrapperProps, type UseCollectionEntitiesWrapperValues, } from "./hooks/collections";
|
|
16
16
|
export { useEntity, useEntityData, useCreateEntity, useDeleteEntity, useDownvoteEntity, useEntityVotes, useFetchEntity, useFetchEntityByForeignId, useFetchEntityByShortId, useFetchManyEntities, useIncrementEntityViews, useFetchManyEntitiesWrapper, useRemoveEntityDownvote, useRemoveEntityUpvote, useUpdateEntity, useUpvoteEntity, type UseFetchManyEntitiesWrapperProps, type UseFetchManyEntitiesWrapperValues, } from "./hooks/entities";
|
|
17
17
|
export { useEntityList, useEntityListActions, type UseEntityListProps, type UseEntityListValues, type EntityListFilters, type EntityListSort, type EntityListFetchOptions, } from "./hooks/entity-lists";
|
|
18
18
|
export { useSpace, useSpaceData, useFetchSpace, useFetchSpaceByShortId, useFetchSpaceBySlug, useFetchSpaceBreadcrumb, useFetchSpaceChildren, useFetchManySpaces, useCheckSlugAvailability, useCreateSpace, useUpdateSpace, useDeleteSpace, useJoinSpace, useLeaveSpace, useFetchSpaceMembers, useFetchMySpaces, useUpdateMemberRole, useApproveMember, useDeclineMember, useRemoveMember, useSpacePermissions, type UseSpaceDataProps, type UseSpaceDataValues, type CreateSpaceProps, type UpdateSpaceProps, } from "./hooks/spaces";
|
package/dist/cjs/index.js
CHANGED
|
@@ -36,9 +36,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
36
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
41
|
-
exports.validateSortType = exports.validateMetadataPropertyName = exports.validateSortBy = exports.AppNotification = exports.useUploadFile = exports.useGetMetadata = exports.useHandleSpaceCommentReport = exports.useHandleSpaceEntityReport = exports.useFetchSpaceReports = exports.useCreateReport = exports.useConnectionManager = exports.useFetchConnectionsCountByUserId = exports.useFetchConnectionsByUserId = exports.useFetchReceivedPendingConnections = exports.useFetchSentPendingConnections = exports.useFetchConnectionsCount = exports.useRemoveConnectionByUserId = exports.useFetchConnectionStatus = exports.useFetchConnections = exports.useRemoveConnection = exports.useDeclineConnection = void 0;
|
|
39
|
+
exports.useFetchSpaceBreadcrumb = exports.useFetchSpaceBySlug = exports.useFetchSpaceByShortId = exports.useFetchSpace = exports.useSpaceData = exports.useSpace = exports.useEntityListActions = exports.useEntityList = exports.useUpvoteEntity = exports.useUpdateEntity = exports.useRemoveEntityUpvote = exports.useRemoveEntityDownvote = exports.useFetchManyEntitiesWrapper = exports.useIncrementEntityViews = exports.useFetchManyEntities = exports.useFetchEntityByShortId = exports.useFetchEntityByForeignId = exports.useFetchEntity = exports.useEntityVotes = exports.useDownvoteEntity = exports.useDeleteEntity = exports.useCreateEntity = exports.useEntityData = exports.useEntity = exports.useCollectionEntitiesWrapper = exports.useIsEntityInCollection = exports.useCollectionsActions = exports.useCollections = exports.useAppNotificationsActions = exports.useAppNotifications = exports.useUserActions = exports.useUser = exports.useAuth = exports.useSignTestingJwt = exports.useProjectData = exports.useProject = exports.SpaceProvider = exports.CommentSectionProvider = exports.EntityProvider = exports.ReplykeProvider = exports.reportReasons = exports.getEnvVar = exports.getApiBaseUrl = exports.isProduction = exports.isDevelopment = exports.getPublicFileUrl = exports.getUserName = exports.safeMergeStyleProps = exports.keywordHelpers = exports.handleError = void 0;
|
|
40
|
+
exports.useRequestConnection = exports.useUnfollowUserByUserId = exports.useUnfollowByFollowId = exports.useFollowUser = exports.useFollowManager = exports.useFetchFollowingCountByUserId = exports.useFetchFollowingCount = exports.useFetchFollowingByUserId = exports.useFetchFollowing = exports.useFetchFollowersCountByUserId = exports.useFetchFollowersCount = exports.useFetchFollowersByUserId = exports.useFetchFollowers = exports.useFetchFollowStatus = exports.useUpdateUser = exports.useMentions = exports.useFetchUserSuggestions = exports.useCheckUsernameAvailability = exports.useFetchUserByUsername = exports.useFetchUserByForeignId = exports.useFetchUser = exports.useFetchManyCommentsWrapper = exports.useEntityComments = exports.useDeleteComment = exports.useCommentVotes = exports.useUpdateComment = exports.useReplies = exports.useFetchCommentByForeignId = exports.useFetchComment = exports.useFetchManyComments = exports.useCreateComment = exports.useCommentSectionData = exports.useCommentSection = exports.useSpaceListActions = exports.useSpaceList = exports.useSpacePermissions = exports.useRemoveMember = exports.useDeclineMember = exports.useApproveMember = exports.useUpdateMemberRole = exports.useFetchMySpaces = exports.useFetchSpaceMembers = exports.useLeaveSpace = exports.useJoinSpace = exports.useDeleteSpace = exports.useUpdateSpace = exports.useCreateSpace = exports.useCheckSlugAvailability = exports.useFetchManySpaces = exports.useFetchSpaceChildren = void 0;
|
|
41
|
+
exports.validateSortType = exports.validateMetadataPropertyName = exports.validateSortBy = exports.AppNotification = exports.useUploadFile = exports.useGetMetadata = exports.useHandleSpaceCommentReport = exports.useHandleSpaceEntityReport = exports.useFetchSpaceReports = exports.useCreateReport = exports.useConnectionManager = exports.useFetchConnectionsCountByUserId = exports.useFetchConnectionsByUserId = exports.useFetchReceivedPendingConnections = exports.useFetchSentPendingConnections = exports.useFetchConnectionsCount = exports.useRemoveConnectionByUserId = exports.useFetchConnectionStatus = exports.useFetchConnections = exports.useRemoveConnection = exports.useDeclineConnection = exports.useAcceptConnection = void 0;
|
|
42
42
|
// Helpers & Utilities
|
|
43
43
|
var handleError_1 = require("./utils/handleError");
|
|
44
44
|
Object.defineProperty(exports, "handleError", { enumerable: true, get: function () { return handleError_1.handleError; } });
|
|
@@ -87,6 +87,7 @@ var collections_1 = require("./hooks/collections");
|
|
|
87
87
|
Object.defineProperty(exports, "useCollections", { enumerable: true, get: function () { return collections_1.useCollections; } });
|
|
88
88
|
Object.defineProperty(exports, "useCollectionsActions", { enumerable: true, get: function () { return collections_1.useCollectionsActions; } });
|
|
89
89
|
Object.defineProperty(exports, "useIsEntityInCollection", { enumerable: true, get: function () { return collections_1.useIsEntityInCollection; } });
|
|
90
|
+
Object.defineProperty(exports, "useCollectionEntitiesWrapper", { enumerable: true, get: function () { return collections_1.useCollectionEntitiesWrapper; } });
|
|
90
91
|
// -- entities
|
|
91
92
|
var entities_1 = require("./hooks/entities");
|
|
92
93
|
Object.defineProperty(exports, "useEntity", { enumerable: true, get: function () { return entities_1.useEntity; } });
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sBAAsB;AACtB,mDAAkD;AAAzC,0GAAA,WAAW,OAAA;A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
|
|
@@ -34,10 +34,11 @@ export interface Entity {
|
|
|
34
34
|
} | null;
|
|
35
35
|
metadata: Record<string, any>;
|
|
36
36
|
topComment: TopComment | null;
|
|
37
|
+
isSaved?: boolean;
|
|
37
38
|
createdAt: Date;
|
|
38
39
|
updatedAt: Date;
|
|
39
40
|
deletedAt: Date | null;
|
|
40
41
|
}
|
|
41
|
-
export type EntityInclude = "space" | "user" | "topComment";
|
|
42
|
+
export type EntityInclude = "space" | "user" | "topComment" | "saved";
|
|
42
43
|
export type EntityIncludeArray = EntityInclude[];
|
|
43
44
|
export type EntityIncludeParam = string | EntityIncludeArray;
|
|
@@ -201,6 +201,7 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
|
|
|
201
201
|
content: string;
|
|
202
202
|
createdAt: string;
|
|
203
203
|
} | null;
|
|
204
|
+
isSaved?: boolean | undefined;
|
|
204
205
|
createdAt: Date;
|
|
205
206
|
updatedAt: Date;
|
|
206
207
|
deletedAt: Date | null;
|
|
@@ -363,6 +364,7 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
|
|
|
363
364
|
content: string;
|
|
364
365
|
createdAt: string;
|
|
365
366
|
} | null;
|
|
367
|
+
isSaved?: boolean | undefined;
|
|
366
368
|
createdAt: Date;
|
|
367
369
|
updatedAt: Date;
|
|
368
370
|
deletedAt: Date | null;
|
|
@@ -525,6 +527,7 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
|
|
|
525
527
|
content: string;
|
|
526
528
|
createdAt: string;
|
|
527
529
|
} | null;
|
|
530
|
+
isSaved?: boolean | undefined;
|
|
528
531
|
createdAt: Date;
|
|
529
532
|
updatedAt: Date;
|
|
530
533
|
deletedAt: Date | null;
|
|
@@ -690,6 +693,7 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
|
|
|
690
693
|
content: string;
|
|
691
694
|
createdAt: string;
|
|
692
695
|
} | null;
|
|
696
|
+
isSaved?: boolean | undefined;
|
|
693
697
|
createdAt: Date;
|
|
694
698
|
updatedAt: Date;
|
|
695
699
|
deletedAt: Date | null;
|
|
@@ -852,6 +856,7 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
|
|
|
852
856
|
content: string;
|
|
853
857
|
createdAt: string;
|
|
854
858
|
} | null;
|
|
859
|
+
isSaved?: boolean | undefined;
|
|
855
860
|
createdAt: Date;
|
|
856
861
|
updatedAt: Date;
|
|
857
862
|
deletedAt: Date | null;
|
|
@@ -1014,6 +1019,7 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
|
|
|
1014
1019
|
content: string;
|
|
1015
1020
|
createdAt: string;
|
|
1016
1021
|
} | null;
|
|
1022
|
+
isSaved?: boolean | undefined;
|
|
1017
1023
|
createdAt: Date;
|
|
1018
1024
|
updatedAt: Date;
|
|
1019
1025
|
deletedAt: Date | null;
|
|
@@ -1179,6 +1185,7 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
|
|
|
1179
1185
|
content: string;
|
|
1180
1186
|
createdAt: string;
|
|
1181
1187
|
} | null;
|
|
1188
|
+
isSaved?: boolean | undefined;
|
|
1182
1189
|
createdAt: Date;
|
|
1183
1190
|
updatedAt: Date;
|
|
1184
1191
|
deletedAt: Date | null;
|
|
@@ -1344,6 +1351,7 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
|
|
|
1344
1351
|
content: string;
|
|
1345
1352
|
createdAt: string;
|
|
1346
1353
|
} | null;
|
|
1354
|
+
isSaved?: boolean | undefined;
|
|
1347
1355
|
createdAt: Date;
|
|
1348
1356
|
updatedAt: Date;
|
|
1349
1357
|
deletedAt: Date | null;
|
|
@@ -1506,6 +1514,7 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
|
|
|
1506
1514
|
content: string;
|
|
1507
1515
|
createdAt: string;
|
|
1508
1516
|
} | null;
|
|
1517
|
+
isSaved?: boolean | undefined;
|
|
1509
1518
|
createdAt: Date;
|
|
1510
1519
|
updatedAt: Date;
|
|
1511
1520
|
deletedAt: Date | null;
|
|
@@ -1668,6 +1677,7 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
|
|
|
1668
1677
|
content: string;
|
|
1669
1678
|
createdAt: string;
|
|
1670
1679
|
} | null;
|
|
1680
|
+
isSaved?: boolean | undefined;
|
|
1671
1681
|
createdAt: Date;
|
|
1672
1682
|
updatedAt: Date;
|
|
1673
1683
|
deletedAt: Date | null;
|
|
@@ -1830,6 +1840,7 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
|
|
|
1830
1840
|
content: string;
|
|
1831
1841
|
createdAt: string;
|
|
1832
1842
|
} | null;
|
|
1843
|
+
isSaved?: boolean | undefined;
|
|
1833
1844
|
createdAt: Date;
|
|
1834
1845
|
updatedAt: Date;
|
|
1835
1846
|
deletedAt: Date | null;
|
|
@@ -1992,6 +2003,7 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
|
|
|
1992
2003
|
content: string;
|
|
1993
2004
|
createdAt: string;
|
|
1994
2005
|
} | null;
|
|
2006
|
+
isSaved?: boolean | undefined;
|
|
1995
2007
|
createdAt: Date;
|
|
1996
2008
|
updatedAt: Date;
|
|
1997
2009
|
deletedAt: Date | null;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export { useSignTestingJwt } from "./hooks/crypto";
|
|
|
12
12
|
export { useAuth, type UseAuthValues } from "./hooks/auth";
|
|
13
13
|
export { useUser, useUserActions, type UseUserProps, type UseUserValues, } from "./hooks/user";
|
|
14
14
|
export { useAppNotifications, useAppNotificationsActions, type UseAppNotificationsProps, type UseAppNotificationsValues, } from "./hooks/app-notifications";
|
|
15
|
-
export { useCollections, useCollectionsActions, useIsEntityInCollection, type UseCollectionsProps, type UseCollectionsValues, } from "./hooks/collections";
|
|
15
|
+
export { useCollections, useCollectionsActions, useIsEntityInCollection, useCollectionEntitiesWrapper, type UseCollectionsProps, type UseCollectionsValues, type UseCollectionEntitiesWrapperProps, type UseCollectionEntitiesWrapperValues, } from "./hooks/collections";
|
|
16
16
|
export { useEntity, useEntityData, useCreateEntity, useDeleteEntity, useDownvoteEntity, useEntityVotes, useFetchEntity, useFetchEntityByForeignId, useFetchEntityByShortId, useFetchManyEntities, useIncrementEntityViews, useFetchManyEntitiesWrapper, useRemoveEntityDownvote, useRemoveEntityUpvote, useUpdateEntity, useUpvoteEntity, type UseFetchManyEntitiesWrapperProps, type UseFetchManyEntitiesWrapperValues, } from "./hooks/entities";
|
|
17
17
|
export { useEntityList, useEntityListActions, type UseEntityListProps, type UseEntityListValues, type EntityListFilters, type EntityListSort, type EntityListFetchOptions, } from "./hooks/entity-lists";
|
|
18
18
|
export { useSpace, useSpaceData, useFetchSpace, useFetchSpaceByShortId, useFetchSpaceBySlug, useFetchSpaceBreadcrumb, useFetchSpaceChildren, useFetchManySpaces, useCheckSlugAvailability, useCreateSpace, useUpdateSpace, useDeleteSpace, useJoinSpace, useLeaveSpace, useFetchSpaceMembers, useFetchMySpaces, useUpdateMemberRole, useApproveMember, useDeclineMember, useRemoveMember, useSpacePermissions, type UseSpaceDataProps, type UseSpaceDataValues, type CreateSpaceProps, type UpdateSpaceProps, } from "./hooks/spaces";
|
package/dist/esm/index.js
CHANGED
|
@@ -20,7 +20,7 @@ export { useUser, useUserActions, } from "./hooks/user";
|
|
|
20
20
|
// -- app notifications
|
|
21
21
|
export { useAppNotifications, useAppNotificationsActions, } from "./hooks/app-notifications";
|
|
22
22
|
// -- collections
|
|
23
|
-
export { useCollections, useCollectionsActions, useIsEntityInCollection, } from "./hooks/collections";
|
|
23
|
+
export { useCollections, useCollectionsActions, useIsEntityInCollection, useCollectionEntitiesWrapper, } from "./hooks/collections";
|
|
24
24
|
// -- entities
|
|
25
25
|
export { useEntity, useEntityData, useCreateEntity, useDeleteEntity, useDownvoteEntity, useEntityVotes, useFetchEntity, useFetchEntityByForeignId, useFetchEntityByShortId, useFetchManyEntities, useIncrementEntityViews, useFetchManyEntitiesWrapper, useRemoveEntityDownvote, useRemoveEntityUpvote, useUpdateEntity, useUpvoteEntity, } from "./hooks/entities";
|
|
26
26
|
// -- entity lists
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,sBAAsB;AACtB,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EACL,aAAa,EACb,YAAY,EACZ,aAAa,EACb,SAAS,GACV,MAAM,aAAa,CAAC;AAErB,YAAY;AACZ,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAG1D,+CAA+C;AAC/C,OAAO,EACL,eAAe,EACf,cAAc,EACd,sBAAsB,EACtB,aAAa,GACd,MAAM,WAAW,CAAC;AAEnB,cAAc;AACd,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAE9D,YAAY;AACZ,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAEnD,oBAAoB;AACpB,OAAO,EAAE,OAAO,EAAsB,MAAM,cAAc,CAAC;AAE3D,oBAAoB;AACpB,OAAO,EACL,OAAO,EACP,cAAc,GAGf,MAAM,cAAc,CAAC;AAEtB,uBAAuB;AACvB,OAAO,EACL,mBAAmB,EACnB,0BAA0B,GAG3B,MAAM,2BAA2B,CAAC;AAEnC,iBAAiB;AACjB,OAAO,EACL,cAAc,EACd,qBAAqB,EACrB,uBAAuB,
|
|
1
|
+
{"version":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nB,mBAAmB,EACnB,wBAAwB,EACxB,2BAA2B,EAC3B,wBAAwB,EACxB,8BAA8B,EAC9B,kCAAkC,EAClC,2BAA2B,EAC3B,gCAAgC,EAChC,oBAAoB,GACrB,MAAM,mCAAmC,CAAC;AAE3C,aAAa;AACb,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,2BAA2B,EAAE,MAAM,iBAAiB,CAAC;AAE9D,aAAa;AACb,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,aAAa;AACb,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAchD,OAAO,KAAK,eAAe,MAAM,qCAAqC,CAAC;AAmDvE,OAAO,EACL,cAAc,EACd,4BAA4B,EAC5B,gBAAgB,GACjB,MAAM,sCAAsC,CAAC"}
|
|
@@ -34,10 +34,11 @@ export interface Entity {
|
|
|
34
34
|
} | null;
|
|
35
35
|
metadata: Record<string, any>;
|
|
36
36
|
topComment: TopComment | null;
|
|
37
|
+
isSaved?: boolean;
|
|
37
38
|
createdAt: Date;
|
|
38
39
|
updatedAt: Date;
|
|
39
40
|
deletedAt: Date | null;
|
|
40
41
|
}
|
|
41
|
-
export type EntityInclude = "space" | "user" | "topComment";
|
|
42
|
+
export type EntityInclude = "space" | "user" | "topComment" | "saved";
|
|
42
43
|
export type EntityIncludeArray = EntityInclude[];
|
|
43
44
|
export type EntityIncludeParam = string | EntityIncludeArray;
|
|
@@ -201,6 +201,7 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
|
|
|
201
201
|
content: string;
|
|
202
202
|
createdAt: string;
|
|
203
203
|
} | null;
|
|
204
|
+
isSaved?: boolean | undefined;
|
|
204
205
|
createdAt: Date;
|
|
205
206
|
updatedAt: Date;
|
|
206
207
|
deletedAt: Date | null;
|
|
@@ -363,6 +364,7 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
|
|
|
363
364
|
content: string;
|
|
364
365
|
createdAt: string;
|
|
365
366
|
} | null;
|
|
367
|
+
isSaved?: boolean | undefined;
|
|
366
368
|
createdAt: Date;
|
|
367
369
|
updatedAt: Date;
|
|
368
370
|
deletedAt: Date | null;
|
|
@@ -525,6 +527,7 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
|
|
|
525
527
|
content: string;
|
|
526
528
|
createdAt: string;
|
|
527
529
|
} | null;
|
|
530
|
+
isSaved?: boolean | undefined;
|
|
528
531
|
createdAt: Date;
|
|
529
532
|
updatedAt: Date;
|
|
530
533
|
deletedAt: Date | null;
|
|
@@ -690,6 +693,7 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
|
|
|
690
693
|
content: string;
|
|
691
694
|
createdAt: string;
|
|
692
695
|
} | null;
|
|
696
|
+
isSaved?: boolean | undefined;
|
|
693
697
|
createdAt: Date;
|
|
694
698
|
updatedAt: Date;
|
|
695
699
|
deletedAt: Date | null;
|
|
@@ -852,6 +856,7 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
|
|
|
852
856
|
content: string;
|
|
853
857
|
createdAt: string;
|
|
854
858
|
} | null;
|
|
859
|
+
isSaved?: boolean | undefined;
|
|
855
860
|
createdAt: Date;
|
|
856
861
|
updatedAt: Date;
|
|
857
862
|
deletedAt: Date | null;
|
|
@@ -1014,6 +1019,7 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
|
|
|
1014
1019
|
content: string;
|
|
1015
1020
|
createdAt: string;
|
|
1016
1021
|
} | null;
|
|
1022
|
+
isSaved?: boolean | undefined;
|
|
1017
1023
|
createdAt: Date;
|
|
1018
1024
|
updatedAt: Date;
|
|
1019
1025
|
deletedAt: Date | null;
|
|
@@ -1179,6 +1185,7 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
|
|
|
1179
1185
|
content: string;
|
|
1180
1186
|
createdAt: string;
|
|
1181
1187
|
} | null;
|
|
1188
|
+
isSaved?: boolean | undefined;
|
|
1182
1189
|
createdAt: Date;
|
|
1183
1190
|
updatedAt: Date;
|
|
1184
1191
|
deletedAt: Date | null;
|
|
@@ -1344,6 +1351,7 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
|
|
|
1344
1351
|
content: string;
|
|
1345
1352
|
createdAt: string;
|
|
1346
1353
|
} | null;
|
|
1354
|
+
isSaved?: boolean | undefined;
|
|
1347
1355
|
createdAt: Date;
|
|
1348
1356
|
updatedAt: Date;
|
|
1349
1357
|
deletedAt: Date | null;
|
|
@@ -1506,6 +1514,7 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
|
|
|
1506
1514
|
content: string;
|
|
1507
1515
|
createdAt: string;
|
|
1508
1516
|
} | null;
|
|
1517
|
+
isSaved?: boolean | undefined;
|
|
1509
1518
|
createdAt: Date;
|
|
1510
1519
|
updatedAt: Date;
|
|
1511
1520
|
deletedAt: Date | null;
|
|
@@ -1668,6 +1677,7 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
|
|
|
1668
1677
|
content: string;
|
|
1669
1678
|
createdAt: string;
|
|
1670
1679
|
} | null;
|
|
1680
|
+
isSaved?: boolean | undefined;
|
|
1671
1681
|
createdAt: Date;
|
|
1672
1682
|
updatedAt: Date;
|
|
1673
1683
|
deletedAt: Date | null;
|
|
@@ -1830,6 +1840,7 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
|
|
|
1830
1840
|
content: string;
|
|
1831
1841
|
createdAt: string;
|
|
1832
1842
|
} | null;
|
|
1843
|
+
isSaved?: boolean | undefined;
|
|
1833
1844
|
createdAt: Date;
|
|
1834
1845
|
updatedAt: Date;
|
|
1835
1846
|
deletedAt: Date | null;
|
|
@@ -1992,6 +2003,7 @@ export declare const entityListsSlice: import("@reduxjs/toolkit").Slice<EntityLi
|
|
|
1992
2003
|
content: string;
|
|
1993
2004
|
createdAt: string;
|
|
1994
2005
|
} | null;
|
|
2006
|
+
isSaved?: boolean | undefined;
|
|
1995
2007
|
createdAt: Date;
|
|
1996
2008
|
updatedAt: Date;
|
|
1997
2009
|
deletedAt: Date | null;
|