@read-frog/api-contract 0.2.2 → 0.3.0
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 +300 -89
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +154 -97
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -5,7 +5,98 @@ import { z } from "zod";
|
|
|
5
5
|
import * as zod_v4_core0 from "zod/v4/core";
|
|
6
6
|
|
|
7
7
|
//#region src/schemas/column.d.ts
|
|
8
|
-
declare const
|
|
8
|
+
declare const columnWidthSchema: z.ZodNumber;
|
|
9
|
+
declare const tableColumnSchema: z.ZodObject<{
|
|
10
|
+
id: z.ZodString;
|
|
11
|
+
tableId: z.ZodString;
|
|
12
|
+
name: z.ZodString;
|
|
13
|
+
config: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
14
|
+
type: z.ZodLiteral<"string">;
|
|
15
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
16
|
+
type: z.ZodLiteral<"number">;
|
|
17
|
+
decimal: z.ZodDefault<z.ZodNumber>;
|
|
18
|
+
format: z.ZodDefault<z.ZodEnum<{
|
|
19
|
+
number: "number";
|
|
20
|
+
currency: "currency";
|
|
21
|
+
percent: "percent";
|
|
22
|
+
}>>;
|
|
23
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
24
|
+
type: z.ZodLiteral<"boolean">;
|
|
25
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
26
|
+
type: z.ZodLiteral<"date">;
|
|
27
|
+
dateFormat: z.ZodOptional<z.ZodString>;
|
|
28
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
+
type: z.ZodLiteral<"select">;
|
|
30
|
+
options: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
31
|
+
id: z.ZodString;
|
|
32
|
+
value: z.ZodString;
|
|
33
|
+
color: z.ZodString;
|
|
34
|
+
}, z.core.$strip>>>;
|
|
35
|
+
}, z.core.$strip>], "type">;
|
|
36
|
+
position: z.ZodNumber;
|
|
37
|
+
isPrimary: z.ZodBoolean;
|
|
38
|
+
width: z.ZodNullable<z.ZodNumber>;
|
|
39
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
40
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
type TableColumn = z.infer<typeof tableColumnSchema>;
|
|
43
|
+
declare const columnCreateDataSchema: z.ZodObject<{
|
|
44
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
45
|
+
name: z.ZodString;
|
|
46
|
+
config: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
47
|
+
type: z.ZodLiteral<"string">;
|
|
48
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
49
|
+
type: z.ZodLiteral<"number">;
|
|
50
|
+
decimal: z.ZodDefault<z.ZodNumber>;
|
|
51
|
+
format: z.ZodDefault<z.ZodEnum<{
|
|
52
|
+
number: "number";
|
|
53
|
+
currency: "currency";
|
|
54
|
+
percent: "percent";
|
|
55
|
+
}>>;
|
|
56
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
57
|
+
type: z.ZodLiteral<"boolean">;
|
|
58
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
59
|
+
type: z.ZodLiteral<"date">;
|
|
60
|
+
dateFormat: z.ZodOptional<z.ZodString>;
|
|
61
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
62
|
+
type: z.ZodLiteral<"select">;
|
|
63
|
+
options: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
64
|
+
id: z.ZodString;
|
|
65
|
+
value: z.ZodString;
|
|
66
|
+
color: z.ZodString;
|
|
67
|
+
}, z.core.$strip>>>;
|
|
68
|
+
}, z.core.$strip>], "type">;
|
|
69
|
+
}, z.core.$strict>;
|
|
70
|
+
type ColumnCreateData = z.infer<typeof columnCreateDataSchema>;
|
|
71
|
+
declare const columnUpdateDataSchema: z.ZodObject<{
|
|
72
|
+
name: z.ZodOptional<z.ZodString>;
|
|
73
|
+
config: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
74
|
+
type: z.ZodLiteral<"string">;
|
|
75
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
76
|
+
type: z.ZodLiteral<"number">;
|
|
77
|
+
decimal: z.ZodDefault<z.ZodNumber>;
|
|
78
|
+
format: z.ZodDefault<z.ZodEnum<{
|
|
79
|
+
number: "number";
|
|
80
|
+
currency: "currency";
|
|
81
|
+
percent: "percent";
|
|
82
|
+
}>>;
|
|
83
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
84
|
+
type: z.ZodLiteral<"boolean">;
|
|
85
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
86
|
+
type: z.ZodLiteral<"date">;
|
|
87
|
+
dateFormat: z.ZodOptional<z.ZodString>;
|
|
88
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
89
|
+
type: z.ZodLiteral<"select">;
|
|
90
|
+
options: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
91
|
+
id: z.ZodString;
|
|
92
|
+
value: z.ZodString;
|
|
93
|
+
color: z.ZodString;
|
|
94
|
+
}, z.core.$strip>>>;
|
|
95
|
+
}, z.core.$strip>], "type">>;
|
|
96
|
+
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
97
|
+
}, z.core.$strict>;
|
|
98
|
+
type ColumnUpdateData = z.infer<typeof columnUpdateDataSchema>;
|
|
99
|
+
declare const ColumnCreateInputSchema: z.ZodObject<{
|
|
9
100
|
tableId: z.ZodUUID;
|
|
10
101
|
data: z.ZodObject<{
|
|
11
102
|
id: z.ZodOptional<z.ZodUUID>;
|
|
@@ -33,12 +124,13 @@ declare const ColumnAddInputSchema: z.ZodObject<{
|
|
|
33
124
|
color: z.ZodString;
|
|
34
125
|
}, z.core.$strip>>>;
|
|
35
126
|
}, z.core.$strip>], "type">;
|
|
36
|
-
position: z.ZodOptional<z.ZodNumber>;
|
|
37
127
|
}, z.core.$strict>;
|
|
38
128
|
}, z.core.$strip>;
|
|
39
|
-
|
|
129
|
+
type ColumnCreateInput = z.infer<typeof ColumnCreateInputSchema>;
|
|
130
|
+
declare const ColumnCreateOutputSchema: z.ZodObject<{
|
|
40
131
|
txid: z.ZodNumber;
|
|
41
132
|
}, z.core.$strip>;
|
|
133
|
+
type ColumnCreateOutput = z.infer<typeof ColumnCreateOutputSchema>;
|
|
42
134
|
declare const ColumnUpdateInputSchema: z.ZodObject<{
|
|
43
135
|
columnId: z.ZodUUID;
|
|
44
136
|
data: z.ZodObject<{
|
|
@@ -69,15 +161,28 @@ declare const ColumnUpdateInputSchema: z.ZodObject<{
|
|
|
69
161
|
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
70
162
|
}, z.core.$strict>;
|
|
71
163
|
}, z.core.$strip>;
|
|
164
|
+
type ColumnUpdateInput = z.infer<typeof ColumnUpdateInputSchema>;
|
|
72
165
|
declare const ColumnUpdateOutputSchema: z.ZodObject<{
|
|
73
166
|
txid: z.ZodNumber;
|
|
74
167
|
}, z.core.$strip>;
|
|
168
|
+
type ColumnUpdateOutput = z.infer<typeof ColumnUpdateOutputSchema>;
|
|
75
169
|
declare const ColumnDeleteInputSchema: z.ZodObject<{
|
|
76
170
|
columnId: z.ZodUUID;
|
|
77
171
|
}, z.core.$strip>;
|
|
172
|
+
type ColumnDeleteInput = z.infer<typeof ColumnDeleteInputSchema>;
|
|
78
173
|
declare const ColumnDeleteOutputSchema: z.ZodObject<{
|
|
79
174
|
txid: z.ZodNumber;
|
|
80
175
|
}, z.core.$strip>;
|
|
176
|
+
type ColumnDeleteOutput = z.infer<typeof ColumnDeleteOutputSchema>;
|
|
177
|
+
declare const ColumnReorderInputSchema: z.ZodObject<{
|
|
178
|
+
tableId: z.ZodUUID;
|
|
179
|
+
ids: z.ZodArray<z.ZodUUID>;
|
|
180
|
+
}, z.core.$strip>;
|
|
181
|
+
type ColumnReorderInput = z.infer<typeof ColumnReorderInputSchema>;
|
|
182
|
+
declare const ColumnReorderOutputSchema: z.ZodObject<{
|
|
183
|
+
txid: z.ZodNumber;
|
|
184
|
+
}, z.core.$strip>;
|
|
185
|
+
type ColumnReorderOutput = z.infer<typeof ColumnReorderOutputSchema>;
|
|
81
186
|
//#endregion
|
|
82
187
|
//#region src/schemas/custom-table.d.ts
|
|
83
188
|
declare const CustomTableListInputSchema: z.ZodObject<{}, z.core.$strip>;
|
|
@@ -92,19 +197,28 @@ declare const CustomTableListOutputSchema: z.ZodArray<z.ZodObject<{
|
|
|
92
197
|
name: z.ZodString;
|
|
93
198
|
}, z.core.$strip>>;
|
|
94
199
|
type CustomTableListOutput = z.infer<typeof CustomTableListOutputSchema>;
|
|
200
|
+
declare const customTableCreateDataSchema: z.ZodObject<{
|
|
201
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
202
|
+
name: z.ZodString;
|
|
203
|
+
}, z.core.$strict>;
|
|
204
|
+
type CustomTableCreateData = z.infer<typeof customTableCreateDataSchema>;
|
|
95
205
|
declare const CustomTableCreateInputSchema: z.ZodObject<{
|
|
96
206
|
id: z.ZodOptional<z.ZodUUID>;
|
|
97
207
|
name: z.ZodString;
|
|
98
|
-
}, z.core.$
|
|
208
|
+
}, z.core.$strict>;
|
|
99
209
|
type CustomTableCreateInput = z.infer<typeof CustomTableCreateInputSchema>;
|
|
100
210
|
declare const CustomTableCreateOutputSchema: z.ZodObject<{
|
|
101
211
|
txid: z.ZodNumber;
|
|
102
212
|
}, z.core.$strip>;
|
|
103
213
|
type CustomTableCreateOutput = z.infer<typeof CustomTableCreateOutputSchema>;
|
|
214
|
+
declare const customTableUpdateDataSchema: z.ZodObject<{
|
|
215
|
+
name: z.ZodOptional<z.ZodString>;
|
|
216
|
+
}, z.core.$strict>;
|
|
217
|
+
type CustomTableUpdateData = z.infer<typeof customTableUpdateDataSchema>;
|
|
104
218
|
declare const CustomTableUpdateInputSchema: z.ZodObject<{
|
|
105
|
-
id: z.ZodUUID;
|
|
106
219
|
name: z.ZodOptional<z.ZodString>;
|
|
107
|
-
|
|
220
|
+
id: z.ZodUUID;
|
|
221
|
+
}, z.core.$strict>;
|
|
108
222
|
type CustomTableUpdateInput = z.infer<typeof CustomTableUpdateInputSchema>;
|
|
109
223
|
declare const CustomTableUpdateOutputSchema: z.ZodObject<{
|
|
110
224
|
txid: z.ZodNumber;
|
|
@@ -126,66 +240,6 @@ declare const CustomTableGetSchemaInputSchema: z.ZodObject<{
|
|
|
126
240
|
id: z.ZodUUID;
|
|
127
241
|
}, z.core.$strip>;
|
|
128
242
|
type CustomTableGetSchemaInput = z.infer<typeof CustomTableGetSchemaInputSchema>;
|
|
129
|
-
declare const TableColumnSchema: z.ZodObject<{
|
|
130
|
-
id: z.ZodString;
|
|
131
|
-
tableId: z.ZodString;
|
|
132
|
-
name: z.ZodString;
|
|
133
|
-
config: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
134
|
-
type: z.ZodLiteral<"string">;
|
|
135
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
136
|
-
type: z.ZodLiteral<"number">;
|
|
137
|
-
decimal: z.ZodDefault<z.ZodNumber>;
|
|
138
|
-
format: z.ZodDefault<z.ZodEnum<{
|
|
139
|
-
number: "number";
|
|
140
|
-
currency: "currency";
|
|
141
|
-
percent: "percent";
|
|
142
|
-
}>>;
|
|
143
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
144
|
-
type: z.ZodLiteral<"boolean">;
|
|
145
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
146
|
-
type: z.ZodLiteral<"date">;
|
|
147
|
-
dateFormat: z.ZodOptional<z.ZodString>;
|
|
148
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
149
|
-
type: z.ZodLiteral<"select">;
|
|
150
|
-
options: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
151
|
-
id: z.ZodString;
|
|
152
|
-
value: z.ZodString;
|
|
153
|
-
color: z.ZodString;
|
|
154
|
-
}, z.core.$strip>>>;
|
|
155
|
-
}, z.core.$strip>], "type">;
|
|
156
|
-
position: z.ZodNumber;
|
|
157
|
-
isPrimary: z.ZodBoolean;
|
|
158
|
-
width: z.ZodNullable<z.ZodNumber>;
|
|
159
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
160
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
161
|
-
}, z.core.$strip>;
|
|
162
|
-
type TableColumn = z.infer<typeof TableColumnSchema>;
|
|
163
|
-
declare const TableRowSchema: z.ZodObject<{
|
|
164
|
-
id: z.ZodString;
|
|
165
|
-
tableId: z.ZodString;
|
|
166
|
-
cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
167
|
-
position: z.ZodNullable<z.ZodNumber>;
|
|
168
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
169
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
170
|
-
}, z.core.$strip>;
|
|
171
|
-
type TableRow = z.infer<typeof TableRowSchema>;
|
|
172
|
-
declare const TableViewSchema: z.ZodObject<{
|
|
173
|
-
id: z.ZodString;
|
|
174
|
-
tableId: z.ZodString;
|
|
175
|
-
name: z.ZodString;
|
|
176
|
-
type: z.ZodEnum<{
|
|
177
|
-
table: "table";
|
|
178
|
-
kanban: "kanban";
|
|
179
|
-
gallery: "gallery";
|
|
180
|
-
}>;
|
|
181
|
-
config: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
182
|
-
filters: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
|
|
183
|
-
sorts: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
|
|
184
|
-
position: z.ZodNumber;
|
|
185
|
-
createdAt: z.ZodCoercedDate<unknown>;
|
|
186
|
-
updatedAt: z.ZodCoercedDate<unknown>;
|
|
187
|
-
}, z.core.$strip>;
|
|
188
|
-
type TableView = z.infer<typeof TableViewSchema>;
|
|
189
243
|
declare const CustomTableGetOutputSchema: z.ZodObject<{
|
|
190
244
|
id: z.ZodString;
|
|
191
245
|
userId: z.ZodString;
|
|
@@ -229,7 +283,7 @@ declare const CustomTableGetOutputSchema: z.ZodObject<{
|
|
|
229
283
|
id: z.ZodString;
|
|
230
284
|
tableId: z.ZodString;
|
|
231
285
|
cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
232
|
-
position: z.
|
|
286
|
+
position: z.ZodNumber;
|
|
233
287
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
234
288
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
235
289
|
}, z.core.$strip>>;
|
|
@@ -242,7 +296,11 @@ declare const CustomTableGetOutputSchema: z.ZodObject<{
|
|
|
242
296
|
kanban: "kanban";
|
|
243
297
|
gallery: "gallery";
|
|
244
298
|
}>;
|
|
245
|
-
config: z.ZodNullable<z.
|
|
299
|
+
config: z.ZodNullable<z.ZodObject<{
|
|
300
|
+
columnWidths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
301
|
+
hiddenColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
302
|
+
groupByColumnId: z.ZodOptional<z.ZodString>;
|
|
303
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
246
304
|
filters: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
|
|
247
305
|
sorts: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
|
|
248
306
|
position: z.ZodNumber;
|
|
@@ -300,24 +358,41 @@ declare const NotebaseBetaStatusOutputSchema: z.ZodObject<{
|
|
|
300
358
|
type NotebaseBetaStatusOutput = z.infer<typeof NotebaseBetaStatusOutputSchema>;
|
|
301
359
|
//#endregion
|
|
302
360
|
//#region src/schemas/row.d.ts
|
|
303
|
-
declare const
|
|
361
|
+
declare const rowCellsSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
362
|
+
declare const tableRowSchema: z.ZodObject<{
|
|
363
|
+
id: z.ZodString;
|
|
364
|
+
tableId: z.ZodString;
|
|
365
|
+
cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
366
|
+
position: z.ZodNumber;
|
|
367
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
368
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
369
|
+
}, z.core.$strip>;
|
|
370
|
+
type TableRow = z.infer<typeof tableRowSchema>;
|
|
371
|
+
declare const rowCreateDataSchema: z.ZodObject<{
|
|
372
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
373
|
+
cells: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
374
|
+
}, z.core.$strict>;
|
|
375
|
+
type RowCreateData = z.infer<typeof rowCreateDataSchema>;
|
|
376
|
+
declare const rowUpdateDataSchema: z.ZodObject<{
|
|
377
|
+
cells: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
378
|
+
}, z.core.$strict>;
|
|
379
|
+
type RowUpdateData = z.infer<typeof rowUpdateDataSchema>;
|
|
380
|
+
declare const RowCreateInputSchema: z.ZodObject<{
|
|
304
381
|
tableId: z.ZodUUID;
|
|
305
382
|
data: z.ZodObject<{
|
|
306
383
|
id: z.ZodOptional<z.ZodUUID>;
|
|
307
|
-
cells: z.ZodRecord<z.ZodString, z.ZodUnknown
|
|
308
|
-
position: z.ZodOptional<z.ZodNumber>;
|
|
384
|
+
cells: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
309
385
|
}, z.core.$strict>;
|
|
310
386
|
}, z.core.$strip>;
|
|
311
|
-
type
|
|
312
|
-
declare const
|
|
387
|
+
type RowCreateInput = z.infer<typeof RowCreateInputSchema>;
|
|
388
|
+
declare const RowCreateOutputSchema: z.ZodObject<{
|
|
313
389
|
txid: z.ZodNumber;
|
|
314
390
|
}, z.core.$strip>;
|
|
315
|
-
type
|
|
391
|
+
type RowCreateOutput = z.infer<typeof RowCreateOutputSchema>;
|
|
316
392
|
declare const RowUpdateInputSchema: z.ZodObject<{
|
|
317
393
|
rowId: z.ZodUUID;
|
|
318
394
|
data: z.ZodObject<{
|
|
319
395
|
cells: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
320
|
-
position: z.ZodOptional<z.ZodNumber>;
|
|
321
396
|
}, z.core.$strict>;
|
|
322
397
|
}, z.core.$strip>;
|
|
323
398
|
type RowUpdateInput = z.infer<typeof RowUpdateInputSchema>;
|
|
@@ -325,7 +400,7 @@ declare const RowUpdateOutputSchema: z.ZodObject<{
|
|
|
325
400
|
id: z.ZodUUID;
|
|
326
401
|
tableId: z.ZodUUID;
|
|
327
402
|
cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
328
|
-
position: z.
|
|
403
|
+
position: z.ZodNumber;
|
|
329
404
|
createdAt: z.ZodDate;
|
|
330
405
|
updatedAt: z.ZodDate;
|
|
331
406
|
txid: z.ZodNumber;
|
|
@@ -339,6 +414,129 @@ declare const RowDeleteOutputSchema: z.ZodObject<{
|
|
|
339
414
|
txid: z.ZodNumber;
|
|
340
415
|
}, z.core.$strip>;
|
|
341
416
|
type RowDeleteOutput = z.infer<typeof RowDeleteOutputSchema>;
|
|
417
|
+
declare const RowReorderInputSchema: z.ZodObject<{
|
|
418
|
+
tableId: z.ZodUUID;
|
|
419
|
+
ids: z.ZodArray<z.ZodUUID>;
|
|
420
|
+
}, z.core.$strip>;
|
|
421
|
+
type RowReorderInput = z.infer<typeof RowReorderInputSchema>;
|
|
422
|
+
declare const RowReorderOutputSchema: z.ZodObject<{
|
|
423
|
+
txid: z.ZodNumber;
|
|
424
|
+
}, z.core.$strip>;
|
|
425
|
+
type RowReorderOutput = z.infer<typeof RowReorderOutputSchema>;
|
|
426
|
+
//#endregion
|
|
427
|
+
//#region src/schemas/view.d.ts
|
|
428
|
+
declare const tableViewTypeSchema: z.ZodEnum<{
|
|
429
|
+
table: "table";
|
|
430
|
+
kanban: "kanban";
|
|
431
|
+
gallery: "gallery";
|
|
432
|
+
}>;
|
|
433
|
+
type TableViewType = z.infer<typeof tableViewTypeSchema>;
|
|
434
|
+
declare const viewConfigSchema: z.ZodObject<{
|
|
435
|
+
columnWidths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
436
|
+
hiddenColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
437
|
+
groupByColumnId: z.ZodOptional<z.ZodString>;
|
|
438
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
439
|
+
type ViewConfig = z.infer<typeof viewConfigSchema>;
|
|
440
|
+
declare const viewFilterSchema: z.ZodObject<{
|
|
441
|
+
columnId: z.ZodString;
|
|
442
|
+
operator: z.ZodString;
|
|
443
|
+
value: z.ZodUnknown;
|
|
444
|
+
}, z.core.$strict>;
|
|
445
|
+
type ViewFilter = z.infer<typeof viewFilterSchema>;
|
|
446
|
+
declare const viewFiltersSchema: z.ZodArray<z.ZodObject<{
|
|
447
|
+
columnId: z.ZodString;
|
|
448
|
+
operator: z.ZodString;
|
|
449
|
+
value: z.ZodUnknown;
|
|
450
|
+
}, z.core.$strict>>;
|
|
451
|
+
declare const viewSortSchema: z.ZodObject<{
|
|
452
|
+
columnId: z.ZodString;
|
|
453
|
+
direction: z.ZodEnum<{
|
|
454
|
+
asc: "asc";
|
|
455
|
+
desc: "desc";
|
|
456
|
+
}>;
|
|
457
|
+
}, z.core.$strict>;
|
|
458
|
+
type ViewSort = z.infer<typeof viewSortSchema>;
|
|
459
|
+
declare const viewSortsSchema: z.ZodArray<z.ZodObject<{
|
|
460
|
+
columnId: z.ZodString;
|
|
461
|
+
direction: z.ZodEnum<{
|
|
462
|
+
asc: "asc";
|
|
463
|
+
desc: "desc";
|
|
464
|
+
}>;
|
|
465
|
+
}, z.core.$strict>>;
|
|
466
|
+
declare const viewCreateDataSchema: z.ZodObject<{
|
|
467
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
468
|
+
name: z.ZodString;
|
|
469
|
+
type: z.ZodEnum<{
|
|
470
|
+
table: "table";
|
|
471
|
+
kanban: "kanban";
|
|
472
|
+
gallery: "gallery";
|
|
473
|
+
}>;
|
|
474
|
+
config: z.ZodOptional<z.ZodObject<{
|
|
475
|
+
columnWidths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
476
|
+
hiddenColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
477
|
+
groupByColumnId: z.ZodOptional<z.ZodString>;
|
|
478
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
479
|
+
filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
480
|
+
columnId: z.ZodString;
|
|
481
|
+
operator: z.ZodString;
|
|
482
|
+
value: z.ZodUnknown;
|
|
483
|
+
}, z.core.$strict>>>;
|
|
484
|
+
sorts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
485
|
+
columnId: z.ZodString;
|
|
486
|
+
direction: z.ZodEnum<{
|
|
487
|
+
asc: "asc";
|
|
488
|
+
desc: "desc";
|
|
489
|
+
}>;
|
|
490
|
+
}, z.core.$strict>>>;
|
|
491
|
+
}, z.core.$strict>;
|
|
492
|
+
type ViewCreateData = z.infer<typeof viewCreateDataSchema>;
|
|
493
|
+
declare const viewUpdateDataSchema: z.ZodObject<{
|
|
494
|
+
name: z.ZodOptional<z.ZodString>;
|
|
495
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
496
|
+
table: "table";
|
|
497
|
+
kanban: "kanban";
|
|
498
|
+
gallery: "gallery";
|
|
499
|
+
}>>;
|
|
500
|
+
config: z.ZodOptional<z.ZodObject<{
|
|
501
|
+
columnWidths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
502
|
+
hiddenColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
503
|
+
groupByColumnId: z.ZodOptional<z.ZodString>;
|
|
504
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
505
|
+
filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
506
|
+
columnId: z.ZodString;
|
|
507
|
+
operator: z.ZodString;
|
|
508
|
+
value: z.ZodUnknown;
|
|
509
|
+
}, z.core.$strict>>>;
|
|
510
|
+
sorts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
511
|
+
columnId: z.ZodString;
|
|
512
|
+
direction: z.ZodEnum<{
|
|
513
|
+
asc: "asc";
|
|
514
|
+
desc: "desc";
|
|
515
|
+
}>;
|
|
516
|
+
}, z.core.$strict>>>;
|
|
517
|
+
}, z.core.$strict>;
|
|
518
|
+
type ViewUpdateData = z.infer<typeof viewUpdateDataSchema>;
|
|
519
|
+
declare const tableViewSchema: z.ZodObject<{
|
|
520
|
+
id: z.ZodString;
|
|
521
|
+
tableId: z.ZodString;
|
|
522
|
+
name: z.ZodString;
|
|
523
|
+
type: z.ZodEnum<{
|
|
524
|
+
table: "table";
|
|
525
|
+
kanban: "kanban";
|
|
526
|
+
gallery: "gallery";
|
|
527
|
+
}>;
|
|
528
|
+
config: z.ZodNullable<z.ZodObject<{
|
|
529
|
+
columnWidths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
530
|
+
hiddenColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
531
|
+
groupByColumnId: z.ZodOptional<z.ZodString>;
|
|
532
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
533
|
+
filters: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
|
|
534
|
+
sorts: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
|
|
535
|
+
position: z.ZodNumber;
|
|
536
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
537
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
538
|
+
}, z.core.$strip>;
|
|
539
|
+
type TableView = z.infer<typeof tableViewSchema>;
|
|
342
540
|
//#endregion
|
|
343
541
|
//#region src/index.d.ts
|
|
344
542
|
declare const contract: {
|
|
@@ -392,7 +590,7 @@ declare const contract: {
|
|
|
392
590
|
id: zod.ZodString;
|
|
393
591
|
tableId: zod.ZodString;
|
|
394
592
|
cells: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
395
|
-
position: zod.
|
|
593
|
+
position: zod.ZodNumber;
|
|
396
594
|
createdAt: zod.ZodCoercedDate<unknown>;
|
|
397
595
|
updatedAt: zod.ZodCoercedDate<unknown>;
|
|
398
596
|
}, zod_v4_core0.$strip>>;
|
|
@@ -405,7 +603,11 @@ declare const contract: {
|
|
|
405
603
|
kanban: "kanban";
|
|
406
604
|
gallery: "gallery";
|
|
407
605
|
}>;
|
|
408
|
-
config: zod.ZodNullable<zod.
|
|
606
|
+
config: zod.ZodNullable<zod.ZodObject<{
|
|
607
|
+
columnWidths: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodNumber>>;
|
|
608
|
+
hiddenColumns: zod.ZodOptional<zod.ZodArray<zod.ZodString>>;
|
|
609
|
+
groupByColumnId: zod.ZodOptional<zod.ZodString>;
|
|
610
|
+
}, zod_v4_core0.$catchall<zod.ZodUnknown>>>;
|
|
409
611
|
filters: zod.ZodNullable<zod.ZodArray<zod.ZodUnknown>>;
|
|
410
612
|
sorts: zod.ZodNullable<zod.ZodArray<zod.ZodUnknown>>;
|
|
411
613
|
position: zod.ZodNumber;
|
|
@@ -456,13 +658,13 @@ declare const contract: {
|
|
|
456
658
|
create: _orpc_contract0.ContractProcedureBuilderWithInputOutput<zod.ZodObject<{
|
|
457
659
|
id: zod.ZodOptional<zod.ZodUUID>;
|
|
458
660
|
name: zod.ZodString;
|
|
459
|
-
}, zod_v4_core0.$
|
|
661
|
+
}, zod_v4_core0.$strict>, zod.ZodObject<{
|
|
460
662
|
txid: zod.ZodNumber;
|
|
461
663
|
}, zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
|
|
462
664
|
update: _orpc_contract0.ContractProcedureBuilderWithInputOutput<zod.ZodObject<{
|
|
463
|
-
id: zod.ZodUUID;
|
|
464
665
|
name: zod.ZodOptional<zod.ZodString>;
|
|
465
|
-
|
|
666
|
+
id: zod.ZodUUID;
|
|
667
|
+
}, zod_v4_core0.$strict>, zod.ZodObject<{
|
|
466
668
|
txid: zod.ZodNumber;
|
|
467
669
|
}, zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
|
|
468
670
|
delete: _orpc_contract0.ContractProcedureBuilderWithInputOutput<zod.ZodObject<{
|
|
@@ -472,7 +674,7 @@ declare const contract: {
|
|
|
472
674
|
}, zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
|
|
473
675
|
};
|
|
474
676
|
column: {
|
|
475
|
-
|
|
677
|
+
create: _orpc_contract0.ContractProcedureBuilderWithInputOutput<zod.ZodObject<{
|
|
476
678
|
tableId: zod.ZodUUID;
|
|
477
679
|
data: zod.ZodObject<{
|
|
478
680
|
id: zod.ZodOptional<zod.ZodUUID>;
|
|
@@ -500,7 +702,6 @@ declare const contract: {
|
|
|
500
702
|
color: zod.ZodString;
|
|
501
703
|
}, zod_v4_core0.$strip>>>;
|
|
502
704
|
}, zod_v4_core0.$strip>], "type">;
|
|
503
|
-
position: zod.ZodOptional<zod.ZodNumber>;
|
|
504
705
|
}, zod_v4_core0.$strict>;
|
|
505
706
|
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
506
707
|
txid: zod.ZodNumber;
|
|
@@ -542,14 +743,19 @@ declare const contract: {
|
|
|
542
743
|
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
543
744
|
txid: zod.ZodNumber;
|
|
544
745
|
}, zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
|
|
746
|
+
reorder: _orpc_contract0.ContractProcedureBuilderWithInputOutput<zod.ZodObject<{
|
|
747
|
+
tableId: zod.ZodUUID;
|
|
748
|
+
ids: zod.ZodArray<zod.ZodUUID>;
|
|
749
|
+
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
750
|
+
txid: zod.ZodNumber;
|
|
751
|
+
}, zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
|
|
545
752
|
};
|
|
546
753
|
row: {
|
|
547
|
-
|
|
754
|
+
create: _orpc_contract0.ContractProcedureBuilderWithInputOutput<zod.ZodObject<{
|
|
548
755
|
tableId: zod.ZodUUID;
|
|
549
756
|
data: zod.ZodObject<{
|
|
550
757
|
id: zod.ZodOptional<zod.ZodUUID>;
|
|
551
|
-
cells: zod.ZodRecord<zod.ZodString, zod.ZodUnknown
|
|
552
|
-
position: zod.ZodOptional<zod.ZodNumber>;
|
|
758
|
+
cells: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
553
759
|
}, zod_v4_core0.$strict>;
|
|
554
760
|
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
555
761
|
txid: zod.ZodNumber;
|
|
@@ -558,13 +764,12 @@ declare const contract: {
|
|
|
558
764
|
rowId: zod.ZodUUID;
|
|
559
765
|
data: zod.ZodObject<{
|
|
560
766
|
cells: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
561
|
-
position: zod.ZodOptional<zod.ZodNumber>;
|
|
562
767
|
}, zod_v4_core0.$strict>;
|
|
563
768
|
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
564
769
|
id: zod.ZodUUID;
|
|
565
770
|
tableId: zod.ZodUUID;
|
|
566
771
|
cells: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
567
|
-
position: zod.
|
|
772
|
+
position: zod.ZodNumber;
|
|
568
773
|
createdAt: zod.ZodDate;
|
|
569
774
|
updatedAt: zod.ZodDate;
|
|
570
775
|
txid: zod.ZodNumber;
|
|
@@ -574,6 +779,12 @@ declare const contract: {
|
|
|
574
779
|
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
575
780
|
txid: zod.ZodNumber;
|
|
576
781
|
}, zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
|
|
782
|
+
reorder: _orpc_contract0.ContractProcedureBuilderWithInputOutput<zod.ZodObject<{
|
|
783
|
+
tableId: zod.ZodUUID;
|
|
784
|
+
ids: zod.ZodArray<zod.ZodUUID>;
|
|
785
|
+
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
786
|
+
txid: zod.ZodNumber;
|
|
787
|
+
}, zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
|
|
577
788
|
};
|
|
578
789
|
notebaseBeta: {
|
|
579
790
|
status: _orpc_contract0.ContractProcedureBuilderWithInputOutput<zod.ZodObject<{}, zod_v4_core0.$strict>, zod.ZodObject<{
|
|
@@ -583,5 +794,5 @@ declare const contract: {
|
|
|
583
794
|
};
|
|
584
795
|
type ORPCRouterClient = ContractRouterClient<typeof contract>;
|
|
585
796
|
//#endregion
|
|
586
|
-
export {
|
|
797
|
+
export { ColumnCreateData, ColumnCreateInput, ColumnCreateInputSchema, ColumnCreateOutput, ColumnCreateOutputSchema, ColumnDeleteInput, ColumnDeleteInputSchema, ColumnDeleteOutput, ColumnDeleteOutputSchema, ColumnReorderInput, ColumnReorderInputSchema, ColumnReorderOutput, ColumnReorderOutputSchema, ColumnUpdateData, ColumnUpdateInput, ColumnUpdateInputSchema, ColumnUpdateOutput, ColumnUpdateOutputSchema, CustomTableCreateData, CustomTableCreateInput, CustomTableCreateInputSchema, CustomTableCreateOutput, CustomTableCreateOutputSchema, CustomTableDeleteInput, CustomTableDeleteInputSchema, CustomTableDeleteOutput, CustomTableDeleteOutputSchema, CustomTableGetInput, CustomTableGetInputSchema, CustomTableGetOutput, CustomTableGetOutputSchema, CustomTableGetSchemaInput, CustomTableGetSchemaInputSchema, CustomTableGetSchemaOutput, CustomTableGetSchemaOutputSchema, CustomTableListInput, CustomTableListInputSchema, CustomTableListItem, CustomTableListItemSchema, CustomTableListOutput, CustomTableListOutputSchema, CustomTableUpdateData, CustomTableUpdateInput, CustomTableUpdateInputSchema, CustomTableUpdateOutput, CustomTableUpdateOutputSchema, NotebaseBetaStatusInput, NotebaseBetaStatusInputSchema, NotebaseBetaStatusOutput, NotebaseBetaStatusOutputSchema, ORPCRouterClient, RowCreateData, RowCreateInput, RowCreateInputSchema, RowCreateOutput, RowCreateOutputSchema, RowDeleteInput, RowDeleteInputSchema, RowDeleteOutput, RowDeleteOutputSchema, RowReorderInput, RowReorderInputSchema, RowReorderOutput, RowReorderOutputSchema, RowUpdateData, RowUpdateInput, RowUpdateInputSchema, RowUpdateOutput, RowUpdateOutputSchema, TableColumn, TableRow, TableView, TableViewType, ViewConfig, ViewCreateData, ViewFilter, ViewSort, ViewUpdateData, columnCreateDataSchema, columnUpdateDataSchema, columnWidthSchema, contract, customTableCreateDataSchema, customTableUpdateDataSchema, rowCellsSchema, rowCreateDataSchema, rowUpdateDataSchema, tableColumnSchema, tableRowSchema, tableViewSchema, tableViewTypeSchema, viewConfigSchema, viewCreateDataSchema, viewFilterSchema, viewFiltersSchema, viewSortSchema, viewSortsSchema, viewUpdateDataSchema };
|
|
587
798
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/schemas/column.ts","../src/schemas/custom-table.ts","../src/schemas/notebase-beta.ts","../src/schemas/row.ts","../src/schemas/view.ts","../src/index.ts"],"mappings":";;;;;;;cAGa,iBAAA,EAAiB,CAAA,CAAA,SAAA;AAAA,cAEjB,iBAAA,EAAiB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAWlB,WAAA,GAAc,CAAA,CAAE,KAAA,QAAa,iBAAA;AAAA,cAE5B,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;KAKvB,gBAAA,GAAmB,CAAA,CAAE,KAAA,QAAa,sBAAA;AAAA,cAEjC,sBAAA,EAAsB,CAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;KAKvB,gBAAA,GAAmB,CAAA,CAAE,KAAA,QAAa,sBAAA;AAAA,cAEjC,uBAAA,EAAuB,CAAA,CAAA,SAAA;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEW,gBAAA,GAAmB,oBAAA,QAA4B,QAAA"}
|
package/dist/index.js
CHANGED
|
@@ -3,41 +3,59 @@ import { COLUMN_MAX_WIDTH, COLUMN_MIN_WIDTH, columnConfigSchema } from "@read-fr
|
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
|
|
5
5
|
//#region src/schemas/column.ts
|
|
6
|
-
const
|
|
6
|
+
const columnWidthSchema = z.number().int().min(COLUMN_MIN_WIDTH).max(COLUMN_MAX_WIDTH);
|
|
7
|
+
const tableColumnSchema = z.object({
|
|
8
|
+
id: z.string(),
|
|
9
|
+
tableId: z.string(),
|
|
10
|
+
name: z.string(),
|
|
11
|
+
config: columnConfigSchema,
|
|
12
|
+
position: z.number(),
|
|
13
|
+
isPrimary: z.boolean(),
|
|
14
|
+
width: z.number().nullable(),
|
|
15
|
+
createdAt: z.coerce.date(),
|
|
16
|
+
updatedAt: z.coerce.date()
|
|
17
|
+
});
|
|
18
|
+
const columnCreateDataSchema = z.object({
|
|
19
|
+
id: z.uuid().optional(),
|
|
20
|
+
name: z.string().min(1),
|
|
21
|
+
config: columnConfigSchema
|
|
22
|
+
}).strict();
|
|
23
|
+
const columnUpdateDataSchema = z.object({
|
|
24
|
+
name: z.string().min(1).optional(),
|
|
25
|
+
config: columnConfigSchema.optional(),
|
|
26
|
+
width: columnWidthSchema.nullable().optional()
|
|
27
|
+
}).strict();
|
|
28
|
+
const ColumnCreateInputSchema = z.object({
|
|
7
29
|
tableId: z.uuid(),
|
|
8
|
-
data:
|
|
9
|
-
id: z.uuid().optional(),
|
|
10
|
-
name: z.string().min(1),
|
|
11
|
-
config: columnConfigSchema,
|
|
12
|
-
position: z.number().int().optional()
|
|
13
|
-
}).strict()
|
|
30
|
+
data: columnCreateDataSchema
|
|
14
31
|
});
|
|
15
|
-
const
|
|
32
|
+
const ColumnCreateOutputSchema = z.object({ txid: z.number() });
|
|
16
33
|
const ColumnUpdateInputSchema = z.object({
|
|
17
34
|
columnId: z.uuid(),
|
|
18
|
-
data:
|
|
19
|
-
name: z.string().min(1).optional(),
|
|
20
|
-
config: columnConfigSchema.optional(),
|
|
21
|
-
width: z.number().int().min(COLUMN_MIN_WIDTH).max(COLUMN_MAX_WIDTH).nullable().optional()
|
|
22
|
-
}).strict()
|
|
35
|
+
data: columnUpdateDataSchema
|
|
23
36
|
});
|
|
24
37
|
const ColumnUpdateOutputSchema = z.object({ txid: z.number() });
|
|
25
38
|
const ColumnDeleteInputSchema = z.object({ columnId: z.uuid() });
|
|
26
39
|
const ColumnDeleteOutputSchema = z.object({ txid: z.number() });
|
|
40
|
+
const ColumnReorderInputSchema = z.object({
|
|
41
|
+
tableId: z.uuid(),
|
|
42
|
+
ids: z.array(z.uuid())
|
|
43
|
+
});
|
|
44
|
+
const ColumnReorderOutputSchema = z.object({ txid: z.number() });
|
|
27
45
|
|
|
28
46
|
//#endregion
|
|
29
47
|
//#region src/contracts/column.ts
|
|
30
48
|
const columnContract = {
|
|
31
|
-
|
|
49
|
+
create: oc.route({
|
|
32
50
|
method: "POST",
|
|
33
51
|
path: "/columns",
|
|
34
|
-
summary: "
|
|
52
|
+
summary: "Create column",
|
|
35
53
|
tags: ["Columns"]
|
|
36
|
-
}).input(
|
|
54
|
+
}).input(ColumnCreateInputSchema).output(ColumnCreateOutputSchema),
|
|
37
55
|
update: oc.route({
|
|
38
56
|
method: "PATCH",
|
|
39
57
|
path: "/columns/{columnId}",
|
|
40
|
-
summary: "Update column
|
|
58
|
+
summary: "Update column",
|
|
41
59
|
tags: ["Columns"]
|
|
42
60
|
}).input(ColumnUpdateInputSchema).output(ColumnUpdateOutputSchema),
|
|
43
61
|
delete: oc.route({
|
|
@@ -45,81 +63,144 @@ const columnContract = {
|
|
|
45
63
|
path: "/columns/{columnId}",
|
|
46
64
|
summary: "Delete column",
|
|
47
65
|
tags: ["Columns"]
|
|
48
|
-
}).input(ColumnDeleteInputSchema).output(ColumnDeleteOutputSchema)
|
|
66
|
+
}).input(ColumnDeleteInputSchema).output(ColumnDeleteOutputSchema),
|
|
67
|
+
reorder: oc.route({
|
|
68
|
+
method: "POST",
|
|
69
|
+
path: "/columns/reorder",
|
|
70
|
+
summary: "Reorder columns in a table",
|
|
71
|
+
tags: ["Columns"]
|
|
72
|
+
}).input(ColumnReorderInputSchema).output(ColumnReorderOutputSchema)
|
|
49
73
|
};
|
|
50
74
|
|
|
51
75
|
//#endregion
|
|
52
|
-
//#region src/schemas/
|
|
53
|
-
const
|
|
54
|
-
const
|
|
55
|
-
id: z.string(),
|
|
56
|
-
name: z.string()
|
|
57
|
-
});
|
|
58
|
-
const CustomTableListOutputSchema = z.array(CustomTableListItemSchema);
|
|
59
|
-
const CustomTableCreateInputSchema = z.object({
|
|
60
|
-
id: z.uuid().optional(),
|
|
61
|
-
name: z.string().min(1)
|
|
62
|
-
});
|
|
63
|
-
const CustomTableCreateOutputSchema = z.object({ txid: z.number() });
|
|
64
|
-
const CustomTableUpdateInputSchema = z.object({
|
|
65
|
-
id: z.uuid(),
|
|
66
|
-
name: z.string().min(1).optional()
|
|
67
|
-
});
|
|
68
|
-
const CustomTableUpdateOutputSchema = z.object({ txid: z.number() });
|
|
69
|
-
const CustomTableDeleteInputSchema = z.object({ id: z.uuid() });
|
|
70
|
-
const CustomTableDeleteOutputSchema = z.object({ txid: z.number() });
|
|
71
|
-
const CustomTableGetInputSchema = z.object({ id: z.uuid() });
|
|
72
|
-
const CustomTableGetSchemaInputSchema = z.object({ id: z.uuid() });
|
|
73
|
-
const TableColumnSchema = z.object({
|
|
76
|
+
//#region src/schemas/row.ts
|
|
77
|
+
const rowCellsSchema = z.record(z.string(), z.unknown());
|
|
78
|
+
const tableRowSchema = z.object({
|
|
74
79
|
id: z.string(),
|
|
75
80
|
tableId: z.string(),
|
|
76
|
-
|
|
77
|
-
config: columnConfigSchema,
|
|
81
|
+
cells: rowCellsSchema,
|
|
78
82
|
position: z.number(),
|
|
79
|
-
isPrimary: z.boolean(),
|
|
80
|
-
width: z.number().nullable(),
|
|
81
83
|
createdAt: z.coerce.date(),
|
|
82
84
|
updatedAt: z.coerce.date()
|
|
83
85
|
});
|
|
84
|
-
const
|
|
85
|
-
id: z.
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
86
|
+
const rowCreateDataSchema = z.object({
|
|
87
|
+
id: z.uuid().optional(),
|
|
88
|
+
cells: rowCellsSchema.optional()
|
|
89
|
+
}).strict();
|
|
90
|
+
const rowUpdateDataSchema = z.object({ cells: rowCellsSchema.optional() }).strict();
|
|
91
|
+
const RowCreateInputSchema = z.object({
|
|
92
|
+
tableId: z.uuid(),
|
|
93
|
+
data: rowCreateDataSchema
|
|
94
|
+
});
|
|
95
|
+
const RowCreateOutputSchema = z.object({ txid: z.number() });
|
|
96
|
+
const RowUpdateInputSchema = z.object({
|
|
97
|
+
rowId: z.uuid(),
|
|
98
|
+
data: rowUpdateDataSchema
|
|
91
99
|
});
|
|
92
|
-
const
|
|
100
|
+
const RowUpdateOutputSchema = z.object({
|
|
101
|
+
id: z.uuid(),
|
|
102
|
+
tableId: z.uuid(),
|
|
103
|
+
cells: rowCellsSchema,
|
|
104
|
+
position: z.number().int(),
|
|
105
|
+
createdAt: z.date(),
|
|
106
|
+
updatedAt: z.date(),
|
|
107
|
+
txid: z.number()
|
|
108
|
+
});
|
|
109
|
+
const RowDeleteInputSchema = z.object({ rowId: z.uuid() });
|
|
110
|
+
const RowDeleteOutputSchema = z.object({ txid: z.number() });
|
|
111
|
+
const RowReorderInputSchema = z.object({
|
|
112
|
+
tableId: z.uuid(),
|
|
113
|
+
ids: z.array(z.uuid())
|
|
114
|
+
});
|
|
115
|
+
const RowReorderOutputSchema = z.object({ txid: z.number() });
|
|
116
|
+
|
|
117
|
+
//#endregion
|
|
118
|
+
//#region src/schemas/view.ts
|
|
119
|
+
const tableViewTypeSchema = z.enum([
|
|
120
|
+
"table",
|
|
121
|
+
"kanban",
|
|
122
|
+
"gallery"
|
|
123
|
+
]);
|
|
124
|
+
const viewConfigSchema = z.object({
|
|
125
|
+
columnWidths: z.record(z.string(), z.number()).optional(),
|
|
126
|
+
hiddenColumns: z.array(z.string()).optional(),
|
|
127
|
+
groupByColumnId: z.string().optional()
|
|
128
|
+
}).catchall(z.unknown());
|
|
129
|
+
const viewFilterSchema = z.object({
|
|
130
|
+
columnId: z.string(),
|
|
131
|
+
operator: z.string(),
|
|
132
|
+
value: z.unknown()
|
|
133
|
+
}).strict();
|
|
134
|
+
const viewFiltersSchema = z.array(viewFilterSchema);
|
|
135
|
+
const viewSortSchema = z.object({
|
|
136
|
+
columnId: z.string(),
|
|
137
|
+
direction: z.enum(["asc", "desc"])
|
|
138
|
+
}).strict();
|
|
139
|
+
const viewSortsSchema = z.array(viewSortSchema);
|
|
140
|
+
const viewCreateDataSchema = z.object({
|
|
141
|
+
id: z.uuid().optional(),
|
|
142
|
+
name: z.string().min(1),
|
|
143
|
+
type: tableViewTypeSchema,
|
|
144
|
+
config: viewConfigSchema.optional(),
|
|
145
|
+
filters: viewFiltersSchema.optional(),
|
|
146
|
+
sorts: viewSortsSchema.optional()
|
|
147
|
+
}).strict();
|
|
148
|
+
const viewUpdateDataSchema = z.object({
|
|
149
|
+
name: z.string().min(1).optional(),
|
|
150
|
+
type: tableViewTypeSchema.optional(),
|
|
151
|
+
config: viewConfigSchema.optional(),
|
|
152
|
+
filters: viewFiltersSchema.optional(),
|
|
153
|
+
sorts: viewSortsSchema.optional()
|
|
154
|
+
}).strict();
|
|
155
|
+
const tableViewSchema = z.object({
|
|
93
156
|
id: z.string(),
|
|
94
157
|
tableId: z.string(),
|
|
95
158
|
name: z.string(),
|
|
96
|
-
type:
|
|
97
|
-
|
|
98
|
-
"kanban",
|
|
99
|
-
"gallery"
|
|
100
|
-
]),
|
|
101
|
-
config: z.record(z.string(), z.unknown()).nullable(),
|
|
159
|
+
type: tableViewTypeSchema,
|
|
160
|
+
config: viewConfigSchema.nullable(),
|
|
102
161
|
filters: z.array(z.unknown()).nullable(),
|
|
103
162
|
sorts: z.array(z.unknown()).nullable(),
|
|
104
163
|
position: z.number(),
|
|
105
164
|
createdAt: z.coerce.date(),
|
|
106
165
|
updatedAt: z.coerce.date()
|
|
107
166
|
});
|
|
167
|
+
|
|
168
|
+
//#endregion
|
|
169
|
+
//#region src/schemas/custom-table.ts
|
|
170
|
+
const CustomTableListInputSchema = z.object({});
|
|
171
|
+
const CustomTableListItemSchema = z.object({
|
|
172
|
+
id: z.string(),
|
|
173
|
+
name: z.string()
|
|
174
|
+
});
|
|
175
|
+
const CustomTableListOutputSchema = z.array(CustomTableListItemSchema);
|
|
176
|
+
const customTableCreateDataSchema = z.object({
|
|
177
|
+
id: z.uuid().optional(),
|
|
178
|
+
name: z.string().min(1)
|
|
179
|
+
}).strict();
|
|
180
|
+
const CustomTableCreateInputSchema = customTableCreateDataSchema;
|
|
181
|
+
const CustomTableCreateOutputSchema = z.object({ txid: z.number() });
|
|
182
|
+
const customTableUpdateDataSchema = z.object({ name: z.string().min(1).optional() }).strict();
|
|
183
|
+
const CustomTableUpdateInputSchema = customTableUpdateDataSchema.extend({ id: z.uuid() });
|
|
184
|
+
const CustomTableUpdateOutputSchema = z.object({ txid: z.number() });
|
|
185
|
+
const CustomTableDeleteInputSchema = z.object({ id: z.uuid() });
|
|
186
|
+
const CustomTableDeleteOutputSchema = z.object({ txid: z.number() });
|
|
187
|
+
const CustomTableGetInputSchema = z.object({ id: z.uuid() });
|
|
188
|
+
const CustomTableGetSchemaInputSchema = z.object({ id: z.uuid() });
|
|
108
189
|
const CustomTableGetOutputSchema = z.object({
|
|
109
190
|
id: z.string(),
|
|
110
191
|
userId: z.string(),
|
|
111
192
|
name: z.string(),
|
|
112
193
|
createdAt: z.coerce.date(),
|
|
113
194
|
updatedAt: z.coerce.date(),
|
|
114
|
-
columns: z.array(
|
|
115
|
-
rows: z.array(
|
|
116
|
-
views: z.array(
|
|
195
|
+
columns: z.array(tableColumnSchema),
|
|
196
|
+
rows: z.array(tableRowSchema),
|
|
197
|
+
views: z.array(tableViewSchema)
|
|
117
198
|
});
|
|
118
199
|
const CustomTableGetSchemaOutputSchema = z.object({
|
|
119
200
|
id: z.string(),
|
|
120
201
|
name: z.string(),
|
|
121
202
|
updatedAt: z.coerce.date(),
|
|
122
|
-
columns: z.array(
|
|
203
|
+
columns: z.array(tableColumnSchema)
|
|
123
204
|
});
|
|
124
205
|
|
|
125
206
|
//#endregion
|
|
@@ -177,45 +258,15 @@ const notebaseBetaContract = { status: oc.route({
|
|
|
177
258
|
tags: ["Notebase Beta"]
|
|
178
259
|
}).input(NotebaseBetaStatusInputSchema).output(NotebaseBetaStatusOutputSchema) };
|
|
179
260
|
|
|
180
|
-
//#endregion
|
|
181
|
-
//#region src/schemas/row.ts
|
|
182
|
-
const RowAddInputSchema = z.object({
|
|
183
|
-
tableId: z.uuid(),
|
|
184
|
-
data: z.object({
|
|
185
|
-
id: z.uuid().optional(),
|
|
186
|
-
cells: z.record(z.string(), z.unknown()),
|
|
187
|
-
position: z.number().int().optional()
|
|
188
|
-
}).strict()
|
|
189
|
-
});
|
|
190
|
-
const RowAddOutputSchema = z.object({ txid: z.number() });
|
|
191
|
-
const RowUpdateInputSchema = z.object({
|
|
192
|
-
rowId: z.uuid(),
|
|
193
|
-
data: z.object({
|
|
194
|
-
cells: z.record(z.string(), z.unknown()).optional(),
|
|
195
|
-
position: z.number().int().optional()
|
|
196
|
-
}).strict()
|
|
197
|
-
});
|
|
198
|
-
const RowUpdateOutputSchema = z.object({
|
|
199
|
-
id: z.uuid(),
|
|
200
|
-
tableId: z.uuid(),
|
|
201
|
-
cells: z.record(z.string(), z.unknown()),
|
|
202
|
-
position: z.number().int().nullable(),
|
|
203
|
-
createdAt: z.date(),
|
|
204
|
-
updatedAt: z.date(),
|
|
205
|
-
txid: z.number()
|
|
206
|
-
});
|
|
207
|
-
const RowDeleteInputSchema = z.object({ rowId: z.uuid() });
|
|
208
|
-
const RowDeleteOutputSchema = z.object({ txid: z.number() });
|
|
209
|
-
|
|
210
261
|
//#endregion
|
|
211
262
|
//#region src/contracts/row.ts
|
|
212
263
|
const rowContract = {
|
|
213
|
-
|
|
264
|
+
create: oc.route({
|
|
214
265
|
method: "POST",
|
|
215
266
|
path: "/rows",
|
|
216
|
-
summary: "
|
|
267
|
+
summary: "Create row",
|
|
217
268
|
tags: ["Rows"]
|
|
218
|
-
}).input(
|
|
269
|
+
}).input(RowCreateInputSchema).output(RowCreateOutputSchema),
|
|
219
270
|
update: oc.route({
|
|
220
271
|
method: "PATCH",
|
|
221
272
|
path: "/rows/{rowId}",
|
|
@@ -227,7 +278,13 @@ const rowContract = {
|
|
|
227
278
|
path: "/rows/{rowId}",
|
|
228
279
|
summary: "Delete row",
|
|
229
280
|
tags: ["Rows"]
|
|
230
|
-
}).input(RowDeleteInputSchema).output(RowDeleteOutputSchema)
|
|
281
|
+
}).input(RowDeleteInputSchema).output(RowDeleteOutputSchema),
|
|
282
|
+
reorder: oc.route({
|
|
283
|
+
method: "POST",
|
|
284
|
+
path: "/rows/reorder",
|
|
285
|
+
summary: "Reorder rows in a table",
|
|
286
|
+
tags: ["Rows"]
|
|
287
|
+
}).input(RowReorderInputSchema).output(RowReorderOutputSchema)
|
|
231
288
|
};
|
|
232
289
|
|
|
233
290
|
//#endregion
|
|
@@ -240,5 +297,5 @@ const contract = {
|
|
|
240
297
|
};
|
|
241
298
|
|
|
242
299
|
//#endregion
|
|
243
|
-
export {
|
|
300
|
+
export { ColumnCreateInputSchema, ColumnCreateOutputSchema, ColumnDeleteInputSchema, ColumnDeleteOutputSchema, ColumnReorderInputSchema, ColumnReorderOutputSchema, ColumnUpdateInputSchema, ColumnUpdateOutputSchema, CustomTableCreateInputSchema, CustomTableCreateOutputSchema, CustomTableDeleteInputSchema, CustomTableDeleteOutputSchema, CustomTableGetInputSchema, CustomTableGetOutputSchema, CustomTableGetSchemaInputSchema, CustomTableGetSchemaOutputSchema, CustomTableListInputSchema, CustomTableListItemSchema, CustomTableListOutputSchema, CustomTableUpdateInputSchema, CustomTableUpdateOutputSchema, NotebaseBetaStatusInputSchema, NotebaseBetaStatusOutputSchema, RowCreateInputSchema, RowCreateOutputSchema, RowDeleteInputSchema, RowDeleteOutputSchema, RowReorderInputSchema, RowReorderOutputSchema, RowUpdateInputSchema, RowUpdateOutputSchema, columnCreateDataSchema, columnUpdateDataSchema, columnWidthSchema, contract, customTableCreateDataSchema, customTableUpdateDataSchema, rowCellsSchema, rowCreateDataSchema, rowUpdateDataSchema, tableColumnSchema, tableRowSchema, tableViewSchema, tableViewTypeSchema, viewConfigSchema, viewCreateDataSchema, viewFilterSchema, viewFiltersSchema, viewSortSchema, viewSortsSchema, viewUpdateDataSchema };
|
|
244
301
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../src/schemas/column.ts","../src/contracts/column.ts","../src/schemas/custom-table.ts","../src/contracts/custom-table.ts","../src/schemas/notebase-beta.ts","../src/contracts/notebase-beta.ts","../src/schemas/row.ts","../src/contracts/row.ts","../src/index.ts"],"sourcesContent":["import { COLUMN_MAX_WIDTH, COLUMN_MIN_WIDTH, columnConfigSchema } from '@read-frog/definitions'\nimport { z } from 'zod'\n\nexport const ColumnAddInputSchema = z.object({\n tableId: z.uuid(),\n data: z.object({\n id: z.uuid().optional(),\n name: z.string().min(1),\n config: columnConfigSchema,\n position: z.number().int().optional(),\n }).strict(),\n})\n\nexport const ColumnAddOutputSchema = z.object({\n txid: z.number(),\n})\n\nexport const ColumnUpdateInputSchema = z.object({\n columnId: z.uuid(),\n data: z.object({\n name: z.string().min(1).optional(),\n config: columnConfigSchema.optional(),\n width: z.number().int().min(COLUMN_MIN_WIDTH).max(COLUMN_MAX_WIDTH).nullable().optional(),\n }).strict(),\n})\n\nexport const ColumnUpdateOutputSchema = z.object({\n txid: z.number(),\n})\n\nexport const ColumnDeleteInputSchema = z.object({\n columnId: z.uuid(),\n})\n\nexport const ColumnDeleteOutputSchema = z.object({\n txid: z.number(),\n})\n","import { oc } from '@orpc/contract'\nimport {\n ColumnAddInputSchema,\n ColumnAddOutputSchema,\n ColumnDeleteInputSchema,\n ColumnDeleteOutputSchema,\n ColumnUpdateInputSchema,\n ColumnUpdateOutputSchema,\n} from '@/schemas/column'\n\nexport const columnContract = {\n add: oc\n .route({\n method: 'POST',\n path: '/columns',\n summary: 'Add column to table',\n tags: ['Columns'],\n })\n .input(ColumnAddInputSchema)\n .output(ColumnAddOutputSchema),\n\n update: oc\n .route({\n method: 'PATCH',\n path: '/columns/{columnId}',\n summary: 'Update column name',\n tags: ['Columns'],\n })\n .input(ColumnUpdateInputSchema)\n .output(ColumnUpdateOutputSchema),\n\n delete: oc\n .route({\n method: 'DELETE',\n path: '/columns/{columnId}',\n summary: 'Delete column',\n tags: ['Columns'],\n })\n .input(ColumnDeleteInputSchema)\n .output(ColumnDeleteOutputSchema),\n}\n","import { columnConfigSchema } from '@read-frog/definitions'\nimport { z } from 'zod'\n\nexport const CustomTableListInputSchema = z.object({})\nexport type CustomTableListInput = z.infer<typeof CustomTableListInputSchema>\n\nexport const CustomTableListItemSchema = z.object({\n id: z.string(),\n name: z.string(),\n})\nexport type CustomTableListItem = z.infer<typeof CustomTableListItemSchema>\n\nexport const CustomTableListOutputSchema = z.array(CustomTableListItemSchema)\nexport type CustomTableListOutput = z.infer<typeof CustomTableListOutputSchema>\n\nexport const CustomTableCreateInputSchema = z.object({\n id: z.uuid().optional(),\n name: z.string().min(1),\n})\nexport type CustomTableCreateInput = z.infer<typeof CustomTableCreateInputSchema>\n\nexport const CustomTableCreateOutputSchema = z.object({\n txid: z.number(),\n})\nexport type CustomTableCreateOutput = z.infer<typeof CustomTableCreateOutputSchema>\n\nexport const CustomTableUpdateInputSchema = z.object({\n id: z.uuid(),\n name: z.string().min(1).optional(),\n})\nexport type CustomTableUpdateInput = z.infer<typeof CustomTableUpdateInputSchema>\n\nexport const CustomTableUpdateOutputSchema = z.object({\n txid: z.number(),\n})\nexport type CustomTableUpdateOutput = z.infer<typeof CustomTableUpdateOutputSchema>\n\nexport const CustomTableDeleteInputSchema = z.object({\n id: z.uuid(),\n})\nexport type CustomTableDeleteInput = z.infer<typeof CustomTableDeleteInputSchema>\n\nexport const CustomTableDeleteOutputSchema = z.object({\n txid: z.number(),\n})\nexport type CustomTableDeleteOutput = z.infer<typeof CustomTableDeleteOutputSchema>\n\n// Get endpoint schemas\nexport const CustomTableGetInputSchema = z.object({\n id: z.uuid(),\n})\nexport type CustomTableGetInput = z.infer<typeof CustomTableGetInputSchema>\n\nexport const CustomTableGetSchemaInputSchema = z.object({\n id: z.uuid(),\n})\nexport type CustomTableGetSchemaInput = z.infer<typeof CustomTableGetSchemaInputSchema>\n\nexport const TableColumnSchema = z.object({\n id: z.string(),\n tableId: z.string(),\n name: z.string(),\n config: columnConfigSchema,\n position: z.number(),\n isPrimary: z.boolean(),\n width: z.number().nullable(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n})\nexport type TableColumn = z.infer<typeof TableColumnSchema>\n\nexport const TableRowSchema = z.object({\n id: z.string(),\n tableId: z.string(),\n cells: z.record(z.string(), z.unknown()),\n position: z.number().nullable(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n})\nexport type TableRow = z.infer<typeof TableRowSchema>\n\nexport const TableViewSchema = z.object({\n id: z.string(),\n tableId: z.string(),\n name: z.string(),\n type: z.enum(['table', 'kanban', 'gallery']),\n config: z.record(z.string(), z.unknown()).nullable(),\n filters: z.array(z.unknown()).nullable(),\n sorts: z.array(z.unknown()).nullable(),\n position: z.number(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n})\nexport type TableView = z.infer<typeof TableViewSchema>\n\nexport const CustomTableGetOutputSchema = z.object({\n id: z.string(),\n userId: z.string(),\n name: z.string(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n columns: z.array(TableColumnSchema),\n rows: z.array(TableRowSchema),\n views: z.array(TableViewSchema),\n})\nexport type CustomTableGetOutput = z.infer<typeof CustomTableGetOutputSchema>\n\nexport const CustomTableGetSchemaOutputSchema = z.object({\n id: z.string(),\n name: z.string(),\n updatedAt: z.coerce.date(),\n columns: z.array(TableColumnSchema),\n})\nexport type CustomTableGetSchemaOutput = z.infer<typeof CustomTableGetSchemaOutputSchema>\n","import { oc } from '@orpc/contract'\nimport {\n CustomTableCreateInputSchema,\n CustomTableCreateOutputSchema,\n CustomTableDeleteInputSchema,\n CustomTableDeleteOutputSchema,\n CustomTableGetInputSchema,\n CustomTableGetOutputSchema,\n CustomTableGetSchemaInputSchema,\n CustomTableGetSchemaOutputSchema,\n CustomTableListInputSchema,\n CustomTableListOutputSchema,\n CustomTableUpdateInputSchema,\n CustomTableUpdateOutputSchema,\n} from '@/schemas/custom-table'\n\nexport const customTableContract = {\n list: oc\n .route({\n method: 'GET',\n path: '/custom-tables',\n summary: 'List custom tables',\n tags: ['Custom Tables'],\n })\n .input(CustomTableListInputSchema)\n .output(CustomTableListOutputSchema),\n\n get: oc\n .route({\n method: 'GET',\n path: '/custom-tables/{id}',\n summary: 'Get custom table with columns, rows, and views',\n tags: ['Custom Tables'],\n })\n .input(CustomTableGetInputSchema)\n .output(CustomTableGetOutputSchema),\n\n getSchema: oc\n .route({\n method: 'GET',\n path: '/custom-tables/{id}/schema',\n summary: 'Get custom table schema',\n tags: ['Custom Tables'],\n })\n .input(CustomTableGetSchemaInputSchema)\n .output(CustomTableGetSchemaOutputSchema),\n\n create: oc\n .route({\n method: 'POST',\n path: '/custom-tables',\n summary: 'Create custom table',\n tags: ['Custom Tables'],\n })\n .input(CustomTableCreateInputSchema)\n .output(CustomTableCreateOutputSchema),\n\n update: oc\n .route({\n method: 'PUT',\n path: '/custom-tables/{id}',\n summary: 'Update custom table',\n tags: ['Custom Tables'],\n })\n .input(CustomTableUpdateInputSchema)\n .output(CustomTableUpdateOutputSchema),\n\n delete: oc\n .route({\n method: 'DELETE',\n path: '/custom-tables/{id}',\n summary: 'Delete custom table',\n tags: ['Custom Tables'],\n })\n .input(CustomTableDeleteInputSchema)\n .output(CustomTableDeleteOutputSchema),\n}\n","import { z } from 'zod'\n\nexport const NotebaseBetaStatusInputSchema = z.object({}).strict()\nexport type NotebaseBetaStatusInput = z.infer<typeof NotebaseBetaStatusInputSchema>\n\nexport const NotebaseBetaStatusOutputSchema = z.object({\n allowed: z.boolean(),\n})\nexport type NotebaseBetaStatusOutput = z.infer<typeof NotebaseBetaStatusOutputSchema>\n","import { oc } from '@orpc/contract'\nimport {\n NotebaseBetaStatusInputSchema,\n NotebaseBetaStatusOutputSchema,\n} from '@/schemas/notebase-beta'\n\nexport const notebaseBetaContract = {\n status: oc\n .route({\n method: 'GET',\n path: '/notebase-beta/status',\n summary: 'Get Notebase beta access status',\n tags: ['Notebase Beta'],\n })\n .input(NotebaseBetaStatusInputSchema)\n .output(NotebaseBetaStatusOutputSchema),\n}\n","import { z } from 'zod'\n\nexport const RowAddInputSchema = z.object({\n tableId: z.uuid(),\n data: z.object({\n id: z.uuid().optional(),\n cells: z.record(z.string(), z.unknown()),\n position: z.number().int().optional(),\n }).strict(),\n})\nexport type RowAddInput = z.infer<typeof RowAddInputSchema>\n\nexport const RowAddOutputSchema = z.object({\n txid: z.number(),\n})\nexport type RowAddOutput = z.infer<typeof RowAddOutputSchema>\n\nexport const RowUpdateInputSchema = z.object({\n rowId: z.uuid(),\n data: z.object({\n cells: z.record(z.string(), z.unknown()).optional(),\n position: z.number().int().optional(),\n }).strict(),\n})\nexport type RowUpdateInput = z.infer<typeof RowUpdateInputSchema>\n\nexport const RowUpdateOutputSchema = z.object({\n id: z.uuid(),\n tableId: z.uuid(),\n cells: z.record(z.string(), z.unknown()),\n position: z.number().int().nullable(),\n createdAt: z.date(),\n updatedAt: z.date(),\n txid: z.number(),\n})\nexport type RowUpdateOutput = z.infer<typeof RowUpdateOutputSchema>\n\nexport const RowDeleteInputSchema = z.object({\n rowId: z.uuid(),\n})\nexport type RowDeleteInput = z.infer<typeof RowDeleteInputSchema>\n\nexport const RowDeleteOutputSchema = z.object({\n txid: z.number(),\n})\nexport type RowDeleteOutput = z.infer<typeof RowDeleteOutputSchema>\n","import { oc } from '@orpc/contract'\nimport {\n RowAddInputSchema,\n RowAddOutputSchema,\n RowDeleteInputSchema,\n RowDeleteOutputSchema,\n RowUpdateInputSchema,\n RowUpdateOutputSchema,\n} from '@/schemas/row'\n\nexport const rowContract = {\n add: oc\n .route({\n method: 'POST',\n path: '/rows',\n summary: 'Add row to table',\n tags: ['Rows'],\n })\n .input(RowAddInputSchema)\n .output(RowAddOutputSchema),\n\n update: oc\n .route({\n method: 'PATCH',\n path: '/rows/{rowId}',\n summary: 'Update row cells',\n tags: ['Rows'],\n })\n .input(RowUpdateInputSchema)\n .output(RowUpdateOutputSchema),\n\n delete: oc\n .route({\n method: 'DELETE',\n path: '/rows/{rowId}',\n summary: 'Delete row',\n tags: ['Rows'],\n })\n .input(RowDeleteInputSchema)\n .output(RowDeleteOutputSchema),\n}\n","import type { ContractRouterClient } from '@orpc/contract'\nimport { columnContract } from './contracts/column'\nimport { customTableContract } from './contracts/custom-table'\nimport { notebaseBetaContract } from './contracts/notebase-beta'\nimport { rowContract } from './contracts/row'\n\nexport const contract = {\n customTable: customTableContract,\n column: columnContract,\n row: rowContract,\n notebaseBeta: notebaseBetaContract,\n}\n\nexport type ORPCRouterClient = ContractRouterClient<typeof contract>\n\n// Re-export schemas for convenience\nexport * from './schemas/column'\nexport * from './schemas/custom-table'\nexport * from './schemas/notebase-beta'\nexport * from './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ACb,QAAQ;CACR,KAAK;CACL,cAAc;CACf"}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/schemas/column.ts","../src/contracts/column.ts","../src/schemas/row.ts","../src/schemas/view.ts","../src/schemas/custom-table.ts","../src/contracts/custom-table.ts","../src/schemas/notebase-beta.ts","../src/contracts/notebase-beta.ts","../src/contracts/row.ts","../src/index.ts"],"sourcesContent":["import { COLUMN_MAX_WIDTH, COLUMN_MIN_WIDTH, columnConfigSchema } from '@read-frog/definitions'\nimport { z } from 'zod'\n\nexport const columnWidthSchema = z.number().int().min(COLUMN_MIN_WIDTH).max(COLUMN_MAX_WIDTH)\n\nexport const tableColumnSchema = z.object({\n id: z.string(),\n tableId: z.string(),\n name: z.string(),\n config: columnConfigSchema,\n position: z.number(),\n isPrimary: z.boolean(),\n width: z.number().nullable(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n})\nexport type TableColumn = z.infer<typeof tableColumnSchema>\n\nexport const columnCreateDataSchema = z.object({\n id: z.uuid().optional(),\n name: z.string().min(1),\n config: columnConfigSchema,\n}).strict()\nexport type ColumnCreateData = z.infer<typeof columnCreateDataSchema>\n\nexport const columnUpdateDataSchema = z.object({\n name: z.string().min(1).optional(),\n config: columnConfigSchema.optional(),\n width: columnWidthSchema.nullable().optional(),\n}).strict()\nexport type ColumnUpdateData = z.infer<typeof columnUpdateDataSchema>\n\nexport const ColumnCreateInputSchema = z.object({\n tableId: z.uuid(),\n data: columnCreateDataSchema,\n})\nexport type ColumnCreateInput = z.infer<typeof ColumnCreateInputSchema>\n\nexport const ColumnCreateOutputSchema = z.object({\n txid: z.number(),\n})\nexport type ColumnCreateOutput = z.infer<typeof ColumnCreateOutputSchema>\n\nexport const ColumnUpdateInputSchema = z.object({\n columnId: z.uuid(),\n data: columnUpdateDataSchema,\n})\nexport type ColumnUpdateInput = z.infer<typeof ColumnUpdateInputSchema>\n\nexport const ColumnUpdateOutputSchema = z.object({\n txid: z.number(),\n})\nexport type ColumnUpdateOutput = z.infer<typeof ColumnUpdateOutputSchema>\n\nexport const ColumnDeleteInputSchema = z.object({\n columnId: z.uuid(),\n})\nexport type ColumnDeleteInput = z.infer<typeof ColumnDeleteInputSchema>\n\nexport const ColumnDeleteOutputSchema = z.object({\n txid: z.number(),\n})\nexport type ColumnDeleteOutput = z.infer<typeof ColumnDeleteOutputSchema>\n\nexport const ColumnReorderInputSchema = z.object({\n tableId: z.uuid(),\n ids: z.array(z.uuid()),\n})\nexport type ColumnReorderInput = z.infer<typeof ColumnReorderInputSchema>\n\nexport const ColumnReorderOutputSchema = z.object({\n txid: z.number(),\n})\nexport type ColumnReorderOutput = z.infer<typeof ColumnReorderOutputSchema>\n","import { oc } from '@orpc/contract'\nimport {\n ColumnCreateInputSchema,\n ColumnCreateOutputSchema,\n ColumnDeleteInputSchema,\n ColumnDeleteOutputSchema,\n ColumnReorderInputSchema,\n ColumnReorderOutputSchema,\n ColumnUpdateInputSchema,\n ColumnUpdateOutputSchema,\n} from '@/schemas/column'\n\nexport const columnContract = {\n create: oc\n .route({\n method: 'POST',\n path: '/columns',\n summary: 'Create column',\n tags: ['Columns'],\n })\n .input(ColumnCreateInputSchema)\n .output(ColumnCreateOutputSchema),\n\n update: oc\n .route({\n method: 'PATCH',\n path: '/columns/{columnId}',\n summary: 'Update column',\n tags: ['Columns'],\n })\n .input(ColumnUpdateInputSchema)\n .output(ColumnUpdateOutputSchema),\n\n delete: oc\n .route({\n method: 'DELETE',\n path: '/columns/{columnId}',\n summary: 'Delete column',\n tags: ['Columns'],\n })\n .input(ColumnDeleteInputSchema)\n .output(ColumnDeleteOutputSchema),\n\n reorder: oc\n .route({\n method: 'POST',\n path: '/columns/reorder',\n summary: 'Reorder columns in a table',\n tags: ['Columns'],\n })\n .input(ColumnReorderInputSchema)\n .output(ColumnReorderOutputSchema),\n}\n","import { z } from 'zod'\n\nexport const rowCellsSchema = z.record(z.string(), z.unknown())\n\nexport const tableRowSchema = z.object({\n id: z.string(),\n tableId: z.string(),\n cells: rowCellsSchema,\n position: z.number(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n})\nexport type TableRow = z.infer<typeof tableRowSchema>\n\nexport const rowCreateDataSchema = z.object({\n id: z.uuid().optional(),\n cells: rowCellsSchema.optional(),\n}).strict()\nexport type RowCreateData = z.infer<typeof rowCreateDataSchema>\n\nexport const rowUpdateDataSchema = z.object({\n cells: rowCellsSchema.optional(),\n}).strict()\nexport type RowUpdateData = z.infer<typeof rowUpdateDataSchema>\n\nexport const RowCreateInputSchema = z.object({\n tableId: z.uuid(),\n data: rowCreateDataSchema,\n})\nexport type RowCreateInput = z.infer<typeof RowCreateInputSchema>\n\nexport const RowCreateOutputSchema = z.object({\n txid: z.number(),\n})\nexport type RowCreateOutput = z.infer<typeof RowCreateOutputSchema>\n\nexport const RowUpdateInputSchema = z.object({\n rowId: z.uuid(),\n data: rowUpdateDataSchema,\n})\nexport type RowUpdateInput = z.infer<typeof RowUpdateInputSchema>\n\nexport const RowUpdateOutputSchema = z.object({\n id: z.uuid(),\n tableId: z.uuid(),\n cells: rowCellsSchema,\n position: z.number().int(),\n createdAt: z.date(),\n updatedAt: z.date(),\n txid: z.number(),\n})\nexport type RowUpdateOutput = z.infer<typeof RowUpdateOutputSchema>\n\nexport const RowDeleteInputSchema = z.object({\n rowId: z.uuid(),\n})\nexport type RowDeleteInput = z.infer<typeof RowDeleteInputSchema>\n\nexport const RowDeleteOutputSchema = z.object({\n txid: z.number(),\n})\nexport type RowDeleteOutput = z.infer<typeof RowDeleteOutputSchema>\n\nexport const RowReorderInputSchema = z.object({\n tableId: z.uuid(),\n ids: z.array(z.uuid()),\n})\nexport type RowReorderInput = z.infer<typeof RowReorderInputSchema>\n\nexport const RowReorderOutputSchema = z.object({\n txid: z.number(),\n})\nexport type RowReorderOutput = z.infer<typeof RowReorderOutputSchema>\n","import { z } from 'zod'\n\nexport const tableViewTypeSchema = z.enum(['table', 'kanban', 'gallery'])\nexport type TableViewType = z.infer<typeof tableViewTypeSchema>\n\nexport const viewConfigSchema = z.object({\n columnWidths: z.record(z.string(), z.number()).optional(),\n hiddenColumns: z.array(z.string()).optional(),\n groupByColumnId: z.string().optional(),\n}).catchall(z.unknown())\nexport type ViewConfig = z.infer<typeof viewConfigSchema>\n\nexport const viewFilterSchema = z.object({\n columnId: z.string(),\n operator: z.string(),\n value: z.unknown(),\n}).strict()\nexport type ViewFilter = z.infer<typeof viewFilterSchema>\n\nexport const viewFiltersSchema = z.array(viewFilterSchema)\n\nexport const viewSortSchema = z.object({\n columnId: z.string(),\n direction: z.enum(['asc', 'desc']),\n}).strict()\nexport type ViewSort = z.infer<typeof viewSortSchema>\n\nexport const viewSortsSchema = z.array(viewSortSchema)\n\nexport const viewCreateDataSchema = z.object({\n id: z.uuid().optional(),\n name: z.string().min(1),\n type: tableViewTypeSchema,\n config: viewConfigSchema.optional(),\n filters: viewFiltersSchema.optional(),\n sorts: viewSortsSchema.optional(),\n}).strict()\nexport type ViewCreateData = z.infer<typeof viewCreateDataSchema>\n\nexport const viewUpdateDataSchema = z.object({\n name: z.string().min(1).optional(),\n type: tableViewTypeSchema.optional(),\n config: viewConfigSchema.optional(),\n filters: viewFiltersSchema.optional(),\n sorts: viewSortsSchema.optional(),\n}).strict()\nexport type ViewUpdateData = z.infer<typeof viewUpdateDataSchema>\n\nexport const tableViewSchema = z.object({\n id: z.string(),\n tableId: z.string(),\n name: z.string(),\n type: tableViewTypeSchema,\n config: viewConfigSchema.nullable(),\n filters: z.array(z.unknown()).nullable(),\n sorts: z.array(z.unknown()).nullable(),\n position: z.number(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n})\nexport type TableView = z.infer<typeof tableViewSchema>\n","import { z } from 'zod'\nimport { tableColumnSchema } from './column'\nimport { tableRowSchema } from './row'\nimport { tableViewSchema } from './view'\n\nexport const CustomTableListInputSchema = z.object({})\nexport type CustomTableListInput = z.infer<typeof CustomTableListInputSchema>\n\nexport const CustomTableListItemSchema = z.object({\n id: z.string(),\n name: z.string(),\n})\nexport type CustomTableListItem = z.infer<typeof CustomTableListItemSchema>\n\nexport const CustomTableListOutputSchema = z.array(CustomTableListItemSchema)\nexport type CustomTableListOutput = z.infer<typeof CustomTableListOutputSchema>\n\nexport const customTableCreateDataSchema = z.object({\n id: z.uuid().optional(),\n name: z.string().min(1),\n}).strict()\nexport type CustomTableCreateData = z.infer<typeof customTableCreateDataSchema>\n\nexport const CustomTableCreateInputSchema = customTableCreateDataSchema\nexport type CustomTableCreateInput = z.infer<typeof CustomTableCreateInputSchema>\n\nexport const CustomTableCreateOutputSchema = z.object({\n txid: z.number(),\n})\nexport type CustomTableCreateOutput = z.infer<typeof CustomTableCreateOutputSchema>\n\nexport const customTableUpdateDataSchema = z.object({\n name: z.string().min(1).optional(),\n}).strict()\nexport type CustomTableUpdateData = z.infer<typeof customTableUpdateDataSchema>\n\nexport const CustomTableUpdateInputSchema = customTableUpdateDataSchema.extend({\n id: z.uuid(),\n})\nexport type CustomTableUpdateInput = z.infer<typeof CustomTableUpdateInputSchema>\n\nexport const CustomTableUpdateOutputSchema = z.object({\n txid: z.number(),\n})\nexport type CustomTableUpdateOutput = z.infer<typeof CustomTableUpdateOutputSchema>\n\nexport const CustomTableDeleteInputSchema = z.object({\n id: z.uuid(),\n})\nexport type CustomTableDeleteInput = z.infer<typeof CustomTableDeleteInputSchema>\n\nexport const CustomTableDeleteOutputSchema = z.object({\n txid: z.number(),\n})\nexport type CustomTableDeleteOutput = z.infer<typeof CustomTableDeleteOutputSchema>\n\n// Get endpoint schemas\nexport const CustomTableGetInputSchema = z.object({\n id: z.uuid(),\n})\nexport type CustomTableGetInput = z.infer<typeof CustomTableGetInputSchema>\n\nexport const CustomTableGetSchemaInputSchema = z.object({\n id: z.uuid(),\n})\nexport type CustomTableGetSchemaInput = z.infer<typeof CustomTableGetSchemaInputSchema>\n\nexport const CustomTableGetOutputSchema = z.object({\n id: z.string(),\n userId: z.string(),\n name: z.string(),\n createdAt: z.coerce.date(),\n updatedAt: z.coerce.date(),\n columns: z.array(tableColumnSchema),\n rows: z.array(tableRowSchema),\n views: z.array(tableViewSchema),\n})\nexport type CustomTableGetOutput = z.infer<typeof CustomTableGetOutputSchema>\n\nexport const CustomTableGetSchemaOutputSchema = z.object({\n id: z.string(),\n name: z.string(),\n updatedAt: z.coerce.date(),\n columns: z.array(tableColumnSchema),\n})\nexport type CustomTableGetSchemaOutput = z.infer<typeof CustomTableGetSchemaOutputSchema>\n","import { oc } from '@orpc/contract'\nimport {\n CustomTableCreateInputSchema,\n CustomTableCreateOutputSchema,\n CustomTableDeleteInputSchema,\n CustomTableDeleteOutputSchema,\n CustomTableGetInputSchema,\n CustomTableGetOutputSchema,\n CustomTableGetSchemaInputSchema,\n CustomTableGetSchemaOutputSchema,\n CustomTableListInputSchema,\n CustomTableListOutputSchema,\n CustomTableUpdateInputSchema,\n CustomTableUpdateOutputSchema,\n} from '@/schemas/custom-table'\n\nexport const customTableContract = {\n list: oc\n .route({\n method: 'GET',\n path: '/custom-tables',\n summary: 'List custom tables',\n tags: ['Custom Tables'],\n })\n .input(CustomTableListInputSchema)\n .output(CustomTableListOutputSchema),\n\n get: oc\n .route({\n method: 'GET',\n path: '/custom-tables/{id}',\n summary: 'Get custom table with columns, rows, and views',\n tags: ['Custom Tables'],\n })\n .input(CustomTableGetInputSchema)\n .output(CustomTableGetOutputSchema),\n\n getSchema: oc\n .route({\n method: 'GET',\n path: '/custom-tables/{id}/schema',\n summary: 'Get custom table schema',\n tags: ['Custom Tables'],\n })\n .input(CustomTableGetSchemaInputSchema)\n .output(CustomTableGetSchemaOutputSchema),\n\n create: oc\n .route({\n method: 'POST',\n path: '/custom-tables',\n summary: 'Create custom table',\n tags: ['Custom Tables'],\n })\n .input(CustomTableCreateInputSchema)\n .output(CustomTableCreateOutputSchema),\n\n update: oc\n .route({\n method: 'PUT',\n path: '/custom-tables/{id}',\n summary: 'Update custom table',\n tags: ['Custom Tables'],\n })\n .input(CustomTableUpdateInputSchema)\n .output(CustomTableUpdateOutputSchema),\n\n delete: oc\n .route({\n method: 'DELETE',\n path: '/custom-tables/{id}',\n summary: 'Delete custom table',\n tags: ['Custom Tables'],\n })\n .input(CustomTableDeleteInputSchema)\n .output(CustomTableDeleteOutputSchema),\n}\n","import { z } from 'zod'\n\nexport const NotebaseBetaStatusInputSchema = z.object({}).strict()\nexport type NotebaseBetaStatusInput = z.infer<typeof NotebaseBetaStatusInputSchema>\n\nexport const NotebaseBetaStatusOutputSchema = z.object({\n allowed: z.boolean(),\n})\nexport type NotebaseBetaStatusOutput = z.infer<typeof NotebaseBetaStatusOutputSchema>\n","import { oc } from '@orpc/contract'\nimport {\n NotebaseBetaStatusInputSchema,\n NotebaseBetaStatusOutputSchema,\n} from '@/schemas/notebase-beta'\n\nexport const notebaseBetaContract = {\n status: oc\n .route({\n method: 'GET',\n path: '/notebase-beta/status',\n summary: 'Get Notebase beta access status',\n tags: ['Notebase Beta'],\n })\n .input(NotebaseBetaStatusInputSchema)\n .output(NotebaseBetaStatusOutputSchema),\n}\n","import { oc } from '@orpc/contract'\nimport {\n RowCreateInputSchema,\n RowCreateOutputSchema,\n RowDeleteInputSchema,\n RowDeleteOutputSchema,\n RowReorderInputSchema,\n RowReorderOutputSchema,\n RowUpdateInputSchema,\n RowUpdateOutputSchema,\n} from '@/schemas/row'\n\nexport const rowContract = {\n create: oc\n .route({\n method: 'POST',\n path: '/rows',\n summary: 'Create row',\n tags: ['Rows'],\n })\n .input(RowCreateInputSchema)\n .output(RowCreateOutputSchema),\n\n update: oc\n .route({\n method: 'PATCH',\n path: '/rows/{rowId}',\n summary: 'Update row cells',\n tags: ['Rows'],\n })\n .input(RowUpdateInputSchema)\n .output(RowUpdateOutputSchema),\n\n delete: oc\n .route({\n method: 'DELETE',\n path: '/rows/{rowId}',\n summary: 'Delete row',\n tags: ['Rows'],\n })\n .input(RowDeleteInputSchema)\n .output(RowDeleteOutputSchema),\n\n reorder: oc\n .route({\n method: 'POST',\n path: '/rows/reorder',\n summary: 'Reorder rows in a table',\n tags: ['Rows'],\n })\n .input(RowReorderInputSchema)\n .output(RowReorderOutputSchema),\n}\n","import type { ContractRouterClient } from '@orpc/contract'\nimport { columnContract } from './contracts/column'\nimport { customTableContract } from './contracts/custom-table'\nimport { notebaseBetaContract } from './contracts/notebase-beta'\nimport { rowContract } from './contracts/row'\n\nexport const contract = {\n customTable: customTableContract,\n column: columnContract,\n row: rowContract,\n notebaseBeta: notebaseBetaContract,\n}\n\nexport type ORPCRouterClient = ContractRouterClient<typeof contract>\n\n// Re-export schemas for convenience\nexport * from './schemas/column'\nexport * from './schemas/custom-table'\nexport * from './schemas/notebase-beta'\nexport * from './schemas/row'\nexport * from './schemas/view'\n"],"mappings":";;;;;AAGA,MAAa,oBAAoB,EAAE,QAAQ,CAAC,KAAK,CAAC,IAAI,iBAAiB,CAAC,IAAI,iBAAiB;AAE7F,MAAa,oBAAoB,EAAE,OAAO;CACxC,IAAI,EAAE,QAAQ;CACd,SAAS,EAAE,QAAQ;CACnB,MAAM,EAAE,QAAQ;CAChB,QAAQ;CACR,UAAU,EAAE,QAAQ;CACpB,WAAW,EAAE,SAAS;CACtB,OAAO,EAAE,QAAQ,CAAC,UAAU;CAC5B,WAAW,EAAE,OAAO,MAAM;CAC1B,WAAW,EAAE,OAAO,MAAM;CAC3B,CAAC;AAGF,MAAa,yBAAyB,EAAE,OAAO;CAC7C,IAAI,EAAE,MAAM,CAAC,UAAU;CACvB,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE;CACvB,QAAQ;CACT,CAAC,CAAC,QAAQ;AAGX,MAAa,yBAAyB,EAAE,OAAO;CAC7C,MAAM,EAAE,QAAQ,CAAC,IAAI,EAAE,CAAC,UAAU;CAClC,QAAQ,mBAAmB,UAAU;CACrC,OAAO,kBAAkB,UAAU,CAAC,UAAU;CAC/C,CAAC,CAAC,QAAQ;AAGX,MAAa,0BAA0B,EAAE,OAAO;CAC9C,SAAS,EAAE,MAAM;CACjB,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,EAAE,SAAS,EACrB,CAAC;;;;ACDF,MAAa,uBAAuB,EAClC,QAAQ,GACL,MAAM;CACL,QAAQ;CACR,MAAM;CACN,SAAS;CACT,MAAM,CAAC,gBAAgB;CACxB,CAAC,CACD,MAAM,8BAA8B,CACpC,OAAO,+BAA+B,EAC1C;;;;ACJD,MAAa,cAAc;CACzB,QAAQ,GACL,MAAM;EACL,QAAQ;EACR,MAAM;EACN,SAAS;EACT,MAAM,CAAC,OAAO;EACf,CAAC,CACD,MAAM,qBAAqB,CAC3B,OAAO,sBAAsB;CAEhC,QAAQ,GACL,MAAM;EACL,QAAQ;EACR,MAAM;EACN,SAAS;EACT,MAAM,CAAC,OAAO;EACf,CAAC,CACD,MAAM,qBAAqB,CAC3B,OAAO,sBAAsB;CAEhC,QAAQ,GACL,MAAM;EACL,QAAQ;EACR,MAAM;EACN,SAAS;EACT,MAAM,CAAC,OAAO;EACf,CAAC,CACD,MAAM,qBAAqB,CAC3B,OAAO,sBAAsB;CAEhC,SAAS,GACN,MAAM;EACL,QAAQ;EACR,MAAM;EACN,SAAS;EACT,MAAM,CAAC,OAAO;EACf,CAAC,CACD,MAAM,sBAAsB,CAC5B,OAAO,uBAAuB;CAClC;;;;AC9CD,MAAa,WAAW;CACtB,aAAa;CACb,QAAQ;CACR,KAAK;CACL,cAAc;CACf"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@read-frog/api-contract",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.3.0",
|
|
5
5
|
"private": false,
|
|
6
6
|
"exports": {
|
|
7
7
|
".": {
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"build": "tsdown",
|
|
31
31
|
"dev": "tsdown --watch",
|
|
32
32
|
"build:publish": "tsdown",
|
|
33
|
+
"type-check": "tsc --noEmit",
|
|
33
34
|
"lint": "eslint .",
|
|
34
35
|
"lint:fix": "eslint --fix"
|
|
35
36
|
}
|