@read-frog/api-contract 0.4.1 → 0.6.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/dist/index.d.ts +1355 -525
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +486 -202
- package/dist/index.js.map +1 -1
- package/package.json +18 -10
- package/src/contracts/beta-access.ts +1 -1
- package/src/contracts/card-template.ts +71 -0
- package/src/contracts/card.ts +45 -0
- package/src/contracts/notebase-column.ts +63 -0
- package/src/contracts/notebase-row.ts +62 -0
- package/src/contracts/notebase.ts +82 -0
- package/src/contracts/shared.ts +1 -1
- package/src/contracts/srs.ts +38 -0
- package/src/contracts/user.ts +17 -0
- package/src/index.ts +22 -10
- package/src/public-errors.ts +46 -12
- package/src/schemas/card.ts +120 -0
- package/src/schemas/notebase-column.ts +74 -0
- package/src/schemas/notebase-row.ts +73 -0
- package/src/schemas/notebase-view.ts +61 -0
- package/src/schemas/notebase.ts +103 -0
- package/src/schemas/srs.ts +129 -0
- package/src/schemas/timezone.ts +23 -0
- package/src/schemas/user.ts +13 -0
- package/src/contracts/column.ts +0 -62
- package/src/contracts/custom-table.ts +0 -82
- package/src/contracts/row.ts +0 -62
- package/src/schemas/column.ts +0 -74
- package/src/schemas/custom-table.ts +0 -86
- package/src/schemas/row.ts +0 -73
- package/src/schemas/view.ts +0 -61
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import * as _$_orpc_contract0 from "@orpc/contract";
|
|
2
1
|
import { ContractRouterClient, ErrorMap } from "@orpc/contract";
|
|
3
|
-
import
|
|
2
|
+
import { CardState, ReviewRating, SRS_REVIEW_DURATION_MS_MAX, ScheduleStatus, SchedulingParams, cardStateSchema, reviewRatingSchema, scheduleStatusSchema, schedulingParamsSchema } from "@read-frog/definitions";
|
|
4
3
|
import { z } from "zod";
|
|
5
|
-
import * as _$zod_v4_core0 from "zod/v4/core";
|
|
6
4
|
|
|
7
5
|
//#region src/public-errors.d.ts
|
|
8
6
|
declare const CellValidationFailureReasonSchema: z.ZodEnum<{
|
|
9
|
-
|
|
7
|
+
unknown_notebase_column: "unknown_notebase_column";
|
|
10
8
|
type_mismatch: "type_mismatch";
|
|
11
9
|
invalid_select_option: "invalid_select_option";
|
|
12
10
|
invalid_date_format: "invalid_date_format";
|
|
@@ -21,7 +19,7 @@ declare const CellValidationFailureDetailsSchema: z.ZodObject<{
|
|
|
21
19
|
}, z.core.$strict>;
|
|
22
20
|
type CellValidationFailureDetails = z.infer<typeof CellValidationFailureDetailsSchema>;
|
|
23
21
|
declare const CellValidationFailedDataSchema: z.ZodObject<{
|
|
24
|
-
|
|
22
|
+
notebaseColumnId: z.ZodString;
|
|
25
23
|
details: z.ZodObject<{
|
|
26
24
|
expectedFormat: z.ZodOptional<z.ZodString>;
|
|
27
25
|
expectedType: z.ZodOptional<z.ZodString>;
|
|
@@ -30,37 +28,72 @@ declare const CellValidationFailedDataSchema: z.ZodObject<{
|
|
|
30
28
|
validOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
31
29
|
}, z.core.$strict>;
|
|
32
30
|
reason: z.ZodEnum<{
|
|
33
|
-
|
|
31
|
+
unknown_notebase_column: "unknown_notebase_column";
|
|
34
32
|
type_mismatch: "type_mismatch";
|
|
35
33
|
invalid_select_option: "invalid_select_option";
|
|
36
34
|
invalid_date_format: "invalid_date_format";
|
|
37
35
|
}>;
|
|
38
36
|
}, z.core.$strict>;
|
|
39
37
|
type CellValidationFailedData = z.infer<typeof CellValidationFailedDataSchema>;
|
|
38
|
+
declare const CardTemplateInvalidColumnsDataSchema: z.ZodObject<{
|
|
39
|
+
notebaseColumnIds: z.ZodArray<z.ZodString>;
|
|
40
|
+
}, z.core.$strict>;
|
|
41
|
+
type CardTemplateInvalidColumnsData = z.infer<typeof CardTemplateInvalidColumnsDataSchema>;
|
|
40
42
|
declare const PUBLIC_APP_ERROR_DEFS: {
|
|
41
43
|
readonly NOTEBASE_BETA_RESTRICTED: {
|
|
42
44
|
readonly message: "Notebase is currently in beta for selected accounts";
|
|
43
45
|
readonly status: 403;
|
|
44
46
|
};
|
|
45
|
-
readonly
|
|
46
|
-
readonly message: "
|
|
47
|
+
readonly NOTEBASE_NOT_FOUND: {
|
|
48
|
+
readonly message: "Notebase not found";
|
|
49
|
+
readonly status: 404;
|
|
50
|
+
};
|
|
51
|
+
readonly NOTEBASE_COLUMN_NOT_FOUND: {
|
|
52
|
+
readonly message: "Notebase column not found";
|
|
47
53
|
readonly status: 404;
|
|
48
54
|
};
|
|
49
|
-
readonly
|
|
50
|
-
readonly message: "
|
|
55
|
+
readonly NOTEBASE_ROW_NOT_FOUND: {
|
|
56
|
+
readonly message: "Notebase row not found";
|
|
51
57
|
readonly status: 404;
|
|
52
58
|
};
|
|
53
|
-
readonly
|
|
54
|
-
readonly message: "
|
|
59
|
+
readonly CARD_NOT_FOUND: {
|
|
60
|
+
readonly message: "Card not found";
|
|
55
61
|
readonly status: 404;
|
|
56
62
|
};
|
|
57
|
-
readonly
|
|
58
|
-
readonly message: "
|
|
63
|
+
readonly CARD_TEMPLATE_NOT_FOUND: {
|
|
64
|
+
readonly message: "Card template not found";
|
|
65
|
+
readonly status: 404;
|
|
66
|
+
};
|
|
67
|
+
readonly CARD_TEMPLATE_INVALID_NOTEBASE_COLUMNS: {
|
|
68
|
+
readonly data: z.ZodObject<{
|
|
69
|
+
notebaseColumnIds: z.ZodArray<z.ZodString>;
|
|
70
|
+
}, z.core.$strict>;
|
|
71
|
+
readonly message: "Card template references unknown notebase columns";
|
|
72
|
+
readonly status: 422;
|
|
73
|
+
};
|
|
74
|
+
readonly CARD_TEMPLATE_NOTEBASE_COLUMN_IN_USE: {
|
|
75
|
+
readonly message: "Notebase column is used by a card template";
|
|
76
|
+
readonly status: 409;
|
|
77
|
+
};
|
|
78
|
+
readonly CARD_NOT_REVIEWABLE: {
|
|
79
|
+
readonly message: "Card cannot be reviewed in its current state";
|
|
80
|
+
readonly status: 409;
|
|
81
|
+
};
|
|
82
|
+
readonly CARD_REVIEW_STATE_STALE: {
|
|
83
|
+
readonly message: "Card review state is stale";
|
|
84
|
+
readonly status: 409;
|
|
85
|
+
};
|
|
86
|
+
readonly CARD_REVIEW_ROLLBACK_UNAVAILABLE: {
|
|
87
|
+
readonly message: "Card review cannot be rolled back";
|
|
88
|
+
readonly status: 409;
|
|
89
|
+
};
|
|
90
|
+
readonly NOTEBASE_VIEW_NOT_FOUND: {
|
|
91
|
+
readonly message: "Notebase view not found";
|
|
59
92
|
readonly status: 404;
|
|
60
93
|
};
|
|
61
94
|
readonly CELL_VALIDATION_FAILED: {
|
|
62
95
|
readonly data: z.ZodObject<{
|
|
63
|
-
|
|
96
|
+
notebaseColumnId: z.ZodString;
|
|
64
97
|
details: z.ZodObject<{
|
|
65
98
|
expectedFormat: z.ZodOptional<z.ZodString>;
|
|
66
99
|
expectedType: z.ZodOptional<z.ZodString>;
|
|
@@ -69,7 +102,7 @@ declare const PUBLIC_APP_ERROR_DEFS: {
|
|
|
69
102
|
validOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
70
103
|
}, z.core.$strict>;
|
|
71
104
|
reason: z.ZodEnum<{
|
|
72
|
-
|
|
105
|
+
unknown_notebase_column: "unknown_notebase_column";
|
|
73
106
|
type_mismatch: "type_mismatch";
|
|
74
107
|
invalid_select_option: "invalid_select_option";
|
|
75
108
|
invalid_date_format: "invalid_date_format";
|
|
@@ -78,8 +111,8 @@ declare const PUBLIC_APP_ERROR_DEFS: {
|
|
|
78
111
|
readonly message: "Cell validation failed";
|
|
79
112
|
readonly status: 422;
|
|
80
113
|
};
|
|
81
|
-
readonly
|
|
82
|
-
readonly message: "Cannot delete primary column";
|
|
114
|
+
readonly PRIMARY_NOTEBASE_COLUMN_DELETE_NOT_ALLOWED: {
|
|
115
|
+
readonly message: "Cannot delete primary notebase column";
|
|
83
116
|
readonly status: 400;
|
|
84
117
|
};
|
|
85
118
|
readonly CONCURRENT_POSITION_CONFLICT: {
|
|
@@ -97,25 +130,56 @@ declare function getPublicErrorDefinition<TCode extends PublicAppErrorCode>(code
|
|
|
97
130
|
readonly message: "Notebase is currently in beta for selected accounts";
|
|
98
131
|
readonly status: 403;
|
|
99
132
|
};
|
|
100
|
-
readonly
|
|
101
|
-
readonly message: "
|
|
133
|
+
readonly NOTEBASE_NOT_FOUND: {
|
|
134
|
+
readonly message: "Notebase not found";
|
|
102
135
|
readonly status: 404;
|
|
103
136
|
};
|
|
104
|
-
readonly
|
|
105
|
-
readonly message: "
|
|
137
|
+
readonly NOTEBASE_COLUMN_NOT_FOUND: {
|
|
138
|
+
readonly message: "Notebase column not found";
|
|
106
139
|
readonly status: 404;
|
|
107
140
|
};
|
|
108
|
-
readonly
|
|
109
|
-
readonly message: "
|
|
141
|
+
readonly NOTEBASE_ROW_NOT_FOUND: {
|
|
142
|
+
readonly message: "Notebase row not found";
|
|
110
143
|
readonly status: 404;
|
|
111
144
|
};
|
|
112
|
-
readonly
|
|
113
|
-
readonly message: "
|
|
145
|
+
readonly CARD_NOT_FOUND: {
|
|
146
|
+
readonly message: "Card not found";
|
|
147
|
+
readonly status: 404;
|
|
148
|
+
};
|
|
149
|
+
readonly CARD_TEMPLATE_NOT_FOUND: {
|
|
150
|
+
readonly message: "Card template not found";
|
|
151
|
+
readonly status: 404;
|
|
152
|
+
};
|
|
153
|
+
readonly CARD_TEMPLATE_INVALID_NOTEBASE_COLUMNS: {
|
|
154
|
+
readonly data: z.ZodObject<{
|
|
155
|
+
notebaseColumnIds: z.ZodArray<z.ZodString>;
|
|
156
|
+
}, z.core.$strict>;
|
|
157
|
+
readonly message: "Card template references unknown notebase columns";
|
|
158
|
+
readonly status: 422;
|
|
159
|
+
};
|
|
160
|
+
readonly CARD_TEMPLATE_NOTEBASE_COLUMN_IN_USE: {
|
|
161
|
+
readonly message: "Notebase column is used by a card template";
|
|
162
|
+
readonly status: 409;
|
|
163
|
+
};
|
|
164
|
+
readonly CARD_NOT_REVIEWABLE: {
|
|
165
|
+
readonly message: "Card cannot be reviewed in its current state";
|
|
166
|
+
readonly status: 409;
|
|
167
|
+
};
|
|
168
|
+
readonly CARD_REVIEW_STATE_STALE: {
|
|
169
|
+
readonly message: "Card review state is stale";
|
|
170
|
+
readonly status: 409;
|
|
171
|
+
};
|
|
172
|
+
readonly CARD_REVIEW_ROLLBACK_UNAVAILABLE: {
|
|
173
|
+
readonly message: "Card review cannot be rolled back";
|
|
174
|
+
readonly status: 409;
|
|
175
|
+
};
|
|
176
|
+
readonly NOTEBASE_VIEW_NOT_FOUND: {
|
|
177
|
+
readonly message: "Notebase view not found";
|
|
114
178
|
readonly status: 404;
|
|
115
179
|
};
|
|
116
180
|
readonly CELL_VALIDATION_FAILED: {
|
|
117
181
|
readonly data: z.ZodObject<{
|
|
118
|
-
|
|
182
|
+
notebaseColumnId: z.ZodString;
|
|
119
183
|
details: z.ZodObject<{
|
|
120
184
|
expectedFormat: z.ZodOptional<z.ZodString>;
|
|
121
185
|
expectedType: z.ZodOptional<z.ZodString>;
|
|
@@ -124,7 +188,7 @@ declare function getPublicErrorDefinition<TCode extends PublicAppErrorCode>(code
|
|
|
124
188
|
validOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
125
189
|
}, z.core.$strict>;
|
|
126
190
|
reason: z.ZodEnum<{
|
|
127
|
-
|
|
191
|
+
unknown_notebase_column: "unknown_notebase_column";
|
|
128
192
|
type_mismatch: "type_mismatch";
|
|
129
193
|
invalid_select_option: "invalid_select_option";
|
|
130
194
|
invalid_date_format: "invalid_date_format";
|
|
@@ -133,8 +197,8 @@ declare function getPublicErrorDefinition<TCode extends PublicAppErrorCode>(code
|
|
|
133
197
|
readonly message: "Cell validation failed";
|
|
134
198
|
readonly status: 422;
|
|
135
199
|
};
|
|
136
|
-
readonly
|
|
137
|
-
readonly message: "Cannot delete primary column";
|
|
200
|
+
readonly PRIMARY_NOTEBASE_COLUMN_DELETE_NOT_ALLOWED: {
|
|
201
|
+
readonly message: "Cannot delete primary notebase column";
|
|
138
202
|
readonly status: 400;
|
|
139
203
|
};
|
|
140
204
|
readonly CONCURRENT_POSITION_CONFLICT: {
|
|
@@ -163,11 +227,461 @@ declare const BetaAccessStatusOutputSchema: z.ZodObject<{
|
|
|
163
227
|
}, z.core.$strip>;
|
|
164
228
|
type BetaAccessStatusOutput = z.infer<typeof BetaAccessStatusOutputSchema>;
|
|
165
229
|
//#endregion
|
|
166
|
-
//#region src/schemas/
|
|
167
|
-
declare const
|
|
168
|
-
|
|
230
|
+
//#region src/schemas/card.d.ts
|
|
231
|
+
declare const cardTemplateSchema: z.ZodObject<{
|
|
232
|
+
id: z.ZodUUID;
|
|
233
|
+
notebaseId: z.ZodUUID;
|
|
234
|
+
name: z.ZodString;
|
|
235
|
+
config: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
236
|
+
type: z.ZodLiteral<"basic">;
|
|
237
|
+
frontPattern: z.ZodString;
|
|
238
|
+
backPattern: z.ZodString;
|
|
239
|
+
}, z.core.$strict>], "type">;
|
|
240
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
241
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
242
|
+
}, z.core.$strip>;
|
|
243
|
+
type CardTemplate = z.infer<typeof cardTemplateSchema>;
|
|
244
|
+
declare const CardTemplateListInputSchema: z.ZodObject<{
|
|
245
|
+
notebaseId: z.ZodUUID;
|
|
246
|
+
}, z.core.$strip>;
|
|
247
|
+
type CardTemplateListInput = z.infer<typeof CardTemplateListInputSchema>;
|
|
248
|
+
declare const CardTemplateListOutputSchema: z.ZodArray<z.ZodObject<{
|
|
249
|
+
id: z.ZodUUID;
|
|
250
|
+
notebaseId: z.ZodUUID;
|
|
251
|
+
name: z.ZodString;
|
|
252
|
+
config: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
253
|
+
type: z.ZodLiteral<"basic">;
|
|
254
|
+
frontPattern: z.ZodString;
|
|
255
|
+
backPattern: z.ZodString;
|
|
256
|
+
}, z.core.$strict>], "type">;
|
|
257
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
258
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
259
|
+
}, z.core.$strip>>;
|
|
260
|
+
type CardTemplateListOutput = z.infer<typeof CardTemplateListOutputSchema>;
|
|
261
|
+
declare const CardTemplateGetInputSchema: z.ZodObject<{
|
|
262
|
+
id: z.ZodUUID;
|
|
263
|
+
}, z.core.$strip>;
|
|
264
|
+
type CardTemplateGetInput = z.infer<typeof CardTemplateGetInputSchema>;
|
|
265
|
+
declare const CardTemplateGetOutputSchema: z.ZodObject<{
|
|
266
|
+
id: z.ZodUUID;
|
|
267
|
+
notebaseId: z.ZodUUID;
|
|
268
|
+
name: z.ZodString;
|
|
269
|
+
config: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
270
|
+
type: z.ZodLiteral<"basic">;
|
|
271
|
+
frontPattern: z.ZodString;
|
|
272
|
+
backPattern: z.ZodString;
|
|
273
|
+
}, z.core.$strict>], "type">;
|
|
274
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
275
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
276
|
+
}, z.core.$strip>;
|
|
277
|
+
type CardTemplateGetOutput = z.infer<typeof CardTemplateGetOutputSchema>;
|
|
278
|
+
declare const CardTemplateCreateInputSchema: z.ZodObject<{
|
|
279
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
280
|
+
notebaseId: z.ZodUUID;
|
|
281
|
+
name: z.ZodString;
|
|
282
|
+
config: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
283
|
+
type: z.ZodLiteral<"basic">;
|
|
284
|
+
frontPattern: z.ZodString;
|
|
285
|
+
backPattern: z.ZodString;
|
|
286
|
+
}, z.core.$strict>], "type">;
|
|
287
|
+
}, z.core.$strict>;
|
|
288
|
+
type CardTemplateCreateInput = z.infer<typeof CardTemplateCreateInputSchema>;
|
|
289
|
+
declare const CardTemplateCreateOutputSchema: z.ZodObject<{
|
|
290
|
+
id: z.ZodUUID;
|
|
291
|
+
notebaseId: z.ZodUUID;
|
|
292
|
+
name: z.ZodString;
|
|
293
|
+
config: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
294
|
+
type: z.ZodLiteral<"basic">;
|
|
295
|
+
frontPattern: z.ZodString;
|
|
296
|
+
backPattern: z.ZodString;
|
|
297
|
+
}, z.core.$strict>], "type">;
|
|
298
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
299
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
300
|
+
txid: z.ZodNumber;
|
|
301
|
+
}, z.core.$strip>;
|
|
302
|
+
type CardTemplateCreateOutput = z.infer<typeof CardTemplateCreateOutputSchema>;
|
|
303
|
+
declare const CardTemplateUpdateInputSchema: z.ZodObject<{
|
|
304
|
+
id: z.ZodUUID;
|
|
305
|
+
name: z.ZodOptional<z.ZodString>;
|
|
306
|
+
config: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
307
|
+
type: z.ZodLiteral<"basic">;
|
|
308
|
+
frontPattern: z.ZodString;
|
|
309
|
+
backPattern: z.ZodString;
|
|
310
|
+
}, z.core.$strict>], "type">>;
|
|
311
|
+
}, z.core.$strict>;
|
|
312
|
+
type CardTemplateUpdateInput = z.infer<typeof CardTemplateUpdateInputSchema>;
|
|
313
|
+
declare const CardTemplateUpdateOutputSchema: z.ZodObject<{
|
|
314
|
+
id: z.ZodUUID;
|
|
315
|
+
notebaseId: z.ZodUUID;
|
|
316
|
+
name: z.ZodString;
|
|
317
|
+
config: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
318
|
+
type: z.ZodLiteral<"basic">;
|
|
319
|
+
frontPattern: z.ZodString;
|
|
320
|
+
backPattern: z.ZodString;
|
|
321
|
+
}, z.core.$strict>], "type">;
|
|
322
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
323
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
324
|
+
txid: z.ZodNumber;
|
|
325
|
+
}, z.core.$strip>;
|
|
326
|
+
type CardTemplateUpdateOutput = z.infer<typeof CardTemplateUpdateOutputSchema>;
|
|
327
|
+
declare const CardTemplateDeleteInputSchema: z.ZodObject<{
|
|
328
|
+
id: z.ZodUUID;
|
|
329
|
+
}, z.core.$strip>;
|
|
330
|
+
type CardTemplateDeleteInput = z.infer<typeof CardTemplateDeleteInputSchema>;
|
|
331
|
+
declare const CardTemplateDeleteOutputSchema: z.ZodObject<{
|
|
332
|
+
txid: z.ZodNumber;
|
|
333
|
+
}, z.core.$strip>;
|
|
334
|
+
type CardTemplateDeleteOutput = z.infer<typeof CardTemplateDeleteOutputSchema>;
|
|
335
|
+
declare const cardSchema: z.ZodObject<{
|
|
336
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
337
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
338
|
+
buriedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
339
|
+
state: z.ZodEnum<{
|
|
340
|
+
new: "new";
|
|
341
|
+
learning: "learning";
|
|
342
|
+
review: "review";
|
|
343
|
+
relearning: "relearning";
|
|
344
|
+
}>;
|
|
345
|
+
scheduleStatus: z.ZodEnum<{
|
|
346
|
+
new: "new";
|
|
347
|
+
learning: "learning";
|
|
348
|
+
review: "review";
|
|
349
|
+
suspended: "suspended";
|
|
350
|
+
buried: "buried";
|
|
351
|
+
}>;
|
|
352
|
+
dueAt: z.ZodCoercedDate<unknown>;
|
|
353
|
+
lastReviewTime: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
354
|
+
stability: z.ZodNumber;
|
|
355
|
+
difficulty: z.ZodNumber;
|
|
356
|
+
step: z.ZodNumber;
|
|
357
|
+
lapses: z.ZodNumber;
|
|
358
|
+
reps: z.ZodNumber;
|
|
359
|
+
id: z.ZodUUID;
|
|
360
|
+
notebaseId: z.ZodUUID;
|
|
361
|
+
notebaseRowId: z.ZodUUID;
|
|
362
|
+
templateId: z.ZodUUID;
|
|
363
|
+
variantKey: z.ZodString;
|
|
364
|
+
}, z.core.$strip>;
|
|
365
|
+
type Card = z.infer<typeof cardSchema>;
|
|
366
|
+
declare const renderedCardSchema: z.ZodObject<{
|
|
367
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
368
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
369
|
+
buriedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
370
|
+
state: z.ZodEnum<{
|
|
371
|
+
new: "new";
|
|
372
|
+
learning: "learning";
|
|
373
|
+
review: "review";
|
|
374
|
+
relearning: "relearning";
|
|
375
|
+
}>;
|
|
376
|
+
scheduleStatus: z.ZodEnum<{
|
|
377
|
+
new: "new";
|
|
378
|
+
learning: "learning";
|
|
379
|
+
review: "review";
|
|
380
|
+
suspended: "suspended";
|
|
381
|
+
buried: "buried";
|
|
382
|
+
}>;
|
|
383
|
+
dueAt: z.ZodCoercedDate<unknown>;
|
|
384
|
+
lastReviewTime: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
385
|
+
stability: z.ZodNumber;
|
|
386
|
+
difficulty: z.ZodNumber;
|
|
387
|
+
step: z.ZodNumber;
|
|
388
|
+
lapses: z.ZodNumber;
|
|
389
|
+
reps: z.ZodNumber;
|
|
390
|
+
id: z.ZodUUID;
|
|
391
|
+
notebaseId: z.ZodUUID;
|
|
392
|
+
notebaseRowId: z.ZodUUID;
|
|
393
|
+
templateId: z.ZodUUID;
|
|
394
|
+
variantKey: z.ZodString;
|
|
395
|
+
front: z.ZodString;
|
|
396
|
+
back: z.ZodString;
|
|
397
|
+
}, z.core.$strip>;
|
|
398
|
+
type RenderedCard = z.infer<typeof renderedCardSchema>;
|
|
399
|
+
declare const CardListInputSchema: z.ZodObject<{
|
|
400
|
+
notebaseId: z.ZodUUID;
|
|
401
|
+
templateId: z.ZodOptional<z.ZodUUID>;
|
|
402
|
+
limit: z.ZodOptional<z.ZodNumber>;
|
|
403
|
+
offset: z.ZodOptional<z.ZodNumber>;
|
|
404
|
+
}, z.core.$strip>;
|
|
405
|
+
type CardListInput = z.infer<typeof CardListInputSchema>;
|
|
406
|
+
declare const CardListOutputSchema: z.ZodArray<z.ZodObject<{
|
|
407
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
408
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
409
|
+
buriedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
410
|
+
state: z.ZodEnum<{
|
|
411
|
+
new: "new";
|
|
412
|
+
learning: "learning";
|
|
413
|
+
review: "review";
|
|
414
|
+
relearning: "relearning";
|
|
415
|
+
}>;
|
|
416
|
+
scheduleStatus: z.ZodEnum<{
|
|
417
|
+
new: "new";
|
|
418
|
+
learning: "learning";
|
|
419
|
+
review: "review";
|
|
420
|
+
suspended: "suspended";
|
|
421
|
+
buried: "buried";
|
|
422
|
+
}>;
|
|
423
|
+
dueAt: z.ZodCoercedDate<unknown>;
|
|
424
|
+
lastReviewTime: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
425
|
+
stability: z.ZodNumber;
|
|
426
|
+
difficulty: z.ZodNumber;
|
|
427
|
+
step: z.ZodNumber;
|
|
428
|
+
lapses: z.ZodNumber;
|
|
429
|
+
reps: z.ZodNumber;
|
|
430
|
+
id: z.ZodUUID;
|
|
431
|
+
notebaseId: z.ZodUUID;
|
|
432
|
+
notebaseRowId: z.ZodUUID;
|
|
433
|
+
templateId: z.ZodUUID;
|
|
434
|
+
variantKey: z.ZodString;
|
|
435
|
+
front: z.ZodString;
|
|
436
|
+
back: z.ZodString;
|
|
437
|
+
}, z.core.$strip>>;
|
|
438
|
+
type CardListOutput = z.infer<typeof CardListOutputSchema>;
|
|
439
|
+
declare const CardGetInputSchema: z.ZodObject<{
|
|
440
|
+
id: z.ZodUUID;
|
|
441
|
+
}, z.core.$strip>;
|
|
442
|
+
type CardGetInput = z.infer<typeof CardGetInputSchema>;
|
|
443
|
+
declare const CardGetOutputSchema: z.ZodObject<{
|
|
444
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
445
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
446
|
+
buriedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
447
|
+
state: z.ZodEnum<{
|
|
448
|
+
new: "new";
|
|
449
|
+
learning: "learning";
|
|
450
|
+
review: "review";
|
|
451
|
+
relearning: "relearning";
|
|
452
|
+
}>;
|
|
453
|
+
scheduleStatus: z.ZodEnum<{
|
|
454
|
+
new: "new";
|
|
455
|
+
learning: "learning";
|
|
456
|
+
review: "review";
|
|
457
|
+
suspended: "suspended";
|
|
458
|
+
buried: "buried";
|
|
459
|
+
}>;
|
|
460
|
+
dueAt: z.ZodCoercedDate<unknown>;
|
|
461
|
+
lastReviewTime: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
462
|
+
stability: z.ZodNumber;
|
|
463
|
+
difficulty: z.ZodNumber;
|
|
464
|
+
step: z.ZodNumber;
|
|
465
|
+
lapses: z.ZodNumber;
|
|
466
|
+
reps: z.ZodNumber;
|
|
467
|
+
id: z.ZodUUID;
|
|
468
|
+
notebaseId: z.ZodUUID;
|
|
469
|
+
notebaseRowId: z.ZodUUID;
|
|
470
|
+
templateId: z.ZodUUID;
|
|
471
|
+
variantKey: z.ZodString;
|
|
472
|
+
front: z.ZodString;
|
|
473
|
+
back: z.ZodString;
|
|
474
|
+
}, z.core.$strip>;
|
|
475
|
+
type CardGetOutput = z.infer<typeof CardGetOutputSchema>;
|
|
476
|
+
declare const CardGenerateInputSchema: z.ZodObject<{
|
|
477
|
+
notebaseId: z.ZodUUID;
|
|
478
|
+
templateId: z.ZodOptional<z.ZodUUID>;
|
|
479
|
+
}, z.core.$strip>;
|
|
480
|
+
type CardGenerateInput = z.infer<typeof CardGenerateInputSchema>;
|
|
481
|
+
declare const CardGenerateOutputSchema: z.ZodObject<{
|
|
482
|
+
created: z.ZodNumber;
|
|
483
|
+
txid: z.ZodNumber;
|
|
484
|
+
}, z.core.$strip>;
|
|
485
|
+
type CardGenerateOutput = z.infer<typeof CardGenerateOutputSchema>;
|
|
486
|
+
//#endregion
|
|
487
|
+
//#region src/schemas/notebase.d.ts
|
|
488
|
+
declare const NotebaseListInputSchema: z.ZodObject<{}, z.core.$strip>;
|
|
489
|
+
type NotebaseListInput = z.infer<typeof NotebaseListInputSchema>;
|
|
490
|
+
declare const NotebaseListItemSchema: z.ZodObject<{
|
|
491
|
+
id: z.ZodString;
|
|
492
|
+
name: z.ZodString;
|
|
493
|
+
}, z.core.$strip>;
|
|
494
|
+
type NotebaseListItem = z.infer<typeof NotebaseListItemSchema>;
|
|
495
|
+
declare const NotebaseListOutputSchema: z.ZodArray<z.ZodObject<{
|
|
496
|
+
id: z.ZodString;
|
|
497
|
+
name: z.ZodString;
|
|
498
|
+
}, z.core.$strip>>;
|
|
499
|
+
type NotebaseListOutput = z.infer<typeof NotebaseListOutputSchema>;
|
|
500
|
+
declare const notebaseSchema: z.ZodObject<{
|
|
501
|
+
id: z.ZodString;
|
|
502
|
+
userId: z.ZodString;
|
|
503
|
+
name: z.ZodString;
|
|
504
|
+
srsNewPerDay: z.ZodNumber;
|
|
505
|
+
srsReviewsPerDay: z.ZodNumber;
|
|
506
|
+
srsDesiredRetention: z.ZodNumber;
|
|
507
|
+
srsEnableShortTerm: z.ZodBoolean;
|
|
508
|
+
srsMaximumInterval: z.ZodNumber;
|
|
509
|
+
srsLearningSteps: z.ZodArray<z.ZodTemplateLiteral<`${number}m` | `${number}h` | `${number}d`>>;
|
|
510
|
+
srsRelearningSteps: z.ZodArray<z.ZodTemplateLiteral<`${number}m` | `${number}h` | `${number}d`>>;
|
|
511
|
+
srsLeechThreshold: z.ZodNumber;
|
|
512
|
+
srsEnableFuzz: z.ZodBoolean;
|
|
513
|
+
srsWeights: z.ZodNullable<z.ZodArray<z.ZodNumber>>;
|
|
514
|
+
createdAt: z.ZodDate;
|
|
515
|
+
updatedAt: z.ZodDate;
|
|
516
|
+
}, z.core.$strip>;
|
|
517
|
+
type Notebase = z.infer<typeof notebaseSchema>;
|
|
518
|
+
declare const notebaseCreateDataSchema: z.ZodObject<{
|
|
519
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
520
|
+
name: z.ZodString;
|
|
521
|
+
}, z.core.$strict>;
|
|
522
|
+
type NotebaseCreateData = z.infer<typeof notebaseCreateDataSchema>;
|
|
523
|
+
declare const NotebaseCreateInputSchema: z.ZodObject<{
|
|
524
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
525
|
+
name: z.ZodString;
|
|
526
|
+
}, z.core.$strict>;
|
|
527
|
+
type NotebaseCreateInput = z.infer<typeof NotebaseCreateInputSchema>;
|
|
528
|
+
declare const NotebaseCreateOutputSchema: z.ZodObject<{
|
|
529
|
+
txid: z.ZodNumber;
|
|
530
|
+
}, z.core.$strip>;
|
|
531
|
+
type NotebaseCreateOutput = z.infer<typeof NotebaseCreateOutputSchema>;
|
|
532
|
+
declare const notebaseUpdateDataSchema: z.ZodObject<{
|
|
533
|
+
name: z.ZodOptional<z.ZodString>;
|
|
534
|
+
}, z.core.$strict>;
|
|
535
|
+
type NotebaseUpdateData = z.infer<typeof notebaseUpdateDataSchema>;
|
|
536
|
+
declare const NotebaseUpdateInputSchema: z.ZodObject<{
|
|
537
|
+
name: z.ZodOptional<z.ZodString>;
|
|
538
|
+
id: z.ZodUUID;
|
|
539
|
+
}, z.core.$strict>;
|
|
540
|
+
type NotebaseUpdateInput = z.infer<typeof NotebaseUpdateInputSchema>;
|
|
541
|
+
declare const NotebaseUpdateOutputSchema: z.ZodObject<{
|
|
542
|
+
txid: z.ZodNumber;
|
|
543
|
+
}, z.core.$strip>;
|
|
544
|
+
type NotebaseUpdateOutput = z.infer<typeof NotebaseUpdateOutputSchema>;
|
|
545
|
+
declare const NotebaseDeleteInputSchema: z.ZodObject<{
|
|
546
|
+
id: z.ZodUUID;
|
|
547
|
+
}, z.core.$strip>;
|
|
548
|
+
type NotebaseDeleteInput = z.infer<typeof NotebaseDeleteInputSchema>;
|
|
549
|
+
declare const NotebaseDeleteOutputSchema: z.ZodObject<{
|
|
550
|
+
txid: z.ZodNumber;
|
|
551
|
+
}, z.core.$strip>;
|
|
552
|
+
type NotebaseDeleteOutput = z.infer<typeof NotebaseDeleteOutputSchema>;
|
|
553
|
+
declare const NotebaseGetInputSchema: z.ZodObject<{
|
|
554
|
+
id: z.ZodUUID;
|
|
555
|
+
}, z.core.$strip>;
|
|
556
|
+
type NotebaseGetInput = z.infer<typeof NotebaseGetInputSchema>;
|
|
557
|
+
declare const NotebaseGetSchemaInputSchema: z.ZodObject<{
|
|
558
|
+
id: z.ZodUUID;
|
|
559
|
+
}, z.core.$strip>;
|
|
560
|
+
type NotebaseGetSchemaInput = z.infer<typeof NotebaseGetSchemaInputSchema>;
|
|
561
|
+
declare const NotebaseGetOutputSchema: z.ZodObject<{
|
|
562
|
+
id: z.ZodString;
|
|
563
|
+
userId: z.ZodString;
|
|
564
|
+
name: z.ZodString;
|
|
565
|
+
srsNewPerDay: z.ZodNumber;
|
|
566
|
+
srsReviewsPerDay: z.ZodNumber;
|
|
567
|
+
srsDesiredRetention: z.ZodNumber;
|
|
568
|
+
srsEnableShortTerm: z.ZodBoolean;
|
|
569
|
+
srsMaximumInterval: z.ZodNumber;
|
|
570
|
+
srsLearningSteps: z.ZodArray<z.ZodTemplateLiteral<`${number}m` | `${number}h` | `${number}d`>>;
|
|
571
|
+
srsRelearningSteps: z.ZodArray<z.ZodTemplateLiteral<`${number}m` | `${number}h` | `${number}d`>>;
|
|
572
|
+
srsLeechThreshold: z.ZodNumber;
|
|
573
|
+
srsEnableFuzz: z.ZodBoolean;
|
|
574
|
+
srsWeights: z.ZodNullable<z.ZodArray<z.ZodNumber>>;
|
|
575
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
576
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
577
|
+
notebaseColumns: z.ZodArray<z.ZodObject<{
|
|
578
|
+
id: z.ZodString;
|
|
579
|
+
notebaseId: z.ZodString;
|
|
580
|
+
name: z.ZodString;
|
|
581
|
+
config: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
582
|
+
type: z.ZodLiteral<"string">;
|
|
583
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
584
|
+
type: z.ZodLiteral<"number">;
|
|
585
|
+
decimal: z.ZodDefault<z.ZodNumber>;
|
|
586
|
+
format: z.ZodDefault<z.ZodEnum<{
|
|
587
|
+
number: "number";
|
|
588
|
+
currency: "currency";
|
|
589
|
+
percent: "percent";
|
|
590
|
+
}>>;
|
|
591
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
592
|
+
type: z.ZodLiteral<"boolean">;
|
|
593
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
594
|
+
type: z.ZodLiteral<"date">;
|
|
595
|
+
dateFormat: z.ZodOptional<z.ZodString>;
|
|
596
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
597
|
+
type: z.ZodLiteral<"select">;
|
|
598
|
+
options: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
599
|
+
id: z.ZodString;
|
|
600
|
+
value: z.ZodString;
|
|
601
|
+
color: z.ZodString;
|
|
602
|
+
}, z.core.$strip>>>;
|
|
603
|
+
}, z.core.$strip>], "type">;
|
|
604
|
+
position: z.ZodNumber;
|
|
605
|
+
isPrimary: z.ZodBoolean;
|
|
606
|
+
width: z.ZodNullable<z.ZodNumber>;
|
|
607
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
608
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
609
|
+
}, z.core.$strip>>;
|
|
610
|
+
notebaseRows: z.ZodArray<z.ZodObject<{
|
|
611
|
+
id: z.ZodString;
|
|
612
|
+
notebaseId: z.ZodString;
|
|
613
|
+
cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
614
|
+
position: z.ZodNumber;
|
|
615
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
616
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
617
|
+
}, z.core.$strip>>;
|
|
618
|
+
notebaseViews: z.ZodArray<z.ZodObject<{
|
|
619
|
+
id: z.ZodString;
|
|
620
|
+
notebaseId: z.ZodString;
|
|
621
|
+
name: z.ZodString;
|
|
622
|
+
type: z.ZodEnum<{
|
|
623
|
+
table: "table";
|
|
624
|
+
kanban: "kanban";
|
|
625
|
+
gallery: "gallery";
|
|
626
|
+
}>;
|
|
627
|
+
config: z.ZodNullable<z.ZodObject<{
|
|
628
|
+
notebaseColumnWidths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
629
|
+
hiddenNotebaseColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
630
|
+
groupByNotebaseColumnId: z.ZodOptional<z.ZodString>;
|
|
631
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
632
|
+
filters: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
|
|
633
|
+
sorts: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
|
|
634
|
+
position: z.ZodNumber;
|
|
635
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
636
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
637
|
+
}, z.core.$strip>>;
|
|
638
|
+
}, z.core.$strip>;
|
|
639
|
+
type NotebaseGetOutput = z.infer<typeof NotebaseGetOutputSchema>;
|
|
640
|
+
declare const NotebaseGetSchemaOutputSchema: z.ZodObject<{
|
|
169
641
|
id: z.ZodString;
|
|
170
|
-
|
|
642
|
+
name: z.ZodString;
|
|
643
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
644
|
+
notebaseColumns: z.ZodArray<z.ZodObject<{
|
|
645
|
+
id: z.ZodString;
|
|
646
|
+
notebaseId: z.ZodString;
|
|
647
|
+
name: z.ZodString;
|
|
648
|
+
config: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
649
|
+
type: z.ZodLiteral<"string">;
|
|
650
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
651
|
+
type: z.ZodLiteral<"number">;
|
|
652
|
+
decimal: z.ZodDefault<z.ZodNumber>;
|
|
653
|
+
format: z.ZodDefault<z.ZodEnum<{
|
|
654
|
+
number: "number";
|
|
655
|
+
currency: "currency";
|
|
656
|
+
percent: "percent";
|
|
657
|
+
}>>;
|
|
658
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
659
|
+
type: z.ZodLiteral<"boolean">;
|
|
660
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
661
|
+
type: z.ZodLiteral<"date">;
|
|
662
|
+
dateFormat: z.ZodOptional<z.ZodString>;
|
|
663
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
664
|
+
type: z.ZodLiteral<"select">;
|
|
665
|
+
options: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
666
|
+
id: z.ZodString;
|
|
667
|
+
value: z.ZodString;
|
|
668
|
+
color: z.ZodString;
|
|
669
|
+
}, z.core.$strip>>>;
|
|
670
|
+
}, z.core.$strip>], "type">;
|
|
671
|
+
position: z.ZodNumber;
|
|
672
|
+
isPrimary: z.ZodBoolean;
|
|
673
|
+
width: z.ZodNullable<z.ZodNumber>;
|
|
674
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
675
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
676
|
+
}, z.core.$strip>>;
|
|
677
|
+
}, z.core.$strip>;
|
|
678
|
+
type NotebaseGetSchemaOutput = z.infer<typeof NotebaseGetSchemaOutputSchema>;
|
|
679
|
+
//#endregion
|
|
680
|
+
//#region src/schemas/notebase-column.d.ts
|
|
681
|
+
declare const notebaseColumnWidthSchema: z.ZodNumber;
|
|
682
|
+
declare const notebaseColumnSchema: z.ZodObject<{
|
|
683
|
+
id: z.ZodString;
|
|
684
|
+
notebaseId: z.ZodString;
|
|
171
685
|
name: z.ZodString;
|
|
172
686
|
config: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
173
687
|
type: z.ZodLiteral<"string">;
|
|
@@ -198,8 +712,8 @@ declare const tableColumnSchema: z.ZodObject<{
|
|
|
198
712
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
199
713
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
200
714
|
}, z.core.$strip>;
|
|
201
|
-
type
|
|
202
|
-
declare const
|
|
715
|
+
type NotebaseColumn = z.infer<typeof notebaseColumnSchema>;
|
|
716
|
+
declare const notebaseColumnCreateDataSchema: z.ZodObject<{
|
|
203
717
|
id: z.ZodOptional<z.ZodUUID>;
|
|
204
718
|
name: z.ZodString;
|
|
205
719
|
config: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -226,8 +740,8 @@ declare const columnCreateDataSchema: z.ZodObject<{
|
|
|
226
740
|
}, z.core.$strip>>>;
|
|
227
741
|
}, z.core.$strip>], "type">;
|
|
228
742
|
}, z.core.$strict>;
|
|
229
|
-
type
|
|
230
|
-
declare const
|
|
743
|
+
type NotebaseColumnCreateData = z.infer<typeof notebaseColumnCreateDataSchema>;
|
|
744
|
+
declare const notebaseColumnUpdateDataSchema: z.ZodObject<{
|
|
231
745
|
name: z.ZodOptional<z.ZodString>;
|
|
232
746
|
config: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
233
747
|
type: z.ZodLiteral<"string">;
|
|
@@ -254,9 +768,9 @@ declare const columnUpdateDataSchema: z.ZodObject<{
|
|
|
254
768
|
}, z.core.$strip>], "type">>;
|
|
255
769
|
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
256
770
|
}, z.core.$strict>;
|
|
257
|
-
type
|
|
258
|
-
declare const
|
|
259
|
-
|
|
771
|
+
type NotebaseColumnUpdateData = z.infer<typeof notebaseColumnUpdateDataSchema>;
|
|
772
|
+
declare const NotebaseColumnCreateInputSchema: z.ZodObject<{
|
|
773
|
+
notebaseId: z.ZodUUID;
|
|
260
774
|
data: z.ZodObject<{
|
|
261
775
|
id: z.ZodOptional<z.ZodUUID>;
|
|
262
776
|
name: z.ZodString;
|
|
@@ -285,13 +799,13 @@ declare const ColumnCreateInputSchema: z.ZodObject<{
|
|
|
285
799
|
}, z.core.$strip>], "type">;
|
|
286
800
|
}, z.core.$strict>;
|
|
287
801
|
}, z.core.$strip>;
|
|
288
|
-
type
|
|
289
|
-
declare const
|
|
802
|
+
type NotebaseColumnCreateInput = z.infer<typeof NotebaseColumnCreateInputSchema>;
|
|
803
|
+
declare const NotebaseColumnCreateOutputSchema: z.ZodObject<{
|
|
290
804
|
txid: z.ZodNumber;
|
|
291
805
|
}, z.core.$strip>;
|
|
292
|
-
type
|
|
293
|
-
declare const
|
|
294
|
-
|
|
806
|
+
type NotebaseColumnCreateOutput = z.infer<typeof NotebaseColumnCreateOutputSchema>;
|
|
807
|
+
declare const NotebaseColumnUpdateInputSchema: z.ZodObject<{
|
|
808
|
+
notebaseColumnId: z.ZodUUID;
|
|
295
809
|
data: z.ZodObject<{
|
|
296
810
|
name: z.ZodOptional<z.ZodString>;
|
|
297
811
|
config: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -320,301 +834,136 @@ declare const ColumnUpdateInputSchema: z.ZodObject<{
|
|
|
320
834
|
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
321
835
|
}, z.core.$strict>;
|
|
322
836
|
}, z.core.$strip>;
|
|
323
|
-
type
|
|
324
|
-
declare const
|
|
837
|
+
type NotebaseColumnUpdateInput = z.infer<typeof NotebaseColumnUpdateInputSchema>;
|
|
838
|
+
declare const NotebaseColumnUpdateOutputSchema: z.ZodObject<{
|
|
325
839
|
txid: z.ZodNumber;
|
|
326
840
|
}, z.core.$strip>;
|
|
327
|
-
type
|
|
328
|
-
declare const
|
|
329
|
-
|
|
841
|
+
type NotebaseColumnUpdateOutput = z.infer<typeof NotebaseColumnUpdateOutputSchema>;
|
|
842
|
+
declare const NotebaseColumnDeleteInputSchema: z.ZodObject<{
|
|
843
|
+
notebaseColumnId: z.ZodUUID;
|
|
330
844
|
}, z.core.$strip>;
|
|
331
|
-
type
|
|
332
|
-
declare const
|
|
845
|
+
type NotebaseColumnDeleteInput = z.infer<typeof NotebaseColumnDeleteInputSchema>;
|
|
846
|
+
declare const NotebaseColumnDeleteOutputSchema: z.ZodObject<{
|
|
333
847
|
txid: z.ZodNumber;
|
|
334
848
|
}, z.core.$strip>;
|
|
335
|
-
type
|
|
336
|
-
declare const
|
|
337
|
-
|
|
849
|
+
type NotebaseColumnDeleteOutput = z.infer<typeof NotebaseColumnDeleteOutputSchema>;
|
|
850
|
+
declare const NotebaseColumnReorderInputSchema: z.ZodObject<{
|
|
851
|
+
notebaseId: z.ZodUUID;
|
|
338
852
|
ids: z.ZodArray<z.ZodUUID>;
|
|
339
853
|
}, z.core.$strip>;
|
|
340
|
-
type
|
|
341
|
-
declare const
|
|
854
|
+
type NotebaseColumnReorderInput = z.infer<typeof NotebaseColumnReorderInputSchema>;
|
|
855
|
+
declare const NotebaseColumnReorderOutputSchema: z.ZodObject<{
|
|
342
856
|
txid: z.ZodNumber;
|
|
343
857
|
}, z.core.$strip>;
|
|
344
|
-
type
|
|
858
|
+
type NotebaseColumnReorderOutput = z.infer<typeof NotebaseColumnReorderOutputSchema>;
|
|
345
859
|
//#endregion
|
|
346
|
-
//#region src/schemas/
|
|
347
|
-
declare const
|
|
348
|
-
|
|
349
|
-
declare const CustomTableListItemSchema: z.ZodObject<{
|
|
350
|
-
id: z.ZodString;
|
|
351
|
-
name: z.ZodString;
|
|
352
|
-
}, z.core.$strip>;
|
|
353
|
-
type CustomTableListItem = z.infer<typeof CustomTableListItemSchema>;
|
|
354
|
-
declare const CustomTableListOutputSchema: z.ZodArray<z.ZodObject<{
|
|
355
|
-
id: z.ZodString;
|
|
356
|
-
name: z.ZodString;
|
|
357
|
-
}, z.core.$strip>>;
|
|
358
|
-
type CustomTableListOutput = z.infer<typeof CustomTableListOutputSchema>;
|
|
359
|
-
declare const customTableCreateDataSchema: z.ZodObject<{
|
|
360
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
361
|
-
name: z.ZodString;
|
|
362
|
-
}, z.core.$strict>;
|
|
363
|
-
type CustomTableCreateData = z.infer<typeof customTableCreateDataSchema>;
|
|
364
|
-
declare const CustomTableCreateInputSchema: z.ZodObject<{
|
|
365
|
-
id: z.ZodOptional<z.ZodUUID>;
|
|
366
|
-
name: z.ZodString;
|
|
367
|
-
}, z.core.$strict>;
|
|
368
|
-
type CustomTableCreateInput = z.infer<typeof CustomTableCreateInputSchema>;
|
|
369
|
-
declare const CustomTableCreateOutputSchema: z.ZodObject<{
|
|
370
|
-
txid: z.ZodNumber;
|
|
371
|
-
}, z.core.$strip>;
|
|
372
|
-
type CustomTableCreateOutput = z.infer<typeof CustomTableCreateOutputSchema>;
|
|
373
|
-
declare const customTableUpdateDataSchema: z.ZodObject<{
|
|
374
|
-
name: z.ZodOptional<z.ZodString>;
|
|
375
|
-
}, z.core.$strict>;
|
|
376
|
-
type CustomTableUpdateData = z.infer<typeof customTableUpdateDataSchema>;
|
|
377
|
-
declare const CustomTableUpdateInputSchema: z.ZodObject<{
|
|
378
|
-
name: z.ZodOptional<z.ZodString>;
|
|
379
|
-
id: z.ZodUUID;
|
|
380
|
-
}, z.core.$strict>;
|
|
381
|
-
type CustomTableUpdateInput = z.infer<typeof CustomTableUpdateInputSchema>;
|
|
382
|
-
declare const CustomTableUpdateOutputSchema: z.ZodObject<{
|
|
383
|
-
txid: z.ZodNumber;
|
|
384
|
-
}, z.core.$strip>;
|
|
385
|
-
type CustomTableUpdateOutput = z.infer<typeof CustomTableUpdateOutputSchema>;
|
|
386
|
-
declare const CustomTableDeleteInputSchema: z.ZodObject<{
|
|
387
|
-
id: z.ZodUUID;
|
|
388
|
-
}, z.core.$strip>;
|
|
389
|
-
type CustomTableDeleteInput = z.infer<typeof CustomTableDeleteInputSchema>;
|
|
390
|
-
declare const CustomTableDeleteOutputSchema: z.ZodObject<{
|
|
391
|
-
txid: z.ZodNumber;
|
|
392
|
-
}, z.core.$strip>;
|
|
393
|
-
type CustomTableDeleteOutput = z.infer<typeof CustomTableDeleteOutputSchema>;
|
|
394
|
-
declare const CustomTableGetInputSchema: z.ZodObject<{
|
|
395
|
-
id: z.ZodUUID;
|
|
396
|
-
}, z.core.$strip>;
|
|
397
|
-
type CustomTableGetInput = z.infer<typeof CustomTableGetInputSchema>;
|
|
398
|
-
declare const CustomTableGetSchemaInputSchema: z.ZodObject<{
|
|
399
|
-
id: z.ZodUUID;
|
|
400
|
-
}, z.core.$strip>;
|
|
401
|
-
type CustomTableGetSchemaInput = z.infer<typeof CustomTableGetSchemaInputSchema>;
|
|
402
|
-
declare const CustomTableGetOutputSchema: z.ZodObject<{
|
|
860
|
+
//#region src/schemas/notebase-row.d.ts
|
|
861
|
+
declare const notebaseRowCellsSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
862
|
+
declare const notebaseRowSchema: z.ZodObject<{
|
|
403
863
|
id: z.ZodString;
|
|
404
|
-
|
|
405
|
-
name: z.ZodString;
|
|
406
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
407
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
408
|
-
columns: z.ZodArray<z.ZodObject<{
|
|
409
|
-
id: z.ZodString;
|
|
410
|
-
tableId: z.ZodString;
|
|
411
|
-
name: z.ZodString;
|
|
412
|
-
config: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
413
|
-
type: z.ZodLiteral<"string">;
|
|
414
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
415
|
-
type: z.ZodLiteral<"number">;
|
|
416
|
-
decimal: z.ZodDefault<z.ZodNumber>;
|
|
417
|
-
format: z.ZodDefault<z.ZodEnum<{
|
|
418
|
-
number: "number";
|
|
419
|
-
currency: "currency";
|
|
420
|
-
percent: "percent";
|
|
421
|
-
}>>;
|
|
422
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
423
|
-
type: z.ZodLiteral<"boolean">;
|
|
424
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
425
|
-
type: z.ZodLiteral<"date">;
|
|
426
|
-
dateFormat: z.ZodOptional<z.ZodString>;
|
|
427
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
428
|
-
type: z.ZodLiteral<"select">;
|
|
429
|
-
options: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
430
|
-
id: z.ZodString;
|
|
431
|
-
value: z.ZodString;
|
|
432
|
-
color: z.ZodString;
|
|
433
|
-
}, z.core.$strip>>>;
|
|
434
|
-
}, z.core.$strip>], "type">;
|
|
435
|
-
position: z.ZodNumber;
|
|
436
|
-
isPrimary: z.ZodBoolean;
|
|
437
|
-
width: z.ZodNullable<z.ZodNumber>;
|
|
438
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
439
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
440
|
-
}, z.core.$strip>>;
|
|
441
|
-
rows: z.ZodArray<z.ZodObject<{
|
|
442
|
-
id: z.ZodString;
|
|
443
|
-
tableId: z.ZodString;
|
|
444
|
-
cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
445
|
-
position: z.ZodNumber;
|
|
446
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
447
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
448
|
-
}, z.core.$strip>>;
|
|
449
|
-
views: z.ZodArray<z.ZodObject<{
|
|
450
|
-
id: z.ZodString;
|
|
451
|
-
tableId: z.ZodString;
|
|
452
|
-
name: z.ZodString;
|
|
453
|
-
type: z.ZodEnum<{
|
|
454
|
-
table: "table";
|
|
455
|
-
kanban: "kanban";
|
|
456
|
-
gallery: "gallery";
|
|
457
|
-
}>;
|
|
458
|
-
config: z.ZodNullable<z.ZodObject<{
|
|
459
|
-
columnWidths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
460
|
-
hiddenColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
461
|
-
groupByColumnId: z.ZodOptional<z.ZodString>;
|
|
462
|
-
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
463
|
-
filters: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
|
|
464
|
-
sorts: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
|
|
465
|
-
position: z.ZodNumber;
|
|
466
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
467
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
468
|
-
}, z.core.$strip>>;
|
|
469
|
-
}, z.core.$strip>;
|
|
470
|
-
type CustomTableGetOutput = z.infer<typeof CustomTableGetOutputSchema>;
|
|
471
|
-
declare const CustomTableGetSchemaOutputSchema: z.ZodObject<{
|
|
472
|
-
id: z.ZodString;
|
|
473
|
-
name: z.ZodString;
|
|
474
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
475
|
-
columns: z.ZodArray<z.ZodObject<{
|
|
476
|
-
id: z.ZodString;
|
|
477
|
-
tableId: z.ZodString;
|
|
478
|
-
name: z.ZodString;
|
|
479
|
-
config: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
480
|
-
type: z.ZodLiteral<"string">;
|
|
481
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
482
|
-
type: z.ZodLiteral<"number">;
|
|
483
|
-
decimal: z.ZodDefault<z.ZodNumber>;
|
|
484
|
-
format: z.ZodDefault<z.ZodEnum<{
|
|
485
|
-
number: "number";
|
|
486
|
-
currency: "currency";
|
|
487
|
-
percent: "percent";
|
|
488
|
-
}>>;
|
|
489
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
490
|
-
type: z.ZodLiteral<"boolean">;
|
|
491
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
492
|
-
type: z.ZodLiteral<"date">;
|
|
493
|
-
dateFormat: z.ZodOptional<z.ZodString>;
|
|
494
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
495
|
-
type: z.ZodLiteral<"select">;
|
|
496
|
-
options: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
497
|
-
id: z.ZodString;
|
|
498
|
-
value: z.ZodString;
|
|
499
|
-
color: z.ZodString;
|
|
500
|
-
}, z.core.$strip>>>;
|
|
501
|
-
}, z.core.$strip>], "type">;
|
|
502
|
-
position: z.ZodNumber;
|
|
503
|
-
isPrimary: z.ZodBoolean;
|
|
504
|
-
width: z.ZodNullable<z.ZodNumber>;
|
|
505
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
506
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
507
|
-
}, z.core.$strip>>;
|
|
508
|
-
}, z.core.$strip>;
|
|
509
|
-
type CustomTableGetSchemaOutput = z.infer<typeof CustomTableGetSchemaOutputSchema>;
|
|
510
|
-
//#endregion
|
|
511
|
-
//#region src/schemas/row.d.ts
|
|
512
|
-
declare const rowCellsSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
513
|
-
declare const tableRowSchema: z.ZodObject<{
|
|
514
|
-
id: z.ZodString;
|
|
515
|
-
tableId: z.ZodString;
|
|
864
|
+
notebaseId: z.ZodString;
|
|
516
865
|
cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
517
866
|
position: z.ZodNumber;
|
|
518
867
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
519
868
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
520
869
|
}, z.core.$strip>;
|
|
521
|
-
type
|
|
522
|
-
declare const
|
|
870
|
+
type NotebaseRow = z.infer<typeof notebaseRowSchema>;
|
|
871
|
+
declare const notebaseRowCreateDataSchema: z.ZodObject<{
|
|
523
872
|
id: z.ZodOptional<z.ZodUUID>;
|
|
524
873
|
cells: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
525
874
|
}, z.core.$strict>;
|
|
526
|
-
type
|
|
527
|
-
declare const
|
|
875
|
+
type NotebaseRowCreateData = z.infer<typeof notebaseRowCreateDataSchema>;
|
|
876
|
+
declare const notebaseRowUpdateDataSchema: z.ZodObject<{
|
|
528
877
|
cells: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
529
878
|
}, z.core.$strict>;
|
|
530
|
-
type
|
|
531
|
-
declare const
|
|
532
|
-
|
|
879
|
+
type NotebaseRowUpdateData = z.infer<typeof notebaseRowUpdateDataSchema>;
|
|
880
|
+
declare const NotebaseRowCreateInputSchema: z.ZodObject<{
|
|
881
|
+
notebaseId: z.ZodUUID;
|
|
533
882
|
data: z.ZodObject<{
|
|
534
883
|
id: z.ZodOptional<z.ZodUUID>;
|
|
535
884
|
cells: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
536
885
|
}, z.core.$strict>;
|
|
537
886
|
}, z.core.$strip>;
|
|
538
|
-
type
|
|
539
|
-
declare const
|
|
887
|
+
type NotebaseRowCreateInput = z.infer<typeof NotebaseRowCreateInputSchema>;
|
|
888
|
+
declare const NotebaseRowCreateOutputSchema: z.ZodObject<{
|
|
540
889
|
txid: z.ZodNumber;
|
|
541
890
|
}, z.core.$strip>;
|
|
542
|
-
type
|
|
543
|
-
declare const
|
|
544
|
-
|
|
891
|
+
type NotebaseRowCreateOutput = z.infer<typeof NotebaseRowCreateOutputSchema>;
|
|
892
|
+
declare const NotebaseRowUpdateInputSchema: z.ZodObject<{
|
|
893
|
+
notebaseRowId: z.ZodUUID;
|
|
545
894
|
data: z.ZodObject<{
|
|
546
895
|
cells: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
547
896
|
}, z.core.$strict>;
|
|
548
897
|
}, z.core.$strip>;
|
|
549
|
-
type
|
|
550
|
-
declare const
|
|
898
|
+
type NotebaseRowUpdateInput = z.infer<typeof NotebaseRowUpdateInputSchema>;
|
|
899
|
+
declare const NotebaseRowUpdateOutputSchema: z.ZodObject<{
|
|
551
900
|
id: z.ZodUUID;
|
|
552
|
-
|
|
901
|
+
notebaseId: z.ZodUUID;
|
|
553
902
|
cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
554
903
|
position: z.ZodNumber;
|
|
555
904
|
createdAt: z.ZodDate;
|
|
556
905
|
updatedAt: z.ZodDate;
|
|
557
906
|
txid: z.ZodNumber;
|
|
558
907
|
}, z.core.$strip>;
|
|
559
|
-
type
|
|
560
|
-
declare const
|
|
561
|
-
|
|
908
|
+
type NotebaseRowUpdateOutput = z.infer<typeof NotebaseRowUpdateOutputSchema>;
|
|
909
|
+
declare const NotebaseRowDeleteInputSchema: z.ZodObject<{
|
|
910
|
+
notebaseRowId: z.ZodUUID;
|
|
562
911
|
}, z.core.$strip>;
|
|
563
|
-
type
|
|
564
|
-
declare const
|
|
912
|
+
type NotebaseRowDeleteInput = z.infer<typeof NotebaseRowDeleteInputSchema>;
|
|
913
|
+
declare const NotebaseRowDeleteOutputSchema: z.ZodObject<{
|
|
565
914
|
txid: z.ZodNumber;
|
|
566
915
|
}, z.core.$strip>;
|
|
567
|
-
type
|
|
568
|
-
declare const
|
|
569
|
-
|
|
916
|
+
type NotebaseRowDeleteOutput = z.infer<typeof NotebaseRowDeleteOutputSchema>;
|
|
917
|
+
declare const NotebaseRowReorderInputSchema: z.ZodObject<{
|
|
918
|
+
notebaseId: z.ZodUUID;
|
|
570
919
|
ids: z.ZodArray<z.ZodUUID>;
|
|
571
920
|
}, z.core.$strip>;
|
|
572
|
-
type
|
|
573
|
-
declare const
|
|
921
|
+
type NotebaseRowReorderInput = z.infer<typeof NotebaseRowReorderInputSchema>;
|
|
922
|
+
declare const NotebaseRowReorderOutputSchema: z.ZodObject<{
|
|
574
923
|
txid: z.ZodNumber;
|
|
575
924
|
}, z.core.$strip>;
|
|
576
|
-
type
|
|
925
|
+
type NotebaseRowReorderOutput = z.infer<typeof NotebaseRowReorderOutputSchema>;
|
|
577
926
|
//#endregion
|
|
578
|
-
//#region src/schemas/view.d.ts
|
|
579
|
-
declare const
|
|
927
|
+
//#region src/schemas/notebase-view.d.ts
|
|
928
|
+
declare const notebaseViewTypeSchema: z.ZodEnum<{
|
|
580
929
|
table: "table";
|
|
581
930
|
kanban: "kanban";
|
|
582
931
|
gallery: "gallery";
|
|
583
932
|
}>;
|
|
584
|
-
type
|
|
585
|
-
declare const
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
933
|
+
type NotebaseViewType = z.infer<typeof notebaseViewTypeSchema>;
|
|
934
|
+
declare const notebaseViewConfigSchema: z.ZodObject<{
|
|
935
|
+
notebaseColumnWidths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
936
|
+
hiddenNotebaseColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
937
|
+
groupByNotebaseColumnId: z.ZodOptional<z.ZodString>;
|
|
589
938
|
}, z.core.$catchall<z.ZodUnknown>>;
|
|
590
|
-
type
|
|
591
|
-
declare const
|
|
592
|
-
|
|
939
|
+
type NotebaseViewConfig = z.infer<typeof notebaseViewConfigSchema>;
|
|
940
|
+
declare const notebaseViewFilterSchema: z.ZodObject<{
|
|
941
|
+
notebaseColumnId: z.ZodString;
|
|
593
942
|
operator: z.ZodString;
|
|
594
943
|
value: z.ZodUnknown;
|
|
595
944
|
}, z.core.$strict>;
|
|
596
|
-
type
|
|
597
|
-
declare const
|
|
598
|
-
|
|
945
|
+
type NotebaseViewFilter = z.infer<typeof notebaseViewFilterSchema>;
|
|
946
|
+
declare const notebaseViewFiltersSchema: z.ZodArray<z.ZodObject<{
|
|
947
|
+
notebaseColumnId: z.ZodString;
|
|
599
948
|
operator: z.ZodString;
|
|
600
949
|
value: z.ZodUnknown;
|
|
601
950
|
}, z.core.$strict>>;
|
|
602
|
-
declare const
|
|
603
|
-
|
|
951
|
+
declare const notebaseViewSortSchema: z.ZodObject<{
|
|
952
|
+
notebaseColumnId: z.ZodString;
|
|
604
953
|
direction: z.ZodEnum<{
|
|
605
954
|
asc: "asc";
|
|
606
955
|
desc: "desc";
|
|
607
956
|
}>;
|
|
608
957
|
}, z.core.$strict>;
|
|
609
|
-
type
|
|
610
|
-
declare const
|
|
611
|
-
|
|
958
|
+
type NotebaseViewSort = z.infer<typeof notebaseViewSortSchema>;
|
|
959
|
+
declare const notebaseViewSortsSchema: z.ZodArray<z.ZodObject<{
|
|
960
|
+
notebaseColumnId: z.ZodString;
|
|
612
961
|
direction: z.ZodEnum<{
|
|
613
962
|
asc: "asc";
|
|
614
963
|
desc: "desc";
|
|
615
964
|
}>;
|
|
616
965
|
}, z.core.$strict>>;
|
|
617
|
-
declare const
|
|
966
|
+
declare const notebaseViewCreateDataSchema: z.ZodObject<{
|
|
618
967
|
id: z.ZodOptional<z.ZodUUID>;
|
|
619
968
|
name: z.ZodString;
|
|
620
969
|
type: z.ZodEnum<{
|
|
@@ -623,25 +972,25 @@ declare const viewCreateDataSchema: z.ZodObject<{
|
|
|
623
972
|
gallery: "gallery";
|
|
624
973
|
}>;
|
|
625
974
|
config: z.ZodOptional<z.ZodObject<{
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
975
|
+
notebaseColumnWidths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
976
|
+
hiddenNotebaseColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
977
|
+
groupByNotebaseColumnId: z.ZodOptional<z.ZodString>;
|
|
629
978
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
630
979
|
filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
631
|
-
|
|
980
|
+
notebaseColumnId: z.ZodString;
|
|
632
981
|
operator: z.ZodString;
|
|
633
982
|
value: z.ZodUnknown;
|
|
634
983
|
}, z.core.$strict>>>;
|
|
635
984
|
sorts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
636
|
-
|
|
985
|
+
notebaseColumnId: z.ZodString;
|
|
637
986
|
direction: z.ZodEnum<{
|
|
638
987
|
asc: "asc";
|
|
639
988
|
desc: "desc";
|
|
640
989
|
}>;
|
|
641
990
|
}, z.core.$strict>>>;
|
|
642
991
|
}, z.core.$strict>;
|
|
643
|
-
type
|
|
644
|
-
declare const
|
|
992
|
+
type NotebaseViewCreateData = z.infer<typeof notebaseViewCreateDataSchema>;
|
|
993
|
+
declare const notebaseViewUpdateDataSchema: z.ZodObject<{
|
|
645
994
|
name: z.ZodOptional<z.ZodString>;
|
|
646
995
|
type: z.ZodOptional<z.ZodEnum<{
|
|
647
996
|
table: "table";
|
|
@@ -649,27 +998,27 @@ declare const viewUpdateDataSchema: z.ZodObject<{
|
|
|
649
998
|
gallery: "gallery";
|
|
650
999
|
}>>;
|
|
651
1000
|
config: z.ZodOptional<z.ZodObject<{
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
1001
|
+
notebaseColumnWidths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1002
|
+
hiddenNotebaseColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1003
|
+
groupByNotebaseColumnId: z.ZodOptional<z.ZodString>;
|
|
655
1004
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
656
1005
|
filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
657
|
-
|
|
1006
|
+
notebaseColumnId: z.ZodString;
|
|
658
1007
|
operator: z.ZodString;
|
|
659
1008
|
value: z.ZodUnknown;
|
|
660
1009
|
}, z.core.$strict>>>;
|
|
661
1010
|
sorts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
662
|
-
|
|
1011
|
+
notebaseColumnId: z.ZodString;
|
|
663
1012
|
direction: z.ZodEnum<{
|
|
664
1013
|
asc: "asc";
|
|
665
1014
|
desc: "desc";
|
|
666
1015
|
}>;
|
|
667
1016
|
}, z.core.$strict>>>;
|
|
668
1017
|
}, z.core.$strict>;
|
|
669
|
-
type
|
|
670
|
-
declare const
|
|
1018
|
+
type NotebaseViewUpdateData = z.infer<typeof notebaseViewUpdateDataSchema>;
|
|
1019
|
+
declare const notebaseViewSchema: z.ZodObject<{
|
|
671
1020
|
id: z.ZodString;
|
|
672
|
-
|
|
1021
|
+
notebaseId: z.ZodString;
|
|
673
1022
|
name: z.ZodString;
|
|
674
1023
|
type: z.ZodEnum<{
|
|
675
1024
|
table: "table";
|
|
@@ -677,9 +1026,9 @@ declare const tableViewSchema: z.ZodObject<{
|
|
|
677
1026
|
gallery: "gallery";
|
|
678
1027
|
}>;
|
|
679
1028
|
config: z.ZodNullable<z.ZodObject<{
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
1029
|
+
notebaseColumnWidths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
1030
|
+
hiddenNotebaseColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1031
|
+
groupByNotebaseColumnId: z.ZodOptional<z.ZodString>;
|
|
683
1032
|
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
684
1033
|
filters: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
|
|
685
1034
|
sorts: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
|
|
@@ -687,270 +1036,751 @@ declare const tableViewSchema: z.ZodObject<{
|
|
|
687
1036
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
688
1037
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
689
1038
|
}, z.core.$strip>;
|
|
690
|
-
type
|
|
1039
|
+
type NotebaseView = z.infer<typeof notebaseViewSchema>;
|
|
1040
|
+
//#endregion
|
|
1041
|
+
//#region src/schemas/timezone.d.ts
|
|
1042
|
+
declare const timezoneSchema: z.ZodString;
|
|
1043
|
+
type Timezone = z.infer<typeof timezoneSchema>;
|
|
1044
|
+
//#endregion
|
|
1045
|
+
//#region src/schemas/srs.d.ts
|
|
1046
|
+
declare const stepSchema: z.ZodTemplateLiteral<`${number}m` | `${number}h` | `${number}d`>;
|
|
1047
|
+
type Step = z.infer<typeof stepSchema>;
|
|
1048
|
+
declare const SRS_REVIEW_CLIENT_ID_NAMESPACE = "6ba7b811-9dad-11d1-80b4-00c04fd430c8";
|
|
1049
|
+
interface SrsReviewClientIdCard {
|
|
1050
|
+
id: string;
|
|
1051
|
+
lastReviewTime: Date | string | null;
|
|
1052
|
+
}
|
|
1053
|
+
declare function createSrsReviewClientId(card: SrsReviewClientIdCard): Promise<string>;
|
|
1054
|
+
declare const srsReviewInputSchema: z.ZodObject<{
|
|
1055
|
+
cardId: z.ZodUUID;
|
|
1056
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
1057
|
+
rating: z.ZodEnum<{
|
|
1058
|
+
again: "again";
|
|
1059
|
+
hard: "hard";
|
|
1060
|
+
good: "good";
|
|
1061
|
+
easy: "easy";
|
|
1062
|
+
}>;
|
|
1063
|
+
durationMs: z.ZodNumber;
|
|
1064
|
+
timezone: z.ZodString;
|
|
1065
|
+
}, z.core.$strict>;
|
|
1066
|
+
type SrsReviewInput = z.infer<typeof srsReviewInputSchema>;
|
|
1067
|
+
declare const srsRollbackReviewInputSchema: z.ZodObject<{
|
|
1068
|
+
cardId: z.ZodUUID;
|
|
1069
|
+
}, z.core.$strict>;
|
|
1070
|
+
type SrsRollbackReviewInput = z.infer<typeof srsRollbackReviewInputSchema>;
|
|
1071
|
+
declare const srsRevlogSchema: z.ZodObject<{
|
|
1072
|
+
id: z.ZodUUID;
|
|
1073
|
+
notebaseId: z.ZodUUID;
|
|
1074
|
+
cardId: z.ZodUUID;
|
|
1075
|
+
rating: z.ZodEnum<{
|
|
1076
|
+
again: "again";
|
|
1077
|
+
hard: "hard";
|
|
1078
|
+
good: "good";
|
|
1079
|
+
easy: "easy";
|
|
1080
|
+
}>;
|
|
1081
|
+
state: z.ZodEnum<{
|
|
1082
|
+
new: "new";
|
|
1083
|
+
learning: "learning";
|
|
1084
|
+
review: "review";
|
|
1085
|
+
relearning: "relearning";
|
|
1086
|
+
}>;
|
|
1087
|
+
afterScheduleStatus: z.ZodEnum<{
|
|
1088
|
+
new: "new";
|
|
1089
|
+
learning: "learning";
|
|
1090
|
+
review: "review";
|
|
1091
|
+
suspended: "suspended";
|
|
1092
|
+
buried: "buried";
|
|
1093
|
+
}>;
|
|
1094
|
+
reviewedAt: z.ZodCoercedDate<unknown>;
|
|
1095
|
+
durationMs: z.ZodNumber;
|
|
1096
|
+
fsrsReviewLogSnapshot: z.ZodObject<{
|
|
1097
|
+
rating: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>;
|
|
1098
|
+
state: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
1099
|
+
dueAt: z.ZodString;
|
|
1100
|
+
stability: z.ZodNumber;
|
|
1101
|
+
difficulty: z.ZodNumber;
|
|
1102
|
+
scheduledDays: z.ZodNumber;
|
|
1103
|
+
learningSteps: z.ZodNumber;
|
|
1104
|
+
review: z.ZodString;
|
|
1105
|
+
}, z.core.$strict>;
|
|
1106
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
1107
|
+
}, z.core.$strip>;
|
|
1108
|
+
type SrsRevlog = z.infer<typeof srsRevlogSchema>;
|
|
1109
|
+
declare const srsReviewOutputSchema: z.ZodObject<{
|
|
1110
|
+
card: z.ZodObject<{
|
|
1111
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
1112
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
1113
|
+
buriedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1114
|
+
state: z.ZodEnum<{
|
|
1115
|
+
new: "new";
|
|
1116
|
+
learning: "learning";
|
|
1117
|
+
review: "review";
|
|
1118
|
+
relearning: "relearning";
|
|
1119
|
+
}>;
|
|
1120
|
+
scheduleStatus: z.ZodEnum<{
|
|
1121
|
+
new: "new";
|
|
1122
|
+
learning: "learning";
|
|
1123
|
+
review: "review";
|
|
1124
|
+
suspended: "suspended";
|
|
1125
|
+
buried: "buried";
|
|
1126
|
+
}>;
|
|
1127
|
+
dueAt: z.ZodCoercedDate<unknown>;
|
|
1128
|
+
lastReviewTime: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1129
|
+
stability: z.ZodNumber;
|
|
1130
|
+
difficulty: z.ZodNumber;
|
|
1131
|
+
step: z.ZodNumber;
|
|
1132
|
+
lapses: z.ZodNumber;
|
|
1133
|
+
reps: z.ZodNumber;
|
|
1134
|
+
id: z.ZodUUID;
|
|
1135
|
+
notebaseId: z.ZodUUID;
|
|
1136
|
+
notebaseRowId: z.ZodUUID;
|
|
1137
|
+
templateId: z.ZodUUID;
|
|
1138
|
+
variantKey: z.ZodString;
|
|
1139
|
+
}, z.core.$strip>;
|
|
1140
|
+
revlog: z.ZodObject<{
|
|
1141
|
+
id: z.ZodUUID;
|
|
1142
|
+
notebaseId: z.ZodUUID;
|
|
1143
|
+
cardId: z.ZodUUID;
|
|
1144
|
+
rating: z.ZodEnum<{
|
|
1145
|
+
again: "again";
|
|
1146
|
+
hard: "hard";
|
|
1147
|
+
good: "good";
|
|
1148
|
+
easy: "easy";
|
|
1149
|
+
}>;
|
|
1150
|
+
state: z.ZodEnum<{
|
|
1151
|
+
new: "new";
|
|
1152
|
+
learning: "learning";
|
|
1153
|
+
review: "review";
|
|
1154
|
+
relearning: "relearning";
|
|
1155
|
+
}>;
|
|
1156
|
+
afterScheduleStatus: z.ZodEnum<{
|
|
1157
|
+
new: "new";
|
|
1158
|
+
learning: "learning";
|
|
1159
|
+
review: "review";
|
|
1160
|
+
suspended: "suspended";
|
|
1161
|
+
buried: "buried";
|
|
1162
|
+
}>;
|
|
1163
|
+
reviewedAt: z.ZodCoercedDate<unknown>;
|
|
1164
|
+
durationMs: z.ZodNumber;
|
|
1165
|
+
fsrsReviewLogSnapshot: z.ZodObject<{
|
|
1166
|
+
rating: z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>, z.ZodLiteral<4>]>;
|
|
1167
|
+
state: z.ZodUnion<readonly [z.ZodLiteral<0>, z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>;
|
|
1168
|
+
dueAt: z.ZodString;
|
|
1169
|
+
stability: z.ZodNumber;
|
|
1170
|
+
difficulty: z.ZodNumber;
|
|
1171
|
+
scheduledDays: z.ZodNumber;
|
|
1172
|
+
learningSteps: z.ZodNumber;
|
|
1173
|
+
review: z.ZodString;
|
|
1174
|
+
}, z.core.$strict>;
|
|
1175
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
1176
|
+
}, z.core.$strip>;
|
|
1177
|
+
txid: z.ZodNumber;
|
|
1178
|
+
}, z.core.$strip>;
|
|
1179
|
+
type SrsReviewOutput = z.infer<typeof srsReviewOutputSchema>;
|
|
1180
|
+
declare const srsRollbackReviewOutputSchema: z.ZodObject<{
|
|
1181
|
+
card: z.ZodObject<{
|
|
1182
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
1183
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
1184
|
+
buriedAt: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1185
|
+
state: z.ZodEnum<{
|
|
1186
|
+
new: "new";
|
|
1187
|
+
learning: "learning";
|
|
1188
|
+
review: "review";
|
|
1189
|
+
relearning: "relearning";
|
|
1190
|
+
}>;
|
|
1191
|
+
scheduleStatus: z.ZodEnum<{
|
|
1192
|
+
new: "new";
|
|
1193
|
+
learning: "learning";
|
|
1194
|
+
review: "review";
|
|
1195
|
+
suspended: "suspended";
|
|
1196
|
+
buried: "buried";
|
|
1197
|
+
}>;
|
|
1198
|
+
dueAt: z.ZodCoercedDate<unknown>;
|
|
1199
|
+
lastReviewTime: z.ZodNullable<z.ZodCoercedDate<unknown>>;
|
|
1200
|
+
stability: z.ZodNumber;
|
|
1201
|
+
difficulty: z.ZodNumber;
|
|
1202
|
+
step: z.ZodNumber;
|
|
1203
|
+
lapses: z.ZodNumber;
|
|
1204
|
+
reps: z.ZodNumber;
|
|
1205
|
+
id: z.ZodUUID;
|
|
1206
|
+
notebaseId: z.ZodUUID;
|
|
1207
|
+
notebaseRowId: z.ZodUUID;
|
|
1208
|
+
templateId: z.ZodUUID;
|
|
1209
|
+
variantKey: z.ZodString;
|
|
1210
|
+
}, z.core.$strip>;
|
|
1211
|
+
rolledBackRevlogId: z.ZodUUID;
|
|
1212
|
+
txid: z.ZodNumber;
|
|
1213
|
+
}, z.core.$strip>;
|
|
1214
|
+
type SrsRollbackReviewOutput = z.infer<typeof srsRollbackReviewOutputSchema>;
|
|
1215
|
+
//#endregion
|
|
1216
|
+
//#region src/schemas/user.d.ts
|
|
1217
|
+
declare const userEnsureTimezoneInputSchema: z.ZodObject<{
|
|
1218
|
+
timezone: z.ZodString;
|
|
1219
|
+
}, z.core.$strict>;
|
|
1220
|
+
type UserEnsureTimezoneInput = z.infer<typeof userEnsureTimezoneInputSchema>;
|
|
1221
|
+
declare const userEnsureTimezoneOutputSchema: z.ZodObject<{
|
|
1222
|
+
timezone: z.ZodString;
|
|
1223
|
+
updated: z.ZodBoolean;
|
|
1224
|
+
}, z.core.$strict>;
|
|
1225
|
+
type UserEnsureTimezoneOutput = z.infer<typeof userEnsureTimezoneOutputSchema>;
|
|
691
1226
|
//#endregion
|
|
692
1227
|
//#region src/index.d.ts
|
|
693
1228
|
declare const contract: {
|
|
694
1229
|
betaAccess: {
|
|
695
|
-
status:
|
|
696
|
-
featureKey:
|
|
1230
|
+
status: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1231
|
+
featureKey: import("zod").ZodEnum<{
|
|
697
1232
|
notebase: "notebase";
|
|
698
1233
|
}>;
|
|
699
|
-
},
|
|
700
|
-
featureKey:
|
|
1234
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
1235
|
+
featureKey: import("zod").ZodEnum<{
|
|
701
1236
|
notebase: "notebase";
|
|
702
1237
|
}>;
|
|
703
|
-
allowed:
|
|
704
|
-
},
|
|
705
|
-
};
|
|
706
|
-
|
|
707
|
-
list:
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
1238
|
+
allowed: import("zod").ZodBoolean;
|
|
1239
|
+
}, import("zod/v4/core").$strip>, Record<never, never>, Record<never, never>>;
|
|
1240
|
+
};
|
|
1241
|
+
card: {
|
|
1242
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1243
|
+
notebaseId: import("zod").ZodUUID;
|
|
1244
|
+
templateId: import("zod").ZodOptional<import("zod").ZodUUID>;
|
|
1245
|
+
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1246
|
+
offset: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1247
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodArray<import("zod").ZodObject<{
|
|
1248
|
+
createdAt: import("zod").ZodCoercedDate<unknown>;
|
|
1249
|
+
updatedAt: import("zod").ZodCoercedDate<unknown>;
|
|
1250
|
+
buriedAt: import("zod").ZodNullable<import("zod").ZodCoercedDate<unknown>>;
|
|
1251
|
+
state: import("zod").ZodEnum<{
|
|
1252
|
+
new: "new";
|
|
1253
|
+
learning: "learning";
|
|
1254
|
+
review: "review";
|
|
1255
|
+
relearning: "relearning";
|
|
1256
|
+
}>;
|
|
1257
|
+
scheduleStatus: import("zod").ZodEnum<{
|
|
1258
|
+
new: "new";
|
|
1259
|
+
learning: "learning";
|
|
1260
|
+
review: "review";
|
|
1261
|
+
suspended: "suspended";
|
|
1262
|
+
buried: "buried";
|
|
1263
|
+
}>;
|
|
1264
|
+
dueAt: import("zod").ZodCoercedDate<unknown>;
|
|
1265
|
+
lastReviewTime: import("zod").ZodNullable<import("zod").ZodCoercedDate<unknown>>;
|
|
1266
|
+
stability: import("zod").ZodNumber;
|
|
1267
|
+
difficulty: import("zod").ZodNumber;
|
|
1268
|
+
step: import("zod").ZodNumber;
|
|
1269
|
+
lapses: import("zod").ZodNumber;
|
|
1270
|
+
reps: import("zod").ZodNumber;
|
|
1271
|
+
id: import("zod").ZodUUID;
|
|
1272
|
+
notebaseId: import("zod").ZodUUID;
|
|
1273
|
+
notebaseRowId: import("zod").ZodUUID;
|
|
1274
|
+
templateId: import("zod").ZodUUID;
|
|
1275
|
+
variantKey: import("zod").ZodString;
|
|
1276
|
+
front: import("zod").ZodString;
|
|
1277
|
+
back: import("zod").ZodString;
|
|
1278
|
+
}, import("zod/v4/core").$strip>>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_BETA_RESTRICTED">>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_NOT_FOUND">>, Record<never, never>>;
|
|
1279
|
+
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1280
|
+
id: import("zod").ZodUUID;
|
|
1281
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1282
|
+
createdAt: import("zod").ZodCoercedDate<unknown>;
|
|
1283
|
+
updatedAt: import("zod").ZodCoercedDate<unknown>;
|
|
1284
|
+
buriedAt: import("zod").ZodNullable<import("zod").ZodCoercedDate<unknown>>;
|
|
1285
|
+
state: import("zod").ZodEnum<{
|
|
1286
|
+
new: "new";
|
|
1287
|
+
learning: "learning";
|
|
1288
|
+
review: "review";
|
|
1289
|
+
relearning: "relearning";
|
|
1290
|
+
}>;
|
|
1291
|
+
scheduleStatus: import("zod").ZodEnum<{
|
|
1292
|
+
new: "new";
|
|
1293
|
+
learning: "learning";
|
|
1294
|
+
review: "review";
|
|
1295
|
+
suspended: "suspended";
|
|
1296
|
+
buried: "buried";
|
|
1297
|
+
}>;
|
|
1298
|
+
dueAt: import("zod").ZodCoercedDate<unknown>;
|
|
1299
|
+
lastReviewTime: import("zod").ZodNullable<import("zod").ZodCoercedDate<unknown>>;
|
|
1300
|
+
stability: import("zod").ZodNumber;
|
|
1301
|
+
difficulty: import("zod").ZodNumber;
|
|
1302
|
+
step: import("zod").ZodNumber;
|
|
1303
|
+
lapses: import("zod").ZodNumber;
|
|
1304
|
+
reps: import("zod").ZodNumber;
|
|
1305
|
+
id: import("zod").ZodUUID;
|
|
1306
|
+
notebaseId: import("zod").ZodUUID;
|
|
1307
|
+
notebaseRowId: import("zod").ZodUUID;
|
|
1308
|
+
templateId: import("zod").ZodUUID;
|
|
1309
|
+
variantKey: import("zod").ZodString;
|
|
1310
|
+
front: import("zod").ZodString;
|
|
1311
|
+
back: import("zod").ZodString;
|
|
1312
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_BETA_RESTRICTED">>, Pick<import("@orpc/contract").ErrorMap, "CARD_NOT_FOUND">>, Record<never, never>>;
|
|
1313
|
+
generate: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1314
|
+
notebaseId: import("zod").ZodUUID;
|
|
1315
|
+
templateId: import("zod").ZodOptional<import("zod").ZodUUID>;
|
|
1316
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1317
|
+
created: import("zod").ZodNumber;
|
|
1318
|
+
txid: import("zod").ZodNumber;
|
|
1319
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_BETA_RESTRICTED">>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_NOT_FOUND" | "CARD_TEMPLATE_NOT_FOUND">>, Record<never, never>>;
|
|
1320
|
+
};
|
|
1321
|
+
cardTemplate: {
|
|
1322
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1323
|
+
notebaseId: import("zod").ZodUUID;
|
|
1324
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodArray<import("zod").ZodObject<{
|
|
1325
|
+
id: import("zod").ZodUUID;
|
|
1326
|
+
notebaseId: import("zod").ZodUUID;
|
|
1327
|
+
name: import("zod").ZodString;
|
|
1328
|
+
config: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
1329
|
+
type: import("zod").ZodLiteral<"basic">;
|
|
1330
|
+
frontPattern: import("zod").ZodString;
|
|
1331
|
+
backPattern: import("zod").ZodString;
|
|
1332
|
+
}, import("zod/v4/core").$strict>], "type">;
|
|
1333
|
+
createdAt: import("zod").ZodCoercedDate<unknown>;
|
|
1334
|
+
updatedAt: import("zod").ZodCoercedDate<unknown>;
|
|
1335
|
+
}, import("zod/v4/core").$strip>>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_BETA_RESTRICTED">>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_NOT_FOUND">>, Record<never, never>>;
|
|
1336
|
+
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1337
|
+
id: import("zod").ZodUUID;
|
|
1338
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1339
|
+
id: import("zod").ZodUUID;
|
|
1340
|
+
notebaseId: import("zod").ZodUUID;
|
|
1341
|
+
name: import("zod").ZodString;
|
|
1342
|
+
config: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
1343
|
+
type: import("zod").ZodLiteral<"basic">;
|
|
1344
|
+
frontPattern: import("zod").ZodString;
|
|
1345
|
+
backPattern: import("zod").ZodString;
|
|
1346
|
+
}, import("zod/v4/core").$strict>], "type">;
|
|
1347
|
+
createdAt: import("zod").ZodCoercedDate<unknown>;
|
|
1348
|
+
updatedAt: import("zod").ZodCoercedDate<unknown>;
|
|
1349
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_BETA_RESTRICTED">>, Pick<import("@orpc/contract").ErrorMap, "CARD_TEMPLATE_NOT_FOUND">>, Record<never, never>>;
|
|
1350
|
+
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1351
|
+
id: import("zod").ZodOptional<import("zod").ZodUUID>;
|
|
1352
|
+
notebaseId: import("zod").ZodUUID;
|
|
1353
|
+
name: import("zod").ZodString;
|
|
1354
|
+
config: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
1355
|
+
type: import("zod").ZodLiteral<"basic">;
|
|
1356
|
+
frontPattern: import("zod").ZodString;
|
|
1357
|
+
backPattern: import("zod").ZodString;
|
|
1358
|
+
}, import("zod/v4/core").$strict>], "type">;
|
|
1359
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
1360
|
+
id: import("zod").ZodUUID;
|
|
1361
|
+
notebaseId: import("zod").ZodUUID;
|
|
1362
|
+
name: import("zod").ZodString;
|
|
1363
|
+
config: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
1364
|
+
type: import("zod").ZodLiteral<"basic">;
|
|
1365
|
+
frontPattern: import("zod").ZodString;
|
|
1366
|
+
backPattern: import("zod").ZodString;
|
|
1367
|
+
}, import("zod/v4/core").$strict>], "type">;
|
|
1368
|
+
createdAt: import("zod").ZodCoercedDate<unknown>;
|
|
1369
|
+
updatedAt: import("zod").ZodCoercedDate<unknown>;
|
|
1370
|
+
txid: import("zod").ZodNumber;
|
|
1371
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_BETA_RESTRICTED">>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_NOT_FOUND" | "CARD_TEMPLATE_INVALID_NOTEBASE_COLUMNS">>, Record<never, never>>;
|
|
1372
|
+
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1373
|
+
id: import("zod").ZodUUID;
|
|
1374
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1375
|
+
config: import("zod").ZodOptional<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
1376
|
+
type: import("zod").ZodLiteral<"basic">;
|
|
1377
|
+
frontPattern: import("zod").ZodString;
|
|
1378
|
+
backPattern: import("zod").ZodString;
|
|
1379
|
+
}, import("zod/v4/core").$strict>], "type">>;
|
|
1380
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
1381
|
+
id: import("zod").ZodUUID;
|
|
1382
|
+
notebaseId: import("zod").ZodUUID;
|
|
1383
|
+
name: import("zod").ZodString;
|
|
1384
|
+
config: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
1385
|
+
type: import("zod").ZodLiteral<"basic">;
|
|
1386
|
+
frontPattern: import("zod").ZodString;
|
|
1387
|
+
backPattern: import("zod").ZodString;
|
|
1388
|
+
}, import("zod/v4/core").$strict>], "type">;
|
|
1389
|
+
createdAt: import("zod").ZodCoercedDate<unknown>;
|
|
1390
|
+
updatedAt: import("zod").ZodCoercedDate<unknown>;
|
|
1391
|
+
txid: import("zod").ZodNumber;
|
|
1392
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_BETA_RESTRICTED">>, Pick<import("@orpc/contract").ErrorMap, "CARD_TEMPLATE_NOT_FOUND" | "CARD_TEMPLATE_INVALID_NOTEBASE_COLUMNS">>, Record<never, never>>;
|
|
1393
|
+
delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1394
|
+
id: import("zod").ZodUUID;
|
|
1395
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1396
|
+
txid: import("zod").ZodNumber;
|
|
1397
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_BETA_RESTRICTED">>, Pick<import("@orpc/contract").ErrorMap, "CARD_TEMPLATE_NOT_FOUND">>, Record<never, never>>;
|
|
1398
|
+
};
|
|
1399
|
+
notebase: {
|
|
1400
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("zod").ZodArray<import("zod").ZodObject<{
|
|
1401
|
+
id: import("zod").ZodString;
|
|
1402
|
+
name: import("zod").ZodString;
|
|
1403
|
+
}, import("zod/v4/core").$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_BETA_RESTRICTED">>, Record<never, never>>;
|
|
1404
|
+
get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1405
|
+
id: import("zod").ZodUUID;
|
|
1406
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1407
|
+
id: import("zod").ZodString;
|
|
1408
|
+
userId: import("zod").ZodString;
|
|
1409
|
+
name: import("zod").ZodString;
|
|
1410
|
+
srsNewPerDay: import("zod").ZodNumber;
|
|
1411
|
+
srsReviewsPerDay: import("zod").ZodNumber;
|
|
1412
|
+
srsDesiredRetention: import("zod").ZodNumber;
|
|
1413
|
+
srsEnableShortTerm: import("zod").ZodBoolean;
|
|
1414
|
+
srsMaximumInterval: import("zod").ZodNumber;
|
|
1415
|
+
srsLearningSteps: import("zod").ZodArray<import("zod").ZodTemplateLiteral<`${number}m` | `${number}h` | `${number}d`>>;
|
|
1416
|
+
srsRelearningSteps: import("zod").ZodArray<import("zod").ZodTemplateLiteral<`${number}m` | `${number}h` | `${number}d`>>;
|
|
1417
|
+
srsLeechThreshold: import("zod").ZodNumber;
|
|
1418
|
+
srsEnableFuzz: import("zod").ZodBoolean;
|
|
1419
|
+
srsWeights: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodNumber>>;
|
|
1420
|
+
createdAt: import("zod").ZodCoercedDate<unknown>;
|
|
1421
|
+
updatedAt: import("zod").ZodCoercedDate<unknown>;
|
|
1422
|
+
notebaseColumns: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1423
|
+
id: import("zod").ZodString;
|
|
1424
|
+
notebaseId: import("zod").ZodString;
|
|
1425
|
+
name: import("zod").ZodString;
|
|
1426
|
+
config: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
1427
|
+
type: import("zod").ZodLiteral<"string">;
|
|
1428
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1429
|
+
type: import("zod").ZodLiteral<"number">;
|
|
1430
|
+
decimal: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
1431
|
+
format: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
729
1432
|
number: "number";
|
|
730
1433
|
currency: "currency";
|
|
731
1434
|
percent: "percent";
|
|
732
1435
|
}>>;
|
|
733
|
-
},
|
|
734
|
-
type:
|
|
735
|
-
},
|
|
736
|
-
type:
|
|
737
|
-
dateFormat:
|
|
738
|
-
},
|
|
739
|
-
type:
|
|
740
|
-
options:
|
|
741
|
-
id:
|
|
742
|
-
value:
|
|
743
|
-
color:
|
|
744
|
-
},
|
|
745
|
-
},
|
|
746
|
-
position:
|
|
747
|
-
isPrimary:
|
|
748
|
-
width:
|
|
749
|
-
createdAt:
|
|
750
|
-
updatedAt:
|
|
751
|
-
},
|
|
752
|
-
|
|
753
|
-
id:
|
|
754
|
-
|
|
755
|
-
cells:
|
|
756
|
-
position:
|
|
757
|
-
createdAt:
|
|
758
|
-
updatedAt:
|
|
759
|
-
},
|
|
760
|
-
|
|
761
|
-
id:
|
|
762
|
-
|
|
763
|
-
name:
|
|
764
|
-
type:
|
|
1436
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1437
|
+
type: import("zod").ZodLiteral<"boolean">;
|
|
1438
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1439
|
+
type: import("zod").ZodLiteral<"date">;
|
|
1440
|
+
dateFormat: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1441
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1442
|
+
type: import("zod").ZodLiteral<"select">;
|
|
1443
|
+
options: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
|
|
1444
|
+
id: import("zod").ZodString;
|
|
1445
|
+
value: import("zod").ZodString;
|
|
1446
|
+
color: import("zod").ZodString;
|
|
1447
|
+
}, import("zod/v4/core").$strip>>>;
|
|
1448
|
+
}, import("zod/v4/core").$strip>], "type">;
|
|
1449
|
+
position: import("zod").ZodNumber;
|
|
1450
|
+
isPrimary: import("zod").ZodBoolean;
|
|
1451
|
+
width: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
1452
|
+
createdAt: import("zod").ZodCoercedDate<unknown>;
|
|
1453
|
+
updatedAt: import("zod").ZodCoercedDate<unknown>;
|
|
1454
|
+
}, import("zod/v4/core").$strip>>;
|
|
1455
|
+
notebaseRows: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1456
|
+
id: import("zod").ZodString;
|
|
1457
|
+
notebaseId: import("zod").ZodString;
|
|
1458
|
+
cells: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
1459
|
+
position: import("zod").ZodNumber;
|
|
1460
|
+
createdAt: import("zod").ZodCoercedDate<unknown>;
|
|
1461
|
+
updatedAt: import("zod").ZodCoercedDate<unknown>;
|
|
1462
|
+
}, import("zod/v4/core").$strip>>;
|
|
1463
|
+
notebaseViews: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1464
|
+
id: import("zod").ZodString;
|
|
1465
|
+
notebaseId: import("zod").ZodString;
|
|
1466
|
+
name: import("zod").ZodString;
|
|
1467
|
+
type: import("zod").ZodEnum<{
|
|
765
1468
|
table: "table";
|
|
766
1469
|
kanban: "kanban";
|
|
767
1470
|
gallery: "gallery";
|
|
768
1471
|
}>;
|
|
769
|
-
config:
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
},
|
|
774
|
-
filters:
|
|
775
|
-
sorts:
|
|
776
|
-
position:
|
|
777
|
-
createdAt:
|
|
778
|
-
updatedAt:
|
|
779
|
-
},
|
|
780
|
-
},
|
|
781
|
-
getSchema:
|
|
782
|
-
id:
|
|
783
|
-
},
|
|
784
|
-
id:
|
|
785
|
-
name:
|
|
786
|
-
updatedAt:
|
|
787
|
-
|
|
788
|
-
id:
|
|
789
|
-
|
|
790
|
-
name:
|
|
791
|
-
config:
|
|
792
|
-
type:
|
|
793
|
-
},
|
|
794
|
-
type:
|
|
795
|
-
decimal:
|
|
796
|
-
format:
|
|
1472
|
+
config: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
1473
|
+
notebaseColumnWidths: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodNumber>>;
|
|
1474
|
+
hiddenNotebaseColumns: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1475
|
+
groupByNotebaseColumnId: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1476
|
+
}, import("zod/v4/core").$catchall<import("zod").ZodUnknown>>>;
|
|
1477
|
+
filters: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodUnknown>>;
|
|
1478
|
+
sorts: import("zod").ZodNullable<import("zod").ZodArray<import("zod").ZodUnknown>>;
|
|
1479
|
+
position: import("zod").ZodNumber;
|
|
1480
|
+
createdAt: import("zod").ZodCoercedDate<unknown>;
|
|
1481
|
+
updatedAt: import("zod").ZodCoercedDate<unknown>;
|
|
1482
|
+
}, import("zod/v4/core").$strip>>;
|
|
1483
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_BETA_RESTRICTED">>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_NOT_FOUND">>, Record<never, never>>;
|
|
1484
|
+
getSchema: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1485
|
+
id: import("zod").ZodUUID;
|
|
1486
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1487
|
+
id: import("zod").ZodString;
|
|
1488
|
+
name: import("zod").ZodString;
|
|
1489
|
+
updatedAt: import("zod").ZodCoercedDate<unknown>;
|
|
1490
|
+
notebaseColumns: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1491
|
+
id: import("zod").ZodString;
|
|
1492
|
+
notebaseId: import("zod").ZodString;
|
|
1493
|
+
name: import("zod").ZodString;
|
|
1494
|
+
config: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
1495
|
+
type: import("zod").ZodLiteral<"string">;
|
|
1496
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1497
|
+
type: import("zod").ZodLiteral<"number">;
|
|
1498
|
+
decimal: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
1499
|
+
format: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
797
1500
|
number: "number";
|
|
798
1501
|
currency: "currency";
|
|
799
1502
|
percent: "percent";
|
|
800
1503
|
}>>;
|
|
801
|
-
},
|
|
802
|
-
type:
|
|
803
|
-
},
|
|
804
|
-
type:
|
|
805
|
-
dateFormat:
|
|
806
|
-
},
|
|
807
|
-
type:
|
|
808
|
-
options:
|
|
809
|
-
id:
|
|
810
|
-
value:
|
|
811
|
-
color:
|
|
812
|
-
},
|
|
813
|
-
},
|
|
814
|
-
position:
|
|
815
|
-
isPrimary:
|
|
816
|
-
width:
|
|
817
|
-
createdAt:
|
|
818
|
-
updatedAt:
|
|
819
|
-
},
|
|
820
|
-
},
|
|
821
|
-
create:
|
|
822
|
-
id:
|
|
823
|
-
name:
|
|
824
|
-
},
|
|
825
|
-
txid:
|
|
826
|
-
},
|
|
827
|
-
update:
|
|
828
|
-
name:
|
|
829
|
-
id:
|
|
830
|
-
},
|
|
831
|
-
txid:
|
|
832
|
-
},
|
|
833
|
-
delete:
|
|
834
|
-
id:
|
|
835
|
-
},
|
|
836
|
-
txid:
|
|
837
|
-
},
|
|
838
|
-
};
|
|
839
|
-
|
|
840
|
-
create:
|
|
841
|
-
|
|
842
|
-
data:
|
|
843
|
-
id:
|
|
844
|
-
name:
|
|
845
|
-
config:
|
|
846
|
-
type:
|
|
847
|
-
},
|
|
848
|
-
type:
|
|
849
|
-
decimal:
|
|
850
|
-
format:
|
|
1504
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1505
|
+
type: import("zod").ZodLiteral<"boolean">;
|
|
1506
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1507
|
+
type: import("zod").ZodLiteral<"date">;
|
|
1508
|
+
dateFormat: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1509
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1510
|
+
type: import("zod").ZodLiteral<"select">;
|
|
1511
|
+
options: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
|
|
1512
|
+
id: import("zod").ZodString;
|
|
1513
|
+
value: import("zod").ZodString;
|
|
1514
|
+
color: import("zod").ZodString;
|
|
1515
|
+
}, import("zod/v4/core").$strip>>>;
|
|
1516
|
+
}, import("zod/v4/core").$strip>], "type">;
|
|
1517
|
+
position: import("zod").ZodNumber;
|
|
1518
|
+
isPrimary: import("zod").ZodBoolean;
|
|
1519
|
+
width: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
1520
|
+
createdAt: import("zod").ZodCoercedDate<unknown>;
|
|
1521
|
+
updatedAt: import("zod").ZodCoercedDate<unknown>;
|
|
1522
|
+
}, import("zod/v4/core").$strip>>;
|
|
1523
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_BETA_RESTRICTED">>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_NOT_FOUND">>, Record<never, never>>;
|
|
1524
|
+
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1525
|
+
id: import("zod").ZodOptional<import("zod").ZodUUID>;
|
|
1526
|
+
name: import("zod").ZodString;
|
|
1527
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
1528
|
+
txid: import("zod").ZodNumber;
|
|
1529
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_BETA_RESTRICTED">>, Record<never, never>>;
|
|
1530
|
+
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1531
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1532
|
+
id: import("zod").ZodUUID;
|
|
1533
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
1534
|
+
txid: import("zod").ZodNumber;
|
|
1535
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_BETA_RESTRICTED">>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_NOT_FOUND">>, Record<never, never>>;
|
|
1536
|
+
delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1537
|
+
id: import("zod").ZodUUID;
|
|
1538
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1539
|
+
txid: import("zod").ZodNumber;
|
|
1540
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_BETA_RESTRICTED">>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_NOT_FOUND">>, Record<never, never>>;
|
|
1541
|
+
};
|
|
1542
|
+
notebaseColumn: {
|
|
1543
|
+
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1544
|
+
notebaseId: import("zod").ZodUUID;
|
|
1545
|
+
data: import("zod").ZodObject<{
|
|
1546
|
+
id: import("zod").ZodOptional<import("zod").ZodUUID>;
|
|
1547
|
+
name: import("zod").ZodString;
|
|
1548
|
+
config: import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
1549
|
+
type: import("zod").ZodLiteral<"string">;
|
|
1550
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1551
|
+
type: import("zod").ZodLiteral<"number">;
|
|
1552
|
+
decimal: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
1553
|
+
format: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
851
1554
|
number: "number";
|
|
852
1555
|
currency: "currency";
|
|
853
1556
|
percent: "percent";
|
|
854
1557
|
}>>;
|
|
855
|
-
},
|
|
856
|
-
type:
|
|
857
|
-
},
|
|
858
|
-
type:
|
|
859
|
-
dateFormat:
|
|
860
|
-
},
|
|
861
|
-
type:
|
|
862
|
-
options:
|
|
863
|
-
id:
|
|
864
|
-
value:
|
|
865
|
-
color:
|
|
866
|
-
},
|
|
867
|
-
},
|
|
868
|
-
},
|
|
869
|
-
},
|
|
870
|
-
txid:
|
|
871
|
-
},
|
|
872
|
-
update:
|
|
873
|
-
|
|
874
|
-
data:
|
|
875
|
-
name:
|
|
876
|
-
config:
|
|
877
|
-
type:
|
|
878
|
-
},
|
|
879
|
-
type:
|
|
880
|
-
decimal:
|
|
881
|
-
format:
|
|
1558
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1559
|
+
type: import("zod").ZodLiteral<"boolean">;
|
|
1560
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1561
|
+
type: import("zod").ZodLiteral<"date">;
|
|
1562
|
+
dateFormat: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1563
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1564
|
+
type: import("zod").ZodLiteral<"select">;
|
|
1565
|
+
options: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
|
|
1566
|
+
id: import("zod").ZodString;
|
|
1567
|
+
value: import("zod").ZodString;
|
|
1568
|
+
color: import("zod").ZodString;
|
|
1569
|
+
}, import("zod/v4/core").$strip>>>;
|
|
1570
|
+
}, import("zod/v4/core").$strip>], "type">;
|
|
1571
|
+
}, import("zod/v4/core").$strict>;
|
|
1572
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1573
|
+
txid: import("zod").ZodNumber;
|
|
1574
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_BETA_RESTRICTED">>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_NOT_FOUND" | "CONCURRENT_POSITION_CONFLICT">>, Record<never, never>>;
|
|
1575
|
+
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1576
|
+
notebaseColumnId: import("zod").ZodUUID;
|
|
1577
|
+
data: import("zod").ZodObject<{
|
|
1578
|
+
name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1579
|
+
config: import("zod").ZodOptional<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
1580
|
+
type: import("zod").ZodLiteral<"string">;
|
|
1581
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1582
|
+
type: import("zod").ZodLiteral<"number">;
|
|
1583
|
+
decimal: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
1584
|
+
format: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
882
1585
|
number: "number";
|
|
883
1586
|
currency: "currency";
|
|
884
1587
|
percent: "percent";
|
|
885
1588
|
}>>;
|
|
886
|
-
},
|
|
887
|
-
type:
|
|
888
|
-
},
|
|
889
|
-
type:
|
|
890
|
-
dateFormat:
|
|
891
|
-
},
|
|
892
|
-
type:
|
|
893
|
-
options:
|
|
894
|
-
id:
|
|
895
|
-
value:
|
|
896
|
-
color:
|
|
897
|
-
},
|
|
898
|
-
},
|
|
899
|
-
width:
|
|
900
|
-
},
|
|
901
|
-
},
|
|
902
|
-
txid:
|
|
903
|
-
},
|
|
904
|
-
delete:
|
|
905
|
-
|
|
906
|
-
},
|
|
907
|
-
txid:
|
|
908
|
-
},
|
|
909
|
-
reorder:
|
|
910
|
-
|
|
911
|
-
ids:
|
|
912
|
-
},
|
|
913
|
-
txid:
|
|
914
|
-
},
|
|
915
|
-
};
|
|
916
|
-
|
|
917
|
-
create:
|
|
918
|
-
|
|
919
|
-
data:
|
|
920
|
-
id:
|
|
921
|
-
cells:
|
|
922
|
-
},
|
|
923
|
-
},
|
|
924
|
-
txid:
|
|
925
|
-
},
|
|
926
|
-
update:
|
|
927
|
-
|
|
928
|
-
data:
|
|
929
|
-
cells:
|
|
930
|
-
},
|
|
931
|
-
},
|
|
932
|
-
id:
|
|
933
|
-
|
|
934
|
-
cells:
|
|
935
|
-
position:
|
|
936
|
-
createdAt:
|
|
937
|
-
updatedAt:
|
|
938
|
-
txid:
|
|
939
|
-
},
|
|
940
|
-
delete:
|
|
941
|
-
|
|
942
|
-
},
|
|
943
|
-
txid:
|
|
944
|
-
},
|
|
945
|
-
reorder:
|
|
946
|
-
|
|
947
|
-
ids:
|
|
948
|
-
},
|
|
949
|
-
txid:
|
|
950
|
-
},
|
|
1589
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1590
|
+
type: import("zod").ZodLiteral<"boolean">;
|
|
1591
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1592
|
+
type: import("zod").ZodLiteral<"date">;
|
|
1593
|
+
dateFormat: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1594
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1595
|
+
type: import("zod").ZodLiteral<"select">;
|
|
1596
|
+
options: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodObject<{
|
|
1597
|
+
id: import("zod").ZodString;
|
|
1598
|
+
value: import("zod").ZodString;
|
|
1599
|
+
color: import("zod").ZodString;
|
|
1600
|
+
}, import("zod/v4/core").$strip>>>;
|
|
1601
|
+
}, import("zod/v4/core").$strip>], "type">>;
|
|
1602
|
+
width: import("zod").ZodOptional<import("zod").ZodNullable<import("zod").ZodNumber>>;
|
|
1603
|
+
}, import("zod/v4/core").$strict>;
|
|
1604
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1605
|
+
txid: import("zod").ZodNumber;
|
|
1606
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_BETA_RESTRICTED">>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_COLUMN_NOT_FOUND">>, Record<never, never>>;
|
|
1607
|
+
delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1608
|
+
notebaseColumnId: import("zod").ZodUUID;
|
|
1609
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1610
|
+
txid: import("zod").ZodNumber;
|
|
1611
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_BETA_RESTRICTED">>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_COLUMN_NOT_FOUND" | "CARD_TEMPLATE_NOTEBASE_COLUMN_IN_USE" | "PRIMARY_NOTEBASE_COLUMN_DELETE_NOT_ALLOWED" | "CONCURRENT_POSITION_CONFLICT">>, Record<never, never>>;
|
|
1612
|
+
reorder: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1613
|
+
notebaseId: import("zod").ZodUUID;
|
|
1614
|
+
ids: import("zod").ZodArray<import("zod").ZodUUID>;
|
|
1615
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1616
|
+
txid: import("zod").ZodNumber;
|
|
1617
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_BETA_RESTRICTED">>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_NOT_FOUND" | "CONCURRENT_POSITION_CONFLICT">>, Record<never, never>>;
|
|
1618
|
+
};
|
|
1619
|
+
notebaseRow: {
|
|
1620
|
+
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1621
|
+
notebaseId: import("zod").ZodUUID;
|
|
1622
|
+
data: import("zod").ZodObject<{
|
|
1623
|
+
id: import("zod").ZodOptional<import("zod").ZodUUID>;
|
|
1624
|
+
cells: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1625
|
+
}, import("zod/v4/core").$strict>;
|
|
1626
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1627
|
+
txid: import("zod").ZodNumber;
|
|
1628
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_BETA_RESTRICTED">>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_NOT_FOUND" | "CELL_VALIDATION_FAILED" | "CONCURRENT_POSITION_CONFLICT">>, Record<never, never>>;
|
|
1629
|
+
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1630
|
+
notebaseRowId: import("zod").ZodUUID;
|
|
1631
|
+
data: import("zod").ZodObject<{
|
|
1632
|
+
cells: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1633
|
+
}, import("zod/v4/core").$strict>;
|
|
1634
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1635
|
+
id: import("zod").ZodUUID;
|
|
1636
|
+
notebaseId: import("zod").ZodUUID;
|
|
1637
|
+
cells: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>;
|
|
1638
|
+
position: import("zod").ZodNumber;
|
|
1639
|
+
createdAt: import("zod").ZodDate;
|
|
1640
|
+
updatedAt: import("zod").ZodDate;
|
|
1641
|
+
txid: import("zod").ZodNumber;
|
|
1642
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_BETA_RESTRICTED">>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_ROW_NOT_FOUND" | "CELL_VALIDATION_FAILED">>, Record<never, never>>;
|
|
1643
|
+
delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1644
|
+
notebaseRowId: import("zod").ZodUUID;
|
|
1645
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1646
|
+
txid: import("zod").ZodNumber;
|
|
1647
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_BETA_RESTRICTED">>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_ROW_NOT_FOUND" | "CONCURRENT_POSITION_CONFLICT">>, Record<never, never>>;
|
|
1648
|
+
reorder: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1649
|
+
notebaseId: import("zod").ZodUUID;
|
|
1650
|
+
ids: import("zod").ZodArray<import("zod").ZodUUID>;
|
|
1651
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1652
|
+
txid: import("zod").ZodNumber;
|
|
1653
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_BETA_RESTRICTED">>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_NOT_FOUND" | "CONCURRENT_POSITION_CONFLICT">>, Record<never, never>>;
|
|
1654
|
+
};
|
|
1655
|
+
srs: {
|
|
1656
|
+
review: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1657
|
+
cardId: import("zod").ZodUUID;
|
|
1658
|
+
id: import("zod").ZodOptional<import("zod").ZodUUID>;
|
|
1659
|
+
rating: import("zod").ZodEnum<{
|
|
1660
|
+
again: "again";
|
|
1661
|
+
hard: "hard";
|
|
1662
|
+
good: "good";
|
|
1663
|
+
easy: "easy";
|
|
1664
|
+
}>;
|
|
1665
|
+
durationMs: import("zod").ZodNumber;
|
|
1666
|
+
timezone: import("zod").ZodString;
|
|
1667
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
1668
|
+
card: import("zod").ZodObject<{
|
|
1669
|
+
createdAt: import("zod").ZodCoercedDate<unknown>;
|
|
1670
|
+
updatedAt: import("zod").ZodCoercedDate<unknown>;
|
|
1671
|
+
buriedAt: import("zod").ZodNullable<import("zod").ZodCoercedDate<unknown>>;
|
|
1672
|
+
state: import("zod").ZodEnum<{
|
|
1673
|
+
new: "new";
|
|
1674
|
+
learning: "learning";
|
|
1675
|
+
review: "review";
|
|
1676
|
+
relearning: "relearning";
|
|
1677
|
+
}>;
|
|
1678
|
+
scheduleStatus: import("zod").ZodEnum<{
|
|
1679
|
+
new: "new";
|
|
1680
|
+
learning: "learning";
|
|
1681
|
+
review: "review";
|
|
1682
|
+
suspended: "suspended";
|
|
1683
|
+
buried: "buried";
|
|
1684
|
+
}>;
|
|
1685
|
+
dueAt: import("zod").ZodCoercedDate<unknown>;
|
|
1686
|
+
lastReviewTime: import("zod").ZodNullable<import("zod").ZodCoercedDate<unknown>>;
|
|
1687
|
+
stability: import("zod").ZodNumber;
|
|
1688
|
+
difficulty: import("zod").ZodNumber;
|
|
1689
|
+
step: import("zod").ZodNumber;
|
|
1690
|
+
lapses: import("zod").ZodNumber;
|
|
1691
|
+
reps: import("zod").ZodNumber;
|
|
1692
|
+
id: import("zod").ZodUUID;
|
|
1693
|
+
notebaseId: import("zod").ZodUUID;
|
|
1694
|
+
notebaseRowId: import("zod").ZodUUID;
|
|
1695
|
+
templateId: import("zod").ZodUUID;
|
|
1696
|
+
variantKey: import("zod").ZodString;
|
|
1697
|
+
}, import("zod/v4/core").$strip>;
|
|
1698
|
+
revlog: import("zod").ZodObject<{
|
|
1699
|
+
id: import("zod").ZodUUID;
|
|
1700
|
+
notebaseId: import("zod").ZodUUID;
|
|
1701
|
+
cardId: import("zod").ZodUUID;
|
|
1702
|
+
rating: import("zod").ZodEnum<{
|
|
1703
|
+
again: "again";
|
|
1704
|
+
hard: "hard";
|
|
1705
|
+
good: "good";
|
|
1706
|
+
easy: "easy";
|
|
1707
|
+
}>;
|
|
1708
|
+
state: import("zod").ZodEnum<{
|
|
1709
|
+
new: "new";
|
|
1710
|
+
learning: "learning";
|
|
1711
|
+
review: "review";
|
|
1712
|
+
relearning: "relearning";
|
|
1713
|
+
}>;
|
|
1714
|
+
afterScheduleStatus: import("zod").ZodEnum<{
|
|
1715
|
+
new: "new";
|
|
1716
|
+
learning: "learning";
|
|
1717
|
+
review: "review";
|
|
1718
|
+
suspended: "suspended";
|
|
1719
|
+
buried: "buried";
|
|
1720
|
+
}>;
|
|
1721
|
+
reviewedAt: import("zod").ZodCoercedDate<unknown>;
|
|
1722
|
+
durationMs: import("zod").ZodNumber;
|
|
1723
|
+
fsrsReviewLogSnapshot: import("zod").ZodObject<{
|
|
1724
|
+
rating: import("zod").ZodUnion<readonly [import("zod").ZodLiteral<1>, import("zod").ZodLiteral<2>, import("zod").ZodLiteral<3>, import("zod").ZodLiteral<4>]>;
|
|
1725
|
+
state: import("zod").ZodUnion<readonly [import("zod").ZodLiteral<0>, import("zod").ZodLiteral<1>, import("zod").ZodLiteral<2>, import("zod").ZodLiteral<3>]>;
|
|
1726
|
+
dueAt: import("zod").ZodString;
|
|
1727
|
+
stability: import("zod").ZodNumber;
|
|
1728
|
+
difficulty: import("zod").ZodNumber;
|
|
1729
|
+
scheduledDays: import("zod").ZodNumber;
|
|
1730
|
+
learningSteps: import("zod").ZodNumber;
|
|
1731
|
+
review: import("zod").ZodString;
|
|
1732
|
+
}, import("zod/v4/core").$strict>;
|
|
1733
|
+
createdAt: import("zod").ZodCoercedDate<unknown>;
|
|
1734
|
+
}, import("zod/v4/core").$strip>;
|
|
1735
|
+
txid: import("zod").ZodNumber;
|
|
1736
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_BETA_RESTRICTED">>, Pick<import("@orpc/contract").ErrorMap, "CARD_NOT_FOUND" | "CARD_NOT_REVIEWABLE" | "CARD_REVIEW_STATE_STALE">>, Record<never, never>>;
|
|
1737
|
+
rollbackReview: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1738
|
+
cardId: import("zod").ZodUUID;
|
|
1739
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
1740
|
+
card: import("zod").ZodObject<{
|
|
1741
|
+
createdAt: import("zod").ZodCoercedDate<unknown>;
|
|
1742
|
+
updatedAt: import("zod").ZodCoercedDate<unknown>;
|
|
1743
|
+
buriedAt: import("zod").ZodNullable<import("zod").ZodCoercedDate<unknown>>;
|
|
1744
|
+
state: import("zod").ZodEnum<{
|
|
1745
|
+
new: "new";
|
|
1746
|
+
learning: "learning";
|
|
1747
|
+
review: "review";
|
|
1748
|
+
relearning: "relearning";
|
|
1749
|
+
}>;
|
|
1750
|
+
scheduleStatus: import("zod").ZodEnum<{
|
|
1751
|
+
new: "new";
|
|
1752
|
+
learning: "learning";
|
|
1753
|
+
review: "review";
|
|
1754
|
+
suspended: "suspended";
|
|
1755
|
+
buried: "buried";
|
|
1756
|
+
}>;
|
|
1757
|
+
dueAt: import("zod").ZodCoercedDate<unknown>;
|
|
1758
|
+
lastReviewTime: import("zod").ZodNullable<import("zod").ZodCoercedDate<unknown>>;
|
|
1759
|
+
stability: import("zod").ZodNumber;
|
|
1760
|
+
difficulty: import("zod").ZodNumber;
|
|
1761
|
+
step: import("zod").ZodNumber;
|
|
1762
|
+
lapses: import("zod").ZodNumber;
|
|
1763
|
+
reps: import("zod").ZodNumber;
|
|
1764
|
+
id: import("zod").ZodUUID;
|
|
1765
|
+
notebaseId: import("zod").ZodUUID;
|
|
1766
|
+
notebaseRowId: import("zod").ZodUUID;
|
|
1767
|
+
templateId: import("zod").ZodUUID;
|
|
1768
|
+
variantKey: import("zod").ZodString;
|
|
1769
|
+
}, import("zod/v4/core").$strip>;
|
|
1770
|
+
rolledBackRevlogId: import("zod").ZodUUID;
|
|
1771
|
+
txid: import("zod").ZodNumber;
|
|
1772
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<import("@orpc/contract").MergedErrorMap<Record<never, never>, Pick<import("@orpc/contract").ErrorMap, "NOTEBASE_BETA_RESTRICTED">>, Pick<import("@orpc/contract").ErrorMap, "CARD_NOT_FOUND" | "CARD_REVIEW_ROLLBACK_UNAVAILABLE">>, Record<never, never>>;
|
|
1773
|
+
};
|
|
1774
|
+
user: {
|
|
1775
|
+
ensureTimezone: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
1776
|
+
timezone: import("zod").ZodString;
|
|
1777
|
+
}, import("zod/v4/core").$strict>, import("zod").ZodObject<{
|
|
1778
|
+
timezone: import("zod").ZodString;
|
|
1779
|
+
updated: import("zod").ZodBoolean;
|
|
1780
|
+
}, import("zod/v4/core").$strict>, Record<never, never>, Record<never, never>>;
|
|
951
1781
|
};
|
|
952
1782
|
};
|
|
953
1783
|
type ORPCRouterClient = ContractRouterClient<typeof contract>;
|
|
954
1784
|
//#endregion
|
|
955
|
-
export { BetaAccessStatusInput, BetaAccessStatusInputSchema, BetaAccessStatusOutput, BetaAccessStatusOutputSchema, BetaFeatureKey, BetaFeatureKeySchema, CellValidationFailedData, CellValidationFailedDataSchema, CellValidationFailureDetails, CellValidationFailureDetailsSchema, CellValidationFailureReason, CellValidationFailureReasonSchema,
|
|
1785
|
+
export { BetaAccessStatusInput, BetaAccessStatusInputSchema, BetaAccessStatusOutput, BetaAccessStatusOutputSchema, BetaFeatureKey, BetaFeatureKeySchema, Card, CardGenerateInput, CardGenerateInputSchema, CardGenerateOutput, CardGenerateOutputSchema, CardGetInput, CardGetInputSchema, CardGetOutput, CardGetOutputSchema, CardListInput, CardListInputSchema, CardListOutput, CardListOutputSchema, type CardState, CardTemplate, CardTemplateCreateInput, CardTemplateCreateInputSchema, CardTemplateCreateOutput, CardTemplateCreateOutputSchema, CardTemplateDeleteInput, CardTemplateDeleteInputSchema, CardTemplateDeleteOutput, CardTemplateDeleteOutputSchema, CardTemplateGetInput, CardTemplateGetInputSchema, CardTemplateGetOutput, CardTemplateGetOutputSchema, CardTemplateInvalidColumnsData, CardTemplateInvalidColumnsDataSchema, CardTemplateListInput, CardTemplateListInputSchema, CardTemplateListOutput, CardTemplateListOutputSchema, CardTemplateUpdateInput, CardTemplateUpdateInputSchema, CardTemplateUpdateOutput, CardTemplateUpdateOutputSchema, CellValidationFailedData, CellValidationFailedDataSchema, CellValidationFailureDetails, CellValidationFailureDetailsSchema, CellValidationFailureReason, CellValidationFailureReasonSchema, Notebase, NotebaseColumn, NotebaseColumnCreateData, NotebaseColumnCreateInput, NotebaseColumnCreateInputSchema, NotebaseColumnCreateOutput, NotebaseColumnCreateOutputSchema, NotebaseColumnDeleteInput, NotebaseColumnDeleteInputSchema, NotebaseColumnDeleteOutput, NotebaseColumnDeleteOutputSchema, NotebaseColumnReorderInput, NotebaseColumnReorderInputSchema, NotebaseColumnReorderOutput, NotebaseColumnReorderOutputSchema, NotebaseColumnUpdateData, NotebaseColumnUpdateInput, NotebaseColumnUpdateInputSchema, NotebaseColumnUpdateOutput, NotebaseColumnUpdateOutputSchema, NotebaseCreateData, NotebaseCreateInput, NotebaseCreateInputSchema, NotebaseCreateOutput, NotebaseCreateOutputSchema, NotebaseDeleteInput, NotebaseDeleteInputSchema, NotebaseDeleteOutput, NotebaseDeleteOutputSchema, NotebaseGetInput, NotebaseGetInputSchema, NotebaseGetOutput, NotebaseGetOutputSchema, NotebaseGetSchemaInput, NotebaseGetSchemaInputSchema, NotebaseGetSchemaOutput, NotebaseGetSchemaOutputSchema, NotebaseListInput, NotebaseListInputSchema, NotebaseListItem, NotebaseListItemSchema, NotebaseListOutput, NotebaseListOutputSchema, NotebaseRow, NotebaseRowCreateData, NotebaseRowCreateInput, NotebaseRowCreateInputSchema, NotebaseRowCreateOutput, NotebaseRowCreateOutputSchema, NotebaseRowDeleteInput, NotebaseRowDeleteInputSchema, NotebaseRowDeleteOutput, NotebaseRowDeleteOutputSchema, NotebaseRowReorderInput, NotebaseRowReorderInputSchema, NotebaseRowReorderOutput, NotebaseRowReorderOutputSchema, NotebaseRowUpdateData, NotebaseRowUpdateInput, NotebaseRowUpdateInputSchema, NotebaseRowUpdateOutput, NotebaseRowUpdateOutputSchema, NotebaseUpdateData, NotebaseUpdateInput, NotebaseUpdateInputSchema, NotebaseUpdateOutput, NotebaseUpdateOutputSchema, NotebaseView, NotebaseViewConfig, NotebaseViewCreateData, NotebaseViewFilter, NotebaseViewSort, NotebaseViewType, NotebaseViewUpdateData, ORPCRouterClient, PUBLIC_APP_ERROR_DEFS, PublicAppErrorCode, PublicAppErrorData, RenderedCard, type ReviewRating, SRS_REVIEW_CLIENT_ID_NAMESPACE, SRS_REVIEW_DURATION_MS_MAX, type ScheduleStatus, type SchedulingParams, SrsReviewClientIdCard, SrsReviewInput, SrsReviewOutput, SrsRevlog, SrsRollbackReviewInput, SrsRollbackReviewOutput, Step, Timezone, UserEnsureTimezoneInput, UserEnsureTimezoneOutput, cardSchema, cardStateSchema, cardTemplateSchema, contract, createSrsReviewClientId, getPublicErrorDefinition, isPublicAppErrorCode, notebaseColumnCreateDataSchema, notebaseColumnSchema, notebaseColumnUpdateDataSchema, notebaseColumnWidthSchema, notebaseCreateDataSchema, notebaseRowCellsSchema, notebaseRowCreateDataSchema, notebaseRowSchema, notebaseRowUpdateDataSchema, notebaseSchema, notebaseUpdateDataSchema, notebaseViewConfigSchema, notebaseViewCreateDataSchema, notebaseViewFilterSchema, notebaseViewFiltersSchema, notebaseViewSchema, notebaseViewSortSchema, notebaseViewSortsSchema, notebaseViewTypeSchema, notebaseViewUpdateDataSchema, pickPublicErrorMap, renderedCardSchema, reviewRatingSchema, scheduleStatusSchema, schedulingParamsSchema, srsReviewInputSchema, srsReviewOutputSchema, srsRevlogSchema, srsRollbackReviewInputSchema, srsRollbackReviewOutputSchema, stepSchema, timezoneSchema, userEnsureTimezoneInputSchema, userEnsureTimezoneOutputSchema };
|
|
956
1786
|
//# sourceMappingURL=index.d.ts.map
|