convex-feedback 0.1.3 → 0.1.5

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.
Files changed (61) hide show
  1. package/README.md +33 -0
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/client/api.d.ts +7 -1
  4. package/dist/client/api.d.ts.map +1 -1
  5. package/dist/client/index.d.ts +1 -1
  6. package/dist/client/index.d.ts.map +1 -1
  7. package/dist/client/index.js +12 -1
  8. package/dist/client/index.js.map +1 -1
  9. package/dist/component/_generated/api.d.ts +4 -0
  10. package/dist/component/_generated/api.d.ts.map +1 -1
  11. package/dist/component/_generated/api.js.map +1 -1
  12. package/dist/component/_generated/component.d.ts +27 -0
  13. package/dist/component/_generated/component.d.ts.map +1 -1
  14. package/dist/component/comments.d.ts +8 -8
  15. package/dist/component/comments.d.ts.map +1 -1
  16. package/dist/component/comments.js +2 -1
  17. package/dist/component/comments.js.map +1 -1
  18. package/dist/component/crons.d.ts +3 -0
  19. package/dist/component/crons.d.ts.map +1 -0
  20. package/dist/component/crons.js +8 -0
  21. package/dist/component/crons.js.map +1 -0
  22. package/dist/component/entries.d.ts +53 -26
  23. package/dist/component/entries.d.ts.map +1 -1
  24. package/dist/component/entries.js +116 -9
  25. package/dist/component/entries.js.map +1 -1
  26. package/dist/component/helpers.d.ts +2 -1
  27. package/dist/component/helpers.d.ts.map +1 -1
  28. package/dist/component/helpers.js +46 -1
  29. package/dist/component/helpers.js.map +1 -1
  30. package/dist/component/migrations.d.ts +11 -0
  31. package/dist/component/migrations.d.ts.map +1 -0
  32. package/dist/component/migrations.js +35 -0
  33. package/dist/component/migrations.js.map +1 -0
  34. package/dist/component/model.d.ts +74 -3
  35. package/dist/component/model.d.ts.map +1 -1
  36. package/dist/component/model.js +11 -0
  37. package/dist/component/model.js.map +1 -1
  38. package/dist/component/schema.d.ts +19 -2
  39. package/dist/component/schema.d.ts.map +1 -1
  40. package/dist/component/schema.js +12 -2
  41. package/dist/component/schema.js.map +1 -1
  42. package/dist/react/index.d.ts +27 -3
  43. package/dist/react/index.d.ts.map +1 -1
  44. package/dist/react/index.js +6 -0
  45. package/dist/react/index.js.map +1 -1
  46. package/dist/test.d.ts +19 -2
  47. package/dist/test.d.ts.map +1 -1
  48. package/package.json +6 -2
  49. package/src/client/api.ts +11 -0
  50. package/src/client/index.ts +16 -0
  51. package/src/component/README.md +2 -0
  52. package/src/component/_generated/api.ts +4 -0
  53. package/src/component/_generated/component.ts +31 -1
  54. package/src/component/comments.ts +2 -0
  55. package/src/component/crons.ts +16 -0
  56. package/src/component/entries.ts +158 -7
  57. package/src/component/helpers.ts +70 -0
  58. package/src/component/migrations.ts +44 -0
  59. package/src/component/model.ts +44 -0
  60. package/src/component/schema.ts +17 -2
  61. package/src/react/index.ts +13 -0
@@ -1,6 +1,7 @@
1
1
  import type { Infer } from "convex/values";
2
2
  export declare const entryKindValidator: import("convex/values").VUnion<"feedback" | "feature_request" | "bug_report", [import("convex/values").VLiteral<"feedback", "required">, import("convex/values").VLiteral<"feature_request", "required">, import("convex/values").VLiteral<"bug_report", "required">], "required", never>;
3
3
  export declare const entryStatusValidator: import("convex/values").VUnion<"open" | "under_review" | "planned" | "in_progress" | "completed" | "closed", [import("convex/values").VLiteral<"open", "required">, import("convex/values").VLiteral<"under_review", "required">, import("convex/values").VLiteral<"planned", "required">, import("convex/values").VLiteral<"in_progress", "required">, import("convex/values").VLiteral<"completed", "required">, import("convex/values").VLiteral<"closed", "required">], "required", never>;
4
+ export declare const entryStatusFilterValidator: import("convex/values").VUnion<"open" | "closed", [import("convex/values").VLiteral<"open", "required">, import("convex/values").VLiteral<"closed", "required">], "required", never>;
4
5
  export declare const entrySortValidator: import("convex/values").VUnion<"top" | "newest", [import("convex/values").VLiteral<"top", "required">, import("convex/values").VLiteral<"newest", "required">], "required", never>;
5
6
  export declare const commentSortValidator: import("convex/values").VUnion<"top" | "newest" | "oldest", [import("convex/values").VLiteral<"top", "required">, import("convex/values").VLiteral<"newest", "required">, import("convex/values").VLiteral<"oldest", "required">], "required", never>;
