@permaweb/libs 0.0.80 → 0.0.82
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 +11 -11
- package/dist/index.esm.js +36 -36
- package/dist/index.js +11 -11
- package/dist/types/helpers/types.d.ts +6 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/services/comments.d.ts +8 -1
- package/package.json +1 -1
|
@@ -11,6 +11,7 @@ export type DependencyType = {
|
|
|
11
11
|
export type ProcessReadType = {
|
|
12
12
|
processId: string;
|
|
13
13
|
path?: string;
|
|
14
|
+
appendPath?: string;
|
|
14
15
|
hydrate?: boolean;
|
|
15
16
|
fallbackAction?: string;
|
|
16
17
|
tags?: TagType[];
|
|
@@ -142,6 +143,11 @@ export type CommentCreateArgType = {
|
|
|
142
143
|
tags?: TagType[];
|
|
143
144
|
metadata?: object;
|
|
144
145
|
};
|
|
146
|
+
export type CommentRulesType = {
|
|
147
|
+
profileAgeRequired?: number;
|
|
148
|
+
mutedWords?: string[];
|
|
149
|
+
requireProfileThumbnail?: boolean;
|
|
150
|
+
};
|
|
145
151
|
export type CollectionManifestType = {
|
|
146
152
|
type: string;
|
|
147
153
|
items: string[];
|
package/dist/types/index.d.ts
CHANGED
|
@@ -81,6 +81,13 @@ declare function init(deps: Helpers.DependencyType): {
|
|
|
81
81
|
commentsId: string;
|
|
82
82
|
commentId: string;
|
|
83
83
|
}) => Promise<string>;
|
|
84
|
+
getRules: (args: {
|
|
85
|
+
commentsId: string;
|
|
86
|
+
}) => Promise<Helpers.CommentRulesType>;
|
|
87
|
+
updateRules: (args: {
|
|
88
|
+
commentsId: string;
|
|
89
|
+
rules: Helpers.CommentRulesType;
|
|
90
|
+
}) => Promise<string>;
|
|
84
91
|
createCollection: (args: {
|
|
85
92
|
title: string;
|
|
86
93
|
description: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommentCreateArgType, DependencyType } from '../helpers/types.ts';
|
|
1
|
+
import { CommentCreateArgType, CommentRulesType, DependencyType } from '../helpers/types.ts';
|
|
2
2
|
export declare function createCommentWith(deps: DependencyType): (args: CommentCreateArgType) => Promise<string>;
|
|
3
3
|
export declare function getCommentsWith(deps: DependencyType): (args: {
|
|
4
4
|
commentsId: string;
|
|
@@ -29,3 +29,10 @@ export declare function unpinCommentWith(deps: DependencyType): (args: {
|
|
|
29
29
|
commentsId: string;
|
|
30
30
|
commentId: string;
|
|
31
31
|
}) => Promise<string>;
|
|
32
|
+
export declare function getRulesWith(deps: DependencyType): (args: {
|
|
33
|
+
commentsId: string;
|
|
34
|
+
}) => Promise<CommentRulesType>;
|
|
35
|
+
export declare function updateRulesWith(deps: DependencyType): (args: {
|
|
36
|
+
commentsId: string;
|
|
37
|
+
rules: CommentRulesType;
|
|
38
|
+
}) => Promise<string>;
|