@read-frog/api-contract 0.2.2 → 0.4.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 +670 -301
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +305 -182
- package/dist/index.js.map +1 -1
- package/package.json +9 -7
- package/src/contracts/beta-access.ts +17 -0
- package/src/contracts/column.ts +62 -0
- package/src/contracts/custom-table.ts +82 -0
- package/src/contracts/row.ts +62 -0
- package/src/contracts/shared.ts +6 -0
- package/src/index.ts +21 -0
- package/src/public-errors.ts +104 -0
- package/src/schemas/beta-access.ts +16 -0
- package/src/schemas/column.ts +74 -0
- package/src/schemas/custom-table.ts +86 -0
- package/src/schemas/row.ts +73 -0
- package/src/schemas/view.ts +61 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,261 @@
|
|
|
1
|
-
import * as _orpc_contract0 from "@orpc/contract";
|
|
2
|
-
import { ContractRouterClient } from "@orpc/contract";
|
|
3
|
-
import * as zod from "zod";
|
|
1
|
+
import * as _$_orpc_contract0 from "@orpc/contract";
|
|
2
|
+
import { ContractRouterClient, ErrorMap } from "@orpc/contract";
|
|
3
|
+
import * as _$zod from "zod";
|
|
4
4
|
import { z } from "zod";
|
|
5
|
-
import * as zod_v4_core0 from "zod/v4/core";
|
|
5
|
+
import * as _$zod_v4_core0 from "zod/v4/core";
|
|
6
6
|
|
|
7
|
+
//#region src/public-errors.d.ts
|
|
8
|
+
declare const CellValidationFailureReasonSchema: z.ZodEnum<{
|
|
9
|
+
unknown_column: "unknown_column";
|
|
10
|
+
type_mismatch: "type_mismatch";
|
|
11
|
+
invalid_select_option: "invalid_select_option";
|
|
12
|
+
invalid_date_format: "invalid_date_format";
|
|
13
|
+
}>;
|
|
14
|
+
type CellValidationFailureReason = z.infer<typeof CellValidationFailureReasonSchema>;
|
|
15
|
+
declare const CellValidationFailureDetailsSchema: z.ZodObject<{
|
|
16
|
+
expectedFormat: z.ZodOptional<z.ZodString>;
|
|
17
|
+
expectedType: z.ZodOptional<z.ZodString>;
|
|
18
|
+
receivedType: z.ZodOptional<z.ZodString>;
|
|
19
|
+
receivedValue: z.ZodOptional<z.ZodUnknown>;
|
|
20
|
+
validOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
21
|
+
}, z.core.$strict>;
|
|
22
|
+
type CellValidationFailureDetails = z.infer<typeof CellValidationFailureDetailsSchema>;
|
|
23
|
+
declare const CellValidationFailedDataSchema: z.ZodObject<{
|
|
24
|
+
columnId: z.ZodString;
|
|
25
|
+
details: z.ZodObject<{
|
|
26
|
+
expectedFormat: z.ZodOptional<z.ZodString>;
|
|
27
|
+
expectedType: z.ZodOptional<z.ZodString>;
|
|
28
|
+
receivedType: z.ZodOptional<z.ZodString>;
|
|
29
|
+
receivedValue: z.ZodOptional<z.ZodUnknown>;
|
|
30
|
+
validOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
31
|
+
}, z.core.$strict>;
|
|
32
|
+
reason: z.ZodEnum<{
|
|
33
|
+
unknown_column: "unknown_column";
|
|
34
|
+
type_mismatch: "type_mismatch";
|
|
35
|
+
invalid_select_option: "invalid_select_option";
|
|
36
|
+
invalid_date_format: "invalid_date_format";
|
|
37
|
+
}>;
|
|
38
|
+
}, z.core.$strict>;
|
|
39
|
+
type CellValidationFailedData = z.infer<typeof CellValidationFailedDataSchema>;
|
|
40
|
+
declare const PUBLIC_APP_ERROR_DEFS: {
|
|
41
|
+
readonly NOTEBASE_BETA_RESTRICTED: {
|
|
42
|
+
readonly message: "Notebase is currently in beta for selected accounts";
|
|
43
|
+
readonly status: 403;
|
|
44
|
+
};
|
|
45
|
+
readonly TABLE_NOT_FOUND: {
|
|
46
|
+
readonly message: "Table not found";
|
|
47
|
+
readonly status: 404;
|
|
48
|
+
};
|
|
49
|
+
readonly COLUMN_NOT_FOUND: {
|
|
50
|
+
readonly message: "Column not found";
|
|
51
|
+
readonly status: 404;
|
|
52
|
+
};
|
|
53
|
+
readonly ROW_NOT_FOUND: {
|
|
54
|
+
readonly message: "Row not found";
|
|
55
|
+
readonly status: 404;
|
|
56
|
+
};
|
|
57
|
+
readonly VIEW_NOT_FOUND: {
|
|
58
|
+
readonly message: "View not found";
|
|
59
|
+
readonly status: 404;
|
|
60
|
+
};
|
|
61
|
+
readonly CELL_VALIDATION_FAILED: {
|
|
62
|
+
readonly data: z.ZodObject<{
|
|
63
|
+
columnId: z.ZodString;
|
|
64
|
+
details: z.ZodObject<{
|
|
65
|
+
expectedFormat: z.ZodOptional<z.ZodString>;
|
|
66
|
+
expectedType: z.ZodOptional<z.ZodString>;
|
|
67
|
+
receivedType: z.ZodOptional<z.ZodString>;
|
|
68
|
+
receivedValue: z.ZodOptional<z.ZodUnknown>;
|
|
69
|
+
validOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
70
|
+
}, z.core.$strict>;
|
|
71
|
+
reason: z.ZodEnum<{
|
|
72
|
+
unknown_column: "unknown_column";
|
|
73
|
+
type_mismatch: "type_mismatch";
|
|
74
|
+
invalid_select_option: "invalid_select_option";
|
|
75
|
+
invalid_date_format: "invalid_date_format";
|
|
76
|
+
}>;
|
|
77
|
+
}, z.core.$strict>;
|
|
78
|
+
readonly message: "Cell validation failed";
|
|
79
|
+
readonly status: 422;
|
|
80
|
+
};
|
|
81
|
+
readonly PRIMARY_COLUMN_DELETE_NOT_ALLOWED: {
|
|
82
|
+
readonly message: "Cannot delete primary column";
|
|
83
|
+
readonly status: 400;
|
|
84
|
+
};
|
|
85
|
+
readonly CONCURRENT_POSITION_CONFLICT: {
|
|
86
|
+
readonly message: "Concurrent position conflict, please retry";
|
|
87
|
+
readonly status: 409;
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
type PublicAppErrorCode = keyof typeof PUBLIC_APP_ERROR_DEFS;
|
|
91
|
+
type PublicAppErrorData<TCode extends PublicAppErrorCode> = (typeof PUBLIC_APP_ERROR_DEFS)[TCode] extends {
|
|
92
|
+
data: infer TSchema extends z.ZodTypeAny;
|
|
93
|
+
} ? z.output<TSchema> : undefined;
|
|
94
|
+
declare function isPublicAppErrorCode(code: string | undefined): code is PublicAppErrorCode;
|
|
95
|
+
declare function getPublicErrorDefinition<TCode extends PublicAppErrorCode>(code: TCode): {
|
|
96
|
+
readonly NOTEBASE_BETA_RESTRICTED: {
|
|
97
|
+
readonly message: "Notebase is currently in beta for selected accounts";
|
|
98
|
+
readonly status: 403;
|
|
99
|
+
};
|
|
100
|
+
readonly TABLE_NOT_FOUND: {
|
|
101
|
+
readonly message: "Table not found";
|
|
102
|
+
readonly status: 404;
|
|
103
|
+
};
|
|
104
|
+
readonly COLUMN_NOT_FOUND: {
|
|
105
|
+
readonly message: "Column not found";
|
|
106
|
+
readonly status: 404;
|
|
107
|
+
};
|
|
108
|
+
readonly ROW_NOT_FOUND: {
|
|
109
|
+
readonly message: "Row not found";
|
|
110
|
+
readonly status: 404;
|
|
111
|
+
};
|
|
112
|
+
readonly VIEW_NOT_FOUND: {
|
|
113
|
+
readonly message: "View not found";
|
|
114
|
+
readonly status: 404;
|
|
115
|
+
};
|
|
116
|
+
readonly CELL_VALIDATION_FAILED: {
|
|
117
|
+
readonly data: z.ZodObject<{
|
|
118
|
+
columnId: z.ZodString;
|
|
119
|
+
details: z.ZodObject<{
|
|
120
|
+
expectedFormat: z.ZodOptional<z.ZodString>;
|
|
121
|
+
expectedType: z.ZodOptional<z.ZodString>;
|
|
122
|
+
receivedType: z.ZodOptional<z.ZodString>;
|
|
123
|
+
receivedValue: z.ZodOptional<z.ZodUnknown>;
|
|
124
|
+
validOptions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
125
|
+
}, z.core.$strict>;
|
|
126
|
+
reason: z.ZodEnum<{
|
|
127
|
+
unknown_column: "unknown_column";
|
|
128
|
+
type_mismatch: "type_mismatch";
|
|
129
|
+
invalid_select_option: "invalid_select_option";
|
|
130
|
+
invalid_date_format: "invalid_date_format";
|
|
131
|
+
}>;
|
|
132
|
+
}, z.core.$strict>;
|
|
133
|
+
readonly message: "Cell validation failed";
|
|
134
|
+
readonly status: 422;
|
|
135
|
+
};
|
|
136
|
+
readonly PRIMARY_COLUMN_DELETE_NOT_ALLOWED: {
|
|
137
|
+
readonly message: "Cannot delete primary column";
|
|
138
|
+
readonly status: 400;
|
|
139
|
+
};
|
|
140
|
+
readonly CONCURRENT_POSITION_CONFLICT: {
|
|
141
|
+
readonly message: "Concurrent position conflict, please retry";
|
|
142
|
+
readonly status: 409;
|
|
143
|
+
};
|
|
144
|
+
}[TCode];
|
|
145
|
+
declare function pickPublicErrorMap<const TCodes extends readonly PublicAppErrorCode[]>(...codes: TCodes): Pick<ErrorMap, TCodes[number]>;
|
|
146
|
+
//#endregion
|
|
147
|
+
//#region src/schemas/beta-access.d.ts
|
|
148
|
+
declare const BetaFeatureKeySchema: z.ZodEnum<{
|
|
149
|
+
notebase: "notebase";
|
|
150
|
+
}>;
|
|
151
|
+
type BetaFeatureKey = z.infer<typeof BetaFeatureKeySchema>;
|
|
152
|
+
declare const BetaAccessStatusInputSchema: z.ZodObject<{
|
|
153
|
+
featureKey: z.ZodEnum<{
|
|
154
|
+
notebase: "notebase";
|
|
155
|
+
}>;
|
|
156
|
+
}, z.core.$strict>;
|
|
157
|
+
type BetaAccessStatusInput = z.infer<typeof BetaAccessStatusInputSchema>;
|
|
158
|
+
declare const BetaAccessStatusOutputSchema: z.ZodObject<{
|
|
159
|
+
featureKey: z.ZodEnum<{
|
|
160
|
+
notebase: "notebase";
|
|
161
|
+
}>;
|
|
162
|
+
allowed: z.ZodBoolean;
|
|
163
|
+
}, z.core.$strip>;
|
|
164
|
+
type BetaAccessStatusOutput = z.infer<typeof BetaAccessStatusOutputSchema>;
|
|
165
|
+
//#endregion
|
|
7
166
|
//#region src/schemas/column.d.ts
|
|
8
|
-
declare const
|
|
167
|
+
declare const columnWidthSchema: z.ZodNumber;
|
|
168
|
+
declare const tableColumnSchema: z.ZodObject<{
|
|
169
|
+
id: z.ZodString;
|
|
170
|
+
tableId: z.ZodString;
|
|
171
|
+
name: z.ZodString;
|
|
172
|
+
config: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
173
|
+
type: z.ZodLiteral<"string">;
|
|
174
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
175
|
+
type: z.ZodLiteral<"number">;
|
|
176
|
+
decimal: z.ZodDefault<z.ZodNumber>;
|
|
177
|
+
format: z.ZodDefault<z.ZodEnum<{
|
|
178
|
+
number: "number";
|
|
179
|
+
currency: "currency";
|
|
180
|
+
percent: "percent";
|
|
181
|
+
}>>;
|
|
182
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
183
|
+
type: z.ZodLiteral<"boolean">;
|
|
184
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
185
|
+
type: z.ZodLiteral<"date">;
|
|
186
|
+
dateFormat: z.ZodOptional<z.ZodString>;
|
|
187
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
188
|
+
type: z.ZodLiteral<"select">;
|
|
189
|
+
options: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
190
|
+
id: z.ZodString;
|
|
191
|
+
value: z.ZodString;
|
|
192
|
+
color: z.ZodString;
|
|
193
|
+
}, z.core.$strip>>>;
|
|
194
|
+
}, z.core.$strip>], "type">;
|
|
195
|
+
position: z.ZodNumber;
|
|
196
|
+
isPrimary: z.ZodBoolean;
|
|
197
|
+
width: z.ZodNullable<z.ZodNumber>;
|
|
198
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
199
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
200
|
+
}, z.core.$strip>;
|
|
201
|
+
type TableColumn = z.infer<typeof tableColumnSchema>;
|
|
202
|
+
declare const columnCreateDataSchema: z.ZodObject<{
|
|
203
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
204
|
+
name: z.ZodString;
|
|
205
|
+
config: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
206
|
+
type: z.ZodLiteral<"string">;
|
|
207
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
208
|
+
type: z.ZodLiteral<"number">;
|
|
209
|
+
decimal: z.ZodDefault<z.ZodNumber>;
|
|
210
|
+
format: z.ZodDefault<z.ZodEnum<{
|
|
211
|
+
number: "number";
|
|
212
|
+
currency: "currency";
|
|
213
|
+
percent: "percent";
|
|
214
|
+
}>>;
|
|
215
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
216
|
+
type: z.ZodLiteral<"boolean">;
|
|
217
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
218
|
+
type: z.ZodLiteral<"date">;
|
|
219
|
+
dateFormat: z.ZodOptional<z.ZodString>;
|
|
220
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
221
|
+
type: z.ZodLiteral<"select">;
|
|
222
|
+
options: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
223
|
+
id: z.ZodString;
|
|
224
|
+
value: z.ZodString;
|
|
225
|
+
color: z.ZodString;
|
|
226
|
+
}, z.core.$strip>>>;
|
|
227
|
+
}, z.core.$strip>], "type">;
|
|
228
|
+
}, z.core.$strict>;
|
|
229
|
+
type ColumnCreateData = z.infer<typeof columnCreateDataSchema>;
|
|
230
|
+
declare const columnUpdateDataSchema: z.ZodObject<{
|
|
231
|
+
name: z.ZodOptional<z.ZodString>;
|
|
232
|
+
config: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
233
|
+
type: z.ZodLiteral<"string">;
|
|
234
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
235
|
+
type: z.ZodLiteral<"number">;
|
|
236
|
+
decimal: z.ZodDefault<z.ZodNumber>;
|
|
237
|
+
format: z.ZodDefault<z.ZodEnum<{
|
|
238
|
+
number: "number";
|
|
239
|
+
currency: "currency";
|
|
240
|
+
percent: "percent";
|
|
241
|
+
}>>;
|
|
242
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
243
|
+
type: z.ZodLiteral<"boolean">;
|
|
244
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
245
|
+
type: z.ZodLiteral<"date">;
|
|
246
|
+
dateFormat: z.ZodOptional<z.ZodString>;
|
|
247
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
248
|
+
type: z.ZodLiteral<"select">;
|
|
249
|
+
options: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
250
|
+
id: z.ZodString;
|
|
251
|
+
value: z.ZodString;
|
|
252
|
+
color: z.ZodString;
|
|
253
|
+
}, z.core.$strip>>>;
|
|
254
|
+
}, z.core.$strip>], "type">>;
|
|
255
|
+
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
256
|
+
}, z.core.$strict>;
|
|
257
|
+
type ColumnUpdateData = z.infer<typeof columnUpdateDataSchema>;
|
|
258
|
+
declare const ColumnCreateInputSchema: z.ZodObject<{
|
|
9
259
|
tableId: z.ZodUUID;
|
|
10
260
|
data: z.ZodObject<{
|
|
11
261
|
id: z.ZodOptional<z.ZodUUID>;
|
|
@@ -33,12 +283,13 @@ declare const ColumnAddInputSchema: z.ZodObject<{
|
|
|
33
283
|
color: z.ZodString;
|
|
34
284
|
}, z.core.$strip>>>;
|
|
35
285
|
}, z.core.$strip>], "type">;
|
|
36
|
-
position: z.ZodOptional<z.ZodNumber>;
|
|
37
286
|
}, z.core.$strict>;
|
|
38
287
|
}, z.core.$strip>;
|
|
39
|
-
|
|
288
|
+
type ColumnCreateInput = z.infer<typeof ColumnCreateInputSchema>;
|
|
289
|
+
declare const ColumnCreateOutputSchema: z.ZodObject<{
|
|
40
290
|
txid: z.ZodNumber;
|
|
41
291
|
}, z.core.$strip>;
|
|
292
|
+
type ColumnCreateOutput = z.infer<typeof ColumnCreateOutputSchema>;
|
|
42
293
|
declare const ColumnUpdateInputSchema: z.ZodObject<{
|
|
43
294
|
columnId: z.ZodUUID;
|
|
44
295
|
data: z.ZodObject<{
|
|
@@ -69,15 +320,28 @@ declare const ColumnUpdateInputSchema: z.ZodObject<{
|
|
|
69
320
|
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
70
321
|
}, z.core.$strict>;
|
|
71
322
|
}, z.core.$strip>;
|
|
323
|
+
type ColumnUpdateInput = z.infer<typeof ColumnUpdateInputSchema>;
|
|
72
324
|
declare const ColumnUpdateOutputSchema: z.ZodObject<{
|
|
73
325
|
txid: z.ZodNumber;
|
|
74
326
|
}, z.core.$strip>;
|
|
327
|
+
type ColumnUpdateOutput = z.infer<typeof ColumnUpdateOutputSchema>;
|
|
75
328
|
declare const ColumnDeleteInputSchema: z.ZodObject<{
|
|
76
329
|
columnId: z.ZodUUID;
|
|
77
330
|
}, z.core.$strip>;
|
|
331
|
+
type ColumnDeleteInput = z.infer<typeof ColumnDeleteInputSchema>;
|
|
78
332
|
declare const ColumnDeleteOutputSchema: z.ZodObject<{
|
|
79
333
|
txid: z.ZodNumber;
|
|
80
334
|
}, z.core.$strip>;
|
|
335
|
+
type ColumnDeleteOutput = z.infer<typeof ColumnDeleteOutputSchema>;
|
|
336
|
+
declare const ColumnReorderInputSchema: z.ZodObject<{
|
|
337
|
+
tableId: z.ZodUUID;
|
|
338
|
+
ids: z.ZodArray<z.ZodUUID>;
|
|
339
|
+
}, z.core.$strip>;
|
|
340
|
+
type ColumnReorderInput = z.infer<typeof ColumnReorderInputSchema>;
|
|
341
|
+
declare const ColumnReorderOutputSchema: z.ZodObject<{
|
|
342
|
+
txid: z.ZodNumber;
|
|
343
|
+
}, z.core.$strip>;
|
|
344
|
+
type ColumnReorderOutput = z.infer<typeof ColumnReorderOutputSchema>;
|
|
81
345
|
//#endregion
|
|
82
346
|
//#region src/schemas/custom-table.d.ts
|
|
83
347
|
declare const CustomTableListInputSchema: z.ZodObject<{}, z.core.$strip>;
|
|
@@ -92,19 +356,28 @@ declare const CustomTableListOutputSchema: z.ZodArray<z.ZodObject<{
|
|
|
92
356
|
name: z.ZodString;
|
|
93
357
|
}, z.core.$strip>>;
|
|
94
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>;
|
|
95
364
|
declare const CustomTableCreateInputSchema: z.ZodObject<{
|
|
96
365
|
id: z.ZodOptional<z.ZodUUID>;
|
|
97
366
|
name: z.ZodString;
|
|
98
|
-
}, z.core.$
|
|
367
|
+
}, z.core.$strict>;
|
|
99
368
|
type CustomTableCreateInput = z.infer<typeof CustomTableCreateInputSchema>;
|
|
100
369
|
declare const CustomTableCreateOutputSchema: z.ZodObject<{
|
|
101
370
|
txid: z.ZodNumber;
|
|
102
371
|
}, z.core.$strip>;
|
|
103
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>;
|
|
104
377
|
declare const CustomTableUpdateInputSchema: z.ZodObject<{
|
|
105
|
-
id: z.ZodUUID;
|
|
106
378
|
name: z.ZodOptional<z.ZodString>;
|
|
107
|
-
|
|
379
|
+
id: z.ZodUUID;
|
|
380
|
+
}, z.core.$strict>;
|
|
108
381
|
type CustomTableUpdateInput = z.infer<typeof CustomTableUpdateInputSchema>;
|
|
109
382
|
declare const CustomTableUpdateOutputSchema: z.ZodObject<{
|
|
110
383
|
txid: z.ZodNumber;
|
|
@@ -126,66 +399,6 @@ declare const CustomTableGetSchemaInputSchema: z.ZodObject<{
|
|
|
126
399
|
id: z.ZodUUID;
|
|
127
400
|
}, z.core.$strip>;
|
|
128
401
|
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
402
|
declare const CustomTableGetOutputSchema: z.ZodObject<{
|
|
190
403
|
id: z.ZodString;
|
|
191
404
|
userId: z.ZodString;
|
|
@@ -229,7 +442,7 @@ declare const CustomTableGetOutputSchema: z.ZodObject<{
|
|
|
229
442
|
id: z.ZodString;
|
|
230
443
|
tableId: z.ZodString;
|
|
231
444
|
cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
232
|
-
position: z.
|
|
445
|
+
position: z.ZodNumber;
|
|
233
446
|
createdAt: z.ZodCoercedDate<unknown>;
|
|
234
447
|
updatedAt: z.ZodCoercedDate<unknown>;
|
|
235
448
|
}, z.core.$strip>>;
|
|
@@ -242,7 +455,11 @@ declare const CustomTableGetOutputSchema: z.ZodObject<{
|
|
|
242
455
|
kanban: "kanban";
|
|
243
456
|
gallery: "gallery";
|
|
244
457
|
}>;
|
|
245
|
-
config: z.ZodNullable<z.
|
|
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>>>;
|
|
246
463
|
filters: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
|
|
247
464
|
sorts: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
|
|
248
465
|
position: z.ZodNumber;
|
|
@@ -291,33 +508,42 @@ declare const CustomTableGetSchemaOutputSchema: z.ZodObject<{
|
|
|
291
508
|
}, z.core.$strip>;
|
|
292
509
|
type CustomTableGetSchemaOutput = z.infer<typeof CustomTableGetSchemaOutputSchema>;
|
|
293
510
|
//#endregion
|
|
294
|
-
//#region src/schemas/notebase-beta.d.ts
|
|
295
|
-
declare const NotebaseBetaStatusInputSchema: z.ZodObject<{}, z.core.$strict>;
|
|
296
|
-
type NotebaseBetaStatusInput = z.infer<typeof NotebaseBetaStatusInputSchema>;
|
|
297
|
-
declare const NotebaseBetaStatusOutputSchema: z.ZodObject<{
|
|
298
|
-
allowed: z.ZodBoolean;
|
|
299
|
-
}, z.core.$strip>;
|
|
300
|
-
type NotebaseBetaStatusOutput = z.infer<typeof NotebaseBetaStatusOutputSchema>;
|
|
301
|
-
//#endregion
|
|
302
511
|
//#region src/schemas/row.d.ts
|
|
303
|
-
declare const
|
|
512
|
+
declare const rowCellsSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
513
|
+
declare const tableRowSchema: z.ZodObject<{
|
|
514
|
+
id: z.ZodString;
|
|
515
|
+
tableId: z.ZodString;
|
|
516
|
+
cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
517
|
+
position: z.ZodNumber;
|
|
518
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
519
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
520
|
+
}, z.core.$strip>;
|
|
521
|
+
type TableRow = z.infer<typeof tableRowSchema>;
|
|
522
|
+
declare const rowCreateDataSchema: z.ZodObject<{
|
|
523
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
524
|
+
cells: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
525
|
+
}, z.core.$strict>;
|
|
526
|
+
type RowCreateData = z.infer<typeof rowCreateDataSchema>;
|
|
527
|
+
declare const rowUpdateDataSchema: z.ZodObject<{
|
|
528
|
+
cells: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
529
|
+
}, z.core.$strict>;
|
|
530
|
+
type RowUpdateData = z.infer<typeof rowUpdateDataSchema>;
|
|
531
|
+
declare const RowCreateInputSchema: z.ZodObject<{
|
|
304
532
|
tableId: z.ZodUUID;
|
|
305
533
|
data: z.ZodObject<{
|
|
306
534
|
id: z.ZodOptional<z.ZodUUID>;
|
|
307
|
-
cells: z.ZodRecord<z.ZodString, z.ZodUnknown
|
|
308
|
-
position: z.ZodOptional<z.ZodNumber>;
|
|
535
|
+
cells: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
309
536
|
}, z.core.$strict>;
|
|
310
537
|
}, z.core.$strip>;
|
|
311
|
-
type
|
|
312
|
-
declare const
|
|
538
|
+
type RowCreateInput = z.infer<typeof RowCreateInputSchema>;
|
|
539
|
+
declare const RowCreateOutputSchema: z.ZodObject<{
|
|
313
540
|
txid: z.ZodNumber;
|
|
314
541
|
}, z.core.$strip>;
|
|
315
|
-
type
|
|
542
|
+
type RowCreateOutput = z.infer<typeof RowCreateOutputSchema>;
|
|
316
543
|
declare const RowUpdateInputSchema: z.ZodObject<{
|
|
317
544
|
rowId: z.ZodUUID;
|
|
318
545
|
data: z.ZodObject<{
|
|
319
546
|
cells: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
320
|
-
position: z.ZodOptional<z.ZodNumber>;
|
|
321
547
|
}, z.core.$strict>;
|
|
322
548
|
}, z.core.$strip>;
|
|
323
549
|
type RowUpdateInput = z.infer<typeof RowUpdateInputSchema>;
|
|
@@ -325,7 +551,7 @@ declare const RowUpdateOutputSchema: z.ZodObject<{
|
|
|
325
551
|
id: z.ZodUUID;
|
|
326
552
|
tableId: z.ZodUUID;
|
|
327
553
|
cells: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
328
|
-
position: z.
|
|
554
|
+
position: z.ZodNumber;
|
|
329
555
|
createdAt: z.ZodDate;
|
|
330
556
|
updatedAt: z.ZodDate;
|
|
331
557
|
txid: z.ZodNumber;
|
|
@@ -339,249 +565,392 @@ declare const RowDeleteOutputSchema: z.ZodObject<{
|
|
|
339
565
|
txid: z.ZodNumber;
|
|
340
566
|
}, z.core.$strip>;
|
|
341
567
|
type RowDeleteOutput = z.infer<typeof RowDeleteOutputSchema>;
|
|
568
|
+
declare const RowReorderInputSchema: z.ZodObject<{
|
|
569
|
+
tableId: z.ZodUUID;
|
|
570
|
+
ids: z.ZodArray<z.ZodUUID>;
|
|
571
|
+
}, z.core.$strip>;
|
|
572
|
+
type RowReorderInput = z.infer<typeof RowReorderInputSchema>;
|
|
573
|
+
declare const RowReorderOutputSchema: z.ZodObject<{
|
|
574
|
+
txid: z.ZodNumber;
|
|
575
|
+
}, z.core.$strip>;
|
|
576
|
+
type RowReorderOutput = z.infer<typeof RowReorderOutputSchema>;
|
|
577
|
+
//#endregion
|
|
578
|
+
//#region src/schemas/view.d.ts
|
|
579
|
+
declare const tableViewTypeSchema: z.ZodEnum<{
|
|
580
|
+
table: "table";
|
|
581
|
+
kanban: "kanban";
|
|
582
|
+
gallery: "gallery";
|
|
583
|
+
}>;
|
|
584
|
+
type TableViewType = z.infer<typeof tableViewTypeSchema>;
|
|
585
|
+
declare const viewConfigSchema: z.ZodObject<{
|
|
586
|
+
columnWidths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
587
|
+
hiddenColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
588
|
+
groupByColumnId: z.ZodOptional<z.ZodString>;
|
|
589
|
+
}, z.core.$catchall<z.ZodUnknown>>;
|
|
590
|
+
type ViewConfig = z.infer<typeof viewConfigSchema>;
|
|
591
|
+
declare const viewFilterSchema: z.ZodObject<{
|
|
592
|
+
columnId: z.ZodString;
|
|
593
|
+
operator: z.ZodString;
|
|
594
|
+
value: z.ZodUnknown;
|
|
595
|
+
}, z.core.$strict>;
|
|
596
|
+
type ViewFilter = z.infer<typeof viewFilterSchema>;
|
|
597
|
+
declare const viewFiltersSchema: z.ZodArray<z.ZodObject<{
|
|
598
|
+
columnId: z.ZodString;
|
|
599
|
+
operator: z.ZodString;
|
|
600
|
+
value: z.ZodUnknown;
|
|
601
|
+
}, z.core.$strict>>;
|
|
602
|
+
declare const viewSortSchema: z.ZodObject<{
|
|
603
|
+
columnId: z.ZodString;
|
|
604
|
+
direction: z.ZodEnum<{
|
|
605
|
+
asc: "asc";
|
|
606
|
+
desc: "desc";
|
|
607
|
+
}>;
|
|
608
|
+
}, z.core.$strict>;
|
|
609
|
+
type ViewSort = z.infer<typeof viewSortSchema>;
|
|
610
|
+
declare const viewSortsSchema: z.ZodArray<z.ZodObject<{
|
|
611
|
+
columnId: z.ZodString;
|
|
612
|
+
direction: z.ZodEnum<{
|
|
613
|
+
asc: "asc";
|
|
614
|
+
desc: "desc";
|
|
615
|
+
}>;
|
|
616
|
+
}, z.core.$strict>>;
|
|
617
|
+
declare const viewCreateDataSchema: z.ZodObject<{
|
|
618
|
+
id: z.ZodOptional<z.ZodUUID>;
|
|
619
|
+
name: z.ZodString;
|
|
620
|
+
type: z.ZodEnum<{
|
|
621
|
+
table: "table";
|
|
622
|
+
kanban: "kanban";
|
|
623
|
+
gallery: "gallery";
|
|
624
|
+
}>;
|
|
625
|
+
config: z.ZodOptional<z.ZodObject<{
|
|
626
|
+
columnWidths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
627
|
+
hiddenColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
628
|
+
groupByColumnId: z.ZodOptional<z.ZodString>;
|
|
629
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
630
|
+
filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
631
|
+
columnId: z.ZodString;
|
|
632
|
+
operator: z.ZodString;
|
|
633
|
+
value: z.ZodUnknown;
|
|
634
|
+
}, z.core.$strict>>>;
|
|
635
|
+
sorts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
636
|
+
columnId: z.ZodString;
|
|
637
|
+
direction: z.ZodEnum<{
|
|
638
|
+
asc: "asc";
|
|
639
|
+
desc: "desc";
|
|
640
|
+
}>;
|
|
641
|
+
}, z.core.$strict>>>;
|
|
642
|
+
}, z.core.$strict>;
|
|
643
|
+
type ViewCreateData = z.infer<typeof viewCreateDataSchema>;
|
|
644
|
+
declare const viewUpdateDataSchema: z.ZodObject<{
|
|
645
|
+
name: z.ZodOptional<z.ZodString>;
|
|
646
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
647
|
+
table: "table";
|
|
648
|
+
kanban: "kanban";
|
|
649
|
+
gallery: "gallery";
|
|
650
|
+
}>>;
|
|
651
|
+
config: z.ZodOptional<z.ZodObject<{
|
|
652
|
+
columnWidths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
653
|
+
hiddenColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
654
|
+
groupByColumnId: z.ZodOptional<z.ZodString>;
|
|
655
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
656
|
+
filters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
657
|
+
columnId: z.ZodString;
|
|
658
|
+
operator: z.ZodString;
|
|
659
|
+
value: z.ZodUnknown;
|
|
660
|
+
}, z.core.$strict>>>;
|
|
661
|
+
sorts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
662
|
+
columnId: z.ZodString;
|
|
663
|
+
direction: z.ZodEnum<{
|
|
664
|
+
asc: "asc";
|
|
665
|
+
desc: "desc";
|
|
666
|
+
}>;
|
|
667
|
+
}, z.core.$strict>>>;
|
|
668
|
+
}, z.core.$strict>;
|
|
669
|
+
type ViewUpdateData = z.infer<typeof viewUpdateDataSchema>;
|
|
670
|
+
declare const tableViewSchema: z.ZodObject<{
|
|
671
|
+
id: z.ZodString;
|
|
672
|
+
tableId: z.ZodString;
|
|
673
|
+
name: z.ZodString;
|
|
674
|
+
type: z.ZodEnum<{
|
|
675
|
+
table: "table";
|
|
676
|
+
kanban: "kanban";
|
|
677
|
+
gallery: "gallery";
|
|
678
|
+
}>;
|
|
679
|
+
config: z.ZodNullable<z.ZodObject<{
|
|
680
|
+
columnWidths: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
681
|
+
hiddenColumns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
682
|
+
groupByColumnId: z.ZodOptional<z.ZodString>;
|
|
683
|
+
}, z.core.$catchall<z.ZodUnknown>>>;
|
|
684
|
+
filters: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
|
|
685
|
+
sorts: z.ZodNullable<z.ZodArray<z.ZodUnknown>>;
|
|
686
|
+
position: z.ZodNumber;
|
|
687
|
+
createdAt: z.ZodCoercedDate<unknown>;
|
|
688
|
+
updatedAt: z.ZodCoercedDate<unknown>;
|
|
689
|
+
}, z.core.$strip>;
|
|
690
|
+
type TableView = z.infer<typeof tableViewSchema>;
|
|
342
691
|
//#endregion
|
|
343
692
|
//#region src/index.d.ts
|
|
344
693
|
declare const contract: {
|
|
694
|
+
betaAccess: {
|
|
695
|
+
status: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<_$zod.ZodObject<{
|
|
696
|
+
featureKey: _$zod.ZodEnum<{
|
|
697
|
+
notebase: "notebase";
|
|
698
|
+
}>;
|
|
699
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
700
|
+
featureKey: _$zod.ZodEnum<{
|
|
701
|
+
notebase: "notebase";
|
|
702
|
+
}>;
|
|
703
|
+
allowed: _$zod.ZodBoolean;
|
|
704
|
+
}, _$zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
|
|
705
|
+
};
|
|
345
706
|
customTable: {
|
|
346
|
-
list: _orpc_contract0.ContractProcedureBuilderWithInputOutput<zod.ZodObject<{}, zod_v4_core0.$strip>, zod.ZodArray<zod.ZodObject<{
|
|
347
|
-
id: zod.ZodString;
|
|
348
|
-
name: zod.ZodString;
|
|
349
|
-
}, zod_v4_core0.$strip>>, Record<never, never>, Record<never, never>>;
|
|
350
|
-
get: _orpc_contract0.ContractProcedureBuilderWithInputOutput<zod.ZodObject<{
|
|
351
|
-
id: zod.ZodUUID;
|
|
352
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
353
|
-
id: zod.ZodString;
|
|
354
|
-
userId: zod.ZodString;
|
|
355
|
-
name: zod.ZodString;
|
|
356
|
-
createdAt: zod.ZodCoercedDate<unknown>;
|
|
357
|
-
updatedAt: zod.ZodCoercedDate<unknown>;
|
|
358
|
-
columns: zod.ZodArray<zod.ZodObject<{
|
|
359
|
-
id: zod.ZodString;
|
|
360
|
-
tableId: zod.ZodString;
|
|
361
|
-
name: zod.ZodString;
|
|
362
|
-
config: zod.ZodDiscriminatedUnion<[zod.ZodObject<{
|
|
363
|
-
type: zod.ZodLiteral<"string">;
|
|
364
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
365
|
-
type: zod.ZodLiteral<"number">;
|
|
366
|
-
decimal: zod.ZodDefault<zod.ZodNumber>;
|
|
367
|
-
format: zod.ZodDefault<zod.ZodEnum<{
|
|
707
|
+
list: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<_$zod.ZodObject<{}, _$zod_v4_core0.$strip>, _$zod.ZodArray<_$zod.ZodObject<{
|
|
708
|
+
id: _$zod.ZodString;
|
|
709
|
+
name: _$zod.ZodString;
|
|
710
|
+
}, _$zod_v4_core0.$strip>>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, Pick<_$_orpc_contract0.ErrorMap, "NOTEBASE_BETA_RESTRICTED">>, Record<never, never>>;
|
|
711
|
+
get: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<_$zod.ZodObject<{
|
|
712
|
+
id: _$zod.ZodUUID;
|
|
713
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
714
|
+
id: _$zod.ZodString;
|
|
715
|
+
userId: _$zod.ZodString;
|
|
716
|
+
name: _$zod.ZodString;
|
|
717
|
+
createdAt: _$zod.ZodCoercedDate<unknown>;
|
|
718
|
+
updatedAt: _$zod.ZodCoercedDate<unknown>;
|
|
719
|
+
columns: _$zod.ZodArray<_$zod.ZodObject<{
|
|
720
|
+
id: _$zod.ZodString;
|
|
721
|
+
tableId: _$zod.ZodString;
|
|
722
|
+
name: _$zod.ZodString;
|
|
723
|
+
config: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
724
|
+
type: _$zod.ZodLiteral<"string">;
|
|
725
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
726
|
+
type: _$zod.ZodLiteral<"number">;
|
|
727
|
+
decimal: _$zod.ZodDefault<_$zod.ZodNumber>;
|
|
728
|
+
format: _$zod.ZodDefault<_$zod.ZodEnum<{
|
|
368
729
|
number: "number";
|
|
369
730
|
currency: "currency";
|
|
370
731
|
percent: "percent";
|
|
371
732
|
}>>;
|
|
372
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
373
|
-
type: zod.ZodLiteral<"boolean">;
|
|
374
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
375
|
-
type: zod.ZodLiteral<"date">;
|
|
376
|
-
dateFormat: zod.ZodOptional<zod.ZodString>;
|
|
377
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
378
|
-
type: zod.ZodLiteral<"select">;
|
|
379
|
-
options: zod.ZodDefault<zod.ZodArray<zod.ZodObject<{
|
|
380
|
-
id: zod.ZodString;
|
|
381
|
-
value: zod.ZodString;
|
|
382
|
-
color: zod.ZodString;
|
|
383
|
-
}, zod_v4_core0.$strip>>>;
|
|
384
|
-
}, zod_v4_core0.$strip>], "type">;
|
|
385
|
-
position: zod.ZodNumber;
|
|
386
|
-
isPrimary: zod.ZodBoolean;
|
|
387
|
-
width: zod.ZodNullable<zod.ZodNumber>;
|
|
388
|
-
createdAt: zod.ZodCoercedDate<unknown>;
|
|
389
|
-
updatedAt: zod.ZodCoercedDate<unknown>;
|
|
390
|
-
}, zod_v4_core0.$strip>>;
|
|
391
|
-
rows: zod.ZodArray<zod.ZodObject<{
|
|
392
|
-
id: zod.ZodString;
|
|
393
|
-
tableId: zod.ZodString;
|
|
394
|
-
cells: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
395
|
-
position: zod.
|
|
396
|
-
createdAt: zod.ZodCoercedDate<unknown>;
|
|
397
|
-
updatedAt: zod.ZodCoercedDate<unknown>;
|
|
398
|
-
}, zod_v4_core0.$strip>>;
|
|
399
|
-
views: zod.ZodArray<zod.ZodObject<{
|
|
400
|
-
id: zod.ZodString;
|
|
401
|
-
tableId: zod.ZodString;
|
|
402
|
-
name: zod.ZodString;
|
|
403
|
-
type: zod.ZodEnum<{
|
|
733
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
734
|
+
type: _$zod.ZodLiteral<"boolean">;
|
|
735
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
736
|
+
type: _$zod.ZodLiteral<"date">;
|
|
737
|
+
dateFormat: _$zod.ZodOptional<_$zod.ZodString>;
|
|
738
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
739
|
+
type: _$zod.ZodLiteral<"select">;
|
|
740
|
+
options: _$zod.ZodDefault<_$zod.ZodArray<_$zod.ZodObject<{
|
|
741
|
+
id: _$zod.ZodString;
|
|
742
|
+
value: _$zod.ZodString;
|
|
743
|
+
color: _$zod.ZodString;
|
|
744
|
+
}, _$zod_v4_core0.$strip>>>;
|
|
745
|
+
}, _$zod_v4_core0.$strip>], "type">;
|
|
746
|
+
position: _$zod.ZodNumber;
|
|
747
|
+
isPrimary: _$zod.ZodBoolean;
|
|
748
|
+
width: _$zod.ZodNullable<_$zod.ZodNumber>;
|
|
749
|
+
createdAt: _$zod.ZodCoercedDate<unknown>;
|
|
750
|
+
updatedAt: _$zod.ZodCoercedDate<unknown>;
|
|
751
|
+
}, _$zod_v4_core0.$strip>>;
|
|
752
|
+
rows: _$zod.ZodArray<_$zod.ZodObject<{
|
|
753
|
+
id: _$zod.ZodString;
|
|
754
|
+
tableId: _$zod.ZodString;
|
|
755
|
+
cells: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
756
|
+
position: _$zod.ZodNumber;
|
|
757
|
+
createdAt: _$zod.ZodCoercedDate<unknown>;
|
|
758
|
+
updatedAt: _$zod.ZodCoercedDate<unknown>;
|
|
759
|
+
}, _$zod_v4_core0.$strip>>;
|
|
760
|
+
views: _$zod.ZodArray<_$zod.ZodObject<{
|
|
761
|
+
id: _$zod.ZodString;
|
|
762
|
+
tableId: _$zod.ZodString;
|
|
763
|
+
name: _$zod.ZodString;
|
|
764
|
+
type: _$zod.ZodEnum<{
|
|
404
765
|
table: "table";
|
|
405
766
|
kanban: "kanban";
|
|
406
767
|
gallery: "gallery";
|
|
407
768
|
}>;
|
|
408
|
-
config: zod.ZodNullable<zod.
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
769
|
+
config: _$zod.ZodNullable<_$zod.ZodObject<{
|
|
770
|
+
columnWidths: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodNumber>>;
|
|
771
|
+
hiddenColumns: _$zod.ZodOptional<_$zod.ZodArray<_$zod.ZodString>>;
|
|
772
|
+
groupByColumnId: _$zod.ZodOptional<_$zod.ZodString>;
|
|
773
|
+
}, _$zod_v4_core0.$catchall<_$zod.ZodUnknown>>>;
|
|
774
|
+
filters: _$zod.ZodNullable<_$zod.ZodArray<_$zod.ZodUnknown>>;
|
|
775
|
+
sorts: _$zod.ZodNullable<_$zod.ZodArray<_$zod.ZodUnknown>>;
|
|
776
|
+
position: _$zod.ZodNumber;
|
|
777
|
+
createdAt: _$zod.ZodCoercedDate<unknown>;
|
|
778
|
+
updatedAt: _$zod.ZodCoercedDate<unknown>;
|
|
779
|
+
}, _$zod_v4_core0.$strip>>;
|
|
780
|
+
}, _$zod_v4_core0.$strip>, _$_orpc_contract0.MergedErrorMap<_$_orpc_contract0.MergedErrorMap<Record<never, never>, Pick<_$_orpc_contract0.ErrorMap, "NOTEBASE_BETA_RESTRICTED">>, Pick<_$_orpc_contract0.ErrorMap, "TABLE_NOT_FOUND">>, Record<never, never>>;
|
|
781
|
+
getSchema: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<_$zod.ZodObject<{
|
|
782
|
+
id: _$zod.ZodUUID;
|
|
783
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
784
|
+
id: _$zod.ZodString;
|
|
785
|
+
name: _$zod.ZodString;
|
|
786
|
+
updatedAt: _$zod.ZodCoercedDate<unknown>;
|
|
787
|
+
columns: _$zod.ZodArray<_$zod.ZodObject<{
|
|
788
|
+
id: _$zod.ZodString;
|
|
789
|
+
tableId: _$zod.ZodString;
|
|
790
|
+
name: _$zod.ZodString;
|
|
791
|
+
config: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
792
|
+
type: _$zod.ZodLiteral<"string">;
|
|
793
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
794
|
+
type: _$zod.ZodLiteral<"number">;
|
|
795
|
+
decimal: _$zod.ZodDefault<_$zod.ZodNumber>;
|
|
796
|
+
format: _$zod.ZodDefault<_$zod.ZodEnum<{
|
|
432
797
|
number: "number";
|
|
433
798
|
currency: "currency";
|
|
434
799
|
percent: "percent";
|
|
435
800
|
}>>;
|
|
436
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
437
|
-
type: zod.ZodLiteral<"boolean">;
|
|
438
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
439
|
-
type: zod.ZodLiteral<"date">;
|
|
440
|
-
dateFormat: zod.ZodOptional<zod.ZodString>;
|
|
441
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
442
|
-
type: zod.ZodLiteral<"select">;
|
|
443
|
-
options: zod.ZodDefault<zod.ZodArray<zod.ZodObject<{
|
|
444
|
-
id: zod.ZodString;
|
|
445
|
-
value: zod.ZodString;
|
|
446
|
-
color: zod.ZodString;
|
|
447
|
-
}, zod_v4_core0.$strip>>>;
|
|
448
|
-
}, zod_v4_core0.$strip>], "type">;
|
|
449
|
-
position: zod.ZodNumber;
|
|
450
|
-
isPrimary: zod.ZodBoolean;
|
|
451
|
-
width: zod.ZodNullable<zod.ZodNumber>;
|
|
452
|
-
createdAt: zod.ZodCoercedDate<unknown>;
|
|
453
|
-
updatedAt: zod.ZodCoercedDate<unknown>;
|
|
454
|
-
}, zod_v4_core0.$strip>>;
|
|
455
|
-
}, zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
|
|
456
|
-
create: _orpc_contract0.ContractProcedureBuilderWithInputOutput<zod.ZodObject<{
|
|
457
|
-
id: zod.ZodOptional<zod.ZodUUID>;
|
|
458
|
-
name: zod.ZodString;
|
|
459
|
-
}, zod_v4_core0.$
|
|
460
|
-
txid: zod.ZodNumber;
|
|
461
|
-
}, zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
|
|
462
|
-
update: _orpc_contract0.ContractProcedureBuilderWithInputOutput<zod.ZodObject<{
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
}, zod_v4_core0.$
|
|
466
|
-
txid: zod.ZodNumber;
|
|
467
|
-
}, zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
|
|
468
|
-
delete: _orpc_contract0.ContractProcedureBuilderWithInputOutput<zod.ZodObject<{
|
|
469
|
-
id: zod.ZodUUID;
|
|
470
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
471
|
-
txid: zod.ZodNumber;
|
|
472
|
-
}, zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
|
|
801
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
802
|
+
type: _$zod.ZodLiteral<"boolean">;
|
|
803
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
804
|
+
type: _$zod.ZodLiteral<"date">;
|
|
805
|
+
dateFormat: _$zod.ZodOptional<_$zod.ZodString>;
|
|
806
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
807
|
+
type: _$zod.ZodLiteral<"select">;
|
|
808
|
+
options: _$zod.ZodDefault<_$zod.ZodArray<_$zod.ZodObject<{
|
|
809
|
+
id: _$zod.ZodString;
|
|
810
|
+
value: _$zod.ZodString;
|
|
811
|
+
color: _$zod.ZodString;
|
|
812
|
+
}, _$zod_v4_core0.$strip>>>;
|
|
813
|
+
}, _$zod_v4_core0.$strip>], "type">;
|
|
814
|
+
position: _$zod.ZodNumber;
|
|
815
|
+
isPrimary: _$zod.ZodBoolean;
|
|
816
|
+
width: _$zod.ZodNullable<_$zod.ZodNumber>;
|
|
817
|
+
createdAt: _$zod.ZodCoercedDate<unknown>;
|
|
818
|
+
updatedAt: _$zod.ZodCoercedDate<unknown>;
|
|
819
|
+
}, _$zod_v4_core0.$strip>>;
|
|
820
|
+
}, _$zod_v4_core0.$strip>, _$_orpc_contract0.MergedErrorMap<_$_orpc_contract0.MergedErrorMap<Record<never, never>, Pick<_$_orpc_contract0.ErrorMap, "NOTEBASE_BETA_RESTRICTED">>, Pick<_$_orpc_contract0.ErrorMap, "TABLE_NOT_FOUND">>, Record<never, never>>;
|
|
821
|
+
create: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<_$zod.ZodObject<{
|
|
822
|
+
id: _$zod.ZodOptional<_$zod.ZodUUID>;
|
|
823
|
+
name: _$zod.ZodString;
|
|
824
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
825
|
+
txid: _$zod.ZodNumber;
|
|
826
|
+
}, _$zod_v4_core0.$strip>, _$_orpc_contract0.MergedErrorMap<Record<never, never>, Pick<_$_orpc_contract0.ErrorMap, "NOTEBASE_BETA_RESTRICTED">>, Record<never, never>>;
|
|
827
|
+
update: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<_$zod.ZodObject<{
|
|
828
|
+
name: _$zod.ZodOptional<_$zod.ZodString>;
|
|
829
|
+
id: _$zod.ZodUUID;
|
|
830
|
+
}, _$zod_v4_core0.$strict>, _$zod.ZodObject<{
|
|
831
|
+
txid: _$zod.ZodNumber;
|
|
832
|
+
}, _$zod_v4_core0.$strip>, _$_orpc_contract0.MergedErrorMap<_$_orpc_contract0.MergedErrorMap<Record<never, never>, Pick<_$_orpc_contract0.ErrorMap, "NOTEBASE_BETA_RESTRICTED">>, Pick<_$_orpc_contract0.ErrorMap, "TABLE_NOT_FOUND">>, Record<never, never>>;
|
|
833
|
+
delete: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<_$zod.ZodObject<{
|
|
834
|
+
id: _$zod.ZodUUID;
|
|
835
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
836
|
+
txid: _$zod.ZodNumber;
|
|
837
|
+
}, _$zod_v4_core0.$strip>, _$_orpc_contract0.MergedErrorMap<_$_orpc_contract0.MergedErrorMap<Record<never, never>, Pick<_$_orpc_contract0.ErrorMap, "NOTEBASE_BETA_RESTRICTED">>, Pick<_$_orpc_contract0.ErrorMap, "TABLE_NOT_FOUND">>, Record<never, never>>;
|
|
473
838
|
};
|
|
474
839
|
column: {
|
|
475
|
-
|
|
476
|
-
tableId: zod.ZodUUID;
|
|
477
|
-
data: zod.ZodObject<{
|
|
478
|
-
id: zod.ZodOptional<zod.ZodUUID>;
|
|
479
|
-
name: zod.ZodString;
|
|
480
|
-
config: zod.ZodDiscriminatedUnion<[zod.ZodObject<{
|
|
481
|
-
type: zod.ZodLiteral<"string">;
|
|
482
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
483
|
-
type: zod.ZodLiteral<"number">;
|
|
484
|
-
decimal: zod.ZodDefault<zod.ZodNumber>;
|
|
485
|
-
format: zod.ZodDefault<zod.ZodEnum<{
|
|
840
|
+
create: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<_$zod.ZodObject<{
|
|
841
|
+
tableId: _$zod.ZodUUID;
|
|
842
|
+
data: _$zod.ZodObject<{
|
|
843
|
+
id: _$zod.ZodOptional<_$zod.ZodUUID>;
|
|
844
|
+
name: _$zod.ZodString;
|
|
845
|
+
config: _$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
846
|
+
type: _$zod.ZodLiteral<"string">;
|
|
847
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
848
|
+
type: _$zod.ZodLiteral<"number">;
|
|
849
|
+
decimal: _$zod.ZodDefault<_$zod.ZodNumber>;
|
|
850
|
+
format: _$zod.ZodDefault<_$zod.ZodEnum<{
|
|
486
851
|
number: "number";
|
|
487
852
|
currency: "currency";
|
|
488
853
|
percent: "percent";
|
|
489
854
|
}>>;
|
|
490
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
491
|
-
type: zod.ZodLiteral<"boolean">;
|
|
492
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
493
|
-
type: zod.ZodLiteral<"date">;
|
|
494
|
-
dateFormat: zod.ZodOptional<zod.ZodString>;
|
|
495
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
496
|
-
type: zod.ZodLiteral<"select">;
|
|
497
|
-
options: zod.ZodDefault<zod.ZodArray<zod.ZodObject<{
|
|
498
|
-
id: zod.ZodString;
|
|
499
|
-
value: zod.ZodString;
|
|
500
|
-
color: zod.ZodString;
|
|
501
|
-
}, zod_v4_core0.$strip>>>;
|
|
502
|
-
}, zod_v4_core0.$strip>], "type">;
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
format: zod.ZodDefault<zod.ZodEnum<{
|
|
855
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
856
|
+
type: _$zod.ZodLiteral<"boolean">;
|
|
857
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
858
|
+
type: _$zod.ZodLiteral<"date">;
|
|
859
|
+
dateFormat: _$zod.ZodOptional<_$zod.ZodString>;
|
|
860
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
861
|
+
type: _$zod.ZodLiteral<"select">;
|
|
862
|
+
options: _$zod.ZodDefault<_$zod.ZodArray<_$zod.ZodObject<{
|
|
863
|
+
id: _$zod.ZodString;
|
|
864
|
+
value: _$zod.ZodString;
|
|
865
|
+
color: _$zod.ZodString;
|
|
866
|
+
}, _$zod_v4_core0.$strip>>>;
|
|
867
|
+
}, _$zod_v4_core0.$strip>], "type">;
|
|
868
|
+
}, _$zod_v4_core0.$strict>;
|
|
869
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
870
|
+
txid: _$zod.ZodNumber;
|
|
871
|
+
}, _$zod_v4_core0.$strip>, _$_orpc_contract0.MergedErrorMap<_$_orpc_contract0.MergedErrorMap<Record<never, never>, Pick<_$_orpc_contract0.ErrorMap, "NOTEBASE_BETA_RESTRICTED">>, Pick<_$_orpc_contract0.ErrorMap, "TABLE_NOT_FOUND" | "CONCURRENT_POSITION_CONFLICT">>, Record<never, never>>;
|
|
872
|
+
update: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<_$zod.ZodObject<{
|
|
873
|
+
columnId: _$zod.ZodUUID;
|
|
874
|
+
data: _$zod.ZodObject<{
|
|
875
|
+
name: _$zod.ZodOptional<_$zod.ZodString>;
|
|
876
|
+
config: _$zod.ZodOptional<_$zod.ZodDiscriminatedUnion<[_$zod.ZodObject<{
|
|
877
|
+
type: _$zod.ZodLiteral<"string">;
|
|
878
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
879
|
+
type: _$zod.ZodLiteral<"number">;
|
|
880
|
+
decimal: _$zod.ZodDefault<_$zod.ZodNumber>;
|
|
881
|
+
format: _$zod.ZodDefault<_$zod.ZodEnum<{
|
|
518
882
|
number: "number";
|
|
519
883
|
currency: "currency";
|
|
520
884
|
percent: "percent";
|
|
521
885
|
}>>;
|
|
522
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
523
|
-
type: zod.ZodLiteral<"boolean">;
|
|
524
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
525
|
-
type: zod.ZodLiteral<"date">;
|
|
526
|
-
dateFormat: zod.ZodOptional<zod.ZodString>;
|
|
527
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
528
|
-
type: zod.ZodLiteral<"select">;
|
|
529
|
-
options: zod.ZodDefault<zod.ZodArray<zod.ZodObject<{
|
|
530
|
-
id: zod.ZodString;
|
|
531
|
-
value: zod.ZodString;
|
|
532
|
-
color: zod.ZodString;
|
|
533
|
-
}, zod_v4_core0.$strip>>>;
|
|
534
|
-
}, zod_v4_core0.$strip>], "type">>;
|
|
535
|
-
width: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
|
|
536
|
-
}, zod_v4_core0.$strict>;
|
|
537
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
538
|
-
txid: zod.ZodNumber;
|
|
539
|
-
}, zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
|
|
540
|
-
delete: _orpc_contract0.ContractProcedureBuilderWithInputOutput<zod.ZodObject<{
|
|
541
|
-
columnId: zod.ZodUUID;
|
|
542
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
543
|
-
txid: zod.ZodNumber;
|
|
544
|
-
}, zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
|
|
886
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
887
|
+
type: _$zod.ZodLiteral<"boolean">;
|
|
888
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
889
|
+
type: _$zod.ZodLiteral<"date">;
|
|
890
|
+
dateFormat: _$zod.ZodOptional<_$zod.ZodString>;
|
|
891
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
892
|
+
type: _$zod.ZodLiteral<"select">;
|
|
893
|
+
options: _$zod.ZodDefault<_$zod.ZodArray<_$zod.ZodObject<{
|
|
894
|
+
id: _$zod.ZodString;
|
|
895
|
+
value: _$zod.ZodString;
|
|
896
|
+
color: _$zod.ZodString;
|
|
897
|
+
}, _$zod_v4_core0.$strip>>>;
|
|
898
|
+
}, _$zod_v4_core0.$strip>], "type">>;
|
|
899
|
+
width: _$zod.ZodOptional<_$zod.ZodNullable<_$zod.ZodNumber>>;
|
|
900
|
+
}, _$zod_v4_core0.$strict>;
|
|
901
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
902
|
+
txid: _$zod.ZodNumber;
|
|
903
|
+
}, _$zod_v4_core0.$strip>, _$_orpc_contract0.MergedErrorMap<_$_orpc_contract0.MergedErrorMap<Record<never, never>, Pick<_$_orpc_contract0.ErrorMap, "NOTEBASE_BETA_RESTRICTED">>, Pick<_$_orpc_contract0.ErrorMap, "COLUMN_NOT_FOUND">>, Record<never, never>>;
|
|
904
|
+
delete: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<_$zod.ZodObject<{
|
|
905
|
+
columnId: _$zod.ZodUUID;
|
|
906
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
907
|
+
txid: _$zod.ZodNumber;
|
|
908
|
+
}, _$zod_v4_core0.$strip>, _$_orpc_contract0.MergedErrorMap<_$_orpc_contract0.MergedErrorMap<Record<never, never>, Pick<_$_orpc_contract0.ErrorMap, "NOTEBASE_BETA_RESTRICTED">>, Pick<_$_orpc_contract0.ErrorMap, "COLUMN_NOT_FOUND" | "PRIMARY_COLUMN_DELETE_NOT_ALLOWED" | "CONCURRENT_POSITION_CONFLICT">>, Record<never, never>>;
|
|
909
|
+
reorder: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<_$zod.ZodObject<{
|
|
910
|
+
tableId: _$zod.ZodUUID;
|
|
911
|
+
ids: _$zod.ZodArray<_$zod.ZodUUID>;
|
|
912
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
913
|
+
txid: _$zod.ZodNumber;
|
|
914
|
+
}, _$zod_v4_core0.$strip>, _$_orpc_contract0.MergedErrorMap<_$_orpc_contract0.MergedErrorMap<Record<never, never>, Pick<_$_orpc_contract0.ErrorMap, "NOTEBASE_BETA_RESTRICTED">>, Pick<_$_orpc_contract0.ErrorMap, "TABLE_NOT_FOUND" | "CONCURRENT_POSITION_CONFLICT">>, Record<never, never>>;
|
|
545
915
|
};
|
|
546
916
|
row: {
|
|
547
|
-
|
|
548
|
-
tableId: zod.ZodUUID;
|
|
549
|
-
data: zod.ZodObject<{
|
|
550
|
-
id: zod.ZodOptional<zod.ZodUUID>;
|
|
551
|
-
cells: zod.ZodRecord<zod.ZodString, zod.ZodUnknown
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
}, zod_v4_core0.$strip>,
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
}, zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
|
|
917
|
+
create: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<_$zod.ZodObject<{
|
|
918
|
+
tableId: _$zod.ZodUUID;
|
|
919
|
+
data: _$zod.ZodObject<{
|
|
920
|
+
id: _$zod.ZodOptional<_$zod.ZodUUID>;
|
|
921
|
+
cells: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
922
|
+
}, _$zod_v4_core0.$strict>;
|
|
923
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
924
|
+
txid: _$zod.ZodNumber;
|
|
925
|
+
}, _$zod_v4_core0.$strip>, _$_orpc_contract0.MergedErrorMap<_$_orpc_contract0.MergedErrorMap<Record<never, never>, Pick<_$_orpc_contract0.ErrorMap, "NOTEBASE_BETA_RESTRICTED">>, Pick<_$_orpc_contract0.ErrorMap, "TABLE_NOT_FOUND" | "CELL_VALIDATION_FAILED" | "CONCURRENT_POSITION_CONFLICT">>, Record<never, never>>;
|
|
926
|
+
update: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<_$zod.ZodObject<{
|
|
927
|
+
rowId: _$zod.ZodUUID;
|
|
928
|
+
data: _$zod.ZodObject<{
|
|
929
|
+
cells: _$zod.ZodOptional<_$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>>;
|
|
930
|
+
}, _$zod_v4_core0.$strict>;
|
|
931
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
932
|
+
id: _$zod.ZodUUID;
|
|
933
|
+
tableId: _$zod.ZodUUID;
|
|
934
|
+
cells: _$zod.ZodRecord<_$zod.ZodString, _$zod.ZodUnknown>;
|
|
935
|
+
position: _$zod.ZodNumber;
|
|
936
|
+
createdAt: _$zod.ZodDate;
|
|
937
|
+
updatedAt: _$zod.ZodDate;
|
|
938
|
+
txid: _$zod.ZodNumber;
|
|
939
|
+
}, _$zod_v4_core0.$strip>, _$_orpc_contract0.MergedErrorMap<_$_orpc_contract0.MergedErrorMap<Record<never, never>, Pick<_$_orpc_contract0.ErrorMap, "NOTEBASE_BETA_RESTRICTED">>, Pick<_$_orpc_contract0.ErrorMap, "ROW_NOT_FOUND" | "CELL_VALIDATION_FAILED">>, Record<never, never>>;
|
|
940
|
+
delete: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<_$zod.ZodObject<{
|
|
941
|
+
rowId: _$zod.ZodUUID;
|
|
942
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
943
|
+
txid: _$zod.ZodNumber;
|
|
944
|
+
}, _$zod_v4_core0.$strip>, _$_orpc_contract0.MergedErrorMap<_$_orpc_contract0.MergedErrorMap<Record<never, never>, Pick<_$_orpc_contract0.ErrorMap, "NOTEBASE_BETA_RESTRICTED">>, Pick<_$_orpc_contract0.ErrorMap, "ROW_NOT_FOUND" | "CONCURRENT_POSITION_CONFLICT">>, Record<never, never>>;
|
|
945
|
+
reorder: _$_orpc_contract0.ContractProcedureBuilderWithInputOutput<_$zod.ZodObject<{
|
|
946
|
+
tableId: _$zod.ZodUUID;
|
|
947
|
+
ids: _$zod.ZodArray<_$zod.ZodUUID>;
|
|
948
|
+
}, _$zod_v4_core0.$strip>, _$zod.ZodObject<{
|
|
949
|
+
txid: _$zod.ZodNumber;
|
|
950
|
+
}, _$zod_v4_core0.$strip>, _$_orpc_contract0.MergedErrorMap<_$_orpc_contract0.MergedErrorMap<Record<never, never>, Pick<_$_orpc_contract0.ErrorMap, "NOTEBASE_BETA_RESTRICTED">>, Pick<_$_orpc_contract0.ErrorMap, "TABLE_NOT_FOUND" | "CONCURRENT_POSITION_CONFLICT">>, Record<never, never>>;
|
|
582
951
|
};
|
|
583
952
|
};
|
|
584
953
|
type ORPCRouterClient = ContractRouterClient<typeof contract>;
|
|
585
954
|
//#endregion
|
|
586
|
-
export {
|
|
955
|
+
export { BetaAccessStatusInput, BetaAccessStatusInputSchema, BetaAccessStatusOutput, BetaAccessStatusOutputSchema, BetaFeatureKey, BetaFeatureKeySchema, CellValidationFailedData, CellValidationFailedDataSchema, CellValidationFailureDetails, CellValidationFailureDetailsSchema, CellValidationFailureReason, CellValidationFailureReasonSchema, 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, ORPCRouterClient, PUBLIC_APP_ERROR_DEFS, PublicAppErrorCode, PublicAppErrorData, 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, getPublicErrorDefinition, isPublicAppErrorCode, pickPublicErrorMap, rowCellsSchema, rowCreateDataSchema, rowUpdateDataSchema, tableColumnSchema, tableRowSchema, tableViewSchema, tableViewTypeSchema, viewConfigSchema, viewCreateDataSchema, viewFilterSchema, viewFiltersSchema, viewSortSchema, viewSortsSchema, viewUpdateDataSchema };
|
|
587
956
|
//# sourceMappingURL=index.d.ts.map
|