@read-frog/api-contract 0.3.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +396 -238
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +166 -100
- package/dist/index.js.map +1 -1
- package/package.json +8 -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,9 +1,168 @@
|
|
|
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
167
|
declare const columnWidthSchema: z.ZodNumber;
|
|
9
168
|
declare const tableColumnSchema: z.ZodObject<{
|
|
@@ -349,14 +508,6 @@ declare const CustomTableGetSchemaOutputSchema: z.ZodObject<{
|
|
|
349
508
|
}, z.core.$strip>;
|
|
350
509
|
type CustomTableGetSchemaOutput = z.infer<typeof CustomTableGetSchemaOutputSchema>;
|
|
351
510
|
//#endregion
|
|
352
|
-
//#region src/schemas/notebase-beta.d.ts
|
|
353
|
-
declare const NotebaseBetaStatusInputSchema: z.ZodObject<{}, z.core.$strict>;
|
|
354
|
-
type NotebaseBetaStatusInput = z.infer<typeof NotebaseBetaStatusInputSchema>;
|
|
355
|
-
declare const NotebaseBetaStatusOutputSchema: z.ZodObject<{
|
|
356
|
-
allowed: z.ZodBoolean;
|
|
357
|
-
}, z.core.$strip>;
|
|
358
|
-
type NotebaseBetaStatusOutput = z.infer<typeof NotebaseBetaStatusOutputSchema>;
|
|
359
|
-
//#endregion
|
|
360
511
|
//#region src/schemas/row.d.ts
|
|
361
512
|
declare const rowCellsSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
362
513
|
declare const tableRowSchema: z.ZodObject<{
|
|
@@ -540,259 +691,266 @@ type TableView = z.infer<typeof tableViewSchema>;
|
|
|
540
691
|
//#endregion
|
|
541
692
|
//#region src/index.d.ts
|
|
542
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
|
+
};
|
|
543
706
|
customTable: {
|
|
544
|
-
list: _orpc_contract0.ContractProcedureBuilderWithInputOutput<zod.ZodObject<{}, zod_v4_core0.$strip>, zod.ZodArray<zod.ZodObject<{
|
|
545
|
-
id: zod.ZodString;
|
|
546
|
-
name: zod.ZodString;
|
|
547
|
-
}, zod_v4_core0.$strip>>, Record<never, never>, Record<never, never>>;
|
|
548
|
-
get: _orpc_contract0.ContractProcedureBuilderWithInputOutput<zod.ZodObject<{
|
|
549
|
-
id: zod.ZodUUID;
|
|
550
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
551
|
-
id: zod.ZodString;
|
|
552
|
-
userId: zod.ZodString;
|
|
553
|
-
name: zod.ZodString;
|
|
554
|
-
createdAt: zod.ZodCoercedDate<unknown>;
|
|
555
|
-
updatedAt: zod.ZodCoercedDate<unknown>;
|
|
556
|
-
columns: zod.ZodArray<zod.ZodObject<{
|
|
557
|
-
id: zod.ZodString;
|
|
558
|
-
tableId: zod.ZodString;
|
|
559
|
-
name: zod.ZodString;
|
|
560
|
-
config: zod.ZodDiscriminatedUnion<[zod.ZodObject<{
|
|
561
|
-
type: zod.ZodLiteral<"string">;
|
|
562
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
563
|
-
type: zod.ZodLiteral<"number">;
|
|
564
|
-
decimal: zod.ZodDefault<zod.ZodNumber>;
|
|
565
|
-
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<{
|
|
566
729
|
number: "number";
|
|
567
730
|
currency: "currency";
|
|
568
731
|
percent: "percent";
|
|
569
732
|
}>>;
|
|
570
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
571
|
-
type: zod.ZodLiteral<"boolean">;
|
|
572
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
573
|
-
type: zod.ZodLiteral<"date">;
|
|
574
|
-
dateFormat: zod.ZodOptional<zod.ZodString>;
|
|
575
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
576
|
-
type: zod.ZodLiteral<"select">;
|
|
577
|
-
options: zod.ZodDefault<zod.ZodArray<zod.ZodObject<{
|
|
578
|
-
id: zod.ZodString;
|
|
579
|
-
value: zod.ZodString;
|
|
580
|
-
color: zod.ZodString;
|
|
581
|
-
}, zod_v4_core0.$strip>>>;
|
|
582
|
-
}, zod_v4_core0.$strip>], "type">;
|
|
583
|
-
position: zod.ZodNumber;
|
|
584
|
-
isPrimary: zod.ZodBoolean;
|
|
585
|
-
width: zod.ZodNullable<zod.ZodNumber>;
|
|
586
|
-
createdAt: zod.ZodCoercedDate<unknown>;
|
|
587
|
-
updatedAt: zod.ZodCoercedDate<unknown>;
|
|
588
|
-
}, zod_v4_core0.$strip>>;
|
|
589
|
-
rows: zod.ZodArray<zod.ZodObject<{
|
|
590
|
-
id: zod.ZodString;
|
|
591
|
-
tableId: zod.ZodString;
|
|
592
|
-
cells: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
593
|
-
position: zod.ZodNumber;
|
|
594
|
-
createdAt: zod.ZodCoercedDate<unknown>;
|
|
595
|
-
updatedAt: zod.ZodCoercedDate<unknown>;
|
|
596
|
-
}, zod_v4_core0.$strip>>;
|
|
597
|
-
views: zod.ZodArray<zod.ZodObject<{
|
|
598
|
-
id: zod.ZodString;
|
|
599
|
-
tableId: zod.ZodString;
|
|
600
|
-
name: zod.ZodString;
|
|
601
|
-
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<{
|
|
602
765
|
table: "table";
|
|
603
766
|
kanban: "kanban";
|
|
604
767
|
gallery: "gallery";
|
|
605
768
|
}>;
|
|
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>>>;
|
|
611
|
-
filters: zod.ZodNullable<zod.ZodArray<zod.ZodUnknown>>;
|
|
612
|
-
sorts: zod.ZodNullable<zod.ZodArray<zod.ZodUnknown>>;
|
|
613
|
-
position: zod.ZodNumber;
|
|
614
|
-
createdAt: zod.ZodCoercedDate<unknown>;
|
|
615
|
-
updatedAt: zod.ZodCoercedDate<unknown>;
|
|
616
|
-
}, zod_v4_core0.$strip>>;
|
|
617
|
-
}, zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
|
|
618
|
-
getSchema: _orpc_contract0.ContractProcedureBuilderWithInputOutput<zod.ZodObject<{
|
|
619
|
-
id: zod.ZodUUID;
|
|
620
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
621
|
-
id: zod.ZodString;
|
|
622
|
-
name: zod.ZodString;
|
|
623
|
-
updatedAt: zod.ZodCoercedDate<unknown>;
|
|
624
|
-
columns: zod.ZodArray<zod.ZodObject<{
|
|
625
|
-
id: zod.ZodString;
|
|
626
|
-
tableId: zod.ZodString;
|
|
627
|
-
name: zod.ZodString;
|
|
628
|
-
config: zod.ZodDiscriminatedUnion<[zod.ZodObject<{
|
|
629
|
-
type: zod.ZodLiteral<"string">;
|
|
630
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
631
|
-
type: zod.ZodLiteral<"number">;
|
|
632
|
-
decimal: zod.ZodDefault<zod.ZodNumber>;
|
|
633
|
-
format: zod.ZodDefault<zod.ZodEnum<{
|
|
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<{
|
|
634
797
|
number: "number";
|
|
635
798
|
currency: "currency";
|
|
636
799
|
percent: "percent";
|
|
637
800
|
}>>;
|
|
638
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
639
|
-
type: zod.ZodLiteral<"boolean">;
|
|
640
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
641
|
-
type: zod.ZodLiteral<"date">;
|
|
642
|
-
dateFormat: zod.ZodOptional<zod.ZodString>;
|
|
643
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
644
|
-
type: zod.ZodLiteral<"select">;
|
|
645
|
-
options: zod.ZodDefault<zod.ZodArray<zod.ZodObject<{
|
|
646
|
-
id: zod.ZodString;
|
|
647
|
-
value: zod.ZodString;
|
|
648
|
-
color: zod.ZodString;
|
|
649
|
-
}, zod_v4_core0.$strip>>>;
|
|
650
|
-
}, zod_v4_core0.$strip>], "type">;
|
|
651
|
-
position: zod.ZodNumber;
|
|
652
|
-
isPrimary: zod.ZodBoolean;
|
|
653
|
-
width: zod.ZodNullable<zod.ZodNumber>;
|
|
654
|
-
createdAt: zod.ZodCoercedDate<unknown>;
|
|
655
|
-
updatedAt: zod.ZodCoercedDate<unknown>;
|
|
656
|
-
}, zod_v4_core0.$strip>>;
|
|
657
|
-
}, zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
|
|
658
|
-
create: _orpc_contract0.ContractProcedureBuilderWithInputOutput<zod.ZodObject<{
|
|
659
|
-
id: zod.ZodOptional<zod.ZodUUID>;
|
|
660
|
-
name: zod.ZodString;
|
|
661
|
-
}, zod_v4_core0.$strict>, zod.ZodObject<{
|
|
662
|
-
txid: zod.ZodNumber;
|
|
663
|
-
}, zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
|
|
664
|
-
update: _orpc_contract0.ContractProcedureBuilderWithInputOutput<zod.ZodObject<{
|
|
665
|
-
name: zod.ZodOptional<zod.ZodString>;
|
|
666
|
-
id: zod.ZodUUID;
|
|
667
|
-
}, zod_v4_core0.$strict>, zod.ZodObject<{
|
|
668
|
-
txid: zod.ZodNumber;
|
|
669
|
-
}, zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
|
|
670
|
-
delete: _orpc_contract0.ContractProcedureBuilderWithInputOutput<zod.ZodObject<{
|
|
671
|
-
id: zod.ZodUUID;
|
|
672
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
673
|
-
txid: zod.ZodNumber;
|
|
674
|
-
}, 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>>;
|
|
675
838
|
};
|
|
676
839
|
column: {
|
|
677
|
-
create: _orpc_contract0.ContractProcedureBuilderWithInputOutput<zod.ZodObject<{
|
|
678
|
-
tableId: zod.ZodUUID;
|
|
679
|
-
data: zod.ZodObject<{
|
|
680
|
-
id: zod.ZodOptional<zod.ZodUUID>;
|
|
681
|
-
name: zod.ZodString;
|
|
682
|
-
config: zod.ZodDiscriminatedUnion<[zod.ZodObject<{
|
|
683
|
-
type: zod.ZodLiteral<"string">;
|
|
684
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
685
|
-
type: zod.ZodLiteral<"number">;
|
|
686
|
-
decimal: zod.ZodDefault<zod.ZodNumber>;
|
|
687
|
-
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<{
|
|
688
851
|
number: "number";
|
|
689
852
|
currency: "currency";
|
|
690
853
|
percent: "percent";
|
|
691
854
|
}>>;
|
|
692
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
693
|
-
type: zod.ZodLiteral<"boolean">;
|
|
694
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
695
|
-
type: zod.ZodLiteral<"date">;
|
|
696
|
-
dateFormat: zod.ZodOptional<zod.ZodString>;
|
|
697
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
698
|
-
type: zod.ZodLiteral<"select">;
|
|
699
|
-
options: zod.ZodDefault<zod.ZodArray<zod.ZodObject<{
|
|
700
|
-
id: zod.ZodString;
|
|
701
|
-
value: zod.ZodString;
|
|
702
|
-
color: zod.ZodString;
|
|
703
|
-
}, zod_v4_core0.$strip>>>;
|
|
704
|
-
}, zod_v4_core0.$strip>], "type">;
|
|
705
|
-
}, zod_v4_core0.$strict>;
|
|
706
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
707
|
-
txid: zod.ZodNumber;
|
|
708
|
-
}, zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
|
|
709
|
-
update: _orpc_contract0.ContractProcedureBuilderWithInputOutput<zod.ZodObject<{
|
|
710
|
-
columnId: zod.ZodUUID;
|
|
711
|
-
data: zod.ZodObject<{
|
|
712
|
-
name: zod.ZodOptional<zod.ZodString>;
|
|
713
|
-
config: zod.ZodOptional<zod.ZodDiscriminatedUnion<[zod.ZodObject<{
|
|
714
|
-
type: zod.ZodLiteral<"string">;
|
|
715
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
716
|
-
type: zod.ZodLiteral<"number">;
|
|
717
|
-
decimal: zod.ZodDefault<zod.ZodNumber>;
|
|
718
|
-
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<{
|
|
719
882
|
number: "number";
|
|
720
883
|
currency: "currency";
|
|
721
884
|
percent: "percent";
|
|
722
885
|
}>>;
|
|
723
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
724
|
-
type: zod.ZodLiteral<"boolean">;
|
|
725
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
726
|
-
type: zod.ZodLiteral<"date">;
|
|
727
|
-
dateFormat: zod.ZodOptional<zod.ZodString>;
|
|
728
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
729
|
-
type: zod.ZodLiteral<"select">;
|
|
730
|
-
options: zod.ZodDefault<zod.ZodArray<zod.ZodObject<{
|
|
731
|
-
id: zod.ZodString;
|
|
732
|
-
value: zod.ZodString;
|
|
733
|
-
color: zod.ZodString;
|
|
734
|
-
}, zod_v4_core0.$strip>>>;
|
|
735
|
-
}, zod_v4_core0.$strip>], "type">>;
|
|
736
|
-
width: zod.ZodOptional<zod.ZodNullable<zod.ZodNumber>>;
|
|
737
|
-
}, zod_v4_core0.$strict>;
|
|
738
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
739
|
-
txid: zod.ZodNumber;
|
|
740
|
-
}, zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
|
|
741
|
-
delete: _orpc_contract0.ContractProcedureBuilderWithInputOutput<zod.ZodObject<{
|
|
742
|
-
columnId: zod.ZodUUID;
|
|
743
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
744
|
-
txid: zod.ZodNumber;
|
|
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>>;
|
|
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>>;
|
|
752
915
|
};
|
|
753
916
|
row: {
|
|
754
|
-
create: _orpc_contract0.ContractProcedureBuilderWithInputOutput<zod.ZodObject<{
|
|
755
|
-
tableId: zod.ZodUUID;
|
|
756
|
-
data: zod.ZodObject<{
|
|
757
|
-
id: zod.ZodOptional<zod.ZodUUID>;
|
|
758
|
-
cells: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
759
|
-
}, zod_v4_core0.$strict>;
|
|
760
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
761
|
-
txid: zod.ZodNumber;
|
|
762
|
-
}, zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
|
|
763
|
-
update: _orpc_contract0.ContractProcedureBuilderWithInputOutput<zod.ZodObject<{
|
|
764
|
-
rowId: zod.ZodUUID;
|
|
765
|
-
data: zod.ZodObject<{
|
|
766
|
-
cells: zod.ZodOptional<zod.ZodRecord<zod.ZodString, zod.ZodUnknown>>;
|
|
767
|
-
}, zod_v4_core0.$strict>;
|
|
768
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
769
|
-
id: zod.ZodUUID;
|
|
770
|
-
tableId: zod.ZodUUID;
|
|
771
|
-
cells: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
772
|
-
position: zod.ZodNumber;
|
|
773
|
-
createdAt: zod.ZodDate;
|
|
774
|
-
updatedAt: zod.ZodDate;
|
|
775
|
-
txid: zod.ZodNumber;
|
|
776
|
-
}, zod_v4_core0.$strip>, Record<never, never>, Record<never, never>>;
|
|
777
|
-
delete: _orpc_contract0.ContractProcedureBuilderWithInputOutput<zod.ZodObject<{
|
|
778
|
-
rowId: zod.ZodUUID;
|
|
779
|
-
}, zod_v4_core0.$strip>, zod.ZodObject<{
|
|
780
|
-
txid: zod.ZodNumber;
|
|
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>>;
|
|
788
|
-
};
|
|
789
|
-
notebaseBeta: {
|
|
790
|
-
status: _orpc_contract0.ContractProcedureBuilderWithInputOutput<zod.ZodObject<{}, zod_v4_core0.$strict>, zod.ZodObject<{
|
|
791
|
-
allowed: zod.ZodBoolean;
|
|
792
|
-
}, 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>>;
|
|
793
951
|
};
|
|
794
952
|
};
|
|
795
953
|
type ORPCRouterClient = ContractRouterClient<typeof contract>;
|
|
796
954
|
//#endregion
|
|
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,
|
|
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 };
|
|
798
956
|
//# sourceMappingURL=index.d.ts.map
|