6
7
  export declare const actorValidator: import("convex/values").VObject<{
@@ -10,8 +11,21 @@ export declare const actorValidator: import("convex/values").VObject<{
10
11
  id: import("convex/values").VString<string, "required">;
11
12
  isModerator: import("convex/values").VBoolean<boolean, "required">;
12
13
  }, "required", "id" | "isModerator">;
14
+ export declare const feedbackMetadataValueValidator: import("convex/values").VUnion<string | number | boolean, [import("convex/values").VString<string, "required">, import("convex/values").VFloat64<number, "required">, import("convex/values").VBoolean<boolean, "required">], "required", never>;
15
+ export declare const feedbackMetadataRecordValidator: import("convex/values").VRecord<Record<string, string | number | boolean>, import("convex/values").VString<string, "required">, import("convex/values").VUnion<string | number | boolean, [import("convex/values").VString<string, "required">, import("convex/values").VFloat64<number, "required">, import("convex/values").VBoolean<boolean, "required">], "required", never>, "required", string>;
16
+ export declare const feedbackMetadataValidator: import("convex/values").VObject<{
17
+ standard?: Record<string, string | number | boolean> | undefined;
18
+ additional?: Record<string, string | number | boolean> | undefined;
19
+ }, {
20
+ standard: import("convex/values").VRecord<Record<string, string | number | boolean> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VUnion<string | number | boolean, [import("convex/values").VString<string, "required">, import("convex/values").VFloat64<number, "required">, import("convex/values").VBoolean<boolean, "required">], "required", never>, "optional", string>;
21
+ additional: import("convex/values").VRecord<Record<string, string | number | boolean> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VUnion<string | number | boolean, [import("convex/values").VString<string, "required">, import("convex/values").VFloat64<number, "required">, import("convex/values").VBoolean<boolean, "required">], "required", never>, "optional", string>;
22
+ }, "required", "standard" | "additional" | `standard.${string}` | `additional.${string}`>;
13
23
  export declare const publicEntryValidator: import("convex/values").VObject<{
14
24
  updatedAt?: number | undefined;
25
+ metadata?: {
26
+ standard?: Record<string, string | number | boolean> | undefined;
27
+ additional?: Record<string, string | number | boolean> | undefined;
28
+ } | undefined;
15
29
  id: string;
16
30
  creationTime: number;
17
31
  actorId: string;
@@ -34,7 +48,14 @@ export declare const publicEntryValidator: import("convex/values").VObject<{
34
48
  commentCount: import("convex/values").VFloat64<number, "required">;
35
49
  updatedAt: import("convex/values").VFloat64<number | undefined, "optional">;
36
50
  viewerHasUpvoted: import("convex/values").VBoolean<boolean, "required">;
37
- }, "required", "id" | "creationTime" | "actorId" | "kind" | "status" | "title" | "body" | "upvoteCount" | "commentCount" | "updatedAt" | "viewerHasUpvoted">;
51
+ metadata: import("convex/values").VObject<{
52
+ standard?: Record<string, string | number | boolean> | undefined;
53
+ additional?: Record<string, string | number | boolean> | undefined;
54
+ } | undefined, {
55
+ standard: import("convex/values").VRecord<Record<string, string | number | boolean> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VUnion<string | number | boolean, [import("convex/values").VString<string, "required">, import("convex/values").VFloat64<number, "required">, import("convex/values").VBoolean<boolean, "required">], "required", never>, "optional", string>;
56
+ additional: import("convex/values").VRecord<Record<string, string | number | boolean> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VUnion<string | number | boolean, [import("convex/values").VString<string, "required">, import("convex/values").VFloat64<number, "required">, import("convex/values").VBoolean<boolean, "required">], "required", never>, "optional", string>;
57
+ }, "optional", "standard" | "additional" | `standard.${string}` | `additional.${string}`>;
58
+ }, "required", "id" | "creationTime" | "actorId" | "kind" | "status" | "title" | "body" | "upvoteCount" | "commentCount" | "updatedAt" | "viewerHasUpvoted" | "metadata" | "metadata.standard" | "metadata.additional" | `metadata.standard.${string}` | `metadata.additional.${string}`>;
38
59
  export declare const publicCommentValidator: import("convex/values").VObject<{
39
60
  updatedAt?: number | undefined;
40
61
  parentCommentId?: string | undefined;
@@ -65,6 +86,10 @@ export declare const publicCommentValidator: import("convex/values").VObject<{
65
86
  export declare const similarEntriesValidator: import("convex/values").VObject<{
66
87
  exact: {
67
88
  updatedAt?: number | undefined;
89
+ metadata?: {
90
+ standard?: Record<string, string | number | boolean> | undefined;
91
+ additional?: Record<string, string | number | boolean> | undefined;
92
+ } | undefined;
68
93
  id: string;
69
94
  creationTime: number;
70
95
  actorId: string;
@@ -78,6 +103,10 @@ export declare const similarEntriesValidator: import("convex/values").VObject<{
78
103
  }[];
79
104
  similar: {
80
105
  updatedAt?: number | undefined;
106
+ metadata?: {
107
+ standard?: Record<string, string | number | boolean> | undefined;
108
+ additional?: Record<string, string | number | boolean> | undefined;
109
+ } | undefined;
81
110
  id: string;
82
111
  creationTime: number;
83
112
  actorId: string;
@@ -92,6 +121,10 @@ export declare const similarEntriesValidator: import("convex/values").VObject<{
92
121
  }, {
93
122
  exact: import("convex/values").VArray<{
94
123
  updatedAt?: number | undefined;
124
+ metadata?: {
125
+ standard?: Record<string, string | number | boolean> | undefined;
126
+ additional?: Record<string, string | number | boolean> | undefined;
127
+ } | undefined;
95
128
  id: string;
96
129
  creationTime: number;
97
130
  actorId: string;
@@ -104,6 +137,10 @@ export declare const similarEntriesValidator: import("convex/values").VObject<{
104
137
  viewerHasUpvoted: boolean;
105
138
  }[], import("convex/values").VObject<{
106
139
  updatedAt?: number | undefined;
140
+ metadata?: {
141
+ standard?: Record<string, string | number | boolean> | undefined;
142
+ additional?: Record<string, string | number | boolean> | undefined;
143
+ } | undefined;
107
144
  id: string;
108
145
  creationTime: number;
109
146
  actorId: string;
@@ -126,9 +163,20 @@ export declare const similarEntriesValidator: import("convex/values").VObject<{
126
163
  commentCount: import("convex/values").VFloat64<number, "required">;
127
164
  updatedAt: import("convex/values").VFloat64<number | undefined, "optional">;
128
165
  viewerHasUpvoted: import("convex/values").VBoolean<boolean, "required">;
129
- }, "required", "id" | "creationTime" | "actorId" | "kind" | "status" | "title" | "body" | "upvoteCount" | "commentCount" | "updatedAt" | "viewerHasUpvoted">, "required">;
166
+ metadata: import("convex/values").VObject<{
167
+ standard?: Record<string, string | number | boolean> | undefined;
168
+ additional?: Record<string, string | number | boolean> | undefined;
169
+ } | undefined, {
170
+ standard: import("convex/values").VRecord<Record<string, string | number | boolean> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VUnion<string | number | boolean, [import("convex/values").VString<string, "required">, import("convex/values").VFloat64<number, "required">, import("convex/values").VBoolean<boolean, "required">], "required", never>, "optional", string>;
171
+ additional: import("convex/values").VRecord<Record<string, string | number | boolean> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VUnion<string | number | boolean, [import("convex/values").VString<string, "required">, import("convex/values").VFloat64<number, "required">, import("convex/values").VBoolean<boolean, "required">], "required", never>, "optional", string>;
172
+ }, "optional", "standard" | "additional" | `standard.${string}` | `additional.${string}`>;
173
+ }, "required", "id" | "creationTime" | "actorId" | "kind" | "status" | "title" | "body" | "upvoteCount" | "commentCount" | "updatedAt" | "viewerHasUpvoted" | "metadata" | "metadata.standard" | "metadata.additional" | `metadata.standard.${string}` | `metadata.additional.${string}`>, "required">;
130
174
  similar: import("convex/values").VArray<{
131
175
  updatedAt?: number | undefined;
176
+ metadata?: {
177
+ standard?: Record<string, string | number | boolean> | undefined;
178
+ additional?: Record<string, string | number | boolean> | undefined;
179
+ } | undefined;
132
180
  id: string;
133
181
  creationTime: number;
134
182
  actorId: string;
@@ -141,6 +189,10 @@ export declare const similarEntriesValidator: import("convex/values").VObject<{
141
189
  viewerHasUpvoted: boolean;
142
190
  }[], import("convex/values").VObject<{
143
191
  updatedAt?: number | undefined;
192
+ metadata?: {
193
+ standard?: Record<string, string | number | boolean> | undefined;
194
+ additional?: Record<string, string | number | boolean> | undefined;
195
+ } | undefined;
144
196
  id: string;
145
197
  creationTime: number;
146
198
  actorId: string;
@@ -163,7 +215,14 @@ export declare const similarEntriesValidator: import("convex/values").VObject<{
163
215
  commentCount: import("convex/values").VFloat64<number, "required">;
164
216
  updatedAt: import("convex/values").VFloat64<number | undefined, "optional">;
165
217
  viewerHasUpvoted: import("convex/values").VBoolean<boolean, "required">;
166
- }, "required", "id" | "creationTime" | "actorId" | "kind" | "status" | "title" | "body" | "upvoteCount" | "commentCount" | "updatedAt" | "viewerHasUpvoted">, "required">;
218
+ metadata: import("convex/values").VObject<{
219
+ standard?: Record<string, string | number | boolean> | undefined;
220
+ additional?: Record<string, string | number | boolean> | undefined;
221
+ } | undefined, {
222
+ standard: import("convex/values").VRecord<Record<string, string | number | boolean> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VUnion<string | number | boolean, [import("convex/values").VString<string, "required">, import("convex/values").VFloat64<number, "required">, import("convex/values").VBoolean<boolean, "required">], "required", never>, "optional", string>;
223
+ additional: import("convex/values").VRecord<Record<string, string | number | boolean> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VUnion<string | number | boolean, [import("convex/values").VString<string, "required">, import("convex/values").VFloat64<number, "required">, import("convex/values").VBoolean<boolean, "required">], "required", never>, "optional", string>;
224
+ }, "optional", "standard" | "additional" | `standard.${string}` | `additional.${string}`>;
225
+ }, "required", "id" | "creationTime" | "actorId" | "kind" | "status" | "title" | "body" | "upvoteCount" | "commentCount" | "updatedAt" | "viewerHasUpvoted" | "metadata" | "metadata.standard" | "metadata.additional" | `metadata.standard.${string}` | `metadata.additional.${string}`>, "required">;
167
226
  }, "required", "exact" | "similar">;
168
227
  /**
169
228
  * Category of feedback represented by an entry.
@@ -180,6 +239,9 @@ export type EntryKind = Infer<typeof entryKindValidator>;
180
239
  * fully typed lifecycle. UI labels and presentation can be customized.
181
240
  */
182
241
  export type EntryStatus = Infer<typeof entryStatusValidator>;
242
+ /** Coarse status bucket used by the indexed board and search filters. */
243
+ export type EntryStatusFilter = Infer<typeof entryStatusFilterValidator>;
244
+ export declare function entryStatusFilterForStatus(status: EntryStatus): EntryStatusFilter;
183
245
  /**
184
246
  * Server-side ordering strategy for feedback entries.
185
247
  *
@@ -213,6 +275,10 @@ export type CommentSort = Infer<typeof commentSortValidator>;
213
275
  * status or modifying content they do not own.
214
276
  */
215
277
  export type FeedbackActor = Infer<typeof actorValidator>;
278
+ /** Scalar value accepted in entry diagnostic metadata. */
279
+ export type FeedbackMetadataValue = Infer<typeof feedbackMetadataValueValidator>;
280
+ /** Flat metadata values grouped by their source. */
281
+ export type FeedbackMetadata = Infer<typeof feedbackMetadataValidator>;
216
282
  /**
217
283
  * Public representation of a feedback, feature-request, or bug-report entry.
218
284
  *
@@ -251,6 +317,11 @@ export type FeedbackActor = Infer<typeof actorValidator>;
251
317
  * @property viewerHasUpvoted
252
318
  * Whether the actor associated with the current query has upvoted the entry.
253
319
  * `false` when no viewer actor is available.
320
+ *
321
+ * @property metadata
322
+ * Creation-time diagnostic metadata. Present only when `getEntry` is queried
323
+ * by a moderator. Ordinary entry lists, searches, and non-moderator reads omit
324
+ * this property.
254
325
  */
255
326
  export type FeedbackEntry = Infer<typeof publicEntryValidator>;
256
327
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/component/model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAG3C,eAAO,MAAM,kBAAkB,2RAI9B,CAAC;AAEF,eAAO,MAAM,oBAAoB,geAOhC,CAAC;AAEF,eAAO,MAAM,kBAAkB,oLAG9B,CAAC;AAEF,eAAO,MAAM,oBAAoB,uPAIhC,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;oCAGzB,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;4JAY/B,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;gLAajC,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCAGlC,CAAC;AAEH;;;;;;GAMG;AACH,MAAM,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEzD;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE7D;;;;;;GAMG;A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eAAe,GAAG,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEnE;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,MAAM,MAAM,oBAAoB,GAAG,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
@@ -1,12 +1,19 @@
1
1
  import { v } from "convex/values";
2
2
  export const entryKindValidator = v.union(v.literal("feedback"), v.literal("feature_request"), v.literal("bug_report"));
3
3
  export const entryStatusValidator = v.union(v.literal("open"), v.literal("under_review"), v.literal("planned"), v.literal("in_progress"), v.literal("completed"), v.literal("closed"));
4
+ export const entryStatusFilterValidator = v.union(v.literal("open"), v.literal("closed"));
4
5
  export const entrySortValidator = v.union(v.literal("top"), v.literal("newest"));
5
6
  export const commentSortValidator = v.union(v.literal("top"), v.literal("newest"), v.literal("oldest"));
6
7
  export const actorValidator = v.object({
7
8
  id: v.string(),
8
9
  isModerator: v.boolean(),
9
10
  });
11
+ export const feedbackMetadataValueValidator = v.union(v.string(), v.number(), v.boolean());
12
+ export const feedbackMetadataRecordValidator = v.record(v.string(), feedbackMetadataValueValidator);
13
+ export const feedbackMetadataValidator = v.object({
14
+ standard: v.optional(feedbackMetadataRecordValidator),
15
+ additional: v.optional(feedbackMetadataRecordValidator),
16
+ });
10
17
  export const publicEntryValidator = v.object({
11
18
  id: v.string(),
12
19
  creationTime: v.number(),
@@ -19,6 +26,7 @@ export const publicEntryValidator = v.object({
19
26
  commentCount: v.number(),
20
27
  updatedAt: v.optional(v.number()),
21
28
  viewerHasUpvoted: v.boolean(),
29
+ metadata: v.optional(feedbackMetadataValidator),
22
30
  });
23
31
  export const publicCommentValidator = v.object({
24
32
  id: v.string(),
@@ -38,4 +46,7 @@ export const similarEntriesValidator = v.object({
38
46
  exact: v.array(publicEntryValidator),
39
47
  similar: v.array(publicEntryValidator),
40
48
  });
49
+ export function entryStatusFilterForStatus(status) {
50
+ return status === "closed" ? "closed" : "open";
51
+ }
41
52
  //# sourceMappingURL=model.js.map
@@ -1 +1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server").TableDefinition<import("convex/values").VObject<{
3
3
  updatedAt?: number | undefined;
4
+ metadata?: {
5
+ standard?: Record<string, string | number | boolean> | undefined;
6
+ additional?: Record<string, string | number | boolean> | undefined;
7
+ } | undefined;
8
+ statusFilter?: "open" | "closed" | undefined;
4
9
  actorId: string;
5
10
  kind: "feedback" | "feature_request" | "bug_report";
6
11
  status: "open" | "under_review" | "planned" | "in_progress" | "completed" | "closed";
@@ -14,6 +19,7 @@ declare const schema: import("convex/server").SchemaDefinition<{
14
19
  actorId: import("convex/values").VString<string, "required">;
15
20
  kind: import("convex/values").VUnion<"feedback" | "feature_request" | "bug_report", [import("convex/values").VLiteral<"feedback", "required">, import("convex/values").VLiteral<"feature_request", "required">, import("convex/values").VLiteral<"bug_report", "required">], "required", never>;
16
21
  status: import("convex/values").VUnion<"open" | "under_review" | "planned" | "in_progress" | "completed" | "closed", [import("convex/values").VLiteral<"open", "required">, import("convex/values").VLiteral<"under_review", "required">, import("convex/values").VLiteral<"planned", "required">, import("convex/values").VLiteral<"in_progress", "required">, import("convex/values").VLiteral<"completed", "required">, import("convex/values").VLiteral<"closed", "required">], "required", never>;
22
+ statusFilter: import("convex/values").VUnion<"open" | "closed" | undefined, [import("convex/values").VLiteral<"open", "required">, import("convex/values").VLiteral<"closed", "required">], "optional", never>;
17
23
  title: import("convex/values").VString<string, "required">;
18
24
  body: import("convex/values").VString<string, "required">;
19
25
  normalizedTitle: import("convex/values").VString<string, "required">;
@@ -21,20 +27,31 @@ declare const schema: import("convex/server").SchemaDefinition<{
21
27
  upvoteCount: import("convex/values").VFloat64<number, "required">;
22
28
  commentCount: import("convex/values").VFloat64<number, "required">;
23
29
  updatedAt: import("convex/values").VFloat64<number | undefined, "optional">;
24
- }, "required", "actorId" | "kind" | "status" | "title" | "body" | "upvoteCount" | "commentCount" | "updatedAt" | "normalizedTitle" | "searchText">, {
30
+ metadata: import("convex/values").VObject<{
31
+ standard?: Record<string, string | number | boolean> | undefined;
32
+ additional?: Record<string, string | number | boolean> | undefined;
33
+ } | undefined, {
34
+ standard: import("convex/values").VRecord<Record<string, string | number | boolean> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VUnion<string | number | boolean, [import("convex/values").VString<string, "required">, import("convex/values").VFloat64<number, "required">, import("convex/values").VBoolean<boolean, "required">], "required", never>, "optional", string>;
35
+ additional: import("convex/values").VRecord<Record<string, string | number | boolean> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VUnion<string | number | boolean, [import("convex/values").VString<string, "required">, import("convex/values").VFloat64<number, "required">, import("convex/values").VBoolean<boolean, "required">], "required", never>, "optional", string>;
36
+ }, "optional", "standard" | "additional" | `standard.${string}` | `additional.${string}`>;
37
+ }, "required", "actorId" | "kind" | "status" | "title" | "body" | "upvoteCount" | "commentCount" | "updatedAt" | "metadata" | "metadata.standard" | "metadata.additional" | `metadata.standard.${string}` | `metadata.additional.${string}` | "statusFilter" | "normalizedTitle" | "searchText">, {
25
38
  by_kind: ["kind", "_creationTime"];
26
39
  by_status: ["status", "_creationTime"];
27
40
  by_kind_status: ["kind", "status", "_creationTime"];
41
+ by_status_filter: ["statusFilter", "_creationTime"];
42
+ by_kind_status_filter: ["kind", "statusFilter", "_creationTime"];
28
43
  by_upvotes: ["upvoteCount", "_creationTime"];
29
44
  by_kind_upvotes: ["kind", "upvoteCount", "_creationTime"];
30
45
  by_status_upvotes: ["status", "upvoteCount", "_creationTime"];
31
46
  by_kind_status_upvotes: ["kind", "status", "upvoteCount", "_creationTime"];
47
+ by_status_filter_upvotes: ["statusFilter", "upvoteCount", "_creationTime"];
48
+ by_kind_status_filter_upvotes: ["kind", "statusFilter", "upvoteCount", "_creationTime"];
32
49
  by_normalized_title: ["normalizedTitle", "_creationTime"];
33
50
  by_kind_normalized_title: ["kind", "normalizedTitle", "_creationTime"];
34
51
  }, {
35
52
  search: {
36
53
  searchField: "searchText";
37
- filterFields: "kind" | "status";
54
+ filterFields: "kind" | "status" | "statusFilter";
38
55
  };
39
56
  }, {}>;
40
57
  comments: import("convex/server").TableDefinition<import("convex/values").VObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/component/schema.ts"],"names":[],"mappings":"AAKA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAoDV,CAAC;AAEH,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/component/schema.ts"],"names":[],"mappings":"AAUA,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA8DV,CAAC;AAEH,eAAe,MAAM,CAAC"}
@@ -1,11 +1,12 @@
1
1
  import { defineSchema, defineTable } from "convex/server";
2
2
  import { v } from "convex/values";
3
- import { entryKindValidator, entryStatusValidator } from "./model.js";
3
+ import { entryKindValidator, entryStatusFilterValidator, entryStatusValidator, feedbackMetadataValidator, } from "./model.js";
4
4
  const schema = defineSchema({
5
5
  entries: defineTable({
6
6
  actorId: v.string(),
7
7
  kind: entryKindValidator,
8
8
  status: entryStatusValidator,
9
+ statusFilter: v.optional(entryStatusFilterValidator),
9
10
  title: v.string(),
10
11
  body: v.string(),
11
12
  normalizedTitle: v.string(),
@@ -13,19 +14,28 @@ const schema = defineSchema({
13
14
  upvoteCount: v.number(),
14
15
  commentCount: v.number(),
15
16
  updatedAt: v.optional(v.number()),
17
+ metadata: v.optional(feedbackMetadataValidator),
16
18
  })
17
19
  .index("by_kind", ["kind"])
18
20
  .index("by_status", ["status"])
19
21
  .index("by_kind_status", ["kind", "status"])
22
+ .index("by_status_filter", ["statusFilter"])
23
+ .index("by_kind_status_filter", ["kind", "statusFilter"])
20
24
  .index("by_upvotes", ["upvoteCount"])
21
25
  .index("by_kind_upvotes", ["kind", "upvoteCount"])
22
26
  .index("by_status_upvotes", ["status", "upvoteCount"])
23
27
  .index("by_kind_status_upvotes", ["kind", "status", "upvoteCount"])
28
+ .index("by_status_filter_upvotes", ["statusFilter", "upvoteCount"])
29
+ .index("by_kind_status_filter_upvotes", [
30
+ "kind",
31
+ "statusFilter",
32
+ "upvoteCount",
33
+ ])
24
34
  .index("by_normalized_title", ["normalizedTitle"])
25
35
  .index("by_kind_normalized_title", ["kind", "normalizedTitle"])
26
36
  .searchIndex("search", {
27
37
  searchField: "searchText",
28
- filterFields: ["kind", "status"],
38
+ filterFields: ["kind", "status", "statusFilter"],
29
39
  }),
30
40
  comments: defineTable({
31
41
  entryId: v.id("entries"),
@@ -1 +1 @@
1
- {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/component/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,CAAC,EAAE,MAAM,eAAe,CAAC;AAElC,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEtE,MAAM,MAAM,GAAG,YAAY,CAAC;IAC1B,OAAO,EAAE,WAAW,CAAC;QACnB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;QACnB,IAAI,EAAE,kBAAkB;QACxB,MAAM,EAAE,oBAAoB;QAC5B,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;QACjB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;QAC3B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;QACtB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;QACvB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;QACxB,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;KAClC,CAAC;SACC,KAAK,CAAC,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;S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ACpB,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC;QACxB,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC;QAC7C,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;QACnB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;QACjB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;QAChB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;QACrB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;QACtB,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;QACjC,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;KAClC,CAAC;SACC,KAAK,CAAC,iBAAiB,EAAE,CAAC,SAAS,EAAE,iBAAiB,CAAC,CAAC;SACxD,KAAK,CAAC,uBAAuB,EAAE;QAC9B,SAAS;QACT,iBAAiB;QACjB,WAAW;KACZ,CAAC;IAEJ,SAAS,EAAE,WAAW,CAAC;QACrB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;QACnB,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC;QACpC,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC;KACxC,CAAC;SACC,KAAK,CAAC,gBAAgB,EAAE,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;SAC/C,KAAK,CAAC,kBAAkB,EAAE,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;CACvD,CAAC,CAAC;AAEH,eAAe,MAAM,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import type { FeedbackPublicApi } from "../client/api.js";
2
- import type { CommentSort, EntryKind, EntrySort, EntryStatus } from "../component/model.js";
2
+ import type { CommentSort, EntryKind, EntrySort, EntryStatus, EntryStatusFilter } from "../component/model.js";
3
3
  /**
4
4
  * Client-side pagination defaults used by hooks created with
5
5
  * `createFeedbackHooks`.
@@ -44,6 +44,8 @@ export interface UseEntriesArgs {
44
44
  kinds?: readonly EntryKind[];
45
45
  /** Optional workflow-status filter. */
46
46
  status?: EntryStatus;
47
+ /** Optional indexed open or closed board bucket. */
48
+ statusFilter?: EntryStatusFilter;
47
49
  /**
48
50
  * Server-side entry ordering.
49
51
  *
@@ -96,6 +98,8 @@ export interface SearchEntriesArgs {
96
98
  kinds?: readonly EntryKind[];
97
99
  /** Optional workflow-status filter. */
98
100
  status?: EntryStatus;
101
+ /** Optional indexed open or closed board bucket. */
102
+ statusFilter?: EntryStatusFilter;
99
103
  /**
100
104
  * Maximum number of results requested.
101
105
  *
@@ -161,6 +165,10 @@ declare function createFeedbackHooksImplementation<RateLimitResult>(api: Feedbac
161
165
  */
162
166
  useEntries(args?: UseEntriesArgs): import("convex/react").UsePaginatedQueryReturnType<import("convex/server").FunctionReference<"query", "public", import("../client/api.js").ListEntriesArgs, import("convex/server").PaginationResult<{
163
167
  updatedAt?: number | undefined;
168
+ metadata?: {
169
+ standard?: Record<string, string | number | boolean> | undefined;
170
+ additional?: Record<string, string | number | boolean> | undefined;
171
+ } | undefined;
164
172
  id: string;
165
173
  creationTime: number;
166
174
  actorId: string;
@@ -179,6 +187,10 @@ declare function createFeedbackHooksImplementation<RateLimitResult>(api: Feedbac
179
187
  */
180
188
  useEntry(entryId: string | null | undefined): {
181
189
  updatedAt?: number | undefined;
190
+ metadata?: {
191
+ standard?: Record<string, string | number | boolean> | undefined;
192
+ additional?: Record<string, string | number | boolean> | undefined;
193
+ } | undefined;
182
194
  id: string;
183
195
  creationTime: number;
184
196
  actorId: string;
@@ -197,6 +209,10 @@ declare function createFeedbackHooksImplementation<RateLimitResult>(api: Feedbac
197
209
  */
198
210
  useSearchEntries(args: SearchEntriesArgs): {
199
211
  updatedAt?: number | undefined;
212
+ metadata?: {
213
+ standard?: Record<string, string | number | boolean> | undefined;
214
+ additional?: Record<string, string | number | boolean> | undefined;
215
+ } | undefined;
200
216
  id: string;
201
217
  creationTime: number;
202
218
  actorId: string;
@@ -219,6 +235,10 @@ declare function createFeedbackHooksImplementation<RateLimitResult>(api: Feedbac
219
235
  useSimilarEntries(args: SimilarEntriesArgs): {
220
236
  exact: {
221
237
  updatedAt?: number | undefined;
238
+ metadata?: {
239
+ standard?: Record<string, string | number | boolean> | undefined;
240
+ additional?: Record<string, string | number | boolean> | undefined;
241
+ } | undefined;
222
242
  id: string;
223
243
  creationTime: number;
224
244
  actorId: string;
@@ -232,6 +252,10 @@ declare function createFeedbackHooksImplementation<RateLimitResult>(api: Feedbac
232
252
  }[];
233
253
  similar: {
234
254
  updatedAt?: number | undefined;
255
+ metadata?: {
256
+ standard?: Record<string, string | number | boolean> | undefined;
257
+ additional?: Record<string, string | number | boolean> | undefined;
258
+ } | undefined;
235
259
  id: string;
236
260
  creationTime: number;
237
261
  actorId: string;
@@ -268,7 +292,7 @@ declare function createFeedbackHooksImplementation<RateLimitResult>(api: Feedbac
268
292
  /** Returns the bound status mutation. */
269
293
  useSetEntryStatus(): import("convex/react").ReactMutation<import("convex/server").FunctionReference<"mutation", "public", import("../client/api.js").SetEntryStatusArgs, RateLimitResult | null, string | undefined>>;
270
294
  /** Returns the idempotent entry-upvote state mutation. */
271
- useSetEntryUpvote(): import("convex/react").ReactMutation<import("convex/server").FunctionReference<"mutation", "public", import("../client/api.js").SetEntryUpvoteArgs, RateLimitResult | import("../client/api.js").SetEntryUpvoteResult, string | undefined>>;
295
+ useSetEntryUpvote(): import("convex/react").ReactMutation<import("convex/server").FunctionReference<"mutation", "public", import("../client/api.js").SetEntryUpvoteArgs, import("../client/api.js").SetEntryUpvoteResult | RateLimitResult, string | undefined>>;
272
296
  /** Returns the create-comment/reply mutation. */
273
297
  useCreateComment(): import("convex/react").ReactMutation<import("convex/server").FunctionReference<"mutation", "public", import("../client/api.js").CreateCommentArgs, string | RateLimitResult, string | undefined>>;
274
298
  /** Returns the update-comment mutation. */
@@ -276,7 +300,7 @@ declare function createFeedbackHooksImplementation<RateLimitResult>(api: Feedbac
276
300
  /** Returns the soft-delete-comment mutation. */
277
301
  useDeleteComment(): import("convex/react").ReactMutation<import("convex/server").FunctionReference<"mutation", "public", import("../client/api.js").DeleteCommentArgs, RateLimitResult | null, string | undefined>>;
278
302
  /** Returns the idempotent comment-like state mutation. */
279
- useSetCommentLike(): import("convex/react").ReactMutation<import("convex/server").FunctionReference<"mutation", "public", import("../client/api.js").SetCommentLikeArgs, RateLimitResult | import("../client/api.js").SetCommentLikeResult, string | undefined>>;
303
+ useSetCommentLike(): import("convex/react").ReactMutation<import("convex/server").FunctionReference<"mutation", "public", import("../client/api.js").SetCommentLikeArgs, import("../client/api.js").SetCommentLikeResult | RateLimitResult, string | undefined>>;
280
304
  };
281
305
  type CreatedFeedbackHooks<RateLimitResult> = ReturnType<typeof createFeedbackHooksImplementation<RateLimitResult>>;
282
306
  /** Creates hooks for a feedback API whose rate limiters reject by throwing. */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,KAAK,EACV,WAAW,EACX,SAAS,EACT,SAAS,EACT,WAAW,EAEZ,MAAM,uBAAuB,CAAC;AAE/B;;;;;;;GAOG;AACH,MAAM,WAAW,oBAAoB;IACnC;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;;;OAKG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B;;;;;;;OAOG;IACH,KAAK,CAAC,EAAE,SAAS,SAAS,EAAE,CAAC;IAE7B,uCAAuC;IACvC,MAAM,CA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;;;;;;;;;;;;;;;;IAqBxC;;;;;;;OAOG;4BACqB,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAmB1C;;OAEG;sBACe,eAAe;;;;;;;;;;;;;;IAOjC,+CAA+C;;IAK/C,+CAA+C;;IAK/C,yCAAyC;;IAKzC,0DAA0D;;IAK1D,iDAAiD;;IAKjD,2CAA2C;;IAK3C,gDAAgD;;IAKhD,0DAA0D;;EAK7D;AAED,KAAK,oBAAoB,CAAC,eAAe,IAAI,UAAU,CACrD,OAAO,iCAAiC,CAAC,eAAe,CAAC,CAC1D,CAAC;AAEF,+EAA+E;AAC/E,wBAAgB,mBAAmB,CACjC,GAAG,EAAE,iBAAiB,CAAC,MAAM,GAAG,SAAS,EAAE,KAAK,CAAC,EACjD,OAAO,CAAC,EAAE,oBAAoB,GAC7B,oBAAoB,CAAC,KAAK,CAAC,CAAC;AAE/B,yEAAyE;AACzE,wBAAgB,mBAAmB,CAAC,eAAe,EACjD,GAAG,EAAE,iBAAiB,CAAC,MAAM,GAAG,SAAS,EAAE,eAAe,CAAC,EAC3D,OAAO,CAAC,EAAE,oBAAoB,GAC7B,oBAAoB,CAAC,eAAe,CAAC,CAAC;AASzC;;;;;;;;GAQG;AACH,MAAM,MAAM,aAAa,CAAC,eAAe,GAAG,KAAK,IAC/C,oBAAoB,CAAC,eAAe,CAAC,CAAC"}
@@ -40,6 +40,9 @@ function createFeedbackHooksImplementation(api, options = {}) {
40
40
  const queryArgs = {
41
41
  ...(args.kinds === undefined ? {} : { kinds: [...args.kinds] }),
42
42
  ...(args.status === undefined ? {} : { status: args.status }),
43
+ ...(args.statusFilter === undefined
44
+ ? {}
45
+ : { statusFilter: args.statusFilter }),
43
46
  ...(args.sort === undefined ? {} : { sort: args.sort }),
44
47
  };
45
48
  return usePaginatedQuery(api.listEntries, queryArgs, {
@@ -65,6 +68,9 @@ function createFeedbackHooksImplementation(api, options = {}) {
65
68
  searchQuery,
66
69
  ...(args.kinds === undefined ? {} : { kinds: [...args.kinds] }),
67
70
  ...(args.status === undefined ? {} : { status: args.status }),
71
+ ...(args.statusFilter === undefined
72
+ ? {}
73
+ : { statusFilter: args.statusFilter }),
68
74
  ...(args.limit === undefined ? {} : { limit: args.limit }),
69
75
  };
70
76
  const result = useQuery(api.searchEntries, searchQuery.length === 0 ? "skip" : queryArgs);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/react/index.ts"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAqKrD,MAAM,yBAAyB,GAAyB;IACtD,KAAK,EAAE,EAAE;IACT,OAAO,EAAE,EAAE;CACZ,CAAC;AAEF,SAAS,gBAAgB,CAAC,KAAyB,EAAE,QAAgB;IACnE,OAAO,KAAK,KAAK,SAAS,IAAI,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,CAAC;QAChE,CAAC,CAAC,KAAK;QACP,CAAC,CAAC,QAAQ,CAAC;AACf,CAAC;AAED;;;;;;;;GAQG;AACH,SAAS,iCAAiC,CACxC,GAA2D,EAC3D,UAAgC,EAAE;IAElC,MAAM,aAAa,GAAG,gBAAgB,CAAC,OAAO,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC;IAClE,MAAM,eAAe,GAAG,gBAAgB,CAAC,OAAO,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC;IACtE,MAAM,aAAa,GAAG,gBAAgB,CAAC,OAAO,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC;IAElE,OAAO;QACL;;;WAGG;QACH,SAAS,EAAE;YACT,OAAO,EAAE,aAAa;YACtB,QAAQ,EAAE,eAAe;YACzB,OAAO,EAAE,aAAa;SACd;QAEV;;WAEG;QACH,UAAU,CAAC,OAAuB,EAAE;YAClC,MAAM,SAAS,GAAG;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AI,EAAE;gBAC/C,eAAe,EACb,IAAI,CAAC,eAAe,KAAK,SAAS,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,aAAa;aACvE,CAAC,CAAC;QACL,CAAC;QAED,+CAA+C;QAC/C,cAAc;YACZ,OAAO,WAAW,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;QACtC,CAAC;QAED,+CAA+C;QAC/C,cAAc;YACZ,OAAO,WAAW,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;QACtC,CAAC;QAED,yCAAyC;QACzC,iBAAiB;YACf,OAAO,WAAW,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;QACzC,CAAC;QAED,0DAA0D;QAC1D,iBAAiB;YACf,OAAO,WAAW,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;QACzC,CAAC;QAED,iDAAiD;QACjD,gBAAgB;YACd,OAAO,WAAW,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;QACxC,CAAC;QAED,2CAA2C;QAC3C,gBAAgB;YACd,OAAO,WAAW,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;QACxC,CAAC;QAED,gDAAgD;QAChD,gBAAgB;YACd,OAAO,WAAW,CAAC,GAAG,CAAC,aAAa,CAAC,CAAC;QACxC,CAAC;QAED,0DAA0D;QAC1D,iBAAiB;YACf,OAAO,WAAW,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;QACzC,CAAC;KACF,CAAC;AACJ,CAAC;AAkBD,MAAM,UAAU,mBAAmB,CACjC,GAA2D,EAC3D,UAAgC,EAAE;IAElC,OAAO,iCAAiC,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;AACzD,CAAC"}
package/dist/test.d.ts CHANGED
@@ -9,6 +9,11 @@ declare const _default: {
9
9
  schema: SchemaDefinition<{
10
10
  entries: import("convex/server").TableDefinition<import("convex/values").VObject<{
11
11
  updatedAt?: number | undefined;
12
+ metadata?: {
13
+ standard?: Record<string, string | number | boolean> | undefined;
14
+ additional?: Record<string, string | number | boolean> | undefined;
15
+ } | undefined;
16
+ statusFilter?: "open" | "closed" | undefined;
12
17
  actorId: string;
13
18
  kind: "feedback" | "feature_request" | "bug_report";
14
19
  status: "open" | "under_review" | "planned" | "in_progress" | "completed" | "closed";
@@ -22,6 +27,7 @@ declare const _default: {
22
27
  actorId: import("convex/values").VString<string, "required">;
23
28
  kind: import("convex/values").VUnion<"feedback" | "feature_request" | "bug_report", [import("convex/values").VLiteral<"feedback", "required">, import("convex/values").VLiteral<"feature_request", "required">, import("convex/values").VLiteral<"bug_report", "required">], "required", never>;
24
29
  status: import("convex/values").VUnion<"open" | "under_review" | "planned" | "in_progress" | "completed" | "closed", [import("convex/values").VLiteral<"open", "required">, import("convex/values").VLiteral<"under_review", "required">, import("convex/values").VLiteral<"planned", "required">, import("convex/values").VLiteral<"in_progress", "required">, import("convex/values").VLiteral<"completed", "required">, import("convex/values").VLiteral<"closed", "required">], "required", never>;
30
+ statusFilter: import("convex/values").VUnion<"open" | "closed" | undefined, [import("convex/values").VLiteral<"open", "required">, import("convex/values").VLiteral<"closed", "required">], "optional", never>;
25
31
  title: import("convex/values").VString<string, "required">;
26
32
  body: import("convex/values").VString<string, "required">;
27
33
  normalizedTitle: import("convex/values").VString<string, "required">;
@@ -29,20 +35,31 @@ declare const _default: {
29
35
  upvoteCount: import("convex/values").VFloat64<number, "required">;
30
36
  commentCount: import("convex/values").VFloat64<number, "required">;
31
37
  updatedAt: import("convex/values").VFloat64<number | undefined, "optional">;
32
- }, "required", "actorId" | "kind" | "status" | "title" | "body" | "upvoteCount" | "commentCount" | "updatedAt" | "normalizedTitle" | "searchText">, {
38
+ metadata: import("convex/values").VObject<{
39
+ standard?: Record<string, string | number | boolean> | undefined;
40
+ additional?: Record<string, string | number | boolean> | undefined;
41
+ } | undefined, {
42
+ standard: import("convex/values").VRecord<Record<string, string | number | boolean> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VUnion<string | number | boolean, [import("convex/values").VString<string, "required">, import("convex/values").VFloat64<number, "required">, import("convex/values").VBoolean<boolean, "required">], "required", never>, "optional", string>;
43
+ additional: import("convex/values").VRecord<Record<string, string | number | boolean> | undefined, import("convex/values").VString<string, "required">, import("convex/values").VUnion<string | number | boolean, [import("convex/values").VString<string, "required">, import("convex/values").VFloat64<number, "required">, import("convex/values").VBoolean<boolean, "required">], "required", never>, "optional", string>;
44
+ }, "optional", "standard" | "additional" | `standard.${string}` | `additional.${string}`>;
45
+ }, "required", "actorId" | "kind" | "status" | "title" | "body" | "upvoteCount" | "commentCount" | "updatedAt" | "metadata" | "metadata.standard" | "metadata.additional" | `metadata.standard.${string}` | `metadata.additional.${string}` | "statusFilter" | "normalizedTitle" | "searchText">, {
33
46
  by_kind: ["kind", "_creationTime"];
34
47
  by_status: ["status", "_creationTime"];
35
48
  by_kind_status: ["kind", "status", "_creationTime"];
49
+ by_status_filter: ["statusFilter", "_creationTime"];
50
+ by_kind_status_filter: ["kind", "statusFilter", "_creationTime"];
36
51
  by_upvotes: ["upvoteCount", "_creationTime"];
37
52
  by_kind_upvotes: ["kind", "upvoteCount", "_creationTime"];
38
53
  by_status_upvotes: ["status", "upvoteCount", "_creationTime"];
39
54
  by_kind_status_upvotes: ["kind", "status", "upvoteCount", "_creationTime"];
55
+ by_status_filter_upvotes: ["statusFilter", "upvoteCount", "_creationTime"];
56
+ by_kind_status_filter_upvotes: ["kind", "statusFilter", "upvoteCount", "_creationTime"];
40
57
  by_normalized_title: ["normalizedTitle", "_creationTime"];
41
58
  by_kind_normalized_title: ["kind", "normalizedTitle", "_creationTime"];
42
59
  }, {
43
60
  search: {
44
61
  searchField: "searchText";
45
- filterFields: "kind" | "status";
62
+ filterFields: "kind" | "status" | "statusFilter";
46
63
  };
47
64
  }, {}>;
48
65
  comments: import("convex/server").TableDefinition<import("convex/values").VObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../src/test.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAErE,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAE3C,QAAA,MAAM,OAAO,wCAA0C,CAAC;AAExD,wBAAgB,QAAQ,CACtB,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC,EAC1D,IAAI,SAAa,GAChB,IAAI,CAEN;AAED,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAC3B,wBAA6C"}
1
+ {"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../src/test.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAErE,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAE3C,QAAA,MAAM,OAAO,wCAA0C,CAAC;AAExD,wBAAgB,QAAQ,CACtB,IAAI,EAAE,UAAU,CAAC,gBAAgB,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC,EAC1D,IAAI,SAAa,GAChB,IAAI,CAEN;AAED,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAC3B,wBAA6C"}
package/package.json CHANGED
@@ -1,8 +1,12 @@
1
1
  {
2
2
  "name": "convex-feedback",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Type-safe Convex component for feedback, feature requests, bug reports, voting, comments, and duplicate search.",
5
5
  "license": "Apache-2.0",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/Moumen-io/convex-feedback.git"
9
+ },
6
10
  "type": "module",
7
11
  "sideEffects": false,
8
12
  "files": [
@@ -54,7 +58,7 @@
54
58
  "convex": "^1.44.0",
55
59
  "convex-helpers": "^0.1.120",
56
60
  "convex-test": "^0.0.55",
57
- "react": "^19.2.8",
61
+ "react": "19.2.3",
58
62
  "@types/react": "^19.2.18",
59
63
  "@edge-runtime/vm": "^5.0.0"
60
64
  },